| @@ -1,9 +1,9 @@ | ||
| 1 | 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", |
| 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 | -...(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),U=i(53036),P=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, | |
| 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, | |
| 6 | 6 | defaultValue:0,unitDefaultValue:"s"}),A=(0,w.D$)({attributeName:"dateTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),L=(0,w.D$)({attributeName:"desTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),D=((0,w.D$)({attributeName:"sumTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),{block_id:{type:"string",default:""},course_id:{type:"number",default:0},blockVersion:{type:"number",default:2},authorColor:{type:"string",default:"#111"},authorHoverColor:{type:"string",default:"#111"},dateColor:{type:"string",default:"#111"},dateHoverColor:{type:"string",default:"#111"},sumColor:{type:"string",default:"#111"},sumColorH:{type:"string",default:"#111"},iconColor:{type:"string",default:"#f4c150"},iconColorH:{type:"string",default:"#f4c150"},...C,...A,...L,...(0,h.D$)("authorTypography",!0),...(0,h.D$)("sumTypography",!0),...(0, |
| 7 | 7 | h.D$)("dateTypography",!0),...(0,h.D$)("desTypography",!0),...b.Ay});var N=i(72045),I=i(92731),V=i(37807);(0,w.D$)({attributeName:"avatarH",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px"}),(0,w.D$)({attributeName:"textTransition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"}),(0,w.D$)({attributeName:"description_transition",attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s"});const O={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:"#444"},description_colorH:{type:"string",default:"#444"},...(0,h.D$)("heading_typography",!0),...(0,h.D$)("description_typography",!0),...b.Ay};var Y=i(61392),X=i(41111);var B=i(69701),E=i(80518),F=i(60980),q=i(90198);const $={block_id:{type:"string",default:""},...(0, |
| 8 | 8 | w.D$)({attributeName:"transitionSpeed",attributeObjectKey:"value",defaultValue:.6,copyStyle:!0,unitDefaultValue:"s"}),...(0,q.D$)("flipDirection",!1,{value:"left"}),...(0,q.D$)("showSide",!1,{value:"front"}),...(0,_.D$)("cardBorder",!0),...(0,v.D$)("frontCardBackground",!0),...(0,v.D$)("backCardBackground",!0),...(0,R.D$)("frontPadding",!0),...(0,R.D$)("backPadding",!0),...b.Ay};var G=i(62055);var Z=i(48396),K=i(98479),J=i(60766),Q=i(50782),tt=i(4851),et=i(929);const it={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},couponStyle:{type:"string",default:"default",copyStyle:!0},couponCode:{type:"string",default:"KODEZEN50"},couponBtnText:{type:"string",default:"Copy"},couponBtnAfterCopyText:{type:"string",default:"Copied!"},couponCodeColor:{type:"string",default:"#000000",copyStyle:!0},couponCodeBgColor:{type:"string",default:"#ffffff",copyStyle:!0},couponBtnTextColor:{type:"string",default:"#ffffff",copyStyle:!0},couponBtnBgColor:{type:"string", |
| 9 | 9 | default:"#000000",copyStyle:!0},isShowIcon:{type:"bool",default:!0},iconType:{type:"string",default:"default",copyStyle:!0},iconShape:{type:"string",default:"circle",copyStyle:!0},...(0,w.D$)({attributeName:"iconSize",isResponsive:!0,defaultValue:20,copyStyle:!0}),...(0,w.D$)({attributeName:"iconRotate",isResponsive:!1,defaultValue:0,copyStyle:!0}),iconPrimaryColor:{type:"string",default:"black",copyStyle:!0},iconBackgroundColor:{type:"string",default:"#e8e8e8",copyStyle:!0},...(0,d.D$)("icon",{path:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z",viewBox:"0 0 448 512",className:"fas fa-copy",size:20}),...(0,c.D$)("position",!0,{value:"left"}),...(0,h.D$)("couponTypography",!0),...(0, |
| @@ -11,10 +11,10 @@ | ||
| 11 | 11 | },iconBackgroundColor:{type:"string",default:"#eee",copyStyle:!0},thicknessColor:{type:"string",default:"#eee",copyStyle:!0},showAnimation:{type:"boolean",default:!0,copyStyle:!0},connectorAnimationColor:{type:"string",default:"#00ad6b",copyStyle:!0},contentBackgroundColor:{type:"string",default:"#eee",copyStyle:!0},showDate:{type:"boolean",default:!0,copyStyle:!0},showDateTablet:{type:"boolean",default:!0,copyStyle:!0},showDateMobile:{type:"boolean",default:!0,copyStyle:!0},dateFormat:{type:"string",default:"F j, Y",copyStyle:!0},dateColor:{type:"string",default:"#333333",copyStyle:!0},dateAlign:{type:"string",default:"left",copyStyle:!0},dateBackground:{type:"string",default:"#eee",copyStyle:!0},...at,...lt,...(0,w.D$)({attributeName:"thickness",isResponsive:!1,defaultValue:3,copyStyle:!0}),...nt,...(0,d.D$)("icon",{ |
| 12 | 12 | path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",viewBox:"0 0 512 512",className:"far fa-arrow-alt-circle-up",hasNoSelectorOrSource:!0}),...(0,c.D$)("alignment",!0,{value:"left"}),...(0,h.D$)("dateTypography",!0),...(0,R.D$)("contentPadding",!0),...(0,R.D$)("datePadding",!0),...(0,_.D$)("dateBorder",!0),...b.Ay},rt={block_id:{type:"string"},blockVersion:{type:"number",default:""},headingTag:{type:"string",default:"h1"},heading:{type:"string",source:"text",selector:".ablocks-notice-title",default:"New Block Added"},isDismissible:{type:"boolean",default:!0},textColor:{type:"string",default:"",copyStyle:!0},backgroundColor:{type:"string",default:"#EFEFF0",copyStyle:!0},noticeClose:{type:"string",default:"oneTime",copyStyle:!0}, |
| 13 | 13 | ...(0,d.D$)("icon",{path:"M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z",viewBox:"0 0 512 512",className:"far fa-window-close",size:20}),...(0,c.D$)("alignment",!0,{value:"left"}),...(0,h.D$)("typography",!0),...(0,g.D$)("textShadow"),...(0,u.D$)("link"),...(0,f.D$)("textStroke",!0),...(0,R.D$)("noticeHeaderPadding",!0),...b.Ay};var bt=i(58509),ct=i(91464),dt=i(28482),ut=i(14120);const pt={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:"" |
| 14 | 14 | },isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:"",copyStyle:!0},rowOddColorH:{type:"string",default:"",copyStyle:!0},rowEvenColor:{type:"string",default:"",copyStyle:!0},rowEvenColorH:{type:"string",default:"",copyStyle:!0},headerColor:{type:"string",default:"",copyStyle:!0},headerColorH:{type:"string",default:"",copyStyle:!0},bodyBg:{type:"string",copyStyle:!0},bodyBgH:{type:"string",copyStyle:!0},footerColor:{type:"string",default:"",copyStyle:!0},footerColorH:{type:"string",default:"",copyStyle:!0},borderCollapse:{types:"string",default:"collapse"},...b.Ay,...(0,_.D$)("border",!0)},mt={block_id:{type:"string",default:""},tagName:{type:"string",default:"td"},cellColor:{type:"string",default:"",copyStyle:!0},cellColorH:{type:"string",default:"",copyStyle:!0},rowSpan:{type:"string",default:"1"},colSpan:{type:"string",default:"1"},...(0,c.D$)("textAlignment",!0,{value:"left"})};var ht=i(74196),gt=i(8697),ft=i(18057);const yt={block_id:{type:"string",default:"" |
| 15 | -},blockVersion:{type:"number",default:""},svgDrawColor:{type:"string",default:"gray",copyStyle:!0},duration:{type:"number",default:5,copyStyle:!0},...(0,d.D$)(),...(0,u.D$)("link"),...(0,c.D$)("alignment",!0,{value:"flex-start"}),...b.Ay};var Tt=i(60690),Ht=i(91664),Mt=i(46890);const xt={block_id:{type:"string",default:""},label:{type:"string",default:"Menu"},isSubMenu:{type:"boolean",default:!1},hasMegaMenu:{type:"boolean",default:!1},hasLink:{type:"boolean",default:!1},link:{type:"string",default:"#"},...(0,u.D$)("link")};var kt=i(91353),vt=i(29419);const _t={block_id:{type:"string"},dataCategory:{type:"string",default:""},...b.Ay};var Rt=i(68267),St=i(60273),Wt=i(88297);const Ut={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 Pt=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", | |
| 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 | 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 | 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 | 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 | 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, |
| @@ -30,358 +30,358 @@ | ||
| 30 | 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 | 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 | 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 | 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 Ue={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 Pe=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":U.Ay,"academy-course-curriculums":P.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":Ut,chart:Pt.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:Pe.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":Ue};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\// | |
| 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 | 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 | 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"}}}},91504(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)}:[],U=(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 P=i(2489);const j=class{customCSS="";constructor(t={},e){t.block_id=e, | |
| 43 | -this.parentClass=`.editor-styles-wrapper .ablocks-block-${e}`,this.classStyles=[],this.attributes=t,t?._custom_css&&(this.customCSS=t?._custom_css);const i=(0,P.nx)(t);if(Object.keys(i).length>0){const t=document.querySelector(".editor-styles-wrapper");t&&(0,P.Kx)(i,t)}t?._margin&&(this.addClassStyles("{{WRAPPER}}",x(t),x(t,"Tablet"),x(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover",k(t),k(t,"Tablet"),k(t,"Mobile")),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",v(t),v(t,"Tablet"),v(t,"Mobile")),this.addClassStyles("{{WRAPPER}}::before",S(t),S(t,"Tablet"),S(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover::before",W(t),W(t,"Tablet"),W(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover > .ablocks-block-container",R(t),R(t,"Tablet"),R(t,"Mobile")),this.addClassStyles("{{WRAPPER}} > .ablocks-block-container",_(t),_(t,"Tablet"),_(t,"Mobile")), | |
| 44 | -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",U(t),U(t,"Tablet"),U(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={}){this.classStyles.push({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o})}generateCSS(){let t=this.classStyles.map(({className:t,desktopStyles:e,tabletStyles:i,mobileStyles:o})=>{const a=this.filterResponsiveStyles(e,i),l=this.filterResponsiveStyles({...e,...a},o),n=this.generateCSSForMediaQuery("desktop",e),s=this.generateCSSForMediaQuery("tablet",a),r=this.generateCSSForMediaQuery("mobile",l),b=this.minifyCSS(n),c=this.minifyCSS(s),d=this.minifyCSS(r),u=this.getParentSelector(t),p=[];return b&&p.push(`${u} { ${b} }`), | |
| 45 | -s!==n&&c&&p.push(`@media screen and (max-width: ${this.getBreakpoint("tablet")}) { ${u} { ${c} } }`),r!==s&&d&&p.push(`@media screen and (max-width: ${this.getBreakpoint("mobile")}) { ${u} { ${d} } }`),p.join("\n\n")}).join("\n\n");return t+=this.getCustomCSS(),t.replace(/\s+/g," ")}getCustomCSS(){return this.customCSS.replace(/\bselector\b/g,this.parentClass)}generateCSSForMediaQuery(t,e){return 0===Object.keys(e).length?"":Object.keys(e).map(t=>`${t}: ${e[t]};`).join("\n")}getBreakpoint(t){const e="undefined"!=typeof window&&window.ABlocksGlobal&&window.ABlocksGlobal.breakpoints||{};switch(t){case"tablet":return`${e.tablet||800}px`;case"mobile":return`${e.mobile||480}px`;default:return"1200px"}}minifyCSS(t){return(t=(t=t.replace(/\/\*[\s\S]*?\*\//g,"")).replace(/\s+/g," ")).replace(/\s?([:,;{}])\s?/g,"$1")}getParentSelector(t){return this.parentClass?t.replaceAll("{{WRAPPER}}",this.parentClass):t}filterResponsiveStyles(t,e){const i={};for(const o in e)o in t&&t[o]===e[o]||(i[o]=e[o]) | |
| 46 | -;return i}},w=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,P.nx)(t);if(Object.keys(i).length>0){const t=document.querySelector(".editor-styles-wrapper");t&&(0,P.Kx)(i,t)}t?._margin&&(this.addClassStyles("{{WRAPPER}}",x(t),x(t,"Tablet"),x(t,"Mobile"),this.customDeviceMap(e=>x(t,e))),this.addClassStyles("{{WRAPPER}}:hover",k(t),k(t,"Tablet"),k(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover",{...k(t),...R(t)},{...k(t,"Tablet"),...R(t,"Tablet")},{...k(t,"Mobile"),...R(t,"Mobile")}),this.addClassStyles("{{WRAPPER}}.ablocks-hide-on-desktop,{{WRAPPER}}.ablocks-hide-on-tablet,{{WRAPPER}}.ablocks-hide-on-mobile",v(t),v(t,"Tablet"),v(t,"Mobile")),this.addClassStyles("{{WRAPPER}}::before",S(t),S(t,"Tablet"),S(t,"Mobile")),this.addClassStyles("{{WRAPPER}}:hover::before",W(t),W(t,"Tablet"),W(t,"Mobile")), | |
| 47 | -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",U(t),U(t,"Tablet"),U(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){const e=window.ABlocksGlobal?.responsive_devices||[],i=t("__ablocksphantom__")||{},o={};return e.forEach(e=>{if(e.width<=0||"Tablet"===e.id||"Mobile"===e.id)return;const a=t(e.suffix)||{},l={};Object.keys(a).forEach(t=>{i[t]!==a[t]&&(l[t]=a[t])}), | |
| 48 | -Object.keys(l).length&&(o[e.suffix]={width:e.width,min:e.min||0,max:e.max||e.width,styles:l})}),o}mediaCondition(t,e){const i=[];return t>0&&i.push(`(min-width:${t}px)`),e>0&&i.push(`(max-width:${e}px)`),i.join(" and ")}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=[];if(d&&h.push(`${m} { ${d} }`),a&&0!==Object.keys(a).length){const t=parseInt(this.getBreakpoint("tablet"),10),e=parseInt(this.getBreakpoint("mobile"),10),n=[{width:t,min:0,max:t,styles:i},{width:e,min:0,max:e,styles:o}];Object.values(a).forEach(t=>n.push({width:parseInt(t.width,10),min:t.min||0, | |
| 49 | -max:t.max||parseInt(t.width,10),styles:t.styles})),n.sort((t,e)=>e.width-t.width),n.forEach(t=>{const e=this.filterResponsiveStyles(l,t.styles||{}),i=this.generateCSSForMediaQuery("bp",e);if(i===r||!i.trim())return;const o=this.minifyCSS(i),a=this.mediaCondition(t.min,t.max);o&&a&&h.push(`@media screen and ${a} { ${m} { ${o} } }`)})}else 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} } }`);return h.join("\n\n")}).join("\n\n");return t+=this.getCustomCSS(),t.replace(/\s+/g," ")}getCustomCSS(){return this.customCSS.replace(/\bselector\b/g,this.parentClass)}generateCSSForMediaQuery(t,e){return 0===Object.keys(e).length?"":Object.keys(e).map(t=>`${t}: ${e[t]};`).join("\n")}getBreakpoint(t){const e="undefined"!=typeof window&&window.ABlocksGlobal&&window.ABlocksGlobal.breakpoints||{};switch(t){case"tablet":return`${e.tablet||800}px` | |
| 50 | -;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(),""===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 z=i(27723),C=i(94715),A=i(56427),L=i(10790);function D({title:t,initialOpen:e,children:i}){return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(A.PanelBody,{title:t,initialOpen:e,className:"ablocks-panel-body",children:i})})}D.propTypes={};var N=i(5556),I=i.n(N);const V=t=>{ | |
| 51 | -const{label:e,icon:i,iconPosition:o,isDisabled:a,onClick:l,buttonStyle:n,className:r,buttonType:b,type:c="button",link:d,target:u,suffix:p,preset:m,buttonSize:h}=t,g=s()("ablocks-btn",{["ablocks-btn--"+p]:p,["ablocks-btn--"+m]:m,["ablocks-btn--"+o]:o,["ablocks-btn--"+h]:h,"ablocks-btn--primary":!b&&e,"ablocks-btn--secondary":"secondary"===b&&!a,"ablocks-btn--tertiary":"tertiary"===b&&!a,"ablocks-btn--primary-disabled":a&&!b,"ablocks-btn--secondary-disabled":a&&"secondary"===b,"ablocks-btn--tertiary-disabled":a&&"tertiary"===b});return"link"===c?(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("a",{href:d,className:r||g,onClick:l,disabled:a,style:n,rel:"noreferrer",target:u,children:[i&&"right"!==o?i:"",e&&(0,L.jsx)("span",{className:"ablocks-btn--label",children:e}),i&&"right"===o&&i]})}):(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("button",{type:c,className:r||g,disabled:a,onClick:l,style:n,children:["right"!==o&&i,e&&(0,L.jsx)("span",{className:"ablocks-btn--label",children:e | |
| 52 | -}),"right"===o&&i]})})},O={tooltipText:I().string,children:I().node},Y=t=>{const{tooltipText:e="",children:i="",position:o="top"}=t,[l,n]=(0,a.useState)(!1);return(0,L.jsxs)("div",{className:`ablocks-tooltip tooltip--${o}`,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},children:[l&&(0,L.jsx)("div",{className:"ablocks-tooltip__text ",children:e}),i]})};Y.propsTypes=O;const X=Y,B=t=>[...t||[]].sort((t,e)=>{const i=t=>!t.min&&!t.max;if(i(t)!==i(e))return i(t)?-1:1;const o=(e.width||0)-(t.width||0);return 0!==o?o:String(t.id).localeCompare(String(e.id))}),E=B(Array.isArray(M.rI)&&M.rI.length?M.rI:[{id:"Desktop",label:"Desktop",suffix:"",width:0,min:0,max:0},{id:"Tablet",label:"Tablet",suffix:"Tablet",width:800,min:0,max:800},{id:"Mobile",label:"Mobile",suffix:"Mobile",width:480,min:0,max:480}]),F=["Desktop","Tablet","Mobile"],q="ablocks/responsive",$=t=>"Tablet"===t?"tablet":"Mobile"===t?"mobile":"desktop";(0,r.select)(q)||(0,r.register)((0,r.createReduxStore)(q,{reducer(t={ | |
| 53 | -customDevice:null,devices:E},e){switch(e.type){case"SET_CUSTOM_DEVICE":return{...t,customDevice:e.device};case"SET_DEVICES":return{...t,devices:B(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 G=()=>{const t=(0,r.select)(q)?.getDevices?.();return Array.isArray(t)&&t.length?t:E},Z=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=>G().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}},K=t=>{const e=t||{};return e.max?e.max:e.min?e.min:99999},J=t=>G().filter(e=>{const{min:i,max:o}=Z(e);return!((i||o)&&(i&&t<i||o&&t>o))}),Q={fontSize:"14px",width:"14px",height:"14px"},tt=(0,a.forwardRef)((t,e)=>{const{wpDevice:i,customDevice:o,devices:n}=(0,r.useSelect)(t=>({ | |
| 54 | -wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(q)?.getCustomDevice()||null,devices:t(q)?.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=>F.includes(t.id)?(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--${$(t.id)}`}):(0,L.jsx)("span",{className:"dashicons dashicons-editor-expand",style:Q}),g=t=>F.includes(t.id)?t.label+(t.width?` (≤${t.width}px)`:""):`${t.width}px`,f=F.includes(b.id);return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(A.ButtonGroup,{className:"ablocks-responsive-navigation",children:[(0,L.jsx)(V,{onClick:p,ref:e,title:f?void 0:g(b),icon:f?h(b):(0,L.jsx)(X,{tooltipText:g(b),position:"bottom",children:h(b)})}),(0,L.jsx)("div",{ | |
| 55 | -className:`ablocks-responsive-navigation__dropdown-items ${c&&"ablocks-responsive-navigation__dropdown--is-open"}`,ref:u,children:n.map(t=>{const e=F.includes(t.id);return(0,L.jsx)(V,{className:s===t.id?"is-active":"",onClick:()=>(t=>{F.includes(t.id)?((0,r.dispatch)(q).setCustomDevice(null),(0,r.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(t.id)):((0,r.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType("Desktop"),(0,r.dispatch)(q).setCustomDevice(t.id)),p()})(t),title:e?void 0:g(t),icon:(0,L.jsx)(X,{tooltipText:g(t),position:"right",children:h(t)})},t.id)})})]})})});tt.propTypes={};const et=tt,it={label:I().string,isResponsive:I().bool,isHeader:I().bool,affordance:I().node};function ot({label:t,isResponsive:e=!0,isHeader:i=!1,affordance:o=null}){return i?(0,L.jsx)("div",{className:"ablocks-component-control-header",children:t}):t||o?(0,L.jsxs)("div",{className:"ablocks-component-control-label",children:[(0,L.jsx)("span",{ | |
| 56 | -className:"ablocks-component-control-label__label",children:t}),e&&(0,L.jsx)(et,{}),o&&(0,L.jsx)("span",{className:"ablocks-component-control-label__affordance",children:o})]}):null}ot.propTypes=it;const at=()=>{const{wpDevice:t,customDevice:e,devices:i}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||"Desktop",customDevice:t(q)?.getCustomDevice()||null,devices:t(q)?.getDevices()||[]}),[]),o="Desktop"!==t?t:e||"Desktop",a=i.find(t=>t.id===o);return a?a.suffix:"Desktop"===o?"":o},lt={options:I().array,attributeObjectKey:I().string,defaultValue:I().string,attributeName:I().string,onChangeHandler:I().func,isResponsive:I().bool,attributeDefaultValue:I().object,setAttributes:I().func,getAttributeDefaultValue:I().func,attributeValue:I().any},nt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],st=(0, | |
| 57 | -a.forwardRef)(({options:t=nt,attributeValue:e,attributeName:i,onChangeHandler:o,attributeObjectKey:l="",getAttributeDefaultValue:n,setAttributes:s,isResponsive:r=!0,attributeDefaultValue:b={}},c)=>{const d=at(),[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,L.jsxs)("div",{className:"ablocks-unit-select",ref:m,children:[(0,L.jsx)(V,{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,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"}),iconPosition:"right"}),(0,L.jsx)("div",{className:`ablocks-unit-select__dropdown-items ${u&&"ablocks-unit-select__dropdown--is-open"}`,children:t.map((t,a)=>(0,L.jsx)(V,{ | |
| 58 | -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))})]})});st.propTypes=lt;const rt=st,bt={attributeName:I().string,deviceType:I().string,attributeValue:I().any,changeHandler:I().func,setAttributes:I().func,isResponsive:I().bool,attributeObjectKeySuffix:I().string,isDefaultLinked:I().bool,isDisableLeftRight:I().bool};function ct({attributeValue:t,attributeName:e="",deviceType:i="",changeHandler:o,setAttributes:a,isResponsive:l,attributeObjectKeySuffix:n="",isDefaultLinked:s=!0,isDisableLeftRight:r=!1}){const b={},d=l&&i;if(d){ | |
| 59 | -const e=t["common"+n],i=t["common"+n+"Tablet"],o=t["common"+n+"Mobile"],a=t["top"+n],l=t["top"+n+"Tablet"],s=t["top"+n+"Mobile"],r=t["right"+n],c=t["right"+n+"Tablet"],d=t["right"+n+"Mobile"],u=t["bottom"+n],p=t["bottom"+n+"Tablet"],m=t["bottom"+n+"Mobile"],h=t["left"+n],g=t["left"+n+"Tablet"],f=t["left"+n+"Mobile"],y=i||l||e||a||"",T=i||c||e||r||"",H=i||p||e||u||"",M=i||g||e||h||"";b.Tablet={top:y,right:T,bottom:H,left:M},b.Mobile={top:o||s||y,right:o||d||T,bottom:o||m||H,left:o||f||M}}const u=void 0!==t?.["isLinked"+n+i]?t?.["isLinked"+n+i]:s,p=e=>t["common"+n+i]||t[e+n+i]||"",m=t=>d&&b[i]?.[t]||"",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,L.jsxs)("div",{className:"ablocks-control__fields",children:[(0,L.jsxs)("div",{className:"ablocks-control__field",children:[(0,L.jsx)(A.TextControl,{id:`ablocks-${e}-top`,className:"ablocks-dimension-control__input ablocks-dimension-control__input--top",type:"number", | |
| 60 | -onChange:t=>g(t,"top"),placeholder:m("top"),value:p("top")}),(0,L.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-top`,children:(0,z.__)("Top","ablocks")})]}),(0,L.jsxs)("div",{className:"ablocks-control__field",children:[(0,L.jsx)(A.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,L.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-right`,children:(0,z.__)("Right","ablocks")})]}),(0,L.jsxs)("div",{className:"ablocks-control__field",children:[(0,L.jsx)(A.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,L.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-bottom`, | |
| 61 | -children:(0,z.__)("Bottom","ablocks")})]}),(0,L.jsxs)("div",{className:"ablocks-control__field",children:[(0,L.jsx)(A.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,L.jsx)("label",{className:"ablocks-dimension-control__label",htmlFor:`ablocks-${e}-left`,children:(0,z.__)("Left","ablocks")})]}),(0,L.jsx)("div",{className:"ablocks-control__field ablocks-control__field--control",children:(0,L.jsx)(V,{className:u?"ablocks-btn-Linked":"ablocks-btn-unlinked",icon:(0,L.jsx)(X,{tooltipText:(0,z.__)("Link Value Together","ablocks"),position:"bottom-left",children:(0,L.jsx)("span",{className:"ablocks-icon "+(u?"ablocks-icon--link":"ablocks-icon--unlink")})}),onClick:()=>{let o={};if(u){const e=t["common"+n+i]||"";o=h(t,e),o["common"+n+i]=""}else{const e=t["top"+n+i]||t["right"+n+i]||t["bottom"+n+i]||t["left"+n+i]||"";o=h(t,""), | |
| 62 | -o["common"+n+i]=e}o["isLinked"+n+i]=!u,a({[e]:(0,M.jI)((0,c.tJ)(i),o)})}})})]})}ct.propTypes=bt;const dt=ct,ut=({figmaPasteBtnClickHandler:t=()=>{},position:e="top"})=>(0,L.jsx)("div",{className:"ablocks-figma-styles-paster-component-wrapper",children:(0,L.jsx)(X,{tooltipText:(0,z.__)("paste figma styles","ablocks"),position:e,children:(0,L.jsx)("span",{role:"presentation",onClick:async()=>{try{if("http:"===window.location.protocol)return(0,M.An)({message:(0,z.__)('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,z.__)("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"})}) | |
| 63 | -}),pt=t=>t.replace(/var\(\s*--[\w-]+,\s*([^\)]+)\)/g,"$1"),mt=(t,e)=>{const i="box"===e?/box-shadow\s*:\s*([^;]+);/:/text-shadow\s*:\s*([^;]+);/,o=t.match(i);if(!o)return null;let a=o[1].trim();const l={horizontal:0,vertical:0,blur:0,color:""};"box"===e&&(l.shadowType="outer_shadow",l.shadow="",l.spread=0,a.includes("inset")&&(l.shadowType="inner_shadow",a=a.replace("inset","").trim()));const n=a.match(/(-?\d+(?:px)?(?=\s|$))|rgba?\([^)]+\)|#[0-9A-Fa-f]{3,8}/g);if(!n)throw new Error("Invalid text-shadow format");const s=n.pop();l.color=s;const[r,b,c=0,d=0]=n;return l.horizontal=parseInt(r),l.vertical=parseInt(b),l.blur=parseInt(c),"box"===e&&(l.spread=parseInt(d),l.shadow=`${r} ${b} ${c} ${d} ${s}`),l},ht=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 | |
| 64 | -;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},gt=t=>{const e={unitRadius:null,isLinkedRadius:null},i=/var\([^,]+,\s*([\d.]+(?:px|em|rem|%))\)/;function o(t){const e=t.match(i);return e?e[1]:t}const a=t.match(/border-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?)(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?;/);if(a){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,""), | |
| 65 | -e.isLinkedRadius=!1):(e.commonRadius=s.replace(e.unitRadius,""),e.isLinkedRadius=!0),e}const l=[...t.matchAll(/border-(top-left|top-right|bottom-right|bottom-left)-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%));/g)];return l.length>0?(l.forEach(t=>{const i=t[1],a=o(t[2]),l=a.match(/(px|em|rem|%)/);switch(e.unitRadius=e.unitRadius||(l?l[1]:null),i){case"top-left":e.topRadius=a.replace(e.unitRadius,"");break;case"top-right":e.rightRadius=a.replace(e.unitRadius,"");break;case"bottom-right":e.bottomRadius=a.replace(e.unitRadius,"");break;case"bottom-left":e.leftRadius=a.replace(e.unitRadius,"")}}),e.isLinkedRadius=!1,e):e},ft=(t,e)=>{let i;switch(e){case"typography":{const e={},o=(t=pt(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=>{ | |
| 66 | -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=mt(t,"text");break;case"box-shadow":i=mt(t,"box");break;case"color-gradient":{const e=/(linear-gradient|radial-gradient|conic-gradient|repeating-linear-gradient|repeating-radial-gradient)\(([^;]*)\)/i,o=/(?:color|background(?:-image|-color)?)\s*:\s*(?:var\([^\)]+,\s*)?(#[0-9a-fA-F]{3,8}|rgba?\([^\)]+\)|hsla?\([^\)]+\))/i;let a="";const l=t.match(e);if(l)a=l[0];else{const e=t.match(o);e&&(a=e[1])}i=a}break;case"margin":case"padding":i=((t,e)=>{t=pt(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 | |
| 67 | -;i?o[i]=s:n=t.match(new RegExp(`\\b${e}\\s*:\\s*(\\d+)(px|em|rem|%)?(\\s+\\d+(px|em|rem|%)?){0,3}`))[0].replace(new RegExp(`${e}\\s*:\\s*`),"").split(/\s+/)}if(n.length){const t=n.map(t=>`${parseInt(t)}`);switch(t.length){case 1:o.top=o.right=o.bottom=o.left=t[0];break;case 2:o.top=o.bottom=t[0],o.right=o.left=t[1];break;case 3:o.top=t[0],o.right=o.left=t[1],o.bottom=t[2];break;case 4:o.top=t[0],o.right=t[1],o.bottom=t[2],o.left=t[3]}}if(o.top===o.right&&o.right===o.bottom&&o.bottom===o.left)return{common:o.top,unit:l};const s={isLinked:!1,unit:l};return(o.top||0===o.top)&&(s.top=o.top),(o.right||0===o.right)&&(s.right=o.right),(o.bottom||0===o.bottom)&&(s.bottom=o.bottom),(o.left||0===o.left)&&(s.left=o.left),s})(t,e);break;case"border":i={...ht(t)||{},...gt(t)||{}};break;default:i={}}return i},yt={isResponsive:I().bool,label:I().string,attributeName:I().string,styleType:I().string,attributeValue:I().any,setAttributes:I().func,onChangeHandler:I().func, | |
| 68 | -attributeObjectKeySuffix:I().string,isDisableLeftRight:I().bool},Tt=[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],Ht=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function Mt(t){const{styleType:e,isResponsive:i=!0,attributeName:o,attributeValue:a,onChangeHandler:n,setAttributes:s,label:r="",attributeObjectKeySuffix:b="",isDisableLeftRight:d=!1}=t,u=at(),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")?Ht:Tt,h=()=>e?(0,L.jsx)(ut,{figmaPasteBtnClickHandler:t=>{const i=ft(t,e);Object.values(i||{}).some(t=>t)?(s({[o]:i}),(0,M.An)({message:`${e} Style Successfully Pasted`,config:{id:"ablocks-notice-figma-paste-margin-padding-success-notice",type:"snackbar"}})):(0,M.An)({message:`Copy/Paste Failed: Wrong ${e} style`,config:{ | |
| 69 | -id:"ablocks-notice-figma-paste-margin-padding-error-notice",type:"snackbar"}})}}):(0,L.jsx)(L.Fragment,{});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-control ablocks-control--dimensions",children:[(0,L.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:r,isResponsive:i}),(0,L.jsx)(h,{})]}),(0,L.jsx)(rt,{attributeName:o,attributeObjectKey:"unit"+b,attributeValue:a,setAttributes:s,getAttributeDefaultValue:c.tJ,options:m})]}),(0,L.jsx)(dt,{...p,attributeName:o,setAttributes:s,isDefaultLinked:a?.["isLinked"+b+(i?u:"")],attributeObjectKeySuffix:b})]})})}Mt.propTypes=yt;const xt={isResponsive:I().bool,min:I().number,max:I().number,label:I().string,attributeName:I().string,attributeObjectKey:I().string,attributeValue:I().any,onChangeHandler:I().func,isInline:I().bool,hasUnit:I().bool,unitOptions:I().array,attributeDefaultValue:I().any,autoSyncRange:I().bool,attributeDataType:I().string, | |
| 70 | -unitDefaultValue:I().string},kt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function vt(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",min:b=-1e3,max:c=1e3,attributeObjectKey:d="value",step:u,isInline:p=!0,hasUnit:m=!1,unitOptions:h=kt,attributeDefaultValue:g,unitDefaultValue:f="px",autoSyncRange:y=!0,attributeDataType:T=""}=t,H=at(),x=(0,M.Bn)(g,i);let k;if(m&&!u){const t=o?.[e?d+"Unit"+H:d+"Unit"];let i="";""!==t&&void 0!==t||(i=(0,M.Ic)(o,"valueUnit",H)),k="em"===t||"rem"===t||"em"===i||"rem"===i?.1:1}const v=e?(0,M.Ic)(o,d,H,x):!e&&m?(0,M.Ic)(o,d):e||m||"object"!==T?o:(0,M.Ic)(o,d),_=m&&(()=>{let t;return t=e&&m?d+"Unit"+H:!e&&m?`${d}Unit`:!m&&e?d+H:d,o[t]?o[t]:(0,M.Ic)(o,`${d}${m?"Unit":""}`,H)||f})();let R=b,S="%"===_||"vw"===_?100:c;return y&&("px"===_?(S=c,R=0):"%"===_||"vw"===_||"vh"===_?(S=100,R=0):"rem"!==_&&"em"!==_||(S=10,R=.1)),(0,L.jsx)(l().Fragment,{ | |
| 71 | -children:(0,L.jsxs)("div",{className:s()("ablocks-control ablocks-control--range",{"ablocks-control--inline":p}),children:[(0,L.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,L.jsx)(ot,{label:r,isResponsive:e}),m&&(0,L.jsx)(rt,{attributeName:i,attributeObjectKey:d+"Unit",attributeValue:o,setAttributes:n,attributeDefaultValue:x,options:h,isResponsive:e})]}),(0,L.jsx)(A.RangeControl,{value:v,onChange:t=>((t,l)=>{if(a){let o;o=e||"object"!==T?e?`${d}${l}`:i||d:d,a(t,o)}else((t,a)=>{n(e?{[i]:(0,M.jI)(x,{...o,[d+a]:t})}:!e&&m?{[i]:(0,M.jI)(x,{...o,[d]:t})}:e||m||"object"!==T?{[i]:t}:{[i]:(0,M.jI)(x,{...o,[d]:t})})})(t,l)})(t,H),min:R||0,max:S,step:u||k})]})})}vt.propTypes=xt;const _t=(t=!1,e="value",i={})=>t?{[e]:"",[e+"Tablet"]:"",[e+"Mobile"]:"",...i}:{[e]:"",...i},Rt=[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"DIV",value:"div"},{label:"SPAN",value:"span"},{ | |
| 72 | -label:"P",value:"p"}],St={label:I().string,isSearch:I().bool,options:I().array,isResponsive:I().bool,onChangeHandler:I().func,attributeValue:I().oneOfType([I().string,I().object,I().array]),attributeObjectKey:I().string,isInline:I().bool,isMulti:I().bool,className:I().string,disabled:I().bool},Wt=t=>{const{label:e="",isSearch:i=!1,attributeValue:o="",onChangeHandler:l,attributeName:n,setAttributes:s,attributeObjectKey:r="",isResponsive:b=!1,options:c=[],isMulti:d=!1,className:u="",disabled:p=!1}=t,m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=at();let f;f=r?b?o[r+g]:o[r]:b?o+g:o;const[y,T]=(0,a.useState)(!1),[H,x]=(0,a.useState)(""),[k,v]=(0,a.useState)(f),_=(t,e)=>{l?l(t,b?r+e:r):R(t,e)},R=(t,e)=>{if(r){const i=b?r+e:r;return s({[n]:(0,M.jI)(_t(b,r),{...o,[i]:t})})}return s({[n]:t})},S=(t,e)=>{if(!e?.isDisabled&&!p)if(d){const t=[...k];t.push(e?.value),_(t,g),v(t)}else x(""),_(e.value,g)};return(0,a.useEffect)(()=>{if(Array.isArray(f)&&Array.isArray(k)){const t=f?.length,e=k?.length | |
| 73 | -;t===e&&f.every((t,e)=>t===k[e])||v(f)}else f!==k&&v(f)},[f,k]),(0,a.useEffect)(()=>{const t=t=>{m?.current&&!m?.current?.contains(t.target)&&T(!1)};if(document.addEventListener("mousedown",t),h.current){h.current.style.maxHeight="";const t=h.current.offsetHeight,e=m.current.getBoundingClientRect(),i=(t=>{let e=t?.parentElement;for(;e&&e!==document.body;){const t=window.getComputedStyle(e);if(("auto"===t.overflowY||"scroll"===t.overflowY)&&e.scrollHeight>e.clientHeight){const t=e.getBoundingClientRect();return{top:t.top,bottom:t.bottom}}e=e.parentElement}return{top:0,bottom:window.innerHeight}})(m.current),o=i.bottom-e.bottom,a=e.top-i.top,l=8;o<t&&a>o?(h.current.style.top=`-${t}px`,t>a-l&&(h.current.style.maxHeight=`${Math.max(a-l,60)}px`)):(h.current.style.top="100%",t>o-l&&(h.current.style.maxHeight=`${Math.max(o-l,60)}px`))}return()=>{document.removeEventListener("mousedown",t)}},[y,H,c]),(0,L.jsxs)("div",{className:"ablocks-control ablocks-custom-select"+(u?` ${u}`:""), | |
| 74 | -children:[(0,L.jsx)(ot,{label:e,isResponsive:b}),(0,L.jsxs)("div",{className:"ablocks-custom-select--container",ref:m,children:[(0,L.jsxs)("div",{role:"presentation",className:"ablocks-custom-select--inner-content"+(p?" disabled":""),onClick:()=>!p&&T(!y),onKeyDown:()=>{},children:[(0,L.jsxs)("div",{className:"ablocks-custom-select--box",children:[d?(0,L.jsx)("div",{className:"ablocks-custom-select--multi-value",children:(k?.length>0?c.filter(t=>k.includes(t.value))?.map((t,e)=>(0,L.jsxs)("div",{className:"ablocks-multi-select--option",children:[(0,L.jsx)("span",{className:"ablocks-multi-select--option-label",children:t?.label}),(0,L.jsx)("span",{role:"presentation",className:"ablocks-multi-select--option-close",onClick:e=>((t,e)=>{t.stopPropagation();const i=k.filter((t,i)=>t!==e.value);_(i,g),v(i)})(e,t),onKeyDown:()=>{},children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close"})})]},e)):(0,M.Ic)(o,r,g))||"select..."}):(0,L.jsx)("div",{ | |
| 75 | -className:"ablocks-custom-select--single-value",children:i&&H?.length>0?"":(()=>{const t=c?.find(t=>t.value===f)?.label,e=(0,M.Ic)(o,r,g);if(t)return t;const i=c?.find(t=>t.value===e)?.label;return i||void 0})()||c[0]?.label||"select..."}),i&&(0,L.jsx)("div",{className:"ablocks-custom-select--input-container",children:(0,L.jsx)("input",{className:"ablocks-custom-select--search-option",type:"text",value:H,onChange:t=>{x(t.target.value)}})})]}),(0,L.jsx)("div",{className:"ablocks-custom-select--indicator",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"})})]}),(0,L.jsx)("div",{role:"presentation",className:"ablocks-custom-select--options"+(y?" ablocks-custom-select--options--toggle":""),onClick:()=>{T(!y)},onKeyDown:()=>{},ref:h,children:d?c?.filter(t=>!k.includes(t.value)).map((t,e)=>(0,L.jsx)("span",{role:"presentation",className:"ablocks-custom-select--option",onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e)):(0,L.jsx)(L.Fragment,{ | |
| 76 | -children:c.filter(t=>t.label.toLowerCase().includes(H.toLowerCase()))?.map((t,e)=>(0,L.jsx)("span",{role:"presentation",className:"ablocks-custom-select--option"+(f===t.value&&c.findIndex(e=>e.value===t.value)===e?" ablocks-custom-select--option--active":""),onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e))})})]})]})};Wt.propTypes=St;const Ut=Wt,Pt={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func},jt=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,label:n=""}=t,s=at(),r=(0,p.tJ)(e);let b="custom"===(o["widthType"+s]||o.widthType);return"Mobile"!==s||"auto"!==o.widthTypeTablet&&"full"!==o.widthTypeTablet||"custom"===o.widthTypeMobile||(b=!1),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-width-control",children:[(0,L.jsx)(Ut,{label:n,isResponsive:e,options:p.v2,attributeValue:o,attributeObjectKey:"widthType",attributeName:i,setAttributes:a}),b&&(0,L.jsx)("div",{ | |
| 77 | -className:"ablocks-width-control--range-control",children:(0,L.jsx)(vt,{...t,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],label:(0,z.__)("Custom Width","ablocks"),hasUnit:!0,unitDefaultValue:"%",isInline:!1,onChangeHandler:(t,e="")=>a({[i]:(0,M.jI)(r,{...o,[e]:t})}),attributeName:i,attributeObjectKey:"customWidth",attributeDefaultValue:r,autoSyncRange:!0})})]})})};jt.propTypes=Pt;const wt=jt,zt={normal:I().node.isRequired,hover:I().node.isRequired};function Ct(t){const{normal:e="",hover:i=""}=t,o=[{name:"normal",render:e,title:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("span",{className:"ablocks-text",children:(0,z.__)("Normal","ablocks")})}),className:"ablocks-normal-hover-tab__item"},{name:"hover",render:i,title:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("span",{className:"ablocks-text",children:(0,z.__)("Hover","ablocks")})}),className:"ablocks-normal-hover-tab__item"}];return(0, | |
| 78 | -L.jsx)(l().Fragment,{children:(0,L.jsx)(A.TabPanel,{className:"ablocks-normal-hover-tabs",activeClass:"ablocks-normal-hover-tab__item--active",tabs:o,children:t=>t.render})})}Ct.propTypes=zt;var At=i(66087),Lt=i.n(At);const Dt={margin:I().string,topMargin:I().string,bottomMargin:I().string};function Nt({margin:t="",topMargin:e="",bottomMargin:i=""}){return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)("div",{className:"ablocks-component-separator",style:{marginTop:`${t||e}px`,marginBottom:`${t||i}px`}})})}Nt.propTypes=Dt;const It={isResponsive:I().bool,label:I().string,attributeName:I().string,setAttributes:I().func,attributeValue:I().any,attributeObjectKey:I().string};function Vt(t){const{isResponsive:e=!0,label:i="",attributeName:o,attributeValue:a,setAttributes:n,onChangeHandler:s,attributeObjectKey:r=""}=t,b=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-toggle-control",children:[i&&(0,L.jsx)(ot,{label:i,isResponsive:e}),(0,L.jsx)(A.ToggleControl,{ | |
| 79 | -className:"ablocks-components-toggle-control",checked:r?a[r]:a,onChange:t=>{return i=t,l=b,void(s?s(i,e?r+l:r):((t,i)=>{n(e?{[o]:{...a,[r+i]:t}}:""!==r?{[o]:{...a,[r]:t}}:{[o]:t})})(i,l));var i,l}})]})})}Vt.propTypes=It;const Ot=window.wp.element;function Yt({label:t="",isShowPrimaryLabel:e="",FigmaPasterComponent:i=()=>(0,L.jsx)(L.Fragment,{}),CustomToggler:o,isReset:a,handleReset:l,placement:n="left-end",children:s,className:r="",isVisible:b,toggleVisible:c}){const[d,u]=(0,Ot.useState)(null),p=(0,Ot.useRef)(null),m=(0,Ot.useRef)(!1),h=(0,Ot.useRef)(`ablocks-popover-${Math.floor(1e4*Math.random())}`).current;return(0,Ot.useEffect)(()=>{const t=t=>{ | |
| 80 | -m.current?m.current=!1:!p.current||p.current.contains(t.target)||t.target.closest(".ablocks-component-popover-toggler-wrapper")||t.target.closest(".ablocks-control--gradient-active-color-popover-root")||t.target.closest(".ablocks-component-popover__color-button")||t.target.closest(".components-popover__content")||t.target.closest(".ablocks-box-shadow")||t.target.closest(".ablocks-pro-component-popover-toggler-wrapper")||c(!1)};return b?document.addEventListener("mousedown",t):document.removeEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[b,c]),(0,L.jsxs)("div",{className:"ablocks-component-popover",ref:u,children:[(0,L.jsxs)("div",{className:"ablocks-component-popover__field",children:[e&&(0,L.jsx)("span",{children:t}),(0,L.jsx)("div",{role:"presentation",className:"ablocks-component-popover-toggler-wrapper",onClick:()=>{m.current=!0,c(!b)},children:o&&(0,L.jsx)("div",{className:"ablocks-component-popover__custom-toggler-wrapper",children:(0,L.jsx)(o,{ | |
| 81 | -isVisible:b,toggleVisible:c})})})]}),b&&(0,L.jsxs)(A.Popover,{className:`ablocks-component-popover__popover ${r} ${h}`,anchor:d,placement:n,ref:p,children:[(0,L.jsxs)("div",{className:"ablocks-component-popover__head",children:[(0,L.jsx)("h4",{className:"ablocks-component-popover__head-title",children:t}),(0,L.jsxs)("div",{className:"ablocks-component-popover__head-control",children:[(0,L.jsx)(i,{position:"left"}),a&&(0,L.jsx)(V,{onClick:l,icon:(0,L.jsx)(X,{tooltipText:(0,z.__)("Back To Default","ablocks"),position:"left",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"})}),preset:"transparent"}),(0,L.jsx)(V,{onClick:()=>c(!1),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),preset:"transparent"})]})]}),(0,L.jsx)("div",{className:"ablocks-component-popover__content",children:s})]})]})}const Xt=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(!1),n=(0,a.useRef)(null),{hover:s,resetHandler:r,attributeValue:b,label:c}=t | |
| 82 | -;let d="rotate",u="rotate3D",p="rotateX",m="rotateY",h="rotateP";s&&(d="rotateH",u="rotate3DH",p="rotateXH",m="rotateYH",h="rotatePH"),(0,a.useEffect)(()=>{l(!!(b[d]||b[u]||b[p]||b[m]||b[h]))},[b[d],b[u],b[p],b[m],b[h]]);const g=()=>{const t={};["","Tablet","Mobile"].forEach(e=>{t[`${d}${e}`]="",t[`${u}${e}`]=!1,t[`${p}${e}`]="",t[`${m}${e}`]="",t[`${h}${e}`]=""}),r(t),l(!1)},f={...t,min:-360,max:360};return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[c&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:c,isResponsive:!1})}),(0,L.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:n,children:(0,L.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[o&&(0,L.jsx)(X,{ | |
| 83 | -tooltipText:(0,z.__)("Back To Default","ablocks"),position:"top",children:(0,L.jsx)(V,{onClick:g,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,L.jsx)(V,{ref:n,onClick:()=>{i(!e)},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:e?"ablocks-component-popover__field--active":""})]})})}),e&&(0,L.jsxs)(Yt,{label:(0,z.__)("Rotate","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:g,isVisible:e,toggleVisible:i,anchorRef:n,children:[(0,L.jsx)(vt,{...f,label:(0,z.__)("Rotate","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:d}),(0,L.jsx)(Vt,{...f,isResponsive:!1,label:(0,z.__)("3D Rotate","ablocks"),attributeObjectKey:u}),b[u]&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{...f,label:(0,z.__)("Rotate X","ablocks"),isResponsive:!0,attributeObjectKey:p,isInline:!1}),(0,L.jsx)(vt,{...f,label:(0,z.__)("Rotate Y","ablocks"),isResponsive:!0,attributeObjectKey:m,isInline:!1}),(0, | |
| 84 | -L.jsx)(vt,{...f,label:(0,z.__)("Perspective","ablocks"),isResponsive:!0,min:0,attributeObjectKey:h,isInline:!1})]})]})]})})]})},Bt=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(!1),n=(0,a.useRef)(null),{hover:s,resetHandler:r,attributeValue:b={},label:c}=t;let d="scaleProportions",u="scale",p="scaleX",m="scaleY";s&&(d="scaleProportionsH",u="scaleH",p="scaleXH",m="scaleYH"),(0,a.useEffect)(()=>{l(!!(b[d]||b[u]||b[p]||b[m]))},[b[d],b[u],b[p],b[m]]);const h=()=>{const t={};["","Tablet","Mobile"].forEach(e=>{t[`${d}${e}`]="",t[`${u}${e}`]="",t[`${p}${e}`]="",t[`${m}${e}`]=""}),r(t),l(!1)},g={...t,min:0,max:2,step:.1};return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[c&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:c,isResponsive:!1})}),(0,L.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{ | |
| 85 | -className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:n,children:(0,L.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[o&&(0,L.jsx)(X,{tooltipText:(0,z.__)("Back To Default","ablocks"),position:"top",children:(0,L.jsx)(V,{onClick:h,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,L.jsx)(V,{ref:n,onClick:()=>{i(!e)},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:e?"ablocks-component-popover__field--active":""})]})})}),e&&(0,L.jsxs)(Yt,{label:(0,z.__)("Scale","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:h,isVisible:e,toggleVisible:i,anchorRef:n,children:[(0,L.jsx)(Vt,{...g,isResponsive:!1,label:(0,z.__)("Keep Proportions","ablocks"),attributeObjectKey:d}),b[d]?(0,L.jsx)(vt,{...g,label:(0,z.__)("Scale","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:u}):(0,L.jsxs)(L.Fragment,{ | |
| 86 | -children:[(0,L.jsx)(vt,{...g,label:(0,z.__)("Scale X","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:p}),(0,L.jsx)(vt,{...g,label:(0,z.__)("Scale Y","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:m})]})]})]})})]})},Et=t=>{const{label:e,hover:i,resetHandler:o,attributeValue:l={}}=t,[n,s]=(0,a.useState)(!1),[r,b]=(0,a.useState)(!1),c=(0,a.useRef)(null);let d="offsetX",u="offsetY";i&&(d="offsetXH",u="offsetYH"),(0,a.useEffect)(()=>{b(!!l[d]||!!l[u])},[l[d],l[u]]);const p=()=>{const t={};["","Tablet","Mobile"].forEach(e=>{t[`${d}${e}`]="",t[`${u}${e}`]=""}),o(t),b(!1)},m=l.offsetXUnit,h="em"===m||"rem"===m?.1:1,g=l.offsetYUnit,f="em"===g||"rem"===g?.1:1,y={...t,min:-1e3,max:1e3};return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[e&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:e,isResponsive:!1})}),(0,L.jsx)("div",{className:"ablocks-control-color-gradient",children:(0, | |
| 87 | -L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:c,children:(0,L.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[r&&(0,L.jsx)(X,{tooltipText:(0,z.__)("Back To Default","ablocks"),position:"top",children:(0,L.jsx)(V,{onClick:p,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,L.jsx)(V,{ref:c,onClick:()=>{s(!n)},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:n?"ablocks-component-popover__field--active":""})]})})}),n&&(0,L.jsxs)(Yt,{label:(0,z.__)("Offset","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:p,isVisible:n,toggleVisible:s,anchorRef:c,children:[(0,L.jsx)(vt,{...y,label:(0,z.__)("Offset X","ablocks"),isInline:!1,hasUnit:!0,attributeObjectKey:d,autoSyncRange:!0,step:h}),(0,L.jsx)(vt,{...y,label:(0, | |
| 88 | -z.__)("Offset Y","ablocks"),isInline:!1,hasUnit:!0,attributeObjectKey:u,autoSyncRange:!0,step:f})]})]})})]})},Ft=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(!1),{label:n,hover:s,resetHandler:r,attributeValue:b}=t,c=(0,a.useRef)(null);let d="skewX",u="skewY";s&&(d="skewXH",u="skewYH"),(0,a.useEffect)(()=>{l(!!b[d]||!!b[u])},[b[d],b[u]]);const p=()=>{const t={};["","Tablet","Mobile"].forEach(e=>{t[`${d}${e}`]="",t[`${u}${e}`]=""}),r(t),l(!1)},m={...t,min:-360,max:360};return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[n&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:n,isResponsive:!1})}),(0,L.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:c,children:(0, | |
| 89 | -L.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[o&&(0,L.jsx)(X,{tooltipText:(0,z.__)("Back To Default","ablocks"),position:"top",children:(0,L.jsx)(V,{onClick:p,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,L.jsx)(V,{ref:c,onClick:()=>{i(!e)},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:e?"ablocks-component-popover__field--active":""})]})})}),e&&(0,L.jsxs)(Yt,{label:(0,z.__)("Skew","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:p,isVisible:e,toggleVisible:i,anchorRef:c,children:[(0,L.jsx)(vt,{...m,label:(0,z.__)("Skew X","ablocks"),isInline:!1,attributeObjectKey:d}),(0,L.jsx)(vt,{...m,label:(0,z.__)("Skew Y","ablocks"),isInline:!1,attributeObjectKey:u})]})]})})]})},qt={changeHandler:I().func,deviceType:I().string,options:I().array,attributeValue:I().any,isResponsive:I().bool};function $t(t){ | |
| 90 | -const{changeHandler:e,deviceType:i="",options:o,attributeValue:a,isResponsive:n}=t;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)("div",{className:"ablocks-control__fields",children:o.map((t,o)=>(0,L.jsx)(V,{suffix:a===t.value?"active":"",onClick:()=>e(t.value===a?"":t.value,n?i:""),icon:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(X,{position:t?.tooltipPosition,tooltipText:t.label,children:(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--${t.icon}`})})}),preset:"transparent"},o))})})}$t.propTypes=qt;var Gt=i(21993);const Zt={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any,setAttributes:I().func,onChangeHandler:I().func,options:I().array,attributeObjectKey:I().string,isInline:I().bool};function Kt(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",attributeObjectKey:b="value",options:c=Gt.gh,isInline:d=!0}=t,u=e?at():"",p=e?(0,M.Ic)(o,b,u):o;return(0,L.jsx)(l().Fragment,{children:(0, | |
| 91 | -L.jsxs)("div",{className:s()("ablocks-control ablocks-control--alignment",{"ablocks-control--inline":d}),children:[r&&(0,L.jsx)(ot,{label:r,isResponsive:e}),(0,L.jsx)($t,{attributeName:i,deviceType:u,attributeValue:p,setAttributes:n,changeHandler:(t,l="")=>{a?a(t,e?b+l:i):((t,a="")=>{n(e?{[i]:(0,M.jI)((0,Gt.tJ)(e),{...o,[b+a]:t})}:{[i]:t})})(t,l)},options:c,isResponsive:e})]})})}Kt.propTypes=Zt;const Jt=t=>{const{setAttributes:e,attributeName:i,attributeValue:o,hover:a,attributeDefaultValue:l}=t;let n="flipHorizontal",s="flipVertical",r="xAnchorPoint",b="yAnchorPoint";a&&(n="flipHorizontalH",s="flipVerticalH",r="xAnchorPointH",b="yAnchorPointH");const c={...t,resetHandler:(t={})=>{e({[i]:(0,M.jI)(l,{...o,...t})})}};return(0,L.jsxs)("div",{className:"ablocks-control--transform-all-options-wrapper ablocks-control--transform-all-options-wrapper-"+(a?"hover":"normal"),children:[(0,L.jsx)(Xt,{...c,label:(0,z.__)("Rotate","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Et,{...c,label:(0, | |
| 92 | -z.__)("Offset","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Bt,{...c,label:(0,z.__)("Scale","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ft,{...c,label:(0,z.__)("Skew","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsxs)("div",{className:"ablocks-control--transform-options__flip",children:[(0,L.jsx)(Vt,{...c,isResponsive:!1,label:(0,z.__)("Flip Horizontal","ablocks"),attributeObjectKey:n}),(0,L.jsx)(Vt,{...c,isResponsive:!1,label:(0,z.__)("Flip Vertical","ablocks"),attributeObjectKey:s})]}),a&&(0,L.jsx)("div",{className:"ablocks-control--transform-transition-duration",children:(0,L.jsx)(vt,{...c,label:(0,z.__)("Transition Duration (ms)","ablocks"),isResponsive:!1,isInline:!1,attributeValue:o?.transitionH??0,attributeName:"",attributeObjectKey:"transitionH",step:.1,max:10,min:0})}),(0,L.jsx)(Nt,{}),(0,L.jsxs)("div",{className:"ablocks-control--transform-options__anchor--point",children:[(0,L.jsx)(Kt,{...c,label:(0,z.__)("X Anchor Point","ablocks"),isResponsive:!0,attributeObjectKey:r,isInline:!1,options:[{ | |
| 93 | -label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Kt,{...c,label:(0,z.__)("Y Anchor Point","ablocks"),isResponsive:!0,attributeObjectKey:b,isInline:!1,options:[{label:"align top",value:"top",icon:"align-top"},{label:"align center",value:"center",icon:"align-center"},{label:"align bottom",value:"bottom",icon:"align-bottom"}]})]})]})},Qt={attributeName:I().string,attributeValue:I().any,setAttributes:I().func},te=t=>{const{attributeName:e,setAttributes:i,attributeValue:o,isResponsive:l=!0}=t;(0,a.useEffect)(()=>{if(!0===o?.isApplied){const t=(0,M.jI)(n,{...o});if(Lt().isEmpty(Lt().omit(t,["isApplied"])))return t.isApplied=!1,i({[e]:t})}},[o]);const n=(0,g.tJ)(l),s=(t,a)=>{const l=(0,M.jI)(n,{...o,[a]:t});return Lt().isEmpty(Lt().omit(l,["isApplied"]))?l.isApplied=!1:l.isApplied=!0,i({[e]:l})};return(0,L.jsx)("div",{className:"ablocks-control ablocks-control--transform",children:(0,L.jsx)(Ct,{ | |
| 94 | -normal:(0,L.jsx)(Jt,{...t,onChangeHandler:s,attributeDefaultValue:n}),hover:(0,L.jsx)(Jt,{hover:!0,...t,onChangeHandler:s,attributeDefaultValue:n})})})};te.propTypes=Qt;const ee=te;var ie=function(t,e,i){var o=null,a=null,l=function(){o&&(clearTimeout(o),a=null,o=null)},n=function(){if(!e)return t.apply(this,arguments);var n=this,s=arguments,r=i&&!o;return l(),a=function(){t.apply(n,s)},o=setTimeout(function(){if(o=null,!r){var t=a;return a=null,t()}},e),r?a():void 0};return n.cancel=l,n.flush=function(){var t=a;l(),t&&t()},n};const oe={label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func,setAttributes:I().func,placeholder:I().string,description:I().string,isInline:I().bool,disableDynamicContent:I().bool};function ae(t){const{label:e="",placeholder:i="",description:o="",attributeName:l,attributeValue:n,setAttributes:r,onChangeHandler:b,isInline:c=!1,disableDynamicContent:d,dynamicType:u="text",attributeObjectValue:p,context:m}=t,[h,g]=(0, | |
| 95 | -a.useState)(n||"");(0,a.useEffect)(()=>{g(n||"")},[n]);const f=(0,a.useRef)(null),y=Bl({disableDynamicContent:d,attributeName:l,attributeValue:n,setAttributes:r,dynamicType:u,attributeObjectValue:p,context:m});return(0,L.jsxs)("div",{className:s()("ablocks-control ablocks-control--textarea",{"ablocks-control--inline":c}),children:[(0,L.jsx)(ot,{label:e,isResponsive:!1,affordance:y.affordance}),y.field||(0,L.jsx)(A.TextareaControl,{className:"ablocks-control__textarea",value:h,onChange:t=>{g(t),(t=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{const e=(0,M.Xz)(t);b?b(e):r({[l]:e})},300)})(t)},placeholder:i}),o&&(0,L.jsx)("p",{className:"ablocks-control__description",children:o})]})}ae.propTypes=oe;const le=M.Uz?.academy_lms?[{label:(0,z.__)("Academy LMS","ablocks"),value:"alms",options:[{label:(0,z.__)("Count Topics","ablocks"),value:"numberOfTopics"},{label:(0,z.__)("Count Reviews","ablocks"),value:"numberOfReviews"},{label:(0,z.__)("Count Enrolled","ablocks"), | |
| 96 | -value:"numberOfEnrolled"},{label:(0,z.__)("Total Duration","ablocks"),value:"totalDuration"}]}]:[],ne=[{label:(0,z.__)("Post","ablocks"),value:"post",options:[{label:(0,z.__)("Post Custom Field","ablocks"),value:"post-custom-field"},{label:(0,z.__)("Post Date","ablocks"),value:"post-date"},{label:(0,z.__)("Post Excerpt","ablocks"),value:"post-excerpt"},{label:(0,z.__)("Post ID","ablocks"),value:"post-id"},{label:(0,z.__)("Post Terms","ablocks"),value:"post-terms"},{label:(0,z.__)("Post Time","ablocks"),value:"post-time"},{label:(0,z.__)("Post Title","ablocks"),value:"post-title"}]},{label:(0,z.__)("Featured Image Data","ablocks"),value:"featured-image-media",options:[{label:(0,z.__)("Featured Image Title","ablocks"),value:"featured-image-title"},{label:(0,z.__)("Featured Image Alt","ablocks"),value:"featured-image-alt"},{label:(0,z.__)("Featured Image Caption","ablocks"),value:"featured-image-caption"},{label:(0,z.__)("Featured Image Description","ablocks"), | |
| 97 | -value:"featured-image-description"},{label:(0,z.__)("Featured Image File URL","ablocks"),value:"featured-image-file-url"},{label:(0,z.__)("Featured Image Attachment URL","ablocks"),value:"featured-image-attachment-url"}]},{label:(0,z.__)("Author","ablocks"),value:"author",options:[{label:(0,z.__)("Author Name","ablocks"),value:"author-name"},{label:(0,z.__)("Author ID","ablocks"),value:"author-id"},{label:(0,z.__)("Author Posts Count","ablocks"),value:"author-posts-count"},{label:(0,z.__)("Author Posts URL","ablocks"),value:"author-posts-url"},{label:(0,z.__)("Author Profile Picture URL","ablocks"),value:"author-profile-picture-url"},{label:(0,z.__)("Author Bio","ablocks"),value:"author-bio"},{label:(0,z.__)("Author Email","ablocks"),value:"author-email"},{label:(0,z.__)("Author Website","ablocks"),value:"author-website"},{label:(0,z.__)("Author Meta","ablocks"),value:"author-meta"},{label:(0,z.__)("Author First Name","ablocks"),value:"author-first-name"},{label:(0, | |
| 98 | -z.__)("Author Last Name","ablocks"),value:"author-last-name"}]},{label:(0,z.__)("Comments","ablocks"),value:"comments",options:[{label:(0,z.__)("Comments Number","ablocks"),value:"comments-number"}]},...le],se=[{label:(0,z.__)("Post Published","ablocks"),value:"post_published"},{label:(0,z.__)("Post Modified","ablocks"),value:"post_modified"}],re=Date.now(),be=[{value:"default",label:(0,z.__)("default","ablocks")},{value:"F j, Y",label:(0,M.r6)(re,"F j, Y")},{value:"Y-m-d",label:(0,M.r6)(re,"Y-m-d")},{value:"m/d/Y",label:(0,M.r6)(re,"m/d/Y")},{value:"d/m/Y",label:(0,M.r6)(re,"d/m/Y")},{value:"custom",label:(0,z.__)("custom","ablocks")}],ce=[{value:"default",label:(0,z.__)("default","ablocks")},{value:"g:i a",label:(0,M.r6)(re,"g:i a")},{value:"g:i A",label:(0,M.r6)(re,"g:i A")},{value:"H:i",label:(0,M.r6)(re,"H:i")},{value:"custom",label:(0,z.__)("Custom","ablocks")}],de=t=>{ | |
| 99 | -const{attributeValue:e,handleSettingAttribute:i,isForTime:o}=t,{source:a,dateTimeType:l,dateTimeFormat:n,customDateTimeFormat:s,group_item:r,DateFormatOfCurrentDateTime:b,customFormatOfCurrentDateTime:c,TimeFormatOfCurrentDateTime:d}=e;let u="post-time"===r,p=ce,m=n,h=s,g="dateTimeFormat",f="customDateTimeFormat";const y="current-date-time"===a;return y&&(u=o,h=c,f="customFormatOfCurrentDateTime",u?(m=d,g="TimeFormatOfCurrentDateTime",p=[...ce],p.pop()):(m=b,g="DateFormatOfCurrentDateTime")),(0,L.jsxs)(L.Fragment,{children:[!y&&(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),isResponsive:!1,options:se,attributeValue:l,onChangeHandler:t=>i({dateTimeType:t})}),(0,L.jsx)(Ut,{label:y?u?(0,z.__)("Time Format","ablocks"):(0,z.__)("Date Format","ablocks"):(0,z.__)("Format","ablocks"),isResponsive:!1,options:u?p:be,attributeValue:m,onChangeHandler:t=>i({[g]:t})}),"custom"===m&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Custom Format","ablocks"),attributeValue:h, | |
| 100 | -disableDynamicContent:!0,onChangeHandler:t=>{i({[f]:t})}}),(0,L.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,z.__)("Documentation on date and time formatting","ablocks")})]})]})},ue=()=>{},pe=t=>{const[e,i]=(0,a.useState)(void 0),[o,l]=(0,a.useState)(void 0),{attributeValue:n,handleSettingAttribute:s,context:b}=t,c=b?.postType?b?.postType:(0,r.select)("core/editor").getCurrentPostType(),{metaKey:d}=n,u=(0,a.useCallback)(t=>{const e=(t||[]).map(t=>({label:t,value:t}));i([{label:"",value:void 0},...e])},[]),p=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setMetaFields({[c]:t}),l(!1),u(t.data||[])},[u]);return(0,a.useEffect)(()=>{if(e)return ue;const t=(0,r.select)("ablocks/dynamic-content-store").getMetaFields();if(t?.[c]?.data)u(t[c].data);else if(!t?.[c]?.isRequestBeingProcessed){(0, | |
| 101 | -r.dispatch)("ablocks/dynamic-content-store").setMetaFields({[c]:{isRequestBeingProcessed:!0}}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_all_meta_keys_for_post_type",post_type:c}).then(e=>{e?.data?.success&&(t.data=e.data.data),p(t)},e=>{p(t),console.log("error fetching taxonomies",{e})})}},[c,p]),o?(0,L.jsx)(A.Spinner,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Key","ablocks"),isResponsive:!1,options:e||[],attributeValue:d,onChangeHandler:t=>s({metaKey:t||""})}),!(e||[]).some(t=>d&&d===t.value)&&(0,L.jsx)(ql,{label:(0,z.__)("Custom Key","ablocks"),disableDynamicContent:!0,attributeValue:d,onChangeHandler:t=>{s({metaKey:t||""})}})]})},me=()=>{},he=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(void 0),{attributeValue:n,handleSettingAttribute:s}=t,{taxonomy:b,termsSeparator:c}=n,d=(0,r.select)("core/editor").getCurrentPostType(),u=(0,a.useCallback)(t=>{t&&i([{label:"",value:void 0},...t||[]])},[]),p=(0,a.useCallback)(t=>{(0, | |
| 102 | -r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[d]:t}),u(t.data),l(!1)},[u]);return(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getTaxonomies();if(t?.[d]?.data)u(t[d].data);else if(!t?.[d]?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[d]:{isRequestBeingProcessed:!0}}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_taxonomies_data",post_type:d}).then(e=>{e?.data?.success&&(t.data=e.data.data),p(t)},e=>{p(t),console.log("error fetching taxonomies",{e})})}},[d,p]),(0,a.useEffect)(()=>{if(!(e||[]).some(t=>"post_tag"===t.value))return me;b||s({taxonomy:"post_tag"})},[b,e]),o?(0,L.jsx)(A.Spinner,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Taxonomy","ablocks"),isResponsive:!1,options:e||[],attributeValue:b,onChangeHandler:t=>s({taxonomy:t||""})}),(0,L.jsx)(ql,{label:(0,z.__)("Separator","ablocks"),disableDynamicContent:!0,attributeValue:c,onChangeHandler:t=>{ | |
| 103 | -s({termsSeparator:t})}})]})},ge=window.wp.coreData;function fe(t){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(t)}function ye(t){var e=function(t){if("object"!=fe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=fe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fe(e)?e:e+""}function Te(t,e,i){return(e=ye(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function He(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,o)}return i}function Me(t){for(var e=1;e<arguments.length;e++){ | |
| 104 | -var i=null!=arguments[e]?arguments[e]:{};e%2?He(Object(i),!0).forEach(function(e){Te(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):He(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i<e;i++)o[i]=t[i];return o}function ke(t,e){if(t){if("string"==typeof t)return xe(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xe(t,e):void 0}}function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o,a,l,n,s=[],r=!0,b=!1;try{if(l=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;r=!1 | |
| 105 | -}else for(;!(r=(o=l.call(i)).done)&&(s.push(o.value),s.length!==e);r=!0);}catch(t){b=!0,a=t}finally{try{if(!r&&null!=i.return&&(n=i.return(),Object(n)!==n))return}finally{if(b)throw a}}return s}}(t,e)||ke(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _e=i(98587);function Re(t,e){if(null==t)return{};var i,o,a=(0,_e.A)(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)i=l[o],-1===e.indexOf(i)&&{}.propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}return a}var Se=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],We=i(58168);function Ue(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,ye(o.key),o)}}function Pe(t,e){ | |
| 106 | -return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pe(t,e)}function je(t){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},je(t)}function we(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(we=function(){return!!t})()}function ze(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ke(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ce=function(){function t(t){var e=this;this._insertTag=function(t){var i;i=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling, | |
| 107 | -e.container.insertBefore(t,i),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{i.insertRule(t,i.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){ | |
| 108 | -var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),Ae=Math.abs,Le=String.fromCharCode,De=Object.assign;function Ne(t){return t.trim()}function Ie(t,e,i){return t.replace(e,i)}function Ve(t,e){return t.indexOf(e)}function Oe(t,e){return 0|t.charCodeAt(e)}function Ye(t,e,i){return t.slice(e,i)}function Xe(t){return t.length}function Be(t){return t.length}function Ee(t,e){return e.push(t),t}var Fe=1,qe=1,$e=0,Ge=0,Ze=0,Ke="";function Je(t,e,i,o,a,l,n){return{value:t,root:e,parent:i,type:o,props:a,children:l,line:Fe,column:qe,length:n,return:""}}function Qe(t,e){return De(Je("",null,null,"",null,null,0),t,{length:-t.length},e)}function ti(){return Ze=Ge>0?Oe(Ke,--Ge):0,qe--,10===Ze&&(qe=1,Fe--),Ze}function ei(){return Ze=Ge<$e?Oe(Ke,Ge++):0,qe++,10===Ze&&(qe=1,Fe++),Ze}function ii(){return Oe(Ke,Ge)}function oi(){return Ge}function ai(t,e){return Ye(Ke,t,e)}function li(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43: | |
| 109 | -case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ni(t){return Fe=qe=1,$e=Xe(Ke=t),Ge=0,[]}function si(t){return Ke="",t}function ri(t){return Ne(ai(Ge-1,di(91===t?t+2:40===t?t+1:t)))}function bi(t){for(;(Ze=ii())&&Ze<33;)ei();return li(t)>2||li(Ze)>3?"":" "}function ci(t,e){for(;--e&&ei()&&!(Ze<48||Ze>102||Ze>57&&Ze<65||Ze>70&&Ze<97););return ai(t,oi()+(e<6&&32==ii()&&32==ei()))}function di(t){for(;ei();)switch(Ze){case t:return Ge;case 34:case 39:34!==t&&39!==t&&di(Ze);break;case 40:41===t&&di(t);break;case 92:ei()}return Ge}function ui(t,e){for(;ei()&&t+Ze!==57&&(t+Ze!==84||47!==ii()););return"/*"+ai(e,Ge-1)+"*"+Le(47===t?t:ei())}function pi(t){for(;!li(ii());)ei();return ai(t,Ge)}var mi="-ms-",hi="-moz-",gi="-webkit-",fi="comm",yi="rule",Ti="decl",Hi="@keyframes";function Mi(t,e){for(var i="",o=Be(t),a=0;a<o;a++)i+=e(t[a],a,t,e)||"";return i} | |
| 110 | -function xi(t,e,i,o){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case Ti:return t.return=t.return||t.value;case fi:return"";case Hi:return t.return=t.value+"{"+Mi(t.children,o)+"}";case yi:t.value=t.props.join(",")}return Xe(i=Mi(t.children,o))?t.return=t.value+"{"+i+"}":""}function ki(t){return si(vi("",null,null,null,[""],t=ni(t),0,[0],t))}function vi(t,e,i,o,a,l,n,s,r){for(var b=0,c=0,d=n,u=0,p=0,m=0,h=1,g=1,f=1,y=0,T="",H=a,M=l,x=o,k=T;g;)switch(m=y,y=ei()){case 40:if(108!=m&&58==Oe(k,d-1)){-1!=Ve(k+=Ie(ri(y),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:k+=ri(y);break;case 9:case 10:case 13:case 32:k+=bi(m);break;case 92:k+=ci(oi()-1,7);continue;case 47:switch(ii()){case 42:case 47:Ee(Ri(ui(ei(),oi()),e,i),r);break;default:k+="/"}break;case 123*h:s[b++]=Xe(k)*f;case 125*h:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==f&&(k=Ie(k,/\f/g,"")),p>0&&Xe(k)-d&&Ee(p>32?Si(k+";",o,i,d-1):Si(Ie(k," ","")+";",o,i,d-2),r);break;case 59:k+=";" | |
| 111 | -;default:if(Ee(x=_i(k,e,i,b,c,a,s,T,H=[],M=[],d),l),123===y)if(0===c)vi(k,e,x,x,H,l,d,s,M);else switch(99===u&&110===Oe(k,3)?100:u){case 100:case 108:case 109:case 115:vi(t,x,x,o&&Ee(_i(t,x,x,0,0,a,s,T,a,H=[],d),M),a,M,d,s,o?H:M);break;default:vi(k,x,x,x,[""],M,0,s,M)}}b=c=p=0,h=f=1,T=k="",d=n;break;case 58:d=1+Xe(k),p=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==ti())continue;switch(k+=Le(y),y*h){case 38:f=c>0?1:(k+="\f",-1);break;case 44:s[b++]=(Xe(k)-1)*f,f=1;break;case 64:45===ii()&&(k+=ri(ei())),u=ii(),c=d=Xe(T=k+=pi(oi())),y++;break;case 45:45===m&&2==Xe(k)&&(h=0)}}return l}function _i(t,e,i,o,a,l,n,s,r,b,c){for(var d=a-1,u=0===a?l:[""],p=Be(u),m=0,h=0,g=0;m<o;++m)for(var f=0,y=Ye(t,d+1,d=Ae(h=n[m])),T=t;f<p;++f)(T=Ne(h>0?u[f]+" "+y:Ie(y,/&\f/g,u[f])))&&(r[g++]=T);return Je(t,e,i,0===a?yi:s,r,b,c)}function Ri(t,e,i){return Je(t,e,i,fi,Le(Ze),Ye(t,2,-2),0)}function Si(t,e,i,o){return Je(t,e,i,Ti,Ye(t,0,o),Ye(t,o+1,-1),o)}var Wi=function(t,e,i){for(var o=0,a=0;o=a, | |
| 112 | -a=ii(),38===o&&12===a&&(e[i]=1),!li(a);)ei();return ai(t,Ge)},Ui=new WeakMap,Pi=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||Ui.get(i))&&!o){Ui.set(t,!0);for(var a=[],l=function(t,e){return si(function(t,e){var i=-1,o=44;do{switch(li(o)){case 0:38===o&&12===ii()&&(e[i]=1),t[i]+=Wi(Ge-1,e,i);break;case 2:t[i]+=ri(o);break;case 4:if(44===o){t[++i]=58===ii()?"&\f":"",e[i]=t[i].length;break}default:t[i]+=Le(o)}}while(o=ei());return t}(ni(t),e))}(e,a),n=i.props,s=0,r=0;s<l.length;s++)for(var b=0;b<n.length;b++,r++)t.props[r]=a[s]?l[s].replace(/&\f/g,n[b]):n[b]+" "+l[s]}}},ji=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function wi(t,e){switch(function(t,e){return 45^Oe(t,0)?(((e<<2^Oe(t,0))<<2^Oe(t,1))<<2^Oe(t,2))<<2^Oe(t,3):0}(t,e)){case 5103: | |
| 113 | -return gi+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gi+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return gi+t+hi+t+mi+t+t;case 6828:case 4268:return gi+t+mi+t+t;case 6165:return gi+t+mi+"flex-"+t+t;case 5187:return gi+t+Ie(t,/(\w+).+(:[^]+)/,gi+"box-$1$2"+mi+"flex-$1$2")+t;case 5443:return gi+t+mi+"flex-item-"+Ie(t,/flex-|-self/,"")+t;case 4675:return gi+t+mi+"flex-line-pack"+Ie(t,/align-content|flex-|-self/,"")+t;case 5548:return gi+t+mi+Ie(t,"shrink","negative")+t;case 5292:return gi+t+mi+Ie(t,"basis","preferred-size")+t;case 6060:return gi+"box-"+Ie(t,"-grow","")+gi+t+mi+Ie(t,"grow","positive")+t;case 4554:return gi+Ie(t,/([^-])(transform)/g,"$1"+gi+"$2")+t;case 6187:return Ie(Ie(Ie(t,/(zoom-|grab)/,gi+"$1"),/(image-set)/,gi+"$1"),t,"")+t | |
| 114 | -;case 5495:case 3959:return Ie(t,/(image-set\([^]*)/,gi+"$1$`$1");case 4968:return Ie(Ie(t,/(.+:)(flex-)?(.*)/,gi+"box-pack:$3"+mi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gi+t+t;case 4095:case 3583:case 4068:case 2532:return Ie(t,/(.+)-inline(.+)/,gi+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xe(t)-1-e>6)switch(Oe(t,e+1)){case 109:if(45!==Oe(t,e+4))break;case 102:return Ie(t,/(.+:)(.+)-([^]+)/,"$1"+gi+"$2-$3$1"+hi+(108==Oe(t,e+3)?"$3":"$2-$3"))+t;case 115:return~Ve(t,"stretch")?wi(Ie(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==Oe(t,e+1))break;case 6444:switch(Oe(t,Xe(t)-3-(~Ve(t,"!important")&&10))){case 107:return Ie(t,":",":"+gi)+t;case 101:return Ie(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gi+(45===Oe(t,14)?"inline-":"")+"box$3$1"+gi+"$2$3$1"+mi+"$2box$3")+t}break;case 5936:switch(Oe(t,e+11)){case 114:return gi+t+mi+Ie(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108: | |
| 115 | -return gi+t+mi+Ie(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return gi+t+mi+Ie(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return gi+t+mi+t+t}return t}var zi=[function(t,e,i,o){if(t.length>-1&&!t.return)switch(t.type){case Ti:t.return=wi(t.value,t.length);break;case Hi:return Mi([Qe(t,{value:Ie(t.value,"@","@"+gi)})],o);case yi:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,function(e){switch(function(t){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return Mi([Qe(t,{props:[Ie(e,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Mi([Qe(t,{props:[Ie(e,/:(plac\w+)/,":"+gi+"input-$1")]}),Qe(t,{props:[Ie(e,/:(plac\w+)/,":-moz-$1")]}),Qe(t,{props:[Ie(e,/:(plac\w+)/,mi+"input-$1")]})],o)}return""})}}],Ci=function(t){var e=t.key;if("css"===e){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t), | |
| 116 | -t.setAttribute("data-s",""))})}var o,a,l=t.stylisPlugins||zi,n={},s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),i=1;i<e.length;i++)n[e[i]]=!0;s.push(t)});var r,b,c,d,u=[xi,(d=function(t){r.insert(t)},function(t){t.root||(t=t.return)&&d(t)})],p=(b=[Pi,ji].concat(l,u),c=Be(b),function(t,e,i,o){for(var a="",l=0;l<c;l++)a+=b[l](t,e,i,o)||"";return a});a=function(t,e,i,o){r=i,Mi(ki(t?t+"{"+e.styles+"}":e.styles),p),o&&(m.inserted[e.name]=!0)};var m={key:e,sheet:new Ce({key:e,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:n,registered:{},insert:a};return m.sheet.hydrate(s),m},Ai=function(t,e,i){var o=t.key+"-"+e.name;!1===i&&void 0===t.registered[o]&&(t.registered[o]=e.styles)},Li={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1, | |
| 117 | -boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Di(t){var e=Object.create(null);return function(i){return void 0===e[i]&&(e[i]=t(i)),e[i]}}var Ni=/[A-Z]|^ms/g,Ii=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vi=function(t){return 45===t.charCodeAt(1)},Oi=function(t){return null!=t&&"boolean"!=typeof t},Yi=Di(function(t){return Vi(t)?t:t.replace(Ni,"-$&").toLowerCase()}),Xi=function(t,e){switch(t){case"animation":case"animationName": | |
| 118 | -if("string"==typeof e)return e.replace(Ii,function(t,e,i){return Ei={name:e,styles:i,next:Ei},e})}return 1===Li[t]||Vi(t)||"number"!=typeof e||0===e?e:e+"px"};function Bi(t,e,i){if(null==i)return"";var o=i;if(void 0!==o.__emotion_styles)return o;switch(typeof i){case"boolean":return"";case"object":var a=i;if(1===a.anim)return Ei={name:a.name,styles:a.styles,next:Ei},a.name;var l=i;if(void 0!==l.styles){var n=l.next;if(void 0!==n)for(;void 0!==n;)Ei={name:n.name,styles:n.styles,next:Ei},n=n.next;return l.styles+";"}return function(t,e,i){var o="";if(Array.isArray(i))for(var a=0;a<i.length;a++)o+=Bi(t,e,i[a])+";";else for(var l in i){var n=i[l];if("object"!=typeof n){var s=n;null!=e&&void 0!==e[s]?o+=l+"{"+e[s]+"}":Oi(s)&&(o+=Yi(l)+":"+Xi(l,s)+";")}else if(!Array.isArray(n)||"string"!=typeof n[0]||null!=e&&void 0!==e[n[0]]){var r=Bi(t,e,n);switch(l){case"animation":case"animationName":o+=Yi(l)+":"+r+";";break;default:o+=l+"{"+r+"}"} | |
| 119 | -}else for(var b=0;b<n.length;b++)Oi(n[b])&&(o+=Yi(l)+":"+Xi(l,n[b])+";")}return o}(t,e,i);case"function":if(void 0!==t){var s=Ei,r=i(t);return Ei=s,Bi(t,e,r)}}var b=i;if(null==e)return b;var c=e[b];return void 0!==c?c:b}var Ei,Fi=/label:\s*([^\s;{]+)\s*(;|$)/g;function qi(t,e,i){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var o=!0,a="";Ei=void 0;var l=t[0];null==l||void 0===l.raw?(o=!1,a+=Bi(i,e,l)):a+=l[0];for(var n=1;n<t.length;n++)a+=Bi(i,e,t[n]),o&&(a+=l[n]);Fi.lastIndex=0;for(var s,r="";null!==(s=Fi.exec(a));)r+="-"+s[1];var b=function(t){for(var e,i=0,o=0,a=t.length;a>=4;++o,a-=4)e=1540483477*(65535&(e=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+(59797*(e>>>16)<<16),i=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(a){case 3:i^=(255&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1: | |
| 120 | -i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)}(a)+r;return{name:b,styles:a,next:Ei}}var $i,Gi,Zi=!!a.useInsertionEffect&&a.useInsertionEffect,Ki=Zi||function(t){return t()},Ji=(Zi||a.useLayoutEffect,a.createContext("undefined"!=typeof HTMLElement?Ci({key:"css"}):null)),Qi=(Ji.Provider,function(t){return(0,a.forwardRef)(function(e,i){var o=(0,a.useContext)(Ji);return t(e,o,i)})}),to=a.createContext({}),eo={}.hasOwnProperty,io="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oo=function(t){var e=t.cache,i=t.serialized,o=t.isStringTag;return Ai(e,i,o),Ki(function(){return function(t,e,i){Ai(t,e,i);var o=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var a=e;do{t.insert(e===a?"."+o:"",a,t.sheet,!0),a=a.next}while(void 0!==a)}}(e,i,o)}),null},ao=Qi(function(t,e,i){var o=t.css;"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var l=t[io],n=[o],s="" | |
| 121 | -;"string"==typeof t.className?s=function(t,e,i){var o="";return i.split(" ").forEach(function(i){void 0!==t[i]?e.push(t[i]+";"):i&&(o+=i+" ")}),o}(e.registered,n,t.className):null!=t.className&&(s=t.className+" ");var r=qi(n,void 0,a.useContext(to));s+=e.key+"-"+r.name;var b={};for(var c in t)eo.call(t,c)&&"css"!==c&&c!==io&&(b[c]=t[c]);return b.className=s,i&&(b.ref=i),a.createElement(a.Fragment,null,a.createElement(oo,{cache:e,serialized:r,isStringTag:"string"==typeof l}),a.createElement(l,b))}),lo=ao,no=i(4146),so=i.n(no),ro=function(t,e){var i=arguments;if(null==e||!eo.call(e,"css"))return a.createElement.apply(void 0,i);var o=i.length,l=new Array(o);l[0]=lo,l[1]=function(t,e){var i={};for(var o in e)eo.call(e,o)&&(i[o]=e[o]);return i[io]=t,i}(t,e);for(var n=2;n<o;n++)l[n]=i[n];return a.createElement.apply(null,l)};function bo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return qi(e)}$i=ro||(ro={}),Gi||(Gi=$i.JSX||($i.JSX={}));var co=i(75795),uo=i.n(co) | |
| 122 | -;const po=Math.min,mo=Math.max,ho=Math.round,go=Math.floor,fo=t=>({x:t,y:t});function yo(){return"undefined"!=typeof window}function To(t){return xo(t)?(t.nodeName||"").toLowerCase():"#document"}function Ho(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Mo(t){var e;return null==(e=(xo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function xo(t){return!!yo()&&(t instanceof Node||t instanceof Ho(t).Node)}function ko(t){return!!yo()&&(t instanceof Element||t instanceof Ho(t).Element)}function vo(t){return!!yo()&&(t instanceof HTMLElement||t instanceof Ho(t).HTMLElement)}function _o(t){return!(!yo()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof Ho(t).ShadowRoot)}function Ro(t){const{overflow:e,overflowX:i,overflowY:o,display:a}=Wo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&"inline"!==a&&"contents"!==a}let So;function Wo(t){return Ho(t).getComputedStyle(t)}function Uo(t){ | |
| 123 | -const e=function(t){if("html"===To(t))return t;const e=t.assignedSlot||t.parentNode||_o(t)&&t.host||Mo(t);return _o(e)?e.host:e}(t);return function(t){return/^(html|body|#document)$/.test(To(t))}(e)?t.ownerDocument?t.ownerDocument.body:t.body:vo(e)&&Ro(e)?e:Uo(e)}function Po(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const a=Uo(t),l=a===(null==(o=t.ownerDocument)?void 0:o.body),n=Ho(a);if(l){const t=jo(n);return e.concat(n,n.visualViewport||[],Ro(a)?a:[],t&&i?Po(t):[])}return e.concat(a,Po(a,[],i))}function jo(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function wo(t){return ko(t)?t:t.contextElement}function zo(t){const e=wo(t);if(!vo(e))return fo(1);const i=e.getBoundingClientRect(),{width:o,height:a,$:l}=function(t){const e=Wo(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=vo(t),l=a?t.offsetWidth:i,n=a?t.offsetHeight:o,s=ho(i)!==l||ho(o)!==n;return s&&(i=l,o=n),{width:i,height:o,$:s}}(e) | |
| 124 | -;let n=(l?ho(i.width):i.width)/o,s=(l?ho(i.height):i.height)/a;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}const Co=fo(0);function Ao(t){const e=Ho(t);return null==So&&(So="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),So&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Co}function Lo(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const a=t.getBoundingClientRect(),l=wo(t);let n=fo(1);e&&(o?ko(o)&&(n=zo(o)):n=zo(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Ho(t))&&e}(l,i,o)?Ao(l):fo(0);let r=(a.left+s.x)/n.x,b=(a.top+s.y)/n.y,c=a.width/n.x,d=a.height/n.y;if(l){const t=Ho(l),e=o&&ko(o)?Ho(o):o;let i=t,a=jo(i);for(;a&&o&&e!==i;){const t=zo(a),e=a.getBoundingClientRect(),o=Wo(a),l=e.left+(a.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(a.clientTop+parseFloat(o.paddingTop))*t.y;r*=t.x,b*=t.y,c*=t.x,d*=t.y,r+=l,b+=n,i=Ho(a),a=jo(i)}}return function(t){ | |
| 125 | -const{x:e,y:i,width:o,height:a}=t;return{width:o,height:a,top:i,left:e,right:e+o,bottom:i+a,x:e,y:i}}({width:c,height:d,x:r,y:b})}function Do(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}var No=a.useLayoutEffect,Io=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Vo=function(){};function Oo(t,e){return e?"-"===e[0]?t+e:t+"__"+e:t}function Yo(t,e){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];var l=[].concat(o);if(e&&t)for(var n in e)e.hasOwnProperty(n)&&e[n]&&l.push("".concat(Oo(t,n)));return l.filter(function(t){return t}).map(function(t){return String(t).trim()}).join(" ")}var Xo=function(t){return e=t,Array.isArray(e)?t.filter(Boolean):"object"===fe(t)&&null!==t?[t]:[];var e},Bo=function(t){return t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options, | |
| 126 | -t.selectOption,t.selectProps,t.setValue,t.theme,Me({},Re(t,Io))},Eo=function(t,e,i){var o=t.cx,a=t.getStyles,l=t.getClassNames,n=t.className;return{css:a(e,t),className:o(null!=i?i:{},l(e,t),n)}};function Fo(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function qo(t){return Fo(t)?window.pageYOffset:t.scrollTop}function $o(t,e){Fo(t)?window.scrollTo(0,e):t.scrollTop=e}function Go(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vo,a=qo(t),l=e-a,n=0;!function e(){var s=function(t,e,i,o){return i*((t=t/o-1)*t*t+1)+e}(n+=10,a,l,i);$o(t,s),n<i?window.requestAnimationFrame(e):o(t)}()}function Zo(t,e){var i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),a=e.offsetHeight/3;o.bottom+a>i.bottom?$o(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<i.top&&$o(t,Math.max(e.offsetTop-a,0))}function Ko(){try{return document.createEvent("TouchEvent"),!0}catch(t){ | |
| 127 | -return!1}}var Jo=!1,Qo={get passive(){return Jo=!0}},ta="undefined"!=typeof window?window:{};ta.addEventListener&&ta.removeEventListener&&(ta.addEventListener("p",Vo,Qo),ta.removeEventListener("p",Vo,!1));var ea=Jo;function ia(t){return null!=t}function oa(t,e,i){return t?e:i}var aa=["children","innerProps"],la=["children","innerProps"];var na,sa=function(t){return"auto"===t?"bottom":t},ra=(0,a.createContext)(null),ba=function(t){var e=t.children,i=t.minMenuHeight,o=t.maxMenuHeight,l=t.menuPlacement,n=t.menuPosition,s=t.menuShouldScrollIntoView,r=t.theme,b=((0,a.useContext)(ra)||{}).setPortalPlacement,c=(0,a.useRef)(null),d=ve((0,a.useState)(o),2),u=d[0],p=d[1],m=ve((0,a.useState)(null),2),h=m[0],g=m[1],f=r.spacing.controlHeight;return No(function(){var t=c.current;if(t){var e="fixed"===n,a=function(t){var e=t.maxHeight,i=t.menuEl,o=t.minHeight,a=t.placement,l=t.shouldScroll,n=t.isFixedPosition,s=t.controlHeight,r=function(t){ | |
| 128 | -var e=getComputedStyle(t),i="absolute"===e.position,o=/(auto|scroll)/;if("fixed"===e.position)return document.documentElement;for(var a=t;a=a.parentElement;)if(e=getComputedStyle(a),(!i||"static"!==e.position)&&o.test(e.overflow+e.overflowY+e.overflowX))return a;return document.documentElement}(i),b={placement:"bottom",maxHeight:e};if(!i||!i.offsetParent)return b;var c,d=r.getBoundingClientRect().height,u=i.getBoundingClientRect(),p=u.bottom,m=u.height,h=u.top,g=i.offsetParent.getBoundingClientRect().top,f=n||Fo(c=r)?window.innerHeight:c.clientHeight,y=qo(r),T=parseInt(getComputedStyle(i).marginBottom,10),H=parseInt(getComputedStyle(i).marginTop,10),M=g-H,x=f-h,k=M+y,v=d-y-h,_=p-f+y+T,R=y+h-H,S=160;switch(a){case"auto":case"bottom":if(x>=m)return{placement:"bottom",maxHeight:e};if(v>=m&&!n)return l&&Go(r,_,S),{placement:"bottom",maxHeight:e};if(!n&&v>=o||n&&x>=o)return l&&Go(r,_,S),{placement:"bottom",maxHeight:n?x-T:v-T};if("auto"===a||n){var W=e,U=n?M:k | |
| 129 | -;return U>=o&&(W=Math.min(U-T-s,e)),{placement:"top",maxHeight:W}}if("bottom"===a)return l&&$o(r,_),{placement:"bottom",maxHeight:e};break;case"top":if(M>=m)return{placement:"top",maxHeight:e};if(k>=m&&!n)return l&&Go(r,R,S),{placement:"top",maxHeight:e};if(!n&&k>=o||n&&M>=o){var P=e;return(!n&&k>=o||n&&M>=o)&&(P=n?M-H:k-H),l&&Go(r,R,S),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return b}({maxHeight:o,menuEl:t,minHeight:i,placement:l,shouldScroll:s&&!e,isFixedPosition:e,controlHeight:f});p(a.maxHeight),g(a.placement),null==b||b(a.placement)}},[o,l,n,s,i,b,f]),e({ref:c,placerProps:Me(Me({},t),{},{placement:h||sa(l),maxHeight:u})})},ca=function(t,e){var i=t.theme,o=i.spacing.baseUnit,a=i.colors;return Me({textAlign:"center"},e?{}:{color:a.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},da=ca,ua=ca,pa=["size"],ma=["innerProps","isRtl","size"],ha={name:"8mmkcg", | |
| 130 | -styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ga=function(t){var e=t.size,i=Re(t,pa);return ro("svg",(0,We.A)({height:e,width:e,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ha},i))},fa=function(t){return ro(ga,(0,We.A)({size:20},t),ro("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ya=function(t){return ro(ga,(0,We.A)({size:20},t),ro("path",{ | |
| 131 | -d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ta=function(t,e){var i=t.isFocused,o=t.theme,a=o.spacing.baseUnit,l=o.colors;return Me({label:"indicatorContainer",display:"flex",transition:"color 150ms"},e?{}:{color:i?l.neutral60:l.neutral20,padding:2*a,":hover":{color:i?l.neutral80:l.neutral40}})},Ha=Ta,Ma=Ta,xa=function(){var t=bo.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(na||(na=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ka=function(t){var e=t.delay,i=t.offset;return ro("span",{ | |
| 132 | -css:bo({animation:"".concat(xa," 1s ease-in-out ").concat(e,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},va=["data"],_a=["innerRef","isDisabled","isHidden","inputClassName"],Ra={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Sa={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Me({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ra)},Wa=function(t){return Me({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Ra)},Ua=function(t){var e=t.children,i=t.innerProps;return ro("div",i,e)},Pa={ClearIndicator:function(t){var e=t.children,i=t.innerProps;return ro("div",(0,We.A)({},Eo(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),e||ro(fa,null))},Control:function(t){ | |
| 133 | -var e=t.children,i=t.isDisabled,o=t.isFocused,a=t.innerRef,l=t.innerProps,n=t.menuIsOpen;return ro("div",(0,We.A)({ref:a},Eo(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":o,"control--menu-is-open":n}),l,{"aria-disabled":i||void 0}),e)},DropdownIndicator:function(t){var e=t.children,i=t.innerProps;return ro("div",(0,We.A)({},Eo(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),e||ro(ya,null))},DownChevron:ya,CrossIcon:fa,Group:function(t){var e=t.children,i=t.cx,o=t.getStyles,a=t.getClassNames,l=t.Heading,n=t.headingProps,s=t.innerProps,r=t.label,b=t.theme,c=t.selectProps;return ro("div",(0,We.A)({},Eo(t,"group",{group:!0}),s),ro(l,(0,We.A)({},n,{selectProps:c,theme:b,getStyles:o,getClassNames:a,cx:i}),r),ro("div",null,e))},GroupHeading:function(t){var e=Bo(t);e.data;var i=Re(e,va);return ro("div",(0,We.A)({},Eo(t,"groupHeading",{"group-heading":!0}),i))},IndicatorsContainer:function(t){var e=t.children,i=t.innerProps;return ro("div",(0, | |
| 134 | -We.A)({},Eo(t,"indicatorsContainer",{indicators:!0}),i),e)},IndicatorSeparator:function(t){var e=t.innerProps;return ro("span",(0,We.A)({},e,Eo(t,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(t){var e=t.cx,i=t.value,o=Bo(t),a=o.innerRef,l=o.isDisabled,n=o.isHidden,s=o.inputClassName,r=Re(o,_a);return ro("div",(0,We.A)({},Eo(t,"input",{"input-container":!0}),{"data-value":i||""}),ro("input",(0,We.A)({className:e({input:!0},s),ref:a,style:Wa(n),disabled:l},r)))},LoadingIndicator:function(t){var e=t.innerProps,i=t.isRtl,o=t.size,a=void 0===o?4:o,l=Re(t,ma);return ro("div",(0,We.A)({},Eo(Me(Me({},l),{},{innerProps:e,isRtl:i,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),e),ro(ka,{delay:0,offset:i}),ro(ka,{delay:160,offset:!0}),ro(ka,{delay:320,offset:!i}))},Menu:function(t){var e=t.children,i=t.innerRef,o=t.innerProps;return ro("div",(0,We.A)({},Eo(t,"menu",{menu:!0}),{ref:i},o),e)},MenuList:function(t){ | |
| 135 | -var e=t.children,i=t.innerProps,o=t.innerRef,a=t.isMulti;return ro("div",(0,We.A)({},Eo(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},i),e)},MenuPortal:function(t){var e=t.appendTo,i=t.children,o=t.controlElement,l=t.innerProps,n=t.menuPlacement,s=t.menuPosition,r=(0,a.useRef)(null),b=(0,a.useRef)(null),c=ve((0,a.useState)(sa(n)),2),d=c[0],u=c[1],p=(0,a.useMemo)(function(){return{setPortalPlacement:u}},[]),m=ve((0,a.useState)(null),2),h=m[0],g=m[1],f=(0,a.useCallback)(function(){if(o){var t=function(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}(o),e="fixed"===s?0:window.pageYOffset,i=t[d]+e;i===(null==h?void 0:h.offset)&&t.left===(null==h?void 0:h.rect.left)&&t.width===(null==h?void 0:h.rect.width)||g({offset:i,rect:t})}},[o,s,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);No(function(){f()},[f]);var y=(0,a.useCallback)(function(){ | |
| 136 | -"function"==typeof b.current&&(b.current(),b.current=null),o&&r.current&&(b.current=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:r=!1}=o,b=wo(t),c=a||l?[...b?Po(b):[],...e?Po(e):[]]:[];c.forEach(t=>{a&&t.addEventListener("scroll",i,{passive:!0}),l&&t.addEventListener("resize",i)});const d=b&&s?function(t,e){let i,o=null;const a=Mo(t);function l(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}return function n(s,r){void 0===s&&(s=!1),void 0===r&&(r=1),l();const b=t.getBoundingClientRect(),{left:c,top:d,width:u,height:p}=b;if(s||e(),!u||!p)return;const m={rootMargin:-go(d)+"px "+-go(a.clientWidth-(c+u))+"px "+-go(a.clientHeight-(d+p))+"px "+-go(c)+"px",threshold:mo(0,po(1,r))||1};let h=!0;function g(e){const o=e[0].intersectionRatio;if(o!==r){if(!h)return n();o?n(!1,o):i=setTimeout(()=>{n(!1,1e-7)},1e3)} | |
| 137 | -1!==o||Do(b,t.getBoundingClientRect())||n(),h=!1}try{o=new IntersectionObserver(g,{...m,root:a.ownerDocument})}catch(t){o=new IntersectionObserver(g,m)}o.observe(t)}(!0),l}(b,i):null;let u,p=-1,m=null;n&&(m=new ResizeObserver(t=>{let[o]=t;o&&o.target===b&&m&&e&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=m)||t.observe(e)})),i()}),b&&!r&&m.observe(b),e&&m.observe(e));let h=r?Lo(t):null;return r&&function e(){const o=Lo(t);h&&!Do(h,o)&&i(),h=o,u=requestAnimationFrame(e)}(),i(),()=>{var t;c.forEach(t=>{a&&t.removeEventListener("scroll",i),l&&t.removeEventListener("resize",i)}),null==d||d(),null==(t=m)||t.disconnect(),m=null,r&&cancelAnimationFrame(u)}}(o,r.current,f,{elementResize:"ResizeObserver"in window}))},[o,f]);No(function(){y()},[y]);var T=(0,a.useCallback)(function(t){r.current=t,y()},[y]);if(!e&&"fixed"!==s||!h)return null;var H=ro("div",(0,We.A)({ref:T},Eo(Me(Me({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{ | |
| 138 | -"menu-portal":!0}),l),i);return ro(ra.Provider,{value:p},e?(0,co.createPortal)(H,e):H)},LoadingMessage:function(t){var e=t.children,i=void 0===e?"Loading...":e,o=t.innerProps,a=Re(t,la);return ro("div",(0,We.A)({},Eo(Me(Me({},a),{},{children:i,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),i)},NoOptionsMessage:function(t){var e=t.children,i=void 0===e?"No options":e,o=t.innerProps,a=Re(t,aa);return ro("div",(0,We.A)({},Eo(Me(Me({},a),{},{children:i,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),i)},MultiValue:function(t){var e=t.children,i=t.components,o=t.data,a=t.innerProps,l=t.isDisabled,n=t.removeProps,s=t.selectProps,r=i.Container,b=i.Label,c=i.Remove;return ro(r,{data:o,innerProps:Me(Me({},Eo(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),a),selectProps:s},ro(b,{data:o,innerProps:Me({},Eo(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},e),ro(c,{data:o, | |
| 139 | -innerProps:Me(Me({},Eo(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(e||"option")},n),selectProps:s}))},MultiValueContainer:Ua,MultiValueLabel:Ua,MultiValueRemove:function(t){var e=t.children,i=t.innerProps;return ro("div",(0,We.A)({role:"button"},i),e||ro(fa,{size:14}))},Option:function(t){var e=t.children,i=t.isDisabled,o=t.isFocused,a=t.isSelected,l=t.innerRef,n=t.innerProps;return ro("div",(0,We.A)({},Eo(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":o,"option--is-selected":a}),{ref:l,"aria-disabled":i},n),e)},Placeholder:function(t){var e=t.children,i=t.innerProps;return ro("div",(0,We.A)({},Eo(t,"placeholder",{placeholder:!0}),i),e)},SelectContainer:function(t){var e=t.children,i=t.innerProps,o=t.isDisabled,a=t.isRtl;return ro("div",(0,We.A)({},Eo(t,"container",{"--is-disabled":o,"--is-rtl":a}),i),e)},SingleValue:function(t){var e=t.children,i=t.isDisabled,o=t.innerProps;return ro("div",(0,We.A)({},Eo(t,"singleValue",{ | |
| 140 | -"single-value":!0,"single-value--is-disabled":i}),o),e)},ValueContainer:function(t){var e=t.children,i=t.innerProps,o=t.isMulti,a=t.hasValue;return ro("div",(0,We.A)({},Eo(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),i),e)}},ja=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function wa(t,e){return t===e||!(!ja(t)||!ja(e))}function za(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!wa(t[i],e[i]))return!1;return!0}for(var Ca={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Aa=function(t){return ro("span",(0,We.A)({css:Ca},t))},La={guidance:function(t){var e=t.isSearchable,i=t.isMulti,o=t.tabSelectsValue,a=t.context,l=t.isInitialFocus;switch(a){case"menu": | |
| 141 | -return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(e?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var e=t.action,i=t.label,o=void 0===i?"":i,a=t.labels,l=t.isDisabled;switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option": | |
| 142 | -return"option ".concat(o,l?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(t){var e=t.context,i=t.focused,o=t.options,a=t.label,l=void 0===a?"":a,n=t.selectValue,s=t.isDisabled,r=t.isSelected,b=t.isAppleDevice,c=function(t,e){return t&&t.length?"".concat(t.indexOf(e)+1," of ").concat(t.length):""};if("value"===e&&n)return"value ".concat(l," focused, ").concat(c(n,i),".");if("menu"===e&&b){var d=s?" disabled":"",u="".concat(r?" selected":"").concat(d);return"".concat(l).concat(u,", ").concat(c(o,i),".")}return""},onFilter:function(t){var e=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(e?" for search term "+e:"",".")}},Da=function(t){ | |
| 143 | -var e=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,l=t.focusableOptions,n=t.isFocused,s=t.selectValue,r=t.selectProps,b=t.id,c=t.isAppleDevice,d=r.ariaLiveMessages,u=r.getOptionLabel,p=r.inputValue,m=r.isMulti,h=r.isOptionDisabled,g=r.isSearchable,f=r.menuIsOpen,y=r.options,T=r.screenReaderStatus,H=r.tabSelectsValue,M=r.isLoading,x=r["aria-label"],k=r["aria-live"],v=(0,a.useMemo)(function(){return Me(Me({},La),d||{})},[d]),_=(0,a.useMemo)(function(){var t,i="";if(e&&v.onChange){var o=e.option,a=e.options,l=e.removedValue,n=e.removedValues,r=e.value,b=l||o||(t=r,Array.isArray(t)?null:t),c=b?u(b):"",d=a||n||void 0,p=d?d.map(u):[],m=Me({isDisabled:b&&h(b,s),label:c,labels:p},e);i=v.onChange(m)}return i},[e,v,h,s,u]),R=(0,a.useMemo)(function(){var t="",e=i||o,a=!!(i&&s&&s.includes(i));if(e&&v.onFocus){var n={focused:e,label:u(e),isDisabled:h(e,s),isSelected:a,options:l,context:e===i?"menu":"value",selectValue:s,isAppleDevice:c};t=v.onFocus(n)}return t},[i,o,u,h,v,l,s,c]),S=(0, | |
| 144 | -a.useMemo)(function(){var t="";if(f&&y.length&&!M&&v.onFilter){var e=T({count:l.length});t=v.onFilter({inputValue:p,resultsMessage:e})}return t},[l,p,f,v,y,T,M]),W="initial-input-focus"===(null==e?void 0:e.action),U=(0,a.useMemo)(function(){var t="";if(v.guidance){var e=o?"value":f?"menu":"input";t=v.guidance({"aria-label":x,context:e,isDisabled:i&&h(i,s),isMulti:m,isSearchable:g,tabSelectsValue:H,isInitialFocus:W})}return t},[x,i,o,m,h,g,f,v,s,H,W]),P=ro(a.Fragment,null,ro("span",{id:"aria-selection"},_),ro("span",{id:"aria-focused"},R),ro("span",{id:"aria-results"},S),ro("span",{id:"aria-guidance"},U));return ro(a.Fragment,null,ro(Aa,{id:b},W&&P),ro(Aa,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},n&&!W&&P))},Na=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{ | |
| 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} | |
| 64 | +const a=t.match(/border-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?)(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?(?:\s+(var\([^)]+\)|[\d.]+(?:px|em|rem|%)?))?;/);if(a){const[t,i,l,n]=a,s=o(t),r=o(i||s),b=o(l||s),c=o(n||r),d=s.match(/(px|em|rem|%)/);return e.unitRadius=d?d[1]:null,i?(e.topRadius=s.replace(e.unitRadius,""),e.rightRadius=r.replace(e.unitRadius,""),e.bottomRadius=b.replace(e.unitRadius,""),e.leftRadius=c.replace(e.unitRadius,""),e.isLinkedRadius=!1):(e.commonRadius=s.replace(e.unitRadius,""),e.isLinkedRadius=!0),e}const l=[...t.matchAll(/border-(top-left|top-right|bottom-right|bottom-left)-radius:\s*(var\([^)]+\)|[\d.]+(?:px|em|rem|%));/g)];return l.length>0?(l.forEach(t=>{const i=t[1],a=o(t[2]),l=a.match(/(px|em|rem|%)/);switch(e.unitRadius=e.unitRadius||(l?l[1]:null),i){case"top-left":e.topRadius=a.replace(e.unitRadius,"");break;case"top-right":e.rightRadius=a.replace(e.unitRadius,"");break;case"bottom-right": | |
| 65 | +e.bottomRadius=a.replace(e.unitRadius,"");break;case"bottom-left":e.leftRadius=a.replace(e.unitRadius,"")}}),e.isLinkedRadius=!1,e):e},yt=(t,e)=>{let i;switch(e){case"typography":{const e={},o=(t=mt(t)).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").trim().split(";").map(t=>t.trim()).filter(t=>t);o.forEach(t=>{let[i,o]=t.split(":").map(t=>t.trim().replace(/[\"\']/g,""));/font\-family/.test(i)&&o.includes(",")&&(o=o.split(",")[0]),[i].includes(i)&&i&&o&&(e[i]=(t=>{const e=t.match(/^(-?\d*\.?\d+)([a-z%]+)$/i);if(e){const[,t,i]=e;return{value:parseFloat(t),unit:i}}return t})(o))}),i=e}break;case"text-shadow":i=ht(t,"text");break;case"box-shadow":i=ht(t,"box");break;case"color-gradient":{const e=/(linear-gradient|radial-gradient|conic-gradient|repeating-linear-gradient|repeating-radial-gradient)\(([^;]*)\)/i,o=/(?:color|background(?:-image|-color)?)\s*:\s*(?:var\([^\)]+,\s*)?(#[0-9a-fA-F]{3,8}|rgba?\([^\)]+\)|hsla?\([^\)]+\))/i;let a="";const l=t.match(e);if(l)a=l[0];else{const e=t.match(o) | |
| 66 | +;e&&(a=e[1])}i=a}break;case"margin":case"padding":i=((t,e)=>{t=mt(t);const i=new RegExp(`${e}(?:-(top|right|bottom|left))?\\s*:\\s*(\\d+)(px|em|rem|%)?`,"g"),o={top:null,right:null,bottom:null,left:null};let a,l=null,n=[];for(;null!==(a=i.exec(t));){const i=a[1],s=a[2],r=a[3]||"px";if(l){if(l!==r)return null}else l=r;i?o[i]=s:n=t.match(new RegExp(`\\b${e}\\s*:\\s*(\\d+)(px|em|rem|%)?(\\s+\\d+(px|em|rem|%)?){0,3}`))[0].replace(new RegExp(`${e}\\s*:\\s*`),"").split(/\s+/)}if(n.length){const t=n.map(t=>`${parseInt(t)}`);switch(t.length){case 1:o.top=o.right=o.bottom=o.left=t[0];break;case 2:o.top=o.bottom=t[0],o.right=o.left=t[1];break;case 3:o.top=t[0],o.right=o.left=t[1],o.bottom=t[2];break;case 4:o.top=t[0],o.right=t[1],o.bottom=t[2],o.left=t[3]}}if(o.top===o.right&&o.right===o.bottom&&o.bottom===o.left)return{common:o.top,unit:l};const s={isLinked:!1,unit:l};return(o.top||0===o.top)&&(s.top=o.top),(o.right||0===o.right)&&(s.right=o.right),(o.bottom||0===o.bottom)&&(s.bottom=o.bottom), | |
| 67 | +(o.left||0===o.left)&&(s.left=o.left),s})(t,e);break;case"border":i={...gt(t)||{},...ft(t)||{}};break;default:i={}}return i},Tt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,styleType:Y().string,attributeValue:Y().any,setAttributes:Y().func,onChangeHandler:Y().func,attributeObjectKeySuffix:Y().string,isDisableLeftRight:Y().bool},Ht=[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],Mt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function xt(t){const{styleType:e,isResponsive:i=!0,attributeName:o,attributeValue:a,onChangeHandler:n,setAttributes:s,label:r="",attributeObjectKeySuffix:b="",isDisableLeftRight:d=!1}=t,u=lt(),p={attributeValue:a,deviceType:u,isResponsive:i,changeHandler:(t,e)=>{n?n(t,i?e+u:e):((t,e)=>{s({[o]:(0,M.jI)((0,c.tJ)(i),{...a,[e+(i?u:"")]:t})})})(t,e)},isDisableLeftRight:d},m=b.includes("Radius")?Mt:Ht,h=()=>e?(0,I.jsx)(pt,{figmaPasteBtnClickHandler:t=>{const i=yt(t,e) | |
| 68 | +;Object.values(i||{}).some(t=>t)?(s({[o]:i}),(0,M.An)({message:`${e} Style Successfully Pasted`,config:{id:"ablocks-notice-figma-paste-margin-padding-success-notice",type:"snackbar"}})):(0,M.An)({message:`Copy/Paste Failed: Wrong ${e} style`,config:{id:"ablocks-notice-figma-paste-margin-padding-error-notice",type:"snackbar"}})}}):(0,I.jsx)(I.Fragment,{});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--dimensions",children:[(0,I.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:r,isResponsive:i}),(0,I.jsx)(h,{})]}),(0,I.jsx)(bt,{attributeName:o,attributeObjectKey:"unit"+b,attributeValue:a,setAttributes:s,getAttributeDefaultValue:c.tJ,options:m})]}),(0,I.jsx)(ut,{...p,attributeName:o,setAttributes:s,isDefaultLinked:a?.["isLinked"+b+(i?u:"")],attributeObjectKeySuffix:b})]})})}xt.propTypes=Tt;const kt={isResponsive:Y().bool,min:Y().number,max:Y().number,label:Y().string, | |
| 69 | +attributeName:Y().string,attributeObjectKey:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,isInline:Y().bool,hasUnit:Y().bool,unitOptions:Y().array,attributeDefaultValue:Y().any,autoSyncRange:Y().bool,attributeDataType:Y().string,unitDefaultValue:Y().string},vt=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}];function _t(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",min:b=-1e3,max:c=1e3,attributeObjectKey:d="value",step:u,isInline:p=!0,hasUnit:m=!1,unitOptions:h=vt,attributeDefaultValue:g,unitDefaultValue:f="px",autoSyncRange:y=!0,attributeDataType:T=""}=t,H=lt(),x=(0,M.Bn)(g,i);let k;if(m&&!u){const t=o?.[e?d+"Unit"+H:d+"Unit"];let i="";""!==t&&void 0!==t||(i=(0,M.Ic)(o,"valueUnit",H)),k="em"===t||"rem"===t||"em"===i||"rem"===i?.1:1}const v=e?(0,M.Ic)(o,d,H,x):!e&&m?(0,M.Ic)(o,d):e||m||"object"!==T?o:(0,M.Ic)(o,d),_=m&&(()=>{let t | |
| 70 | +;return t=e&&m?d+"Unit"+H:!e&&m?`${d}Unit`:!m&&e?d+H:d,o[t]?o[t]:(0,M.Ic)(o,`${d}${m?"Unit":""}`,H)||f})();let R=b,S="%"===_||"vw"===_?100:c;return y&&("px"===_?(S=c,R=0):"%"===_||"vw"===_||"vh"===_?(S=100,R=0):"rem"!==_&&"em"!==_||(S=10,R=.1)),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:s()("ablocks-control ablocks-control--range",{"ablocks-control--inline":p}),children:[(0,I.jsxs)("div",{className:"ablocks-control__head",children:[r&&(0,I.jsx)(at,{label:r,isResponsive:e}),m&&(0,I.jsx)(bt,{attributeName:i,attributeObjectKey:d+"Unit",attributeValue:o,setAttributes:n,attributeDefaultValue:x,options:h,isResponsive:e})]}),(0,I.jsx)(N.RangeControl,{value:v,onChange:t=>((t,l)=>{if(a){let o;o=e||"object"!==T?e?`${d}${l}`:i||d:d,a(t,o)}else((t,a)=>{n(e?{[i]:(0,M.jI)(x,{...o,[d+a]:t})}:!e&&m?{[i]:(0,M.jI)(x,{...o,[d]:t})}:e||m||"object"!==T?{[i]:t}:{[i]:(0,M.jI)(x,{...o,[d]:t})})})(t,l)})(t,H),min:R||0,max:S,step:u||k})]})})}_t.propTypes=kt;const Rt=(t=!1,e="value",i={})=>t?{ | |
| 71 | +[e]:"",[e+"Tablet"]:"",[e+"Mobile"]:"",...i}:{[e]:"",...i},St=[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"DIV",value:"div"},{label:"SPAN",value:"span"},{label:"P",value:"p"}],Wt={label:Y().string,isSearch:Y().bool,options:Y().array,isResponsive:Y().bool,onChangeHandler:Y().func,attributeValue:Y().oneOfType([Y().string,Y().object,Y().array]),attributeObjectKey:Y().string,isInline:Y().bool,isMulti:Y().bool,className:Y().string,disabled:Y().bool},Pt=t=>{const{label:e="",isSearch:i=!1,attributeValue:o="",onChangeHandler:l,attributeName:n,setAttributes:s,attributeObjectKey:r="",isResponsive:b=!1,options:c=[],isMulti:d=!1,className:u="",disabled:p=!1}=t,m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=lt();let f;f=r?b?o[r+g]:o[r]:b?o+g:o;const[y,T]=(0,a.useState)(!1),[H,x]=(0,a.useState)(""),[k,v]=(0,a.useState)(f),_=(t,e)=>{l?l(t,b?r+e:r):R(t,e)},R=(t,e)=>{if(r){const i=b?r+e:r;return s({ | |
| 72 | +[n]:(0,M.jI)(Rt(b,r),{...o,[i]:t})})}return s({[n]:t})},S=(t,e)=>{if(!e?.isDisabled&&!p)if(d){const t=[...k];t.push(e?.value),_(t,g),v(t)}else x(""),_(e.value,g)};return(0,a.useEffect)(()=>{if(Array.isArray(f)&&Array.isArray(k)){const t=f?.length,e=k?.length;t===e&&f.every((t,e)=>t===k[e])||v(f)}else f!==k&&v(f)},[f,k]),(0,a.useEffect)(()=>{const t=t=>{m?.current&&!m?.current?.contains(t.target)&&T(!1)};if(document.addEventListener("mousedown",t),h.current){h.current.style.maxHeight="";const t=h.current.offsetHeight,e=m.current.getBoundingClientRect(),i=(t=>{let e=t?.parentElement;for(;e&&e!==document.body;){const t=window.getComputedStyle(e);if(("auto"===t.overflowY||"scroll"===t.overflowY)&&e.scrollHeight>e.clientHeight){const t=e.getBoundingClientRect();return{top:t.top,bottom:t.bottom}}e=e.parentElement}return{top:0,bottom:window.innerHeight}})(m.current),o=i.bottom-e.bottom,a=e.top-i.top,l=8;o<t&&a>o?(h.current.style.top=`-${t}px`, | |
| 73 | +t>a-l&&(h.current.style.maxHeight=`${Math.max(a-l,60)}px`)):(h.current.style.top="100%",t>o-l&&(h.current.style.maxHeight=`${Math.max(o-l,60)}px`))}return()=>{document.removeEventListener("mousedown",t)}},[y,H,c]),(0,I.jsxs)("div",{className:"ablocks-control ablocks-custom-select"+(u?` ${u}`:""),children:[(0,I.jsx)(at,{label:e,isResponsive:b}),(0,I.jsxs)("div",{className:"ablocks-custom-select--container",ref:m,children:[(0,I.jsxs)("div",{role:"presentation",className:"ablocks-custom-select--inner-content"+(p?" disabled":""),onClick:()=>!p&&T(!y),onKeyDown:()=>{},children:[(0,I.jsxs)("div",{className:"ablocks-custom-select--box",children:[d?(0,I.jsx)("div",{className:"ablocks-custom-select--multi-value",children:(k?.length>0?c.filter(t=>k.includes(t.value))?.map((t,e)=>(0,I.jsxs)("div",{className:"ablocks-multi-select--option",children:[(0,I.jsx)("span",{className:"ablocks-multi-select--option-label",children:t?.label}),(0,I.jsx)("span",{role:"presentation", | |
| 74 | +className:"ablocks-multi-select--option-close",onClick:e=>((t,e)=>{t.stopPropagation();const i=k.filter((t,i)=>t!==e.value);_(i,g),v(i)})(e,t),onKeyDown:()=>{},children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"})})]},e)):(0,M.Ic)(o,r,g))||"select..."}):(0,I.jsx)("div",{className:"ablocks-custom-select--single-value",children:i&&H?.length>0?"":(()=>{const t=c?.find(t=>t.value===f)?.label,e=(0,M.Ic)(o,r,g);if(t)return t;const i=c?.find(t=>t.value===e)?.label;return i||void 0})()||c[0]?.label||"select..."}),i&&(0,I.jsx)("div",{className:"ablocks-custom-select--input-container",children:(0,I.jsx)("input",{className:"ablocks-custom-select--search-option",type:"text",value:H,onChange:t=>{x(t.target.value)}})})]}),(0,I.jsx)("div",{className:"ablocks-custom-select--indicator",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"})})]}),(0,I.jsx)("div",{role:"presentation", | |
| 75 | +className:"ablocks-custom-select--options"+(y?" ablocks-custom-select--options--toggle":""),onClick:()=>{T(!y)},onKeyDown:()=>{},ref:h,children:d?c?.filter(t=>!k.includes(t.value)).map((t,e)=>(0,I.jsx)("span",{role:"presentation",className:"ablocks-custom-select--option",onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e)):(0,I.jsx)(I.Fragment,{children:c.filter(t=>t.label.toLowerCase().includes(H.toLowerCase()))?.map((t,e)=>(0,I.jsx)("span",{role:"presentation",className:"ablocks-custom-select--option"+(f===t.value&&c.findIndex(e=>e.value===t.value)===e?" ablocks-custom-select--option--active":""),onClick:e=>S(0,t),onKeyDown:()=>{},children:t?.label},e))})})]})]})};Pt.propTypes=Wt;const Ut=Pt,jt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func},wt=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,label:n=""}=t,s=lt(),r=(0,p.tJ)(e),b="custom"===(e?(0,M.Ic)(o,"widthType",s):o.widthType) | |
| 76 | +;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-width-control",children:[(0,I.jsx)(Ut,{label:n,isResponsive:e,options:p.v2,attributeValue:o,attributeObjectKey:"widthType",attributeName:i,setAttributes:a}),b&&(0,I.jsx)("div",{className:"ablocks-width-control--range-control",children:(0,I.jsx)(_t,{...t,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],label:(0,L.__)("Custom Width","ablocks"),hasUnit:!0,unitDefaultValue:"%",isInline:!1,onChangeHandler:(t,e="")=>a({[i]:(0,M.jI)(r,{...o,[e]:t})}),attributeName:i,attributeObjectKey:"customWidth",attributeDefaultValue:r,autoSyncRange:!0})})]})})};wt.propTypes=jt;const zt=wt,Ct={normal:Y().node.isRequired,hover:Y().node.isRequired};function At(t){const{normal:e="",hover:i=""}=t,o=[{name:"normal",render:e,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Normal","ablocks")})}), | |
| 77 | +className:"ablocks-normal-hover-tab__item"},{name:"hover",render:i,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Hover","ablocks")})}),className:"ablocks-normal-hover-tab__item"}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-normal-hover-tabs",activeClass:"ablocks-normal-hover-tab__item--active",tabs:o,children:t=>t.render})})}At.propTypes=Ct;var Lt=i(66087),Dt=i.n(Lt);const Nt={margin:Y().string,topMargin:Y().string,bottomMargin:Y().string};function It({margin:t="",topMargin:e="",bottomMargin:i=""}){return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{className:"ablocks-component-separator",style:{marginTop:`${t||e}px`,marginBottom:`${t||i}px`}})})}It.propTypes=Nt;const Vt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,setAttributes:Y().func,attributeValue:Y().any,attributeObjectKey:Y().string};function Ot(t){ | |
| 78 | +const{isResponsive:e=!0,label:i="",attributeName:o,attributeValue:a,setAttributes:n,onChangeHandler:s,attributeObjectKey:r=""}=t,b=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-toggle-control",children:[i&&(0,I.jsx)(at,{label:i,isResponsive:e}),(0,I.jsx)(N.ToggleControl,{className:"ablocks-components-toggle-control",checked:r?a[r]:a,onChange:t=>{return i=t,l=b,void(s?s(i,e?r+l:r):((t,i)=>{n(e?{[o]:{...a,[r+i]:t}}:""!==r?{[o]:{...a,[r]:t}}:{[o]:t})})(i,l));var i,l}})]})})}Ot.propTypes=Vt;const Yt=window.wp.element;function Xt({label:t="",isShowPrimaryLabel:e="",FigmaPasterComponent:i=()=>(0,I.jsx)(I.Fragment,{}),CustomToggler:o,isReset:a,handleReset:l,placement:n="left-end",children:s,className:r="",isVisible:b,toggleVisible:c}){const[d,u]=(0,Yt.useState)(null),p=(0,Yt.useRef)(null),m=(0,Yt.useRef)(!1),h=(0,Yt.useRef)(`ablocks-popover-${Math.floor(1e4*Math.random())}`).current;return(0,Yt.useEffect)(()=>{const t=t=>{ | |
| 79 | +m.current?m.current=!1:!p.current||p.current.contains(t.target)||t.target.closest(".ablocks-component-popover-toggler-wrapper")||t.target.closest(".ablocks-control--gradient-active-color-popover-root")||t.target.closest(".ablocks-component-popover__color-button")||t.target.closest(".components-popover__content")||t.target.closest(".ablocks-box-shadow")||t.target.closest(".ablocks-pro-component-popover-toggler-wrapper")||c(!1)};return b?document.addEventListener("mousedown",t):document.removeEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[b,c]),(0,I.jsxs)("div",{className:"ablocks-component-popover",ref:u,children:[(0,I.jsxs)("div",{className:"ablocks-component-popover__field",children:[e&&(0,I.jsx)("span",{children:t}),(0,I.jsx)("div",{role:"presentation",className:"ablocks-component-popover-toggler-wrapper",onClick:()=>{m.current=!0,c(!b)},children:o&&(0,I.jsx)("div",{className:"ablocks-component-popover__custom-toggler-wrapper",children:(0,I.jsx)(o,{ | |
| 80 | +isVisible:b,toggleVisible:c})})})]}),b&&(0,I.jsxs)(N.Popover,{className:`ablocks-component-popover__popover ${r} ${h}`,anchor:d,placement:n,ref:p,children:[(0,I.jsxs)("div",{className:"ablocks-component-popover__head",children:[(0,I.jsx)("h4",{className:"ablocks-component-popover__head-title",children:t}),(0,I.jsxs)("div",{className:"ablocks-component-popover__head-control",children:[(0,I.jsx)(i,{position:"left"}),a&&(0,I.jsx)(X,{onClick:l,icon:(0,I.jsx)(F,{tooltipText:(0,L.__)("Back To Default","ablocks"),position:"left",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"})}),preset:"transparent"}),(0,I.jsx)(X,{onClick:()=>c(!1),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),preset:"transparent"})]})]}),(0,I.jsx)("div",{className:"ablocks-component-popover__content",children:s})]})]})}const Bt=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(!1),n=(0,a.useRef)(null),{hover:s,resetHandler:r,attributeValue:b,label:c}=t | |
| 81 | +;let d="rotate",u="rotate3D",p="rotateX",m="rotateY",h="rotateP";s&&(d="rotateH",u="rotate3DH",p="rotateXH",m="rotateYH",h="rotatePH"),(0,a.useEffect)(()=>{l(!!(b[d]||b[u]||b[p]||b[m]||b[h]))},[b[d],b[u],b[p],b[m],b[h]]);const g=()=>{const t=Z().map(t=>t.suffix),e={};t.forEach(t=>{e[`${d}${t}`]="",e[`${u}${t}`]=!1,e[`${p}${t}`]="",e[`${m}${t}`]="",e[`${h}${t}`]=""}),r(e),l(!1)},f={...t,min:-360,max:360};return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[c&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:c,isResponsive:!1})}),(0,I.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,I.jsxs)("div",{className:"ablocks-component-popover",children:[(0,I.jsx)("div",{className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:n,children:(0,I.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[o&&(0,I.jsx)(F,{ | |
| 82 | +tooltipText:(0,L.__)("Back To Default","ablocks"),position:"top",children:(0,I.jsx)(X,{onClick:g,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,I.jsx)(X,{ref:n,onClick:()=>{i(!e)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:e?"ablocks-component-popover__field--active":""})]})})}),e&&(0,I.jsxs)(Xt,{label:(0,L.__)("Rotate","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:g,isVisible:e,toggleVisible:i,anchorRef:n,children:[(0,I.jsx)(_t,{...f,label:(0,L.__)("Rotate","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:d}),(0,I.jsx)(Ot,{...f,isResponsive:!1,label:(0,L.__)("3D Rotate","ablocks"),attributeObjectKey:u}),b[u]&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{...f,label:(0,L.__)("Rotate X","ablocks"),isResponsive:!0,attributeObjectKey:p,isInline:!1}),(0,I.jsx)(_t,{...f,label:(0,L.__)("Rotate Y","ablocks"),isResponsive:!0,attributeObjectKey:m,isInline:!1}),(0, | |
| 83 | +I.jsx)(_t,{...f,label:(0,L.__)("Perspective","ablocks"),isResponsive:!0,min:0,attributeObjectKey:h,isInline:!1})]})]})]})})]})},Et=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(!1),n=(0,a.useRef)(null),{hover:s,resetHandler:r,attributeValue:b={},label:c}=t;let d="scaleProportions",u="scale",p="scaleX",m="scaleY";s&&(d="scaleProportionsH",u="scaleH",p="scaleXH",m="scaleYH"),(0,a.useEffect)(()=>{l(!!(b[d]||b[u]||b[p]||b[m]))},[b[d],b[u],b[p],b[m]]);const h=()=>{const t=Z().map(t=>t.suffix),e={};t.forEach(t=>{e[`${d}${t}`]="",e[`${u}${t}`]="",e[`${p}${t}`]="",e[`${m}${t}`]=""}),r(e),l(!1)},g={...t,min:0,max:2,step:.1};return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[c&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:c,isResponsive:!1})}),(0,I.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,I.jsxs)("div",{className:"ablocks-component-popover",children:[(0,I.jsx)("div",{ | |
| 84 | +className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:n,children:(0,I.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[o&&(0,I.jsx)(F,{tooltipText:(0,L.__)("Back To Default","ablocks"),position:"top",children:(0,I.jsx)(X,{onClick:h,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,I.jsx)(X,{ref:n,onClick:()=>{i(!e)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:e?"ablocks-component-popover__field--active":""})]})})}),e&&(0,I.jsxs)(Xt,{label:(0,L.__)("Scale","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:h,isVisible:e,toggleVisible:i,anchorRef:n,children:[(0,I.jsx)(Ot,{...g,isResponsive:!1,label:(0,L.__)("Keep Proportions","ablocks"),attributeObjectKey:d}),b[d]?(0,I.jsx)(_t,{...g,label:(0,L.__)("Scale","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:u}):(0,I.jsxs)(I.Fragment,{ | |
| 85 | +children:[(0,I.jsx)(_t,{...g,label:(0,L.__)("Scale X","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:p}),(0,I.jsx)(_t,{...g,label:(0,L.__)("Scale Y","ablocks"),isResponsive:!0,isInline:!1,attributeObjectKey:m})]})]})]})})]})},Ft=t=>{const{label:e,hover:i,resetHandler:o,attributeValue:l={}}=t,[n,s]=(0,a.useState)(!1),[r,b]=(0,a.useState)(!1),c=(0,a.useRef)(null);let d="offsetX",u="offsetY";i&&(d="offsetXH",u="offsetYH"),(0,a.useEffect)(()=>{b(!!l[d]||!!l[u])},[l[d],l[u]]);const p=()=>{const t=Z().map(t=>t.suffix),e={};t.forEach(t=>{e[`${d}${t}`]="",e[`${u}${t}`]=""}),o(e),b(!1)},m=l.offsetXUnit,h="em"===m||"rem"===m?.1:1,g=l.offsetYUnit,f="em"===g||"rem"===g?.1:1,y={...t,min:-1e3,max:1e3};return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[e&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:e,isResponsive:!1})}),(0,I.jsx)("div",{className:"ablocks-control-color-gradient",children:(0, | |
| 86 | +I.jsxs)("div",{className:"ablocks-component-popover",children:[(0,I.jsx)("div",{className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:c,children:(0,I.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[r&&(0,I.jsx)(F,{tooltipText:(0,L.__)("Back To Default","ablocks"),position:"top",children:(0,I.jsx)(X,{onClick:p,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,I.jsx)(X,{ref:c,onClick:()=>{s(!n)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:n?"ablocks-component-popover__field--active":""})]})})}),n&&(0,I.jsxs)(Xt,{label:(0,L.__)("Offset","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:p,isVisible:n,toggleVisible:s,anchorRef:c,children:[(0,I.jsx)(_t,{...y,label:(0,L.__)("Offset X","ablocks"),isInline:!1,hasUnit:!0,attributeObjectKey:d,autoSyncRange:!0,step:h}),(0,I.jsx)(_t,{...y,label:(0, | |
| 87 | +L.__)("Offset Y","ablocks"),isInline:!1,hasUnit:!0,attributeObjectKey:u,autoSyncRange:!0,step:f})]})]})})]})},qt=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(!1),{label:n,hover:s,resetHandler:r,attributeValue:b}=t,c=(0,a.useRef)(null);let d="skewX",u="skewY";s&&(d="skewXH",u="skewYH"),(0,a.useEffect)(()=>{l(!!b[d]||!!b[u])},[b[d],b[u]]);const p=()=>{const t=Z().map(t=>t.suffix),e={};t.forEach(t=>{e[`${d}${t}`]="",e[`${u}${t}`]=""}),r(e),l(!1)},m={...t,min:-360,max:360};return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[n&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:n,isResponsive:!1})}),(0,I.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,I.jsxs)("div",{className:"ablocks-component-popover",children:[(0,I.jsx)("div",{className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:c,children:(0, | |
| 88 | +I.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[o&&(0,I.jsx)(F,{tooltipText:(0,L.__)("Back To Default","ablocks"),position:"top",children:(0,I.jsx)(X,{onClick:p,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,I.jsx)(X,{ref:c,onClick:()=>{i(!e)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:e?"ablocks-component-popover__field--active":""})]})})}),e&&(0,I.jsxs)(Xt,{label:(0,L.__)("Skew","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:p,isVisible:e,toggleVisible:i,anchorRef:c,children:[(0,I.jsx)(_t,{...m,label:(0,L.__)("Skew X","ablocks"),isInline:!1,attributeObjectKey:d}),(0,I.jsx)(_t,{...m,label:(0,L.__)("Skew Y","ablocks"),isInline:!1,attributeObjectKey:u})]})]})})]})},$t={changeHandler:Y().func,deviceType:Y().string,options:Y().array,attributeValue:Y().any,isResponsive:Y().bool};function Gt(t){ | |
| 89 | +const{changeHandler:e,deviceType:i="",options:o,attributeValue:a,isResponsive:n}=t;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{className:"ablocks-control__fields",children:o.map((t,o)=>(0,I.jsx)(X,{suffix:a===t.value?"active":"",onClick:()=>e(t.value===a?"":t.value,n?i:""),icon:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(F,{position:t?.tooltipPosition,tooltipText:t.label,children:(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${t.icon}`})})}),preset:"transparent"},o))})})}Gt.propTypes=$t;var Zt=i(21993);const Kt={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,setAttributes:Y().func,onChangeHandler:Y().func,options:Y().array,attributeObjectKey:Y().string,isInline:Y().bool};function Jt(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",attributeObjectKey:b="value",options:c=Zt.gh,isInline:d=!0}=t,u=e?lt():"",p=e?(0,M.Ic)(o,b,u):o;return(0,I.jsx)(l().Fragment,{children:(0, | |
| 90 | +I.jsxs)("div",{className:s()("ablocks-control ablocks-control--alignment",{"ablocks-control--inline":d}),children:[r&&(0,I.jsx)(at,{label:r,isResponsive:e}),(0,I.jsx)(Gt,{attributeName:i,deviceType:u,attributeValue:p,setAttributes:n,changeHandler:(t,l="")=>{a?a(t,e?b+l:i):((t,a="")=>{n(e?{[i]:(0,M.jI)((0,Zt.tJ)(e),{...o,[b+a]:t})}:{[i]:t})})(t,l)},options:c,isResponsive:e})]})})}Jt.propTypes=Kt;const Qt=t=>{const{setAttributes:e,attributeName:i,attributeValue:o,hover:a,attributeDefaultValue:l}=t;let n="flipHorizontal",s="flipVertical",r="xAnchorPoint",b="yAnchorPoint";a&&(n="flipHorizontalH",s="flipVerticalH",r="xAnchorPointH",b="yAnchorPointH");const c={...t,resetHandler:(t={})=>{e({[i]:(0,M.jI)(l,{...o,...t})})}};return(0,I.jsxs)("div",{className:"ablocks-control--transform-all-options-wrapper ablocks-control--transform-all-options-wrapper-"+(a?"hover":"normal"),children:[(0,I.jsx)(Bt,{...c,label:(0,L.__)("Rotate","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ft,{...c,label:(0, | |
| 91 | +L.__)("Offset","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Et,{...c,label:(0,L.__)("Scale","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(qt,{...c,label:(0,L.__)("Skew","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsxs)("div",{className:"ablocks-control--transform-options__flip",children:[(0,I.jsx)(Ot,{...c,isResponsive:!1,label:(0,L.__)("Flip Horizontal","ablocks"),attributeObjectKey:n}),(0,I.jsx)(Ot,{...c,isResponsive:!1,label:(0,L.__)("Flip Vertical","ablocks"),attributeObjectKey:s})]}),a&&(0,I.jsx)("div",{className:"ablocks-control--transform-transition-duration",children:(0,I.jsx)(_t,{...c,label:(0,L.__)("Transition Duration (ms)","ablocks"),isResponsive:!1,isInline:!1,attributeValue:o?.transitionH??0,attributeName:"",attributeObjectKey:"transitionH",step:.1,max:10,min:0})}),(0,I.jsx)(It,{}),(0,I.jsxs)("div",{className:"ablocks-control--transform-options__anchor--point",children:[(0,I.jsx)(Jt,{...c,label:(0,L.__)("X Anchor Point","ablocks"),isResponsive:!0,attributeObjectKey:r,isInline:!1,options:[{ | |
| 92 | +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,{...c,label:(0,L.__)("Y Anchor Point","ablocks"),isResponsive:!0,attributeObjectKey:b,isInline:!1,options:[{label:(0,L.__)("align top","ablocks"),value:"top",icon:"align-top"},{label:(0,L.__)("align center","ablocks"),value:"center",icon:"align-center"},{label:(0,L.__)("align bottom","ablocks"),value:"bottom",icon:"align-bottom"}]})]})]})},te={attributeName:Y().string,attributeValue:Y().any,setAttributes:Y().func},ee=t=>{const{attributeName:e,setAttributes:i,attributeValue:o,isResponsive:l=!0}=t;(0,a.useEffect)(()=>{if(!0===o?.isApplied){const t=(0,M.jI)(n,{...o});if(Dt().isEmpty(Dt().omit(t,["isApplied"])))return t.isApplied=!1,i({[e]:t})}},[o]);const n=(0,g.tJ)(l),s=(t,a)=>{const l=(0,M.jI)(n,{...o,[a]:t});return Dt().isEmpty(Dt().omit(l,["isApplied"]))?l.isApplied=!1:l.isApplied=!0, | |
| 93 | +i({[e]:l})};return(0,I.jsx)("div",{className:"ablocks-control ablocks-control--transform",children:(0,I.jsx)(At,{normal:(0,I.jsx)(Qt,{...t,onChangeHandler:s,attributeDefaultValue:n}),hover:(0,I.jsx)(Qt,{hover:!0,...t,onChangeHandler:s,attributeDefaultValue:n})})})};ee.propTypes=te;const ie=ee;var oe=function(t,e,i){var o=null,a=null,l=function(){o&&(clearTimeout(o),a=null,o=null)},n=function(){if(!e)return t.apply(this,arguments);var n=this,s=arguments,r=i&&!o;return l(),a=function(){t.apply(n,s)},o=setTimeout(function(){if(o=null,!r){var t=a;return a=null,t()}},e),r?a():void 0};return n.cancel=l,n.flush=function(){var t=a;l(),t&&t()},n};const ae={label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,setAttributes:Y().func,placeholder:Y().string,description:Y().string,isInline:Y().bool,disableDynamicContent:Y().bool};function le(t){ | |
| 94 | +const{label:e="",placeholder:i="",description:o="",attributeName:l,attributeValue:n,setAttributes:r,onChangeHandler:b,isInline:c=!1,disableDynamicContent:d,dynamicType:u="text",attributeObjectValue:p,context:m}=t,[h,g]=(0,a.useState)(n||"");(0,a.useEffect)(()=>{g(n||"")},[n]);const f=(0,a.useRef)(null),y=$l({disableDynamicContent:d,attributeName:l,attributeValue:n,setAttributes:r,dynamicType:u,attributeObjectValue:p,context:m});return(0,I.jsxs)("div",{className:s()("ablocks-control ablocks-control--textarea",{"ablocks-control--inline":c}),children:[(0,I.jsx)(at,{label:e,isResponsive:!1,affordance:y.affordance}),y.field||(0,I.jsx)(N.TextareaControl,{className:"ablocks-control__textarea",value:h,onChange:t=>{g(t),(t=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{const e=(0,M.Xz)(t);b?b(e):r({[l]:e})},300)})(t)},placeholder:i}),o&&(0,I.jsx)("p",{className:"ablocks-control__description",children:o})]})}le.propTypes=ae;const ne=M.Uz?.academy_lms?[{label:(0, | |
| 95 | +L.__)("Academy LMS","ablocks"),value:"alms",options:[{label:(0,L.__)("Count Topics","ablocks"),value:"numberOfTopics"},{label:(0,L.__)("Count Reviews","ablocks"),value:"numberOfReviews"},{label:(0,L.__)("Count Enrolled","ablocks"),value:"numberOfEnrolled"},{label:(0,L.__)("Total Duration","ablocks"),value:"totalDuration"}]}]:[],se=[{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,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, | |
| 96 | +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,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, | |
| 97 | +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"}]},...ne],re=[{label:(0,L.__)("Post Published","ablocks"),value:"post_published"},{label:(0,L.__)("Post Modified","ablocks"),value:"post_modified"}],be=Date.now(),ce=[{value:"default",label:(0,L.__)("default","ablocks")},{value:"F j, Y",label:(0,M.r6)(be,"F j, Y")},{value:"Y-m-d",label:(0,M.r6)(be,"Y-m-d")},{value:"m/d/Y",label:(0,M.r6)(be,"m/d/Y")},{value:"d/m/Y",label:(0,M.r6)(be,"d/m/Y")},{value:"custom",label:(0,L.__)("custom","ablocks")}],de=[{value:"default",label:(0,L.__)("default","ablocks")},{value:"g:i a",label:(0,M.r6)(be,"g:i a")},{value:"g:i A",label:(0,M.r6)(be,"g:i A")},{ | |
| 98 | +value:"H:i",label:(0,M.r6)(be,"H:i")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],ue=t=>{const{attributeValue:e,handleSettingAttribute:i,isForTime:o}=t,{source:a,dateTimeType:l,dateTimeFormat:n,customDateTimeFormat:s,group_item:r,DateFormatOfCurrentDateTime:b,customFormatOfCurrentDateTime:c,TimeFormatOfCurrentDateTime:d}=e;let u="post-time"===r,p=de,m=n,h=s,g="dateTimeFormat",f="customDateTimeFormat";const y="current-date-time"===a;return y&&(u=o,h=c,f="customFormatOfCurrentDateTime",u?(m=d,g="TimeFormatOfCurrentDateTime",p=[...de],p.pop()):(m=b,g="DateFormatOfCurrentDateTime")),(0,I.jsxs)(I.Fragment,{children:[!y&&(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),isResponsive:!1,options:re,attributeValue:l,onChangeHandler:t=>i({dateTimeType:t})}),(0,I.jsx)(Ut,{label:y?u?(0,L.__)("Time Format","ablocks"):(0,L.__)("Date Format","ablocks"):(0,L.__)("Format","ablocks"),isResponsive:!1,options:u?p:ce,attributeValue:m,onChangeHandler:t=>i({[g]:t})}),"custom"===m&&(0, | |
| 99 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Custom Format","ablocks"),attributeValue:h,disableDynamicContent:!0,onChangeHandler:t=>{i({[f]: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")})]})]})};function pe(t){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(t)}function me(t){var e=function(t){if("object"!=pe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=pe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==pe(e)?e:e+""}function he(t,e,i){ | |
| 100 | +return(e=me(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ge(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,o)}return i}function fe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(i),!0).forEach(function(e){he(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ge(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i<e;i++)o[i]=t[i];return o}function Te(t,e){if(t){if("string"==typeof t)return ye(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name), | |
| 101 | +"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ye(t,e):void 0}}function He(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o,a,l,n,s=[],r=!0,b=!1;try{if(l=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;r=!1}else for(;!(r=(o=l.call(i)).done)&&(s.push(o.value),s.length!==e);r=!0);}catch(t){b=!0,a=t}finally{try{if(!r&&null!=i.return&&(n=i.return(),Object(n)!==n))return}finally{if(b)throw a}}return s}}(t,e)||Te(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Me=i(98587);function xe(t,e){if(null==t)return{};var i,o,a=(0,Me.A)(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)i=l[o], | |
| 102 | +-1===e.indexOf(i)&&{}.propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}return a}var ke=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],ve=i(58168);function _e(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,me(o.key),o)}}function Re(t,e){return Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Re(t,e)}function Se(t){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Se(t)}function We(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(We=function(){return!!t})()}function Pe(t){return function(t){if(Array.isArray(t))return ye(t)}(t)||function(t){ | |
| 103 | +if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Te(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ue=function(){function t(t){var e=this;this._insertTag=function(t){var i;i=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,i),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key), | |
| 104 | +void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{i.insertRule(t,i.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),je=Math.abs,we=String.fromCharCode,ze=Object.assign;function Ce(t){return t.trim()}function Ae(t,e,i){return t.replace(e,i)}function Le(t,e){return t.indexOf(e)}function De(t,e){return 0|t.charCodeAt(e)}function Ne(t,e,i){return t.slice(e,i)}function Ie(t){return t.length}function Ve(t){return t.length}function Oe(t,e){return e.push(t),t}var Ye=1,Xe=1,Be=0,Ee=0,Fe=0,qe="" | |
| 105 | +;function $e(t,e,i,o,a,l,n){return{value:t,root:e,parent:i,type:o,props:a,children:l,line:Ye,column:Xe,length:n,return:""}}function Ge(t,e){return ze($e("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ze(){return Fe=Ee>0?De(qe,--Ee):0,Xe--,10===Fe&&(Xe=1,Ye--),Fe}function Ke(){return Fe=Ee<Be?De(qe,Ee++):0,Xe++,10===Fe&&(Xe=1,Ye++),Fe}function Je(){return De(qe,Ee)}function Qe(){return Ee}function ti(t,e){return Ne(qe,t,e)}function ei(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ii(t){return Ye=Xe=1,Be=Ie(qe=t),Ee=0,[]}function oi(t){return qe="",t}function ai(t){return Ce(ti(Ee-1,si(91===t?t+2:40===t?t+1:t)))}function li(t){for(;(Fe=Je())&&Fe<33;)Ke();return ei(t)>2||ei(Fe)>3?"":" "}function ni(t,e){for(;--e&&Ke()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97);); | |
| 106 | +return ti(t,Qe()+(e<6&&32==Je()&&32==Ke()))}function si(t){for(;Ke();)switch(Fe){case t:return Ee;case 34:case 39:34!==t&&39!==t&&si(Fe);break;case 40:41===t&&si(t);break;case 92:Ke()}return Ee}function ri(t,e){for(;Ke()&&t+Fe!==57&&(t+Fe!==84||47!==Je()););return"/*"+ti(e,Ee-1)+"*"+we(47===t?t:Ke())}function bi(t){for(;!ei(Je());)Ke();return ti(t,Ee)}var ci="-ms-",di="-moz-",ui="-webkit-",pi="comm",mi="rule",hi="decl",gi="@keyframes";function fi(t,e){for(var i="",o=Ve(t),a=0;a<o;a++)i+=e(t[a],a,t,e)||"";return i}function yi(t,e,i,o){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case hi:return t.return=t.return||t.value;case pi:return"";case gi:return t.return=t.value+"{"+fi(t.children,o)+"}";case mi:t.value=t.props.join(",")}return Ie(i=fi(t.children,o))?t.return=t.value+"{"+i+"}":""}function Ti(t){return oi(Hi("",null,null,null,[""],t=ii(t),0,[0],t))}function Hi(t,e,i,o,a,l,n,s,r){ | |
| 107 | +for(var b=0,c=0,d=n,u=0,p=0,m=0,h=1,g=1,f=1,y=0,T="",H=a,M=l,x=o,k=T;g;)switch(m=y,y=Ke()){case 40:if(108!=m&&58==De(k,d-1)){-1!=Le(k+=Ae(ai(y),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:k+=ai(y);break;case 9:case 10:case 13:case 32:k+=li(m);break;case 92:k+=ni(Qe()-1,7);continue;case 47:switch(Je()){case 42:case 47:Oe(xi(ri(Ke(),Qe()),e,i),r);break;default:k+="/"}break;case 123*h:s[b++]=Ie(k)*f;case 125*h:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==f&&(k=Ae(k,/\f/g,"")),p>0&&Ie(k)-d&&Oe(p>32?ki(k+";",o,i,d-1):ki(Ae(k," ","")+";",o,i,d-2),r);break;case 59:k+=";";default:if(Oe(x=Mi(k,e,i,b,c,a,s,T,H=[],M=[],d),l),123===y)if(0===c)Hi(k,e,x,x,H,l,d,s,M);else switch(99===u&&110===De(k,3)?100:u){case 100:case 108:case 109:case 115:Hi(t,x,x,o&&Oe(Mi(t,x,x,0,0,a,s,T,a,H=[],d),M),a,M,d,s,o?H:M);break;default:Hi(k,x,x,x,[""],M,0,s,M)}}b=c=p=0,h=f=1,T=k="",d=n;break;case 58:d=1+Ie(k),p=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==Ze())continue | |
| 108 | +;switch(k+=we(y),y*h){case 38:f=c>0?1:(k+="\f",-1);break;case 44:s[b++]=(Ie(k)-1)*f,f=1;break;case 64:45===Je()&&(k+=ai(Ke())),u=Je(),c=d=Ie(T=k+=bi(Qe())),y++;break;case 45:45===m&&2==Ie(k)&&(h=0)}}return l}function Mi(t,e,i,o,a,l,n,s,r,b,c){for(var d=a-1,u=0===a?l:[""],p=Ve(u),m=0,h=0,g=0;m<o;++m)for(var f=0,y=Ne(t,d+1,d=je(h=n[m])),T=t;f<p;++f)(T=Ce(h>0?u[f]+" "+y:Ae(y,/&\f/g,u[f])))&&(r[g++]=T);return $e(t,e,i,0===a?mi:s,r,b,c)}function xi(t,e,i){return $e(t,e,i,pi,we(Fe),Ne(t,2,-2),0)}function ki(t,e,i,o){return $e(t,e,i,hi,Ne(t,0,o),Ne(t,o+1,-1),o)}var vi=function(t,e,i){for(var o=0,a=0;o=a,a=Je(),38===o&&12===a&&(e[i]=1),!ei(a);)Ke();return ti(t,Ee)},_i=new WeakMap,Ri=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||_i.get(i))&&!o){_i.set(t,!0);for(var a=[],l=function(t,e){return oi(function(t,e){var i=-1,o=44;do{ | |
| 109 | +switch(ei(o)){case 0:38===o&&12===Je()&&(e[i]=1),t[i]+=vi(Ee-1,e,i);break;case 2:t[i]+=ai(o);break;case 4:if(44===o){t[++i]=58===Je()?"&\f":"",e[i]=t[i].length;break}default:t[i]+=we(o)}}while(o=Ke());return t}(ii(t),e))}(e,a),n=i.props,s=0,r=0;s<l.length;s++)for(var b=0;b<n.length;b++,r++)t.props[r]=a[s]?l[s].replace(/&\f/g,n[b]):n[b]+" "+l[s]}}},Si=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function Wi(t,e){switch(function(t,e){return 45^De(t,0)?(((e<<2^De(t,0))<<2^De(t,1))<<2^De(t,2))<<2^De(t,3):0}(t,e)){case 5103:return ui+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ui+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ui+t+di+t+ci+t+t;case 6828:case 4268:return ui+t+ci+t+t | |
| 110 | +;case 6165:return ui+t+ci+"flex-"+t+t;case 5187:return ui+t+Ae(t,/(\w+).+(:[^]+)/,ui+"box-$1$2"+ci+"flex-$1$2")+t;case 5443:return ui+t+ci+"flex-item-"+Ae(t,/flex-|-self/,"")+t;case 4675:return ui+t+ci+"flex-line-pack"+Ae(t,/align-content|flex-|-self/,"")+t;case 5548:return ui+t+ci+Ae(t,"shrink","negative")+t;case 5292:return ui+t+ci+Ae(t,"basis","preferred-size")+t;case 6060:return ui+"box-"+Ae(t,"-grow","")+ui+t+ci+Ae(t,"grow","positive")+t;case 4554:return ui+Ae(t,/([^-])(transform)/g,"$1"+ui+"$2")+t;case 6187:return Ae(Ae(Ae(t,/(zoom-|grab)/,ui+"$1"),/(image-set)/,ui+"$1"),t,"")+t;case 5495:case 3959:return Ae(t,/(image-set\([^]*)/,ui+"$1$`$1");case 4968:return Ae(Ae(t,/(.+:)(flex-)?(.*)/,ui+"box-pack:$3"+ci+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ui+t+t;case 4095:case 3583:case 4068:case 2532:return Ae(t,/(.+)-inline(.+)/,ui+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765: | |
| 111 | +if(Ie(t)-1-e>6)switch(De(t,e+1)){case 109:if(45!==De(t,e+4))break;case 102:return Ae(t,/(.+:)(.+)-([^]+)/,"$1"+ui+"$2-$3$1"+di+(108==De(t,e+3)?"$3":"$2-$3"))+t;case 115:return~Le(t,"stretch")?Wi(Ae(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==De(t,e+1))break;case 6444:switch(De(t,Ie(t)-3-(~Le(t,"!important")&&10))){case 107:return Ae(t,":",":"+ui)+t;case 101:return Ae(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ui+(45===De(t,14)?"inline-":"")+"box$3$1"+ui+"$2$3$1"+ci+"$2box$3")+t}break;case 5936:switch(De(t,e+11)){case 114:return ui+t+ci+Ae(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ui+t+ci+Ae(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ui+t+ci+Ae(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ui+t+ci+t+t}return t}var Pi=[function(t,e,i,o){if(t.length>-1&&!t.return)switch(t.type){case hi:t.return=Wi(t.value,t.length);break;case gi:return fi([Ge(t,{value:Ae(t.value,"@","@"+ui)})],o);case mi:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,function(e){ | |
| 112 | +switch(function(t){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return fi([Ge(t,{props:[Ae(e,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return fi([Ge(t,{props:[Ae(e,/:(plac\w+)/,":"+ui+"input-$1")]}),Ge(t,{props:[Ae(e,/:(plac\w+)/,":-moz-$1")]}),Ge(t,{props:[Ae(e,/:(plac\w+)/,ci+"input-$1")]})],o)}return""})}}],Ui=function(t){var e=t.key;if("css"===e){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var o,a,l=t.stylisPlugins||Pi,n={},s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),i=1;i<e.length;i++)n[e[i]]=!0;s.push(t)});var r,b,c,d,u=[yi,(d=function(t){r.insert(t)},function(t){t.root||(t=t.return)&&d(t) | |
| 113 | +})],p=(b=[Ri,Si].concat(l,u),c=Ve(b),function(t,e,i,o){for(var a="",l=0;l<c;l++)a+=b[l](t,e,i,o)||"";return a});a=function(t,e,i,o){r=i,fi(Ti(t?t+"{"+e.styles+"}":e.styles),p),o&&(m.inserted[e.name]=!0)};var m={key:e,sheet:new Ue({key:e,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:n,registered:{},insert:a};return m.sheet.hydrate(s),m},ji=function(t,e,i){var o=t.key+"-"+e.name;!1===i&&void 0===t.registered[o]&&(t.registered[o]=e.styles)},wi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1, | |
| 114 | +tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function zi(t){var e=Object.create(null);return function(i){return void 0===e[i]&&(e[i]=t(i)),e[i]}}var Ci=/[A-Z]|^ms/g,Ai=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Li=function(t){return 45===t.charCodeAt(1)},Di=function(t){return null!=t&&"boolean"!=typeof t},Ni=zi(function(t){return Li(t)?t:t.replace(Ci,"-$&").toLowerCase()}),Ii=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Ai,function(t,e,i){return Oi={name:e,styles:i,next:Oi},e})}return 1===wi[t]||Li(t)||"number"!=typeof e||0===e?e:e+"px"};function Vi(t,e,i){if(null==i)return"";var o=i;if(void 0!==o.__emotion_styles)return o;switch(typeof i){case"boolean":return"";case"object":var a=i;if(1===a.anim)return Oi={name:a.name,styles:a.styles,next:Oi},a.name;var l=i;if(void 0!==l.styles){var n=l.next | |
| 115 | +;if(void 0!==n)for(;void 0!==n;)Oi={name:n.name,styles:n.styles,next:Oi},n=n.next;return l.styles+";"}return function(t,e,i){var o="";if(Array.isArray(i))for(var a=0;a<i.length;a++)o+=Vi(t,e,i[a])+";";else for(var l in i){var n=i[l];if("object"!=typeof n){var s=n;null!=e&&void 0!==e[s]?o+=l+"{"+e[s]+"}":Di(s)&&(o+=Ni(l)+":"+Ii(l,s)+";")}else if(!Array.isArray(n)||"string"!=typeof n[0]||null!=e&&void 0!==e[n[0]]){var r=Vi(t,e,n);switch(l){case"animation":case"animationName":o+=Ni(l)+":"+r+";";break;default:o+=l+"{"+r+"}"}}else for(var b=0;b<n.length;b++)Di(n[b])&&(o+=Ni(l)+":"+Ii(l,n[b])+";")}return o}(t,e,i);case"function":if(void 0!==t){var s=Oi,r=i(t);return Oi=s,Vi(t,e,r)}}var b=i;if(null==e)return b;var c=e[b];return void 0!==c?c:b}var Oi,Yi=/label:\s*([^\s;{]+)\s*(;|$)/g;function Xi(t,e,i){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var o=!0,a="";Oi=void 0;var l=t[0];null==l||void 0===l.raw?(o=!1,a+=Vi(i,e,l)):a+=l[0] | |
| 116 | +;for(var n=1;n<t.length;n++)a+=Vi(i,e,t[n]),o&&(a+=l[n]);Yi.lastIndex=0;for(var s,r="";null!==(s=Yi.exec(a));)r+="-"+s[1];var b=function(t){for(var e,i=0,o=0,a=t.length;a>=4;++o,a-=4)e=1540483477*(65535&(e=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+(59797*(e>>>16)<<16),i=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(a){case 3:i^=(255&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)}(a)+r;return{name:b,styles:a,next:Oi}}var Bi,Ei,Fi=!!a.useInsertionEffect&&a.useInsertionEffect,qi=Fi||function(t){return t()},$i=(Fi||a.useLayoutEffect,a.createContext("undefined"!=typeof HTMLElement?Ui({key:"css"}):null)),Gi=($i.Provider,function(t){return(0,a.forwardRef)(function(e,i){var o=(0,a.useContext)($i) | |
| 117 | +;return t(e,o,i)})}),Zi=a.createContext({}),Ki={}.hasOwnProperty,Ji="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qi=function(t){var e=t.cache,i=t.serialized,o=t.isStringTag;return ji(e,i,o),qi(function(){return function(t,e,i){ji(t,e,i);var o=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var a=e;do{t.insert(e===a?"."+o:"",a,t.sheet,!0),a=a.next}while(void 0!==a)}}(e,i,o)}),null},to=Gi(function(t,e,i){var o=t.css;"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var l=t[Ji],n=[o],s="";"string"==typeof t.className?s=function(t,e,i){var o="";return i.split(" ").forEach(function(i){void 0!==t[i]?e.push(t[i]+";"):i&&(o+=i+" ")}),o}(e.registered,n,t.className):null!=t.className&&(s=t.className+" ");var r=Xi(n,void 0,a.useContext(Zi));s+=e.key+"-"+r.name;var b={};for(var c in t)Ki.call(t,c)&&"css"!==c&&c!==Ji&&(b[c]=t[c]);return b.className=s,i&&(b.ref=i),a.createElement(a.Fragment,null,a.createElement(Qi,{cache:e,serialized:r,isStringTag:"string"==typeof l}),a.createElement(l,b)) | |
| 118 | +}),eo=to,io=i(4146),oo=i.n(io),ao=function(t,e){var i=arguments;if(null==e||!Ki.call(e,"css"))return a.createElement.apply(void 0,i);var o=i.length,l=new Array(o);l[0]=eo,l[1]=function(t,e){var i={};for(var o in e)Ki.call(e,o)&&(i[o]=e[o]);return i[Ji]=t,i}(t,e);for(var n=2;n<o;n++)l[n]=i[n];return a.createElement.apply(null,l)};function lo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Xi(e)}Bi=ao||(ao={}),Ei||(Ei=Bi.JSX||(Bi.JSX={}));var no=i(75795),so=i.n(no);const ro=Math.min,bo=Math.max,co=Math.round,uo=Math.floor,po=t=>({x:t,y:t});function mo(){return"undefined"!=typeof window}function ho(t){return yo(t)?(t.nodeName||"").toLowerCase():"#document"}function go(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function fo(t){var e;return null==(e=(yo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function yo(t){return!!mo()&&(t instanceof Node||t instanceof go(t).Node)}function To(t){ | |
| 119 | +return!!mo()&&(t instanceof Element||t instanceof go(t).Element)}function Ho(t){return!!mo()&&(t instanceof HTMLElement||t instanceof go(t).HTMLElement)}function Mo(t){return!(!mo()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof go(t).ShadowRoot)}function xo(t){const{overflow:e,overflowX:i,overflowY:o,display:a}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&"inline"!==a&&"contents"!==a}let ko;function vo(t){return go(t).getComputedStyle(t)}function _o(t){const e=function(t){if("html"===ho(t))return t;const e=t.assignedSlot||t.parentNode||Mo(t)&&t.host||fo(t);return Mo(e)?e.host:e}(t);return function(t){return/^(html|body|#document)$/.test(ho(t))}(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ho(e)&&xo(e)?e:_o(e)}function Ro(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const a=_o(t),l=a===(null==(o=t.ownerDocument)?void 0:o.body),n=go(a);if(l){const t=So(n);return e.concat(n,n.visualViewport||[],xo(a)?a:[],t&&i?Ro(t):[])} | |
| 120 | +return e.concat(a,Ro(a,[],i))}function So(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Wo(t){return To(t)?t:t.contextElement}function Po(t){const e=Wo(t);if(!Ho(e))return po(1);const i=e.getBoundingClientRect(),{width:o,height:a,$:l}=function(t){const e=vo(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=Ho(t),l=a?t.offsetWidth:i,n=a?t.offsetHeight:o,s=co(i)!==l||co(o)!==n;return s&&(i=l,o=n),{width:i,height:o,$:s}}(e);let n=(l?co(i.width):i.width)/o,s=(l?co(i.height):i.height)/a;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}const Uo=po(0);function jo(t){const e=go(t);return null==ko&&(ko="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ko&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Uo}function wo(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const a=t.getBoundingClientRect(),l=Wo(t);let n=po(1);e&&(o?To(o)&&(n=Po(o)):n=Po(t)) | |
| 121 | +;const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==go(t))&&e}(l,i,o)?jo(l):po(0);let r=(a.left+s.x)/n.x,b=(a.top+s.y)/n.y,c=a.width/n.x,d=a.height/n.y;if(l){const t=go(l),e=o&&To(o)?go(o):o;let i=t,a=So(i);for(;a&&o&&e!==i;){const t=Po(a),e=a.getBoundingClientRect(),o=vo(a),l=e.left+(a.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(a.clientTop+parseFloat(o.paddingTop))*t.y;r*=t.x,b*=t.y,c*=t.x,d*=t.y,r+=l,b+=n,i=go(a),a=So(i)}}return function(t){const{x:e,y:i,width:o,height:a}=t;return{width:o,height:a,top:i,left:e,right:e+o,bottom:i+a,x:e,y:i}}({width:c,height:d,x:r,y:b})}function zo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}var Co=a.useLayoutEffect,Ao=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Lo=function(){};function Do(t,e){return e?"-"===e[0]?t+e:t+"__"+e:t}function No(t,e){ | |
| 122 | +for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];var l=[].concat(o);if(e&&t)for(var n in e)e.hasOwnProperty(n)&&e[n]&&l.push("".concat(Do(t,n)));return l.filter(function(t){return t}).map(function(t){return String(t).trim()}).join(" ")}var Io=function(t){return e=t,Array.isArray(e)?t.filter(Boolean):"object"===pe(t)&&null!==t?[t]:[];var e},Vo=function(t){return t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme,fe({},xe(t,Ao))},Oo=function(t,e,i){var o=t.cx,a=t.getStyles,l=t.getClassNames,n=t.className;return{css:a(e,t),className:o(null!=i?i:{},l(e,t),n)}};function Yo(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Xo(t){return Yo(t)?window.pageYOffset:t.scrollTop}function Bo(t,e){Yo(t)?window.scrollTo(0,e):t.scrollTop=e}function Eo(t,e){ | |
| 123 | +var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Lo,a=Xo(t),l=e-a,n=0;!function e(){var s=function(t,e,i,o){return i*((t=t/o-1)*t*t+1)+e}(n+=10,a,l,i);Bo(t,s),n<i?window.requestAnimationFrame(e):o(t)}()}function Fo(t,e){var i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),a=e.offsetHeight/3;o.bottom+a>i.bottom?Bo(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<i.top&&Bo(t,Math.max(e.offsetTop-a,0))}function qo(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}var $o=!1,Go={get passive(){return $o=!0}},Zo="undefined"!=typeof window?window:{};Zo.addEventListener&&Zo.removeEventListener&&(Zo.addEventListener("p",Lo,Go),Zo.removeEventListener("p",Lo,!1));var Ko=$o;function Jo(t){return null!=t}function Qo(t,e,i){return t?e:i}var ta=["children","innerProps"],ea=["children","innerProps"];var ia,oa=function(t){return"auto"===t?"bottom":t},aa=(0, | |
| 124 | +a.createContext)(null),la=function(t){var e=t.children,i=t.minMenuHeight,o=t.maxMenuHeight,l=t.menuPlacement,n=t.menuPosition,s=t.menuShouldScrollIntoView,r=t.theme,b=((0,a.useContext)(aa)||{}).setPortalPlacement,c=(0,a.useRef)(null),d=He((0,a.useState)(o),2),u=d[0],p=d[1],m=He((0,a.useState)(null),2),h=m[0],g=m[1],f=r.spacing.controlHeight;return Co(function(){var t=c.current;if(t){var e="fixed"===n,a=function(t){var e=t.maxHeight,i=t.menuEl,o=t.minHeight,a=t.placement,l=t.shouldScroll,n=t.isFixedPosition,s=t.controlHeight,r=function(t){var e=getComputedStyle(t),i="absolute"===e.position,o=/(auto|scroll)/;if("fixed"===e.position)return document.documentElement;for(var a=t;a=a.parentElement;)if(e=getComputedStyle(a),(!i||"static"!==e.position)&&o.test(e.overflow+e.overflowY+e.overflowX))return a;return document.documentElement}(i),b={placement:"bottom",maxHeight:e};if(!i||!i.offsetParent)return b | |
| 125 | +;var c,d=r.getBoundingClientRect().height,u=i.getBoundingClientRect(),p=u.bottom,m=u.height,h=u.top,g=i.offsetParent.getBoundingClientRect().top,f=n||Yo(c=r)?window.innerHeight:c.clientHeight,y=Xo(r),T=parseInt(getComputedStyle(i).marginBottom,10),H=parseInt(getComputedStyle(i).marginTop,10),M=g-H,x=f-h,k=M+y,v=d-y-h,_=p-f+y+T,R=y+h-H,S=160;switch(a){case"auto":case"bottom":if(x>=m)return{placement:"bottom",maxHeight:e};if(v>=m&&!n)return l&&Eo(r,_,S),{placement:"bottom",maxHeight:e};if(!n&&v>=o||n&&x>=o)return l&&Eo(r,_,S),{placement:"bottom",maxHeight:n?x-T:v-T};if("auto"===a||n){var W=e,P=n?M:k;return P>=o&&(W=Math.min(P-T-s,e)),{placement:"top",maxHeight:W}}if("bottom"===a)return l&&Bo(r,_),{placement:"bottom",maxHeight:e};break;case"top":if(M>=m)return{placement:"top",maxHeight:e};if(k>=m&&!n)return l&&Eo(r,R,S),{placement:"top",maxHeight:e};if(!n&&k>=o||n&&M>=o){var U=e;return(!n&&k>=o||n&&M>=o)&&(U=n?M-H:k-H),l&&Eo(r,R,S),{placement:"top",maxHeight:U}}return{placement:"bottom", | |
| 126 | +maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return b}({maxHeight:o,menuEl:t,minHeight:i,placement:l,shouldScroll:s&&!e,isFixedPosition:e,controlHeight:f});p(a.maxHeight),g(a.placement),null==b||b(a.placement)}},[o,l,n,s,i,b,f]),e({ref:c,placerProps:fe(fe({},t),{},{placement:h||oa(l),maxHeight:u})})},na=function(t,e){var i=t.theme,o=i.spacing.baseUnit,a=i.colors;return fe({textAlign:"center"},e?{}:{color:a.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},sa=na,ra=na,ba=["size"],ca=["innerProps","isRtl","size"],da={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ua=function(t){var e=t.size,i=xe(t,ba);return ao("svg",(0,ve.A)({height:e,width:e,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:da},i))},pa=function(t){return ao(ua,(0,ve.A)({size:20},t),ao("path",{ | |
| 127 | +d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ma=function(t){return ao(ua,(0,ve.A)({size:20},t),ao("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ha=function(t,e){var i=t.isFocused,o=t.theme,a=o.spacing.baseUnit,l=o.colors;return fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},e?{}:{color:i?l.neutral60:l.neutral20,padding:2*a,":hover":{color:i?l.neutral80:l.neutral40}})},ga=ha,fa=ha,ya=function(){ | |
| 128 | +var t=lo.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ia||(ia=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Ta=function(t){var e=t.delay,i=t.offset;return ao("span",{css:lo({animation:"".concat(ya," 1s ease-in-out ").concat(e,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ha=["data"],Ma=["innerRef","isDisabled","isHidden","inputClassName"],xa={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ka={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fe({content:'attr(data-value) " "',visibility:"hidden", | |
| 129 | +whiteSpace:"pre"},xa)},va=function(t){return fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},xa)},_a=function(t){var e=t.children,i=t.innerProps;return ao("div",i,e)},Ra={ClearIndicator:function(t){var e=t.children,i=t.innerProps;return ao("div",(0,ve.A)({},Oo(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),e||ao(pa,null))},Control:function(t){var e=t.children,i=t.isDisabled,o=t.isFocused,a=t.innerRef,l=t.innerProps,n=t.menuIsOpen;return ao("div",(0,ve.A)({ref:a},Oo(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":o,"control--menu-is-open":n}),l,{"aria-disabled":i||void 0}),e)},DropdownIndicator:function(t){var e=t.children,i=t.innerProps;return ao("div",(0,ve.A)({},Oo(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),e||ao(ma,null))},DownChevron:ma,CrossIcon:pa,Group:function(t){ | |
| 130 | +var e=t.children,i=t.cx,o=t.getStyles,a=t.getClassNames,l=t.Heading,n=t.headingProps,s=t.innerProps,r=t.label,b=t.theme,c=t.selectProps;return ao("div",(0,ve.A)({},Oo(t,"group",{group:!0}),s),ao(l,(0,ve.A)({},n,{selectProps:c,theme:b,getStyles:o,getClassNames:a,cx:i}),r),ao("div",null,e))},GroupHeading:function(t){var e=Vo(t);e.data;var i=xe(e,Ha);return ao("div",(0,ve.A)({},Oo(t,"groupHeading",{"group-heading":!0}),i))},IndicatorsContainer:function(t){var e=t.children,i=t.innerProps;return ao("div",(0,ve.A)({},Oo(t,"indicatorsContainer",{indicators:!0}),i),e)},IndicatorSeparator:function(t){var e=t.innerProps;return ao("span",(0,ve.A)({},e,Oo(t,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(t){var e=t.cx,i=t.value,o=Vo(t),a=o.innerRef,l=o.isDisabled,n=o.isHidden,s=o.inputClassName,r=xe(o,Ma);return ao("div",(0,ve.A)({},Oo(t,"input",{"input-container":!0}),{"data-value":i||""}),ao("input",(0,ve.A)({className:e({input:!0},s),ref:a,style:va(n),disabled:l},r)))}, | |
| 131 | +LoadingIndicator:function(t){var e=t.innerProps,i=t.isRtl,o=t.size,a=void 0===o?4:o,l=xe(t,ca);return ao("div",(0,ve.A)({},Oo(fe(fe({},l),{},{innerProps:e,isRtl:i,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),e),ao(Ta,{delay:0,offset:i}),ao(Ta,{delay:160,offset:!0}),ao(Ta,{delay:320,offset:!i}))},Menu:function(t){var e=t.children,i=t.innerRef,o=t.innerProps;return ao("div",(0,ve.A)({},Oo(t,"menu",{menu:!0}),{ref:i},o),e)},MenuList:function(t){var e=t.children,i=t.innerProps,o=t.innerRef,a=t.isMulti;return ao("div",(0,ve.A)({},Oo(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},i),e)},MenuPortal:function(t){var e=t.appendTo,i=t.children,o=t.controlElement,l=t.innerProps,n=t.menuPlacement,s=t.menuPosition,r=(0,a.useRef)(null),b=(0,a.useRef)(null),c=He((0,a.useState)(oa(n)),2),d=c[0],u=c[1],p=(0,a.useMemo)(function(){return{setPortalPlacement:u}},[]),m=He((0,a.useState)(null),2),h=m[0],g=m[1],f=(0,a.useCallback)(function(){if(o){var t=function(t){ | |
| 132 | +var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}(o),e="fixed"===s?0:window.pageYOffset,i=t[d]+e;i===(null==h?void 0:h.offset)&&t.left===(null==h?void 0:h.rect.left)&&t.width===(null==h?void 0:h.rect.width)||g({offset:i,rect:t})}},[o,s,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Co(function(){f()},[f]);var y=(0,a.useCallback)(function(){"function"==typeof b.current&&(b.current(),b.current=null),o&&r.current&&(b.current=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:r=!1}=o,b=Wo(t),c=a||l?[...b?Ro(b):[],...e?Ro(e):[]]:[];c.forEach(t=>{a&&t.addEventListener("scroll",i,{passive:!0}),l&&t.addEventListener("resize",i)});const d=b&&s?function(t,e){let i,o=null;const a=fo(t);function l(){var t;clearTimeout(i), | |
| 133 | +null==(t=o)||t.disconnect(),o=null}return function n(s,r){void 0===s&&(s=!1),void 0===r&&(r=1),l();const b=t.getBoundingClientRect(),{left:c,top:d,width:u,height:p}=b;if(s||e(),!u||!p)return;const m={rootMargin:-uo(d)+"px "+-uo(a.clientWidth-(c+u))+"px "+-uo(a.clientHeight-(d+p))+"px "+-uo(c)+"px",threshold:bo(0,ro(1,r))||1};let h=!0;function g(e){const o=e[0].intersectionRatio;if(o!==r){if(!h)return n();o?n(!1,o):i=setTimeout(()=>{n(!1,1e-7)},1e3)}1!==o||zo(b,t.getBoundingClientRect())||n(),h=!1}try{o=new IntersectionObserver(g,{...m,root:a.ownerDocument})}catch(t){o=new IntersectionObserver(g,m)}o.observe(t)}(!0),l}(b,i):null;let u,p=-1,m=null;n&&(m=new ResizeObserver(t=>{let[o]=t;o&&o.target===b&&m&&e&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=m)||t.observe(e)})),i()}),b&&!r&&m.observe(b),e&&m.observe(e));let h=r?wo(t):null;return r&&function e(){const o=wo(t);h&&!zo(h,o)&&i(),h=o,u=requestAnimationFrame(e)}(),i(),()=>{var t;c.forEach(t=>{ | |
| 134 | +a&&t.removeEventListener("scroll",i),l&&t.removeEventListener("resize",i)}),null==d||d(),null==(t=m)||t.disconnect(),m=null,r&&cancelAnimationFrame(u)}}(o,r.current,f,{elementResize:"ResizeObserver"in window}))},[o,f]);Co(function(){y()},[y]);var T=(0,a.useCallback)(function(t){r.current=t,y()},[y]);if(!e&&"fixed"!==s||!h)return null;var H=ao("div",(0,ve.A)({ref:T},Oo(fe(fe({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),l),i);return ao(aa.Provider,{value:p},e?(0,no.createPortal)(H,e):H)},LoadingMessage:function(t){var e=t.children,i=void 0===e?"Loading...":e,o=t.innerProps,a=xe(t,ea);return ao("div",(0,ve.A)({},Oo(fe(fe({},a),{},{children:i,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),i)},NoOptionsMessage:function(t){var e=t.children,i=void 0===e?"No options":e,o=t.innerProps,a=xe(t,ta);return ao("div",(0,ve.A)({},Oo(fe(fe({},a),{},{children:i,innerProps:o}),"noOptionsMessage",{"menu-notice":!0, | |
| 135 | +"menu-notice--no-options":!0}),o),i)},MultiValue:function(t){var e=t.children,i=t.components,o=t.data,a=t.innerProps,l=t.isDisabled,n=t.removeProps,s=t.selectProps,r=i.Container,b=i.Label,c=i.Remove;return ao(r,{data:o,innerProps:fe(fe({},Oo(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),a),selectProps:s},ao(b,{data:o,innerProps:fe({},Oo(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},e),ao(c,{data:o,innerProps:fe(fe({},Oo(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(e||"option")},n),selectProps:s}))},MultiValueContainer:_a,MultiValueLabel:_a,MultiValueRemove:function(t){var e=t.children,i=t.innerProps;return ao("div",(0,ve.A)({role:"button"},i),e||ao(pa,{size:14}))},Option:function(t){var e=t.children,i=t.isDisabled,o=t.isFocused,a=t.isSelected,l=t.innerRef,n=t.innerProps;return ao("div",(0,ve.A)({},Oo(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":o,"option--is-selected":a}),{ref:l, | |
| 136 | +"aria-disabled":i},n),e)},Placeholder:function(t){var e=t.children,i=t.innerProps;return ao("div",(0,ve.A)({},Oo(t,"placeholder",{placeholder:!0}),i),e)},SelectContainer:function(t){var e=t.children,i=t.innerProps,o=t.isDisabled,a=t.isRtl;return ao("div",(0,ve.A)({},Oo(t,"container",{"--is-disabled":o,"--is-rtl":a}),i),e)},SingleValue:function(t){var e=t.children,i=t.isDisabled,o=t.innerProps;return ao("div",(0,ve.A)({},Oo(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),o),e)},ValueContainer:function(t){var e=t.children,i=t.innerProps,o=t.isMulti,a=t.hasValue;return ao("div",(0,ve.A)({},Oo(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),i),e)}},Sa=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function Wa(t,e){return t===e||!(!Sa(t)||!Sa(e))}function Pa(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!Wa(t[i],e[i]))return!1;return!0}for(var Ua={name:"7pg0cj-a11yText", | |
| 137 | +styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ja=function(t){return ao("span",(0,ve.A)({css:Ua},t))},wa={guidance:function(t){var e=t.isSearchable,i=t.isMulti,o=t.tabSelectsValue,a=t.context,l=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(e?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var e=t.action,i=t.label,o=void 0===i?"":i,a=t.labels,l=t.isDisabled;switch(e){ | |
| 138 | +case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(o,l?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(t){var e=t.context,i=t.focused,o=t.options,a=t.label,l=void 0===a?"":a,n=t.selectValue,s=t.isDisabled,r=t.isSelected,b=t.isAppleDevice,c=function(t,e){return t&&t.length?"".concat(t.indexOf(e)+1," of ").concat(t.length):""};if("value"===e&&n)return"value ".concat(l," focused, ").concat(c(n,i),".");if("menu"===e&&b){var d=s?" disabled":"",u="".concat(r?" selected":"").concat(d);return"".concat(l).concat(u,", ").concat(c(o,i),".")}return""},onFilter:function(t){var e=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(e?" for search term "+e:"",".")}},za=function(t){ | |
| 139 | +var e=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,l=t.focusableOptions,n=t.isFocused,s=t.selectValue,r=t.selectProps,b=t.id,c=t.isAppleDevice,d=r.ariaLiveMessages,u=r.getOptionLabel,p=r.inputValue,m=r.isMulti,h=r.isOptionDisabled,g=r.isSearchable,f=r.menuIsOpen,y=r.options,T=r.screenReaderStatus,H=r.tabSelectsValue,M=r.isLoading,x=r["aria-label"],k=r["aria-live"],v=(0,a.useMemo)(function(){return fe(fe({},wa),d||{})},[d]),_=(0,a.useMemo)(function(){var t,i="";if(e&&v.onChange){var o=e.option,a=e.options,l=e.removedValue,n=e.removedValues,r=e.value,b=l||o||(t=r,Array.isArray(t)?null:t),c=b?u(b):"",d=a||n||void 0,p=d?d.map(u):[],m=fe({isDisabled:b&&h(b,s),label:c,labels:p},e);i=v.onChange(m)}return i},[e,v,h,s,u]),R=(0,a.useMemo)(function(){var t="",e=i||o,a=!!(i&&s&&s.includes(i));if(e&&v.onFocus){var n={focused:e,label:u(e),isDisabled:h(e,s),isSelected:a,options:l,context:e===i?"menu":"value",selectValue:s,isAppleDevice:c};t=v.onFocus(n)}return t},[i,o,u,h,v,l,s,c]),S=(0, | |
| 140 | +a.useMemo)(function(){var t="";if(f&&y.length&&!M&&v.onFilter){var e=T({count:l.length});t=v.onFilter({inputValue:p,resultsMessage:e})}return t},[l,p,f,v,y,T,M]),W="initial-input-focus"===(null==e?void 0:e.action),P=(0,a.useMemo)(function(){var t="";if(v.guidance){var e=o?"value":f?"menu":"input";t=v.guidance({"aria-label":x,context:e,isDisabled:i&&h(i,s),isMulti:m,isSearchable:g,tabSelectsValue:H,isInitialFocus:W})}return t},[x,i,o,m,h,g,f,v,s,H,W]),U=ao(a.Fragment,null,ao("span",{id:"aria-selection"},_),ao("span",{id:"aria-focused"},R),ao("span",{id:"aria-results"},S),ao("span",{id:"aria-guidance"},P));return ao(a.Fragment,null,ao(ja,{id:b},W&&U),ao(ja,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},n&&!W&&U))},Ca=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{ | |
| 145 | 141 | base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V", |
| 146 | 142 | letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o", |
| 147 | -letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ia=new RegExp("["+Na.map(function(t){return t.letters}).join("")+"]","g"),Va={},Oa=0;Oa<Na.length;Oa++)for(var Ya=Na[Oa],Xa=0;Xa<Ya.letters.length;Xa++)Va[Ya.letters[Xa]]=Ya.base;var Ba=function(t){return t.replace(Ia,function(t){return Va[t]})},Ea=function(t,e){void 0===e&&(e=za);var i=null;function o(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(i&&i.lastThis===this&&e(o,i.lastArgs))return i.lastResult | |
| 148 | -;var l=t.apply(this,o);return i={lastResult:l,lastArgs:o,lastThis:this},l}return o.clear=function(){i=null},o}(Ba),Fa=function(t){return t.replace(/^\s+|\s+$/g,"")},qa=function(t){return"".concat(t.label," ").concat(t.value)},$a=["innerRef"];function Ga(t){var e=t.innerRef,i=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];var a=Object.entries(t).filter(function(t){var e=ve(t,1)[0];return!i.includes(e)});return a.reduce(function(t,e){var i=ve(e,2),o=i[0],a=i[1];return t[o]=a,t},{})}(Re(t,$a),"onExited","in","enter","exit","appear");return ro("input",(0,We.A)({ref:e},i,{css:bo({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Za=["boxSizing","height","overflow","paddingRight","position"],Ka={boxSizing:"border-box",overflow:"hidden",position:"relative", | |
| 149 | -height:"100%"};function Ja(t){t.cancelable&&t.preventDefault()}function Qa(t){t.stopPropagation()}function tl(){var t=this.scrollTop,e=this.scrollHeight,i=t+this.offsetHeight;0===t?this.scrollTop=1:i===e&&(this.scrollTop=t-1)}function el(){return"ontouchstart"in window||navigator.maxTouchPoints}var il=!("undefined"==typeof window||!window.document||!window.document.createElement),ol=0,al={capture:!1,passive:!1},ll=function(t){var e=t.target;return e.ownerDocument.activeElement&&e.ownerDocument.activeElement.blur()},nl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function sl(t){var e=t.children,i=t.lockEnabled,o=t.captureEnabled,l=function(t){var e=t.isEnabled,i=t.onBottomArrive,o=t.onBottomLeave,l=t.onTopArrive,n=t.onTopLeave,s=(0,a.useRef)(!1),r=(0,a.useRef)(!1),b=(0,a.useRef)(0),c=(0,a.useRef)(null),d=(0,a.useCallback)(function(t,e){if(null!==c.current){var a=c.current,b=a.scrollTop,d=a.scrollHeight,u=a.clientHeight,p=c.current,m=e>0,h=d-u-b,g=!1 | |
| 150 | -;h>e&&s.current&&(o&&o(t),s.current=!1),m&&r.current&&(n&&n(t),r.current=!1),m&&e>h?(i&&!s.current&&i(t),p.scrollTop=d,g=!0,s.current=!0):!m&&-e>b&&(l&&!r.current&&l(t),p.scrollTop=0,g=!0,r.current=!0),g&&function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()}(t)}},[i,o,l,n]),u=(0,a.useCallback)(function(t){d(t,t.deltaY)},[d]),p=(0,a.useCallback)(function(t){b.current=t.changedTouches[0].clientY},[]),m=(0,a.useCallback)(function(t){var e=b.current-t.changedTouches[0].clientY;d(t,e)},[d]),h=(0,a.useCallback)(function(t){if(t){var e=!!ea&&{passive:!1};t.addEventListener("wheel",u,e),t.addEventListener("touchstart",p,e),t.addEventListener("touchmove",m,e)}},[m,p,u]),g=(0,a.useCallback)(function(t){t&&(t.removeEventListener("wheel",u,!1),t.removeEventListener("touchstart",p,!1),t.removeEventListener("touchmove",m,!1))},[m,p,u]);return(0,a.useEffect)(function(){if(e){var t=c.current;return h(t),function(){g(t)}}},[e,h,g]),function(t){c.current=t}}({isEnabled:void 0===o||o, | |
| 151 | -onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),n=function(t){var e=t.isEnabled,i=t.accountForScrollbars,o=void 0===i||i,l=(0,a.useRef)({}),n=(0,a.useRef)(null),s=(0,a.useCallback)(function(t){if(il){var e=document.body,i=e&&e.style;if(o&&Za.forEach(function(t){var e=i&&i[t];l.current[t]=e}),o&&ol<1){var a=parseInt(l.current.paddingRight,10)||0,n=document.body?document.body.clientWidth:0,s=window.innerWidth-n+a||0;Object.keys(Ka).forEach(function(t){var e=Ka[t];i&&(i[t]=e)}),i&&(i.paddingRight="".concat(s,"px"))}e&&el()&&(e.addEventListener("touchmove",Ja,al),t&&(t.addEventListener("touchstart",tl,al),t.addEventListener("touchmove",Qa,al))),ol+=1}},[o]),r=(0,a.useCallback)(function(t){if(il){var e=document.body,i=e&&e.style;ol=Math.max(ol-1,0),o&&ol<1&&Za.forEach(function(t){var e=l.current[t];i&&(i[t]=e)}),e&&el()&&(e.removeEventListener("touchmove",Ja,al),t&&(t.removeEventListener("touchstart",tl,al), | |
| 152 | -t.removeEventListener("touchmove",Qa,al)))}},[o]);return(0,a.useEffect)(function(){if(e){var t=n.current;return s(t),function(){r(t)}}},[e,s,r]),function(t){n.current=t}}({isEnabled:i});return ro(a.Fragment,null,i&&ro("div",{onClick:ll,css:nl}),e(function(t){l(t),n(t)}))}var rl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},bl=function(t){var e=t.name,i=t.onFocus;return ro("input",{required:!0,name:e,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:rl,value:"",onChange:function(){}})};function cl(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&t.test((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.platform)||window.navigator.platform)}function dl(){return cl(/^Mac/i)}var ul={clearIndicator:Ma,container:function(t){var e=t.isDisabled;return{label:"container",direction:t.isRtl?"rtl":void 0,pointerEvents:e?"none":void 0,position:"relative"}}, | |
| 153 | -control:function(t,e){var i=t.isDisabled,o=t.isFocused,a=t.theme,l=a.colors,n=a.borderRadius;return Me({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},e?{}:{backgroundColor:i?l.neutral5:l.neutral0,borderColor:i?l.neutral10:o?l.primary:l.neutral20,borderRadius:n,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:o?l.primary:l.neutral30}})},dropdownIndicator:Ha,group:function(t,e){var i=t.theme.spacing;return e?{}:{paddingBottom:2*i.baseUnit,paddingTop:2*i.baseUnit}},groupHeading:function(t,e){var i=t.theme,o=i.colors,a=i.spacing;return Me({label:"group",cursor:"default",display:"block"},e?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})}, | |
| 154 | -indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(t,e){var i=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,l=o.colors;return Me({label:"indicatorSeparator",alignSelf:"stretch",width:1},e?{}:{backgroundColor:i?l.neutral10:l.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(t,e){var i=t.isDisabled,o=t.value,a=t.theme,l=a.spacing,n=a.colors;return Me(Me({visibility:i?"hidden":"visible",transform:o?"translateZ(0)":""},Sa),e?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:n.neutral80})},loadingIndicator:function(t,e){var i=t.isFocused,o=t.size,a=t.theme,l=a.colors,n=a.spacing.baseUnit;return Me({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},e?{}:{color:i?l.neutral60:l.neutral20,padding:2*n})},loadingMessage:ua,menu:function(t,e){ | |
| 155 | -var i,o=t.placement,a=t.theme,l=a.borderRadius,n=a.spacing,s=a.colors;return Me((Te(i={label:"menu"},function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(o),"100%"),Te(i,"position","absolute"),Te(i,"width","100%"),Te(i,"zIndex",1),i),e?{}:{backgroundColor:s.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:n.menuGutter,marginTop:n.menuGutter})},menuList:function(t,e){var i=t.maxHeight,o=t.theme.spacing.baseUnit;return Me({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},e?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(t){var e=t.rect,i=t.offset,o=t.position;return{left:e.left,position:o,top:i,width:e.width,zIndex:1}},multiValue:function(t,e){var i=t.theme,o=i.spacing,a=i.borderRadius,l=i.colors;return Me({label:"multiValue",display:"flex",minWidth:0},e?{}:{backgroundColor:l.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},multiValueLabel:function(t,e){ | |
| 156 | -var i=t.theme,o=i.borderRadius,a=i.colors,l=t.cropWithEllipsis;return Me({overflow:"hidden",textOverflow:l||void 0===l?"ellipsis":void 0,whiteSpace:"nowrap"},e?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(t,e){var i=t.theme,o=i.spacing,a=i.borderRadius,l=i.colors,n=t.isFocused;return Me({alignItems:"center",display:"flex"},e?{}:{borderRadius:a/2,backgroundColor:n?l.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},noOptionsMessage:da,option:function(t,e){var i=t.isDisabled,o=t.isFocused,a=t.isSelected,l=t.theme,n=l.spacing,s=l.colors;return Me({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},e?{}:{backgroundColor:a?s.primary:o?s.primary25:"transparent",color:i?s.neutral20:a?s.neutral0:"inherit",padding:"".concat(2*n.baseUnit,"px ").concat(3*n.baseUnit,"px"), | |
| 157 | -":active":{backgroundColor:i?void 0:a?s.primary:s.primary50}})},placeholder:function(t,e){var i=t.theme,o=i.spacing,a=i.colors;return Me({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},e?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(t,e){var i=t.isDisabled,o=t.theme,a=o.spacing,l=o.colors;return Me({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e?{}:{color:i?l.neutral40:l.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(t,e){var i=t.theme.spacing,o=t.isMulti,a=t.hasValue,l=t.selectProps.controlShouldRenderValue;return Me({alignItems:"center",display:o&&a&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},e?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(2*i.baseUnit,"px")})}},pl={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF", | |
| 158 | -primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ml={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ko(),captureMenuScroll:!Ko(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){if(t.data.__isNew__)return!0;var i=Me({ignoreCase:!0,ignoreAccents:!0,stringify:qa,trim:!0,matchFrom:"any"},void 0),o=i.ignoreCase,a=i.ignoreAccents,l=i.stringify,n=i.trim,s=i.matchFrom,r=n?Fa(e):e,b=n?Fa(l(t)):l(t);return o&&(r=r.toLowerCase(),b=b.toLowerCase()),a&&(r=Ea(r),b=Ba(b)),"start"===s?b.substr(0,r.length)===r:b.indexOf(r)>-1 | |
| 159 | -},formatGroupLabel:function(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(t){return!!t.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(t){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hl(t,e,i,o){return{type:"option",data:e,isDisabled:kl(t,e,i),isSelected:vl(t,e,i),label:Ml(t,e),value:xl(t,e),index:o}} | |
| 160 | -function gl(t,e){return t.options.map(function(i,o){if("options"in i){var a=i.options.map(function(i,o){return hl(t,i,e,o)}).filter(function(e){return Tl(t,e)});return a.length>0?{type:"group",data:i,options:a,index:o}:void 0}var l=hl(t,i,e,o);return Tl(t,l)?l:void 0}).filter(ia)}function fl(t){return t.reduce(function(t,e){return"group"===e.type?t.push.apply(t,ze(e.options.map(function(t){return t.data}))):t.push(e.data),t},[])}function yl(t,e){return t.reduce(function(t,i){return"group"===i.type?t.push.apply(t,ze(i.options.map(function(t){return{data:t.data,id:"".concat(e,"-").concat(i.index,"-").concat(t.index)}}))):t.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),t},[])}function Tl(t,e){var i=t.inputValue,o=void 0===i?"":i,a=e.data,l=e.isSelected,n=e.label,s=e.value;return(!Rl(t)||!l)&&_l(t,{label:n,value:s,data:a},o)}var Hl=function(t,e){var i;return(null===(i=t.find(function(t){return t.data===e}))||void 0===i?void 0:i.id)||null},Ml=function(t,e){ | |
| 161 | -return t.getOptionLabel(e)},xl=function(t,e){return t.getOptionValue(e)};function kl(t,e,i){return"function"==typeof t.isOptionDisabled&&t.isOptionDisabled(e,i)}function vl(t,e,i){if(i.indexOf(e)>-1)return!0;if("function"==typeof t.isOptionSelected)return t.isOptionSelected(e,i);var o=xl(t,e);return i.some(function(e){return xl(t,e)===o})}function _l(t,e,i){return!t.filterOption||t.filterOption(e,i)}var Rl=function(t){var e=t.hideSelectedOptions,i=t.isMulti;return void 0===e?i:e},Sl=1,Wl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pe(t,e)}(i,t);var e=function(t){var e=we();return function(){var i,o=je(t);if(e){var a=je(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return function(t,e){ | |
| 162 | -if(e&&("object"==fe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i)}}(i);function i(t){var o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(o=e.call(this,t)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(t){o.controlRef=t},o.focusedOptionRef=null, | |
| 143 | +letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Aa=new RegExp("["+Ca.map(function(t){return t.letters}).join("")+"]","g"),La={},Da=0;Da<Ca.length;Da++)for(var Na=Ca[Da],Ia=0;Ia<Na.letters.length;Ia++)La[Na.letters[Ia]]=Na.base;var Va=function(t){return t.replace(Aa,function(t){return La[t]})},Oa=function(t,e){void 0===e&&(e=Pa);var i=null;function o(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(i&&i.lastThis===this&&e(o,i.lastArgs))return i.lastResult | |
| 144 | +;var l=t.apply(this,o);return i={lastResult:l,lastArgs:o,lastThis:this},l}return o.clear=function(){i=null},o}(Va),Ya=function(t){return t.replace(/^\s+|\s+$/g,"")},Xa=function(t){return"".concat(t.label," ").concat(t.value)},Ba=["innerRef"];function Ea(t){var e=t.innerRef,i=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];var a=Object.entries(t).filter(function(t){var e=He(t,1)[0];return!i.includes(e)});return a.reduce(function(t,e){var i=He(e,2),o=i[0],a=i[1];return t[o]=a,t},{})}(xe(t,Ba),"onExited","in","enter","exit","appear");return ao("input",(0,ve.A)({ref:e},i,{css:lo({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Fa=["boxSizing","height","overflow","paddingRight","position"],qa={boxSizing:"border-box",overflow:"hidden",position:"relative", | |
| 145 | +height:"100%"};function $a(t){t.cancelable&&t.preventDefault()}function Ga(t){t.stopPropagation()}function Za(){var t=this.scrollTop,e=this.scrollHeight,i=t+this.offsetHeight;0===t?this.scrollTop=1:i===e&&(this.scrollTop=t-1)}function Ka(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ja=!("undefined"==typeof window||!window.document||!window.document.createElement),Qa=0,tl={capture:!1,passive:!1},el=function(t){var e=t.target;return e.ownerDocument.activeElement&&e.ownerDocument.activeElement.blur()},il={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ol(t){var e=t.children,i=t.lockEnabled,o=t.captureEnabled,l=function(t){var e=t.isEnabled,i=t.onBottomArrive,o=t.onBottomLeave,l=t.onTopArrive,n=t.onTopLeave,s=(0,a.useRef)(!1),r=(0,a.useRef)(!1),b=(0,a.useRef)(0),c=(0,a.useRef)(null),d=(0,a.useCallback)(function(t,e){if(null!==c.current){var a=c.current,b=a.scrollTop,d=a.scrollHeight,u=a.clientHeight,p=c.current,m=e>0,h=d-u-b,g=!1 | |
| 146 | +;h>e&&s.current&&(o&&o(t),s.current=!1),m&&r.current&&(n&&n(t),r.current=!1),m&&e>h?(i&&!s.current&&i(t),p.scrollTop=d,g=!0,s.current=!0):!m&&-e>b&&(l&&!r.current&&l(t),p.scrollTop=0,g=!0,r.current=!0),g&&function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()}(t)}},[i,o,l,n]),u=(0,a.useCallback)(function(t){d(t,t.deltaY)},[d]),p=(0,a.useCallback)(function(t){b.current=t.changedTouches[0].clientY},[]),m=(0,a.useCallback)(function(t){var e=b.current-t.changedTouches[0].clientY;d(t,e)},[d]),h=(0,a.useCallback)(function(t){if(t){var e=!!Ko&&{passive:!1};t.addEventListener("wheel",u,e),t.addEventListener("touchstart",p,e),t.addEventListener("touchmove",m,e)}},[m,p,u]),g=(0,a.useCallback)(function(t){t&&(t.removeEventListener("wheel",u,!1),t.removeEventListener("touchstart",p,!1),t.removeEventListener("touchmove",m,!1))},[m,p,u]);return(0,a.useEffect)(function(){if(e){var t=c.current;return h(t),function(){g(t)}}},[e,h,g]),function(t){c.current=t}}({isEnabled:void 0===o||o, | |
| 147 | +onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),n=function(t){var e=t.isEnabled,i=t.accountForScrollbars,o=void 0===i||i,l=(0,a.useRef)({}),n=(0,a.useRef)(null),s=(0,a.useCallback)(function(t){if(Ja){var e=document.body,i=e&&e.style;if(o&&Fa.forEach(function(t){var e=i&&i[t];l.current[t]=e}),o&&Qa<1){var a=parseInt(l.current.paddingRight,10)||0,n=document.body?document.body.clientWidth:0,s=window.innerWidth-n+a||0;Object.keys(qa).forEach(function(t){var e=qa[t];i&&(i[t]=e)}),i&&(i.paddingRight="".concat(s,"px"))}e&&Ka()&&(e.addEventListener("touchmove",$a,tl),t&&(t.addEventListener("touchstart",Za,tl),t.addEventListener("touchmove",Ga,tl))),Qa+=1}},[o]),r=(0,a.useCallback)(function(t){if(Ja){var e=document.body,i=e&&e.style;Qa=Math.max(Qa-1,0),o&&Qa<1&&Fa.forEach(function(t){var e=l.current[t];i&&(i[t]=e)}),e&&Ka()&&(e.removeEventListener("touchmove",$a,tl),t&&(t.removeEventListener("touchstart",Za,tl), | |
| 148 | +t.removeEventListener("touchmove",Ga,tl)))}},[o]);return(0,a.useEffect)(function(){if(e){var t=n.current;return s(t),function(){r(t)}}},[e,s,r]),function(t){n.current=t}}({isEnabled:i});return ao(a.Fragment,null,i&&ao("div",{onClick:el,css:il}),e(function(t){l(t),n(t)}))}var al={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ll=function(t){var e=t.name,i=t.onFocus;return ao("input",{required:!0,name:e,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:al,value:"",onChange:function(){}})};function nl(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&t.test((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.platform)||window.navigator.platform)}function sl(){return nl(/^Mac/i)}var rl={clearIndicator:fa,container:function(t){var e=t.isDisabled;return{label:"container",direction:t.isRtl?"rtl":void 0,pointerEvents:e?"none":void 0,position:"relative"}}, | |
| 149 | +control:function(t,e){var i=t.isDisabled,o=t.isFocused,a=t.theme,l=a.colors,n=a.borderRadius;return fe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},e?{}:{backgroundColor:i?l.neutral5:l.neutral0,borderColor:i?l.neutral10:o?l.primary:l.neutral20,borderRadius:n,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:o?l.primary:l.neutral30}})},dropdownIndicator:ga,group:function(t,e){var i=t.theme.spacing;return e?{}:{paddingBottom:2*i.baseUnit,paddingTop:2*i.baseUnit}},groupHeading:function(t,e){var i=t.theme,o=i.colors,a=i.spacing;return fe({label:"group",cursor:"default",display:"block"},e?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})}, | |
| 150 | +indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(t,e){var i=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,l=o.colors;return fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},e?{}:{backgroundColor:i?l.neutral10:l.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(t,e){var i=t.isDisabled,o=t.value,a=t.theme,l=a.spacing,n=a.colors;return fe(fe({visibility:i?"hidden":"visible",transform:o?"translateZ(0)":""},ka),e?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:n.neutral80})},loadingIndicator:function(t,e){var i=t.isFocused,o=t.size,a=t.theme,l=a.colors,n=a.spacing.baseUnit;return fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},e?{}:{color:i?l.neutral60:l.neutral20,padding:2*n})},loadingMessage:ra,menu:function(t,e){ | |
| 151 | +var i,o=t.placement,a=t.theme,l=a.borderRadius,n=a.spacing,s=a.colors;return fe((he(i={label:"menu"},function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(o),"100%"),he(i,"position","absolute"),he(i,"width","100%"),he(i,"zIndex",1),i),e?{}:{backgroundColor:s.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:n.menuGutter,marginTop:n.menuGutter})},menuList:function(t,e){var i=t.maxHeight,o=t.theme.spacing.baseUnit;return fe({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},e?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(t){var e=t.rect,i=t.offset,o=t.position;return{left:e.left,position:o,top:i,width:e.width,zIndex:1}},multiValue:function(t,e){var i=t.theme,o=i.spacing,a=i.borderRadius,l=i.colors;return fe({label:"multiValue",display:"flex",minWidth:0},e?{}:{backgroundColor:l.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},multiValueLabel:function(t,e){ | |
| 152 | +var i=t.theme,o=i.borderRadius,a=i.colors,l=t.cropWithEllipsis;return fe({overflow:"hidden",textOverflow:l||void 0===l?"ellipsis":void 0,whiteSpace:"nowrap"},e?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(t,e){var i=t.theme,o=i.spacing,a=i.borderRadius,l=i.colors,n=t.isFocused;return fe({alignItems:"center",display:"flex"},e?{}:{borderRadius:a/2,backgroundColor:n?l.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},noOptionsMessage:sa,option:function(t,e){var i=t.isDisabled,o=t.isFocused,a=t.isSelected,l=t.theme,n=l.spacing,s=l.colors;return fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},e?{}:{backgroundColor:a?s.primary:o?s.primary25:"transparent",color:i?s.neutral20:a?s.neutral0:"inherit",padding:"".concat(2*n.baseUnit,"px ").concat(3*n.baseUnit,"px"), | |
| 153 | +":active":{backgroundColor:i?void 0:a?s.primary:s.primary50}})},placeholder:function(t,e){var i=t.theme,o=i.spacing,a=i.colors;return fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},e?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(t,e){var i=t.isDisabled,o=t.theme,a=o.spacing,l=o.colors;return fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e?{}:{color:i?l.neutral40:l.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(t,e){var i=t.theme.spacing,o=t.isMulti,a=t.hasValue,l=t.selectProps.controlShouldRenderValue;return fe({alignItems:"center",display:o&&a&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},e?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(2*i.baseUnit,"px")})}},bl={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF", | |
| 154 | +primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},cl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:qo(),captureMenuScroll:!qo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){if(t.data.__isNew__)return!0;var i=fe({ignoreCase:!0,ignoreAccents:!0,stringify:Xa,trim:!0,matchFrom:"any"},void 0),o=i.ignoreCase,a=i.ignoreAccents,l=i.stringify,n=i.trim,s=i.matchFrom,r=n?Ya(e):e,b=n?Ya(l(t)):l(t);return o&&(r=r.toLowerCase(),b=b.toLowerCase()),a&&(r=Oa(r),b=Va(b)),"start"===s?b.substr(0,r.length)===r:b.indexOf(r)>-1 | |
| 155 | +},formatGroupLabel:function(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(t){return!!t.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(t){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function dl(t,e,i,o){return{type:"option",data:e,isDisabled:Tl(t,e,i),isSelected:Hl(t,e,i),label:fl(t,e),value:yl(t,e),index:o}} | |
| 156 | +function ul(t,e){return t.options.map(function(i,o){if("options"in i){var a=i.options.map(function(i,o){return dl(t,i,e,o)}).filter(function(e){return hl(t,e)});return a.length>0?{type:"group",data:i,options:a,index:o}:void 0}var l=dl(t,i,e,o);return hl(t,l)?l:void 0}).filter(Jo)}function pl(t){return t.reduce(function(t,e){return"group"===e.type?t.push.apply(t,Pe(e.options.map(function(t){return t.data}))):t.push(e.data),t},[])}function ml(t,e){return t.reduce(function(t,i){return"group"===i.type?t.push.apply(t,Pe(i.options.map(function(t){return{data:t.data,id:"".concat(e,"-").concat(i.index,"-").concat(t.index)}}))):t.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),t},[])}function hl(t,e){var i=t.inputValue,o=void 0===i?"":i,a=e.data,l=e.isSelected,n=e.label,s=e.value;return(!xl(t)||!l)&&Ml(t,{label:n,value:s,data:a},o)}var gl=function(t,e){var i;return(null===(i=t.find(function(t){return t.data===e}))||void 0===i?void 0:i.id)||null},fl=function(t,e){ | |
| 157 | +return t.getOptionLabel(e)},yl=function(t,e){return t.getOptionValue(e)};function Tl(t,e,i){return"function"==typeof t.isOptionDisabled&&t.isOptionDisabled(e,i)}function Hl(t,e,i){if(i.indexOf(e)>-1)return!0;if("function"==typeof t.isOptionSelected)return t.isOptionSelected(e,i);var o=yl(t,e);return i.some(function(e){return yl(t,e)===o})}function Ml(t,e,i){return!t.filterOption||t.filterOption(e,i)}var xl=function(t){var e=t.hideSelectedOptions,i=t.isMulti;return void 0===e?i:e},kl=1,vl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Re(t,e)}(i,t);var e=function(t){var e=We();return function(){var i,o=Se(t);if(e){var a=Se(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return function(t,e){ | |
| 158 | +if(e&&("object"==pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i)}}(i);function i(t){var o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(o=e.call(this,t)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(t){o.controlRef=t},o.focusedOptionRef=null, | |
| 163 | 159 | o.getFocusedOptionRef=function(t){o.focusedOptionRef=t},o.menuListRef=null,o.getMenuListRef=function(t){o.menuListRef=t},o.inputRef=null,o.getInputRef=function(t){o.inputRef=t},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(t,e){var i=o.props,a=i.onChange,l=i.name;e.name=l,o.ariaOnChange(t,e),a(t,e)},o.setValue=function(t,e,i){var a=o.props,l=a.closeMenuOnSelect,n=a.isMulti,s=a.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),l&&(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(t,{action:e,option:i})},o.selectOption=function(t){var e=o.props,i=e.blurInputOnSelect,a=e.isMulti,l=e.name,n=o.state.selectValue,s=a&&o.isOptionSelected(t,n),r=o.isOptionDisabled(t,n);if(s){var b=o.getOptionValue(t);o.setValue(n.filter(function(t){return o.getOptionValue(t)!==b}),"deselect-option",t)}else{if(r)return void o.ariaOnChange(t,{action:"select-option",option:t,name:l}) |
| 164 | -;a?o.setValue([].concat(ze(n),[t]),"select-option",t):o.setValue(t,"select-option")}i&&o.blurInput()},o.removeValue=function(t){var e=o.props.isMulti,i=o.state.selectValue,a=o.getOptionValue(t),l=i.filter(function(t){return o.getOptionValue(t)!==a}),n=oa(e,l,l[0]||null);o.onChange(n,{action:"remove-value",removedValue:t}),o.focusInput()},o.clearValue=function(){var t=o.state.selectValue;o.onChange(oa(o.props.isMulti,[],null),{action:"clear",removedValues:t})},o.popValue=function(){var t=o.props.isMulti,e=o.state.selectValue,i=e[e.length-1],a=e.slice(0,e.length-1),l=oa(t,a,a[0]||null);i&&o.onChange(l,{action:"pop-value",removedValue:i})},o.getFocusedOptionId=function(t){return Hl(o.state.focusableOptionsWithIds,t)},o.getFocusableOptionsWithIds=function(){return yl(gl(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i] | |
| 165 | -;return Yo.apply(void 0,[o.props.classNamePrefix].concat(e))},o.getOptionLabel=function(t){return Ml(o.props,t)},o.getOptionValue=function(t){return xl(o.props,t)},o.getStyles=function(t,e){var i=o.props.unstyled,a=ul[t](e,i);a.boxSizing="border-box";var l=o.props.styles[t];return l?l(a,e):a},o.getClassNames=function(t,e){var i,a;return null===(i=(a=o.props.classNames)[t])||void 0===i?void 0:i.call(a,e)},o.getElementId=function(t){return"".concat(o.state.instancePrefix,"-").concat(t)},o.getComponents=function(){return t=o.props,Me(Me({},Pa),t.components);var t},o.buildCategorizedOptions=function(){return gl(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return fl(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(t,e){o.setState({ariaSelection:Me({value:t},e)})}, | |
| 160 | +;a?o.setValue([].concat(Pe(n),[t]),"select-option",t):o.setValue(t,"select-option")}i&&o.blurInput()},o.removeValue=function(t){var e=o.props.isMulti,i=o.state.selectValue,a=o.getOptionValue(t),l=i.filter(function(t){return o.getOptionValue(t)!==a}),n=Qo(e,l,l[0]||null);o.onChange(n,{action:"remove-value",removedValue:t}),o.focusInput()},o.clearValue=function(){var t=o.state.selectValue;o.onChange(Qo(o.props.isMulti,[],null),{action:"clear",removedValues:t})},o.popValue=function(){var t=o.props.isMulti,e=o.state.selectValue,i=e[e.length-1],a=e.slice(0,e.length-1),l=Qo(t,a,a[0]||null);i&&o.onChange(l,{action:"pop-value",removedValue:i})},o.getFocusedOptionId=function(t){return gl(o.state.focusableOptionsWithIds,t)},o.getFocusableOptionsWithIds=function(){return ml(ul(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i] | |
| 161 | +;return No.apply(void 0,[o.props.classNamePrefix].concat(e))},o.getOptionLabel=function(t){return fl(o.props,t)},o.getOptionValue=function(t){return yl(o.props,t)},o.getStyles=function(t,e){var i=o.props.unstyled,a=rl[t](e,i);a.boxSizing="border-box";var l=o.props.styles[t];return l?l(a,e):a},o.getClassNames=function(t,e){var i,a;return null===(i=(a=o.props.classNames)[t])||void 0===i?void 0:i.call(a,e)},o.getElementId=function(t){return"".concat(o.state.instancePrefix,"-").concat(t)},o.getComponents=function(){return t=o.props,fe(fe({},Ra),t.components);var t},o.buildCategorizedOptions=function(){return ul(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return pl(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(t,e){o.setState({ariaSelection:fe({value:t},e)})}, | |
| 166 | 162 | o.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(t){o.blockOptionHover=!1},o.onControlMouseDown=function(t){if(!t.defaultPrevented){var e=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&o.onMenuClose():e&&o.openMenu("first"):(e&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&t.preventDefault()}},o.onDropdownIndicatorMouseDown=function(t){if(!(t&&"mousedown"===t.type&&0!==t.button||o.props.isDisabled)){var e=o.props,i=e.isMulti,a=e.menuIsOpen;o.focusInput(),a?(o.setState({inputIsHiddenAfterUpdate:!i}),o.onMenuClose()):o.openMenu("first"),t.preventDefault()}},o.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(o.clearValue(),t.preventDefault(),o.openAfterFocus=!1,"touchend"===t.type?o.focusInput():setTimeout(function(){return o.focusInput()}))}, |
| 167 | -o.onScroll=function(t){"boolean"==typeof o.props.closeMenuOnScroll?t.target instanceof HTMLElement&&Fo(t.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(t)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(t){var e=t.touches,i=e&&e.item(0);i&&(o.initialTouchX=i.clientX,o.initialTouchY=i.clientY,o.userIsDragging=!1)},o.onTouchMove=function(t){var e=t.touches,i=e&&e.item(0);if(i){var a=Math.abs(i.clientX-o.initialTouchX),l=Math.abs(i.clientY-o.initialTouchY);o.userIsDragging=a>5||l>5}},o.onTouchEnd=function(t){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(t.target)&&o.menuListRef&&!o.menuListRef.contains(t.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(t){o.userIsDragging||o.onControlMouseDown(t)},o.onClearIndicatorTouchEnd=function(t){o.userIsDragging||o.onClearIndicatorMouseDown(t)}, | |
| 163 | +o.onScroll=function(t){"boolean"==typeof o.props.closeMenuOnScroll?t.target instanceof HTMLElement&&Yo(t.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(t)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(t){var e=t.touches,i=e&&e.item(0);i&&(o.initialTouchX=i.clientX,o.initialTouchY=i.clientY,o.userIsDragging=!1)},o.onTouchMove=function(t){var e=t.touches,i=e&&e.item(0);if(i){var a=Math.abs(i.clientX-o.initialTouchX),l=Math.abs(i.clientY-o.initialTouchY);o.userIsDragging=a>5||l>5}},o.onTouchEnd=function(t){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(t.target)&&o.menuListRef&&!o.menuListRef.contains(t.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(t){o.userIsDragging||o.onControlMouseDown(t)},o.onClearIndicatorTouchEnd=function(t){o.userIsDragging||o.onClearIndicatorMouseDown(t)}, | |
| 168 | 164 | o.onDropdownIndicatorTouchEnd=function(t){o.userIsDragging||o.onDropdownIndicatorMouseDown(t)},o.handleInputChange=function(t){var e=o.props.inputValue,i=t.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(i,{action:"input-change",prevInputValue:e}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(t){o.props.onFocus&&o.props.onFocus(t),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(t){var e=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(t),o.onInputChange("",{action:"input-blur",prevInputValue:e}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(t){if(!o.blockOptionHover&&o.state.focusedOption!==t){var e=o.getFocusableOptions().indexOf(t);o.setState({focusedOption:t, |
| 169 | -focusedOptionId:e>-1?o.getFocusedOptionId(t):null})}},o.shouldHideSelectedOptions=function(){return Rl(o.props)},o.onValueInputFocus=function(t){t.preventDefault(),t.stopPropagation(),o.focus()},o.onKeyDown=function(t){var e=o.props,i=e.isMulti,a=e.backspaceRemovesValue,l=e.escapeClearsValue,n=e.inputValue,s=e.isClearable,r=e.isDisabled,b=e.menuIsOpen,c=e.onKeyDown,d=e.tabSelectsValue,u=e.openMenuOnFocus,p=o.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!(r||"function"==typeof c&&(c(t),t.defaultPrevented))){switch(o.blockOptionHover=!0,t.key){case"ArrowLeft":if(!i||n)return;o.focusValue("previous");break;case"ArrowRight":if(!i||n)return;o.focusValue("next");break;case"Delete":case"Backspace":if(n)return;if(h)o.removeValue(h);else{if(!a)return;i?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(t.shiftKey||!b||!d||!m||u&&o.isOptionSelected(m,g))return;o.selectOption(m);break;case"Enter":if(229===t.keyCode)break;if(b){if(!m)return | |
| 170 | -;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":b?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:n}),o.onMenuClose()):s&&l&&o.clearValue();break;case" ":if(n)return;if(!b){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":b?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":b?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!b)return;o.focusOption("pageup");break;case"PageDown":if(!b)return;o.focusOption("pagedown");break;case"Home":if(!b)return;o.focusOption("first");break;case"End":if(!b)return;o.focusOption("last");break;default:return}t.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Sl),o.state.selectValue=Xo(t.value),t.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),l=o.buildFocusableOptions(),n=l.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=l[n], | |
| 171 | -o.state.focusedOptionId=Hl(a,l[n])}return o}return function(t,e,i){e&&Ue(t.prototype,e),i&&Ue(t,i),Object.defineProperty(t,"prototype",{writable:!1})}(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Zo(this.menuListRef,this.focusedOptionRef),(dl()||cl(/^iPhone/i)||cl(/^iPad/i)||dl()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(t){var e=this.props,i=e.isDisabled,o=e.menuIsOpen,a=this.state.isFocused;(a&&!i&&t.isDisabled||a&&o&&!t.menuIsOpen)&&this.focusInput(),a&&i&&!t.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||i||!t.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}), | |
| 172 | -this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Zo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=this,i=this.state,o=i.selectValue,a=i.isFocused,l=this.buildFocusableOptions(),n="first"===t?0:l.length-1;if(!this.props.isMulti){var s=l.indexOf(o[0]);s>-1&&(n=s)} | |
| 165 | +focusedOptionId:e>-1?o.getFocusedOptionId(t):null})}},o.shouldHideSelectedOptions=function(){return xl(o.props)},o.onValueInputFocus=function(t){t.preventDefault(),t.stopPropagation(),o.focus()},o.onKeyDown=function(t){var e=o.props,i=e.isMulti,a=e.backspaceRemovesValue,l=e.escapeClearsValue,n=e.inputValue,s=e.isClearable,r=e.isDisabled,b=e.menuIsOpen,c=e.onKeyDown,d=e.tabSelectsValue,u=e.openMenuOnFocus,p=o.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!(r||"function"==typeof c&&(c(t),t.defaultPrevented))){switch(o.blockOptionHover=!0,t.key){case"ArrowLeft":if(!i||n)return;o.focusValue("previous");break;case"ArrowRight":if(!i||n)return;o.focusValue("next");break;case"Delete":case"Backspace":if(n)return;if(h)o.removeValue(h);else{if(!a)return;i?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(t.shiftKey||!b||!d||!m||u&&o.isOptionSelected(m,g))return;o.selectOption(m);break;case"Enter":if(229===t.keyCode)break;if(b){if(!m)return | |
| 166 | +;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":b?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:n}),o.onMenuClose()):s&&l&&o.clearValue();break;case" ":if(n)return;if(!b){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":b?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":b?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!b)return;o.focusOption("pageup");break;case"PageDown":if(!b)return;o.focusOption("pagedown");break;case"Home":if(!b)return;o.focusOption("first");break;case"End":if(!b)return;o.focusOption("last");break;default:return}t.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++kl),o.state.selectValue=Io(t.value),t.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),l=o.buildFocusableOptions(),n=l.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=l[n], | |
| 167 | +o.state.focusedOptionId=gl(a,l[n])}return o}return function(t,e,i){e&&_e(t.prototype,e),i&&_e(t,i),Object.defineProperty(t,"prototype",{writable:!1})}(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Fo(this.menuListRef,this.focusedOptionRef),(sl()||nl(/^iPhone/i)||nl(/^iPad/i)||sl()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(t){var e=this.props,i=e.isDisabled,o=e.menuIsOpen,a=this.state.isFocused;(a&&!i&&t.isDisabled||a&&o&&!t.menuIsOpen)&&this.focusInput(),a&&i&&!t.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||i||!t.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}), | |
| 168 | +this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Fo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=this,i=this.state,o=i.selectValue,a=i.isFocused,l=this.buildFocusableOptions(),n="first"===t?0:l.length-1;if(!this.props.isMulti){var s=l.indexOf(o[0]);s>-1&&(n=s)} | |
| 173 | 169 | this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[n],focusedOptionId:this.getFocusedOptionId(l[n])},function(){return e.onMenuOpen()})}},{key:"focusValue",value:function(t){var e=this.state,i=e.selectValue,o=e.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=i.indexOf(o);o||(a=-1);var l=i.length-1,n=-1;if(i.length){switch(t){case"previous":n=0===a?0:-1===a?l:a-1;break;case"next":a>-1&&a<l&&(n=a+1)}this.setState({inputIsHidden:-1!==n,focusedValue:i[n]})}}}},{key:"focusOption",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props.pageSize,i=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var a=0,l=o.indexOf(i);i||(l=-1),"up"===t?a=l>0?l-1:o.length-1:"down"===t?a=(l+1)%o.length:"pageup"===t?(a=l-e)<0&&(a=0):"pagedown"===t?(a=l+e)>o.length-1&&(a=o.length-1):"last"===t&&(a=o.length-1), |
| 174 | -this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(pl):Me(Me({},pl),this.props.theme):pl}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=this.cx,i=this.getStyles,o=this.getClassNames,a=this.getValue,l=this.selectOption,n=this.setValue,s=this.props,r=s.isMulti,b=s.isRtl,c=s.options;return{clearValue:t,cx:e,getStyles:i,getClassNames:o,getValue:a,hasValue:this.hasValue(),isMulti:r,isRtl:b,options:c,selectOption:l,selectProps:s,setValue:n,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var t=this.props,e=t.isClearable,i=t.isMulti;return void 0===e?i:e}},{key:"isOptionDisabled",value:function(t,e){ | |
| 175 | -return kl(this.props,t,e)}},{key:"isOptionSelected",value:function(t,e){return vl(this.props,t,e)}},{key:"filterOption",value:function(t,e){return _l(this.props,t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var i=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:i,selectValue:o})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{ | |
| 176 | -key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,i=t.isSearchable,o=t.inputId,l=t.inputValue,n=t.tabIndex,s=t.form,r=t.menuIsOpen,b=t.required,c=this.getComponents().Input,d=this.state,u=d.inputIsHidden,p=d.ariaSelection,m=this.commonProps,h=o||this.getElementId("input"),g=Me(Me(Me({"aria-autocomplete":"list","aria-expanded":r,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"], | |
| 177 | -"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":b,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},r&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?a.createElement(c,(0,We.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:e,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:s,type:"text",value:l},g)):a.createElement(Ga,(0,We.A)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Vo,onFocus:this.onInputFocus,disabled:e,tabIndex:n,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){ | |
| 178 | -var t=this,e=this.getComponents(),i=e.MultiValue,o=e.MultiValueContainer,l=e.MultiValueLabel,n=e.MultiValueRemove,s=e.SingleValue,r=e.Placeholder,b=this.commonProps,c=this.props,d=c.controlShouldRenderValue,u=c.isDisabled,p=c.isMulti,m=c.inputValue,h=c.placeholder,g=this.state,f=g.selectValue,y=g.focusedValue,T=g.isFocused;if(!this.hasValue()||!d)return m?null:a.createElement(r,(0,We.A)({},b,{key:"placeholder",isDisabled:u,isFocused:T,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return f.map(function(e,s){var r=e===y,c="".concat(t.getOptionLabel(e),"-").concat(t.getOptionValue(e));return a.createElement(i,(0,We.A)({},b,{components:{Container:o,Label:l,Remove:n},isFocused:r,isDisabled:u,key:c,index:s,removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault()}},data:e}),t.formatOptionLabel(e,"value"))});if(m)return null;var H=f[0];return a.createElement(s,(0,We.A)({},b,{data:H, | |
| 179 | -isDisabled:u}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,e=this.commonProps,i=this.props,o=i.isDisabled,l=i.isLoading,n=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||l)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(t,(0,We.A)({},e,{innerProps:s,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,e=this.commonProps,i=this.props,o=i.isDisabled,l=i.isLoading,n=this.state.isFocused;return t&&l?a.createElement(t,(0,We.A)({},e,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),e=t.DropdownIndicator,i=t.IndicatorSeparator;if(!e||!i)return null;var o=this.commonProps,l=this.props.isDisabled,n=this.state.isFocused;return a.createElement(i,(0, | |
| 180 | -We.A)({},o,{isDisabled:l,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var e=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(t,(0,We.A)({},e,{innerProps:l,isDisabled:i,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,e=this.getComponents(),i=e.Group,o=e.GroupHeading,l=e.Menu,n=e.MenuList,s=e.MenuPortal,r=e.LoadingMessage,b=e.NoOptionsMessage,c=e.Option,d=this.commonProps,u=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,f=p.loadingMessage,y=p.minMenuHeight,T=p.maxMenuHeight,H=p.menuIsOpen,M=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,v=p.menuShouldBlockScroll,_=p.menuShouldScrollIntoView,R=p.noOptionsMessage,S=p.onMenuScrollToTop,W=p.onMenuScrollToBottom;if(!H)return null | |
| 181 | -;var U,P=function(e,i){var o=e.type,l=e.data,n=e.isDisabled,s=e.isSelected,r=e.label,b=e.value,p=u===l,m=n?void 0:function(){return t.onOptionHover(l)},h=n?void 0:function(){return t.selectOption(l)},g="".concat(t.getElementId("option"),"-").concat(i),f={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:s};return a.createElement(c,(0,We.A)({},d,{innerProps:f,data:l,isDisabled:n,isSelected:s,key:g,label:r,type:o,value:b,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())U=this.getCategorizedOptions().map(function(e){if("group"===e.type){var l=e.data,n=e.options,s=e.index,r="".concat(t.getElementId("group"),"-").concat(s),b="".concat(r,"-heading");return a.createElement(i,(0,We.A)({},d,{key:r,data:l,options:n,Heading:o,headingProps:{id:b,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(t){return P(t,"".concat(s,"-").concat(t.index))}))} | |
| 182 | -if("option"===e.type)return P(e,"".concat(e.index))});else if(g){var j=f({inputValue:h});if(null===j)return null;U=a.createElement(r,d,j)}else{var w=R({inputValue:h});if(null===w)return null;U=a.createElement(b,d,w)}var z={minMenuHeight:y,maxMenuHeight:T,menuPlacement:M,menuPosition:x,menuShouldScrollIntoView:_},C=a.createElement(ba,(0,We.A)({},d,z),function(e){var i=e.ref,o=e.placerProps,s=o.placement,r=o.maxHeight;return a.createElement(l,(0,We.A)({},d,z,{innerRef:i,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),a.createElement(sl,{captureEnabled:m,onTopArrive:S,onBottomArrive:W,lockEnabled:v},function(e){return a.createElement(n,(0,We.A)({},d,{innerRef:function(i){t.getMenuListRef(i),e(i)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:r,focusedOption:u}),U)}))});return k||"fixed"===x?a.createElement(s,(0,We.A)({},d,{appendTo:k,controlElement:this.controlRef, | |
| 183 | -menuPlacement:M,menuPosition:x}),C):C}},{key:"renderFormField",value:function(){var t=this,e=this.props,i=e.delimiter,o=e.isDisabled,l=e.isMulti,n=e.name,s=e.required,r=this.state.selectValue;if(s&&!this.hasValue()&&!o)return a.createElement(bl,{name:n,onFocus:this.onValueInputFocus});if(n&&!o){if(l){if(i){var b=r.map(function(e){return t.getOptionValue(e)}).join(i);return a.createElement("input",{name:n,type:"hidden",value:b})}var c=r.length>0?r.map(function(e,i){return a.createElement("input",{key:"i-".concat(i),name:n,type:"hidden",value:t.getOptionValue(e)})}):a.createElement("input",{name:n,type:"hidden",value:""});return a.createElement("div",null,c)}var d=r[0]?this.getOptionValue(r[0]):"";return a.createElement("input",{name:n,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,e=this.state,i=e.ariaSelection,o=e.focusedOption,l=e.focusedValue,n=e.isFocused,s=e.selectValue,r=this.getFocusableOptions();return a.createElement(Da,(0, | |
| 184 | -We.A)({},t,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:o,focusedValue:l,isFocused:n,selectValue:s,focusableOptions:r,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),e=t.Control,i=t.IndicatorsContainer,o=t.SelectContainer,l=t.ValueContainer,n=this.props,s=n.className,r=n.id,b=n.isDisabled,c=n.menuIsOpen,d=this.state.isFocused,u=this.commonProps=this.getCommonProps();return a.createElement(o,(0,We.A)({},u,{className:s,innerProps:{id:r,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:d}),this.renderLiveRegion(),a.createElement(e,(0,We.A)({},u,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:d,menuIsOpen:c}),a.createElement(l,(0,We.A)({},u,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(i,(0,We.A)({},u,{isDisabled:b | |
| 185 | -}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(t,e){var i=e.prevProps,o=e.clearFocusValueOnUpdate,a=e.inputIsHiddenAfterUpdate,l=e.ariaSelection,n=e.isFocused,s=e.prevWasFocused,r=e.instancePrefix,b=t.options,c=t.value,d=t.menuIsOpen,u=t.inputValue,p=t.isMulti,m=Xo(c),h={};if(i&&(c!==i.value||b!==i.options||d!==i.menuIsOpen||u!==i.inputValue)){var g=d?function(t,e){return fl(gl(t,e))}(t,m):[],f=d?yl(gl(t,m),"".concat(r,"-option")):[],y=o?function(t,e){var i=t.focusedValue,o=t.selectValue.indexOf(i);if(o>-1){if(e.indexOf(i)>-1)return i;if(o<e.length)return e[o]}return null}(e,m):null,T=function(t,e){var i=t.focusedOption;return i&&e.indexOf(i)>-1?i:e[0]}(e,g);h={selectValue:m,focusedOption:T,focusedOptionId:Hl(f,T),focusableOptionsWithIds:f,focusedValue:y,clearFocusValueOnUpdate:!1}}var H=null!=a&&t!==i?{ | |
| 186 | -inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},M=l,x=n&&s;return n&&!x&&(M={value:oa(p,m,m[0]||null),options:m,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==l?void 0:l.action)&&(M=null),Me(Me(Me({},h),H),{},{prevProps:t,ariaSelection:M,prevWasFocused:x})}}]),i}(a.Component);Wl.defaultProps=ml;var Ul=(0,a.forwardRef)(function(t,e){var i=function(t){var e=t.defaultInputValue,i=void 0===e?"":e,o=t.defaultMenuIsOpen,l=void 0!==o&&o,n=t.defaultValue,s=void 0===n?null:n,r=t.inputValue,b=t.menuIsOpen,c=t.onChange,d=t.onInputChange,u=t.onMenuClose,p=t.onMenuOpen,m=t.value,h=Re(t,Se),g=ve((0,a.useState)(void 0!==r?r:i),2),f=g[0],y=g[1],T=ve((0,a.useState)(void 0!==b?b:l),2),H=T[0],M=T[1],x=ve((0,a.useState)(void 0!==m?m:s),2),k=x[0],v=x[1],_=(0,a.useCallback)(function(t,e){"function"==typeof c&&c(t,e),v(t)},[c]),R=(0,a.useCallback)(function(t,e){var i;"function"==typeof d&&(i=d(t,e)),y(void 0!==i?i:t)},[d]),S=(0,a.useCallback)(function(){"function"==typeof p&&p(),M(!0) | |
| 187 | -},[p]),W=(0,a.useCallback)(function(){"function"==typeof u&&u(),M(!1)},[u]),U=void 0!==r?r:f,P=void 0!==b?b:H,j=void 0!==m?m:k;return Me(Me({},h),{},{inputValue:U,menuIsOpen:P,onChange:_,onInputChange:R,onMenuClose:W,onMenuOpen:S,value:j})}(t);return a.createElement(Wl,(0,We.A)({ref:e},i))}),Pl=Ul;const jl=t=>{const{label:e="",value:i,className:o="ablocks-react-select",onChange:a,options:l=[]}=t;return(0,L.jsxs)("div",{className:"ablocks-react-select-wrapper",children:[(0,L.jsx)(ot,{label:e,isResponsive:!1}),(0,L.jsx)(Pl,{menuPlacement:"auto",menuPosition:"fixed",menuPortalTarget:"undefined"!=typeof document?document.body:null,styles:{menuPortal:t=>({...t,zIndex:1000001})},value:i,className:o,onChange:a,options:l,classNames:{menu:()=>"ablocks-react-select-menu",option:t=>`ablocks-react-select-option${t.isSelected?" selected":""}${t.isFocused?" focused":""}`,control:()=>"ablocks-react-select-control",valueContainer:()=>"ablocks-react-select-value-container", | |
| 188 | -input:()=>"ablocks-react-select-input",placeholder:()=>"ablocks-react-select-placeholder",singleValue:()=>"ablocks-react-select-single-value",indicatorSeparator:()=>"ablocks-react-select-indicator-separator",dropdownIndicator:()=>"ablocks-react-select-dropdown-indicator"},...t})]})};let wl;const zl=t=>{const{attributeValue:e,handleSettingAttribute:i}=t,[o,l]=(0,a.useState)((0,r.select)("ablocks/dynamic-content-store").getRecentPosts()||[]),[n,s]=(0,a.useState)(!1),[b,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(""),{source_id:p,source_type:m}=e,{record:h,isResolving:g}=(0,ge.useEntityRecord)("postType",m,p);(0,a.useEffect)(()=>{const t=setTimeout(()=>{u(b)},800);return()=>clearTimeout(t)},[b]);const f=(0,a.useCallback)(async()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getRecentPosts();if(d){if(o.some(t=>t.label.toLowerCase().includes(d.toLowerCase())))return!1}else if(o.length>0||t)return!1;if(wl===d)return!1;wl=d,s(!0),(0,M.In)({action:"ablocks/search_posts", | |
| 189 | -query:encodeURIComponent(d)}).then(t=>{if(t?.data?.success){const e=(t.data.data||[]).map(t=>({value:t.ID,label:t.post_title,post_type:t.post_type}));""===d&&(0,r.dispatch)("ablocks/dynamic-content-store").setRecentPosts(e),l(e)}s(!1)},t=>{console.log("error searching post",{e:t}),s(!1)})},[d,o]);(0,a.useEffect)(()=>{f()},[f]);const y={label:h?.title?.rendered,value:h?.id};return(0,L.jsxs)("div",{className:"dynamic-post-type-search",children:[(0,L.jsx)(ot,{label:(0,z.__)("Search Posts","ablocks"),isResponsive:!1}),(0,L.jsx)(jl,{value:y,className:"dynamic-post-type-select",isSearchable:!0,isLoading:n||g,placeholder:(0,z.__)("Search Posts...","ablocks"),onInputChange:c,onChange:t=>{i({source_id:t?t.value:"",source_type:t?t.post_type:""})},options:o,getOptionLabel:t=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h1",{className:"ablocks-react-content-label",children:t.label}),(0,L.jsx)("span",{className:"post"===t?.post_type?"badge-post":"badge-page",children:t.post_type})]}), | |
| 190 | -filterOption:(t,e)=>t.data.label.toLowerCase().includes(e.toLowerCase())})]})},Cl=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(void 0),{attributeValue:n,handleSettingAttribute:s}=t,b=parseInt(n?.taxonomyTermsUrlId),c=(0,a.useCallback)(t=>{t&&i([...t||[]])},[]),d=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setAllTaxonomiesTermsData({data:t?.data,isRequestBeingProcessed:!1}),c(t?.data),l(!1)},[c]);(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getAllTaxonomiesTermsData()?.data;if(t)c(t);else if(!t?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({isRequestBeingProcessed:!0}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_all_taxonomies_terms_data"}).then(e=>{e?.data?.success&&(t.data=e.data.data),d(t)},e=>{d(t),console.log("error fetching taxonomies",{e})})}},[d]);const u=e?.find?.(t=>t?.value===b)||{};return(0,L.jsx)(Pl,{value:u, | |
| 191 | -className:"dynamic-post-type-select",isSearchable:!0,isLoading:o,placeholder:(0,z.__)("Search Terms","ablocks"),onChange:t=>{s({taxonomyTermsUrlId:t?.value})},options:e})},Al=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(void 0),{attributeValue:n,handleSettingAttribute:s}=t,{authorId:b}=n,c=(0,a.useCallback)(t=>{t&&i([...t||[]])},[]),d=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setAllAuthorsData({data:t?.data,isRequestBeingProcessed:!1}),c(t?.data),l(!1)},[c]);(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getAuthorsData()?.data;if(t)c(t);else if(!t?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsData({isRequestBeingProcessed:!0}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_all_authors_data"}).then(e=>{e?.data?.success&&(t.data=e.data.data),d(t)},e=>{d(t),console.log("error fetching authors",{e})})}},[d]);const u=e?.find?.(t=>t?.value===b)||{};return(0, | |
| 192 | -L.jsx)(Pl,{value:u,className:"dynamic-authors-data-select",isSearchable:!0,isLoading:o,placeholder:(0,z.__)("Search Authors","ablocks"),onChange:t=>{s({authorId:t?.value})},options:e})};let Ll;const Dl=t=>{const{attributeValue:e,handleSettingAttribute:i}=t,[o,l]=(0,a.useState)((0,r.select)("ablocks/dynamic-content-store").getRecentMediasUrls()||[]),[n,s]=(0,a.useState)(!1),[b,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(""),{mediaId:p}=e;(0,a.useEffect)(()=>{const t=setTimeout(()=>{u(b)},800);return()=>clearTimeout(t)},[b]);const m=(0,a.useCallback)(async()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getRecentMediasUrls();let e=p;if(d){if(e=!1,o.some(t=>t.label.toLowerCase().includes(d.toLowerCase())))return!1}else if(o.length>0||t)return!1;if(Ll===d)return!1;Ll=d,s(!0);const i={action:"ablocks/search_medias",query:encodeURIComponent(d)};e&&(i.mediaId=e),(0,M.In)(i).then(t=>{if(t?.data?.success){const e=t.data?.data;(0, | |
| 193 | -r.dispatch)("ablocks/dynamic-content-store").setRecentMediasUrls(e),l(e)}s(!1)},t=>{console.log("error searching post",{e:t}),s(!1)})},[d,o,p]);(0,a.useEffect)(()=>{m()},[m]);const h=o?.find?.(t=>t.value===p);return(0,L.jsx)(Pl,{value:h,className:"dynamic-medias-type-select",isSearchable:!0,isLoading:n,onInputChange:c,placeholder:(0,z.__)("Search Medias","ablocks"),onChange:t=>{i({mediaId:t?.value})},options:o})},Nl=[{label:(0,z.__)("Site Tagline","ablocks"),value:"site-tagline"},{label:(0,z.__)("Site Title","ablocks"),value:"site-title"},{label:(0,z.__)("Current Date Time","ablocks"),value:"current-date-time"},{label:(0,z.__)("Request Parameter","ablocks"),value:"request-parameter"},{label:(0,z.__)("Shortcode","ablocks"),value:"shortcode"},{label:(0,z.__)("User Info","ablocks"),value:"user-info"}],Il=[{label:(0,z.__)("Current","ablocks"),value:"current"},{label:(0,z.__)("Post Type","ablocks"),value:"post-type"},...Nl],Vl=[{label:(0,z.__)("Current","ablocks"),value:"current" | |
| 194 | -},...Nl],Ol=[{label:(0,z.__)("Post Url","ablocks"),value:"post-url"},{label:(0,z.__)("Site Url","ablocks"),value:"site-url"},{label:(0,z.__)("Author Url","ablocks"),value:"author-url"},{label:(0,z.__)("Comments Url","ablocks"),value:"comments-url"},{label:(0,z.__)("Featured Image File URL","ablocks"),value:"featured-image-file-url"},{label:(0,z.__)("Featured Image Attachment URL","ablocks"),value:"featured-image-attachment-url"},{label:(0,z.__)("Internal Url","ablocks"),value:"internal-url",options:[{label:(0,z.__)("Content","ablocks"),value:"internal-url-content"},{label:(0,z.__)("Taxonomy","ablocks"),value:"internal-url-taxonomy"},{label:(0,z.__)("Media","ablocks"),value:"internal-url-media"},{label:(0,z.__)("Author","ablocks"),value:"internal-url-author"}]}],Yl=[{label:(0,z.__)("Featured Image","ablocks"),value:"featured-image"},{label:(0,z.__)("Site Logo","ablocks"),value:"site-logo"},{label:(0,z.__)("Author Profile Picture","ablocks"),value:"author-profile-picture"},{label:(0, | |
| 195 | -z.__)("User Profile Picture","ablocks"),value:"user-profile-picture"}],Xl=t=>{const{attributeName:e,attributeValue:i,setAttributes:o,blockId:l,dynamicType:n="text",attributeObjectValue:s,attributeObjectKey:b,context:c}=t,d="image"===n?b?i[b]:i[e]:i,u=(0,a.useMemo)(()=>(0,M.hW)(d||""),[e,d]),{group_item:p,excerptWords:m,source:h,source_id:g,includeContext:f,archiveMetaKey:y,authorMetaKey:T,DateFormatOfCurrentDateTime:H,userFieldName:x}=u,k=((t,e)=>{const{getBlockParents:i}=(0,r.select)(C.store);return i(t).some(t=>{const i=(0,r.select)(C.store).getBlock(t);return e.includes(i?.name)})})(l,["core/post-template","core/query","ablocks/loop-template"]),v=(0,a.useCallback)(t=>{const a=[];let l,d,p,m,h,g,f,y,T,H,M,x,k,v,_,R,S;if("text"===n){if(l=t?.source||u?.source||"current",p=t?.group_item||u?.group_item||"",m=t?.before||u?.before||"",h=t?.after||u?.after||"",g=t?.fallback||u?.fallback||"","current-date-time"===l)M=t?.TimeFormatOfCurrentDateTime||u?.TimeFormatOfCurrentDateTime||"", | |
| 196 | -x=t?.DateFormatOfCurrentDateTime||u?.DateFormatOfCurrentDateTime||"",H=t?.customFormatOfCurrentDateTime||u?.customFormatOfCurrentDateTime||"",a.push(l,M,x,H,m,h,g);else if("request-parameter"===l)k=t?.requestParamType||u?.requestParamType||"",v=t?.requestParamName||u?.requestParamName||"",a.push(l,k,v,"",m,h,g);else if("user-info"===l)_=t?.userFieldName||u?.userFieldName||"",R=t?.userFieldMetaKey||u?.userFieldMetaKey||"",a.push(l,_,R,"",m,h,g);else if("shortcode"===l)S=t?.shortcode||u?.shortcode||"",a.push(l,S,"","",m,h,g);else if(d=!l||"current"===l,d?(y=c?.postType?c?.postType:(0,r.select)("core/editor").getCurrentPostType(),T=c?.queryId?c?.queryId:(0,r.select)("core/editor").getCurrentPostId()):(y=t?.source_type||u?.source_type,T=t?.source_id||u?.source_id),a.push(l,y,T,p,m,h,g),f=!l||["current","post-type"].includes(l),f)switch(p){case"post-custom-field":a.push(t?.metaKey||u?.metaKey||"");break;case"post-date":case"post-time":{a.push(t?.dateTimeType||u?.dateTimeType||"") | |
| 197 | -;const e=t?.dateTimeFormat||u?.dateTimeFormat||"";a.push(e),"custom"===e&&a.push(t?.customDateTimeFormat||u?.customDateTimeFormat||"");break}case"post-excerpt":a.push(t?.excerptWords||u?.excerptWords||"");break;case"post-terms":a.push(t?.taxonomy||u?.taxonomy||""),a.push(t?.termsSeparator||u?.termsSeparator||"");break;case"author-meta":a.push(t?.authorMetaKey||u?.authorMetaKey||"")}o?.({[e]:"ablocks_dc:"+a.join("|")+":ablocks_dc"})}else if("link"===n){switch(p=t?.group_item||u?.group_item,a.push("link",p),p){case"internal-url-content":y=t?.source_type||u?.source_type,T=t?.source_id||u?.source_id,a.push(T,y);break;case"internal-url-taxonomy":{const e=t?.taxonomyTermsUrlId||u?.taxonomyTermsUrlId;a.push(e);break}case"internal-url-media":{const e=t?.mediaId||u?.mediaId;a.push(e);break}case"internal-url-author":{const e=t?.authorId||u?.authorId;a.push(e);break}}const i={...s,href:"ablocks_dc:"+a.join("|")+":ablocks_dc"};o?.({[e]:i})}else if("image"===n){p=t?.group_item||u?.group_item, | |
| 198 | -a.push("image",p);const l={},n="ablocks_dc:"+a.join("|")+":ablocks_dc";l[e]=b?{...i,[b]:n}:n,o?.(l)}},[e,u,n]);(0,a.useEffect)(()=>{k&&(g||"post-type"===h)&&v({source:"current",source_type:"",source_id:""})},[k,h,g,v]);const _={...t,attributeValue:u,handleSettingAttribute:v};if("link"===n){let t=Ol?.find(t=>p?.startsWith(t?.value));return t=t?.options?t?.options?.find(t=>t?.value===p):t,(0,L.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,L.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,L.jsx)(ot,{label:(0,z.__)("Dynamic Link","ablocks"),isResponsive:!1}),(0,L.jsx)(jl,{value:t,className:"link-source-options-select",placeholder:(0,z.__)("Source","ablocks"),onChange:t=>{v({group_item:t.value})},options:Ol})]}),p?.startsWith("internal-url")&&(0,L.jsxs)(L.Fragment,{children:["internal-url-content"===p&&(0,L.jsx)(zl,{..._}),"internal-url-taxonomy"===p&&(0,L.jsx)(Cl,{..._}),"internal-url-media"===p&&(0,L.jsx)(Dl,{..._ | |
| 199 | -}),"internal-url-author"===p&&(0,L.jsx)(Al,{..._})]})]})}if("image"===n){let t=Yl?.find(t=>p?.startsWith(t?.value));return t=t?.options?t?.options?.find(t=>t?.value===p):t,(0,L.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,L.jsx)(ot,{label:(0,z.__)("Select Dynamic image option","ablocks"),isResponsive:!1}),(0,L.jsx)(jl,{value:t,className:"image-source-options-select",placeholder:(0,z.__)("Source","ablocks"),onChange:t=>{v({group_item:t.value})},options:Yl})]})}return(0,L.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,L.jsx)(Ut,{label:(0,z.__)("Data Source","ablocks"),isResponsive:!1,options:k?Vl:Il,attributeValue:h,onChangeHandler:t=>v({source:t})}),(!h||["current","post-type"].includes(h))&&(0,L.jsxs)(L.Fragment,{children:["post-type"===h&&(0,L.jsx)(zl,{..._}),(0,L.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,L.jsx)(ot,{label:(0,z.__)("Dynamic Tag","ablocks"),isResponsive:!1}),(0,L.jsx)(jl,{ | |
| 200 | -className:"ablocks-dynamic-tags-react-select",isSearchable:!0,placeholder:(0,z.__)("Dynamic Tag","ablocks"),options:ne,value:(t=>{let e=null;for(const i of ne){const o=i.options.find(e=>e.value===t);if(o){e=o;break}}return e})(u.group_item),onChange:t=>{let e=null;for(const i of ne)if(i.options.find(e=>e.value===t?.value)){e=i;break}v({group:e?.value,group_item:t?.value})}})]}),(()=>{switch(p){case"post-custom-field":return(0,L.jsx)(pe,{..._,context:c});case"post-date":case"post-time":return(0,L.jsx)(de,{..._});case"post-excerpt":return(0,L.jsx)(vt,{label:(0,z.__)("Max Number Of Words","ablocks"),min:1,max:100,step:1,isInline:!1,isResponsive:!1,attributeValue:parseInt(m),onChangeHandler:t=>{v({excerptWords:t})}});case"post-terms":return(0,L.jsx)(he,{..._});case"author-meta":return(0,L.jsx)(ql,{label:(0,z.__)("Meta Key","ablocks"),disableDynamicContent:!0,attributeValue:T,onChangeHandler:t=>{v({authorMetaKey:t})}})}})()]}),(()=>{switch(h){case"archive-title":return(0,L.jsx)(Vt,{ | |
| 201 | -isResponsive:!1,label:(0,z.__)("Include Context","ablocks"),attributeValue:f,onChangeHandler:t=>{v({includeContext:t})}});case"archive-meta":return(0,L.jsx)(ql,{label:(0,z.__)("Key","ablocks"),disableDynamicContent:!0,attributeValue:y,onChangeHandler:t=>{v({archiveMetaKey:t||""})}});case"current-date-time":return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(de,{..._}),"custom"!==H&&(0,L.jsx)(de,{..._,isForTime:!0})]});case"request-parameter":return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Get","ablocks"),value:"get"},{label:(0,z.__)("Post","ablocks"),value:"post"},{label:(0,z.__)("Query Var","ablocks"),value:"query-var"}],attributeValue:u.requestParamType,onChangeHandler:t=>v({requestParamType:t})}),(0,L.jsx)(ql,{disableDynamicContent:!0,label:(0,z.__)("Parameter Name","ablocks"),attributeValue:u.requestParamName,onChangeHandler:t=>{v({requestParamName:t})}})]});case"user-info":return(0,L.jsxs)(L.Fragment,{ | |
| 202 | -children:[(0,L.jsx)(Ut,{label:(0,z.__)("Field","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Choose","ablocks"),value:""},{label:(0,z.__)("ID","ablocks"),value:"id"},{label:(0,z.__)("Display Name","ablocks"),value:"display-name"},{label:(0,z.__)("Username","ablocks"),value:"username"},{label:(0,z.__)("First Name","ablocks"),value:"first-name"},{label:(0,z.__)("Last Name","ablocks"),value:"last-name"},{label:(0,z.__)("Bio","ablocks"),value:"bio"},{label:(0,z.__)("Email","ablocks"),value:"email"},{label:(0,z.__)("Website","ablocks"),value:"website"},{label:(0,z.__)("User Meta","ablocks"),value:"user-meta"}],attributeValue:u.userFieldName,onChangeHandler:t=>v({userFieldName:t})}),"user-meta"===x&&(0,L.jsx)(ql,{disableDynamicContent:!0,label:(0,z.__)("Meta Key","ablocks"),attributeValue:u.userFieldMetaKey,onChangeHandler:t=>{v({userFieldMetaKey:t})}})]});case"shortcode":return(0,L.jsx)(ae,{disableDynamicContent:!0,label:(0,z.__)("Shortcode","ablocks"),isInline:!1, | |
| 203 | -attributeValue:u.shortcode,onChangeHandler:t=>{v({shortcode:t})}})}})(),(0,L.jsxs)(D,{title:(0,z.__)("Advanced","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ql,{disableDynamicContent:!0,label:(0,z.__)("Before","ablocks"),attributeValue:u.before,onChangeHandler:t=>{v({before:t})}}),(0,L.jsx)(ql,{disableDynamicContent:!0,label:(0,z.__)("After","ablocks"),attributeValue:u.after,onChangeHandler:t=>{v({after:t})}}),(0,L.jsx)(ql,{disableDynamicContent:!0,label:(0,z.__)("Fallback","ablocks"),attributeValue:u.fallback,onChangeHandler:t=>{v({fallback:t})}})]})]})};function Bl(t){const{setAttributes:e,disableDynamicContent:i,attributeName:o,attributeValue:l,dynamicType:n="text",attributeObjectValue:s={},attributeObjectKey:b,context:c}=t,[d,u]=(0,a.useState)(!1),[p,m]=(0,a.useState)(12),h=(0,a.useRef)(null),{block_id:g}=(0,r.useSelect)(t=>{const{getSelectedBlock:e}=t(C.store),i=e();return{block_id:i?.attributes?.block_id}},[]);let f=l;"image"===n&&(f=b?l?.[b]:l?.[o]);const y=(0, | |
| 204 | -a.useMemo)(()=>(0,M.hW)(f),[f]),{isDynamicByNewSolution:T}=y,H=!!T&&!i,x=()=>{const t=document.querySelector(".interface-interface-skeleton__sidebar"),e=h.current;let i=12;if(t&&e){const o=e.getBoundingClientRect().left-t.getBoundingClientRect().left;o>0&&(i=o+12)}m(i),u(!0)},k=()=>{let t="";"image"===n&&b&&(t={...l,[b]:""}),e({[o]:t})},v=((!y?.source||["current","post-type"].includes(y?.source)?y?.group_item:y?.source)||"").replaceAll("-"," ");return{isBound:H,field:H?(0,L.jsx)("p",{className:"ablocks-dynamic-content-enabled-field-wrapper",children:v}):null,affordance:i?null:(0,L.jsxs)("span",{className:"ablocks-dynamic-content-affordance",ref:h,children:[H&&(0,L.jsx)("span",{role:"button",tabIndex:0,"aria-label":(0,z.__)("Clear dynamic content","ablocks"),onClick:k,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||k()},className:"ablocks-dynamic-content-trigger ablocks-dynamic-content-trigger--clear ablocks-icon ablocks-icon--close"}),(0,L.jsx)("span",{role:"button",tabIndex:0, | |
| 205 | -"aria-label":(0,z.__)("Use dynamic content","ablocks"),"aria-expanded":d,onClick:x,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||x()},className:"ablocks-dynamic-content-trigger dashicon dashicons dashicons-database-add"}),d&&(0,L.jsx)(A.Popover,{className:"ablocks-dynamic-content-input-fields-popover",placement:"left",offset:p,focusOnMount:"firstElement",onFocusOutside:()=>u(!1),onClose:()=>u(!1),children:(0,L.jsxs)("div",{className:"ablocks-dc-panel",children:[(0,L.jsxs)("div",{className:"ablocks-dc-panel__head",children:[(0,L.jsx)("span",{className:"ablocks-dc-panel__title",children:(0,z.__)("Dynamic content","ablocks")}),(0,L.jsx)("button",{type:"button",className:"ablocks-dc-panel__close","aria-label":(0,z.__)("Close","ablocks"),onClick:()=>u(!1),children:"×"})]}),(0,L.jsx)("div",{className:"ablocks-dc-panel__body",children:(0,L.jsx)(Xl,{attributeName:o,attributeValue:l,blockId:g,setAttributes:e,dynamicType:n,attributeObjectValue:s,attributeObjectKey:b,context:c})})]})})]})}} | |
| 206 | -const El=t=>{const{children:e}=t,{field:i,affordance:o}=Bl(t);return(0,L.jsxs)(L.Fragment,{children:[i||e,o]})},Fl={label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func,placeholder:I().string,isInline:I().bool,isResponsive:I().bool,disableDynamicContent:I().bool,disabled:I().bool,dynamicType:I().string};function ql(t){const{label:e="",placeholder:i="",disableDynamicContent:o,attributeName:n,attributeValue:r,setAttributes:b,onChangeHandler:c,isInline:d=!1,isResponsive:u=!1,disabled:p=!1,dynamicType:m="text",attributeObjectValue:h,context:g}=t,[f,y]=(0,a.useState)(r),T=(0,a.useRef)(r),H=(0,a.useRef)({});H.current={disabled:p,onChangeHandler:c,setAttributes:b,attributeName:n},(0,a.useEffect)(()=>{r!==T.current&&(T.current=r,y(r))},[r]);const x=(0,a.useMemo)(()=>ie(t=>{const{disabled:e,onChangeHandler:i,setAttributes:o,attributeName:a}=H.current;if(e)return;const l=(0,M.Xz)(t);T.current=l,i?i(l):o({[a]:l})},300),[]);(0, | |
| 207 | -a.useEffect)(()=>()=>x.cancel&&x.cancel(),[x]);const k=Bl({disableDynamicContent:o,attributeName:n,attributeValue:r,setAttributes:b,dynamicType:m,attributeObjectValue:h,context:g});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:s()("ablocks-control ablocks-control--text",{"ablocks-control--inline":d}),children:[(0,L.jsx)(ot,{label:e,isResponsive:!!e&&u,affordance:k.affordance}),k.field||(0,L.jsx)(A.TextControl,{className:`ablocks-control__text-field ${p&&"ablocks-control__text-field-disabled"}`,value:f,onChange:t=>{p||(y(t),x(t))},placeholder:i,disabled:p})]})})}ql.propTypes=Fl;const $l=t=>{const{tabs:e=[],initialTabName:i=""}=t,o=e.map(t=>({...t||{},className:`${t?.className||""} ablocks-tabs-control__tabs-item`}));return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(A.TabPanel,{className:"ablocks-tabs-control",activeClass:"ablocks-tabs-control__tabs-item--active",tabs:o,initialTabName:i,children:t=>t.render})})},Gl=(t,e=0,i=Math.pow(10,e))=>Math.round(i*t)/i,Zl={ | |
| 208 | -grad:.9,turn:360,rad:360/(2*Math.PI)},Kl=t=>dn(Jl(t)),Jl=t=>("#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?Gl(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?Gl(parseInt(t.substring(6,8),16)/255,2):1}),Ql=(t,e="deg")=>Number(t)*(Zl[e]||1),tn=t=>{const e=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(t);return e?en({h:Ql(e[1],e[2]),s:Number(e[3]),l:Number(e[4]),a:void 0===e[5]?1:Number(e[5])/(e[6]?100:1)}):{h:0,s:0,v:0,a:1}},en=({h:t,s:e,l:i,a:o})=>({h:t,s:(e*=(i<50?i:100-i)/100)>0?2*e/(i+e)*100:0,v:i+e,a:o}),on=t=>cn(sn(t)),an=({h:t,s:e,v:i,a:o})=>{const a=(200-e)*i/100;return{h:Gl(t),s:Gl(a>0&&a<200?e*i/100/(a<=100?a:200-a)*100:0),l:Gl(a/2),a:Gl(o,2)}},ln=t=>{const{h:e,s:i,l:o}=an(t);return`hsl(${e}, ${i}%, ${o}%)` | |
| 209 | -},nn=t=>{const{h:e,s:i,l:o,a}=an(t);return`hsla(${e}, ${i}%, ${o}%, ${a})`},sn=({h:t,s:e,v:i,a:o})=>{t=t/360*6,e/=100,i/=100;const a=Math.floor(t),l=i*(1-e),n=i*(1-(t-a)*e),s=i*(1-(1-t+a)*e),r=a%6;return{r:Gl(255*[i,n,l,l,s,i][r]),g:Gl(255*[s,i,i,n,l,l][r]),b:Gl(255*[l,l,s,i,i,n][r]),a:Gl(o,2)}},rn=t=>{const e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(t);return e?dn({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}},bn=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},cn=({r:t,g:e,b:i,a:o})=>{const a=o<1?bn(Gl(255*o)):"";return"#"+bn(t)+bn(e)+bn(i)+a},dn=({r:t,g:e,b:i,a:o})=>{const a=Math.max(t,e,i),l=a-Math.min(t,e,i);let n=0;return l&&(n=a===t?(e-i)/l:a===e?2+(i-t)/l:4+(t-e)/l),{h:60*(n<0?n+6:n),s:a?l/a*100:0,v:a/255*100,a:o}},un=t=>t,pn=(t,e)=>{if(t===e)return!0 | |
| 210 | -;for(const i in t)if(t[i]!==e[i])return!1;return!0};function mn(t){const e=(0,a.useRef)(t),i=(0,a.useRef)(t=>{e.current&&e.current(t)});return e.current=t,i.current}const hn=(t,e=0,i=1)=>{let o=t;return t>i?o=i:t<e&&(o=e),o},gn=t=>"touches"in t,fn=t=>t&&t.ownerDocument.defaultView||window.self,yn=(t,e,i)=>{const o=t.getBoundingClientRect(),a=gn(e)?((t,e)=>{for(let i=0;i<t.length;i++)if(t[i].identifier===e)return t[i];return t[0]})(e.touches,i):e;return{left:hn((a.pageX-(o.left+fn(t).pageXOffset))/o.width),top:hn((a.pageY-(o.top+fn(t).pageYOffset))/o.height)}},Tn=t=>{!gn(t)&&t.preventDefault()},Hn=l().memo(({onMove:t,onKey:e,...i})=>{const o=(0,a.useRef)(null),l=mn(t),n=mn(e),s=(0,a.useRef)(null),r=(0,a.useRef)(!1),[b,c,d]=(0,a.useMemo)(()=>{const t=t=>{Tn(t),(gn(t)?t.touches.length>0:t.buttons>0)&&o.current?l(yn(o.current,t,s.current)):d(!1)},e=()=>d(!1);return[({nativeEvent:t})=>{const e=o.current;if(e&&(Tn(t),!((t,e)=>e&&!gn(t))(t,r.current)&&e)){if(gn(t)){r.current=!0 | |
| 211 | -;const e=t.changedTouches||[];e.length&&(s.current=e[0].identifier)}e.focus(),l(yn(e,t,s.current)),d(!0)}},t=>{const e=t.which||t.keyCode;if(e<37||e>40)return;t.preventDefault();let i=0;39===e?i=.05:37===e&&(i=-.05);let o=0;40===e?o=.05:38===e&&(o=-.05),n({left:i,top:o})},function(i){const a=r.current,l=o.current,n=fn(l),s=i?n.addEventListener:n.removeEventListener;s(a?"touchmove":"mousemove",t),s(a?"touchend":"mouseup",e)}]},[n,l]);return(0,a.useEffect)(()=>d,[d]),(0,L.jsx)("div",{...i,onTouchStart:b,onMouseDown:b,className:"ablocks-control--color-pickerinteractive",ref:o,onKeyDown:c,tabIndex:0,role:"slider"})}),Mn=t=>t.filter(Boolean).join(" "),xn=({className:t,color:e,left:i,top:o=.5})=>{const a=Mn(["ablocks-control--color-pickerpointer",t]),l={top:100*o+"%",left:100*i+"%"};return(0,L.jsx)("div",{className:a,style:l,children:(0,L.jsx)("div",{className:"ablocks-control--color-pickerpointer-fill",style:{backgroundColor:e}})})},kn=l().memo(({className:t,hue:e,onChange:i})=>{ | |
| 212 | -const o=Mn(["ablocks-control--color-pickerhue",t]);return(0,L.jsx)("div",{className:o,children:(0,L.jsx)(Hn,{onMove:t=>{i({h:360*t.left})},onKey:t=>{i({h:hn(360*(e+t.left),0,360)})},"aria-label":"Hue","aria-valuenow":Gl(e),"aria-valuemax":"360","aria-valuemin":"0",children:(0,L.jsx)(xn,{className:"ablocks-control--color-pickerhue-pointer",left:e/360,color:ln({h:e,s:100,v:100,a:1})})})})}),vn=l().memo(({hsva:t,onChange:e})=>{const i={backgroundColor:ln({h:t.h,s:100,v:100,a:1})};return(0,L.jsx)("div",{className:"ablocks-control--color-pickersaturation",style:i,children:(0,L.jsx)(Hn,{onMove:t=>{e({s:100*t.left,v:100-100*t.top})},onKey:i=>{e({s:hn(t.s+100*i.left,0,100),v:hn(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":`Saturation ${Gl(t.s)}%, Brightness ${Gl(t.v)}%`,children:(0,L.jsx)(xn,{className:"ablocks-control--color-pickersaturation-pointer",top:1-t.v/100,left:t.s/100,color:ln(t)})})})}),Rn=({className:t,hsva:e,onChange:i})=>{const o={ | |
| 213 | -backgroundImage:`linear-gradient(90deg, ${nn(Object.assign({},e,{a:0}))}, ${nn(Object.assign({},e,{a:1}))})`},a=Mn(["ablocks-control--color-pickeralpha",t]),l=Gl(100*e.a);return(0,L.jsxs)("div",{className:a,children:[(0,L.jsx)("div",{className:"ablocks-control--color-pickeralpha-gradient",style:o}),(0,L.jsx)(Hn,{onMove:t=>{i({a:t.left})},onKey:t=>{i({a:hn(e.a+t.left)})},"aria-label":"Alpha","aria-valuetext":`${l}%`,"aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100",children:(0,L.jsx)(xn,{className:"ablocks-control--color-pickeralpha-pointer",left:e.a,color:nn(e)})})]})},Sn=(t="")=>t.startsWith("#")?"hex":t.startsWith("rgb")?"rgb":t.startsWith("hsl")?"hsl":void 0,Wn=(t="")=>{const e="string"==typeof t?t.trim():"#90c",i=Sn(e);let o;switch(i){case"hex":o=Kl(e);break;case"rgb":o=rn(e);break;case"hsl":o=tn(e)}return{type:i,hsva:o}},Un=(t,e="hex")=>{switch(e){case"hex":return`${on(t)}`;case"hsl":return nn(t);case"rgb":return(t=>{const{r:e,g:i,b:o,a}=sn(t) | |
| 214 | -;return`rgba(${e}, ${i}, ${o}, ${a})`})(t)}},Pn=(t,e="hex")=>{switch(e){case"hex":{let e=`${on(t)}`;return 9===e.length&&(e=e.substring(0,7)),{hex:e}}case"hsl":return an(t);case"rgb":return sn(t)}},jn=(t,e="hex")=>{switch(e){case"hex":return Kl(t?.hex||"90c");case"hsl":return en(t);case"rgb":return dn(t)}},wn=({hsla:t,hsva:e,colorType:i,onChange:o})=>{let a="#90c";e?a=Un(e,i):t&&(a=Un(en(t),i)),o(a)},zn=t=>[4,7,5,9].includes(t?.length)&&/^#[0-9A-F]{3,9}$/i.test(t),Cn=t=>[4,5].includes(t?.length),An=[{label:"HEX",value:"hex"},{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"}];let Ln=!1,Dn=!1;const Nn=({hsva:t,onChange:e,setColorType:i,colorType:o="hex",alpha:l,handleAphaChange:n})=>{const[s,r]=(0,a.useState)(Pn(t,o)),b=(t,i,a=255)=>{Dn=!1;let l=i.trim(),n={};const b="hex"===t;if(b)l=l.startsWith("#")?l:`#${l}`;else if("rgbhsl".includes(t)&&(l=parseInt(l),l>a||l<0))return!1;n={...s,[t]:l},r(n),clearTimeout(Ln);const c=b&&Cn(l)?600:300;Ln=setTimeout(()=>{if(b&&!zn(l))return!1 | |
| 215 | -;const t=jn(n,o);e(t,o)},c)},c=()=>{if(Dn)return!1;let t=!1;if("hex"===o)t=zn(s?.hex);else if("rgb"===o){const{r:e,g:i,b:o,a}=s;t=[e,i,o].every(t=>t>=0&&t<=255)&&"number"==typeof a}else if("hsl"===o){const{h:e,s:i,l:o,a}=s;t=e>=0&&e<=360&&[i,o].every(t=>t>=0&&t<=100)&&"number"==typeof a}return t?void 0:(Dn=!0,window.alert("Input color is not valid. Please give a valid color value."))};(0,a.useEffect)(()=>(clearTimeout(Ln),Ln=setTimeout(()=>{r(Pn(t,o||"hex"))},300),()=>{clearTimeout(Ln)}),[t,o]);const d=An.find(t=>t.value===o);let u={};return"hex"===o?u={onBlur:c,onPaste:t=>{t.preventDefault();let i=t.clipboardData.getData("Text").trim();if("hex"===o&&(i.startsWith("#")&&(i=i.slice(1)),i=`#${i}`,zn(i))){r({...s,hex:i});const t=jn({...s,hex:i},o);e(t,o)}},className:"ablocks-color-input--hex-field",value:s?.hex,onChange:t=>b("hex",t)}:"rgb"===o?u={onBlur:c,className:"ablocks-color-input--rgb-field",type:"number",min:0,max:255}:"hsl"===o&&(u={onBlur:c, | |
| 216 | -className:"ablocks-color-input--rgb-field",type:"number",min:0}),(0,L.jsxs)("div",{className:"ablocks-color-input",children:[(0,L.jsxs)("div",{className:`ablocks-color-input--color-string ablocks-color-input-wrapper--colortype-${o||"hex"}`,children:[(0,L.jsxs)("div",{className:"ablocks-color-input--color-value ablocks-color-input--color-value-fields",children:["hex"===o&&(0,L.jsx)(A.TextControl,{...u}),"rgb"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.TextControl,{...u,value:s?.r,onChange:t=>b("r",t)}),(0,L.jsx)(A.TextControl,{...u,value:s?.g,onChange:t=>b("g",t)}),(0,L.jsx)(A.TextControl,{...u,value:s?.b,onChange:t=>b("b",t)})]}),"hsl"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.TextControl,{...u,max:360,value:s?.h,onChange:t=>b("h",t,360)}),(0,L.jsx)(A.TextControl,{...u,max:100,value:s?.s,onChange:t=>b("s",t,100)}),(0,L.jsx)(A.TextControl,{...u,max:100,value:s?.l,onChange:t=>b("l",t,100)})]})]}),(0,L.jsxs)("div",{ | |
| 217 | -className:"ablocks-color-input--color-value ablocks-color-input--alpha-percentage",children:[(0,L.jsx)(A.TextControl,{className:"ablocks-color-input--alpha-field",type:"number",value:l,onChange:n}),(0,L.jsx)("span",{className:"ablocks-color-input--percentage-icon",children:"%"})]})]}),(0,L.jsx)(rt,{options:An,onChangeHandler:o=>{!function(o){const a=o.value;r(Pn(t,a)),i(a),e(t,a)}({value:o})},isResponsive:!1,attributeValue:d?.label})]})},In={defaultColor:{h:285,s:100,v:80,a:1},toHsva:un,fromHsva:un,equal:pn},Vn={type:"hex",hsva:{h:285,s:100,v:80,a:1}};let On;const Yn=({value:t,onChange:e})=>{const{type:i,hsva:o}=((t="")=>{if(t.includes("gradient"))return!1;const e="string"==typeof t?t.trim():"#90c",i=Sn(e);let o;switch(i){case"hex":o=Kl(e);break;case"rgb":o=rn(e);break;case"hsl":o=tn(e)}return{type:i,hsva:o}})(t)||Vn,[l,n]=(0,a.useState)(i),[s,r]=(0,a.useState)(o||Vn.hsva),[b,c]=(0,a.useState)(100*o?.a),[d,u]=function(t,e,i){const o=mn(i),[l,n]=(0,a.useState)(()=>t.toHsva(e)),s=(0, | |
| 218 | -a.useRef)({color:e,hsva:l});(0,a.useEffect)(()=>{if(!t.equal(e,s.current.color)){const i=t.toHsva(e);s.current={hsva:i,color:e},n(i)}},[e,t]),(0,a.useEffect)(()=>{let e;pn(l,s.current.hsva)||t.equal(e=t.fromHsva(l),s.current.color)||(s.current={hsva:l,color:e},o(e))},[l,t,o]);const r=(0,a.useCallback)(t=>{n(e=>Object.assign({},e,t))},[]);return[l,r]}(In,s,t=>{wn({hsva:t,colorType:l,onChange:e}),r(t)});return(0,a.useEffect)(()=>(clearTimeout(On),On=setTimeout(()=>{c(Math.round(100*d.a))},300),()=>{clearTimeout(On)}),[d.a]),(0,L.jsxs)("div",{className:"ablocks-control ablocks-control--customizable-color-picker",children:[(0,L.jsx)(vn,{hsva:d,onChange:u}),(0,L.jsx)(kn,{hue:d.h,onChange:u}),(0,L.jsx)(Rn,{hsva:d,onChange:u}),(0,L.jsx)(Nn,{setColorType:n,colorType:l,hsva:d,onChange:(t,i)=>{1===t.a&&d.a&&(t.a=d.a),r(t),wn({hsva:t,colorType:i,onChange:e})},alpha:b,handleAphaChange:t=>{const i=parseInt(t);if(i>100||i<0)return!1;c(i),clearTimeout(On),On=setTimeout(()=>{const t={...s,a:i/100} | |
| 219 | -;r(t),wn({hsva:t,colorType:l,onChange:e})},300)}})]})},Xn=(t,e)=>{if(t instanceof Array&&e instanceof Array){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!Xn(t[i],e[i]))return!1;return!0}return t===e},Bn=(t="")=>{let e=t.trim().match(/^\w+-gradient/gi);return e=e?.length>0&&e[0],e="string"==typeof e&&e.toLowerCase(),e},En={angle:N.number.isRequired,setAngle:N.func.isRequired,size:N.number,snap:N.number},Fn=()=>{},qn={MOUSE:{stop:t=>{t.preventDefault(),t.stopPropagation()},coordinates:({clientX:t,clientY:e})=>({clientX:t,clientY:e}),dragEvent:{name:"mousemove"},dragEndEvent:{name:"mouseup"}},TOUCH:{stop:Fn,coordinates:t=>{const[e]=t.touches;return{clientX:e.clientX,clientY:e.clientY}},dragEvent:{name:"touchmove",options:{cancelable:!0,passive:!0}},dragEndEvent:{name:"touchend"}}},$n=(t,e=0)=>{const i=t%e;return 0===i?t:t+(i>e/2?e-i:-1*i)},Gn=({angle:t,setAngle:e,size:i=80,snap:o=5,gradient:l})=>{const n=(0,a.useRef)(),s={height:i,width:i},r={background:l},b={ | |
| 220 | -transform:`rotate(${t}deg)`,height:i},c=({clientX:t,clientY:i},a=!1)=>{const l=(t=>{if(!t)return{y:0,x:0};const{top:e,left:i,height:o,width:a}=t.getBoundingClientRect();return{y:e+o/2,x:i+a/2}})(n.current),s=((t,e,i)=>{const o=e-i.y,a=t-i.x,l=Math.atan2(o,a);return Math.round(l*(180/Math.PI))+90})(t,i,l),r=(t=>t<0?360+t:t>360?t-360:t)(s),b=a?$n(r,o):r;return e(b),b},[d]=(({onDragStart:t=Fn,onDrag:e,onDragEnd:i=Fn})=>{const[o,l]=(0,a.useState)({}),[n,s]=(0,a.useState)(!1),r=(e,i)=>{s(!0),o.handler=i,t(i.coordinates(e))},b=()=>{s(!1),i(o.change),l({})},c=t=>{const{handler:i}=o;n&&(o.change=e(i.coordinates(t)))};return(0,a.useEffect)(()=>{const{handler:t}=o;if(!t)return;const{dragEvent:e,dragEndEvent:i}=t;return n&&(document.addEventListener(e.name,c,i.options),document.addEventListener(i.name,b)),()=>{document.removeEventListener(e.name,c,i.options),document.removeEventListener(i.name,b)}},[n]),[t=>{const e=(t=>"touchstart"===t.type)(t)?qn.TOUCH:qn.MOUSE;e.stop(t),t.button||r(t,e)},r,b] | |
| 221 | -})({onDragStart:t=>c(t,!0),onDrag:c,onDragEnd:t=>{if(!t)return;const i=$n(t,o);e(i)}});return(0,L.jsxs)("div",{className:"ablocks-control-angle-control-wrapper",children:[(0,L.jsx)("div",{className:"ablocks-control-angle-picker-wrapper",style:r,children:(0,L.jsx)("div",{className:"ablocks-control-angle-picker",ref:n,onMouseDown:d,onTouchStart:d,style:s,role:"presentation",children:(0,L.jsx)("span",{className:"ablocks-control-angle-picker-indicator-wrapper",style:b,children:(0,L.jsx)("span",{className:"ablocks-control-angle-picker-indicator",children:(0,L.jsx)("i",{})})})})}),(0,L.jsx)(A.RangeControl,{className:"ablocks-gradient-reversed-range-control",label:"Angle",value:t,onChange:e,min:0,max:360,step:1})]})};Gn.propTypes=En;const Zn=({value:t,onChange:e})=>(0,L.jsx)(Gn,{gradient:t?.gradient,angle:t?.modifier||90,setAngle:e,size:90});let Kn=!1,Jn=!1;const Qn=({toggleVisible:t,activeColor:e,onColorChange:i,colorType:o="hex"})=>{const{hsva:l}=Wn(e?.colorString),n=Pn(l,o),[s,r]=(0, | |
| 222 | -a.useState)(l),[b,c]=(0,a.useState)(n),[d,u]=(0,a.useState)(Math.round(100*l.a));return(0,L.jsxs)("div",{className:"ablocks-gradient-active-color-custom-toggler-root",children:[(0,L.jsx)("span",{className:"ablocks-custom-toggler-color",style:{background:e?.colorString},onClick:()=>{t()},onKeyDown:()=>{}}),(0,L.jsx)("div",{className:"ablocks-custom-toggler-color-input-field",children:(0,L.jsx)(A.TextControl,{onBlur:()=>{if(Kn)return!1;let t=!1;return"hex"===o&&(t=zn(b?.hex)),t?void 0:(Kn=!0,window.alert("Input color is not valid. Please give a valid color value."))},onPaste:t=>{t.preventDefault();let e=t.clipboardData.getData("Text").trim();if("hex"===o&&(e.startsWith("#")&&(e=e.slice(1)),e=`#${e}`,zn(e))){c({...b,hex:e});const t=Kl(e);r(t),u(Math.round(100*t.a)),i(e)}},className:"ablocks-custom-toggler--hex-field",value:b?.hex,onChange:t=>((t,e)=>{clearTimeout(Jn),Kn=!1;let a=e.trim(),l={};if(a=a.startsWith("#")?a:`#${a}`,l={...b,[t]:a},c(l),!zn(a))return!1;const n=Cn(a)?900:500 | |
| 223 | -;Jn=setTimeout(()=>{c(l),i(a);const t=Kl(a);r(t),[5,9].includes(a.length)&&(u(Math.round(100*t.a)),c(Pn(t,o)))},n)})("hex",t)})}),(0,L.jsxs)("div",{className:"ablocks-custom-toggler-color--alpha-percentage-input-field",children:[(0,L.jsx)(A.TextControl,{className:"ablocks-custom-toggler--alpha-field",type:"number",value:d,onChange:t=>{const e=parseInt(t);if(e>100||e<0)return!1;u(e),clearTimeout(Jn),Jn=setTimeout(()=>{const t={...s,a:e/100},a=Pn(t,o);r(t),c(a),i(on(t))},500)},min:0,max:100}),(0,L.jsx)("span",{className:"ablocks-custom-toggler--alpha-percentage-icon",children:"%"})]})]})},ts=(t,e,i)=>{let o="";switch(t){case"linear":"number"==typeof i&&(o=`linear-gradient(${i}deg, ${e.map(t=>`${t[0]} ${Math.round(100*t[1]).toFixed(2)}%`)})`),"string"==typeof i&&(o=`linear-gradient(${i}, ${e.map(t=>`${t[0]} ${Math.round(100*t[1]).toFixed(2)}%`)})`);break;case"radial":o=`radial-gradient(${i}, ${e.map(t=>`${t[0]} ${Math.round(100*t[1]).toFixed(2)}%`)})`}return o | |
| 224 | -},es=(t,e)=>new RegExp(t.reduce((t,e)=>t+("string"==typeof e?e:e.source),""),e),is=[{angle:"0",name:"to top"},{angle:"45",name:"to top right"},{angle:"45",name:"to right top"},{angle:"90",name:"to right"},{angle:"135",name:"to right bottom"},{angle:"135",name:"to bottom right"},{angle:"180",name:"to bottom"},{angle:"225",name:"to left bottom"},{angle:"225",name:"to bottom left"},{angle:"270",name:"to left"},{angle:"315",name:"to top left"},{angle:"315",name:"to left top"}],os=(t="")=>{const e={stops:[["rgba(0, 0, 0, 1)",0,0],["rgba(183, 80, 174, 0.92)",1,1]],gradient:"linear-gradient(180deg, rgba(6, 6, 6, 1) 0.0%, rgba(183, 80, 174, 0.92) 100.0%)",modifier:180,type:"linear"},i=(t=>{let e;const i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/.exec(t);return null!==i&&(e=((t,e)=>{let i,o,a,l={stops:[],angle:"",line:"",original:""};if(t.gradientSearch.lastIndex=0,i=t.gradientSearch.exec(e),null!==i)for(l={...l,original:i[0]},i[1]&&(l.line=i[1]),i[2]&&(l.angle=i[2]), | |
| 225 | -i[3]&&(l.sideCorner=i[3]),t.colorStopSearch.lastIndex=0,o=t.colorStopSearch.exec(i[5]);null!==o;)a={color:o[1]},o[2]&&(a.position=Number((parseInt(o[2],10)/100).toFixed(2))),l.stops.push(a),o=t.colorStopSearch.exec(i[5]);return l})((()=>{const t=/\s*,\s*/,e=/(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?/,i=es(["(?:",/\#(?:[a-f0-9]{6,8}|[a-f0-9]{3})/,"|","(?:rgb|hsl)",/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*\)/,"|","(?:rgba|hsla)",/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*,\s*\d*\.?\d+\)/,"|",/[_a-z-][_a-z0-9-]*/,")"],""),o=es([i,"(?:\\s+",e,"(?:\\s+",e,")?)?"],""),a=es(["(?:",o,t,")*",o],""),l=es(["(?:(",/(?:[+-]?\d*\.?\d+)(?:deg|grad|rad|turn)/,")|",/to\s+((?:(?:left|right)(?:\s+(?:top|bottom))?))/,"|",/circle at\s+((?:(?:left|right|center|top|bottom)(?:\s+(?:left|right|center|top|bottom))?))/,")"],"");return{gradientSearch:es(["(?:(",l,")",t,")?(",a,")"],"gi"),colorStopSearch:es(["\\s*(",i,")","(?:\\s+","(",e,"))?","(?:",t,"\\s*)?"],"gi")}})(),i[1]), | |
| 226 | -e.original.trim()!==i[1].trim()&&(e.parseWarning=!0),!1===e.stops.every(t=>t.hasOwnProperty("position"))&&(e=!1),e)})(t=t.replace(/\s+/g," "));let o=[],a="";if(!i)return e;"string"!=typeof i&&(o=i.stops,a=i.angle?i.angle:i.line);const[,l,n]=t.match(/^(\w+)-gradient\((.*)\)$/i)||[];if(!l||!n)return e;const s=is.find(t=>t.name===a)?.angle,r=s||a||("linear"===l?"180":"circle at center");return{gradient:`${l}-gradient(${"string"!=typeof i?i.original:t})`,type:l,modifier:null!==r.match(/\d+/)?Number(r.match(/\d+/)?.join("")):r,stops:o.map((t,e)=>{const i=[`${t.color}`,e];return(t.position||0===t.position)&&i.splice(1,0,t.position),i})}};let as;const ls=(0,a.memo)(({color:t,setColor:e,activeColor:i,setActiveColor:o})=>{const l=(0,a.useRef)(),[n,s]=(0,a.useState)(!1),[r,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)(i?.loc||0),{stops:u,type:p,modifier:m}=t,h=()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",y)},g=()=>{window.removeEventListener("touchmove",T), | |
| 227 | -window.removeEventListener("touchend",H)},f=t=>{const e=t.clientX,i=t.clientY,o=l?.current?.getBoundingClientRect();i-o.y>80&&u.length>2?b(!0):(b(!1),M({x:e,y:i}))},y=t=>{const e=t.clientX,i=t.clientY,o=l?.current?.getBoundingClientRect();i-o.y>80&&u.length>2&&s(!0),M({x:e,y:i}),h()},T=t=>{t.cancelable&&t.preventDefault();const e=t.targetTouches[0].clientX,i=t.targetTouches[0].clientY,o=l?.current?.getBoundingClientRect();i-o.y>80&&u.length>2?b(!0):(b(!1),M({x:e,y:i}))},H=()=>{g()},M=t=>{const e=l&&l.current.getBoundingClientRect(),i=e.width;let a=t.x-e.left;a=Math.max(0,a),a=Math.min(a,i);const n=Number((100/e.width*a).toFixed(0))/100;o(t=>({...t,loc:n}))},x=()=>{if(u.length<=2)return;const a=u.filter(t=>t[2]!==i.index).map((t,e)=>(t[2]=e,t)),l=a.length-1,n=a[l][0],{hsva:r}=Wn(n),c=a[l][1];s(!1),b(!1),o({colorString:n,alpha:100*r.a,loc:c,index:l});const d=ts(p,a,m);return e({...t,gradient:d,stops:a})};(0,a.useEffect)(()=>{if(n)return x();clearTimeout(as) | |
| 228 | -;const o=u.map(t=>i.index===t[2]?[t[0],i.loc,t[2]]:t),a=ts(p,o,m),l={...t,gradient:a,stops:o};return e(l),as=setTimeout(()=>{d(100*i.loc)},300),()=>{clearTimeout(as)}},[i.loc,n]),(0,a.useEffect)(()=>()=>{h(),g()},[]);const k=`linear-gradient(to right, ${u.map(t=>`${t[0]} ${100*t[1]}%`).join(", ")})`;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ablocks-gradient-stops-wrapper",children:[(0,L.jsxs)("div",{role:"presentation",className:"ablocks-gradient-stops",onClick:a=>(a=>{a.stopPropagation();const l=a.target;if("gradient-marker"!==l.className){const n=l.getBoundingClientRect(),s=a.clientX-n.left,r=Number((100/n.width*s).toFixed(0))/100,b=[...t.stops,[i.colorString,r,t.stops.length]].sort((t,e)=>t[1]-e[1]).map((t,e)=>(t[2]=e,t)),c=`${ts(p,b,m)}`,d={...t,gradient:c,stops:b};e(d);const u=b.find(t=>t[1]===r)[2],h={...i,loc:r,index:u};o(h)}})(a),ref:l,children:[(0,L.jsx)("div",{className:"gradient-stop-preview",style:{background:k}}),(0,L.jsx)("div",{ | |
| 229 | -className:"gradient-stop-marker",children:u.map(t=>{const e=100*t[1],a=t[0];return(0,L.jsx)("div",{role:"presentation",className:`gradient-marker${r&&i.index===t[2]?" hide":""}${r||i.index!==t[2]?"":" active"}`,style:{left:Math.abs(Math.min(e,100))+"%",color:a},onTouchStart:e=>((t,e)=>{if(t.cancelable&&t.preventDefault(),1!==t.touches.length)return;g();const i=e[0],{hsva:a}=Wn(i);o({colorString:i,alpha:100*a.a,loc:e[1],index:e[2]});const l=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY;M({x:l,y:n}),window.addEventListener("touchmove",T,{passive:!1}),window.addEventListener("touchend",H,{passive:!1})})(e,t),onMouseDown:e=>((t,e)=>{if(t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),2===t.detail)return;if(0!==t.button)return;const i=e[0],{hsva:a}=Wn(i);o({colorString:i,alpha:100*a.a,loc:e[1],index:e[2]});const l=t.clientX,n=t.clientY;M({x:l,y:n}),window.addEventListener("mousemove",f),window.addEventListener("mouseup",y)})(e,t), | |
| 230 | -onClick:t=>t.stopPropagation(),onDoubleClick:x,onKeyDown:()=>{}},a+e+100*Math.random())})})]}),(0,L.jsx)(V,{onClick:x,disabled:u.length<3,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})]}),(0,L.jsx)("div",{className:"ablocks-gradient-stop-custom-input-wrapper",children:(0,L.jsx)(A.RangeControl,{className:"ablocks-gradient-reversed-range-control",label:"Location",value:c,onChange:t=>{if(t>100||t<0)return!1;o(e=>({...e,loc:t/100})),d(t)},min:0,max:100,step:1})})]})},(t,e)=>!(!Xn(t.color.stops,e.color.stops)||t.color.modifier!==e.color.modifier||t.color.type!==e.color.type||!((t,e)=>{const i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(const o of i)if(t[o]!==e[o])return!1;return!0})(t.activeColor,e.activeColor))),ns=[{label:"Top Left",value:"top-left"},{label:"Top",value:"top"},{label:"Top Right",value:"top-right"},{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Bottom Left", | |
| 231 | -value:"bottom-left"},{label:"Bottom",value:"bottom"},{label:"Bottom Right",value:"bottom-right"}];let ss,rs=Fn,bs=Fn;const cs=({value:t,onChange:e,type:i})=>{const[o,l]=(0,a.useState)(!1),n=(0,a.useCallback)(()=>Bn(t)===i?os(t):"linear-gradient"===i?os("linear-gradient(90deg, #BE21FF 0%, #736EC8CC 50%, #29A6FE 100%)"):"radial-gradient"===i?os("radial-gradient(circle at center, #BE21FF 0%, #736EC8CC 50%, #29A6FE 100%)"):void 0,[t,i]),s=n(),{stops:r}=s,b=r.length-1,c=r[b][0],{hsva:d}=Wn(c),u=r[b][1],[p,m]=(0,a.useState)({colorString:c,alpha:100*d.a,loc:u,index:b}),[h,g]=(0,a.useState)(s),[f,y]=(0,a.useState)("center");let T=(0,L.jsx)(L.Fragment,{}),H=(0,L.jsx)(L.Fragment,{});(0,a.useEffect)(()=>{h.gradient!==s.gradient&&e(h.gradient)},[h.gradient]),(0,a.useEffect)(()=>{const t=n(),{type:e,modifier:i}=t;if("radial"===e&&"string"==typeof i){const t=i.toLowerCase().split(" at ")[1]?.trim().replace(" ","-"),e=t.split("-").reverse().join("-"),o=ns.find(i=>i.value===t||i.value===e);y(o.value)} | |
| 232 | -g(t)},[i]);const M=t=>{clearTimeout(ss);const{hsva:i}=Wn(t),o=p.index,a=h.stops.map((e,i)=>i===o?[t,e[1],i]:e),l=ts(h.type,a,h.modifier);g(t=>({...t,gradient:l,stops:a})),ss=setTimeout(()=>{e(l),m(e=>({...e,colorString:t,alpha:100*i.a,key:(e?.key||1)+1}))},300)};"linear-gradient"===i&&(bs=t=>{clearTimeout(ss);const i=ts(h.type,h.stops,t);g(e=>({...e,gradient:i,modifier:t})),ss=setTimeout(()=>{e(i)},300)},T=(0,L.jsx)(Zn,{value:h,onChange:bs})),"radial-gradient"===i&&(rs=t=>{y(t);const i=`circle at ${t.replace("-"," ")} `,o=ts(h.type,h.stops,i);g(t=>({...t,gradient:o,modifier:i})),e(o)},H=(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"ablocks-control-radial-gradient-preview-wrapper",style:{background:h.gradient},children:(0,L.jsx)("ul",{children:ns.map((t,e)=>(0,L.jsx)("li",{onClick:()=>rs(t.value),onKeyDown:()=>{},children:(0,L.jsx)("span",{className:"ablocks-radial-gradient-position-dot "+(t.value===f?"active":"")})},e))})})}));const x=()=>{l(!o)};return(0, | |
| 233 | -L.jsxs)(L.Fragment,{children:[T,H,(0,L.jsx)(ls,{color:h,setColor:g,activeColor:p,setActiveColor:m}),(0,L.jsx)(Yt,{className:"ablocks-control--gradient-active-color-popover-root",label:(0,z.__)("Active Color","ablocks"),isShowPrimaryLabel:!0,height:370,width:320,isVisible:o,toggleVisible:x,CustomToggler:t=>(0,L.jsx)(Qn,{...t,activeColor:p,togglePopoverVisibility:x,onColorChange:M}),children:(0,L.jsx)("div",{className:"ablocks-control--inside-popover-color-picker",children:(0,L.jsx)(Yn,{value:p.colorString,onChange:M},p?.key||1)})})]})},ds=({setActiveTab:t,children:e,type:i})=>((0,Ot.useEffect)(()=>{t(i)},[i]),(0,L.jsx)(L.Fragment,{children:e})),us=({type:t="solid"})=>(0,L.jsx)("div",{className:`ablocks-control-color-gradient-tabpanel-tab-title ablocks-control-color-gradient-tabpanel-tab-title--${t}`,children:(0,L.jsx)("span",{className:"ablocks-tab-span-circle"})}),ps=({setActiveTab:t,solidPicker:e,value:i,onChange:o,setTabs:a})=>{a([{name:"solid",render:(0,L.jsx)(ds,{type:"solid", | |
| 234 | -setActiveTab:t,children:e}),title:(0,L.jsx)(us,{type:"solid"})},{name:"linear-gradient",render:(0,L.jsx)(ds,{type:"linear-gradient",setActiveTab:t,children:(0,L.jsx)(cs,{value:i,onChange:o,type:"linear-gradient"})}),title:(0,L.jsx)(us,{type:"linear-gradient"})},{name:"radial-gradient",render:(0,L.jsx)(ds,{type:"radial-gradient",setActiveTab:t,children:(0,L.jsx)(cs,{value:i,onChange:o,type:"radial-gradient"})}),title:(0,L.jsx)(us,{type:"radial-gradient"})}])};let ms;const hs=({value:t,allowGradient:e,onChange:i,setActiveTab:o})=>{const[l,n]=(0,a.useState)([]);(0,a.useEffect)(()=>{e&&ps({setActiveTab:o,solidPicker:s,value:t,onChange:i,setTabs:n})},[e]),(0,a.useEffect)(()=>(clearTimeout(ms),ms=setTimeout(()=>{e&&ps({setActiveTab:o,solidPicker:s,value:t,onChange:i,setTabs:n})},700),()=>{clearTimeout(ms)}),[t,e]);const s=(0,L.jsx)(Yn,{value:t,onChange:i});return(0,L.jsx)(L.Fragment,{children:e?(0,L.jsx)($l,{initialTabName:Bn(t)||"solid",tabs:l}):s})};var gs=i(49315),fs=i(72916);const ys={ | |
| 235 | -label:I().string,isGradient:I().bool,allowGlobalColor:I().bool,attributeName:I().string,attributeValue:I().string,setAttributes:I().func,onChangeHandler:I().func,resetHandler:I().func,showGlobal:I().bool,attributes:I().object},Ts=({colors:t})=>{const e=t&&t.length>1?`linear-gradient(to right, ${t.join(", ")})`:t[0];return(0,L.jsx)("div",{style:{width:"20px",height:"20px",background:e,borderRadius:"4px"}})},Hs=({colors:t})=>{const e=t&&t.length>1?`radial-gradient(circle, ${t.join(", ")})`:t[0];return(0,L.jsx)("div",{style:{width:"20px",height:"20px",background:e,borderRadius:"4px"}})},Ms=({color:t})=>(0,L.jsx)("div",{style:{width:"20px",height:"20px",background:t,borderRadius:"4px"}}),xs=()=>(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,L.jsx)("mask",{id:"path-1-inside-1_3380_808",fill:"white",children:(0,L.jsx)("path",{ | |
| 236 | -d:"M6.99996 13.2708C3.54079 13.2708 0.729126 10.4592 0.729126 6.99999C0.729126 3.54082 3.54079 0.729156 6.99996 0.729156C10.4591 0.729156 13.2708 3.54082 13.2708 6.99999C13.2708 10.4592 10.4591 13.2708 6.99996 13.2708ZM6.99996 1.60416C4.02496 1.60416 1.60413 4.02499 1.60413 6.99999C1.60413 9.97499 4.02496 12.3958 6.99996 12.3958C9.97496 12.3958 12.3958 9.97499 12.3958 6.99999C12.3958 4.02499 9.97496 1.60416 6.99996 1.60416Z"})}),(0,L.jsx)("path",{d:"M6.99996 13.2708C3.54079 13.2708 0.729126 10.4592 0.729126 6.99999C0.729126 3.54082 3.54079 0.729156 6.99996 0.729156C10.4591 0.729156 13.2708 3.54082 13.2708 6.99999C13.2708 10.4592 10.4591 13.2708 6.99996 13.2708ZM6.99996 1.60416C4.02496 1.60416 1.60413 4.02499 1.60413 6.99999C1.60413 9.97499 4.02496 12.3958 6.99996 12.3958C9.97496 12.3958 12.3958 9.97499 12.3958 6.99999C12.3958 4.02499 9.97496 1.60416 6.99996 1.60416Z",fill:"#A7AAAD"}),(0,L.jsx)("path",{ | |
| 170 | +this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(bl):fe(fe({},bl),this.props.theme):bl}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=this.cx,i=this.getStyles,o=this.getClassNames,a=this.getValue,l=this.selectOption,n=this.setValue,s=this.props,r=s.isMulti,b=s.isRtl,c=s.options;return{clearValue:t,cx:e,getStyles:i,getClassNames:o,getValue:a,hasValue:this.hasValue(),isMulti:r,isRtl:b,options:c,selectOption:l,selectProps:s,setValue:n,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var t=this.props,e=t.isClearable,i=t.isMulti;return void 0===e?i:e}},{key:"isOptionDisabled",value:function(t,e){ | |
| 171 | +return Tl(this.props,t,e)}},{key:"isOptionSelected",value:function(t,e){return Hl(this.props,t,e)}},{key:"filterOption",value:function(t,e){return Ml(this.props,t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var i=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:i,selectValue:o})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{ | |
| 172 | +key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,i=t.isSearchable,o=t.inputId,l=t.inputValue,n=t.tabIndex,s=t.form,r=t.menuIsOpen,b=t.required,c=this.getComponents().Input,d=this.state,u=d.inputIsHidden,p=d.ariaSelection,m=this.commonProps,h=o||this.getElementId("input"),g=fe(fe(fe({"aria-autocomplete":"list","aria-expanded":r,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"], | |
| 173 | +"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":b,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},r&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?a.createElement(c,(0,ve.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:e,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:s,type:"text",value:l},g)):a.createElement(Ea,(0,ve.A)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Lo,onFocus:this.onInputFocus,disabled:e,tabIndex:n,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){ | |
| 174 | +var t=this,e=this.getComponents(),i=e.MultiValue,o=e.MultiValueContainer,l=e.MultiValueLabel,n=e.MultiValueRemove,s=e.SingleValue,r=e.Placeholder,b=this.commonProps,c=this.props,d=c.controlShouldRenderValue,u=c.isDisabled,p=c.isMulti,m=c.inputValue,h=c.placeholder,g=this.state,f=g.selectValue,y=g.focusedValue,T=g.isFocused;if(!this.hasValue()||!d)return m?null:a.createElement(r,(0,ve.A)({},b,{key:"placeholder",isDisabled:u,isFocused:T,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return f.map(function(e,s){var r=e===y,c="".concat(t.getOptionLabel(e),"-").concat(t.getOptionValue(e));return a.createElement(i,(0,ve.A)({},b,{components:{Container:o,Label:l,Remove:n},isFocused:r,isDisabled:u,key:c,index:s,removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault()}},data:e}),t.formatOptionLabel(e,"value"))});if(m)return null;var H=f[0];return a.createElement(s,(0,ve.A)({},b,{data:H, | |
| 175 | +isDisabled:u}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,e=this.commonProps,i=this.props,o=i.isDisabled,l=i.isLoading,n=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||l)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(t,(0,ve.A)({},e,{innerProps:s,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,e=this.commonProps,i=this.props,o=i.isDisabled,l=i.isLoading,n=this.state.isFocused;return t&&l?a.createElement(t,(0,ve.A)({},e,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),e=t.DropdownIndicator,i=t.IndicatorSeparator;if(!e||!i)return null;var o=this.commonProps,l=this.props.isDisabled,n=this.state.isFocused;return a.createElement(i,(0, | |
| 176 | +ve.A)({},o,{isDisabled:l,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var e=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(t,(0,ve.A)({},e,{innerProps:l,isDisabled:i,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,e=this.getComponents(),i=e.Group,o=e.GroupHeading,l=e.Menu,n=e.MenuList,s=e.MenuPortal,r=e.LoadingMessage,b=e.NoOptionsMessage,c=e.Option,d=this.commonProps,u=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,f=p.loadingMessage,y=p.minMenuHeight,T=p.maxMenuHeight,H=p.menuIsOpen,M=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,v=p.menuShouldBlockScroll,_=p.menuShouldScrollIntoView,R=p.noOptionsMessage,S=p.onMenuScrollToTop,W=p.onMenuScrollToBottom;if(!H)return null | |
| 177 | +;var P,U=function(e,i){var o=e.type,l=e.data,n=e.isDisabled,s=e.isSelected,r=e.label,b=e.value,p=u===l,m=n?void 0:function(){return t.onOptionHover(l)},h=n?void 0:function(){return t.selectOption(l)},g="".concat(t.getElementId("option"),"-").concat(i),f={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:s};return a.createElement(c,(0,ve.A)({},d,{innerProps:f,data:l,isDisabled:n,isSelected:s,key:g,label:r,type:o,value:b,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(e){if("group"===e.type){var l=e.data,n=e.options,s=e.index,r="".concat(t.getElementId("group"),"-").concat(s),b="".concat(r,"-heading");return a.createElement(i,(0,ve.A)({},d,{key:r,data:l,options:n,Heading:o,headingProps:{id:b,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(t){return U(t,"".concat(s,"-").concat(t.index))}))} | |
| 178 | +if("option"===e.type)return U(e,"".concat(e.index))});else if(g){var j=f({inputValue:h});if(null===j)return null;P=a.createElement(r,d,j)}else{var w=R({inputValue:h});if(null===w)return null;P=a.createElement(b,d,w)}var z={minMenuHeight:y,maxMenuHeight:T,menuPlacement:M,menuPosition:x,menuShouldScrollIntoView:_},C=a.createElement(la,(0,ve.A)({},d,z),function(e){var i=e.ref,o=e.placerProps,s=o.placement,r=o.maxHeight;return a.createElement(l,(0,ve.A)({},d,z,{innerRef:i,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),a.createElement(ol,{captureEnabled:m,onTopArrive:S,onBottomArrive:W,lockEnabled:v},function(e){return a.createElement(n,(0,ve.A)({},d,{innerRef:function(i){t.getMenuListRef(i),e(i)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:r,focusedOption:u}),P)}))});return k||"fixed"===x?a.createElement(s,(0,ve.A)({},d,{appendTo:k,controlElement:this.controlRef, | |
| 179 | +menuPlacement:M,menuPosition:x}),C):C}},{key:"renderFormField",value:function(){var t=this,e=this.props,i=e.delimiter,o=e.isDisabled,l=e.isMulti,n=e.name,s=e.required,r=this.state.selectValue;if(s&&!this.hasValue()&&!o)return a.createElement(ll,{name:n,onFocus:this.onValueInputFocus});if(n&&!o){if(l){if(i){var b=r.map(function(e){return t.getOptionValue(e)}).join(i);return a.createElement("input",{name:n,type:"hidden",value:b})}var c=r.length>0?r.map(function(e,i){return a.createElement("input",{key:"i-".concat(i),name:n,type:"hidden",value:t.getOptionValue(e)})}):a.createElement("input",{name:n,type:"hidden",value:""});return a.createElement("div",null,c)}var d=r[0]?this.getOptionValue(r[0]):"";return a.createElement("input",{name:n,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,e=this.state,i=e.ariaSelection,o=e.focusedOption,l=e.focusedValue,n=e.isFocused,s=e.selectValue,r=this.getFocusableOptions();return a.createElement(za,(0, | |
| 180 | +ve.A)({},t,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:o,focusedValue:l,isFocused:n,selectValue:s,focusableOptions:r,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),e=t.Control,i=t.IndicatorsContainer,o=t.SelectContainer,l=t.ValueContainer,n=this.props,s=n.className,r=n.id,b=n.isDisabled,c=n.menuIsOpen,d=this.state.isFocused,u=this.commonProps=this.getCommonProps();return a.createElement(o,(0,ve.A)({},u,{className:s,innerProps:{id:r,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:d}),this.renderLiveRegion(),a.createElement(e,(0,ve.A)({},u,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:d,menuIsOpen:c}),a.createElement(l,(0,ve.A)({},u,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(i,(0,ve.A)({},u,{isDisabled:b | |
| 181 | +}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(t,e){var i=e.prevProps,o=e.clearFocusValueOnUpdate,a=e.inputIsHiddenAfterUpdate,l=e.ariaSelection,n=e.isFocused,s=e.prevWasFocused,r=e.instancePrefix,b=t.options,c=t.value,d=t.menuIsOpen,u=t.inputValue,p=t.isMulti,m=Io(c),h={};if(i&&(c!==i.value||b!==i.options||d!==i.menuIsOpen||u!==i.inputValue)){var g=d?function(t,e){return pl(ul(t,e))}(t,m):[],f=d?ml(ul(t,m),"".concat(r,"-option")):[],y=o?function(t,e){var i=t.focusedValue,o=t.selectValue.indexOf(i);if(o>-1){if(e.indexOf(i)>-1)return i;if(o<e.length)return e[o]}return null}(e,m):null,T=function(t,e){var i=t.focusedOption;return i&&e.indexOf(i)>-1?i:e[0]}(e,g);h={selectValue:m,focusedOption:T,focusedOptionId:gl(f,T),focusableOptionsWithIds:f,focusedValue:y,clearFocusValueOnUpdate:!1}}var H=null!=a&&t!==i?{ | |
| 182 | +inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},M=l,x=n&&s;return n&&!x&&(M={value:Qo(p,m,m[0]||null),options:m,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==l?void 0:l.action)&&(M=null),fe(fe(fe({},h),H),{},{prevProps:t,ariaSelection:M,prevWasFocused:x})}}]),i}(a.Component);vl.defaultProps=cl;var _l=(0,a.forwardRef)(function(t,e){var i=function(t){var e=t.defaultInputValue,i=void 0===e?"":e,o=t.defaultMenuIsOpen,l=void 0!==o&&o,n=t.defaultValue,s=void 0===n?null:n,r=t.inputValue,b=t.menuIsOpen,c=t.onChange,d=t.onInputChange,u=t.onMenuClose,p=t.onMenuOpen,m=t.value,h=xe(t,ke),g=He((0,a.useState)(void 0!==r?r:i),2),f=g[0],y=g[1],T=He((0,a.useState)(void 0!==b?b:l),2),H=T[0],M=T[1],x=He((0,a.useState)(void 0!==m?m:s),2),k=x[0],v=x[1],_=(0,a.useCallback)(function(t,e){"function"==typeof c&&c(t,e),v(t)},[c]),R=(0,a.useCallback)(function(t,e){var i;"function"==typeof d&&(i=d(t,e)),y(void 0!==i?i:t)},[d]),S=(0,a.useCallback)(function(){"function"==typeof p&&p(),M(!0) | |
| 183 | +},[p]),W=(0,a.useCallback)(function(){"function"==typeof u&&u(),M(!1)},[u]),P=void 0!==r?r:f,U=void 0!==b?b:H,j=void 0!==m?m:k;return fe(fe({},h),{},{inputValue:P,menuIsOpen:U,onChange:_,onInputChange:R,onMenuClose:W,onMenuOpen:S,value:j})}(t);return a.createElement(vl,(0,ve.A)({ref:e},i))}),Rl=_l;const Sl=()=>({placeholder:(0,L.__)("Select…","ablocks"),loadingMessage:()=>(0,L.__)("Loading…","ablocks"),noOptionsMessage:()=>(0,L.__)("No options","ablocks")}),Wl=t=>{const{label:e="",value:i,className:o="ablocks-react-select",onChange:a,options:l=[],menuClassName:n=""}=t,s={menu:()=>"ablocks-react-select-menu"+(n?` ${n}`:""),option:t=>`ablocks-react-select-option${t.isSelected?" selected":""}${t.isFocused?" focused":""}`,control:()=>"ablocks-react-select-control",valueContainer:()=>"ablocks-react-select-value-container",input:()=>"ablocks-react-select-input",placeholder:()=>"ablocks-react-select-placeholder",singleValue:()=>"ablocks-react-select-single-value", | |
| 184 | +indicatorSeparator:()=>"ablocks-react-select-indicator-separator",dropdownIndicator:()=>"ablocks-react-select-dropdown-indicator"};return(0,I.jsxs)("div",{className:"ablocks-react-select-wrapper",children:[(0,I.jsx)(at,{label:e,isResponsive:!1}),(0,I.jsx)(Rl,{...Sl(),menuPlacement:"auto",menuPosition:"fixed",menuPortalTarget:"undefined"!=typeof document?document.body:null,styles:{menuPortal:t=>({...t,zIndex:1000001})},value:i,className:o,onChange:a,options:l,classNames:s,...t})]})},Pl="ablocks/dynamic-content-store",Ul=t=>{const{attributeValue:e,handleSettingAttribute:i,context:o}=t,{metaKey:l,source:n,source_type:s}=e,b="post-type"===n&&s||o?.postType||(0,r.select)("core/editor").getCurrentPostType(),c=(0,r.useSelect)(t=>t(Pl).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)(Pl).setMetaFields({[b]:{isRequestBeingProcessed:!0}});const t={ | |
| 185 | +isRequestBeingProcessed:!1},e=()=>(0,r.dispatch)(Pl).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=l&&m.find(t=>t.value===l)||null;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}),(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=>i({metaKey:t?.value||""})})]}),!h&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom Key","ablocks"),disableDynamicContent:!0,attributeValue:l,onChangeHandler:t=>{i({metaKey:t||""})}})]})},jl=()=>{},wl=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0, | |
| 186 | +a.useState)(void 0),{attributeValue:n,handleSettingAttribute:s}=t,{taxonomy:b,termsSeparator:c}=n,d=(0,r.select)("core/editor").getCurrentPostType(),u=(0,a.useCallback)(t=>{t&&i([{label:"",value:void 0},...t||[]])},[]),p=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[d]:t}),u(t.data),l(!1)},[u]);return(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getTaxonomies();if(t?.[d]?.data)u(t[d].data);else if(!t?.[d]?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({[d]:{isRequestBeingProcessed:!0}}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_taxonomies_data",post_type:d}).then(e=>{e?.data?.success&&(t.data=e.data.data),p(t)},e=>{p(t),console.log("error fetching taxonomies",{e})})}},[d,p]),(0,a.useEffect)(()=>{if(!(e||[]).some(t=>"post_tag"===t.value))return jl;b||s({taxonomy:"post_tag"})},[b,e]),o?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)(I.Fragment,{children:[(0, | |
| 187 | +I.jsx)(Ut,{label:(0,L.__)("Taxonomy","ablocks"),isResponsive:!1,options:e||[],attributeValue:b,onChangeHandler:t=>s({taxonomy:t||""})}),(0,I.jsx)(Kl,{label:(0,L.__)("Separator","ablocks"),disableDynamicContent:!0,attributeValue:c,onChangeHandler:t=>{s({termsSeparator:t})}})]})},zl=window.wp.coreData,Cl=window.wp.htmlEntities,Al=(t,{context:e}={})=>{const i=t?.post_type;if("value"===e||!i)return(0,I.jsx)("span",{className:"ablocks-post-option__title",children:t?.label});let o="other";return"post"!==i&&"page"!==i||(o=i),(0,I.jsxs)("span",{className:"ablocks-post-option",children:[(0,I.jsx)("span",{className:"ablocks-post-option__title",children:t.label}),(0,I.jsx)("span",{className:`ablocks-post-option__badge ablocks-post-option__badge--${o}`,children:i})]})};let Ll;const Dl=t=>{const{attributeValue:e,handleSettingAttribute:i}=t,[o,l]=(0,a.useState)((0,r.select)("ablocks/dynamic-content-store").getRecentPosts()||[]),[n,s]=(0,a.useState)(!1),[b,c]=(0,a.useState)(""),[d,u]=(0, | |
| 188 | +a.useState)(""),{source_id:p,source_type:m}=e,{record:h,isResolving:g}=(0,zl.useEntityRecord)("postType",m,p);(0,a.useEffect)(()=>{const t=setTimeout(()=>{u(b)},800);return()=>clearTimeout(t)},[b]);const f=(0,a.useCallback)(async()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getRecentPosts();if(d){if(o.some(t=>t.label.toLowerCase().includes(d.toLowerCase())))return!1}else if(o.length>0||t)return!1;if(Ll===d)return!1;Ll=d,s(!0),(0,M.In)({action:"ablocks/search_posts",query:encodeURIComponent(d)}).then(t=>{if(t?.data?.success){const e=(t.data.data||[]).map(t=>({value:t.ID,label:(0,Cl.decodeEntities)(t.post_title),post_type:t.post_type}));""===d&&(0,r.dispatch)("ablocks/dynamic-content-store").setRecentPosts(e),l(e)}s(!1)},t=>{console.log("error searching post",{e:t}),s(!1)})},[d,o]);(0,a.useEffect)(()=>{f()},[f]);const y=h?{value:String(h.id),label:(0,Cl.decodeEntities)(h.title?.rendered||""),post_type:h.type}:null;return(0,I.jsxs)("div",{className:"dynamic-post-type-search", | |
| 189 | +children:[(0,I.jsx)(at,{label:(0,L.__)("Search Posts","ablocks"),isResponsive:!1}),(0,I.jsx)(Wl,{value:y,className:"dynamic-post-type-select",isSearchable:!0,isLoading:n||g,placeholder:(0,L.__)("Search Posts...","ablocks"),onInputChange:c,onChange:t=>{i({source_id:t?t.value:"",source_type:t?t.post_type:""})},options:o,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())})]})},Nl=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(void 0),{attributeValue:n,handleSettingAttribute:s}=t,b=parseInt(n?.taxonomyTermsUrlId),c=(0,a.useCallback)(t=>{t&&i([...t||[]])},[]),d=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setAllTaxonomiesTermsData({ | |
| 190 | +data:t?.data,isRequestBeingProcessed:!1}),c(t?.data),l(!1)},[c]);(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getAllTaxonomiesTermsData()?.data;if(t)c(t);else if(!t?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setTaxonomies({isRequestBeingProcessed:!0}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_all_taxonomies_terms_data"}).then(e=>{e?.data?.success&&(t.data=e.data.data),d(t)},e=>{d(t),console.log("error fetching taxonomies",{e})})}},[d]);const u=e?.find?.(t=>t?.value===b)||{};return(0,I.jsx)(Rl,{...Sl(),value:u,className:"dynamic-post-type-select",isSearchable:!0,isLoading:o,placeholder:(0,L.__)("Search Terms","ablocks"),onChange:t=>{s({taxonomyTermsUrlId:t?.value})},options:e})},Il=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(void 0),{attributeValue:n,handleSettingAttribute:s}=t,{authorId:b}=n,c=(0,a.useCallback)(t=>{t&&i([...t||[]])},[]),d=(0,a.useCallback)(t=>{(0, | |
| 191 | +r.dispatch)("ablocks/dynamic-content-store").setAllAuthorsData({data:t?.data,isRequestBeingProcessed:!1}),c(t?.data),l(!1)},[c]);(0,a.useEffect)(()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getAuthorsData()?.data;if(t)c(t);else if(!t?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsData({isRequestBeingProcessed:!0}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_all_authors_data"}).then(e=>{e?.data?.success&&(t.data=e.data.data),d(t)},e=>{d(t),console.log("error fetching authors",{e})})}},[d]);const u=e?.find?.(t=>t?.value===b)||{};return(0,I.jsx)(Rl,{...Sl(),value:u,className:"dynamic-authors-data-select",isSearchable:!0,isLoading:o,placeholder:(0,L.__)("Search Authors","ablocks"),onChange:t=>{s({authorId:t?.value})},options:e})};let Vl;const Ol=t=>{const{attributeValue:e,handleSettingAttribute:i}=t,[o,l]=(0,a.useState)((0,r.select)("ablocks/dynamic-content-store").getRecentMediasUrls()||[]),[n,s]=(0, | |
| 192 | +a.useState)(!1),[b,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(""),{mediaId:p}=e;(0,a.useEffect)(()=>{const t=setTimeout(()=>{u(b)},800);return()=>clearTimeout(t)},[b]);const m=(0,a.useCallback)(async()=>{const t=(0,r.select)("ablocks/dynamic-content-store").getRecentMediasUrls();let e=p;if(d){if(e=!1,o.some(t=>t.label.toLowerCase().includes(d.toLowerCase())))return!1}else if(o.length>0||t)return!1;if(Vl===d)return!1;Vl=d,s(!0);const i={action:"ablocks/search_medias",query:encodeURIComponent(d)};e&&(i.mediaId=e),(0,M.In)(i).then(t=>{if(t?.data?.success){const e=t.data?.data;(0,r.dispatch)("ablocks/dynamic-content-store").setRecentMediasUrls(e),l(e)}s(!1)},t=>{console.log("error searching post",{e:t}),s(!1)})},[d,o,p]);(0,a.useEffect)(()=>{m()},[m]);const h=o?.find?.(t=>t.value===p);return(0,I.jsx)(Rl,{...Sl(),value:h,className:"dynamic-medias-type-select",isSearchable:!0,isLoading:n,onInputChange:c,placeholder:(0,L.__)("Search Medias","ablocks"),onChange:t=>{i({mediaId:t?.value})}, | |
| 193 | +options:o})},Yl=[{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"},{label:(0,L.__)("Request Parameter","ablocks"),value:"request-parameter"},{label:(0,L.__)("Shortcode","ablocks"),value:"shortcode"},{label:(0,L.__)("User Info","ablocks"),value:"user-info"}],Xl=[{label:(0,L.__)("Current","ablocks"),value:"current"},{label:(0,L.__)("Post Type","ablocks"),value:"post-type"},...Yl],Bl=[{label:(0,L.__)("Current","ablocks"),value:"current"},...Yl],El=[{label:(0,L.__)("Post Url","ablocks"),value:"post-url"},{label:(0,L.__)("Site Url","ablocks"),value:"site-url"},{label:(0,L.__)("Author Url","ablocks"),value:"author-url"},{label:(0,L.__)("Comments Url","ablocks"),value:"comments-url"},{label:(0,L.__)("Featured Image File URL","ablocks"),value:"featured-image-file-url"},{label:(0,L.__)("Featured Image Attachment URL","ablocks"), | |
| 194 | +value:"featured-image-attachment-url"},{label:(0,L.__)("Internal Url","ablocks"),value:"internal-url",options:[{label:(0,L.__)("Content","ablocks"),value:"internal-url-content"},{label:(0,L.__)("Taxonomy","ablocks"),value:"internal-url-taxonomy"},{label:(0,L.__)("Media","ablocks"),value:"internal-url-media"},{label:(0,L.__)("Author","ablocks"),value:"internal-url-author"}]}],Fl=[{label:(0,L.__)("Featured Image","ablocks"),value:"featured-image"},{label:(0,L.__)("Site Logo","ablocks"),value:"site-logo"},{label:(0,L.__)("Author Profile Picture","ablocks"),value:"author-profile-picture"},{label:(0,L.__)("User Profile Picture","ablocks"),value:"user-profile-picture"}],ql=t=>{const{attributeName:e,attributeValue:i,setAttributes:o,blockId:l,dynamicType:n="text",attributeObjectValue:s,attributeObjectKey:b,context:c}=t,d="image"===n?b?i[b]:i[e]:i,u=(0,a.useMemo)(()=>(0, | |
| 195 | +M.hW)(d||""),[e,d]),{group_item:p,excerptWords:m,source:h,source_id:g,includeContext:f,archiveMetaKey:y,authorMetaKey:T,DateFormatOfCurrentDateTime:H,userFieldName:x}=u,k=((t,e)=>{const{getBlockParents:i}=(0,r.select)(D.store);return i(t).some(t=>{const i=(0,r.select)(D.store).getBlock(t);return e.includes(i?.name)})})(l,["core/post-template","core/query","ablocks/loop-template"]),v=(0,a.useCallback)(t=>{const a=[];let l,d,p,m,h,g,f,y,T,H,M,x,k,v,_,R,S;if("text"===n){if(l=t?.source||u?.source||"current",p=t?.group_item||u?.group_item||"",m=t?.before||u?.before||"",h=t?.after||u?.after||"",g=t?.fallback||u?.fallback||"","current-date-time"===l)M=t?.TimeFormatOfCurrentDateTime||u?.TimeFormatOfCurrentDateTime||"",x=t?.DateFormatOfCurrentDateTime||u?.DateFormatOfCurrentDateTime||"",H=t?.customFormatOfCurrentDateTime||u?.customFormatOfCurrentDateTime||"",a.push(l,M,x,H,m,h,g);else if("request-parameter"===l)k=t?.requestParamType||u?.requestParamType||"", | |
| 196 | +v=t?.requestParamName||u?.requestParamName||"",a.push(l,k,v,"",m,h,g);else if("user-info"===l)_=t?.userFieldName||u?.userFieldName||"",R=t?.userFieldMetaKey||u?.userFieldMetaKey||"",a.push(l,_,R,"",m,h,g);else if("shortcode"===l)S=t?.shortcode||u?.shortcode||"",a.push(l,S,"","",m,h,g);else if(d=!l||"current"===l,d?(y=c?.postType?c?.postType:(0,r.select)("core/editor").getCurrentPostType(),T=c?.queryId?c?.queryId:(0,r.select)("core/editor").getCurrentPostId()):(y=t?.source_type||u?.source_type,T=t?.source_id||u?.source_id),a.push(l,y,T,p,m,h,g),f=!l||["current","post-type"].includes(l),f)switch(p){case"post-custom-field":a.push(void 0!==t?.metaKey?t.metaKey:u?.metaKey||"");break;case"post-date":case"post-time":{a.push(t?.dateTimeType||u?.dateTimeType||"");const e=t?.dateTimeFormat||u?.dateTimeFormat||"";a.push(e),"custom"===e&&a.push(t?.customDateTimeFormat||u?.customDateTimeFormat||"");break}case"post-excerpt":a.push(t?.excerptWords||u?.excerptWords||"");break;case"post-terms": | |
| 197 | +a.push(t?.taxonomy||u?.taxonomy||""),a.push(t?.termsSeparator||u?.termsSeparator||"");break;case"author-meta":a.push(t?.authorMetaKey||u?.authorMetaKey||"")}o?.({[e]:"ablocks_dc:"+a.join("|")+":ablocks_dc"})}else if("link"===n){switch(p=t?.group_item||u?.group_item,a.push("link",p),p){case"internal-url-content":y=t?.source_type||u?.source_type,T=t?.source_id||u?.source_id,a.push(T,y);break;case"internal-url-taxonomy":{const e=t?.taxonomyTermsUrlId||u?.taxonomyTermsUrlId;a.push(e);break}case"internal-url-media":{const e=t?.mediaId||u?.mediaId;a.push(e);break}case"internal-url-author":{const e=t?.authorId||u?.authorId;a.push(e);break}}const i={...s,href:"ablocks_dc:"+a.join("|")+":ablocks_dc"};o?.({[e]:i})}else if("image"===n){p=t?.group_item||u?.group_item,a.push("image",p);const l={},n="ablocks_dc:"+a.join("|")+":ablocks_dc";l[e]=b?{...i,[b]:n}:n,o?.(l)}},[e,u,n]);(0,a.useEffect)(()=>{k&&(g||"post-type"===h)&&v({source:"current",source_type:"",source_id:""})},[k,h,g,v]);const _={...t, | |
| 198 | +attributeValue:u,handleSettingAttribute:v};if("link"===n){let t=El?.find(t=>p?.startsWith(t?.value));return t=t?.options?t?.options?.find(t=>t?.value===p):t,(0,I.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,I.jsx)(at,{label:(0,L.__)("Dynamic Link","ablocks"),isResponsive:!1}),(0,I.jsx)(Wl,{value:t,className:"link-source-options-select",placeholder:(0,L.__)("Source","ablocks"),onChange:t=>{v({group_item:t.value})},options:El})]}),p?.startsWith("internal-url")&&(0,I.jsxs)(I.Fragment,{children:["internal-url-content"===p&&(0,I.jsx)(Dl,{..._}),"internal-url-taxonomy"===p&&(0,I.jsx)(Nl,{..._}),"internal-url-media"===p&&(0,I.jsx)(Ol,{..._}),"internal-url-author"===p&&(0,I.jsx)(Il,{..._})]})]})}if("image"===n){let t=Fl?.find(t=>p?.startsWith(t?.value));return t=t?.options?t?.options?.find(t=>t?.value===p):t,(0,I.jsxs)("div",{className:"ablocks-react-select-control-wrapper", | |
| 199 | +children:[(0,I.jsx)(at,{label:(0,L.__)("Select Dynamic image option","ablocks"),isResponsive:!1}),(0,I.jsx)(Wl,{value:t,className:"image-source-options-select",placeholder:(0,L.__)("Source","ablocks"),onChange:t=>{v({group_item:t.value})},options:Fl})]})}return(0,I.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,I.jsx)(Ut,{label:(0,L.__)("Data Source","ablocks"),isResponsive:!1,options:k?Bl:Xl,attributeValue:h,onChangeHandler:t=>v({source:t})}),(!h||["current","post-type"].includes(h))&&(0,I.jsxs)(I.Fragment,{children:["post-type"===h&&(0,I.jsx)(Dl,{..._}),(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,{className:"ablocks-dynamic-tags-react-select",isSearchable:!0,placeholder:(0,L.__)("Dynamic Tag","ablocks"),options:se,value:(t=>{let e=null;for(const i of se){const o=i.options.find(e=>e.value===t);if(o){e=o;break}}return e})(u.group_item), | |
| 200 | +onChange:t=>{let e=null;for(const i of se)if(i.options.find(e=>e.value===t?.value)){e=i;break}v({group:e?.value,group_item:t?.value})}})]}),(()=>{switch(p){case"post-custom-field":return(0,I.jsx)(Ul,{..._,context:c});case"post-date":case"post-time":return(0,I.jsx)(ue,{..._});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:parseInt(m),onChangeHandler:t=>{v({excerptWords:t})}});case"post-terms":return(0,I.jsx)(wl,{..._});case"author-meta":return(0,I.jsx)(Kl,{label:(0,L.__)("Meta Key","ablocks"),disableDynamicContent:!0,attributeValue:T,onChangeHandler:t=>{v({authorMetaKey:t})}})}})()]}),(()=>{switch(h){case"archive-title":return(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Include Context","ablocks"),attributeValue:f,onChangeHandler:t=>{v({includeContext:t})}});case"archive-meta":return(0,I.jsx)(Kl,{label:(0,L.__)("Key","ablocks"),disableDynamicContent:!0,attributeValue:y, | |
| 201 | +onChangeHandler:t=>{v({archiveMetaKey:t||""})}});case"current-date-time":return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ue,{..._}),"custom"!==H&&(0,I.jsx)(ue,{..._,isForTime:!0})]});case"request-parameter":return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Get","ablocks"),value:"get"},{label:(0,L.__)("Post","ablocks"),value:"post"},{label:(0,L.__)("Query Var","ablocks"),value:"query-var"}],attributeValue:u.requestParamType,onChangeHandler:t=>v({requestParamType:t})}),(0,I.jsx)(Kl,{disableDynamicContent:!0,label:(0,L.__)("Parameter Name","ablocks"),attributeValue:u.requestParamName,onChangeHandler:t=>{v({requestParamName:t})}})]});case"user-info":return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Field","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Choose","ablocks"),value:""},{label:(0,L.__)("ID","ablocks"),value:"id"},{label:(0,L.__)("Display Name","ablocks"),value:"display-name"},{ | |
| 202 | +label:(0,L.__)("Username","ablocks"),value:"username"},{label:(0,L.__)("First Name","ablocks"),value:"first-name"},{label:(0,L.__)("Last Name","ablocks"),value:"last-name"},{label:(0,L.__)("Bio","ablocks"),value:"bio"},{label:(0,L.__)("Email","ablocks"),value:"email"},{label:(0,L.__)("Website","ablocks"),value:"website"},{label:(0,L.__)("User Meta","ablocks"),value:"user-meta"}],attributeValue:u.userFieldName,onChangeHandler:t=>v({userFieldName:t})}),"user-meta"===x&&(0,I.jsx)(Kl,{disableDynamicContent:!0,label:(0,L.__)("Meta Key","ablocks"),attributeValue:u.userFieldMetaKey,onChangeHandler:t=>{v({userFieldMetaKey:t})}})]});case"shortcode":return(0,I.jsx)(le,{disableDynamicContent:!0,label:(0,L.__)("Shortcode","ablocks"),isInline:!1,attributeValue:u.shortcode,onChangeHandler:t=>{v({shortcode:t})}})}})(),(0,I.jsxs)(V,{title:(0,L.__)("Advanced","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Kl,{disableDynamicContent:!0,label:(0,L.__)("Before","ablocks"),attributeValue:u.before, | |
| 203 | +onChangeHandler:t=>{v({before:t})}}),(0,I.jsx)(Kl,{disableDynamicContent:!0,label:(0,L.__)("After","ablocks"),attributeValue:u.after,onChangeHandler:t=>{v({after:t})}}),(0,I.jsx)(Kl,{disableDynamicContent:!0,label:(0,L.__)("Fallback","ablocks"),attributeValue:u.fallback,onChangeHandler:t=>{v({fallback:t})}})]})]})};function $l(t){const{setAttributes:e,disableDynamicContent:i,attributeName:o,attributeValue:l,dynamicType:n="text",attributeObjectValue:s={},attributeObjectKey:b,context:c}=t,[d,u]=(0,a.useState)(!1),[p,m]=(0,a.useState)(12),h=(0,a.useRef)(null),{block_id:g}=(0,r.useSelect)(t=>{const{getSelectedBlock:e}=t(D.store),i=e();return{block_id:i?.attributes?.block_id}},[]);let f=l;"image"===n&&(f=b?l?.[b]:l?.[o]);const y=(0,a.useMemo)(()=>(0,M.hW)(f),[f]),{isDynamicByNewSolution:T}=y,H=!!T&&!i,x=()=>{const t=document.querySelector(".interface-interface-skeleton__sidebar"),e=h.current;let i=12;if(t&&e){const o=e.getBoundingClientRect().left-t.getBoundingClientRect().left | |
| 204 | +;o>0&&(i=o+12)}m(i),u(!0)},k=()=>{let t="";"image"===n&&b&&(t={...l,[b]:""}),e({[o]:t})},v=((!y?.source||["current","post-type"].includes(y?.source)?y?.group_item:y?.source)||"").replaceAll("-"," ");return{isBound:H,field:H?(0,I.jsx)("p",{className:"ablocks-dynamic-content-enabled-field-wrapper",children:v}):null,affordance:i?null:(0,I.jsxs)("span",{className:"ablocks-dynamic-content-affordance",ref:h,children:[H&&(0,I.jsx)("span",{role:"button",tabIndex:0,"aria-label":(0,L.__)("Clear dynamic content","ablocks"),onClick:k,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||k()},className:"ablocks-dynamic-content-trigger ablocks-dynamic-content-trigger--clear ablocks-icon ablocks-icon--close"}),(0,I.jsx)("span",{role:"button",tabIndex:0,"aria-label":(0,L.__)("Use dynamic content","ablocks"),"aria-expanded":d,onClick:x,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||x()},className:"ablocks-dynamic-content-trigger dashicon dashicons dashicons-database-add"}),d&&(0,I.jsx)(N.Popover,{ | |
| 205 | +className:"ablocks-dynamic-content-input-fields-popover",placement:"left",offset:p,focusOnMount:"firstElement",onFocusOutside:()=>u(!1),onClose:()=>u(!1),children:(0,I.jsxs)("div",{className:"ablocks-dc-panel",children:[(0,I.jsxs)("div",{className:"ablocks-dc-panel__head",children:[(0,I.jsx)("span",{className:"ablocks-dc-panel__title",children:(0,L.__)("Dynamic content","ablocks")}),(0,I.jsx)("button",{type:"button",className:"ablocks-dc-panel__close","aria-label":(0,L.__)("Close","ablocks"),onClick:()=>u(!1),children:"×"})]}),(0,I.jsx)("div",{className:"ablocks-dc-panel__body",children:(0,I.jsx)(ql,{attributeName:o,attributeValue:l,blockId:g,setAttributes:e,dynamicType:n,attributeObjectValue:s,attributeObjectKey:b,context:c})})]})})]})}}const Gl=t=>{const{children:e}=t,{field:i,affordance:o}=$l(t);return(0,I.jsxs)(I.Fragment,{children:[i||e,o]})},Zl={label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,placeholder:Y().string,isInline:Y().bool, | |
| 206 | +isResponsive:Y().bool,disableDynamicContent:Y().bool,disabled:Y().bool,dynamicType:Y().string};function Kl(t){const{label:e="",placeholder:i="",disableDynamicContent:o,attributeName:n,attributeValue:r,setAttributes:b,onChangeHandler:c,isInline:d=!1,isResponsive:u=!1,disabled:p=!1,dynamicType:m="text",attributeObjectValue:h,context:g}=t,[f,y]=(0,a.useState)(r),T=(0,a.useRef)(r),H=(0,a.useRef)({});H.current={disabled:p,onChangeHandler:c,setAttributes:b,attributeName:n},(0,a.useEffect)(()=>{r!==T.current&&(T.current=r,y(r))},[r]);const x=(0,a.useMemo)(()=>oe(t=>{const{disabled:e,onChangeHandler:i,setAttributes:o,attributeName:a}=H.current;if(e)return;const l=(0,M.Xz)(t);T.current=l,i?i(l):o({[a]:l})},300),[]);(0,a.useEffect)(()=>()=>x.cancel&&x.cancel(),[x]);const k=$l({disableDynamicContent:o,attributeName:n,attributeValue:r,setAttributes:b,dynamicType:m,attributeObjectValue:h,context:g});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{ | |
| 207 | +className:s()("ablocks-control ablocks-control--text",{"ablocks-control--inline":d}),children:[(0,I.jsx)(at,{label:e,isResponsive:!!e&&u,affordance:k.affordance}),k.field||(0,I.jsx)(N.TextControl,{className:`ablocks-control__text-field ${p&&"ablocks-control__text-field-disabled"}`,value:f,onChange:t=>{p||(y(t),x(t))},placeholder:i,disabled:p})]})})}Kl.propTypes=Zl;const Jl=t=>{const{tabs:e=[],initialTabName:i=""}=t,o=e.map(t=>({...t||{},className:`${t?.className||""} ablocks-tabs-control__tabs-item`}));return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-tabs-control",activeClass:"ablocks-tabs-control__tabs-item--active",tabs:o,initialTabName:i,children:t=>t.render})})},Ql=(t,e=0,i=Math.pow(10,e))=>Math.round(i*t)/i,tn={grad:.9,turn:360,rad:360/(2*Math.PI)},en=t=>hn(on(t)),on=t=>("#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?Ql(parseInt(t[3]+t[3],16)/255,2):1}:{ | |
| 208 | +r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?Ql(parseInt(t.substring(6,8),16)/255,2):1}),an=(t,e="deg")=>Number(t)*(tn[e]||1),ln=t=>{const e=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(t);return e?nn({h:an(e[1],e[2]),s:Number(e[3]),l:Number(e[4]),a:void 0===e[5]?1:Number(e[5])/(e[6]?100:1)}):{h:0,s:0,v:0,a:1}},nn=({h:t,s:e,l:i,a:o})=>({h:t,s:(e*=(i<50?i:100-i)/100)>0?2*e/(i+e)*100:0,v:i+e,a:o}),sn=t=>mn(dn(t)),rn=({h:t,s:e,v:i,a:o})=>{const a=(200-e)*i/100;return{h:Ql(t),s:Ql(a>0&&a<200?e*i/100/(a<=100?a:200-a)*100:0),l:Ql(a/2),a:Ql(o,2)}},bn=t=>{const{h:e,s:i,l:o}=rn(t);return`hsl(${e}, ${i}%, ${o}%)`},cn=t=>{const{h:e,s:i,l:o,a}=rn(t);return`hsla(${e}, ${i}%, ${o}%, ${a})`},dn=({h:t,s:e,v:i,a:o})=>{t=t/360*6,e/=100,i/=100;const a=Math.floor(t),l=i*(1-e),n=i*(1-(t-a)*e),s=i*(1-(1-t+a)*e),r=a%6;return{r:Ql(255*[i,n,l,l,s,i][r]), | |
| 209 | +g:Ql(255*[s,i,i,n,l,l][r]),b:Ql(255*[l,l,s,i,i,n][r]),a:Ql(o,2)}},un=t=>{const e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(t);return e?hn({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}},pn=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},mn=({r:t,g:e,b:i,a:o})=>{const a=o<1?pn(Ql(255*o)):"";return"#"+pn(t)+pn(e)+pn(i)+a},hn=({r:t,g:e,b:i,a:o})=>{const a=Math.max(t,e,i),l=a-Math.min(t,e,i);let n=0;return l&&(n=a===t?(e-i)/l:a===e?2+(i-t)/l:4+(t-e)/l),{h:60*(n<0?n+6:n),s:a?l/a*100:0,v:a/255*100,a:o}},gn=t=>t,fn=(t,e)=>{if(t===e)return!0;for(const i in t)if(t[i]!==e[i])return!1;return!0};function yn(t){const e=(0,a.useRef)(t),i=(0,a.useRef)(t=>{e.current&&e.current(t)});return e.current=t,i.current}const Tn=(t,e=0,i=1)=>{let o=t;return t>i?o=i:t<e&&(o=e),o | |
| 210 | +},Hn=t=>"touches"in t,Mn=t=>t&&t.ownerDocument.defaultView||window.self,xn=(t,e,i)=>{const o=t.getBoundingClientRect(),a=Hn(e)?((t,e)=>{for(let i=0;i<t.length;i++)if(t[i].identifier===e)return t[i];return t[0]})(e.touches,i):e;return{left:Tn((a.pageX-(o.left+Mn(t).pageXOffset))/o.width),top:Tn((a.pageY-(o.top+Mn(t).pageYOffset))/o.height)}},kn=t=>{!Hn(t)&&t.preventDefault()},vn=l().memo(({onMove:t,onKey:e,...i})=>{const o=(0,a.useRef)(null),l=yn(t),n=yn(e),s=(0,a.useRef)(null),r=(0,a.useRef)(!1),[b,c,d]=(0,a.useMemo)(()=>{const t=t=>{kn(t),(Hn(t)?t.touches.length>0:t.buttons>0)&&o.current?l(xn(o.current,t,s.current)):d(!1)},e=()=>d(!1);return[({nativeEvent:t})=>{const e=o.current;if(e&&(kn(t),!((t,e)=>e&&!Hn(t))(t,r.current)&&e)){if(Hn(t)){r.current=!0;const e=t.changedTouches||[];e.length&&(s.current=e[0].identifier)}e.focus(),l(xn(e,t,s.current)),d(!0)}},t=>{const e=t.which||t.keyCode;if(e<37||e>40)return;t.preventDefault();let i=0;39===e?i=.05:37===e&&(i=-.05);let o=0 | |
| 211 | +;40===e?o=.05:38===e&&(o=-.05),n({left:i,top:o})},function(i){const a=r.current,l=o.current,n=Mn(l),s=i?n.addEventListener:n.removeEventListener;s(a?"touchmove":"mousemove",t),s(a?"touchend":"mouseup",e)}]},[n,l]);return(0,a.useEffect)(()=>d,[d]),(0,I.jsx)("div",{...i,onTouchStart:b,onMouseDown:b,className:"ablocks-control--color-pickerinteractive",ref:o,onKeyDown:c,tabIndex:0,role:"slider"})}),Rn=t=>t.filter(Boolean).join(" "),Sn=({className:t,color:e,left:i,top:o=.5})=>{const a=Rn(["ablocks-control--color-pickerpointer",t]),l={top:100*o+"%",left:100*i+"%"};return(0,I.jsx)("div",{className:a,style:l,children:(0,I.jsx)("div",{className:"ablocks-control--color-pickerpointer-fill",style:{backgroundColor:e}})})},Wn=l().memo(({className:t,hue:e,onChange:i})=>{const o=Rn(["ablocks-control--color-pickerhue",t]);return(0,I.jsx)("div",{className:o,children:(0,I.jsx)(vn,{onMove:t=>{i({h:360*t.left})},onKey:t=>{i({h:Tn(360*(e+t.left),0,360)})},"aria-label":"Hue","aria-valuenow":Ql(e), | |
| 212 | +"aria-valuemax":"360","aria-valuemin":"0",children:(0,I.jsx)(Sn,{className:"ablocks-control--color-pickerhue-pointer",left:e/360,color:bn({h:e,s:100,v:100,a:1})})})})}),Pn=l().memo(({hsva:t,onChange:e})=>{const i={backgroundColor:bn({h:t.h,s:100,v:100,a:1})};return(0,I.jsx)("div",{className:"ablocks-control--color-pickersaturation",style:i,children:(0,I.jsx)(vn,{onMove:t=>{e({s:100*t.left,v:100-100*t.top})},onKey:i=>{e({s:Tn(t.s+100*i.left,0,100),v:Tn(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":`Saturation ${Ql(t.s)}%, Brightness ${Ql(t.v)}%`,children:(0,I.jsx)(Sn,{className:"ablocks-control--color-pickersaturation-pointer",top:1-t.v/100,left:t.s/100,color:bn(t)})})})}),Un=({className:t,hsva:e,onChange:i})=>{const o={backgroundImage:`linear-gradient(90deg, ${cn(Object.assign({},e,{a:0}))}, ${cn(Object.assign({},e,{a:1}))})`},a=Rn(["ablocks-control--color-pickeralpha",t]),l=Ql(100*e.a);return(0,I.jsxs)("div",{className:a,children:[(0,I.jsx)("div",{ | |
| 213 | +className:"ablocks-control--color-pickeralpha-gradient",style:o}),(0,I.jsx)(vn,{onMove:t=>{i({a:t.left})},onKey:t=>{i({a:Tn(e.a+t.left)})},"aria-label":"Alpha","aria-valuetext":`${l}%`,"aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100",children:(0,I.jsx)(Sn,{className:"ablocks-control--color-pickeralpha-pointer",left:e.a,color:cn(e)})})]})},jn=(t="")=>t.startsWith("#")?"hex":t.startsWith("rgb")?"rgb":t.startsWith("hsl")?"hsl":void 0,wn=(t="")=>{const e="string"==typeof t?t.trim():"#90c",i=jn(e);let o;switch(i){case"hex":o=en(e);break;case"rgb":o=un(e);break;case"hsl":o=ln(e)}return{type:i,hsva:o}},zn=(t,e="hex")=>{switch(e){case"hex":return`${sn(t)}`;case"hsl":return cn(t);case"rgb":return(t=>{const{r:e,g:i,b:o,a}=dn(t);return`rgba(${e}, ${i}, ${o}, ${a})`})(t)}},Cn=(t,e="hex")=>{switch(e){case"hex":{let e=`${sn(t)}`;return 9===e.length&&(e=e.substring(0,7)),{hex:e}}case"hsl":return rn(t);case"rgb":return dn(t)}},An=(t,e="hex")=>{switch(e){case"hex":return en(t?.hex||"90c") | |
| 214 | +;case"hsl":return nn(t);case"rgb":return hn(t)}},Ln=({hsla:t,hsva:e,colorType:i,onChange:o})=>{let a="#90c";e?a=zn(e,i):t&&(a=zn(nn(t),i)),o(a)},Dn=t=>[4,7,5,9].includes(t?.length)&&/^#[0-9A-F]{3,9}$/i.test(t),Nn=t=>[4,5].includes(t?.length),In=[{label:"HEX",value:"hex"},{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"}];let Vn=!1,On=!1;const Yn=({hsva:t,onChange:e,setColorType:i,colorType:o="hex",alpha:l,handleAphaChange:n})=>{const[s,r]=(0,a.useState)(Cn(t,o)),b=(t,i,a=255)=>{On=!1;let l=i.trim(),n={};const b="hex"===t;if(b)l=l.startsWith("#")?l:`#${l}`;else if("rgbhsl".includes(t)&&(l=parseInt(l),l>a||l<0))return!1;n={...s,[t]:l},r(n),clearTimeout(Vn);const c=b&&Nn(l)?600:300;Vn=setTimeout(()=>{if(b&&!Dn(l))return!1;const t=An(n,o);e(t,o)},c)},c=()=>{if(On)return!1;let t=!1;if("hex"===o)t=Dn(s?.hex);else if("rgb"===o){const{r:e,g:i,b:o,a}=s;t=[e,i,o].every(t=>t>=0&&t<=255)&&"number"==typeof a}else if("hsl"===o){const{h:e,s:i,l:o,a}=s | |
| 215 | +;t=e>=0&&e<=360&&[i,o].every(t=>t>=0&&t<=100)&&"number"==typeof a}return t?void 0:(On=!0,window.alert("Input color is not valid. Please give a valid color value."))};(0,a.useEffect)(()=>(clearTimeout(Vn),Vn=setTimeout(()=>{r(Cn(t,o||"hex"))},300),()=>{clearTimeout(Vn)}),[t,o]);const d=In.find(t=>t.value===o);let u={};return"hex"===o?u={onBlur:c,onPaste:t=>{t.preventDefault();let i=t.clipboardData.getData("Text").trim();if("hex"===o&&(i.startsWith("#")&&(i=i.slice(1)),i=`#${i}`,Dn(i))){r({...s,hex:i});const t=An({...s,hex:i},o);e(t,o)}},className:"ablocks-color-input--hex-field",value:s?.hex,onChange:t=>b("hex",t)}:"rgb"===o?u={onBlur:c,className:"ablocks-color-input--rgb-field",type:"number",min:0,max:255}:"hsl"===o&&(u={onBlur:c,className:"ablocks-color-input--rgb-field",type:"number",min:0}),(0,I.jsxs)("div",{className:"ablocks-color-input",children:[(0,I.jsxs)("div",{className:`ablocks-color-input--color-string ablocks-color-input-wrapper--colortype-${o||"hex"}`,children:[(0, | |
| 216 | +I.jsxs)("div",{className:"ablocks-color-input--color-value ablocks-color-input--color-value-fields",children:["hex"===o&&(0,I.jsx)(N.TextControl,{...u}),"rgb"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.TextControl,{...u,value:s?.r,onChange:t=>b("r",t)}),(0,I.jsx)(N.TextControl,{...u,value:s?.g,onChange:t=>b("g",t)}),(0,I.jsx)(N.TextControl,{...u,value:s?.b,onChange:t=>b("b",t)})]}),"hsl"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.TextControl,{...u,max:360,value:s?.h,onChange:t=>b("h",t,360)}),(0,I.jsx)(N.TextControl,{...u,max:100,value:s?.s,onChange:t=>b("s",t,100)}),(0,I.jsx)(N.TextControl,{...u,max:100,value:s?.l,onChange:t=>b("l",t,100)})]})]}),(0,I.jsxs)("div",{className:"ablocks-color-input--color-value ablocks-color-input--alpha-percentage",children:[(0,I.jsx)(N.TextControl,{className:"ablocks-color-input--alpha-field",type:"number",value:l,onChange:n}),(0,I.jsx)("span",{className:"ablocks-color-input--percentage-icon",children:"%"})]})]}),(0,I.jsx)(bt,{options:In, | |
| 217 | +onChangeHandler:o=>{!function(o){const a=o.value;r(Cn(t,a)),i(a),e(t,a)}({value:o})},isResponsive:!1,attributeValue:d?.label})]})},Xn={defaultColor:{h:285,s:100,v:80,a:1},toHsva:gn,fromHsva:gn,equal:fn},Bn={type:"hex",hsva:{h:285,s:100,v:80,a:1}};let En;const Fn=({value:t,onChange:e})=>{const{type:i,hsva:o}=((t="")=>{if(t.includes("gradient"))return!1;const e="string"==typeof t?t.trim():"#90c",i=jn(e);let o;switch(i){case"hex":o=en(e);break;case"rgb":o=un(e);break;case"hsl":o=ln(e)}return{type:i,hsva:o}})(t)||Bn,[l,n]=(0,a.useState)(i),[s,r]=(0,a.useState)(o||Bn.hsva),[b,c]=(0,a.useState)(100*o?.a),[d,u]=function(t,e,i){const o=yn(i),[l,n]=(0,a.useState)(()=>t.toHsva(e)),s=(0,a.useRef)({color:e,hsva:l});(0,a.useEffect)(()=>{if(!t.equal(e,s.current.color)){const i=t.toHsva(e);s.current={hsva:i,color:e},n(i)}},[e,t]),(0,a.useEffect)(()=>{let e;fn(l,s.current.hsva)||t.equal(e=t.fromHsva(l),s.current.color)||(s.current={hsva:l,color:e},o(e))},[l,t,o]);const r=(0,a.useCallback)(t=>{ | |
| 218 | +n(e=>Object.assign({},e,t))},[]);return[l,r]}(Xn,s,t=>{Ln({hsva:t,colorType:l,onChange:e}),r(t)});return(0,a.useEffect)(()=>(clearTimeout(En),En=setTimeout(()=>{c(Math.round(100*d.a))},300),()=>{clearTimeout(En)}),[d.a]),(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--customizable-color-picker",children:[(0,I.jsx)(Pn,{hsva:d,onChange:u}),(0,I.jsx)(Wn,{hue:d.h,onChange:u}),(0,I.jsx)(Un,{hsva:d,onChange:u}),(0,I.jsx)(Yn,{setColorType:n,colorType:l,hsva:d,onChange:(t,i)=>{1===t.a&&d.a&&(t.a=d.a),r(t),Ln({hsva:t,colorType:i,onChange:e})},alpha:b,handleAphaChange:t=>{const i=parseInt(t);if(i>100||i<0)return!1;c(i),clearTimeout(En),En=setTimeout(()=>{const t={...s,a:i/100};r(t),Ln({hsva:t,colorType:l,onChange:e})},300)}})]})},qn=(t,e)=>{if(t instanceof Array&&e instanceof Array){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!qn(t[i],e[i]))return!1;return!0}return t===e},$n=(t="")=>{let e=t.trim().match(/^\w+-gradient/gi);return e=e?.length>0&&e[0], | |
| 219 | +e="string"==typeof e&&e.toLowerCase(),e},Gn={angle:O.number.isRequired,setAngle:O.func.isRequired,size:O.number,snap:O.number},Zn=()=>{},Kn={MOUSE:{stop:t=>{t.preventDefault(),t.stopPropagation()},coordinates:({clientX:t,clientY:e})=>({clientX:t,clientY:e}),dragEvent:{name:"mousemove"},dragEndEvent:{name:"mouseup"}},TOUCH:{stop:Zn,coordinates:t=>{const[e]=t.touches;return{clientX:e.clientX,clientY:e.clientY}},dragEvent:{name:"touchmove",options:{cancelable:!0,passive:!0}},dragEndEvent:{name:"touchend"}}},Jn=(t,e=0)=>{const i=t%e;return 0===i?t:t+(i>e/2?e-i:-1*i)},Qn=({angle:t,setAngle:e,size:i=80,snap:o=5,gradient:l})=>{const n=(0,a.useRef)(),s={height:i,width:i},r={background:l},b={transform:`rotate(${t}deg)`,height:i},c=({clientX:t,clientY:i},a=!1)=>{const l=(t=>{if(!t)return{y:0,x:0};const{top:e,left:i,height:o,width:a}=t.getBoundingClientRect();return{y:e+o/2,x:i+a/2}})(n.current),s=((t,e,i)=>{const o=e-i.y,a=t-i.x,l=Math.atan2(o,a);return Math.round(l*(180/Math.PI))+90 | |
| 220 | +})(t,i,l),r=(t=>t<0?360+t:t>360?t-360:t)(s),b=a?Jn(r,o):r;return e(b),b},[d]=(({onDragStart:t=Zn,onDrag:e,onDragEnd:i=Zn})=>{const[o,l]=(0,a.useState)({}),[n,s]=(0,a.useState)(!1),r=(e,i)=>{s(!0),o.handler=i,t(i.coordinates(e))},b=()=>{s(!1),i(o.change),l({})},c=t=>{const{handler:i}=o;n&&(o.change=e(i.coordinates(t)))};return(0,a.useEffect)(()=>{const{handler:t}=o;if(!t)return;const{dragEvent:e,dragEndEvent:i}=t;return n&&(document.addEventListener(e.name,c,i.options),document.addEventListener(i.name,b)),()=>{document.removeEventListener(e.name,c,i.options),document.removeEventListener(i.name,b)}},[n]),[t=>{const e=(t=>"touchstart"===t.type)(t)?Kn.TOUCH:Kn.MOUSE;e.stop(t),t.button||r(t,e)},r,b]})({onDragStart:t=>c(t,!0),onDrag:c,onDragEnd:t=>{if(!t)return;const i=Jn(t,o);e(i)}});return(0,I.jsxs)("div",{className:"ablocks-control-angle-control-wrapper",children:[(0,I.jsx)("div",{className:"ablocks-control-angle-picker-wrapper",style:r,children:(0,I.jsx)("div",{ | |
| 221 | +className:"ablocks-control-angle-picker",ref:n,onMouseDown:d,onTouchStart:d,style:s,role:"presentation",children:(0,I.jsx)("span",{className:"ablocks-control-angle-picker-indicator-wrapper",style:b,children:(0,I.jsx)("span",{className:"ablocks-control-angle-picker-indicator",children:(0,I.jsx)("i",{})})})})}),(0,I.jsx)(N.RangeControl,{className:"ablocks-gradient-reversed-range-control",label:"Angle",value:t,onChange:e,min:0,max:360,step:1})]})};Qn.propTypes=Gn;const ts=({value:t,onChange:e})=>(0,I.jsx)(Qn,{gradient:t?.gradient,angle:t?.modifier||90,setAngle:e,size:90});let es=!1,is=!1;const os=({toggleVisible:t,activeColor:e,onColorChange:i,colorType:o="hex"})=>{const{hsva:l}=wn(e?.colorString),n=Cn(l,o),[s,r]=(0,a.useState)(l),[b,c]=(0,a.useState)(n),[d,u]=(0,a.useState)(Math.round(100*l.a));return(0,I.jsxs)("div",{className:"ablocks-gradient-active-color-custom-toggler-root",children:[(0,I.jsx)("span",{className:"ablocks-custom-toggler-color",style:{background:e?.colorString}, | |
| 222 | +onClick:()=>{t()},onKeyDown:()=>{}}),(0,I.jsx)("div",{className:"ablocks-custom-toggler-color-input-field",children:(0,I.jsx)(N.TextControl,{onBlur:()=>{if(es)return!1;let t=!1;return"hex"===o&&(t=Dn(b?.hex)),t?void 0:(es=!0,window.alert("Input color is not valid. Please give a valid color value."))},onPaste:t=>{t.preventDefault();let e=t.clipboardData.getData("Text").trim();if("hex"===o&&(e.startsWith("#")&&(e=e.slice(1)),e=`#${e}`,Dn(e))){c({...b,hex:e});const t=en(e);r(t),u(Math.round(100*t.a)),i(e)}},className:"ablocks-custom-toggler--hex-field",value:b?.hex,onChange:t=>((t,e)=>{clearTimeout(is),es=!1;let a=e.trim(),l={};if(a=a.startsWith("#")?a:`#${a}`,l={...b,[t]:a},c(l),!Dn(a))return!1;const n=Nn(a)?900:500;is=setTimeout(()=>{c(l),i(a);const t=en(a);r(t),[5,9].includes(a.length)&&(u(Math.round(100*t.a)),c(Cn(t,o)))},n)})("hex",t)})}),(0,I.jsxs)("div",{className:"ablocks-custom-toggler-color--alpha-percentage-input-field",children:[(0,I.jsx)(N.TextControl,{ | |
| 223 | +className:"ablocks-custom-toggler--alpha-field",type:"number",value:d,onChange:t=>{const e=parseInt(t);if(e>100||e<0)return!1;u(e),clearTimeout(is),is=setTimeout(()=>{const t={...s,a:e/100},a=Cn(t,o);r(t),c(a),i(sn(t))},500)},min:0,max:100}),(0,I.jsx)("span",{className:"ablocks-custom-toggler--alpha-percentage-icon",children:"%"})]})]})},as=(t,e,i)=>{let o="";switch(t){case"linear":"number"==typeof i&&(o=`linear-gradient(${i}deg, ${e.map(t=>`${t[0]} ${Math.round(100*t[1]).toFixed(2)}%`)})`),"string"==typeof i&&(o=`linear-gradient(${i}, ${e.map(t=>`${t[0]} ${Math.round(100*t[1]).toFixed(2)}%`)})`);break;case"radial":o=`radial-gradient(${i}, ${e.map(t=>`${t[0]} ${Math.round(100*t[1]).toFixed(2)}%`)})`}return o},ls=(t,e)=>new RegExp(t.reduce((t,e)=>t+("string"==typeof e?e:e.source),""),e),ns=[{angle:"0",name:"to top"},{angle:"45",name:"to top right"},{angle:"45",name:"to right top"},{angle:"90",name:"to right"},{angle:"135",name:"to right bottom"},{angle:"135",name:"to bottom right"},{ | |
| 224 | +angle:"180",name:"to bottom"},{angle:"225",name:"to left bottom"},{angle:"225",name:"to bottom left"},{angle:"270",name:"to left"},{angle:"315",name:"to top left"},{angle:"315",name:"to left top"}],ss=(t="")=>{const e={stops:[["rgba(0, 0, 0, 1)",0,0],["rgba(183, 80, 174, 0.92)",1,1]],gradient:"linear-gradient(180deg, rgba(6, 6, 6, 1) 0.0%, rgba(183, 80, 174, 0.92) 100.0%)",modifier:180,type:"linear"},i=(t=>{let e;const i=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/.exec(t);return null!==i&&(e=((t,e)=>{let i,o,a,l={stops:[],angle:"",line:"",original:""};if(t.gradientSearch.lastIndex=0,i=t.gradientSearch.exec(e),null!==i)for(l={...l,original:i[0]},i[1]&&(l.line=i[1]),i[2]&&(l.angle=i[2]),i[3]&&(l.sideCorner=i[3]),t.colorStopSearch.lastIndex=0,o=t.colorStopSearch.exec(i[5]);null!==o;)a={color:o[1]},o[2]&&(a.position=Number((parseInt(o[2],10)/100).toFixed(2))),l.stops.push(a),o=t.colorStopSearch.exec(i[5]);return l})((()=>{ | |
| 225 | +const t=/\s*,\s*/,e=/(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?/,i=ls(["(?:",/\#(?:[a-f0-9]{6,8}|[a-f0-9]{3})/,"|","(?:rgb|hsl)",/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*\)/,"|","(?:rgba|hsla)",/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*,\s*\d*\.?\d+\)/,"|",/[_a-z-][_a-z0-9-]*/,")"],""),o=ls([i,"(?:\\s+",e,"(?:\\s+",e,")?)?"],""),a=ls(["(?:",o,t,")*",o],""),l=ls(["(?:(",/(?:[+-]?\d*\.?\d+)(?:deg|grad|rad|turn)/,")|",/to\s+((?:(?:left|right)(?:\s+(?:top|bottom))?))/,"|",/circle at\s+((?:(?:left|right|center|top|bottom)(?:\s+(?:left|right|center|top|bottom))?))/,")"],"");return{gradientSearch:ls(["(?:(",l,")",t,")?(",a,")"],"gi"),colorStopSearch:ls(["\\s*(",i,")","(?:\\s+","(",e,"))?","(?:",t,"\\s*)?"],"gi")}})(),i[1]),e.original.trim()!==i[1].trim()&&(e.parseWarning=!0),!1===e.stops.every(t=>t.hasOwnProperty("position"))&&(e=!1),e)})(t=t.replace(/\s+/g," "));let o=[],a="";if(!i)return e;"string"!=typeof i&&(o=i.stops,a=i.angle?i.angle:i.line);const[,l,n]=t.match(/^(\w+)-gradient\((.*)\)$/i)||[] | |
| 226 | +;if(!l||!n)return e;const s=ns.find(t=>t.name===a)?.angle,r=s||a||("linear"===l?"180":"circle at center");return{gradient:`${l}-gradient(${"string"!=typeof i?i.original:t})`,type:l,modifier:null!==r.match(/\d+/)?Number(r.match(/\d+/)?.join("")):r,stops:o.map((t,e)=>{const i=[`${t.color}`,e];return(t.position||0===t.position)&&i.splice(1,0,t.position),i})}};let rs;const bs=(0,a.memo)(({color:t,setColor:e,activeColor:i,setActiveColor:o})=>{const l=(0,a.useRef)(),[n,s]=(0,a.useState)(!1),[r,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)(i?.loc||0),{stops:u,type:p,modifier:m}=t,h=()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",y)},g=()=>{window.removeEventListener("touchmove",T),window.removeEventListener("touchend",H)},f=t=>{const e=t.clientX,i=t.clientY,o=l?.current?.getBoundingClientRect();i-o.y>80&&u.length>2?b(!0):(b(!1),M({x:e,y:i}))},y=t=>{const e=t.clientX,i=t.clientY,o=l?.current?.getBoundingClientRect();i-o.y>80&&u.length>2&&s(!0),M({x:e,y:i}),h() | |
| 227 | +},T=t=>{t.cancelable&&t.preventDefault();const e=t.targetTouches[0].clientX,i=t.targetTouches[0].clientY,o=l?.current?.getBoundingClientRect();i-o.y>80&&u.length>2?b(!0):(b(!1),M({x:e,y:i}))},H=()=>{g()},M=t=>{const e=l&&l.current.getBoundingClientRect(),i=e.width;let a=t.x-e.left;a=Math.max(0,a),a=Math.min(a,i);const n=Number((100/e.width*a).toFixed(0))/100;o(t=>({...t,loc:n}))},x=()=>{if(u.length<=2)return;const a=u.filter(t=>t[2]!==i.index).map((t,e)=>(t[2]=e,t)),l=a.length-1,n=a[l][0],{hsva:r}=wn(n),c=a[l][1];s(!1),b(!1),o({colorString:n,alpha:100*r.a,loc:c,index:l});const d=as(p,a,m);return e({...t,gradient:d,stops:a})};(0,a.useEffect)(()=>{if(n)return x();clearTimeout(rs);const o=u.map(t=>i.index===t[2]?[t[0],i.loc,t[2]]:t),a=as(p,o,m),l={...t,gradient:a,stops:o};return e(l),rs=setTimeout(()=>{d(100*i.loc)},300),()=>{clearTimeout(rs)}},[i.loc,n]),(0,a.useEffect)(()=>()=>{h(),g()},[]);const k=`linear-gradient(to right, ${u.map(t=>`${t[0]} ${100*t[1]}%`).join(", ")})`;return(0, | |
| 228 | +I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-gradient-stops-wrapper",children:[(0,I.jsxs)("div",{role:"presentation",className:"ablocks-gradient-stops",onClick:a=>(a=>{a.stopPropagation();const l=a.target;if("gradient-marker"!==l.className){const n=l.getBoundingClientRect(),s=a.clientX-n.left,r=Number((100/n.width*s).toFixed(0))/100,b=[...t.stops,[i.colorString,r,t.stops.length]].sort((t,e)=>t[1]-e[1]).map((t,e)=>(t[2]=e,t)),c=`${as(p,b,m)}`,d={...t,gradient:c,stops:b};e(d);const u=b.find(t=>t[1]===r)[2],h={...i,loc:r,index:u};o(h)}})(a),ref:l,children:[(0,I.jsx)("div",{className:"gradient-stop-preview",style:{background:k}}),(0,I.jsx)("div",{className:"gradient-stop-marker",children:u.map(t=>{const e=100*t[1],a=t[0];return(0,I.jsx)("div",{role:"presentation",className:`gradient-marker${r&&i.index===t[2]?" hide":""}${r||i.index!==t[2]?"":" active"}`,style:{left:Math.abs(Math.min(e,100))+"%",color:a},onTouchStart:e=>((t,e)=>{if(t.cancelable&&t.preventDefault(), | |
| 229 | +1!==t.touches.length)return;g();const i=e[0],{hsva:a}=wn(i);o({colorString:i,alpha:100*a.a,loc:e[1],index:e[2]});const l=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY;M({x:l,y:n}),window.addEventListener("touchmove",T,{passive:!1}),window.addEventListener("touchend",H,{passive:!1})})(e,t),onMouseDown:e=>((t,e)=>{if(t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),2===t.detail)return;if(0!==t.button)return;const i=e[0],{hsva:a}=wn(i);o({colorString:i,alpha:100*a.a,loc:e[1],index:e[2]});const l=t.clientX,n=t.clientY;M({x:l,y:n}),window.addEventListener("mousemove",f),window.addEventListener("mouseup",y)})(e,t),onClick:t=>t.stopPropagation(),onDoubleClick:x,onKeyDown:()=>{}},a+e+100*Math.random())})})]}),(0,I.jsx)(X,{onClick:x,disabled:u.length<3,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})]}),(0,I.jsx)("div",{className:"ablocks-gradient-stop-custom-input-wrapper",children:(0,I.jsx)(N.RangeControl,{ | |
| 230 | +className:"ablocks-gradient-reversed-range-control",label:"Location",value:c,onChange:t=>{if(t>100||t<0)return!1;o(e=>({...e,loc:t/100})),d(t)},min:0,max:100,step:1})})]})},(t,e)=>!(!qn(t.color.stops,e.color.stops)||t.color.modifier!==e.color.modifier||t.color.type!==e.color.type||!((t,e)=>{const i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(const o of i)if(t[o]!==e[o])return!1;return!0})(t.activeColor,e.activeColor))),cs=[{label:(0,L.__)("Top Left","ablocks"),value:"top-left"},{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Top Right","ablocks"),value:"top-right"},{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Bottom Left","ablocks"),value:"bottom-left"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Bottom Right","ablocks"),value:"bottom-right"}];let ds,us=Zn,ps=Zn;const ms=({value:t,onChange:e,type:i})=>{ | |
| 231 | +const[o,l]=(0,a.useState)(!1),n=(0,a.useCallback)(()=>$n(t)===i?ss(t):"linear-gradient"===i?ss("linear-gradient(90deg, #BE21FF 0%, #736EC8CC 50%, #29A6FE 100%)"):"radial-gradient"===i?ss("radial-gradient(circle at center, #BE21FF 0%, #736EC8CC 50%, #29A6FE 100%)"):void 0,[t,i]),s=n(),{stops:r}=s,b=r.length-1,c=r[b][0],{hsva:d}=wn(c),u=r[b][1],[p,m]=(0,a.useState)({colorString:c,alpha:100*d.a,loc:u,index:b}),[h,g]=(0,a.useState)(s),[f,y]=(0,a.useState)("center");let T=(0,I.jsx)(I.Fragment,{}),H=(0,I.jsx)(I.Fragment,{});(0,a.useEffect)(()=>{h.gradient!==s.gradient&&e(h.gradient)},[h.gradient]),(0,a.useEffect)(()=>{const t=n(),{type:e,modifier:i}=t;if("radial"===e&&"string"==typeof i){const t=i.toLowerCase().split(" at ")[1]?.trim().replace(" ","-"),e=t.split("-").reverse().join("-"),o=cs.find(i=>i.value===t||i.value===e);y(o.value)}g(t)},[i]);const M=t=>{clearTimeout(ds);const{hsva:i}=wn(t),o=p.index,a=h.stops.map((e,i)=>i===o?[t,e[1],i]:e),l=as(h.type,a,h.modifier);g(t=>({...t, | |
| 232 | +gradient:l,stops:a})),ds=setTimeout(()=>{e(l),m(e=>({...e,colorString:t,alpha:100*i.a,key:(e?.key||1)+1}))},300)};"linear-gradient"===i&&(ps=t=>{clearTimeout(ds);const i=as(h.type,h.stops,t);g(e=>({...e,gradient:i,modifier:t})),ds=setTimeout(()=>{e(i)},300)},T=(0,I.jsx)(ts,{value:h,onChange:ps})),"radial-gradient"===i&&(us=t=>{y(t);const i=`circle at ${t.replace("-"," ")} `,o=as(h.type,h.stops,i);g(t=>({...t,gradient:o,modifier:i})),e(o)},H=(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("div",{className:"ablocks-control-radial-gradient-preview-wrapper",style:{background:h.gradient},children:(0,I.jsx)("ul",{children:cs.map((t,e)=>(0,I.jsx)("li",{onClick:()=>us(t.value),onKeyDown:()=>{},children:(0,I.jsx)("span",{className:"ablocks-radial-gradient-position-dot "+(t.value===f?"active":"")})},e))})})}));const x=()=>{l(!o)};return(0,I.jsxs)(I.Fragment,{children:[T,H,(0,I.jsx)(bs,{color:h,setColor:g,activeColor:p,setActiveColor:m}),(0,I.jsx)(Xt,{ | |
| 233 | +className:"ablocks-control--gradient-active-color-popover-root",label:(0,L.__)("Active Color","ablocks"),isShowPrimaryLabel:!0,height:370,width:320,isVisible:o,toggleVisible:x,CustomToggler:t=>(0,I.jsx)(os,{...t,activeColor:p,togglePopoverVisibility:x,onColorChange:M}),children:(0,I.jsx)("div",{className:"ablocks-control--inside-popover-color-picker",children:(0,I.jsx)(Fn,{value:p.colorString,onChange:M},p?.key||1)})})]})},hs=({setActiveTab:t,children:e,type:i})=>((0,Yt.useEffect)(()=>{t(i)},[i]),(0,I.jsx)(I.Fragment,{children:e})),gs=({type:t="solid"})=>(0,I.jsx)("div",{className:`ablocks-control-color-gradient-tabpanel-tab-title ablocks-control-color-gradient-tabpanel-tab-title--${t}`,children:(0,I.jsx)("span",{className:"ablocks-tab-span-circle"})}),fs=({setActiveTab:t,solidPicker:e,value:i,onChange:o,setTabs:a})=>{a([{name:"solid",render:(0,I.jsx)(hs,{type:"solid",setActiveTab:t,children:e}),title:(0,I.jsx)(gs,{type:"solid"})},{name:"linear-gradient",render:(0,I.jsx)(hs,{ | |
| 234 | +type:"linear-gradient",setActiveTab:t,children:(0,I.jsx)(ms,{value:i,onChange:o,type:"linear-gradient"})}),title:(0,I.jsx)(gs,{type:"linear-gradient"})},{name:"radial-gradient",render:(0,I.jsx)(hs,{type:"radial-gradient",setActiveTab:t,children:(0,I.jsx)(ms,{value:i,onChange:o,type:"radial-gradient"})}),title:(0,I.jsx)(gs,{type:"radial-gradient"})}])};let ys;const Ts=({value:t,allowGradient:e,onChange:i,setActiveTab:o})=>{const[l,n]=(0,a.useState)([]);(0,a.useEffect)(()=>{e&&fs({setActiveTab:o,solidPicker:s,value:t,onChange:i,setTabs:n})},[e]),(0,a.useEffect)(()=>(clearTimeout(ys),ys=setTimeout(()=>{e&&fs({setActiveTab:o,solidPicker:s,value:t,onChange:i,setTabs:n})},700),()=>{clearTimeout(ys)}),[t,e]);const s=(0,I.jsx)(Fn,{value:t,onChange:i});return(0,I.jsx)(I.Fragment,{children:e?(0,I.jsx)(Jl,{initialTabName:$n(t)||"solid",tabs:l}):s})};var Hs=i(49315),Ms=i(72916);const xs={label:Y().string,isGradient:Y().bool,allowGlobalColor:Y().bool,attributeName:Y().string, | |
| 235 | +attributeValue:Y().string,setAttributes:Y().func,onChangeHandler:Y().func,resetHandler:Y().func,showGlobal:Y().bool,attributes:Y().object},ks=({colors:t})=>{const e=t&&t.length>1?`linear-gradient(to right, ${t.join(", ")})`:t[0];return(0,I.jsx)("div",{style:{width:"20px",height:"20px",background:e,borderRadius:"4px"}})},vs=({colors:t})=>{const e=t&&t.length>1?`radial-gradient(circle, ${t.join(", ")})`:t[0];return(0,I.jsx)("div",{style:{width:"20px",height:"20px",background:e,borderRadius:"4px"}})},_s=({color:t})=>(0,I.jsx)("div",{style:{width:"20px",height:"20px",background:t,borderRadius:"4px"}}),Rs=()=>(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,I.jsx)("mask",{id:"path-1-inside-1_3380_808",fill:"white",children:(0,I.jsx)("path",{ | |
| 236 | +d:"M6.99996 13.2708C3.54079 13.2708 0.729126 10.4592 0.729126 6.99999C0.729126 3.54082 3.54079 0.729156 6.99996 0.729156C10.4591 0.729156 13.2708 3.54082 13.2708 6.99999C13.2708 10.4592 10.4591 13.2708 6.99996 13.2708ZM6.99996 1.60416C4.02496 1.60416 1.60413 4.02499 1.60413 6.99999C1.60413 9.97499 4.02496 12.3958 6.99996 12.3958C9.97496 12.3958 12.3958 9.97499 12.3958 6.99999C12.3958 4.02499 9.97496 1.60416 6.99996 1.60416Z"})}),(0,I.jsx)("path",{d:"M6.99996 13.2708C3.54079 13.2708 0.729126 10.4592 0.729126 6.99999C0.729126 3.54082 3.54079 0.729156 6.99996 0.729156C10.4591 0.729156 13.2708 3.54082 13.2708 6.99999C13.2708 10.4592 10.4591 13.2708 6.99996 13.2708ZM6.99996 1.60416C4.02496 1.60416 1.60413 4.02499 1.60413 6.99999C1.60413 9.97499 4.02496 12.3958 6.99996 12.3958C9.97496 12.3958 12.3958 9.97499 12.3958 6.99999C12.3958 4.02499 9.97496 1.60416 6.99996 1.60416Z",fill:"#A7AAAD"}),(0,I.jsx)("path",{ | |
| 237 | 237 | d:"M6.99996 12.2708C4.09308 12.2708 1.72913 9.90687 1.72913 6.99999H-0.270874C-0.270874 11.0114 2.98851 14.2708 6.99996 14.2708V12.2708ZM1.72913 6.99999C1.72913 4.09311 4.09308 1.72916 6.99996 1.72916V-0.270844C2.98851 -0.270844 -0.270874 2.98854 -0.270874 6.99999H1.72913ZM6.99996 1.72916C9.90684 1.72916 12.2708 4.09311 12.2708 6.99999H14.2708C14.2708 2.98854 11.0114 -0.270844 6.99996 -0.270844V1.72916ZM12.2708 6.99999C12.2708 9.90687 9.90684 12.2708 6.99996 12.2708V14.2708C11.0114 14.2708 14.2708 11.0114 14.2708 6.99999H12.2708ZM6.99996 0.604156C3.47267 0.604156 0.604126 3.47271 0.604126 6.99999H2.60413C2.60413 4.57727 4.57724 2.60416 6.99996 2.60416V0.604156ZM0.604126 6.99999C0.604126 10.5273 3.47267 13.3958 6.99996 13.3958V11.3958C4.57724 11.3958 2.60413 9.4227 2.60413 6.99999H0.604126ZM6.99996 13.3958C10.5272 13.3958 13.3958 10.5273 13.3958 6.99999H11.3958C11.3958 9.4227 9.42267 11.3958 6.99996 11.3958V13.3958ZM13.3958 6.99999C13.3958 3.47271 10.5272 0.604156 6.99996 0.604156V2.60416C9.42267 2.60416 11.3958 4.57727 11.3958 6.99999H13.3958Z", |
| 238 | -fill:"#A7AAAD",mask:"url(#path-1-inside-1_3380_808)"}),(0,L.jsx)("mask",{id:"path-3-inside-2_3380_808",fill:"white",children:(0,L.jsx)("path",{d:"M2.85828 11.5208C2.74745 11.5208 2.63662 11.48 2.54912 11.3925C2.37995 11.2233 2.37995 10.9433 2.54912 10.7742L10.7158 2.6075C10.885 2.43833 11.165 2.43833 11.3341 2.6075C11.5033 2.77666 11.5033 3.05666 11.3341 3.22583L3.16745 11.3925C3.07995 11.48 2.96912 11.5208 2.85828 11.5208Z"})}),(0,L.jsx)("path",{d:"M2.85828 11.5208C2.74745 11.5208 2.63662 11.48 2.54912 11.3925C2.37995 11.2233 2.37995 10.9433 2.54912 10.7742L10.7158 2.6075C10.885 2.43833 11.165 2.43833 11.3341 2.6075C11.5033 2.77666 11.5033 3.05666 11.3341 3.22583L3.16745 11.3925C3.07995 11.48 2.96912 11.5208 2.85828 11.5208Z",fill:"#A7AAAD"}),(0,L.jsx)("path",{ | |
| 238 | +fill:"#A7AAAD",mask:"url(#path-1-inside-1_3380_808)"}),(0,I.jsx)("mask",{id:"path-3-inside-2_3380_808",fill:"white",children:(0,I.jsx)("path",{d:"M2.85828 11.5208C2.74745 11.5208 2.63662 11.48 2.54912 11.3925C2.37995 11.2233 2.37995 10.9433 2.54912 10.7742L10.7158 2.6075C10.885 2.43833 11.165 2.43833 11.3341 2.6075C11.5033 2.77666 11.5033 3.05666 11.3341 3.22583L3.16745 11.3925C3.07995 11.48 2.96912 11.5208 2.85828 11.5208Z"})}),(0,I.jsx)("path",{d:"M2.85828 11.5208C2.74745 11.5208 2.63662 11.48 2.54912 11.3925C2.37995 11.2233 2.37995 10.9433 2.54912 10.7742L10.7158 2.6075C10.885 2.43833 11.165 2.43833 11.3341 2.6075C11.5033 2.77666 11.5033 3.05666 11.3341 3.22583L3.16745 11.3925C3.07995 11.48 2.96912 11.5208 2.85828 11.5208Z",fill:"#A7AAAD"}),(0,I.jsx)("path",{ | |
| 239 | 239 | d:"M2.54912 10.7742L1.84201 10.0671H1.84201L2.54912 10.7742ZM10.7158 2.6075L11.4229 3.3146L10.7158 2.6075ZM11.3341 3.22583L10.627 2.51872L11.3341 3.22583ZM3.16745 11.3925L3.87456 12.0996L3.16745 11.3925ZM2.85828 10.5208C2.99835 10.5208 3.1463 10.5755 3.25622 10.6854L1.84201 12.0996C2.12693 12.3845 2.49655 12.5208 2.85828 12.5208V10.5208ZM3.25622 10.6854C3.47758 10.9067 3.47758 11.2599 3.25622 11.4813L1.84201 10.0671C1.28232 10.6267 1.28232 11.5399 1.84201 12.0996L3.25622 10.6854ZM3.25622 11.4813L11.4229 3.3146L10.0087 1.90039L1.84201 10.0671L3.25622 11.4813ZM11.4229 3.3146C11.2015 3.53596 10.8484 3.53596 10.627 3.3146L12.0412 1.90039C11.4815 1.3407 10.5684 1.3407 10.0087 1.90039L11.4229 3.3146ZM10.627 3.3146C10.4057 3.09325 10.4057 2.74008 10.627 2.51872L12.0412 3.93294C12.6009 3.37325 12.6009 2.46008 12.0412 1.90039L10.627 3.3146ZM10.627 2.51872L2.46034 10.6854L3.87456 12.0996L12.0412 3.93294L10.627 2.51872ZM2.46034 10.6854C2.57026 10.5755 2.71821 10.5208 2.85828 10.5208V12.5208C3.22002 12.5208 3.58964 12.3845 3.87456 12.0996L2.46034 10.6854Z", |
| 240 | -fill:"#A7AAAD",mask:"url(#path-3-inside-2_3380_808)"})]}),ks=({label:t="",isGradient:e=!1,attributeName:i="",attributeValue:o,setAttributes:l=Fn,onChangeHandler:n,resetHandler:s,allowGlobalColor:b=!1,showGlobal:c=!0,attributes:d})=>{const{colors:u}=(0,r.useSelect)(t=>t("core/block-editor").getSettings(),[]),[p,m]=(0,a.useState)(!1),[h,g]=(0,a.useState)(null),[f,y]=(0,a.useState)(!1),T=(0,a.useRef)(null),H=(0,a.useRef)(null),x=t=>{n?n(i,t):l({[i]:t})},k=()=>{s?s(i):l({[i]:void 0})},v=(0,fs.Mw)(),_=()=>{v||m(!p)},R=(0,gs.GQ)(o),S=(0,gs.YN)(o),W=R?R?.color:S?(0,gs.Ou)(S.id,M.W0?.global_color):o,U=W?(P=W)?(P.match(/#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgba?\(.*?\)|hsla?\(.*?\)/g)||[]).slice(0,3):["#BE21FF","#736EC8","#29A6FE"]:[];var P;const j=W&&W.startsWith("linear"),w=W&&W.startsWith("radial"),C=W&&W.startsWith("rgba"),A=W&&W.startsWith("hsla"),D=W&&!j&&!w&&!C&&!A,[N,I]=(0,a.useState)(!0),[V,O]=(0,a.useState)(R?.slug||null),[Y,X]=(0,a.useState)(S?.id||null);(0,a.useEffect)(()=>{ | |
| 241 | -const t=u.find(t=>t.color===o);t?(I(!1),O(t.slug||null),X(null)):S?(X(S.id),O(null)):R?(I(!0),O(R.slug),X(null)):(O(null),X(null))},[o,S,R,u]);const B=d?.[i+"Global"];return B&&M.W0?.global_color?.find(t=>t.id===B),(0,L.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[t&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:t,isResponsive:!1})}),(0,L.jsxs)("div",{className:"ablocks-control-color-gradient",ref:T,children:[(0,L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",children:(0,L.jsxs)("div",{className:"ablocks-component-popover__input-wrapper",children:[(0,L.jsx)("input",{type:"text",className:"ablocks-component-popover__input", | |
| 242 | -value:(t=>t?t.startsWith("linear")?"Linear":t.startsWith("radial")?"Radial":t.startsWith("rgba")?"rgba":t.startsWith("hsla")?"hsla":t:"")(W||""),placeholder:(0,z.__)("Add color","ablocks"),readOnly:v,title:v?fs.tN.color:void 0,onChange:t=>{v||(t=>{x(t)})(t.target.value)}}),W&&W.trim()&&(0,L.jsx)("span",{className:"ablocks-component-popover__clear-button",onClick:k,role:"presentation",children:"×"}),(0,L.jsxs)("div",{className:"ablocks-component-popover__color-button"+(v?" ablocks-control--locked":""),title:v?fs.tN.color:void 0,onClick:()=>_(),role:"presentation",children:[j&&(0,L.jsx)(Ts,{colors:U}),w&&(0,L.jsx)(Hs,{colors:U}),D&&(0,L.jsx)(Ms,{color:W}),C&&(0,L.jsx)(Ms,{color:W}),A&&(0,L.jsx)(Ms,{color:W}),!W&&(0,L.jsx)(xs,{})]})]})})}),p&&!v&&(0,L.jsx)(Yt,{FigmaPasterComponent:v?void 0:({position:t="left"})=>(0,L.jsx)(ut,{position:t,figmaPasteBtnClickHandler:t=>{const e=ft(t,"color-gradient");e?((0,M.An)({message:"Color Style Successfully Pasted",config:{ | |
| 243 | -id:"ablocks-notice-figma-paste-success-notice",type:"snackbar"}}),x(e),m(!1),setTimeout(()=>{m(!0)},10)):(0,M.An)({message:"Copy/Paste Failed: Wrong Color Style",config:{id:"ablocks-notice-figma-paste-invalid-color-notice",type:"snackbar"}})}}),className:`ablocks-control-color-gradient-popover ablocks-active-tab-${h}`,label:(0,z.__)("Color","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:k,isVisible:p,toggleVisible:_,anchorRef:T,children:(0,L.jsxs)("div",{className:"ablocks-control--customizable-color-gradient",children:[(0,L.jsx)(hs,{setActiveTab:g,allowGradient:e,value:W||"",onChange:x}),b&&(0,L.jsxs)(L.Fragment,{children:[M.W0?.global_color&&(0,L.jsxs)("div",{className:"ablocks-global-color",children:[(0,L.jsx)("div",{className:"ablocks-global-color-header",children:(0,L.jsx)("p",{className:"ablocks-global-color-list-title",children:"Global"})}),(0,L.jsx)("ul",{className:"ablocks-global-color-list",children:M.W0.global_color.filter(t=>t.value&&t.value.trim()).map((t,e)=>{ | |
| 244 | -const i=Y===t.id;return(0,L.jsx)("li",{className:i?"ablocks-color-selected":"",onClick:()=>{X(t.id),O(null),x(`var:global|${t.value}|${t.id}`)},title:t.label||`Global Color ${e+1}`,children:(0,L.jsx)("span",{style:{background:t.value}})},e)})})]}),(0,L.jsxs)("div",{className:"ablocks-global-color",children:[(0,L.jsxs)("div",{className:"ablocks-global-color-header",children:[(0,L.jsx)("p",{className:"ablocks-global-color-list-title",children:"Theme"}),V&&(0,L.jsxs)("div",{className:"ablocks-global-color-link-wrapper",children:[(0,L.jsx)("p",{className:"ablocks-global-color-link",children:"Link"}),(0,L.jsxs)("label",{className:"ablocks-global-color-switch",children:[(0,L.jsx)("input",{type:"checkbox",checked:N,onChange:t=>{const e=t.target.checked;I(e);const i=u.find(t=>t.slug===V);i&&x(e?`var:preset|${i.color}|${i.slug}`:i.color)}}),(0,L.jsx)("span",{className:"ablocks-global-color-slider"})]})]})]}),(0,L.jsx)("ul",{className:"ablocks-global-color-list",children:u.map((t,e)=>(0, | |
| 245 | -L.jsx)("li",{className:V===t.slug?"ablocks-color-selected":"",onClick:()=>{O(t.slug),X(null);const e=u.find(e=>e.slug===t.slug);e&&x(N?`var:preset|${e.color}|${e.slug}`:e.color)},children:(0,L.jsx)("span",{style:{background:"transparent"===t.slug?"repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 10px 10px":t.color}})},e))})]})]})]})})]}),c&&(0,L.jsx)("span",{role:"button",tabIndex:0,ref:H,className:"ablocks-icon ablocks-icon--globe "+(B||R||S?"active":""),onClick:()=>y(!f)}),c&&f&&(0,L.jsx)(Yt,{label:(0,z.__)("Global Colors","ablocks"),isVisible:f,toggleVisible:y,anchorRef:H,children:(0,L.jsxs)("div",{className:"ablocks-popover__content",children:[(0,L.jsxs)("div",{className:"ablocks-global-color",children:[(0,L.jsx)("div",{className:"ablocks-global-color-header",children:(0,L.jsx)("p",{className:"ablocks-global-color-list-title",children:"Global"})}),(0,L.jsx)("ul",{className:"ablocks-global-color-list", | |
| 246 | -children:M.W0?.global_color?.filter(t=>t.value&&t.value.trim()).map((t,e)=>{const o=B===t.id||S?.id===t.id;return(0,L.jsx)("li",{className:o?"ablocks-color-selected":"",onClick:()=>(t=>{const e=M.W0?.global_color?.find(e=>e.id===t);e&&l({[i]:`var:global|${e.value}|${e.id}`,[i+"Global"]:t}),y(!1)})(t.id),title:t.label||`Global Color ${e+1}`,children:(0,L.jsx)("span",{style:{background:t.value}})},e)})})]}),(0,L.jsxs)("div",{className:"ablocks-global-color",children:[(0,L.jsx)("div",{className:"ablocks-global-color-header",children:(0,L.jsx)("p",{className:"ablocks-global-color-list-title",children:"Theme"})}),(0,L.jsx)("ul",{className:"ablocks-global-color-list",children:u.map((t,e)=>{const o=R?.slug===t.slug;return(0,L.jsx)("li",{className:o?"ablocks-color-selected":"",onClick:()=>{l({[i]:`var:preset|${t.color}|${t.slug}`,[i+"Global"]:""}),y(!1)},title:t.name||t.slug,children:(0,L.jsx)("span",{style:{ | |
| 247 | -background:"transparent"===t.slug?"repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 10px 10px":t.color}})},e)})})]}),!M.W0?.global_color?.length&&!u?.length&&(0,L.jsx)("p",{children:(0,z.__)("No global colors available","ablocks")})]})})]})]})};ks.propTypes=ys;const vs=ks,_s={isResponsive:I().bool,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func,radiusAttributeName:I().string,radiusAttributeValue:I().any,widthAttributeName:I().string,widthAttributeValue:I().any,hasBorderRadius:I().bool,hasTransition:I().bool};function Rs(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,hasBorderRadius:n=!0,hasTransition:s=!0}=t,r=(t,l)=>a({[i]:(0,M.jI)((0,y.tJ)(e),{...o,[l]:t})}),b=t=>a({[i]:(0,M.jI)((0,y.tJ)(e),{...o,[t]:void 0})}),c=o.borderStyle,d=o.borderStyleH,u=()=>(0,L.jsx)(ut,{figmaPasteBtnClickHandler:t=>{const e=ft(t,"border");Object.values(e||{}).some(t=>t)?(a({[i]:e}),(0,M.An)({message:"border Style Successfully Pasted",config:{ | |
| 248 | -id:"ablocks-notice-figma-paste-margin-padding-success-notice",type:"snackbar"}})):(0,M.An)({message:"Copy/Paste Failed: Wrong border style",config:{id:"ablocks-notice-figma-paste-margin-padding-error-notice",type:"snackbar"}})}});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-border-control",children:[(0,L.jsx)(u,{}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Border Style","ablocks"),options:y.CI,isResponsive:!1,attributeObjectKey:"borderStyle",attributeValue:o,attributeName:i,setAttributes:a}),"none"!==c&&"default"!==c&&c&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ablocks-border-control__options",children:(0,L.jsx)(Mt,{label:(0,z.__)("Width","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"Width",onChangeHandler:r})}),(0,L.jsx)(vs,{label:(0,z.__)("Border color","ablocks"),attributeName:"borderColor",attributeValue:o.borderColor, | |
| 249 | -onChangeHandler:(t,e)=>r(e,t),resetHandler:b,setAttributes:t=>{a({[i]:{...o,...t}})}})]}),n&&(0,L.jsx)(Mt,{label:(0,z.__)("Border Radius","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"Radius",onChangeHandler:r})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Border Style","ablocks"),options:y.CI,isResponsive:!1,attributeObjectKey:"borderStyleH",attributeValue:o,setAttributes:a,attributeName:i}),"none"!==d&&"default"!==d&&d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ablocks-border-control__options",children:(0,L.jsx)(Mt,{label:(0,z.__)("Width","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"WidthH",onChangeHandler:r})}),(0,L.jsx)(vs,{label:(0,z.__)("Border color","ablocks"),attributeName:"borderColorH",attributeValue:o.borderColorH,onChangeHandler:(t,e)=>r(e,t),resetHandler:b,setAttributes:t=>{a({[i]:{...o,...t}})}})]}),n&&(0, | |
| 250 | -L.jsx)(Mt,{label:(0,z.__)("Border Radius","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"RadiusH",onChangeHandler:r}),s&&(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:o?.transitionDuration||0,setAttributes:a,onChangeHandler:r,attributeObjectKey:"transitionDuration"})]})})]})})}Rs.propTypes=_s;const Ss={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any,setAttributes:I().func},Ws=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a}=t,n=at(),s=(0,m.tJ)(e),r=(t,e="")=>a({[i]:(0,M.jI)(s,{...o,[e]:t})}),b=o.positionType;let c,d;return"px"!==o["unit"+n]&&void 0!==o["unit"+n]||(c=1e3),"%"!==o["unit"+n]&&"vw"!==o["unit"+n]&&"vh"!==o["unit"+n]||(c=200),"rem"!==o["unit"+n]&&"em"!==o["unit"+n]||(c=10),"px"!==o["unit"+n]&&void 0!==o["unit"+n]||(d=-1e3), | |
| 251 | -"%"!==o["unit"+n]&&"vw"!==o["unit"+n]&&"vh"!==o["unit"+n]||(d=-200),"rem"!==o["unit"+n]&&"em"!==o["unit"+n]||(d=0),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-position-control",children:[(0,L.jsx)(Ut,{label:(0,z.__)("Position","ablocks"),options:m.vO,isResponsive:!1,attributeObjectKey:"positionType",attributeValue:o,attributeName:i,setAttributes:a}),"relative"!==b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Horizontal Orientation","ablocks"),attributeObjectKey:"hOrientation",options:m.Jk,attributeValue:o,isInline:!1,onChangeHandler:r}),(0,L.jsx)("div",{className:"ablocks-position-control__offset",children:(0,L.jsx)(vt,{...t,hasUnit:!0,isInline:!1,min:d,max:c,onChangeHandler:r,label:(0,z.__)("Offset X","ablocks"),attributeObjectKey:"hOffset",attributeDefaultValue:s,autoSyncRange:!1})}),(0,L.jsx)(Kt,{label:(0,z.__)("Vertical Orientation","ablocks"),attributeObjectKey:"vOrientation",options:m.p1,attributeValue:o,isInline:!1,onChangeHandler:r | |
| 252 | -}),(0,L.jsx)("div",{className:"ablocks-position-control__offset",children:(0,L.jsx)(vt,{...t,hasUnit:!0,isInline:!1,min:d,max:c,onChangeHandler:r,label:(0,z.__)("Offset Y","ablocks"),attributeObjectKey:"vOffset",attributeDefaultValue:s,autoSyncRange:!1})})]})]})})};Ws.propTypes=Ss;const Us=Ws,Ps={label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func,placeholder:I().string,isInline:I().bool,min:I().number,max:I().number,step:I().number,disableDynamicContent:I().bool,dynamicType:I().string};function js(t){const{label:e="",placeholder:i="",attributeName:o={},attributeValue:a="",disableDynamicContent:n=!0,setAttributes:r,onChangeHandler:b,isInline:c=!0,min:d,max:u,step:p,dynamicType:m="text",attributeObjectValue:h}=t,g=Bl({disableDynamicContent:n,attributeName:o,attributeValue:a,setAttributes:r,dynamicType:m,attributeObjectValue:h});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:s()("ablocks-control ablocks-control--number",{ | |
| 253 | -"ablocks-control--inline":c}),children:[(0,L.jsx)(ot,{label:e,isResponsive:!1,affordance:g.affordance}),g.field||(0,L.jsx)(A.TextControl,{className:"ablocks-control--number",value:a,onChange:t=>{var e;e=Number(t),b?b(e):(t=>{r({[o]:t})})(e)},placeholder:i,type:"number",min:d,max:u,step:p})]})})}js.propTypes=Ps;const ws={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func},zs=t=>{const{label:e="",isResponsive:i=!0,attributeName:o,attributeValue:a,setAttributes:n,onChangeHandler:s}=t,r=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-control ablocks-control--zindex ablocks-control--inline",children:[(0,L.jsx)("div",{className:"ablocks-control__head",children:e&&(0,L.jsx)(ot,{label:e,isResponsive:i})}),(0,L.jsx)("div",{className:"ablocks-control__fields",children:(0,L.jsx)(js,{attributeValue:a["zIndex"+r],onChangeHandler:t=>((t,e)=>{s?s(t,e,(0,h.tJ)(i)):((t,e)=>{n(i?{[o]:(0,M.jI)((0,h.tJ)(i),{...a, | |
| 254 | -["zIndex"+e]:t})}:{[o]:t})})(t,e)})(t,r)})})]})})};zs.propTypes=ws;const Cs=zs;function As(t){const{attributeValue:e,attributeObjectKey:i,onSelectImageHandler:o,onRemoveImageHandler:a,deviceType:l="",disableDynamicContent:n,attributeName:s,attributeObjectValue:r,setAttributes:b,dynamicType:c="image"}=t,d=i||s;let u;const p=e[d+l]||e[d],m=e[d+l]||"Mobile"===l&&(e[d+"Mobile"]||e[d+"Tablet"])||e[d],h=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.MediaUpload,{allowedTypes:["image"],value:null,onSelect:t=>{o(t,l)},render:({open:t})=>(0,L.jsx)("div",{className:"ablocks-background-image--upload__replace",children:(0,L.jsx)(V,{onClick:t,label:(0,z.__)("Replace Image","ablocks"),isShowPrimaryLabel:!0})})}),(0,L.jsx)("div",{className:"ablocks-delete-icon-wrapper",children:(0,L.jsx)(V,{onClick:()=>a(),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})})]});return u=p?(0,L.jsxs)("div",{className:"ablocks-image-wrapper",children:[(0,L.jsx)("img",{src:m,alt:(0, | |
| 255 | -z.__)("Preview","ablocks"),className:"ablocks-image"}),h]}):(0,L.jsx)(C.MediaUpload,{allowedTypes:["image"],value:d+l,onSelect:t=>{o(t,l)},render:({open:t})=>(0,L.jsxs)("div",{className:"ablocks-placeholder-image-wrapper",children:[(0,L.jsx)("img",{className:"ablocks-placeholder-image",src:M.hq+"/assets/images/placeholder-image.svg",alt:""}),(0,L.jsx)("div",{className:"ablocks-background-image--upload__replace",children:(0,L.jsx)(V,{onClick:t,label:(0,z.__)("Choose Image…","ablocks"),isShowPrimaryLabel:!0})})]})}),(0,L.jsx)("div",{className:"ablocks-media-upload-field-wrapper",children:(0,L.jsx)(El,{attributeName:s,disableDynamicContent:n,attributeObjectKey:i,attributeValue:e,setAttributes:b,dynamicType:c,attributeObjectValue:r,children:u})})}const Ls=[{label:"Default",value:"default"},{label:"Full",value:"100%"},{label:"Large",value:"1024px"},{label:"Medium",value:"300px"},{label:"Thumbnail",value:"150px"}],Ds=[{label:"Default",value:"default"},{label:"Center",value:"center"},{ | |
| 256 | -label:"Center Left",value:"center left"},{label:"Center Right",value:"center right"},{label:"Top Center",value:"top center"},{label:"Top Left",value:"top left"},{label:"Top Right",value:"top right"},{label:"Bottom center",value:"bottom center"},{label:"Bottom left",value:"bottom left"},{label:"Bottom Right",value:"bottom right"},{label:"Custom",value:"custom"}],Ns=[{label:"Default",value:"default"},{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"}],Is=[{label:"Default",value:"default"},{label:"No repeat",value:"no-repeat"},{label:"Repeat",value:"repeat"},{label:"Repeat x",value:"repeat-x"},{label:"Repeat y",value:"repeat-y"}],Vs=[{label:"Default",value:"default"},{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"Custom",value:"custom"}],Os={attributeValue:I().object,changeHandler:I().func,isResponsive:I().bool,hover:I().bool,onChangeHandler:I().func,onSelectImageHandler:I().func,onRemoveImageHandler:I().func, | |
| 257 | -setAttributes:I().func.isRequired,disableDynamicContent:I().bool};function Ys(t){const{attributeValue:e,isResponsive:i,hover:o,attributeName:a,changeHandler:n,onSelectImageHandler:s,onRemoveImageHandler:r,setAttributes:b,disableDynamicContent:c=!1}=t,d=at(),u={...t},p=t=>(t=>{switch(t){case"px":default:return 1e3;case"%":case"em":return 100;case"rem":return 50}})(e[t]),m=t=>o?`${t}H`:t;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Image","ablocks"),isResponsive:i}),(0,L.jsx)(As,{setAttributes:b,allowedTypes:["image"],attributeValue:e,deviceType:d,onSelectImageHandler:s,onRemoveImageHandler:r,attributeName:a,attributeObjectKey:m("imgUrl"),disableDynamicContent:c}),e[m("imgUrl")]&&(0,L.jsxs)("div",{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Image Size","ablocks"),options:Ls,isSearch:!0,isResponsive:i,attributeValue:e,attributeObjectKey:m("imgSize"),attributeName:a,setAttributes:b}),(0,L.jsx)(Ut,{label:(0,z.__)("Position","ablocks"),options:Ds,isResponsive:!0, | |
| 258 | -attributeValue:e,attributeObjectKey:m("imgPosition"),attributeName:a,setAttributes:b}),"custom"===e[m("imgPosition")+d]&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{...u,label:"X position",min:-500,max:p(m("imgXPosition")+"Unit"),step:1,hasUnit:!0,isInline:!1,onChangeHandler:n,attributeObjectKey:m("imgXPosition")}),(0,L.jsx)(vt,{...u,label:"Y position",min:-500,max:p(m("imgYPosition")+"Unit"),step:1,hasUnit:!0,isInline:!1,onChangeHandler:n,attributeObjectKey:m("imgYPosition")})]}),(0,L.jsx)(Ut,{label:(0,z.__)("Attachment","ablocks"),options:Ns,isResponsive:!1,attributeValue:e,attributeObjectKey:m("imgAttachment"),attributeName:a,setAttributes:b}),(0,L.jsx)(Ut,{label:(0,z.__)("Repeat","ablocks"),options:Is,isResponsive:!0,attributeValue:e,attributeObjectKey:m("imgRepeat"),attributeName:a,setAttributes:b}),(0,L.jsx)(Ut,{label:(0,z.__)("Display size","ablocks"),options:Vs,isResponsive:!0,attributeValue:e,attributeObjectKey:m("imgDisplaySize"),attributeName:a,setAttributes:b | |
| 259 | -}),"custom"===e[m("imgDisplaySize")+d]&&(0,L.jsx)(vt,{...u,label:"Width",min:0,max:p(m("imgDisplaySizeWidth")+"Unit"),hasUnit:!0,isInline:!1,onChangeHandler:n,attributeObjectKey:m("imgDisplaySizeWidth")})]})]})}function Xs(t){const{attributeName:e,setAttributes:i,attributeValue:o,isResponsive:a,hover:l,deviceType:n}=t,s={...t};return(0,L.jsx)(Ys,{...s,disableDynamicContent:!0,onSelectImageHandler:(t,n)=>{const s={};n?"Tablet"===n?(s[l?"imgIdHTablet":"imgIdTablet"]=t?.id,s[l?"imgUrlHTablet":"imgUrlTablet"]=t?.url):"Mobile"===n&&(s[l?"imgIdHMobile":"imgIdMobile"]=t?.id,s[l?"imgUrlHMobile":"imgUrlMobile"]=t?.url):(s[l?"imgIdH":"imgId"]=t?.id,s[l?"imgUrlH":"imgUrl"]=t?.url),i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,...s})})},onRemoveImageHandler:()=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,[l?"imgIdH"+n:"imgId"+n]:void 0,[l?"imgUrlH"+n:"imgUrl"+n]:void 0})})}})}function Bs(t){const{attributeName:e,attributeValue:i,setAttributes:o,changeHandler:a}=t;return(0,L.jsxs)("div",{ | |
| 260 | -className:"ablocks-control--background__video--upload",children:[(0,L.jsx)(ql,{label:(0,z.__)("Start","ablocks"),placeholder:"",attributeValue:i?.videoStartTime,attributeName:e,setAttributes:o,onChangeHandler:t=>a(t,"videoStartTime")}),(0,L.jsx)("span",{className:"ablocks-control--background__video--upload__description",children:(0,z.__)("Specify a start time (in seconds)","ablocks")}),"vimeo"!==i?.videoSource&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("End","ablocks"),placeholder:"",attributeValue:i?.videoEndTime,attributeName:e,setAttributes:o,onChangeHandler:t=>a(t,"videoEndTime")}),(0,L.jsx)("span",{className:"ablocks-control--background__video--upload__description",children:(0,z.__)("Specify a end time (in seconds)","ablocks")})]})]})}function Es(t){const{attributeValue:e,onSelectFallbackImageHandler:i,onRemoveFallbackImageHandler:o,setAttributes:a}=t,l=at();return(0,L.jsxs)("div",{className:"ablocks-control--background__video--fallback",children:[(0, | |
| 261 | -L.jsx)("p",{children:(0,z.__)("Background fallback","ablocks")}),(0,L.jsx)(As,{setAttributes:a,allowedTypes:["image"],attributeValue:e,deviceType:l,onSelectImageHandler:i,onRemoveImageHandler:o,attributeName:"fallbackImageUrl"}),(0,L.jsx)("span",{className:"ablocks-control--background__video--fallback__description",children:(0,z.__)("This cover image will replace the background video in case that the video could not be loaded","ablocks")})]})}function Fs(t){const{onChangeHandler:e,isBackgroundControl:i}=t,o={...t};return i?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ablocks-control--background__video--options",children:[(0,L.jsx)("p",{children:(0,z.__)("Play once","ablocks")}),(0,L.jsx)(Vt,{...o,onChangeHandler:e,attributeObjectKey:"videoPlayOnce"})]}),(0,L.jsxs)("div",{className:"ablocks-control--background__video--options",children:[(0,L.jsx)("p",{children:(0,z.__)("Privacy mode","ablocks")}),(0,L.jsx)(Vt,{...o,onChangeHandler:e,attributeObjectKey:"videoPrivacyMode" | |
| 262 | -})]})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{children:(0,z.__)("Autoplay","ablocks")}),(0,L.jsx)(Vt,{...o,onChangeHandler:e,attributeObjectKey:"videoAutoPlay"})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{children:(0,z.__)("Mute","ablocks")}),(0,L.jsx)(Vt,{...o,onChangeHandler:e,attributeObjectKey:"videoMute"})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{children:(0,z.__)("Loop","ablocks")}),(0,L.jsx)(Vt,{...o,onChangeHandler:e,attributeObjectKey:"videoLoop"})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{children:(0,z.__)("Player controls","ablocks")}),(0,L.jsx)(Vt,{...o,onChangeHandler:e,attributeObjectKey:"videoPlayerControls"})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{children:(0,z.__)("Download button","ablocks")}),(0,L.jsx)(Vt,{...o,onChangeHandler:e,attributeObjectKey:"videoDownloadButton"})]})]})}function qs(t){const{allowedTypes:e,attributeValue:i,attributeName:o,onSelectImageHandler:a,onRemoveImageHandler:l,deviceType:n=""}=t | |
| 263 | -;let s;const r=i[o+n]||i[o],b=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.MediaUpload,{allowedTypes:e,value:null,onSelect:t=>{a(t)},render:({open:t})=>(0,L.jsx)("div",{className:"ablocks-background-video--upload__replace",children:(0,L.jsx)(V,{onClick:t,label:(0,z.__)("Replace Video","ablocks"),isShowPrimaryLabel:!0})})}),(0,L.jsx)(V,{onClick:()=>l(),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})]});return s=r?(0,L.jsxs)("div",{className:"ablocks-video-wrapper",children:[(0,L.jsx)("video",{src:r,className:"ablocks-video"}),b]}):(0,L.jsx)(C.MediaUpload,{allowedTypes:e,value:o+n,onSelect:t=>{a(t)},render:({open:t})=>(0,L.jsxs)("div",{className:"ablocks-placeholder-video-wrapper",children:[(0,L.jsx)("img",{className:"ablocks-placeholder-image",src:M.hq+"/assets/images/placeholder-image.svg",alt:""}),(0,L.jsx)("div",{className:"ablocks-background-video--upload__replace",children:(0,L.jsx)(V,{onClick:t,label:(0,z.__)("Choose Video…","ablocks"), | |
| 264 | -isShowPrimaryLabel:!0})})]})}),s}Ys.propTypes=Os;const $s=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Vimeo","ablocks"),value:"vimeo"},{label:(0,z.__)("Youtube","ablocks"),value:"youtube"},{label:(0,z.__)("Self hosted","ablocks"),value:"selfHosted"}];function Gs(t){const{attributeValue:e,setAttributes:i,attributeName:o,changeHandler:a,onSelectVideoHandler:l,onRemoveVideoHandler:n}=t,s=at(),{youtubeURL:r="",vimeoURL:b=""}=e;return(0,L.jsxs)("div",{className:"ablocks-control--background__video",children:[(0,L.jsx)(Ut,{label:(0,z.__)("Source","ablocks"),options:$s,isResponsive:!1,attributeValue:e,attributeObjectKey:"videoSource",attributeName:o,setAttributes:i}),"youtube"===e?.videoSource&&(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:r,attributeName:o,setAttributes:i,onChangeHandler:t=>a(t,"youtubeURL")}),"vimeo"===e?.videoSource&&(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:b,attributeName:o, | |
| 265 | -setAttributes:i,onChangeHandler:t=>a(t,"vimeoURL")}),"selfHosted"===e?.videoSource&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ablocks-control--background__video--external--link",children:[(0,L.jsx)("p",{children:(0,z.__)("External link","ablocks")}),(0,L.jsx)(Vt,{isResponsive:!0,attributeValue:e?.externalLink,setAttributes:i,onChangeHandler:t=>a(t,"externalLink")})]}),e?.externalLink?(0,L.jsx)("div",{children:(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:e?.selfHostedURL,attributeName:o,setAttributes:i,onChangeHandler:t=>a(t,"selfHostedURL")})}):(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{children:(0,z.__)("Video","ablocks")}),(0,L.jsx)(qs,{allowedTypes:["video"],attributeValue:e,deviceType:s,onSelectImageHandler:l,onRemoveImageHandler:n,attributeName:"videoUrl"})]})]})]})}const Zs={changeHandler:I().func,onSelectVideoHandler:I().func,onRemoveVideoHandler:I().func,onSelectFallbackImageHandler:I().func, | |
| 266 | -onRemoveFallbackImageHandler:I().func,isBackgroundControl:I().bool,attributeName:I().string,attributeValue:I().object,setAttributes:I().func};function Ks(t){const{changeHandler:e,onSelectVideoHandler:i,onRemoveVideoHandler:o,onSelectFallbackImageHandler:a,onRemoveFallbackImageHandler:l,isBackgroundControl:n}=t,s={...t};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Gs,{...s,changeHandler:e,onSelectVideoHandler:i,onRemoveVideoHandler:o}),s?.attributeValue?.videoSource&&"none"!==s?.attributeValue?.videoSource&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Bs,{...s}),(0,L.jsx)(Fs,{...s,isBackgroundControl:n})]}),(0,L.jsx)(Es,{...s,onSelectFallbackImageHandler:a,onRemoveFallbackImageHandler:l})]})}function Js(t){const{attributeName:e,setAttributes:i,attributeValue:o,isResponsive:a}=t,l={...t};return(0,L.jsx)(Ks,{...l,onSelectVideoHandler:t=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,videoUrl:t?.url})})},onRemoveVideoHandler:()=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,videoUrl:void 0})})}, | |
| 267 | -onSelectFallbackImageHandler:t=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,fallbackImageUrl:t?.url})})},onRemoveFallbackImageHandler:()=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,fallbackImageUrl:void 0})})},isBackgroundControl:!0})}function Qs(t){const{hover:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l}=t;let n="backgroundColor";return e&&(n="backgroundColorH"),(0,L.jsx)(vs,{isGradient:!0,label:(0,z.__)("Background color","ablocks"),attributeName:n,attributeValue:i[n],onChangeHandler:(t,e)=>{o(e,t)},resetHandler:()=>{const t={...i};delete t[n],delete t[n+"Global"],l({[a]:t})},setAttributes:t=>{const e={...t};delete e[n+"Global"],l({[a]:{...i,...e}})}})}Ks.propTypes=Zs;const tr=t=>{const{setAttributes:e,attributeValue:i,hover:o,changeHandler:a,isContainer:l}=t,n={...t};return(0,L.jsxs)("div",{className:"ablocks-control--backgroundOverlay-all-options-wrapper ablocks-control--backgroundOverlay-all-options-wrapper-"+(o?"hover":"normal"),children:[!o&&(0,L.jsxs)(L.Fragment,{ | |
| 268 | -children:[(0,L.jsx)(Kt,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isInline:!0,options:l?d.yP:d.B2,attributeName:o?"backgroundTypeH":"backgroundType",attributeValue:i?.[o?"backgroundTypeH":"backgroundType"],setAttributes:e,attributeObjectKey:o?"backgroundTypeH":"backgroundType",onChangeHandler:a}),"color"===i?.backgroundType&&(0,L.jsx)(Qs,{...n}),"image"===i?.backgroundType&&(0,L.jsx)(Xs,{...n}),"video"===i?.backgroundType&&1==l&&(0,L.jsx)(Js,{...n,changeHandler:a})]}),o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isInline:!0,options:l?d.B2:d.yP,attributeName:o?"backgroundTypeH":"backgroundType",attributeValue:i?.[o?"backgroundTypeH":"backgroundType"],setAttributes:e,attributeObjectKey:o?"backgroundTypeH":"backgroundType",onChangeHandler:a}),"color"===i?.backgroundTypeH&&(0,L.jsx)(Qs,{...n,hover:o}),"image"===i?.backgroundTypeH&&(0,L.jsx)(Xs,{...n,hover:o}),(0,L.jsx)(vt,{label:(0, | |
| 269 | -z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:i?.transitionDuration||0,attributeObjectKey:"transitionDuration",setAttributes:e,onChangeHandler:a})]})]})},er={isResponsive:I().bool,attributeName:I().string,attributeValue:I().any,setAttributes:I().func};function ir(t){const{attributeName:e,attributeValue:i,setAttributes:o,isResponsive:a=!0}=t,l=at(),n=(0,d.tJ)(a),s=(t,l,n="")=>o(a?{[e]:(0,M.jI)((0,d.tJ)(a),{...i,[l+n]:t})}:{[e]:{[l]:t}}),r=(t,a)=>o({[e]:(0,M.jI)(n,{...i,[a]:t})});return(0,L.jsx)("div",{className:"ablocks-control ablocks-control--background",children:(0,L.jsx)(Ct,{normal:(0,L.jsx)(tr,{...t,deviceType:l,changeHandler:s,onChangeHandler:r,isContainer:t.isContainer}),hover:(0,L.jsx)(tr,{...t,hover:!0,deviceType:l,changeHandler:s,onChangeHandler:r})})})}function or(t){const{hover:e}=t;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{...t,min:0,max:5,step:.01,hasUnit:!1,isInline:!1,label:(0, | |
| 270 | -z.__)("Blur","ablocks"),attributeObjectKey:e?"blurH":"blur"}),(0,L.jsx)(vt,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,z.__)("Brightness","ablocks"),attributeObjectKey:e?"brightnessH":"brightness"}),(0,L.jsx)(vt,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,z.__)("Contrast","ablocks"),attributeObjectKey:e?"contrastH":"contrast"}),(0,L.jsx)(vt,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,z.__)("Saturate","ablocks"),attributeObjectKey:e?"saturateH":"saturate"}),(0,L.jsx)(vt,{...t,min:0,max:360,step:1,hasUnit:!1,isInline:!1,label:(0,z.__)("Hue","ablocks"),attributeObjectKey:e?"hueH":"hue"})]})}function ar(t){const{hover:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l}=t;let n="backgroundColor";return e&&(n="backgroundColorH"),(0,L.jsx)(vs,{isGradient:!0,label:(0,z.__)("Background color","ablocks"),attributeName:n,attributeValue:i[n],onChangeHandler:(t,e)=>{o(e,t)},resetHandler:()=>{const t={...i};delete t[n], | |
| 271 | -delete t[n+"Global"],l({[a]:t})},setAttributes:t=>{const e={...t};delete e[n+"Global"],l({[a]:{...i,...e}})}})}ir.propTypes=er;const lr=t=>{const{setAttributes:e,attributeName:i,attributeValue:o,hover:l,isResponsive:n=!1,deviceType:s}=t,[r,b]=(0,a.useState)(!1),c=({toggleVisible:t,isVisible:e})=>(0,L.jsx)(V,{onClick:()=>t(!e),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent"}),d={...t},p=(t,a)=>{const s={};a?"Tablet"===a?(s[l?"imgIdHTablet":"imgIdTablet"]=t?.id,s[l?"imgUrlHTablet":"imgUrlTablet"]=t?.url):"Mobile"===a&&(s[l?"imgIdHMobile":"imgIdMobile"]=t?.id,s[l?"imgUrlHMobile":"imgUrlMobile"]=t?.url):(s[l?"imgIdH":"imgId"]=t?.id,s[l?"imgUrlH":"imgUrl"]=t?.url),e({[i]:(0,M.jI)((0,u.tJ)(n),{...o,...s})})},m=()=>{e({[i]:(0,M.jI)((0,u.tJ)(n),{...o,[l?"imgIdH"+s:"imgId"+s]:void 0,[l?"imgUrlH"+s:"imgUrl"+s]:void 0})})},h=()=>{e({[i]:(0,M.jI)((0,u.tJ)(n),{...o,[l?"blurH":"blur"]:0,[l?"brightnessH":"brightness"]:100,[l?"contrastH":"contrast"]:100, | |
| 272 | -[l?"saturateH":"saturate"]:100,[l?"hueH":"hue"]:0})})};return(0,L.jsxs)("div",{className:"ablocks-control--backgroundOverlay-all-options-wrapper ablocks-control--backgroundOverlay-all-options-wrapper-"+(l?"hover":"normal"),children:[(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),options:u.xW,isResponsive:!1,attributeValue:o,attributeObjectKey:l?"backgroundOverlayTypeH":"backgroundOverlayType",attributeName:i,setAttributes:e}),"color"===o?.backgroundOverlayType&&!l&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ar,{...d}),(0,L.jsx)(vt,{...d,label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacity",attributeDefaultValue:u.ke}),(0,L.jsx)(Ut,{label:(0,z.__)("Blend mode","ablocks"),options:u.hP,isResponsive:!1,attributeValue:o,attributeObjectKey:"blendMode",attributeName:i,setAttributes:e}),(0,L.jsx)(Yt,{isShowPrimaryLabel:!0,label:(0,z.__)("CSS Filters"),CustomToggler:c,isVisible:r,isReset:!0,handleReset:h,toggleVisible:b,children:(0,L.jsx)(or,{...d, | |
| 273 | -hover:l,deviceType:s})})]}),"image"===o?.backgroundOverlayType&&!l&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ys,{...d,onSelectImageHandler:p,onRemoveImageHandler:m}),o?.imgUrl&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{...d,label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacity",attributeDefaultValue:u.ke}),(0,L.jsx)(Ut,{label:(0,z.__)("Blend mode","ablocks"),options:u.hP,isResponsive:!1,attributeValue:o,attributeObjectKey:"blendMode",attributeName:i,setAttributes:e}),(0,L.jsx)(Yt,{isShowPrimaryLabel:!0,label:(0,z.__)("CSS Filters"),CustomToggler:c,isReset:!0,handleReset:h,isVisible:r,toggleVisible:b,children:(0,L.jsx)(or,{...d,hover:l,deviceType:s})})]})]}),"color"===o?.backgroundOverlayTypeH&&l&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ar,{...d}),(0,L.jsx)(vt,{...d,label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacityH",attributeDefaultValue:u.md}),(0,L.jsx)(Yt,{isShowPrimaryLabel:!0, | |
| 274 | -label:(0,z.__)("CSS Filters"),CustomToggler:c,isReset:!0,handleReset:h,isVisible:r,toggleVisible:b,children:(0,L.jsx)(or,{...d,hover:l,deviceType:s})})]}),"image"===o?.backgroundOverlayTypeH&&l&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ys,{...d,onSelectImageHandler:p,onRemoveImageHandler:m}),o?.imgUrlH&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{...d,label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacityH",attributeDefaultValue:u.md}),(0,L.jsx)(Yt,{isShowPrimaryLabel:!0,label:(0,z.__)("CSS Filters"),CustomToggler:c,isReset:!0,handleReset:h,isVisible:r,toggleVisible:b,children:(0,L.jsx)(or,{...d,hover:l,deviceType:s})})]})]}),l&&(0,L.jsx)(vt,{...d,label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,isInline:!1,attributeObjectKey:"transitionDuration"})]})},nr={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any};function sr(t){ | |
| 275 | -const{attributeName:e,attributeValue:i,setAttributes:o,isResponsive:a=!0}=t,l=at(),n=(t,l,n="")=>o({[e]:(0,M.jI)((0,u.tJ)(a),{...i,[l+n]:t})});return(0,L.jsx)("div",{className:"ablocks-control ablocks-control--backgroundOverlay",children:(0,L.jsx)(Ct,{normal:(0,L.jsx)(lr,{...t,deviceType:l,changeHandler:n}),hover:(0,L.jsx)(lr,{...t,hover:!0,deviceType:l,changeHandler:n})})})}sr.propTypes=nr;const rr=[{value:"contain",label:(0,z.__)("Fit","ablocks")},{value:"cover",label:(0,z.__)("Fill","ablocks")},{value:"custom",label:(0,z.__)("Custom","ablocks")}],br=t=>{const{deviceType:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l,attributeDefaultValue:n}=t;let s=500;return"px"===i["scaleUnit"+e]&&(s=500),"%"===i["scaleUnit"+e]&&(s=200),"em"!==i["scaleUnit"+e]&&"vw"!==i["scaleUnit"+e]||(s=100),"rem"===i["scaleUnit"+e]&&(s=10),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{options:rr,isResponsive:!0,attributeValue:i,label:(0,z.__)("Size","ablocks"),attributeName:a, | |
| 276 | -attributeObjectKey:"maskSize",setAttributes:l}),"custom"===i["maskSize"+e]&&(0,L.jsx)("div",{className:"ablocks-mask-control__size",children:(0,L.jsx)(vt,{...t,label:(0,z.__)("Scale","ablocks"),min:0,max:s,hasUnit:!0,isInline:!1,onChangeHandler:o,attributeObjectKey:"scale",attributeDefaultValue:n})})]})},cr=[{value:"circle",label:(0,z.__)("Circle","ablocks")},{value:"flower",label:(0,z.__)("Flower","ablocks")},{value:"sketch",label:(0,z.__)("Sketch","ablocks")},{value:"triangle",label:(0,z.__)("Triangle","ablocks")},{value:"blob",label:(0,z.__)("Blob","ablocks")},{value:"custom",label:(0,z.__)("Custom","ablocks")}],dr=t=>{const{deviceType:e,attributeValue:i,isResponsive:o,attributeName:a,setAttributes:l}=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{options:cr,isResponsive:!1,attributeValue:i,label:(0,z.__)("Shape","ablocks"),attributeName:a,attributeObjectKey:"maskShape",setAttributes:l}),"custom"===i.maskShape&&(0,L.jsx)(As,{setAttributes:l,allowedTypes:["image"], | |
| 277 | -attributeValue:i,attributeName:a,attributeObjectKey:"customMaskShape",onSelectImageHandler:t=>{l({[a]:(0,M.jI)((0,T.tJ)(o),{...i,customMaskShape:t?.url})})},onRemoveImageHandler:()=>{l({[a]:(0,M.jI)((0,T.tJ)(o),{...i,customMaskShape:void 0})})}})]})},ur=[{value:"center center",label:(0,z.__)("Center Center","ablocks")},{value:"center left",label:(0,z.__)("Center Left","ablocks")},{value:"center right",label:(0,z.__)("Center Right","ablocks")},{value:"top center",label:(0,z.__)("Top Center","ablocks")},{value:"top left",label:(0,z.__)("Top Left","ablocks")},{value:"top right",label:(0,z.__)("Top Right","ablocks")},{value:"bottom center",label:(0,z.__)("Bottom Center","ablocks")},{value:"bottom left",label:(0,z.__)("Bottom Left","ablocks")},{value:"bottom right",label:(0,z.__)("Bottom Right","ablocks")},{value:"custom",label:(0,z.__)("Custom","ablocks")}],pr=t=>{const{deviceType:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l,attributeDefaultValue:n}=t;let s,r,b,c | |
| 278 | -;return"px"===i["xPositionUnit"+e]&&(s=500),"em"!==i["xPositionUnit"+e]&&"vw"!==i["scaleUnit"+e]&&"%"!==i["xPositionUnit"+e]||(s=100),"rem"===i["xPositionUnit"+e]&&(s=10),"px"===i["xPositionUnit"+e]&&(r=-500),"em"!==i["xPositionUnit"+e]&&"vw"!==i["scaleUnit"+e]&&"%"!==i["xPositionUnit"+e]||(r=-100),"rem"===i["xPositionUnit"+e]&&(r=0),"px"===i["yPositionUnit"+e]&&(b=500),"em"!==i["yPositionUnit"+e]&&"vw"!==i["scaleUnit"+e]&&"%"!==i["yPositionUnit"+e]||(b=100),"rem"===i["yPositionUnit"+e]&&(b=10),"px"===i["yPositionUnit"+e]&&(c=-500),"em"!==i["yPositionUnit"+e]&&"vw"!==i["scaleUnit"+e]&&"%"!==i["yPositionUnit"+e]||(c=-100),"rem"===i["yPositionUnit"+e]&&(c=-10),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Position","ablocks"),options:ur,isResponsive:!0,attributeValue:i,attributeObjectKey:"maskPosition",attributeName:a,setAttributes:l}),"custom"===i["maskPosition"+e]&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ablocks-mask-control__position",children:(0, | |
| 279 | -L.jsx)(vt,{...t,label:(0,z.__)("X Position","ablocks"),min:r,max:s,hasUnit:!0,isInline:!1,onChangeHandler:o,attributeObjectKey:"xPosition",attributeDefaultValue:n})}),(0,L.jsx)("div",{className:"ablocks-mask-control__position",children:(0,L.jsx)(vt,{...t,label:(0,z.__)("Y Position","ablocks"),min:c,max:b,hasUnit:!0,isInline:!1,onChangeHandler:o,attributeObjectKey:"yPosition",attributeDefaultValue:n})})]})]})},mr=[{value:"repeat-x",label:(0,z.__)("Repeat-x","ablocks")},{value:"repeat-y",label:(0,z.__)("Repeat-y","ablocks")},{value:"repeat",label:(0,z.__)("Repeat","ablocks")},{value:"space",label:(0,z.__)("Space","ablocks")},{value:"round",label:(0,z.__)("Round","ablocks")},{value:"no-repeat",label:(0,z.__)("No-repeat","ablocks")}],hr=function(t){const{deviceType:e,attributeValue:i,setAttributes:o,attributeName:a}=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(dr,{...t}),(0,L.jsx)(br,{...t}),(0,L.jsx)(pr,{...t}),"cover"!==i["maskSize"+e]&&(0,L.jsx)(Ut,{label:(0, | |
| 280 | -z.__)("Repeat","ablocks"),options:mr,isResponsive:!0,attributeValue:i,attributeObjectKey:"maskRepeat",attributeName:a,setAttributes:o})]})},gr={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func,setAttributes:I().func};function fr(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:s=""}=t,r=(0,T.tJ)(e),b="Desktop"!==at()?at():"",c=(t,e,i="")=>{a?a(t,i,r):d(t,e,i)},d=(t,a,l)=>n(e?{[i]:(0,M.jI)(r,{...o,[a+l]:t})}:{[i]:{...o,[a+l]:t}}),u={deviceType:b,attributeValue:o,changeHandler:c,attributeDefaultValue:r,...t};return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:s,onChangeHandler:c,attributeObjectKey:"mask",attributeValue:o,setAttributes:n,isResponsive:!1,deviceType:b}),o.mask&&(0,L.jsx)(hr,{...u})]})})}function yr({attributes:t,setAttributes:e}){return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0, | |
| 281 | -z.__)("Hide On Desktop","ablocks"),attributeValue:t?._hide_on_desktop,setAttributes:e,attributeName:"_hide_on_desktop"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Hide On Tablet","ablocks"),attributeValue:t?._hide_on_tablet,setAttributes:e,attributeName:"_hide_on_tablet"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Hide On Mobile","ablocks"),attributeValue:t?._hide_on_mobile,setAttributes:e,attributeName:"_hide_on_mobile"})]})}fr.propTypes=gr,yr.propTypes={};var Tr=i(15039);const Hr=[{label:(0,z.__)("default","ablocks"),options:[{value:"none",label:(0,z.__)("None","ablocks")}]},{label:(0,z.__)("Attention Seekers","ablocks"),options:[{value:"bounce",label:(0,z.__)("Bounce","ablocks")},{value:"flash",label:(0,z.__)("Flash","ablocks")},{value:"pulse",label:(0,z.__)("Pulse","ablocks")},{value:"rubberBand",label:(0,z.__)("Rubber Band","ablocks")},{value:"shakeX",label:(0,z.__)("Shake X","ablocks")},{value:"shakeY",label:(0,z.__)("Shake Y","ablocks")},{value:"headShake",label:(0, | |
| 282 | -z.__)("Head Shake","ablocks")},{value:"swing",label:(0,z.__)("Swing","ablocks")},{value:"tada",label:(0,z.__)("Tada","ablocks")},{value:"wobble",label:(0,z.__)("Wobble","ablocks")},{value:"jello",label:(0,z.__)("Jello","ablocks")},{value:"heartBeat",label:(0,z.__)("Heart Beat","ablocks")}]},{label:(0,z.__)("Back Entrances","ablocks"),options:[{value:"backInDown",label:(0,z.__)("Back In Down","ablocks")},{value:"backInLeft",label:(0,z.__)("Back In Left","ablocks")},{value:"backInRight",label:(0,z.__)("Back In Right","ablocks")},{value:"backInUp",label:(0,z.__)("Back In Up","ablocks")}]},{label:(0,z.__)("Back Exits","ablocks"),options:[{value:"backOutDown",label:(0,z.__)("Back Out Down","ablocks")},{value:"backOutLeft",label:(0,z.__)("Back Out Left","ablocks")},{value:"backOutRight",label:(0,z.__)("Back Out Right","ablocks")},{value:"backOutUp",label:(0,z.__)("Back Out Up","ablocks")}]},{label:(0,z.__)("Bouncing Entrances","ablocks"),options:[{value:"bounceIn",label:(0, | |
| 283 | -z.__)("Bounce In","ablocks")},{value:"bounceInDown",label:(0,z.__)("Bounce In Down","ablocks")},{value:"bounceInLeft",label:(0,z.__)("Bounce In Left","ablocks")},{value:"bounceInRight",label:(0,z.__)("Bounce In Right","ablocks")},{value:"bounceInUp",label:(0,z.__)("Bounce In Up","ablocks")}]},{label:(0,z.__)("Bouncing Exits","ablocks"),options:[{value:"bounceOut",label:(0,z.__)("Bounce Out","ablocks")},{value:"bounceOutDown",label:(0,z.__)("Bounce Out Down","ablocks")},{value:"bounceOutLeft",label:(0,z.__)("Bounce Out Left","ablocks")},{value:"bounceOutRight",label:(0,z.__)("Bounce Out Right","ablocks")},{value:"bounceOutUp",label:(0,z.__)("Bounce Out Up","ablocks")}]},{label:(0,z.__)("Fading Entrances","ablocks"),options:[{value:"fadeIn",label:(0,z.__)("Fade In","ablocks")},{value:"fadeInDown",label:(0,z.__)("Fade In Down","ablocks")},{value:"fadeInDownBig",label:(0,z.__)("Fade In Down Big","ablocks")},{value:"fadeInLeft",label:(0,z.__)("Fade In Left","ablocks")},{ | |
| 284 | -value:"fadeInLeftBig",label:(0,z.__)("Fade In Left Big","ablocks")},{value:"fadeInRight",label:(0,z.__)("Fade In Right","ablocks")},{value:"fadeInRightBig",label:(0,z.__)("Fade In Right Big","ablocks")},{value:"fadeInUp",label:(0,z.__)("Fade In Up","ablocks")},{value:"fadeInUpBig",label:(0,z.__)("Fade In Up Big","ablocks")},{value:"fadeInTopLeft",label:(0,z.__)("Fade In Top Left","ablocks")},{value:"fadeInTopRight",label:(0,z.__)("Fade In Top Right","ablocks")},{value:"fadeInBottomLeft",label:(0,z.__)("Fade In Bottom Left","ablocks")},{value:"fadeInBottomRight",label:(0,z.__)("Fade In Bottom Right","ablocks")}]},{label:(0,z.__)("Fading Exits","ablocks"),options:[{value:"fadeOut",label:(0,z.__)("Fade Out","ablocks")},{value:"fadeOutDown",label:(0,z.__)("Fade Out Down","ablocks")},{value:"fadeOutDownBig",label:(0,z.__)("Fade Out Down Big","ablocks")},{value:"fadeOutLeft",label:(0,z.__)("Fade Out Left","ablocks")},{value:"fadeOutLeftBig",label:(0,z.__)("Fade Out Left Big","ablocks")},{ | |
| 285 | -value:"fadeOutRight",label:(0,z.__)("Fade Out Right","ablocks")},{value:"fadeOutRightBig",label:(0,z.__)("Fade Out Right Big","ablocks")},{value:"fadeOutUp",label:(0,z.__)("Fade Out Up","ablocks")},{value:"fadeOutUpBig",label:(0,z.__)("Fade Out Up Big","ablocks")},{value:"fadeOutTopLeft",label:(0,z.__)("Fade Out Top Left","ablocks")},{value:"fadeOutTopRight",label:(0,z.__)("Fade Out Top Right","ablocks")},{value:"fadeOutBottomRight",label:(0,z.__)("Fade Out Bottom Right","ablocks")},{value:"fadeOutBottomLeft",label:(0,z.__)("Fade Out Bottom Left","ablocks")}]},{label:(0,z.__)("Flippers","ablocks"),options:[{value:"flip",label:(0,z.__)("Flip","ablocks")},{value:"flipInX",label:(0,z.__)("Flip In X","ablocks")},{value:"flipInY",label:(0,z.__)("Flip In Y","ablocks")},{value:"flipOutX",label:(0,z.__)("Flip Out X","ablocks")},{value:"flipOutY",label:(0,z.__)("Flip Out Y","ablocks")}]},{label:(0,z.__)("Lightspeed","ablocks"),options:[{value:"lightSpeedInRight",label:(0, | |
| 286 | -z.__)("Light Speed In Right","ablocks")},{value:"lightSpeedInLeft",label:(0,z.__)("Light Speed In Left","ablocks")},{value:"lightSpeedOutRight",label:(0,z.__)("Light Speed Out Right","ablocks")},{value:"lightSpeedOutLeft",label:(0,z.__)("Light Speed Out Left","ablocks")}]},{label:(0,z.__)("Rotating Entrances","ablocks"),options:[{value:"rotateIn",label:(0,z.__)("Rotate In","ablocks")},{value:"rotateInDownLeft",label:(0,z.__)("Rotate In Down Left","ablocks")},{value:"rotateInDownRight",label:(0,z.__)("Rotate In Down Right","ablocks")},{value:"rotateInUpLeft",label:(0,z.__)("Rotate In Up Left","ablocks")},{value:"rotateInUpRight",label:(0,z.__)("Rotate In Up Right","ablocks")}]},{label:(0,z.__)("Rotating Exits","ablocks"),options:[{value:"rotateOut",label:(0,z.__)("Rotate Out","ablocks")},{value:"rotateOutDownLeft",label:(0,z.__)("Rotate Out Down Left","ablocks")},{value:"rotateOutDownRight",label:(0,z.__)("Rotate Out Down Right","ablocks")},{value:"rotateOutUpLeft",label:(0, | |
| 287 | -z.__)("Rotate Out Up Left","ablocks")},{value:"rotateOutUpRight",label:(0,z.__)("Rotate Out Up Right","ablocks")}]},{label:(0,z.__)("Specials","ablocks"),options:[{value:"hinge",label:(0,z.__)("Hinge","ablocks")},{value:"jackInTheBox",label:(0,z.__)("Jack In The Box","ablocks")},{value:"rollIn",label:(0,z.__)("Roll In","ablocks")},{value:"rollOut",label:(0,z.__)("Roll Out","ablocks")}]},{label:(0,z.__)("Zooming Entrances","ablocks"),options:[{value:"zoomIn",label:(0,z.__)("Zoom In","ablocks")},{value:"zoomInDown",label:(0,z.__)("Zoom In Down","ablocks")},{value:"zoomInLeft",label:(0,z.__)("Zoom In Left","ablocks")},{value:"zoomInRight",label:(0,z.__)("Zoom In Right","ablocks")},{value:"zoomInUp",label:(0,z.__)("Zoom In Up","ablocks")}]},{label:(0,z.__)("Zooming Exits","ablocks"),options:[{value:"zoomOut",label:(0,z.__)("Zoom Out","ablocks")},{value:"zoomOutDown",label:(0,z.__)("Zoom Out Down","ablocks")},{value:"zoomOutLeft",label:(0,z.__)("Zoom Out Left","ablocks")},{ | |
| 288 | -value:"zoomOutRight",label:(0,z.__)("Zoom Out Right","ablocks")},{value:"zoomOutUp",label:(0,z.__)("Zoom Out Up","ablocks")}]},{label:(0,z.__)("Sliding Entrances","ablocks"),options:[{value:"slideInDown",label:(0,z.__)("Slide In Down","ablocks")},{value:"slideInLeft",label:(0,z.__)("Slide In Left","ablocks")},{value:"slideInRight",label:(0,z.__)("Slide In Right","ablocks")},{value:"slideInUp",label:(0,z.__)("Slide In Up","ablocks")}]},{label:(0,z.__)("Sliding Exits","ablocks"),options:[{value:"slideOutDown",label:(0,z.__)("Slide Out Down","ablocks")},{value:"slideOutLeft",label:(0,z.__)("Slide Out Left","ablocks")},{value:"slideOutRight",label:(0,z.__)("Slide Out Right","ablocks")},{value:"slideOutUp",label:(0,z.__)("Slide Out Up","ablocks")}]}];var Mr=i(43271);const xr={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any},kr=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,label:n=""}=t,s=at(),r=t=>a({[i]:(0,M.jI)((0, | |
| 289 | -Tr.t)(e),{...o,["animationType"+s]:t})}),b="none"!==o["animationType"+s]&&""!==o["animationType"+s];return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-control ablocks-animation-control",children:[b&&(0,L.jsx)(V,{type:"button",onClick:()=>{localStorage.setItem("ablocksAnimationType",o["animationType"+s]),r(""),setTimeout(()=>{r(localStorage.getItem("ablocksAnimationType"))},[1e3])},label:(0,z.__)("Run Animation Again","ablocks")}),n&&(0,L.jsx)(ot,{label:n,isResponsive:e}),(0,L.jsx)(Pl,{classNamePrefix:"ablocks-animation",options:Hr,value:(t=>{for(const e of Hr){const i=e.options.find(e=>e.value===t);if(i)return i}return null})(o["animationType"+s]),isSearchable:!0,onChange:t=>{r(t?t.value:"")},placeholder:(0,z.__)("Select Animation","ablocks")}),b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Duration","ablocks"),isResponsive:!1,hasUnit:!1,min:"0",max:"10",step:.1,attributeName:i,attributeObjectKey:"animationDuration",attributeValue:o, | |
| 290 | -setAttributes:a,attributeDefaultValue:Mr.Vj,attributeDataType:"object"}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vt,{label:(0,z.__)("Delay","ablocks"),isResponsive:!1,hasUnit:!1,min:"0",max:"10",step:.1,attributeName:i,attributeObjectKey:"animationDelay",attributeValue:o,setAttributes:a,attributeDefaultValue:Mr.Vj,attributeDataType:"object"})]})]})})};kr.propTypes=xr;const vr=kr;function _r(t){const[e,i]=(0,a.useState)(!1),o=(0,a.useRef)(null),{label:l,attributeValue:n,hover:s,attributeName:r,setAttributes:b,changeHandler:c}=t;let d="preset",u="shadowType",p="shadow",m="horizontal",h="vertical",g="blur",f="spread",y="color";s&&(d="presetH",u="shadowTypeH",p="shadowH",m="horizontalH",h="verticalH",g="blurH",f="spreadH",y="colorH");const T=()=>{const t=(0,M.jI)((0,H.tJ)(),{...n,[d]:1,[u]:"",[p]:"",[m]:"",[h]:"",[g]:"",[f]:"",[y]:""});b({[r]:t})};return(0,L.jsxs)("div",{className:"ablocks-box-shadow",children:[l&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:l, | |
| 291 | -isResponsive:!1})}),(0,L.jsx)("div",{className:"ablocks-box-shadow__control",onClick:()=>i(!e),role:"presentation",children:void 0!==n[u]&&"default"!==n[u]?(0,L.jsxs)("div",{className:"ablocks-box-shadow__placeholder",children:[(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,L.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z",fill:"#13191B"}),(0,L.jsx)("path",{ | |
| 292 | -d:"M11.7499 11.875C11.6599 11.875 11.5599 11.87 11.4699 11.865C11.2849 11.855 11.1349 11.705 11.1199 11.52C11.0099 10.125 9.87488 8.99499 8.48488 8.88499C8.29988 8.86999 8.14988 8.72 8.13988 8.535C8.13488 8.445 8.12988 8.345 8.12988 8.255C8.12988 6.255 9.75488 4.63 11.7549 4.63C13.7549 4.63 15.3799 6.255 15.3799 8.255C15.3799 10.255 13.7499 11.875 11.7499 11.875ZM8.87488 8.17999C10.3649 8.44499 11.5599 9.635 11.8199 11.125C13.3749 11.085 14.6249 9.815 14.6249 8.25C14.6249 6.665 13.3349 5.375 11.7499 5.375C10.1899 5.375 8.91488 6.62499 8.87488 8.17999Z",fill:"white"}),(0,L.jsx)("path",{ | |
| 293 | -d:"M8.25 15.375C6.25 15.375 4.625 13.75 4.625 11.75C4.625 9.75 6.25 8.125 8.25 8.125C8.34 8.125 8.44 8.12999 8.53 8.13499C10.295 8.27499 11.725 9.70501 11.86 11.46C11.865 11.56 11.87 11.66 11.87 11.75C11.875 13.75 10.25 15.375 8.25 15.375ZM8.25 8.875C6.665 8.875 5.375 10.165 5.375 11.75C5.375 13.335 6.665 14.625 8.25 14.625C9.835 14.625 11.125 13.335 11.125 11.75C11.125 11.67 11.12 11.59 11.115 11.51C11.005 10.125 9.87 8.99 8.48 8.88C8.41 8.88 8.33 8.875 8.25 8.875Z",fill:"white"}),(0,L.jsx)("path",{ | |
| 294 | -d:"M8.25 13.375C8.115 13.375 7.985 13.3 7.92 13.18L7.53 12.47L6.82001 12.08C6.70001 12.015 6.625 11.89 6.625 11.75C6.625 11.61 6.70001 11.485 6.82001 11.42L7.53 11.03L7.92 10.32C8.05 10.08 8.445 10.08 8.58 10.32L8.97 11.03L9.67999 11.42C9.79999 11.485 9.875 11.61 9.875 11.75C9.875 11.89 9.79999 12.015 9.67999 12.08L8.97 12.47L8.58 13.18C8.515 13.3 8.385 13.375 8.25 13.375ZM7.78 11.75L7.985 11.865C8.05 11.9 8.09999 11.95 8.13499 12.015L8.25 12.22L8.36501 12.015C8.40001 11.95 8.45 11.9 8.515 11.865L8.72 11.75L8.515 11.635C8.45 11.6 8.40001 11.55 8.36501 11.485L8.25 11.28L8.13499 11.485C8.09999 11.55 8.05 11.6 7.985 11.635L7.78 11.75Z",fill:"white"})]}),(0,L.jsx)("span",{role:"presentation",children:H.Ji?.find(t=>t.value===n[u])?.label}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:t=>{t.stopPropagation(),T()},role:"presentation"})]}):(0,L.jsxs)("div",{className:"ablocks-box-shadow__placeholder",children:[(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg", | |
| 295 | -width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,L.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"5.5",fill:"#EDEDEE",stroke:"#DDDDDF"}),(0,L.jsx)("path",{d:"M11.7499 11.875C11.6599 11.875 11.5599 11.87 11.4699 11.865C11.2849 11.855 11.1349 11.705 11.1199 11.52C11.0099 10.125 9.87488 8.99499 8.48488 8.88499C8.29988 8.86999 8.14988 8.72 8.13988 8.535C8.13488 8.445 8.12988 8.345 8.12988 8.255C8.12988 6.255 9.75488 4.63 11.7549 4.63C13.7549 4.63 15.3799 6.255 15.3799 8.255C15.3799 10.255 13.7499 11.875 11.7499 11.875ZM8.87488 8.17999C10.3649 8.44499 11.5599 9.635 11.8199 11.125C13.3749 11.085 14.6249 9.815 14.6249 8.25C14.6249 6.665 13.3349 5.375 11.7499 5.375C10.1899 5.375 8.91488 6.62499 8.87488 8.17999Z",fill:"#74777C"}),(0,L.jsx)("path",{ | |
| 296 | -d:"M8.25 15.375C6.25 15.375 4.625 13.75 4.625 11.75C4.625 9.75 6.25 8.125 8.25 8.125C8.34 8.125 8.44 8.12999 8.53 8.13499C10.295 8.27499 11.725 9.70501 11.86 11.46C11.865 11.56 11.87 11.66 11.87 11.75C11.875 13.75 10.25 15.375 8.25 15.375ZM8.25 8.875C6.665 8.875 5.375 10.165 5.375 11.75C5.375 13.335 6.665 14.625 8.25 14.625C9.835 14.625 11.125 13.335 11.125 11.75C11.125 11.67 11.12 11.59 11.115 11.51C11.005 10.125 9.87 8.99 8.48 8.88C8.41 8.88 8.33 8.875 8.25 8.875Z",fill:"#74777C"}),(0,L.jsx)("path",{ | |
| 297 | -d:"M8.25 13.375C8.115 13.375 7.985 13.3 7.92 13.18L7.53 12.47L6.82001 12.08C6.70001 12.015 6.625 11.89 6.625 11.75C6.625 11.61 6.70001 11.485 6.82001 11.42L7.53 11.03L7.92 10.32C8.05 10.08 8.445 10.08 8.58 10.32L8.97 11.03L9.67999 11.42C9.79999 11.485 9.875 11.61 9.875 11.75C9.875 11.89 9.79999 12.015 9.67999 12.08L8.97 12.47L8.58 13.18C8.515 13.3 8.385 13.375 8.25 13.375ZM7.78 11.75L7.985 11.865C8.05 11.9 8.09999 11.95 8.13499 12.015L8.25 12.22L8.36501 12.015C8.40001 11.95 8.45 11.9 8.515 11.865L8.72 11.75L8.515 11.635C8.45 11.6 8.40001 11.55 8.36501 11.485L8.25 11.28L8.13499 11.485C8.09999 11.55 8.05 11.6 7.985 11.635L7.78 11.75Z",fill:"#74777C"})]}),(0,L.jsx)("span",{children:"Add..."})]})}),e&&(0,L.jsxs)(Yt,{FigmaPasterComponent:({position:t="left"})=>(0,L.jsx)(ut,{position:t,figmaPasteBtnClickHandler:t=>{const e=ft(t,"box-shadow");if(e){const t={[d]:"none",[u]:e?.shadowType||n?.[u],[p]:e?.shadow||n?.[p],[m]:e?.horizontal||(0===e?.horizontal?e?.horizontal:n?.[m]), | |
| 298 | -[h]:e?.vertical||(0===e?.vertical?e?.vertical:n?.[h]),[g]:e?.blur||(0===e?.blur?e?.blur:n?.[g]),[f]:e?.spread||(0===e?.spread?e?.spread:n?.[f]),[y]:e?.color||n?.[y]};b({[r]:t}),(0,M.An)({message:"Box-Shadow Style Successfully Pasted",config:{id:"ablocks-notice-figma-paste-box-shadow-success-notice",type:"snackbar"}})}else(0,M.An)({message:"Copy/Paste Failed: Wrong Box-Shadow Style",config:{id:"ablocks-notice-figma-paste-box-shadow-error-notice",type:"snackbar"}})}}),label:(0,z.__)("Shadow","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:T,isVisible:e,toggleVisible:()=>{i(!e)},anchorRef:o,children:[(0,L.jsx)(Ut,{options:H.Ji,label:(0,z.__)("shadowType","ablocks"),attributeObjectKey:u,attributeValue:n,attributeName:r,setAttributes:b}),(0,L.jsx)(Nt,{margin:"10"}),(0,L.jsx)("div",{className:"ablocks-box-shadow__templates",children:H.H5?.map(t=>(0,L.jsx)("div",{className:"ablocks-box-shadow__template "+(t?.id===n[d]?"ablocks-box-shadow__active":""),onClick:()=>(t=>{const e=(0, | |
| 299 | -M.jI)((0,H.tJ)(),{...n,[d]:t?.id,[m]:t?.horizontal,[h]:t?.vertical,[g]:t?.blur,[f]:t?.spread,[y]:t?.color,[p]:`${"inner_shadow"===n[u]?"inset":""} ${t?.horizontal}px ${t?.vertical}px ${t?.blur}px ${t?.spread}px ${t?.color}`,[u]:"default"!==n[u]&&""!==n[u]&&n[u]?n[u]:"outer_shadow"});b({[r]:e})})(t),role:"presentation",children:"none"!==t?.shadow?(0,L.jsx)("div",{className:"ablocks-box-shadow__shadow",style:{boxShadow:`${"inner_shadow"===n[u]?"inset":""} ${t?.horizontal}px ${t?.vertical}px ${t?.blur}px ${t?.spread}px ${t?.color}`}}):(0,L.jsx)("span",{className:"ablocks-box-shadow__empty",children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,L.jsx)("path",{ | |
| 300 | -d:"M12 22.25C6.34614 22.25 1.75 17.6539 1.75 12C1.75 6.34616 6.34614 1.75002 12 1.75002C17.6539 1.75002 22.25 6.34616 22.25 12C22.25 17.6539 17.6539 22.25 12 22.25ZM12 2.25002C6.62386 2.25002 2.25 6.62387 2.25 12C2.25 17.3762 6.62386 21.75 12 21.75C17.3761 21.75 21.75 17.3762 21.75 12C21.75 6.62387 17.3761 2.25002 12 2.25002Z",fill:"#13191B",stroke:"#13191B"}),(0,L.jsx)("path",{d:"M4.89997 19.25C4.83542 19.25 4.77481 19.2278 4.72352 19.1765C4.62878 19.0817 4.62878 18.9183 4.72352 18.8236L18.7235 4.82357C18.8183 4.72883 18.9817 4.72883 19.0764 4.82357C19.1712 4.91831 19.1712 5.08173 19.0764 5.17646L5.07641 19.1765C5.02512 19.2278 4.96451 19.25 4.89997 19.25Z",fill:"#13191B",stroke:"#13191B"})]})})},t?.id))}),(0,L.jsx)(Nt,{margin:"10"}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:y,attributeValue:n[y],onChangeHandler:(t,e)=>{c(e,t)},resetHandler:(t,e)=>b({[r]:(0,M.jI)((0,H.tJ)(e),{...n,[t]:void 0,[y]:"#000000"})}),setAttributes:t=>{b({[r]:{...n,...t}})} | |
| 301 | -}),(0,L.jsx)(vt,{label:(0,z.__)("Horizontal","ablocks"),min:-100,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[m]??0,attributeName:m,onChangeHandler:c,attributeObjectKey:m}),(0,L.jsx)(vt,{label:(0,z.__)("Vertical","ablocks"),min:-100,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[h]??0,attributeName:h,onChangeHandler:c,attributeObjectKey:h}),(0,L.jsx)(vt,{label:(0,z.__)("Blur","ablocks"),min:0,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[g]??0,attributeName:g,onChangeHandler:c,attributeObjectKey:g}),(0,L.jsx)(vt,{label:(0,z.__)("Spread","ablocks"),min:-100,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[f]??0,attributeName:f,onChangeHandler:c,attributeObjectKey:f})]})]})}const Rr={isResponsive:I().bool,attributeName:I().string,attributeValue:I().any,setAttributes:I().func,onChangeHandler:I().func,showHover:I().bool};function Sr(t){ | |
| 302 | -const{attributeName:e,attributeValue:i,setAttributes:o,isResponsive:a=!0,onChangeHandler:l,showHover:n=!0}=t,s=at(),r=(t,e)=>{l?l(t,a?e+s:e):b(t,e)},b=(t,l)=>o({[e]:(0,M.jI)((0,H.tJ)(a),{...i,[l]:t})});return(0,L.jsx)("div",{className:"ablocks-control ablocks-control--box-shadow",children:n?(0,L.jsx)(Ct,{normal:(0,L.jsx)(_r,{...t,deviceType:s,changeHandler:r}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_r,{...t,hover:!0,deviceType:s,changeHandler:r}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (s)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:i?.transitionDuration??"0",setAttributes:o,onChangeHandler:r,attributeObjectKey:"transitionDuration"})]})}):(0,L.jsx)(_r,{...t,deviceType:s,changeHandler:r})})}Sr.propTypes=Rr;const Wr={label:I().string,isResponsive:I().bool,attributeName:I().string,setAttributes:I().func,attributeValue:I().any,attributeObjectKey:I().string,badgeText:I().string,descriptionText:I().string,upgradeLink:I().string} | |
| 303 | -;function Ur(t){const{label:e="Scrolling Effects",attributeName:i,attributeValue:o={},setAttributes:l,attributeObjectKey:n="",badgeText:s="PRO",isResponsive:r=!1,descriptionText:b="Get Scrolling Effects such as vertical/horizontal scroll, transparency, and more with aBlocks Pro.",upgradeLink:c="https://ablocks.pro/"}=t,[d,u]=(0,a.useState)(!1),p=at();return(0,L.jsxs)("div",{className:"ablocks-pro-toggle",children:[(0,L.jsxs)("div",{className:"ablocks-pro-toggle__control",children:[(0,L.jsxs)("div",{className:"ablocks-pro-toggle__label-control",children:[e&&(0,L.jsx)(ot,{label:e,isResponsive:!1}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--lock"})]}),(0,L.jsx)("div",{className:"ablocks-pro-toggle__toggle-control",children:(0,L.jsx)(Vt,{isResponsive:r,attributeName:i,attributeValue:o,setAttributes:l,onChangeHandler:t=>((t,e)=>{u(t),((t,e)=>{l({[i]:{...o,[n+e]:t}})})(t,e)})(t,p),attributeObjectKey:n})})]}),(0,L.jsxs)(Yt,{label:(0,L.jsxs)(L.Fragment,{children:[e," ",(0, | |
| 304 | -L.jsx)("span",{className:"pro-bandage",children:s})]}),isVisible:d,toggleVisible:u,className:"ablocks-pro-toggle__popover",children:[(0,L.jsx)("hr",{className:"ablocks-pro-toggle__line"}),(0,L.jsx)("p",{className:"ablocks-pro-toggle__description",children:b}),(0,L.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"ablocks-pro-toggle__upgrade-button",children:"Upgrade Now"})]})]})}Ur.propTypes=Wr;const Pr={attributeValue:I().object,setAttributes:I().func.isRequired};function jr(t){let e=(0,b.applyFilters)("ablocks.global.mouseEffectsControlBody",null,t);return(0,L.jsx)(l().Fragment,{children:M.zX?e:(0,L.jsx)(Ur,{label:(0,z.__)("Mouse Effects","ablocks"),attributeName:"mouseEffects",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"mouseEffects",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0,z.__)("Add engaging Mouse Track or 3D Tilt effects with aBlocks Pro.","ablocks")})})}function wr(t){let e=(0, | |
| 305 | -b.applyFilters)("ablocks.global.scrollingEffectsControlBody",null,t);return(0,L.jsx)(l().Fragment,{children:M.zX?e:(0,L.jsx)(Ur,{label:(0,z.__)("Scrolling Effect","ablocks"),attributeName:"scrollingEffects",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"scrollingEffects",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0,z.__)("Unlock scrolling effects like vertical/horizontal scroll, transparency, and more with aBlocks Pro.","ablocks")})})}jr.propTypes=Pr,jr.defaultProps={attributeValue:{}},wr.propTypes={};const zr={attributeValue:I().object,setAttributes:I().func.isRequired};function Cr(t){let e=(0,b.applyFilters)("ablocks.global.floatingEffectsControlBody",null,t);return(0,L.jsx)(l().Fragment,{children:M.zX?e:(0,L.jsx)(Ur,{label:(0,z.__)("Enable","ablocks"),attributeName:"floatingEffects",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"floatingEffects",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0, | |
| 306 | -z.__)("Add engaging floating effects with aBlocks Pro.","ablocks")})})}Cr.propTypes=zr,Cr.defaultProps={attributeValue:{}};const Ar={attributeValue:I().object,setAttributes:I().func.isRequired};function Lr(t){let e=(0,b.applyFilters)("ablocks.global.stickyControlBody",null,t);return(0,L.jsx)(l().Fragment,{children:M.zX?e:(0,L.jsx)(Ur,{label:(0,z.__)("Sticky","ablocks"),attributeName:"sticky",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"sticky",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0,z.__)("Make any element on your page sticky to keep it visible at the top or bottom of the screen.","ablocks")})})}Lr.propTypes=Ar;const Dr={attributeValue:I().object,setAttributes:I().func.isRequired};function Nr(t){let e=(0,b.applyFilters)("ablocks.global.displayConditionsControlBody",null,t);return(0,L.jsx)(l().Fragment,{children:M.zX?e:(0,L.jsx)(Ur,{label:(0,z.__)("Display Condition","ablocks"),attributeName:"displayCondition", | |
| 307 | -attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"displayCondition",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0,z.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")})})}function Ir(t){let e=(0,b.applyFilters)("ablocks.global.tooltipControlBody",null,t);return(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Tooltip","ablocks"),initialOpen:!1,children:M.zX?e:(0,L.jsx)(Ur,{label:(0,z.__)("Tooltip","ablocks"),attributeName:"enableTooltip",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"enableTooltip",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0,z.__)("Get advanced tooltip with Ablocks Pro, including parallax, rotation, and more!","ablocks")})})}Nr.propTypes=Dr,Nr.defaultProps={},Ir.propTypes={};const Vr=l().lazy(()=>i.e(82).then(i.bind(i,86298)));function Or({attributes:t,setAttributes:e}){const{_custom_css:o}=t,[n,s]=(0, | |
| 308 | -a.useState)([]);return(0,a.useEffect)(()=>{let t=!0;return i.e(82).then(i.bind(i,87967)).then(e=>{t&&s([e.javascript({jsx:!0})])}),()=>{t=!1}},[]),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-control-css",children:[(0,L.jsx)("label",{className:"ablocks-control-css__title",children:(0,z.__)("Add your own custom CSS","ablocks")}),(0,L.jsx)(a.Suspense,{fallback:(0,L.jsx)("div",{className:"ablocks-control-css__loading",children:(0,z.__)("Loading editor…","ablocks")}),children:(0,L.jsx)(Vr,{value:o,height:"200px",extensions:n,onChange:t=>{e({_custom_css:t})}})}),(0,L.jsxs)("p",{className:"ablocks-control-css__note",children:["Use ",(0,L.jsx)("a",{href:"#",target:"_blank",children:(0,z.__)("custom CSS","ablocks")})," ",(0,z.__)("to style your content or add","ablocks")," ",(0,L.jsx)("a",{href:"#",target:"_blank",children:(0,z.__)('the "selector" prefix',"ablocks")})," ",(0,z.__)("to target specific elements.","ablocks")]})]})})}var Yr=i(31050) | |
| 309 | -;function Xr({attributes:t,setAttributes:e,isDisableLeftRightMargin:i=!1,isContainer:o=!1}){const{block_id:a,blockVersion:n}=t,s=!!(t?._background?.backgroundType&&"none"!==t?._background?.backgroundType||t?._background?.backgroundTypeH&&"none"!==t?._background?.backgroundTypeH)&&o;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Layout","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),attributeName:"_margin",styleType:"margin",attributeValue:t?._margin,setAttributes:e,isDisableLeftRight:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),attributeName:"_padding",styleType:"padding",attributeValue:t?._padding,setAttributes:e}),!o&&(0,L.jsx)(wt,{label:(0,z.__)("Width","ablocks"),isResponsive:!0,attributeName:"_width",attributeValue:t?._width,setAttributes:e}),(0,L.jsx)(Us,{label:(0,z.__)("Position","ablocks"),isResponsive:!0,attributeName:"_position",attributeValue:t?._position,setAttributes:e}),(0,L.jsx)(Cs,{ | |
| 310 | -label:(0,z.__)("Z-Index","ablocks"),isResponsive:!0,attributeName:"_zIndex",attributeValue:t?._zIndex,setAttributes:e}),(0,L.jsx)(ql,{label:(0,z.__)("CSS ID","ablocks"),attributeName:"anchor",setAttributes:e,attributeValue:t?.anchor,onChangeHandler:t=>{e({anchor:t.replace(/[\s#]/g,"-")})},isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("CSS Classes","ablocks"),attributeName:"className",attributeValue:t?.className,setAttributes:e,isInline:!1}),(0,L.jsx)(Nr,{label:(0,z.__)("Display Conditions","ablocks"),isResponsive:!0,attributeName:"_display_conditions",attributeValue:t?._display_conditions,setAttributes:e})]}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Motion Effects","ablocks"),initialOpen:!1,children:[(0,L.jsx)(wr,{label:(0,z.__)("Scrolling Effects","ablocks"),isResponsive:!1,attributeName:"_scrolling",attributeValue:t?._scrolling,setAttributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(jr,{label:(0,z.__)("Mouse Effects","ablocks"),isResponsive:!1,attributeName:"_mouse",attributeValue:t?._mouse, | |
| 311 | -setAttributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Lr,{label:(0,z.__)("Sticky","ablocks"),isResponsive:!1,attributeName:"_sticky",attributeValue:t?._sticky,setAttributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vr,{label:(0,z.__)("Entrance Animation","ablocks"),isResponsive:!0,attributeName:"_animation",attributeValue:t?._animation,setAttributes:e})]}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Floating Effects","ablocks"),initialOpen:!1,children:(0,L.jsx)(Cr,{label:(0,z.__)("Enable","ablocks"),isResponsive:!1,attributeName:"_floating",attributeValue:t?._floating,setAttributes:e})}),(0,L.jsx)(Ir,{label:(0,z.__)("Tooltip","ablocks"),isResponsive:!0,attributeName:"_tooltip",attributeValue:t._tooltip,setAttributes:e}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Transform","ablocks"),initialOpen:!1,children:(0,L.jsx)(ee,{attributeName:"_transform",attributeValue:t?._transform,setAttributes:e,blockId:a,blockVersion:n})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Background","ablocks"),initialOpen:!1,children:(0, | |
| 312 | -L.jsx)(ir,{isResponsive:!0,attributeName:"_background",attributeValue:t?._background,setAttributes:e,isContainer:o})}),s&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Background Overlay","ablocks"),initialOpen:!1,children:(0,L.jsx)(sr,{attributeName:"_backgroundOverlay",attributeValue:t?._backgroundOverlay,setAttributes:e})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Border","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rs,{attributeName:"_border",attributeValue:t?._border,setAttributes:e})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Shadow","ablocks"),initialOpen:!1,children:(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeValue:t._boxShadow,setAttributes:e,attributeName:"_boxShadow"})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Mask","ablocks"),initialOpen:!1,children:(0,L.jsx)(fr,{label:(0,z.__)("Mask","ablocks"),isResponsive:!0,attributeName:"_mask",attributeValue:t?._mask,setAttributes:e})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Responsive","ablocks"),initialOpen:!1,children:(0, | |
| 313 | -L.jsx)(yr,{attributes:t,setAttributes:e})}),(0,Yr.to)()&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Custom CSS","ablocks"),initialOpen:!1,children:(0,L.jsx)(Or,{attributes:t,setAttributes:e})})]})}const Br=t=>{switch(t){case"scroll":return{id:"",trigger:"scroll",title:(0,z.__)("Scroll Into View","ablocks"),subTitle:(0,z.__)("Define actions that occur when element scrolls into view","ablocks"),once:!1,settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"whileScroll":return{id:"",trigger:"whileScroll",title:(0,z.__)("While scrolling in view","ablocks"),subTitle:(0,z.__)("Define actions that occur when element scrolls through viewport","ablocks"),once:!1,settings:{scrub:!0,startValue:10,endValue:100,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"hover":return{id:"",trigger:"hover",title:(0,z.__)("Mouse Hover","ablocks"),subTitle:(0, | |
| 314 | -z.__)("Define actions that occur when cursor hovers over or away from element.","ablocks"),once:!1,settings:{reverse:!0,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"click":return{id:"",trigger:"click",title:(0,z.__)("Mouse Click (tap)","ablocks"),once:!1,subTitle:(0,z.__)("Define actions that occur on 1st or 2nd tap.","ablocks"),settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"mouseMove":return{id:"",trigger:"mousemove",title:(0,z.__)("Mouse Move over Element","ablocks"),subTitle:(0,z.__)("Define actions that occur when cursor moves over element along X or Y axis.","ablocks"),once:!1,settings:{strength:30,mouseX:50,mouseY:50,smoothing:50,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]}}},Er=[{label:(0,z.__)("Select Animations","ablocks"),value:"none"},{ | |
| 315 | -label:(0,z.__)("Fade","ablocks"),value:"fade"},{label:(0,z.__)("Slide","ablocks"),value:"slide"},{label:(0,z.__)("Flip","ablocks"),value:"flip"},{label:(0,z.__)("Grow","ablocks"),value:"grow"},{label:(0,z.__)("Grow Big","ablocks"),value:"growBig"},{label:(0,z.__)("Shrink","ablocks"),value:"shrink"},{label:(0,z.__)("Shrink Big","ablocks"),value:"shrinkBig"},{label:(0,z.__)("Spin","ablocks"),value:"spin"},{label:(0,z.__)("Fly","ablocks"),value:"fly"},{label:(0,z.__)("Drop","ablocks"),value:"drop"},{label:(0,z.__)("Emphasis","ablocks"),value:"emphasis"},{label:(0,z.__)("Pop","ablocks"),value:"pop"},{label:(0,z.__)("Jiggle","ablocks"),value:"jiggle"},{label:(0,z.__)("Pulse","ablocks"),value:"pulse"},{label:(0,z.__)("Blink","ablocks"),value:"blink"},{label:(0,z.__)("Bounce","ablocks"),value:"bounce"},{label:(0,z.__)("Flip Left To Right","ablocks"),value:"flipLeftToRight"},{label:(0,z.__)("Flip Right To Left","ablocks"),value:"flipRightToLeft"},{label:(0,z.__)("Rubber Band","ablocks"), | |
| 316 | -value:"rubberBand"},{label:(0,z.__)("Jello","ablocks"),value:"jello"}],Fr=(t,e="in")=>{const i=(t=>{switch(t){case"none":return{type:"none",from:{},to:{}};case"fade":return{type:"fade",from:{opacity:1,y:20},to:{opacity:1,y:0,duration:.6,ease:"power1.out",delay:0}};case"slide":return{type:"slide",from:{x:-100,opacity:0},to:{x:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"flip":return{from:{rotationY:-90,opacity:0},to:{rotationY:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"grow":return{type:"grow",from:{scale:.8,opacity:0},to:{scale:1,opacity:1,duration:.5,delay:0,ease:"power2.out"}};case"growBig":return{type:"growBig",from:{scale:.5,opacity:0},to:{scale:1.2,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"shrink":return{type:"shrink",from:{scale:1.2,opacity:0},to:{scale:1,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"shrinkBig":return{type:"shrinkBig",from:{scale:1.5,opacity:0},to:{scale:1,opacity:1,duration:.6,delay:0,ease:"power2.out"}} | |
| 240 | +fill:"#A7AAAD",mask:"url(#path-3-inside-2_3380_808)"})]}),Ss=({label:t="",isGradient:e=!1,attributeName:i="",attributeValue:o,setAttributes:l=Zn,onChangeHandler:n,resetHandler:s,allowGlobalColor:b=!1,showGlobal:c=!0,attributes:d})=>{const{colors:u}=(0,r.useSelect)(t=>t("core/block-editor").getSettings(),[]),[p,m]=(0,a.useState)(!1),[h,g]=(0,a.useState)(null),[f,y]=(0,a.useState)(!1),T=(0,a.useRef)(null),H=(0,a.useRef)(null),x=t=>{n?n(i,t):l({[i]:t})},k=()=>{s?s(i):l({[i]:void 0})},v=(0,Ms.Mw)(),_=()=>{v||m(!p)},R=(0,Hs.GQ)(o),S=(0,Hs.YN)(o),W=R?R?.color:S?(0,Hs.Ou)(S.id,M.W0?.global_color):o,P=W?(U=W)?(U.match(/#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgba?\(.*?\)|hsla?\(.*?\)/g)||[]).slice(0,3):["#BE21FF","#736EC8","#29A6FE"]:[];var U;const j=W&&W.startsWith("linear"),w=W&&W.startsWith("radial"),z=W&&W.startsWith("rgba"),C=W&&W.startsWith("hsla"),A=W&&!j&&!w&&!z&&!C,[D,N]=(0,a.useState)(!0),[V,O]=(0,a.useState)(R?.slug||null),[Y,X]=(0,a.useState)(S?.id||null);(0,a.useEffect)(()=>{ | |
| 241 | +const t=u.find(t=>t.color===o);t?(N(!1),O(t.slug||null),X(null)):S?(X(S.id),O(null)):R?(N(!0),O(R.slug),X(null)):(O(null),X(null))},[o,S,R,u]);const B=d?.[i+"Global"];return B&&M.W0?.global_color?.find(t=>t.id===B),(0,I.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[t&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:t,isResponsive:!1})}),(0,I.jsxs)("div",{className:"ablocks-control-color-gradient",ref:T,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",children:(0,I.jsxs)("div",{className:"ablocks-component-popover__input-wrapper",children:[(0,I.jsx)("input",{type:"text",className:"ablocks-component-popover__input", | |
| 242 | +value:(t=>t?t.startsWith("linear")?"Linear":t.startsWith("radial")?"Radial":t.startsWith("rgba")?"rgba":t.startsWith("hsla")?"hsla":t:"")(W||""),placeholder:(0,L.__)("Add color","ablocks"),readOnly:v,title:v?Ms.tN.color:void 0,onChange:t=>{v||(t=>{x(t)})(t.target.value)}}),W&&W.trim()&&(0,I.jsx)("span",{className:"ablocks-component-popover__clear-button",onClick:k,role:"presentation",children:"×"}),(0,I.jsxs)("div",{className:"ablocks-component-popover__color-button"+(v?" ablocks-control--locked":""),title:v?Ms.tN.color:void 0,onClick:()=>_(),role:"presentation",children:[j&&(0,I.jsx)(ks,{colors:P}),w&&(0,I.jsx)(vs,{colors:P}),A&&(0,I.jsx)(_s,{color:W}),z&&(0,I.jsx)(_s,{color:W}),C&&(0,I.jsx)(_s,{color:W}),!W&&(0,I.jsx)(Rs,{})]})]})})}),p&&!v&&(0,I.jsx)(Xt,{FigmaPasterComponent:v?void 0:({position:t="left"})=>(0,I.jsx)(pt,{position:t,figmaPasteBtnClickHandler:t=>{const e=yt(t,"color-gradient");e?((0,M.An)({message:"Color Style Successfully Pasted",config:{ | |
| 243 | +id:"ablocks-notice-figma-paste-success-notice",type:"snackbar"}}),x(e),m(!1),setTimeout(()=>{m(!0)},10)):(0,M.An)({message:"Copy/Paste Failed: Wrong Color Style",config:{id:"ablocks-notice-figma-paste-invalid-color-notice",type:"snackbar"}})}}),className:`ablocks-control-color-gradient-popover ablocks-active-tab-${h}`,label:(0,L.__)("Color","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:k,isVisible:p,toggleVisible:_,anchorRef:T,children:(0,I.jsxs)("div",{className:"ablocks-control--customizable-color-gradient",children:[(0,I.jsx)(Ts,{setActiveTab:g,allowGradient:e,value:W||"",onChange:x}),b&&(0,I.jsxs)(I.Fragment,{children:[M.W0?.global_color&&(0,I.jsxs)("div",{className:"ablocks-global-color",children:[(0,I.jsx)("div",{className:"ablocks-global-color-header",children:(0,I.jsx)("p",{className:"ablocks-global-color-list-title",children:"Global"})}),(0,I.jsx)("ul",{className:"ablocks-global-color-list",children:M.W0.global_color.filter(t=>t.value&&t.value.trim()).map((t,e)=>{ | |
| 244 | +const i=Y===t.id;return(0,I.jsx)("li",{className:i?"ablocks-color-selected":"",onClick:()=>{X(t.id),O(null),x(`var:global|${t.value}|${t.id}`)},title:t.label||`Global Color ${e+1}`,children:(0,I.jsx)("span",{style:{background:t.value}})},e)})})]}),(0,I.jsxs)("div",{className:"ablocks-global-color",children:[(0,I.jsxs)("div",{className:"ablocks-global-color-header",children:[(0,I.jsx)("p",{className:"ablocks-global-color-list-title",children:"Theme"}),V&&(0,I.jsxs)("div",{className:"ablocks-global-color-link-wrapper",children:[(0,I.jsx)("p",{className:"ablocks-global-color-link",children:"Link"}),(0,I.jsxs)("label",{className:"ablocks-global-color-switch",children:[(0,I.jsx)("input",{type:"checkbox",checked:D,onChange:t=>{const e=t.target.checked;N(e);const i=u.find(t=>t.slug===V);i&&x(e?`var:preset|${i.color}|${i.slug}`:i.color)}}),(0,I.jsx)("span",{className:"ablocks-global-color-slider"})]})]})]}),(0,I.jsx)("ul",{className:"ablocks-global-color-list",children:u.map((t,e)=>(0, | |
| 245 | +I.jsx)("li",{className:V===t.slug?"ablocks-color-selected":"",onClick:()=>{O(t.slug),X(null);const e=u.find(e=>e.slug===t.slug);e&&x(D?`var:preset|${e.color}|${e.slug}`:e.color)},children:(0,I.jsx)("span",{style:{background:"transparent"===t.slug?"repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 10px 10px":t.color}})},e))})]})]})]})})]}),c&&(0,I.jsx)("span",{role:"button",tabIndex:0,ref:H,className:"ablocks-icon ablocks-icon--globe "+(B||R||S?"active":""),onClick:()=>y(!f)}),c&&f&&(0,I.jsx)(Xt,{label:(0,L.__)("Global Colors","ablocks"),isVisible:f,toggleVisible:y,anchorRef:H,children:(0,I.jsxs)("div",{className:"ablocks-popover__content",children:[(0,I.jsxs)("div",{className:"ablocks-global-color",children:[(0,I.jsx)("div",{className:"ablocks-global-color-header",children:(0,I.jsx)("p",{className:"ablocks-global-color-list-title",children:"Global"})}),(0,I.jsx)("ul",{className:"ablocks-global-color-list", | |
| 246 | +children:M.W0?.global_color?.filter(t=>t.value&&t.value.trim()).map((t,e)=>{const o=B===t.id||S?.id===t.id;return(0,I.jsx)("li",{className:o?"ablocks-color-selected":"",onClick:()=>(t=>{const e=M.W0?.global_color?.find(e=>e.id===t);e&&l({[i]:`var:global|${e.value}|${e.id}`,[i+"Global"]:t}),y(!1)})(t.id),title:t.label||`Global Color ${e+1}`,children:(0,I.jsx)("span",{style:{background:t.value}})},e)})})]}),(0,I.jsxs)("div",{className:"ablocks-global-color",children:[(0,I.jsx)("div",{className:"ablocks-global-color-header",children:(0,I.jsx)("p",{className:"ablocks-global-color-list-title",children:"Theme"})}),(0,I.jsx)("ul",{className:"ablocks-global-color-list",children:u.map((t,e)=>{const o=R?.slug===t.slug;return(0,I.jsx)("li",{className:o?"ablocks-color-selected":"",onClick:()=>{l({[i]:`var:preset|${t.color}|${t.slug}`,[i+"Global"]:""}),y(!1)},title:t.name||t.slug,children:(0,I.jsx)("span",{style:{ | |
| 247 | +background:"transparent"===t.slug?"repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 10px 10px":t.color}})},e)})})]}),!M.W0?.global_color?.length&&!u?.length&&(0,I.jsx)("p",{children:(0,L.__)("No global colors available","ablocks")})]})})]})]})};Ss.propTypes=xs;const Ws=Ss,Ps={isResponsive:Y().bool,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,radiusAttributeName:Y().string,radiusAttributeValue:Y().any,widthAttributeName:Y().string,widthAttributeValue:Y().any,hasBorderRadius:Y().bool,hasTransition:Y().bool};function Us(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,hasBorderRadius:n=!0,hasTransition:s=!0}=t,r=(t,l)=>a({[i]:(0,M.jI)((0,y.tJ)(e),{...o,[l]:t})}),b=t=>a({[i]:(0,M.jI)((0,y.tJ)(e),{...o,[t]:void 0})}),c=o.borderStyle,d=o.borderStyleH,u=()=>(0,I.jsx)(pt,{figmaPasteBtnClickHandler:t=>{const e=yt(t,"border");Object.values(e||{}).some(t=>t)?(a({[i]:e}),(0,M.An)({message:"border Style Successfully Pasted",config:{ | |
| 248 | +id:"ablocks-notice-figma-paste-margin-padding-success-notice",type:"snackbar"}})):(0,M.An)({message:"Copy/Paste Failed: Wrong border style",config:{id:"ablocks-notice-figma-paste-margin-padding-error-notice",type:"snackbar"}})}});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-border-control",children:[(0,I.jsx)(u,{}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Border Style","ablocks"),options:y.CI,isResponsive:!1,attributeObjectKey:"borderStyle",attributeValue:o,attributeName:i,setAttributes:a}),"none"!==c&&"default"!==c&&c&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-border-control__options",children:(0,I.jsx)(xt,{label:(0,L.__)("Width","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"Width",onChangeHandler:r})}),(0,I.jsx)(Ws,{label:(0,L.__)("Border color","ablocks"),attributeName:"borderColor",attributeValue:o.borderColor, | |
| 249 | +onChangeHandler:(t,e)=>r(e,t),resetHandler:b,setAttributes:t=>{a({[i]:{...o,...t}})}})]}),n&&(0,I.jsx)(xt,{label:(0,L.__)("Border Radius","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"Radius",onChangeHandler:r})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Border Style","ablocks"),options:y.CI,isResponsive:!1,attributeObjectKey:"borderStyleH",attributeValue:o,setAttributes:a,attributeName:i}),"none"!==d&&"default"!==d&&d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-border-control__options",children:(0,I.jsx)(xt,{label:(0,L.__)("Width","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"WidthH",onChangeHandler:r})}),(0,I.jsx)(Ws,{label:(0,L.__)("Border color","ablocks"),attributeName:"borderColorH",attributeValue:o.borderColorH,onChangeHandler:(t,e)=>r(e,t),resetHandler:b,setAttributes:t=>{a({[i]:{...o,...t}})}})]}),n&&(0, | |
| 250 | +I.jsx)(xt,{label:(0,L.__)("Border Radius","ablocks"),attributeName:i,attributeValue:o,setAttributes:a,isResponsive:!0,attributeObjectKeySuffix:"RadiusH",onChangeHandler:r}),s&&(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:o?.transitionDuration||0,setAttributes:a,onChangeHandler:r,attributeObjectKey:"transitionDuration"})]})})]})})}Us.propTypes=Ps;const js={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,setAttributes:Y().func},ws=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a}=t,n=lt(),s=(0,m.tJ)(e),r=(t,e="")=>a({[i]:(0,M.jI)(s,{...o,[e]:t})}),b=o.positionType,c=(0,M.Ic)(o,"unit",n)||"px";let d,u;return"px"===c?(d=1e3,u=-1e3):"%"===c||"vw"===c||"vh"===c?(d=200,u=-200):"rem"!==c&&"em"!==c||(d=10,u=0),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-position-control",children:[(0,I.jsx)(Ut,{label:(0, | |
| 251 | +L.__)("Position","ablocks"),options:m.vO,isResponsive:!1,attributeObjectKey:"positionType",attributeValue:o,attributeName:i,setAttributes:a}),"relative"!==b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Horizontal Orientation","ablocks"),attributeObjectKey:"hOrientation",options:m.Jk,attributeValue:o,isInline:!1,onChangeHandler:r}),(0,I.jsx)("div",{className:"ablocks-position-control__offset",children:(0,I.jsx)(_t,{...t,hasUnit:!0,isInline:!1,min:u,max:d,onChangeHandler:r,label:(0,L.__)("Offset X","ablocks"),attributeObjectKey:"hOffset",attributeDefaultValue:s,autoSyncRange:!1})}),(0,I.jsx)(Jt,{label:(0,L.__)("Vertical Orientation","ablocks"),attributeObjectKey:"vOrientation",options:m.p1,attributeValue:o,isInline:!1,onChangeHandler:r}),(0,I.jsx)("div",{className:"ablocks-position-control__offset",children:(0,I.jsx)(_t,{...t,hasUnit:!0,isInline:!1,min:u,max:d,onChangeHandler:r,label:(0,L.__)("Offset Y","ablocks"),attributeObjectKey:"vOffset",attributeDefaultValue:s, | |
| 252 | +autoSyncRange:!1})})]})]})})};ws.propTypes=js;const zs=ws,Cs={label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,placeholder:Y().string,isInline:Y().bool,min:Y().number,max:Y().number,step:Y().number,disableDynamicContent:Y().bool,dynamicType:Y().string};function As(t){const{label:e="",placeholder:i="",attributeName:o={},attributeValue:a="",disableDynamicContent:n=!0,setAttributes:r,onChangeHandler:b,isInline:c=!0,min:d,max:u,step:p,dynamicType:m="text",attributeObjectValue:h}=t,g=$l({disableDynamicContent:n,attributeName:o,attributeValue:a,setAttributes:r,dynamicType:m,attributeObjectValue:h});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:s()("ablocks-control ablocks-control--number",{"ablocks-control--inline":c}),children:[(0,I.jsx)(at,{label:e,isResponsive:!1,affordance:g.affordance}),g.field||(0,I.jsx)(N.TextControl,{className:"ablocks-control--number",value:a,onChange:t=>{var e;e=Number(t),b?b(e):(t=>{r({[o]:t})})(e)}, | |
| 253 | +placeholder:i,type:"number",min:d,max:u,step:p})]})})}As.propTypes=Cs;const Ls={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func},Ds=t=>{const{label:e="",isResponsive:i=!0,attributeName:o,attributeValue:a,setAttributes:n,onChangeHandler:s}=t,r=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--zindex ablocks-control--inline",children:[(0,I.jsx)("div",{className:"ablocks-control__head",children:e&&(0,I.jsx)(at,{label:e,isResponsive:i})}),(0,I.jsx)("div",{className:"ablocks-control__fields",children:(0,I.jsx)(As,{attributeValue:a["zIndex"+r],placeholder:String((0,M.u3)(a,"zIndex",r)??""),onChangeHandler:t=>((t,e)=>{s?s(t,e,(0,h.tJ)(i)):((t,e)=>{n(i?{[o]:(0,M.jI)((0,h.tJ)(i),{...a,["zIndex"+e]:t})}:{[o]:t})})(t,e)})(t,r)})})]})})};Ds.propTypes=Ls;const Ns=Ds;function Is(t){ | |
| 254 | +const{attributeValue:e,attributeObjectKey:i,onSelectImageHandler:o,onRemoveImageHandler:a,deviceType:l="",disableDynamicContent:n,attributeName:s,attributeObjectValue:r,setAttributes:b,dynamicType:c="image"}=t,d=i||s;let u;const p=(0,M.By)(l,t=>e[d+t]),m=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.MediaUpload,{allowedTypes:["image"],value:null,onSelect:t=>{o(t,l)},render:({open:t})=>(0,I.jsx)("div",{className:"ablocks-background-image--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Replace Image","ablocks"),isShowPrimaryLabel:!0})})}),(0,I.jsx)("div",{className:"ablocks-delete-icon-wrapper",children:(0,I.jsx)(X,{onClick:()=>a(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})})]});return u=p?(0,I.jsxs)("div",{className:"ablocks-image-wrapper",children:[(0,I.jsx)("img",{src:p,alt:(0,L.__)("Preview","ablocks"),className:"ablocks-image"}),m]}):(0,I.jsx)(D.MediaUpload,{allowedTypes:["image"],value:d+l,onSelect:t=>{o(t,l)},render:({open:t})=>(0, | |
| 255 | +I.jsxs)("div",{className:"ablocks-placeholder-image-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-image--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Choose Image…","ablocks"),isShowPrimaryLabel:!0})})]})}),(0,I.jsx)("div",{className:"ablocks-media-upload-field-wrapper",children:(0,I.jsx)(Gl,{attributeName:s,disableDynamicContent:n,attributeObjectKey:i,attributeValue:e,setAttributes:b,dynamicType:c,attributeObjectValue:r,children:u})})}(0,L.__)("None","ablocks"),(0,L.__)("Color","ablocks"),(0,L.__)("Image","ablocks"),(0,L.__)("Video","ablocks");const Vs=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Full","ablocks"),value:"100%"},{label:(0,L.__)("Large","ablocks"),value:"1024px"},{label:(0,L.__)("Medium","ablocks"),value:"300px"},{label:(0,L.__)("Thumbnail","ablocks"),value:"150px"}],Os=[{label:(0, | |
| 256 | +L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Center Left","ablocks"),value:"center left"},{label:(0,L.__)("Center Right","ablocks"),value:"center right"},{label:(0,L.__)("Top Center","ablocks"),value:"top center"},{label:(0,L.__)("Top Left","ablocks"),value:"top left"},{label:(0,L.__)("Top Right","ablocks"),value:"top right"},{label:(0,L.__)("Bottom center","ablocks"),value:"bottom center"},{label:(0,L.__)("Bottom left","ablocks"),value:"bottom left"},{label:(0,L.__)("Bottom Right","ablocks"),value:"bottom right"},{label:(0,L.__)("Custom","ablocks"),value:"custom"}],Ys=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Scroll","ablocks"),value:"scroll"},{label:(0,L.__)("Fixed","ablocks"),value:"fixed"}],Xs=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("No repeat","ablocks"),value:"no-repeat"},{label:(0,L.__)("Repeat","ablocks"),value:"repeat"},{label:(0, | |
| 257 | +L.__)("Repeat x","ablocks"),value:"repeat-x"},{label:(0,L.__)("Repeat y","ablocks"),value:"repeat-y"}],Bs=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Cover","ablocks"),value:"cover"},{label:(0,L.__)("Contain","ablocks"),value:"contain"},{label:(0,L.__)("Custom","ablocks"),value:"custom"}],Es={attributeValue:Y().object,changeHandler:Y().func,isResponsive:Y().bool,hover:Y().bool,onChangeHandler:Y().func,onSelectImageHandler:Y().func,onRemoveImageHandler:Y().func,setAttributes:Y().func.isRequired,disableDynamicContent:Y().bool};function Fs(t){const{attributeValue:e,isResponsive:i,hover:o,attributeName:a,changeHandler:n,onSelectImageHandler:s,onRemoveImageHandler:r,setAttributes:b,disableDynamicContent:c=!1}=t,d=lt(),u={...t},p=t=>(t=>{switch(t){case"px":default:return 1e3;case"%":case"em":return 100;case"rem":return 50}})(e[t]),m=t=>o?`${t}H`:t;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(at,{label:(0, | |
| 258 | +L.__)("Image","ablocks"),isResponsive:i}),(0,I.jsx)(Is,{setAttributes:b,allowedTypes:["image"],attributeValue:e,deviceType:d,onSelectImageHandler:s,onRemoveImageHandler:r,attributeName:a,attributeObjectKey:m("imgUrl"),disableDynamicContent:c}),e[m("imgUrl")]&&(0,I.jsxs)("div",{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Image Size","ablocks"),options:Vs,isSearch:!0,isResponsive:i,attributeValue:e,attributeObjectKey:m("imgSize"),attributeName:a,setAttributes:b}),(0,I.jsx)(Ut,{label:(0,L.__)("Position","ablocks"),options:Os,isResponsive:!0,attributeValue:e,attributeObjectKey:m("imgPosition"),attributeName:a,setAttributes:b}),"custom"===(0,M.Ic)(e,m("imgPosition"),d)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{...u,label:"X position",min:-500,max:p(m("imgXPosition")+"Unit"),step:1,hasUnit:!0,isInline:!1,onChangeHandler:n,attributeObjectKey:m("imgXPosition")}),(0,I.jsx)(_t,{...u,label:"Y position",min:-500,max:p(m("imgYPosition")+"Unit"),step:1,hasUnit:!0,isInline:!1,onChangeHandler:n, | |
| 259 | +attributeObjectKey:m("imgYPosition")})]}),(0,I.jsx)(Ut,{label:(0,L.__)("Attachment","ablocks"),options:Ys,isResponsive:!1,attributeValue:e,attributeObjectKey:m("imgAttachment"),attributeName:a,setAttributes:b}),(0,I.jsx)(Ut,{label:(0,L.__)("Repeat","ablocks"),options:Xs,isResponsive:!0,attributeValue:e,attributeObjectKey:m("imgRepeat"),attributeName:a,setAttributes:b}),(0,I.jsx)(Ut,{label:(0,L.__)("Display size","ablocks"),options:Bs,isResponsive:!0,attributeValue:e,attributeObjectKey:m("imgDisplaySize"),attributeName:a,setAttributes:b}),"custom"===(0,M.Ic)(e,m("imgDisplaySize"),d)&&(0,I.jsx)(_t,{...u,label:"Width",min:0,max:p(m("imgDisplaySizeWidth")+"Unit"),hasUnit:!0,isInline:!1,onChangeHandler:n,attributeObjectKey:m("imgDisplaySizeWidth")})]})]})}function qs(t){const{attributeName:e,setAttributes:i,attributeValue:o,isResponsive:a,hover:l,deviceType:n}=t,s={...t};return(0,I.jsx)(Fs,{...s,disableDynamicContent:!0,onSelectImageHandler:(t,n)=>{const s=n||"",r={ | |
| 260 | +[(l?"imgIdH":"imgId")+s]:t?.id,[(l?"imgUrlH":"imgUrl")+s]:t?.url};i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,...r})})},onRemoveImageHandler:()=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,[l?"imgIdH"+n:"imgId"+n]:void 0,[l?"imgUrlH"+n:"imgUrl"+n]:void 0})})}})}function $s(t){const{attributeName:e,attributeValue:i,setAttributes:o,changeHandler:a}=t;return(0,I.jsxs)("div",{className:"ablocks-control--background__video--upload",children:[(0,I.jsx)(Kl,{label:(0,L.__)("Start","ablocks"),placeholder:"",attributeValue:i?.videoStartTime,attributeName:e,setAttributes:o,onChangeHandler:t=>a(t,"videoStartTime")}),(0,I.jsx)("span",{className:"ablocks-control--background__video--upload__description",children:(0,L.__)("Specify a start time (in seconds)","ablocks")}),"vimeo"!==i?.videoSource&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("End","ablocks"),placeholder:"",attributeValue:i?.videoEndTime,attributeName:e,setAttributes:o,onChangeHandler:t=>a(t,"videoEndTime")}),(0,I.jsx)("span",{ | |
| 261 | +className:"ablocks-control--background__video--upload__description",children:(0,L.__)("Specify a end time (in seconds)","ablocks")})]})]})}function Gs(t){const{attributeValue:e,onSelectFallbackImageHandler:i,onRemoveFallbackImageHandler:o,setAttributes:a}=t,l=lt();return(0,I.jsxs)("div",{className:"ablocks-control--background__video--fallback",children:[(0,I.jsx)("p",{children:(0,L.__)("Background fallback","ablocks")}),(0,I.jsx)(Is,{setAttributes:a,allowedTypes:["image"],attributeValue:e,deviceType:l,onSelectImageHandler:i,onRemoveImageHandler:o,attributeName:"fallbackImageUrl"}),(0,I.jsx)("span",{className:"ablocks-control--background__video--fallback__description",children:(0,L.__)("This cover image will replace the background video in case that the video could not be loaded","ablocks")})]})}function Zs(t){const{onChangeHandler:e,isBackgroundControl:i}=t,o={...t};return i?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-control--background__video--options", | |
| 262 | +children:[(0,I.jsx)("p",{children:(0,L.__)("Play once","ablocks")}),(0,I.jsx)(Ot,{...o,onChangeHandler:e,attributeObjectKey:"videoPlayOnce"})]}),(0,I.jsxs)("div",{className:"ablocks-control--background__video--options",children:[(0,I.jsx)("p",{children:(0,L.__)("Privacy mode","ablocks")}),(0,I.jsx)(Ot,{...o,onChangeHandler:e,attributeObjectKey:"videoPrivacyMode"})]})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{children:(0,L.__)("Autoplay","ablocks")}),(0,I.jsx)(Ot,{...o,onChangeHandler:e,attributeObjectKey:"videoAutoPlay"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{children:(0,L.__)("Mute","ablocks")}),(0,I.jsx)(Ot,{...o,onChangeHandler:e,attributeObjectKey:"videoMute"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{children:(0,L.__)("Loop","ablocks")}),(0,I.jsx)(Ot,{...o,onChangeHandler:e,attributeObjectKey:"videoLoop"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{children:(0,L.__)("Player controls","ablocks")}),(0,I.jsx)(Ot,{...o, | |
| 263 | +onChangeHandler:e,attributeObjectKey:"videoPlayerControls"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{children:(0,L.__)("Download button","ablocks")}),(0,I.jsx)(Ot,{...o,onChangeHandler:e,attributeObjectKey:"videoDownloadButton"})]})]})}function Ks(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-video--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Replace Video","ablocks"),isShowPrimaryLabel:!0})})}),(0,I.jsx)(X,{onClick:()=>l(),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})]});return s=r?(0,I.jsxs)("div",{className:"ablocks-video-wrapper",children:[(0,I.jsx)("video",{src:r,className:"ablocks-video"}),b]}):(0,I.jsx)(D.MediaUpload,{allowedTypes:e,value:o+n, | |
| 264 | +onSelect:t=>{a(t)},render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-placeholder-video-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-video--upload__replace",children:(0,I.jsx)(X,{onClick:t,label:(0,L.__)("Choose Video…","ablocks"),isShowPrimaryLabel:!0})})]})}),s}Fs.propTypes=Es;const Js=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Vimeo","ablocks"),value:"vimeo"},{label:(0,L.__)("Youtube","ablocks"),value:"youtube"},{label:(0,L.__)("Self hosted","ablocks"),value:"selfHosted"}];function Qs(t){const{attributeValue:e,setAttributes:i,attributeName:o,changeHandler:a,onSelectVideoHandler:l,onRemoveVideoHandler:n}=t,s=lt(),{youtubeURL:r="",vimeoURL:b=""}=e;return(0,I.jsxs)("div",{className:"ablocks-control--background__video",children:[(0,I.jsx)(Ut,{label:(0,L.__)("Source","ablocks"),options:Js,isResponsive:!1,attributeValue:e, | |
| 265 | +attributeObjectKey:"videoSource",attributeName:o,setAttributes:i}),"youtube"===e?.videoSource&&(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:r,attributeName:o,setAttributes:i,onChangeHandler:t=>a(t,"youtubeURL")}),"vimeo"===e?.videoSource&&(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:b,attributeName:o,setAttributes:i,onChangeHandler:t=>a(t,"vimeoURL")}),"selfHosted"===e?.videoSource&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-control--background__video--external--link",children:[(0,I.jsx)("p",{children:(0,L.__)("External link","ablocks")}),(0,I.jsx)(Ot,{isResponsive:!0,attributeValue:e?.externalLink,setAttributes:i,onChangeHandler:t=>a(t,"externalLink")})]}),e?.externalLink?(0,I.jsx)("div",{children:(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:e?.selfHostedURL,attributeName:o,setAttributes:i,onChangeHandler:t=>a(t,"selfHostedURL")})}):(0,I.jsxs)("div",{children:[(0, | |
| 266 | +I.jsx)("p",{children:(0,L.__)("Video","ablocks")}),(0,I.jsx)(Ks,{allowedTypes:["video"],attributeValue:e,deviceType:s,onSelectImageHandler:l,onRemoveImageHandler:n,attributeName:"videoUrl"})]})]})]})}const tr={changeHandler:Y().func,onSelectVideoHandler:Y().func,onRemoveVideoHandler:Y().func,onSelectFallbackImageHandler:Y().func,onRemoveFallbackImageHandler:Y().func,isBackgroundControl:Y().bool,attributeName:Y().string,attributeValue:Y().object,setAttributes:Y().func};function er(t){const{changeHandler:e,onSelectVideoHandler:i,onRemoveVideoHandler:o,onSelectFallbackImageHandler:a,onRemoveFallbackImageHandler:l,isBackgroundControl:n}=t,s={...t};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Qs,{...s,changeHandler:e,onSelectVideoHandler:i,onRemoveVideoHandler:o}),s?.attributeValue?.videoSource&&"none"!==s?.attributeValue?.videoSource&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)($s,{...s}),(0,I.jsx)(Zs,{...s,isBackgroundControl:n})]}),(0,I.jsx)(Gs,{...s,onSelectFallbackImageHandler:a, | |
| 267 | +onRemoveFallbackImageHandler:l})]})}function ir(t){const{attributeName:e,setAttributes:i,attributeValue:o,isResponsive:a}=t,l={...t};return(0,I.jsx)(er,{...l,onSelectVideoHandler:t=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,videoUrl:t?.url})})},onRemoveVideoHandler:()=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,videoUrl:void 0})})},onSelectFallbackImageHandler:t=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,fallbackImageUrl:t?.url})})},onRemoveFallbackImageHandler:()=>{i({[e]:(0,M.jI)((0,d.tJ)(a),{...o,fallbackImageUrl:void 0})})},isBackgroundControl:!0})}function or(t){const{hover:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l}=t;let n="backgroundColor";return e&&(n="backgroundColorH"),(0,I.jsx)(Ws,{isGradient:!0,label:(0,L.__)("Background color","ablocks"),attributeName:n,attributeValue:i[n],onChangeHandler:(t,e)=>{o(e,t)},resetHandler:()=>{const t={...i};delete t[n],delete t[n+"Global"],l({[a]:t})},setAttributes:t=>{const e={...t};delete e[n+"Global"],l({[a]:{...i,...e}})}})} | |
| 268 | +er.propTypes=tr;const ar=t=>{const{setAttributes:e,attributeValue:i,hover:o,changeHandler:a,isContainer:l}=t,n={...t};return(0,I.jsxs)("div",{className:"ablocks-control--backgroundOverlay-all-options-wrapper ablocks-control--backgroundOverlay-all-options-wrapper-"+(o?"hover":"normal"),children:[!o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isInline:!0,options:l?d.yP:d.B2,attributeName:o?"backgroundTypeH":"backgroundType",attributeValue:i?.[o?"backgroundTypeH":"backgroundType"],setAttributes:e,attributeObjectKey:o?"backgroundTypeH":"backgroundType",onChangeHandler:a}),"color"===i?.backgroundType&&(0,I.jsx)(or,{...n}),"image"===i?.backgroundType&&(0,I.jsx)(qs,{...n}),"video"===i?.backgroundType&&1==l&&(0,I.jsx)(ir,{...n,changeHandler:a})]}),o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isInline:!0,options:l?d.B2:d.yP,attributeName:o?"backgroundTypeH":"backgroundType", | |
| 269 | +attributeValue:i?.[o?"backgroundTypeH":"backgroundType"],setAttributes:e,attributeObjectKey:o?"backgroundTypeH":"backgroundType",onChangeHandler:a}),"color"===i?.backgroundTypeH&&(0,I.jsx)(or,{...n,hover:o}),"image"===i?.backgroundTypeH&&(0,I.jsx)(qs,{...n,hover:o}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:i?.transitionDuration||0,attributeObjectKey:"transitionDuration",setAttributes:e,onChangeHandler:a})]})]})},lr={isResponsive:Y().bool,attributeName:Y().string,attributeValue:Y().any,setAttributes:Y().func};function nr(t){const{attributeName:e,attributeValue:i,setAttributes:o,isResponsive:a=!0}=t,l=lt(),n=(0,d.tJ)(a),s=(t,l,n="")=>o(a?{[e]:(0,M.jI)((0,d.tJ)(a),{...i,[l+n]:t})}:{[e]:{[l]:t}}),r=(t,a)=>o({[e]:(0,M.jI)(n,{...i,[a]:t})});return(0,I.jsx)("div",{className:"ablocks-control ablocks-control--background",children:(0,I.jsx)(At,{normal:(0,I.jsx)(ar,{...t,deviceType:l,changeHandler:s, | |
| 270 | +onChangeHandler:r,isContainer:t.isContainer}),hover:(0,I.jsx)(ar,{...t,hover:!0,deviceType:l,changeHandler:s,onChangeHandler:r})})})}function sr(t){const{hover:e}=t;return(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"),attributeObjectKey:e?"blurH":"blur"}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Brightness","ablocks"),attributeObjectKey:e?"brightnessH":"brightness"}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Contrast","ablocks"),attributeObjectKey:e?"contrastH":"contrast"}),(0,I.jsx)(_t,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Saturate","ablocks"),attributeObjectKey:e?"saturateH":"saturate"}),(0,I.jsx)(_t,{...t,min:0,max:360,step:1,hasUnit:!1,isInline:!1,label:(0,L.__)("Hue","ablocks"),attributeObjectKey:e?"hueH":"hue"})]})}function rr(t){ | |
| 271 | +const{hover:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l}=t;let n="backgroundColor";return e&&(n="backgroundColorH"),(0,I.jsx)(Ws,{isGradient:!0,label:(0,L.__)("Background color","ablocks"),attributeName:n,attributeValue:i[n],onChangeHandler:(t,e)=>{o(e,t)},resetHandler:()=>{const t={...i};delete t[n],delete t[n+"Global"],l({[a]:t})},setAttributes:t=>{const e={...t};delete e[n+"Global"],l({[a]:{...i,...e}})}})}nr.propTypes=lr;const br=t=>{const{setAttributes:e,attributeName:i,attributeValue:o,hover:l,isResponsive:n=!1,deviceType:s}=t,[r,b]=(0,a.useState)(!1),c=({toggleVisible:t,isVisible:e})=>(0,I.jsx)(X,{onClick:()=>t(!e),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent"}),d={...t},p=(t,a)=>{const s=a||"",r={[(l?"imgIdH":"imgId")+s]:t?.id,[(l?"imgUrlH":"imgUrl")+s]:t?.url};e({[i]:(0,M.jI)((0,u.tJ)(n),{...o,...r})})},m=()=>{e({[i]:(0,M.jI)((0,u.tJ)(n),{...o,[l?"imgIdH"+s:"imgId"+s]:void 0,[l?"imgUrlH"+s:"imgUrl"+s]:void 0}) | |
| 272 | +})},h=()=>{e({[i]:(0,M.jI)((0,u.tJ)(n),{...o,[l?"blurH":"blur"]:0,[l?"brightnessH":"brightness"]:100,[l?"contrastH":"contrast"]:100,[l?"saturateH":"saturate"]:100,[l?"hueH":"hue"]:0})})};return(0,I.jsxs)("div",{className:"ablocks-control--backgroundOverlay-all-options-wrapper ablocks-control--backgroundOverlay-all-options-wrapper-"+(l?"hover":"normal"),children:[(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:u.xW,isResponsive:!1,attributeValue:o,attributeObjectKey:l?"backgroundOverlayTypeH":"backgroundOverlayType",attributeName:i,setAttributes:e}),"color"===o?.backgroundOverlayType&&!l&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(rr,{...d}),(0,I.jsx)(_t,{...d,label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacity",attributeDefaultValue:u.ke}),(0,I.jsx)(Ut,{label:(0,L.__)("Blend mode","ablocks"),options:u.hP,isResponsive:!1,attributeValue:o,attributeObjectKey:"blendMode",attributeName:i,setAttributes:e}),(0,I.jsx)(Xt,{ | |
| 273 | +isShowPrimaryLabel:!0,label:(0,L.__)("CSS Filters"),CustomToggler:c,isVisible:r,isReset:!0,handleReset:h,toggleVisible:b,children:(0,I.jsx)(sr,{...d,hover:l,deviceType:s})})]}),"image"===o?.backgroundOverlayType&&!l&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Fs,{...d,onSelectImageHandler:p,onRemoveImageHandler:m}),o?.imgUrl&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{...d,label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacity",attributeDefaultValue:u.ke}),(0,I.jsx)(Ut,{label:(0,L.__)("Blend mode","ablocks"),options:u.hP,isResponsive:!1,attributeValue:o,attributeObjectKey:"blendMode",attributeName:i,setAttributes:e}),(0,I.jsx)(Xt,{isShowPrimaryLabel:!0,label:(0,L.__)("CSS Filters"),CustomToggler:c,isReset:!0,handleReset:h,isVisible:r,toggleVisible:b,children:(0,I.jsx)(sr,{...d,hover:l,deviceType:s})})]})]}),"color"===o?.backgroundOverlayTypeH&&l&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(rr,{...d}),(0,I.jsx)(_t,{...d,label:(0, | |
| 274 | +L.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacityH",attributeDefaultValue:u.md}),(0,I.jsx)(Xt,{isShowPrimaryLabel:!0,label:(0,L.__)("CSS Filters"),CustomToggler:c,isReset:!0,handleReset:h,isVisible:r,toggleVisible:b,children:(0,I.jsx)(sr,{...d,hover:l,deviceType:s})})]}),"image"===o?.backgroundOverlayTypeH&&l&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Fs,{...d,onSelectImageHandler:p,onRemoveImageHandler:m}),o?.imgUrlH&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{...d,label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.01,isInline:!1,attributeObjectKey:"opacityH",attributeDefaultValue:u.md}),(0,I.jsx)(Xt,{isShowPrimaryLabel:!0,label:(0,L.__)("CSS Filters"),CustomToggler:c,isReset:!0,handleReset:h,isVisible:r,toggleVisible:b,children:(0,I.jsx)(sr,{...d,hover:l,deviceType:s})})]})]}),l&&(0,I.jsx)(_t,{...d,label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,isInline:!1,attributeObjectKey:"transitionDuration"})]})},cr={ | |
| 275 | +isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any};function dr(t){const{attributeName:e,attributeValue:i,setAttributes:o,isResponsive:a=!0}=t,l=lt(),n=(t,l,n="")=>o({[e]:(0,M.jI)((0,u.tJ)(a),{...i,[l+n]:t})});return(0,I.jsx)("div",{className:"ablocks-control ablocks-control--backgroundOverlay",children:(0,I.jsx)(At,{normal:(0,I.jsx)(br,{...t,deviceType:l,changeHandler:n}),hover:(0,I.jsx)(br,{...t,hover:!0,deviceType:l,changeHandler:n})})})}dr.propTypes=cr;const ur=[{value:"contain",label:(0,L.__)("Fit","ablocks")},{value:"cover",label:(0,L.__)("Fill","ablocks")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],pr=t=>{const{deviceType:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l,attributeDefaultValue:n}=t,s=t=>(0,M.Ic)(i,t,e);let r=500;return"px"===s("scaleUnit")&&(r=500),"%"===s("scaleUnit")&&(r=200),"em"!==s("scaleUnit")&&"vw"!==s("scaleUnit")||(r=100),"rem"===s("scaleUnit")&&(r=10),(0,I.jsxs)(I.Fragment,{children:[(0, | |
| 276 | +I.jsx)(Ut,{options:ur,isResponsive:!0,attributeValue:i,label:(0,L.__)("Size","ablocks"),attributeName:a,attributeObjectKey:"maskSize",setAttributes:l}),"custom"===s("maskSize")&&(0,I.jsx)("div",{className:"ablocks-mask-control__size",children:(0,I.jsx)(_t,{...t,label:(0,L.__)("Scale","ablocks"),min:0,max:r,hasUnit:!0,isInline:!1,onChangeHandler:o,attributeObjectKey:"scale",attributeDefaultValue:n})})]})},mr=[{value:"circle",label:(0,L.__)("Circle","ablocks")},{value:"flower",label:(0,L.__)("Flower","ablocks")},{value:"sketch",label:(0,L.__)("Sketch","ablocks")},{value:"triangle",label:(0,L.__)("Triangle","ablocks")},{value:"blob",label:(0,L.__)("Blob","ablocks")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],hr=t=>{const{deviceType:e,attributeValue:i,isResponsive:o,attributeName:a,setAttributes:l}=t;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{options:mr,isResponsive:!1,attributeValue:i,label:(0,L.__)("Shape","ablocks"),attributeName:a,attributeObjectKey:"maskShape", | |
| 277 | +setAttributes:l}),"custom"===i.maskShape&&(0,I.jsx)(Is,{setAttributes:l,allowedTypes:["image"],attributeValue:i,attributeName:a,attributeObjectKey:"customMaskShape",onSelectImageHandler:t=>{l({[a]:(0,M.jI)((0,T.tJ)(o),{...i,customMaskShape:t?.url})})},onRemoveImageHandler:()=>{l({[a]:(0,M.jI)((0,T.tJ)(o),{...i,customMaskShape:void 0})})}})]})},gr=[{value:"center center",label:(0,L.__)("Center Center","ablocks")},{value:"center left",label:(0,L.__)("Center Left","ablocks")},{value:"center right",label:(0,L.__)("Center Right","ablocks")},{value:"top center",label:(0,L.__)("Top Center","ablocks")},{value:"top left",label:(0,L.__)("Top Left","ablocks")},{value:"top right",label:(0,L.__)("Top Right","ablocks")},{value:"bottom center",label:(0,L.__)("Bottom Center","ablocks")},{value:"bottom left",label:(0,L.__)("Bottom Left","ablocks")},{value:"bottom right",label:(0,L.__)("Bottom Right","ablocks")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],fr=t=>{ | |
| 278 | +const{deviceType:e,attributeValue:i,changeHandler:o,attributeName:a,setAttributes:l,attributeDefaultValue:n}=t,s=t=>(0,M.Ic)(i,t,e);let r,b,c,d;return"px"===s("xPositionUnit")&&(r=500),"em"!==s("xPositionUnit")&&"vw"!==s("scaleUnit")&&"%"!==s("xPositionUnit")||(r=100),"rem"===s("xPositionUnit")&&(r=10),"px"===s("xPositionUnit")&&(b=-500),"em"!==s("xPositionUnit")&&"vw"!==s("scaleUnit")&&"%"!==s("xPositionUnit")||(b=-100),"rem"===s("xPositionUnit")&&(b=0),"px"===s("yPositionUnit")&&(c=500),"em"!==s("yPositionUnit")&&"vw"!==s("scaleUnit")&&"%"!==s("yPositionUnit")||(c=100),"rem"===s("yPositionUnit")&&(c=10),"px"===s("yPositionUnit")&&(d=-500),"em"!==s("yPositionUnit")&&"vw"!==s("scaleUnit")&&"%"!==s("yPositionUnit")||(d=-100),"rem"===s("yPositionUnit")&&(d=-10),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Position","ablocks"),options:gr,isResponsive:!0,attributeValue:i,attributeObjectKey:"maskPosition",attributeName:a,setAttributes:l}),"custom"===s("maskPosition")&&(0, | |
| 279 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-mask-control__position",children:(0,I.jsx)(_t,{...t,label:(0,L.__)("X Position","ablocks"),min:b,max:r,hasUnit:!0,isInline:!1,onChangeHandler:o,attributeObjectKey:"xPosition",attributeDefaultValue:n})}),(0,I.jsx)("div",{className:"ablocks-mask-control__position",children:(0,I.jsx)(_t,{...t,label:(0,L.__)("Y Position","ablocks"),min:d,max:c,hasUnit:!0,isInline:!1,onChangeHandler:o,attributeObjectKey:"yPosition",attributeDefaultValue:n})})]})]})},yr=[{value:"repeat-x",label:(0,L.__)("Repeat-x","ablocks")},{value:"repeat-y",label:(0,L.__)("Repeat-y","ablocks")},{value:"repeat",label:(0,L.__)("Repeat","ablocks")},{value:"space",label:(0,L.__)("Space","ablocks")},{value:"round",label:(0,L.__)("Round","ablocks")},{value:"no-repeat",label:(0,L.__)("No-repeat","ablocks")}],Tr=function(t){const{deviceType:e,attributeValue:i,setAttributes:o,attributeName:a}=t;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(hr,{...t}),(0, | |
| 280 | +I.jsx)(pr,{...t}),(0,I.jsx)(fr,{...t}),"cover"!==(0,M.Ic)(i,"maskSize",e)&&(0,I.jsx)(Ut,{label:(0,L.__)("Repeat","ablocks"),options:yr,isResponsive:!0,attributeValue:i,attributeObjectKey:"maskRepeat",attributeName:a,setAttributes:o})]})},Hr={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,setAttributes:Y().func};function Mr(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:s=""}=t,r=(0,T.tJ)(e),b="Desktop"!==lt()?lt():"",c=(t,e,i="")=>{a?a(t,i,r):d(t,e,i)},d=(t,a,l)=>n(e?{[i]:(0,M.jI)(r,{...o,[a+l]:t})}:{[i]:{...o,[a+l]:t}}),u={deviceType:b,attributeValue:o,changeHandler:c,attributeDefaultValue:r,...t};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:s,onChangeHandler:c,attributeObjectKey:"mask",attributeValue:o,setAttributes:n,isResponsive:!1,deviceType:b}),o.mask&&(0,I.jsx)(Tr,{...u})]})})} | |
| 281 | +function xr({attributes:t,setAttributes:e}){return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Hide On Desktop","ablocks"),attributeValue:t?._hide_on_desktop,setAttributes:e,attributeName:"_hide_on_desktop"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Hide On Tablet","ablocks"),attributeValue:t?._hide_on_tablet,setAttributes:e,attributeName:"_hide_on_tablet"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Hide On Mobile","ablocks"),attributeValue:t?._hide_on_mobile,setAttributes:e,attributeName:"_hide_on_mobile"})]})}Mr.propTypes=Hr,xr.propTypes={};var kr=i(15039);const vr=[{label:(0,L.__)("default","ablocks"),options:[{value:"none",label:(0,L.__)("None","ablocks")}]},{label:(0,L.__)("Attention Seekers","ablocks"),options:[{value:"bounce",label:(0,L.__)("Bounce","ablocks")},{value:"flash",label:(0,L.__)("Flash","ablocks")},{value:"pulse",label:(0,L.__)("Pulse","ablocks")},{value:"rubberBand",label:(0,L.__)("Rubber Band","ablocks")},{ | |
| 282 | +value:"shakeX",label:(0,L.__)("Shake X","ablocks")},{value:"shakeY",label:(0,L.__)("Shake Y","ablocks")},{value:"headShake",label:(0,L.__)("Head Shake","ablocks")},{value:"swing",label:(0,L.__)("Swing","ablocks")},{value:"tada",label:(0,L.__)("Tada","ablocks")},{value:"wobble",label:(0,L.__)("Wobble","ablocks")},{value:"jello",label:(0,L.__)("Jello","ablocks")},{value:"heartBeat",label:(0,L.__)("Heart Beat","ablocks")}]},{label:(0,L.__)("Back Entrances","ablocks"),options:[{value:"backInDown",label:(0,L.__)("Back In Down","ablocks")},{value:"backInLeft",label:(0,L.__)("Back In Left","ablocks")},{value:"backInRight",label:(0,L.__)("Back In Right","ablocks")},{value:"backInUp",label:(0,L.__)("Back In Up","ablocks")}]},{label:(0,L.__)("Back Exits","ablocks"),options:[{value:"backOutDown",label:(0,L.__)("Back Out Down","ablocks")},{value:"backOutLeft",label:(0,L.__)("Back Out Left","ablocks")},{value:"backOutRight",label:(0,L.__)("Back Out Right","ablocks")},{value:"backOutUp",label:(0, | |
| 283 | +L.__)("Back Out Up","ablocks")}]},{label:(0,L.__)("Bouncing Entrances","ablocks"),options:[{value:"bounceIn",label:(0,L.__)("Bounce In","ablocks")},{value:"bounceInDown",label:(0,L.__)("Bounce In Down","ablocks")},{value:"bounceInLeft",label:(0,L.__)("Bounce In Left","ablocks")},{value:"bounceInRight",label:(0,L.__)("Bounce In Right","ablocks")},{value:"bounceInUp",label:(0,L.__)("Bounce In Up","ablocks")}]},{label:(0,L.__)("Bouncing Exits","ablocks"),options:[{value:"bounceOut",label:(0,L.__)("Bounce Out","ablocks")},{value:"bounceOutDown",label:(0,L.__)("Bounce Out Down","ablocks")},{value:"bounceOutLeft",label:(0,L.__)("Bounce Out Left","ablocks")},{value:"bounceOutRight",label:(0,L.__)("Bounce Out Right","ablocks")},{value:"bounceOutUp",label:(0,L.__)("Bounce Out Up","ablocks")}]},{label:(0,L.__)("Fading Entrances","ablocks"),options:[{value:"fadeIn",label:(0,L.__)("Fade In","ablocks")},{value:"fadeInDown",label:(0,L.__)("Fade In Down","ablocks")},{value:"fadeInDownBig",label:(0, | |
| 284 | +L.__)("Fade In Down Big","ablocks")},{value:"fadeInLeft",label:(0,L.__)("Fade In Left","ablocks")},{value:"fadeInLeftBig",label:(0,L.__)("Fade In Left Big","ablocks")},{value:"fadeInRight",label:(0,L.__)("Fade In Right","ablocks")},{value:"fadeInRightBig",label:(0,L.__)("Fade In Right Big","ablocks")},{value:"fadeInUp",label:(0,L.__)("Fade In Up","ablocks")},{value:"fadeInUpBig",label:(0,L.__)("Fade In Up Big","ablocks")},{value:"fadeInTopLeft",label:(0,L.__)("Fade In Top Left","ablocks")},{value:"fadeInTopRight",label:(0,L.__)("Fade In Top Right","ablocks")},{value:"fadeInBottomLeft",label:(0,L.__)("Fade In Bottom Left","ablocks")},{value:"fadeInBottomRight",label:(0,L.__)("Fade In Bottom Right","ablocks")}]},{label:(0,L.__)("Fading Exits","ablocks"),options:[{value:"fadeOut",label:(0,L.__)("Fade Out","ablocks")},{value:"fadeOutDown",label:(0,L.__)("Fade Out Down","ablocks")},{value:"fadeOutDownBig",label:(0,L.__)("Fade Out Down Big","ablocks")},{value:"fadeOutLeft",label:(0, | |
| 285 | +L.__)("Fade Out Left","ablocks")},{value:"fadeOutLeftBig",label:(0,L.__)("Fade Out Left Big","ablocks")},{value:"fadeOutRight",label:(0,L.__)("Fade Out Right","ablocks")},{value:"fadeOutRightBig",label:(0,L.__)("Fade Out Right Big","ablocks")},{value:"fadeOutUp",label:(0,L.__)("Fade Out Up","ablocks")},{value:"fadeOutUpBig",label:(0,L.__)("Fade Out Up Big","ablocks")},{value:"fadeOutTopLeft",label:(0,L.__)("Fade Out Top Left","ablocks")},{value:"fadeOutTopRight",label:(0,L.__)("Fade Out Top Right","ablocks")},{value:"fadeOutBottomRight",label:(0,L.__)("Fade Out Bottom Right","ablocks")},{value:"fadeOutBottomLeft",label:(0,L.__)("Fade Out Bottom Left","ablocks")}]},{label:(0,L.__)("Flippers","ablocks"),options:[{value:"flip",label:(0,L.__)("Flip","ablocks")},{value:"flipInX",label:(0,L.__)("Flip In X","ablocks")},{value:"flipInY",label:(0,L.__)("Flip In Y","ablocks")},{value:"flipOutX",label:(0,L.__)("Flip Out X","ablocks")},{value:"flipOutY",label:(0,L.__)("Flip Out Y","ablocks")}]},{ | |
| 286 | +label:(0,L.__)("Lightspeed","ablocks"),options:[{value:"lightSpeedInRight",label:(0,L.__)("Light Speed In Right","ablocks")},{value:"lightSpeedInLeft",label:(0,L.__)("Light Speed In Left","ablocks")},{value:"lightSpeedOutRight",label:(0,L.__)("Light Speed Out Right","ablocks")},{value:"lightSpeedOutLeft",label:(0,L.__)("Light Speed Out Left","ablocks")}]},{label:(0,L.__)("Rotating Entrances","ablocks"),options:[{value:"rotateIn",label:(0,L.__)("Rotate In","ablocks")},{value:"rotateInDownLeft",label:(0,L.__)("Rotate In Down Left","ablocks")},{value:"rotateInDownRight",label:(0,L.__)("Rotate In Down Right","ablocks")},{value:"rotateInUpLeft",label:(0,L.__)("Rotate In Up Left","ablocks")},{value:"rotateInUpRight",label:(0,L.__)("Rotate In Up Right","ablocks")}]},{label:(0,L.__)("Rotating Exits","ablocks"),options:[{value:"rotateOut",label:(0,L.__)("Rotate Out","ablocks")},{value:"rotateOutDownLeft",label:(0,L.__)("Rotate Out Down Left","ablocks")},{value:"rotateOutDownRight",label:(0, | |
| 287 | +L.__)("Rotate Out Down Right","ablocks")},{value:"rotateOutUpLeft",label:(0,L.__)("Rotate Out Up Left","ablocks")},{value:"rotateOutUpRight",label:(0,L.__)("Rotate Out Up Right","ablocks")}]},{label:(0,L.__)("Specials","ablocks"),options:[{value:"hinge",label:(0,L.__)("Hinge","ablocks")},{value:"jackInTheBox",label:(0,L.__)("Jack In The Box","ablocks")},{value:"rollIn",label:(0,L.__)("Roll In","ablocks")},{value:"rollOut",label:(0,L.__)("Roll Out","ablocks")}]},{label:(0,L.__)("Zooming Entrances","ablocks"),options:[{value:"zoomIn",label:(0,L.__)("Zoom In","ablocks")},{value:"zoomInDown",label:(0,L.__)("Zoom In Down","ablocks")},{value:"zoomInLeft",label:(0,L.__)("Zoom In Left","ablocks")},{value:"zoomInRight",label:(0,L.__)("Zoom In Right","ablocks")},{value:"zoomInUp",label:(0,L.__)("Zoom In Up","ablocks")}]},{label:(0,L.__)("Zooming Exits","ablocks"),options:[{value:"zoomOut",label:(0,L.__)("Zoom Out","ablocks")},{value:"zoomOutDown",label:(0,L.__)("Zoom Out Down","ablocks")},{ | |
| 288 | +value:"zoomOutLeft",label:(0,L.__)("Zoom Out Left","ablocks")},{value:"zoomOutRight",label:(0,L.__)("Zoom Out Right","ablocks")},{value:"zoomOutUp",label:(0,L.__)("Zoom Out Up","ablocks")}]},{label:(0,L.__)("Sliding Entrances","ablocks"),options:[{value:"slideInDown",label:(0,L.__)("Slide In Down","ablocks")},{value:"slideInLeft",label:(0,L.__)("Slide In Left","ablocks")},{value:"slideInRight",label:(0,L.__)("Slide In Right","ablocks")},{value:"slideInUp",label:(0,L.__)("Slide In Up","ablocks")}]},{label:(0,L.__)("Sliding Exits","ablocks"),options:[{value:"slideOutDown",label:(0,L.__)("Slide Out Down","ablocks")},{value:"slideOutLeft",label:(0,L.__)("Slide Out Left","ablocks")},{value:"slideOutRight",label:(0,L.__)("Slide Out Right","ablocks")},{value:"slideOutUp",label:(0,L.__)("Slide Out Up","ablocks")}]}];var _r=i(43271);const Rr={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any},Sr=t=>{ | |
| 289 | +const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:a,label:n=""}=t,s=lt(),r=t=>a({[i]:(0,M.jI)((0,kr.t)(e),{...o,["animationType"+s]:t})}),b="none"!==o["animationType"+s]&&""!==o["animationType"+s];return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-control ablocks-animation-control",children:[b&&(0,I.jsx)(X,{type:"button",onClick:()=>{localStorage.setItem("ablocksAnimationType",o["animationType"+s]),r(""),setTimeout(()=>{r(localStorage.getItem("ablocksAnimationType"))},[1e3])},label:(0,L.__)("Run Animation Again","ablocks")}),n&&(0,I.jsx)(at,{label:n,isResponsive:e}),(0,I.jsx)(Rl,{...Sl(),classNamePrefix:"ablocks-animation",options:vr,value:(t=>{for(const e of vr){const i=e.options.find(e=>e.value===t);if(i)return i}return null})(o["animationType"+s]),isSearchable:!0,onChange:t=>{r(t?t.value:"")},placeholder:(0,L.__)("Select Animation","ablocks")}),b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Duration","ablocks"), | |
| 290 | +isResponsive:!1,hasUnit:!1,min:"0",max:"10",step:.1,attributeName:i,attributeObjectKey:"animationDuration",attributeValue:o,setAttributes:a,attributeDefaultValue:_r.Vj,attributeDataType:"object"}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("Delay","ablocks"),isResponsive:!1,hasUnit:!1,min:"0",max:"10",step:.1,attributeName:i,attributeObjectKey:"animationDelay",attributeValue:o,setAttributes:a,attributeDefaultValue:_r.Vj,attributeDataType:"object"})]})]})})};Sr.propTypes=Rr;const Wr=Sr;function Pr(t){const[e,i]=(0,a.useState)(!1),o=(0,a.useRef)(null),{label:l,attributeValue:n,hover:s,attributeName:r,setAttributes:b,changeHandler:c}=t;let d="preset",u="shadowType",p="shadow",m="horizontal",h="vertical",g="blur",f="spread",y="color";s&&(d="presetH",u="shadowTypeH",p="shadowH",m="horizontalH",h="verticalH",g="blurH",f="spreadH",y="colorH");const T=()=>{const t=(0,M.jI)((0,H.tJ)(),{...n,[d]:1,[u]:"",[p]:"",[m]:"",[h]:"",[g]:"",[f]:"",[y]:""});b({[r]:t})};return(0,I.jsxs)("div",{ | |
| 291 | +className:"ablocks-box-shadow",children:[l&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:l,isResponsive:!1})}),(0,I.jsx)("div",{className:"ablocks-box-shadow__control",onClick:()=>i(!e),role:"presentation",children:void 0!==n[u]&&"default"!==n[u]?(0,I.jsxs)("div",{className:"ablocks-box-shadow__placeholder",children:[(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,I.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z",fill:"#13191B"}),(0,I.jsx)("path",{ | |
| 292 | +d:"M11.7499 11.875C11.6599 11.875 11.5599 11.87 11.4699 11.865C11.2849 11.855 11.1349 11.705 11.1199 11.52C11.0099 10.125 9.87488 8.99499 8.48488 8.88499C8.29988 8.86999 8.14988 8.72 8.13988 8.535C8.13488 8.445 8.12988 8.345 8.12988 8.255C8.12988 6.255 9.75488 4.63 11.7549 4.63C13.7549 4.63 15.3799 6.255 15.3799 8.255C15.3799 10.255 13.7499 11.875 11.7499 11.875ZM8.87488 8.17999C10.3649 8.44499 11.5599 9.635 11.8199 11.125C13.3749 11.085 14.6249 9.815 14.6249 8.25C14.6249 6.665 13.3349 5.375 11.7499 5.375C10.1899 5.375 8.91488 6.62499 8.87488 8.17999Z",fill:"white"}),(0,I.jsx)("path",{ | |
| 293 | +d:"M8.25 15.375C6.25 15.375 4.625 13.75 4.625 11.75C4.625 9.75 6.25 8.125 8.25 8.125C8.34 8.125 8.44 8.12999 8.53 8.13499C10.295 8.27499 11.725 9.70501 11.86 11.46C11.865 11.56 11.87 11.66 11.87 11.75C11.875 13.75 10.25 15.375 8.25 15.375ZM8.25 8.875C6.665 8.875 5.375 10.165 5.375 11.75C5.375 13.335 6.665 14.625 8.25 14.625C9.835 14.625 11.125 13.335 11.125 11.75C11.125 11.67 11.12 11.59 11.115 11.51C11.005 10.125 9.87 8.99 8.48 8.88C8.41 8.88 8.33 8.875 8.25 8.875Z",fill:"white"}),(0,I.jsx)("path",{ | |
| 294 | +d:"M8.25 13.375C8.115 13.375 7.985 13.3 7.92 13.18L7.53 12.47L6.82001 12.08C6.70001 12.015 6.625 11.89 6.625 11.75C6.625 11.61 6.70001 11.485 6.82001 11.42L7.53 11.03L7.92 10.32C8.05 10.08 8.445 10.08 8.58 10.32L8.97 11.03L9.67999 11.42C9.79999 11.485 9.875 11.61 9.875 11.75C9.875 11.89 9.79999 12.015 9.67999 12.08L8.97 12.47L8.58 13.18C8.515 13.3 8.385 13.375 8.25 13.375ZM7.78 11.75L7.985 11.865C8.05 11.9 8.09999 11.95 8.13499 12.015L8.25 12.22L8.36501 12.015C8.40001 11.95 8.45 11.9 8.515 11.865L8.72 11.75L8.515 11.635C8.45 11.6 8.40001 11.55 8.36501 11.485L8.25 11.28L8.13499 11.485C8.09999 11.55 8.05 11.6 7.985 11.635L7.78 11.75Z",fill:"white"})]}),(0,I.jsx)("span",{role:"presentation",children:H.Ji?.find(t=>t.value===n[u])?.label}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:t=>{t.stopPropagation(),T()},role:"presentation"})]}):(0,I.jsxs)("div",{className:"ablocks-box-shadow__placeholder",children:[(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg", | |
| 295 | +width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,I.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"5.5",fill:"#EDEDEE",stroke:"#DDDDDF"}),(0,I.jsx)("path",{d:"M11.7499 11.875C11.6599 11.875 11.5599 11.87 11.4699 11.865C11.2849 11.855 11.1349 11.705 11.1199 11.52C11.0099 10.125 9.87488 8.99499 8.48488 8.88499C8.29988 8.86999 8.14988 8.72 8.13988 8.535C8.13488 8.445 8.12988 8.345 8.12988 8.255C8.12988 6.255 9.75488 4.63 11.7549 4.63C13.7549 4.63 15.3799 6.255 15.3799 8.255C15.3799 10.255 13.7499 11.875 11.7499 11.875ZM8.87488 8.17999C10.3649 8.44499 11.5599 9.635 11.8199 11.125C13.3749 11.085 14.6249 9.815 14.6249 8.25C14.6249 6.665 13.3349 5.375 11.7499 5.375C10.1899 5.375 8.91488 6.62499 8.87488 8.17999Z",fill:"#74777C"}),(0,I.jsx)("path",{ | |
| 296 | +d:"M8.25 15.375C6.25 15.375 4.625 13.75 4.625 11.75C4.625 9.75 6.25 8.125 8.25 8.125C8.34 8.125 8.44 8.12999 8.53 8.13499C10.295 8.27499 11.725 9.70501 11.86 11.46C11.865 11.56 11.87 11.66 11.87 11.75C11.875 13.75 10.25 15.375 8.25 15.375ZM8.25 8.875C6.665 8.875 5.375 10.165 5.375 11.75C5.375 13.335 6.665 14.625 8.25 14.625C9.835 14.625 11.125 13.335 11.125 11.75C11.125 11.67 11.12 11.59 11.115 11.51C11.005 10.125 9.87 8.99 8.48 8.88C8.41 8.88 8.33 8.875 8.25 8.875Z",fill:"#74777C"}),(0,I.jsx)("path",{ | |
| 297 | +d:"M8.25 13.375C8.115 13.375 7.985 13.3 7.92 13.18L7.53 12.47L6.82001 12.08C6.70001 12.015 6.625 11.89 6.625 11.75C6.625 11.61 6.70001 11.485 6.82001 11.42L7.53 11.03L7.92 10.32C8.05 10.08 8.445 10.08 8.58 10.32L8.97 11.03L9.67999 11.42C9.79999 11.485 9.875 11.61 9.875 11.75C9.875 11.89 9.79999 12.015 9.67999 12.08L8.97 12.47L8.58 13.18C8.515 13.3 8.385 13.375 8.25 13.375ZM7.78 11.75L7.985 11.865C8.05 11.9 8.09999 11.95 8.13499 12.015L8.25 12.22L8.36501 12.015C8.40001 11.95 8.45 11.9 8.515 11.865L8.72 11.75L8.515 11.635C8.45 11.6 8.40001 11.55 8.36501 11.485L8.25 11.28L8.13499 11.485C8.09999 11.55 8.05 11.6 7.985 11.635L7.78 11.75Z",fill:"#74777C"})]}),(0,I.jsx)("span",{children:"Add..."})]})}),e&&(0,I.jsxs)(Xt,{FigmaPasterComponent:({position:t="left"})=>(0,I.jsx)(pt,{position:t,figmaPasteBtnClickHandler:t=>{const e=yt(t,"box-shadow");if(e){const t={[d]:"none",[u]:e?.shadowType||n?.[u],[p]:e?.shadow||n?.[p],[m]:e?.horizontal||(0===e?.horizontal?e?.horizontal:n?.[m]), | |
| 298 | +[h]:e?.vertical||(0===e?.vertical?e?.vertical:n?.[h]),[g]:e?.blur||(0===e?.blur?e?.blur:n?.[g]),[f]:e?.spread||(0===e?.spread?e?.spread:n?.[f]),[y]:e?.color||n?.[y]};b({[r]:t}),(0,M.An)({message:"Box-Shadow Style Successfully Pasted",config:{id:"ablocks-notice-figma-paste-box-shadow-success-notice",type:"snackbar"}})}else(0,M.An)({message:"Copy/Paste Failed: Wrong Box-Shadow Style",config:{id:"ablocks-notice-figma-paste-box-shadow-error-notice",type:"snackbar"}})}}),label:(0,L.__)("Shadow","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:T,isVisible:e,toggleVisible:()=>{i(!e)},anchorRef:o,children:[(0,I.jsx)(Ut,{options:H.Ji,label:(0,L.__)("shadowType","ablocks"),attributeObjectKey:u,attributeValue:n,attributeName:r,setAttributes:b}),(0,I.jsx)(It,{margin:"10"}),(0,I.jsx)("div",{className:"ablocks-box-shadow__templates",children:H.H5?.map(t=>(0,I.jsx)("div",{className:"ablocks-box-shadow__template "+(t?.id===n[d]?"ablocks-box-shadow__active":""),onClick:()=>(t=>{const e=(0, | |
| 299 | +M.jI)((0,H.tJ)(),{...n,[d]:t?.id,[m]:t?.horizontal,[h]:t?.vertical,[g]:t?.blur,[f]:t?.spread,[y]:t?.color,[p]:`${"inner_shadow"===n[u]?"inset":""} ${t?.horizontal}px ${t?.vertical}px ${t?.blur}px ${t?.spread}px ${t?.color}`,[u]:"default"!==n[u]&&""!==n[u]&&n[u]?n[u]:"outer_shadow"});b({[r]:e})})(t),role:"presentation",children:"none"!==t?.shadow?(0,I.jsx)("div",{className:"ablocks-box-shadow__shadow",style:{boxShadow:`${"inner_shadow"===n[u]?"inset":""} ${t?.horizontal}px ${t?.vertical}px ${t?.blur}px ${t?.spread}px ${t?.color}`}}):(0,I.jsx)("span",{className:"ablocks-box-shadow__empty",children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,I.jsx)("path",{ | |
| 300 | +d:"M12 22.25C6.34614 22.25 1.75 17.6539 1.75 12C1.75 6.34616 6.34614 1.75002 12 1.75002C17.6539 1.75002 22.25 6.34616 22.25 12C22.25 17.6539 17.6539 22.25 12 22.25ZM12 2.25002C6.62386 2.25002 2.25 6.62387 2.25 12C2.25 17.3762 6.62386 21.75 12 21.75C17.3761 21.75 21.75 17.3762 21.75 12C21.75 6.62387 17.3761 2.25002 12 2.25002Z",fill:"#13191B",stroke:"#13191B"}),(0,I.jsx)("path",{d:"M4.89997 19.25C4.83542 19.25 4.77481 19.2278 4.72352 19.1765C4.62878 19.0817 4.62878 18.9183 4.72352 18.8236L18.7235 4.82357C18.8183 4.72883 18.9817 4.72883 19.0764 4.82357C19.1712 4.91831 19.1712 5.08173 19.0764 5.17646L5.07641 19.1765C5.02512 19.2278 4.96451 19.25 4.89997 19.25Z",fill:"#13191B",stroke:"#13191B"})]})})},t?.id))}),(0,I.jsx)(It,{margin:"10"}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:y,attributeValue:n[y],onChangeHandler:(t,e)=>{c(e,t)},resetHandler:(t,e)=>b({[r]:(0,M.jI)((0,H.tJ)(e),{...n,[t]:void 0,[y]:"#000000"})}),setAttributes:t=>{b({[r]:{...n,...t}})} | |
| 301 | +}),(0,I.jsx)(_t,{label:(0,L.__)("Horizontal","ablocks"),min:-100,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[m]??0,attributeName:m,onChangeHandler:c,attributeObjectKey:m}),(0,I.jsx)(_t,{label:(0,L.__)("Vertical","ablocks"),min:-100,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[h]??0,attributeName:h,onChangeHandler:c,attributeObjectKey:h}),(0,I.jsx)(_t,{label:(0,L.__)("Blur","ablocks"),min:0,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[g]??0,attributeName:g,onChangeHandler:c,attributeObjectKey:g}),(0,I.jsx)(_t,{label:(0,L.__)("Spread","ablocks"),min:-100,max:100,hasUnit:!1,isResponsive:!1,setAttributes:b,attributeValue:n[f]??0,attributeName:f,onChangeHandler:c,attributeObjectKey:f})]})]})}const Ur={isResponsive:Y().bool,attributeName:Y().string,attributeValue:Y().any,setAttributes:Y().func,onChangeHandler:Y().func,showHover:Y().bool};function jr(t){ | |
| 302 | +const{attributeName:e,attributeValue:i,setAttributes:o,isResponsive:a=!0,onChangeHandler:l,showHover:n=!0}=t,s=lt(),r=(t,e)=>{l?l(t,a?e+s:e):b(t,e)},b=(t,l)=>o({[e]:(0,M.jI)((0,H.tJ)(a),{...i,[l]:t})});return(0,I.jsx)("div",{className:"ablocks-control ablocks-control--box-shadow",children:n?(0,I.jsx)(At,{normal:(0,I.jsx)(Pr,{...t,deviceType:s,changeHandler:r}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Pr,{...t,hover:!0,deviceType:s,changeHandler:r}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (s)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:i?.transitionDuration??"0",setAttributes:o,onChangeHandler:r,attributeObjectKey:"transitionDuration"})]})}):(0,I.jsx)(Pr,{...t,deviceType:s,changeHandler:r})})}jr.propTypes=Ur;const wr={label:Y().string,isResponsive:Y().bool,attributeName:Y().string,setAttributes:Y().func,attributeValue:Y().any,attributeObjectKey:Y().string,badgeText:Y().string,descriptionText:Y().string,upgradeLink:Y().string} | |
| 303 | +;function zr(t){const{label:e="Scrolling Effects",attributeName:i,attributeValue:o={},setAttributes:l,attributeObjectKey:n="",badgeText:s="PRO",isResponsive:r=!1,descriptionText:b="Get Scrolling Effects such as vertical/horizontal scroll, transparency, and more with aBlocks Pro.",upgradeLink:c="https://ablocks.pro/"}=t,[d,u]=(0,a.useState)(!1),p=lt();return(0,I.jsxs)("div",{className:"ablocks-pro-toggle",children:[(0,I.jsxs)("div",{className:"ablocks-pro-toggle__control",children:[(0,I.jsxs)("div",{className:"ablocks-pro-toggle__label-control",children:[e&&(0,I.jsx)(at,{label:e,isResponsive:!1}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--lock"})]}),(0,I.jsx)("div",{className:"ablocks-pro-toggle__toggle-control",children:(0,I.jsx)(Ot,{isResponsive:r,attributeName:i,attributeValue:o,setAttributes:l,onChangeHandler:t=>((t,e)=>{u(t),((t,e)=>{l({[i]:{...o,[n+e]:t}})})(t,e)})(t,p),attributeObjectKey:n})})]}),(0,I.jsxs)(Xt,{label:(0,I.jsxs)(I.Fragment,{children:[e," ",(0, | |
| 304 | +I.jsx)("span",{className:"pro-bandage",children:s})]}),isVisible:d,toggleVisible:u,className:"ablocks-pro-toggle__popover",children:[(0,I.jsx)("hr",{className:"ablocks-pro-toggle__line"}),(0,I.jsx)("p",{className:"ablocks-pro-toggle__description",children:b}),(0,I.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"ablocks-pro-toggle__upgrade-button",children:"Upgrade Now"})]})]})}zr.propTypes=wr;const Cr={attributeValue:Y().object,setAttributes:Y().func.isRequired};function Ar(t){let e=(0,b.applyFilters)("ablocks.global.mouseEffectsControlBody",null,t);return(0,I.jsx)(l().Fragment,{children:M.zX?e:(0,I.jsx)(zr,{label:(0,L.__)("Mouse Effects","ablocks"),attributeName:"mouseEffects",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"mouseEffects",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("Add engaging Mouse Track or 3D Tilt effects with aBlocks Pro.","ablocks")})})}function Lr(t){let e=(0, | |
| 305 | +b.applyFilters)("ablocks.global.scrollingEffectsControlBody",null,t);return(0,I.jsx)(l().Fragment,{children:M.zX?e:(0,I.jsx)(zr,{label:(0,L.__)("Scrolling Effect","ablocks"),attributeName:"scrollingEffects",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"scrollingEffects",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("Unlock scrolling effects like vertical/horizontal scroll, transparency, and more with aBlocks Pro.","ablocks")})})}Ar.propTypes=Cr,Ar.defaultProps={attributeValue:{}},Lr.propTypes={};const Dr={attributeValue:Y().object,setAttributes:Y().func.isRequired};function Nr(t){let e=(0,b.applyFilters)("ablocks.global.floatingEffectsControlBody",null,t);return(0,I.jsx)(l().Fragment,{children:M.zX?e:(0,I.jsx)(zr,{label:(0,L.__)("Enable","ablocks"),attributeName:"floatingEffects",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"floatingEffects",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0, | |
| 306 | +L.__)("Add engaging floating effects with aBlocks Pro.","ablocks")})})}Nr.propTypes=Dr,Nr.defaultProps={attributeValue:{}};const Ir={attributeValue:Y().object,setAttributes:Y().func.isRequired};function Vr(t){let e=(0,b.applyFilters)("ablocks.global.stickyControlBody",null,t);return(0,I.jsx)(l().Fragment,{children:M.zX?e:(0,I.jsx)(zr,{label:(0,L.__)("Sticky","ablocks"),attributeName:"sticky",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"sticky",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("Make any element on your page sticky to keep it visible at the top or bottom of the screen.","ablocks")})})}Vr.propTypes=Ir;const Or={attributeValue:Y().object,setAttributes:Y().func.isRequired};function Yr(t){let e=(0,b.applyFilters)("ablocks.global.displayConditionsControlBody",null,t);return(0,I.jsx)(l().Fragment,{children:M.zX?e:(0,I.jsx)(zr,{label:(0,L.__)("Display Condition","ablocks"),attributeName:"displayCondition", | |
| 307 | +attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"displayCondition",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")})})}function Xr(t){let e=(0,b.applyFilters)("ablocks.global.tooltipControlBody",null,t);return(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Tooltip","ablocks"),initialOpen:!1,children:M.zX?e:(0,I.jsx)(zr,{label:(0,L.__)("Tooltip","ablocks"),attributeName:"enableTooltip",attributeValue:t.attributeValue,setAttributes:t.setAttributes,attributeObjectKey:"enableTooltip",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("Get advanced tooltip with Ablocks Pro, including parallax, rotation, and more!","ablocks")})})}Yr.propTypes=Or,Yr.defaultProps={},Xr.propTypes={};const Br=l().lazy(()=>i.e(82).then(i.bind(i,86298)));function Er({attributes:t,setAttributes:e}){const{_custom_css:o}=t,[n,s]=(0, | |
| 308 | +a.useState)([]);return(0,a.useEffect)(()=>{let t=!0;return i.e(82).then(i.bind(i,87967)).then(e=>{t&&s([e.javascript({jsx:!0})])}),()=>{t=!1}},[]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-control-css",children:[(0,I.jsx)("label",{className:"ablocks-control-css__title",children:(0,L.__)("Add your own custom CSS","ablocks")}),(0,I.jsx)(a.Suspense,{fallback:(0,I.jsx)("div",{className:"ablocks-control-css__loading",children:(0,L.__)("Loading editor…","ablocks")}),children:(0,I.jsx)(Br,{value:o,height:"200px",extensions:n,onChange:t=>{e({_custom_css:t})}})}),(0,I.jsxs)("p",{className:"ablocks-control-css__note",children:["Use ",(0,I.jsx)("a",{href:"#",target:"_blank",children:(0,L.__)("custom CSS","ablocks")})," ",(0,L.__)("to style your content or add","ablocks")," ",(0,I.jsx)("a",{href:"#",target:"_blank",children:(0,L.__)('the "selector" prefix',"ablocks")})," ",(0,L.__)("to target specific elements.","ablocks")]})]})})}var Fr=i(31050) | |
| 309 | +;function qr({attributes:t,setAttributes:e,isDisableLeftRightMargin:i=!1,isContainer:o=!1}){const{block_id:a,blockVersion:n}=t,s=!!(t?._background?.backgroundType&&"none"!==t?._background?.backgroundType||t?._background?.backgroundTypeH&&"none"!==t?._background?.backgroundTypeH)&&o;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Layout","ablocks"),initialOpen:!0,children:[(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"_margin",styleType:"margin",attributeValue:t?._margin,setAttributes:e,isDisableLeftRight:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"_padding",styleType:"padding",attributeValue:t?._padding,setAttributes:e}),!o&&(0,I.jsx)(zt,{label:(0,L.__)("Width","ablocks"),isResponsive:!0,attributeName:"_width",attributeValue:t?._width,setAttributes:e}),(0,I.jsx)(zs,{label:(0,L.__)("Position","ablocks"),isResponsive:!0,attributeName:"_position",attributeValue:t?._position,setAttributes:e}),(0,I.jsx)(Ns,{ | |
| 310 | +label:(0,L.__)("Z-Index","ablocks"),isResponsive:!0,attributeName:"_zIndex",attributeValue:t?._zIndex,setAttributes:e}),(0,I.jsx)(Kl,{label:(0,L.__)("CSS ID","ablocks"),attributeName:"anchor",setAttributes:e,attributeValue:t?.anchor,onChangeHandler:t=>{e({anchor:t.replace(/[\s#]/g,"-")})},isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("CSS Classes","ablocks"),attributeName:"className",attributeValue:t?.className,setAttributes:e,isInline:!1}),(0,I.jsx)(Yr,{label:(0,L.__)("Display Conditions","ablocks"),isResponsive:!0,attributeName:"_display_conditions",attributeValue:t?._display_conditions,setAttributes:e})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Motion Effects","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Lr,{label:(0,L.__)("Scrolling Effects","ablocks"),isResponsive:!1,attributeName:"_scrolling",attributeValue:t?._scrolling,setAttributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(Ar,{label:(0,L.__)("Mouse Effects","ablocks"),isResponsive:!1,attributeName:"_mouse",attributeValue:t?._mouse, | |
| 311 | +setAttributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(Vr,{label:(0,L.__)("Sticky","ablocks"),isResponsive:!1,attributeName:"_sticky",attributeValue:t?._sticky,setAttributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(Wr,{label:(0,L.__)("Entrance Animation","ablocks"),isResponsive:!0,attributeName:"_animation",attributeValue:t?._animation,setAttributes:e})]}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Floating Effects","ablocks"),initialOpen:!1,children:(0,I.jsx)(Nr,{label:(0,L.__)("Enable","ablocks"),isResponsive:!1,attributeName:"_floating",attributeValue:t?._floating,setAttributes:e})}),(0,I.jsx)(Xr,{label:(0,L.__)("Tooltip","ablocks"),isResponsive:!0,attributeName:"_tooltip",attributeValue:t._tooltip,setAttributes:e}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Transform","ablocks"),initialOpen:!1,children:(0,I.jsx)(ie,{attributeName:"_transform",attributeValue:t?._transform,setAttributes:e,blockId:a,blockVersion:n})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Background","ablocks"),initialOpen:!1,children:(0, | |
| 312 | +I.jsx)(nr,{isResponsive:!0,attributeName:"_background",attributeValue:t?._background,setAttributes:e,isContainer:o})}),s&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Background Overlay","ablocks"),initialOpen:!1,children:(0,I.jsx)(dr,{attributeName:"_backgroundOverlay",attributeValue:t?._backgroundOverlay,setAttributes:e})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Border","ablocks"),initialOpen:!1,children:(0,I.jsx)(Us,{attributeName:"_border",attributeValue:t?._border,setAttributes:e})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Shadow","ablocks"),initialOpen:!1,children:(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:t._boxShadow,setAttributes:e,attributeName:"_boxShadow"})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Mask","ablocks"),initialOpen:!1,children:(0,I.jsx)(Mr,{label:(0,L.__)("Mask","ablocks"),isResponsive:!0,attributeName:"_mask",attributeValue:t?._mask,setAttributes:e})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Responsive","ablocks"),initialOpen:!1,children:(0, | |
| 313 | +I.jsx)(xr,{attributes:t,setAttributes:e})}),(0,Fr.to)()&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Custom CSS","ablocks"),initialOpen:!1,children:(0,I.jsx)(Er,{attributes:t,setAttributes:e})})]})}const $r=t=>{switch(t){case"scroll":return{id:"",trigger:"scroll",title:(0,L.__)("Scroll Into View","ablocks"),subTitle:(0,L.__)("Define actions that occur when element scrolls into view","ablocks"),once:!1,settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"whileScroll":return{id:"",trigger:"whileScroll",title:(0,L.__)("While scrolling in view","ablocks"),subTitle:(0,L.__)("Define actions that occur when element scrolls through viewport","ablocks"),once:!1,settings:{scrub:!0,startValue:10,endValue:100,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"hover":return{id:"",trigger:"hover",title:(0,L.__)("Mouse Hover","ablocks"),subTitle:(0, | |
| 314 | +L.__)("Define actions that occur when cursor hovers over or away from element.","ablocks"),once:!1,settings:{reverse:!0,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"click":return{id:"",trigger:"click",title:(0,L.__)("Mouse Click (tap)","ablocks"),once:!1,subTitle:(0,L.__)("Define actions that occur on 1st or 2nd tap.","ablocks"),settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"mouseMove":return{id:"",trigger:"mousemove",title:(0,L.__)("Mouse Move over Element","ablocks"),subTitle:(0,L.__)("Define actions that occur when cursor moves over element along X or Y axis.","ablocks"),once:!1,settings:{strength:30,mouseX:50,mouseY:50,smoothing:50,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]}}},Gr=[{label:(0,L.__)("Select Animations","ablocks"),value:"none"},{ | |
| 315 | +label:(0,L.__)("Fade","ablocks"),value:"fade"},{label:(0,L.__)("Slide","ablocks"),value:"slide"},{label:(0,L.__)("Flip","ablocks"),value:"flip"},{label:(0,L.__)("Grow","ablocks"),value:"grow"},{label:(0,L.__)("Grow Big","ablocks"),value:"growBig"},{label:(0,L.__)("Shrink","ablocks"),value:"shrink"},{label:(0,L.__)("Shrink Big","ablocks"),value:"shrinkBig"},{label:(0,L.__)("Spin","ablocks"),value:"spin"},{label:(0,L.__)("Fly","ablocks"),value:"fly"},{label:(0,L.__)("Drop","ablocks"),value:"drop"},{label:(0,L.__)("Emphasis","ablocks"),value:"emphasis"},{label:(0,L.__)("Pop","ablocks"),value:"pop"},{label:(0,L.__)("Jiggle","ablocks"),value:"jiggle"},{label:(0,L.__)("Pulse","ablocks"),value:"pulse"},{label:(0,L.__)("Blink","ablocks"),value:"blink"},{label:(0,L.__)("Bounce","ablocks"),value:"bounce"},{label:(0,L.__)("Flip Left To Right","ablocks"),value:"flipLeftToRight"},{label:(0,L.__)("Flip Right To Left","ablocks"),value:"flipRightToLeft"},{label:(0,L.__)("Rubber Band","ablocks"), | |
| 316 | +value:"rubberBand"},{label:(0,L.__)("Jello","ablocks"),value:"jello"}],Zr=(t,e="in")=>{const i=(t=>{switch(t){case"none":return{type:"none",from:{},to:{}};case"fade":return{type:"fade",from:{opacity:1,y:20},to:{opacity:1,y:0,duration:.6,ease:"power1.out",delay:0}};case"slide":return{type:"slide",from:{x:-100,opacity:0},to:{x:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"flip":return{from:{rotationY:-90,opacity:0},to:{rotationY:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"grow":return{type:"grow",from:{scale:.8,opacity:0},to:{scale:1,opacity:1,duration:.5,delay:0,ease:"power2.out"}};case"growBig":return{type:"growBig",from:{scale:.5,opacity:0},to:{scale:1.2,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"shrink":return{type:"shrink",from:{scale:1.2,opacity:0},to:{scale:1,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"shrinkBig":return{type:"shrinkBig",from:{scale:1.5,opacity:0},to:{scale:1,opacity:1,duration:.6,delay:0,ease:"power2.out"}} | |
| 317 | 317 | ;case"spin":return{type:"spin",from:{rotation:0,opacity:0},to:{rotation:360,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"fly":return{type:"fly",from:{x:100,opacity:0},to:{x:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"drop":return{type:"drop",from:{y:-100,opacity:0},to:{y:0,opacity:1,duration:.6,delay:0,ease:"bounce.out"}};case"emphasis":return{type:"emphasis",from:{scale:1,opacity:0},to:{scale:1.1,opacity:0,duration:.4,delay:0,ease:"power1.inOut"}};case"pop":return{type:"pop",from:{scale:.5,opacity:0},to:{scale:1,opacity:1,duration:.5,delay:0,ease:"back.out(1.7)"}};case"jiggle":return{type:"jiggle",from:{x:-10,opacity:0},to:{x:0,opacity:1,duration:.3,delay:0,ease:"elastic.out(1, 0.5)"}};case"pulse":return{type:"pulse",from:{scale:1,opacity:0},to:{scale:0,opacity:1,duration:.5,delay:0,ease:"power1.inOut"}};case"blink":return{type:"blink",from:{opacity:1},to:{opacity:0,duration:.3,delay:0,ease:"power1.inOut"}};case"bounce":return{type:"bounce",from:{y:-50,opacity:1 |
| 318 | -},to:{y:0,opacity:1,duration:.6,delay:0,ease:"bounce.out"}};case"flipLeftToRight":return{type:"flipLeftToRight",from:{rotationY:-180,opacity:0},to:{rotationY:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"flipRightToLeft":return{type:"flipRightToLeft",from:{rotationY:180,opacity:0},to:{rotationY:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"rubberBand":return{type:"rubberBand",from:{scaleX:1,scaleY:1,opacity:0},to:{scaleX:1.25,scaleY:.75,opacity:1,duration:.6,delay:0,ease:"elastic.out(1, 0.5)"}};case"jello":return{type:"jello",from:{scaleX:1,scaleY:1,opacity:0},to:{scaleX:.9,scaleY:1.1,opacity:1,duration:.6,delay:0,ease:"elastic.out(1, 0.5)"}};default:return null}})(t);return i?"in"===e?i:{type:i.type,from:i.to,to:i.from}:null},qr={default:[],fade:["opacity","y"],slide:["x","y","opacity"],fly:["x","y","opacity"],flip:["rotationY","opacity"],spin:["rotation","opacity"],grow:["scale","opacity"],growBig:["scale","opacity"],shrink:["scale","opacity"], | |
| 319 | -shrinkBig:["scale","opacity"],drop:["y","opacity"],bounce:["y","opacity"],pop:["scale","opacity"],pulse:["scale","opacity"],blink:["opacity"],jiggle:["x","opacity"],rubberBand:["scaleX","scaleY","opacity"],jello:["scaleX","scaleY","opacity"],emphasis:["scale","opacity"],flipLeftToRight:["rotationY","opacity"],flipRightToLeft:["rotationY","opacity"]},$r=[{label:"none",value:"none"},{label:"power1.out",value:"power1.out"},{label:"power2.out",value:"power2.out"},{label:"power3.out",value:"power3.out"},{label:"power1.inOut",value:"power1.inOut"},{label:"back.out",value:"back.out(1.7)"},{label:"expo.out",value:"expo.out"}],Gr=[{label:(0,z.__)("Line","ablocks"),value:"lines"},{label:(0,z.__)("Word","ablocks"),value:"words"},{label:(0,z.__)("Chars","ablocks"),value:"chars"}],Zr=({content:t=(0,z.__)("free","ablocks"),type:e="free",size:i="md"})=>{const o=s()("ablocks-badge",`ablocks-badge--${e}`,`ablocks-badge--${i}`);return(0,L.jsx)("span",{className:o,children:t}) | |
| 320 | -},Kr=({icon:t,title:e,subtitle:i})=>(0,L.jsxs)("div",{className:"ablocks-message-wrapper",children:[(0,L.jsx)("div",{className:"ablocks-message-icon",children:(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--${t}`})}),(0,L.jsxs)("h2",{className:"ablocks-message-title",children:[e,!M.zX&&(0,L.jsx)(Zr,{type:"pro",content:(0,z.__)("Pro","ablocks"),size:"md"})]}),(0,L.jsx)("p",{className:"ablocks-message-subtitle",children:i})]}),Jr=class{constructor(t,e,i=!1){this.triggerEl=t,this.cfg=e,this.triggerEl&&this.cfg&&(this.previewOnly=i,this.targetEl=this.cfg.targetEl||this.triggerEl,this.previewOnly&&this.createPreviewAnimation())}createPreviewAnimation(){if(0!==(this.cfg.actions||[]).length)if(this.cfg.settings?.isSplit){const t=this.splitTextElement(this.targetEl,this.cfg.settings?.splitType);if(!t||0===t.length)return;this.cfg.actions?.forEach(e=>{const i=e.from||{},o=e.to||{};gsap.set(t,i),gsap.to(t,{...o,clearProps:"transform,opacity"})})}else this.cfg.actions?.forEach(t=>{ | |
| 321 | -const e=t.from||{},i=t.to||{};gsap.set(this.targetEl,e),gsap.to(this.targetEl,{...i,clearProps:"transform,opacity"})})}splitTextElement(t,e){const i=t.querySelector("h1, h2, h3, h4, h5, h6, p");if(!i)return[];const o=i.textContent,a=i.innerHTML;i.innerHTML="";let l=[];if("chars"===e)l=o.split("").map(t=>{const e=document.createElement("span");return e.style.display="inline-block",e.style.whiteSpace="pre",e.textContent=" "===t?" ":t,i.appendChild(e),e});else if("words"===e){const t=o.split(" ");l=t.map((e,o)=>{const a=document.createElement("span");return a.style.display="inline-block",a.style.whiteSpace="pre",a.textContent=e+(o<t.length-1?" ":""),i.appendChild(a),a})}else if("lines"===e){const t=a.split(/<br\s*\/?>/i).map(t=>t.trim()).filter(Boolean);l=t.map((t,e)=>{const o=document.createElement("div");return o.style.display="block",o.style.whiteSpace="pre",o.innerHTML=t,i.appendChild(o),o})}return l}};function Qr({tabs:t,className:e}){const i=t.map(t=>({name:t.name,title:t.title, | |
| 322 | -className:"ablocks-content-style-tab__item",content:t.content}));return(0,L.jsx)(A.TabPanel,{className:"ablocks-content-style-tabs ablocks-common-tabs",activeClass:"ablocks-content-style-tab__item--active",tabs:i,children:t=>(0,L.jsx)("div",{className:"ablocks-common-tab__content",children:t.content})})}const tb=({blockId:t,changeHandler:e,schema:i,itemIndex:o})=>{const a=(t,o)=>{e(t,{...i,settings:o})};return(0,L.jsxs)(L.Fragment,{children:["none"!==i?.actions[0]?.type&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Split Text","ablocks"),attributeValue:i?.settings?.isSplit,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,isSplit:t})}}),i?.settings?.isSplit&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Split Type","ablocks"),isResponsive:!1,options:Gr,attributeValue:i?.settings?.splitType,onChangeHandler:t=>{a(o,{...i.settings,splitType:t})}}),(0,L.jsx)(vt,{label:(0,z.__)("Stagger(ms)","ablocks"),max:.5,min:.05,step:.01,isResponsive:!1, | |
| 323 | -attributeValue:i?.settings?.stagger,onChangeHandler:t=>a(o,{...i.settings,stagger:t})}),void 0!==i?.actions[0]?.from.opacity&&(0,L.jsx)(Qr,{tabs:[{name:"from",title:(0,z.__)("From","ablocks"),content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),max:1,min:0,step:.01,isResponsive:!1,attributeValue:i?.actions[0]?.from.opacity,onChangeHandler:t=>{const a=[...i.actions];a[0]={...a[0],from:{...a[0]?.from,opacity:t}},e(o,{...i,actions:a})}})})},{name:"to",title:(0,z.__)("To","ablocks"),content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),max:1,min:0,step:.01,isResponsive:!1,attributeValue:i?.actions[0]?.to.opacity,onChangeHandler:t=>{const a=[...i.actions];a[0]={...a[0],to:{...a[0]?.to,opacity:t}},e(o,{...i,actions:a})}})})}]})]})]}),(0,L.jsx)(Vt,{label:(0,z.__)("Allow Desktop","ablocks"),attributeValue:i?.settings?.allowDesktop,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,allowDesktop:t})}}),(0,L.jsx)(Vt,{ | |
| 324 | -label:(0,z.__)("Allow Tablet","ablocks"),attributeValue:i?.settings?.allowTablet,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,allowTablet:t})}}),(0,L.jsx)(Vt,{label:(0,z.__)("Allow Mobile","ablocks"),attributeValue:i?.settings?.allowMobile,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,allowMobile:t})}}),i?.settings?.isSplit&&(0,L.jsxs)("div",{className:"ablocks-preview-animations",children:[(0,L.jsx)(ot,{label:(0,z.__)("Preview","ablocks"),isResponsive:!1}),(0,L.jsx)("button",{type:"button",className:"ablocks-preview-animations--button",onClick:()=>(()=>{const e=(0,M.bu)(`.ablocks-block-${t}`);if(!e)return;gsap.killTweensOf(e);const o=i.actions[0],a={...i,actions:[o]};new Jr(e,a,!0)})(),children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--play",children:(0,z.__)("Play","ablocks")})})]})]})},eb=(I().string,I().string,I().string,I().string,t=>{const{helpLabel:e="",linkBeforeText:i="",linkText:o="",link:a=""}=t;return(0,L.jsx)("div",{ | |
| 325 | -className:"ablocks-trigger--massages",children:(0,L.jsx)("div",{className:"ablocks-trigger--message-info",children:(0,L.jsxs)("span",{className:"ablocks-trigger--link",children:[(0,z.__)(""==i?"Need Help? ":i+" ","ablocks"),(0,L.jsx)("a",{href:""==a?"https://ablocks.pro/docs/how-to-use-gsap-animations-integration-with-ablocks/":a,target:"_blank",rel:"noreferrer",children:(0,z.__)(""==o?"Get Docs":o,"ablocks")})]})})})});function ib(t){const{action:e,index:i,animationAttributeMap:o,updateActionAtIndex:l}=t,n=e?.isOut,[s,r]=(0,a.useState)("from"),b=t=>(0,L.jsxs)("div",{className:"ablocks-animation-tab-controls",children:[o[e.type]?.map(o=>(0,L.jsx)(vt,{label:o,max:o.includes("scale")?5:o.includes("opacity")?1:300,min:o.includes("scale")?1:o.includes("opacity")?0:-300,step:o.includes("opacity")?.01:(o.includes("scale"),1),isResponsive:!1,attributeValue:e[t]?.[o]??0,onChangeHandler:a=>{l(i,{...e,[t]:{...e[t],[o]:a}})}},`${t}-${o}`)),(0,L.jsx)(Ut,{label:(0,z.__)("Ease","ablocks"), | |
| 326 | -isResponsive:!1,options:$r,attributeValue:e?.to?.ease??"power1.out",onChangeHandler:t=>{l(i,{...e,to:{...e.to,ease:t}})}}),(0,L.jsx)(eb,{})]}),c=[{name:"from",title:(0,z.__)("From","ablocks"),content:b("from")},{name:"to",title:(0,z.__)("To","ablocks"),content:b("to")}],d=n?[...c].reverse():c;return(0,L.jsxs)("div",{className:"ablocks-tabcontrol",children:["none"!==e.type&&(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-tabcontrol__header",children:[(0,L.jsx)("div",{className:"ablocks-tabcontrol__label",children:(0,z.__)("Animation","ablocks")}),(0,L.jsx)("div",{className:"ablocks-tabcontrol__buttons",children:d.map(t=>(0,L.jsx)("button",{className:"ablocks-tabcontrol__btn "+(s===t.name?"ablocks-tabcontrol__btn--active":""),onClick:()=>r(t.name),children:t.title},t.name))})]})}),(0,L.jsx)("div",{className:"ablocks-tabcontrol__content",children:d.find(t=>t.name===s)?.content})]})}const ob=({action:t,index:e,updateActionAtIndex:i,isOutDefault:o,onPreview:a})=>(0, | |
| 327 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),isResponsive:!1,options:Er,attributeValue:t.type,onChangeHandler:a=>{const l=Fr(a,o);i(e,{...t,...l,type:a})}}),"none"!==t.type&&(0,L.jsxs)(L.Fragment,{children:["none"!==t.type&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Direction","ablocks"),attributeValue:t.isOut,isResponsive:!1,onChangeHandler:o=>{const a=Fr(t.type,o);i(e,{...t,...a,isOut:o})}}),(0,L.jsx)(eb,{})]}),(0,L.jsx)(ib,{action:t,index:e,animationAttributeMap:qr,updateActionAtIndex:i}),(0,L.jsx)(vt,{label:(0,z.__)("Duration","ablocks"),max:5,min:0,step:.1,isResponsive:!1,attributeValue:t?.to?.duration,onChangeHandler:o=>i(e,{...t,to:{...t.to,duration:o}})}),(0,L.jsx)(vt,{label:(0,z.__)("Delay","ablocks"),max:5,min:0,step:.1,isResponsive:!1,attributeValue:t?.to?.delay,onChangeHandler:o=>i(e,{...t,to:{...t.to,delay:o}})}),(0,L.jsxs)("div",{className:"ablocks-preview-animations",children:[(0,L.jsx)(ot,{label:(0, | |
| 328 | -z.__)("Preview","ablocks"),isResponsive:!1}),(0,L.jsx)("button",{type:"button",className:"ablocks-preview-animations--button",onClick:()=>a(e),children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--play",children:(0,z.__)("Play","ablocks")})})]})]})]}),ab=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||2!==t.actions.length){const e=[{id:Date.now()%1e5,...Fr("none",!1),isOut:!1},{id:(Date.now()+200)%1e5,...Fr("none",!0),isOut:!0}];o(i,{...t,actions:e})}},[]),!t.actions||2!==t.actions.length)return null;const n=t.actions,s=(e,a)=>{const l=[...n];l[e]=a,o(i,{...t,actions:l})},r=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Qr,{tabs:[{name:"in",title:(0,z.__)("In","ablocks"),content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ob,{action:n[0],index:0,updateActionAtIndex:s,isOutDefault:!1,onPreview:r})}) | |
| 329 | -},{name:"out",title:(0,z.__)("Out","ablocks"),content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ob,{action:n[1],index:1,updateActionAtIndex:s,isOutDefault:!1,onPreview:r})})},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}]})})},lb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||2!==t.actions.length){const e=[{id:Date.now()%1e5,...Fr("none",!1),isOut:!1},{id:(Date.now()+200)%1e5,...Fr("none",!0),isOut:!0}];o(i,{...t,actions:e})}},[]),!t.actions||2!==t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)},r=[{name:"firstClick",title:(0,z.__)("1st","ablocks"),content:(0,L.jsx)(ob,{action:l[0],index:0,updateActionAtIndex:n,isOutDefault:!1,onPreview:s})},{name:"secondClick",title:(0, | |
| 330 | -z.__)("2nd","ablocks"),content:(0,L.jsx)(ob,{action:l[1],index:1,updateActionAtIndex:n,isOutDefault:!0,onPreview:s})},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,L.jsx)(Qr,{tabs:r})},nb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Fr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)},r=[{name:"mouseMove",title:(0,z.__)("Move","ablocks"),content:l.map((e,a)=>(0,L.jsx)(ob,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings", | |
| 331 | -title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,L.jsx)(Qr,{tabs:r})},sb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Fr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)},r=[{name:"whileScroll",title:(0,z.__)("On","ablocks"),content:l.map((e,a)=>(0,L.jsx)(ob,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,L.jsx)(Qr,{tabs:r | |
| 332 | -})},rb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||2!==t.actions.length){const e=[{id:Date.now()%1e5,...Fr("none",!1),isOut:!1},{id:(Date.now()+200)%1e5,...Fr("none",!0),isOut:!0}];o(i,{...t,actions:e})}},[]),!t.actions||2!==t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)},r=[{name:"scrollIn",title:(0,z.__)("Up","ablocks"),content:(0,L.jsx)(ob,{action:l[0],index:0,updateActionAtIndex:n,isOutDefault:!1,onPreview:s})},{name:"scrollOut",title:(0,z.__)("Down","ablocks"),content:(0,L.jsx)(ob,{action:l[1],index:1,updateActionAtIndex:n,isOutDefault:!0,onPreview:s})},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,L.jsx)(Qr,{tabs:r})},bb=[{value:"pageLoad",label:(0, | |
| 333 | -z.__)("On Page Load","ablocks")},{value:"pageScroll",label:(0,z.__)("On Page Scroll","ablocks")},{value:"mouseMovePage",label:(0,z.__)("Mouse Move in Viewport","ablocks")},{value:"whilePageScroll",label:(0,z.__)("While Page Scrolling","ablocks")}],cb=t=>{switch(t){case"pageLoad":return{id:"",trigger:"pageLoad",title:(0,z.__)("On Page Load","ablocks"),subTitle:(0,z.__)("Define actions that occur when page loads.","ablocks"),once:!1,settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"mouseMovePage":return{id:"",trigger:"mouseMovePage",title:(0,z.__)("Mouse Move in Viewport","ablocks"),subTitle:(0,z.__)("Define actions that occur when cursor moves in viewport along X or Y axis.","ablocks"),once:!1,settings:{strength:30,mouseX:50,mouseY:50,smoothing:50,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"pageScroll":return{id:"", | |
| 334 | -trigger:"pageScroll",title:(0,z.__)("On Page Scroll","ablocks"),subTitle:(0,z.__)("Define actions that occur when page is scrolled.","ablocks"),once:!1,settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,pin:!0,pinDuration:300,parallax:!0,speed:.3,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"whilePageScroll":return{id:"",trigger:"whilePageScroll",title:(0,z.__)("While Page Scrolling","ablocks"),subTitle:(0,z.__)("Define actions that occur when page is being scrolled.","ablocks"),once:!1,settings:{scrub:!0,startValue:10,endValue:100,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};default:return{id:"",trigger:t||"unknown",once:!1,settings:{},actions:[]}}},db=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Fr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]), | |
| 335 | -!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=getRenderDomElement(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ABlocksGsapAnimation(o,l,!0)},r=[{name:"pageLoad",title:(0,z.__)("Load","ablocks"),content:l.map((e,a)=>(0,L.jsx)(ob,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,L.jsx)(Qr,{tabs:r})},ub=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Fr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t, | |
| 336 | -actions:n})},s=(e,i)=>{o(e,{...t,settings:i})},r=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)},b=[{name:"pageScroll",title:(0,z.__)("Scroll","ablocks"),content:l.map((e,a)=>(0,L.jsx)(ob,{action:e,index:a,onPreview:r,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Pin","ablocks"),attributeValue:t?.settings?.pin,isResponsive:!1,onChangeHandler:e=>{s(i,{...t.settings,pin:e})}}),t?.settings?.pin&&(0,L.jsx)(vt,{label:(0,z.__)("Pin Duration","ablocks"),max:700,min:100,step:1,isResponsive:!1,attributeValue:t?.settings?.pinDuration,onChangeHandler:e=>s(i,{...t.settings,pinDuration:e})}),(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})]})}];return(0,L.jsx)(Qr,{tabs:b}) | |
| 337 | -},pb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Fr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)},r=[{name:"mouseMove",title:(0,z.__)("Move","ablocks"),content:l.map((e,a)=>(0,L.jsx)(ob,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,L.jsx)(Qr,{tabs:r})},mb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={ | |
| 338 | -id:Date.now()%1e5,...Fr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new Jr(o,l,!0)},r=[{name:"whileScroll",title:(0,z.__)("Scroll","ablocks"),content:l.map((e,a)=>(0,L.jsx)(ob,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,z.__)("Settings","ablocks"),content:(0,L.jsx)(tb,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,L.jsx)(Qr,{tabs:r})};function hb({isOpen:t,close:e,content:i}){return t?(0,L.jsx)("div",{className:"ablocks-pro-modal-overlay",children:(0,L.jsxs)("div",{className:"ablocks-pro-modal",children:[(0,L.jsx)("button",{className:"ablocks-pro-modal__close",onClick:()=>{e(!1)}, | |
| 339 | -children:"×"}),(0,L.jsx)("div",{className:"ablocks-pro-modal__content",children:i||(0,z.__)("This feature is only available in the Pro version.","ablocks")}),(0,L.jsx)("button",{className:"ablocks-pro-modal__button",onClick:()=>window.open("https://ablocks.pro/pricing/","_blank"),children:(0,z.__)("Upgrade to aBlocks Pro","ablocks")})]})}):null}hb.propTypes={isOpen:I().bool.isRequired,close:I().func.isRequired,content:I().string};const gb=[{value:"scroll",label:(0,z.__)("Scroll Into View","ablocks")},{value:"hover",label:(0,z.__)("Mouse Hover","ablocks")},{value:"click",label:(0,z.__)("Mouse Click (tap)","ablocks")},{value:"mouseMove",label:(0,z.__)("Mouse Move over Element","ablocks")},{value:"whileScroll",label:(0,z.__)("While scrolling in view","ablocks")}];function fb(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e,[n,s]=(0,a.useState)(!1),[r,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),[u,p]=(0,a.useState)(!1),m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=(0, | |
| 340 | -a.useRef)(null),[f,y]=(0,a.useState)(!1),T=(t,o)=>{const a=[...e?._animation_element_trigger||[]];a[t]={...o},i({_animation_element_trigger:a})},H=(t,o)=>{const a=[...e?._animation_page_trigger||[]];a[t]={...o},i({_animation_page_trigger:a})},x=t=>{const i=e?._animation_element_trigger[t];if(i)switch(i?.trigger){case"hover":return(0,L.jsx)(ab,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"scroll":return(0,L.jsx)(rb,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"click":return(0,L.jsx)(lb,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"mousemove":return(0,L.jsx)(nb,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"whileScroll":return(0,L.jsx)(sb,{blockId:o,schema:i,itemIndex:t,changeHandler:T});default:return(0,L.jsx)("h2",{children:(0,z.__)("Data not found","ablocks")})}},k=t=>{const i=e?._animation_page_trigger[t];if(i)switch(i?.trigger){case"pageLoad":return(0,L.jsx)(db,{blockId:o,schema:i,itemIndex:t,changeHandler:H});case"pageScroll":return(0,L.jsx)(ub,{ | |
| 341 | -blockId:o,schema:i,itemIndex:t,changeHandler:H});case"mouseMovePage":return(0,L.jsx)(pb,{blockId:o,schema:i,itemIndex:t,changeHandler:H});case"whilePageScroll":return(0,L.jsx)(mb,{blockId:o,schema:i,itemIndex:t,changeHandler:H});default:return(0,L.jsx)("h2",{children:(0,z.__)("Data not found","ablocks")})}},v=()=>(0,L.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("path",{d:"M5.86323 1.22642C5.82704 1.24451 5.77677 1.28875 5.75264 1.32294C5.71242 1.37924 5.7084 1.41141 5.70237 1.69695C5.69633 2.04884 5.71242 2.11118 5.83709 2.19362C5.97986 2.29014 6.18898 2.23384 6.26539 2.079C6.31567 1.98047 6.31768 1.4657 6.26942 1.36315C6.20105 1.22038 6.00399 1.15403 5.86323 1.22642Z",fill:"white"}),(0,L.jsx)("path",{ | |
| 342 | -d:"M3.09434 2.93155C3.0119 2.96775 2.92744 3.0703 2.91136 3.15475C2.88723 3.29149 2.92945 3.35583 3.2733 3.70371C3.45025 3.88468 3.62117 4.04554 3.65134 4.06163C3.72976 4.10185 3.8866 4.09782 3.96301 4.04957C4.08366 3.97718 4.13192 3.78615 4.06355 3.65545C4.04545 3.62327 3.88861 3.45436 3.71367 3.28143C3.33564 2.90541 3.2552 2.86117 3.09434 2.93155Z",fill:"white"}),(0,L.jsx)("path",{d:"M8.67426 2.93558C8.59584 2.96976 7.98455 3.56496 7.93629 3.65545C7.9202 3.68561 7.90613 3.74996 7.90613 3.79821C7.90613 3.97718 8.02074 4.08978 8.20373 4.08978C8.33644 4.08978 8.38269 4.0556 8.7567 3.67555C9.06838 3.35785 9.11262 3.28747 9.08849 3.15475C9.06436 3.02606 8.91556 2.90139 8.79089 2.9034C8.76475 2.90541 8.71246 2.91949 8.67426 2.93558Z",fill:"white"}),(0,L.jsx)("path",{ | |
| 318 | +},to:{y:0,opacity:1,duration:.6,delay:0,ease:"bounce.out"}};case"flipLeftToRight":return{type:"flipLeftToRight",from:{rotationY:-180,opacity:0},to:{rotationY:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"flipRightToLeft":return{type:"flipRightToLeft",from:{rotationY:180,opacity:0},to:{rotationY:0,opacity:1,duration:.6,delay:0,ease:"power2.out"}};case"rubberBand":return{type:"rubberBand",from:{scaleX:1,scaleY:1,opacity:0},to:{scaleX:1.25,scaleY:.75,opacity:1,duration:.6,delay:0,ease:"elastic.out(1, 0.5)"}};case"jello":return{type:"jello",from:{scaleX:1,scaleY:1,opacity:0},to:{scaleX:.9,scaleY:1.1,opacity:1,duration:.6,delay:0,ease:"elastic.out(1, 0.5)"}};default:return null}})(t);return i?"in"===e?i:{type:i.type,from:i.to,to:i.from}:null},Kr={default:[],fade:["opacity","y"],slide:["x","y","opacity"],fly:["x","y","opacity"],flip:["rotationY","opacity"],spin:["rotation","opacity"],grow:["scale","opacity"],growBig:["scale","opacity"],shrink:["scale","opacity"], | |
| 319 | +shrinkBig:["scale","opacity"],drop:["y","opacity"],bounce:["y","opacity"],pop:["scale","opacity"],pulse:["scale","opacity"],blink:["opacity"],jiggle:["x","opacity"],rubberBand:["scaleX","scaleY","opacity"],jello:["scaleX","scaleY","opacity"],emphasis:["scale","opacity"],flipLeftToRight:["rotationY","opacity"],flipRightToLeft:["rotationY","opacity"]},Jr=[{label:(0,L.__)("none","ablocks"),value:"none"},{label:"power1.out",value:"power1.out"},{label:"power2.out",value:"power2.out"},{label:"power3.out",value:"power3.out"},{label:"power1.inOut",value:"power1.inOut"},{label:"back.out",value:"back.out(1.7)"},{label:"expo.out",value:"expo.out"}],Qr=[{label:(0,L.__)("Line","ablocks"),value:"lines"},{label:(0,L.__)("Word","ablocks"),value:"words"},{label:(0,L.__)("Chars","ablocks"),value:"chars"}],tb=({content:t=(0,L.__)("free","ablocks"),type:e="free",size:i="md"})=>{const o=s()("ablocks-badge",`ablocks-badge--${e}`,`ablocks-badge--${i}`);return(0,I.jsx)("span",{className:o,children:t}) | |
| 320 | +},eb=({icon:t,title:e,subtitle:i})=>(0,I.jsxs)("div",{className:"ablocks-message-wrapper",children:[(0,I.jsx)("div",{className:"ablocks-message-icon",children:(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${t}`})}),(0,I.jsxs)("h2",{className:"ablocks-message-title",children:[e,!M.zX&&(0,I.jsx)(tb,{type:"pro",content:(0,L.__)("Pro","ablocks"),size:"md"})]}),(0,I.jsx)("p",{className:"ablocks-message-subtitle",children:i})]}),ib=class{constructor(t,e,i=!1){this.triggerEl=t,this.cfg=e,this.triggerEl&&this.cfg&&(this.previewOnly=i,this.targetEl=this.cfg.targetEl||this.triggerEl,this.previewOnly&&this.createPreviewAnimation())}createPreviewAnimation(){if(0!==(this.cfg.actions||[]).length)if(this.cfg.settings?.isSplit){const t=this.splitTextElement(this.targetEl,this.cfg.settings?.splitType);if(!t||0===t.length)return;this.cfg.actions?.forEach(e=>{const i=e.from||{},o=e.to||{};gsap.set(t,i),gsap.to(t,{...o,clearProps:"transform,opacity"})})}else this.cfg.actions?.forEach(t=>{ | |
| 321 | +const e=t.from||{},i=t.to||{};gsap.set(this.targetEl,e),gsap.to(this.targetEl,{...i,clearProps:"transform,opacity"})})}splitTextElement(t,e){const i=t.querySelector("h1, h2, h3, h4, h5, h6, p");if(!i)return[];const o=i.textContent,a=i.innerHTML;i.innerHTML="";let l=[];if("chars"===e)l=o.split("").map(t=>{const e=document.createElement("span");return e.style.display="inline-block",e.style.whiteSpace="pre",e.textContent=" "===t?" ":t,i.appendChild(e),e});else if("words"===e){const t=o.split(" ");l=t.map((e,o)=>{const a=document.createElement("span");return a.style.display="inline-block",a.style.whiteSpace="pre",a.textContent=e+(o<t.length-1?" ":""),i.appendChild(a),a})}else if("lines"===e){const t=a.split(/<br\s*\/?>/i).map(t=>t.trim()).filter(Boolean);l=t.map((t,e)=>{const o=document.createElement("div");return o.style.display="block",o.style.whiteSpace="pre",o.innerHTML=t,i.appendChild(o),o})}return l}};function ob({tabs:t,className:e}){const i=t.map(t=>({name:t.name,title:t.title, | |
| 322 | +className:"ablocks-content-style-tab__item",content:t.content}));return(0,I.jsx)(N.TabPanel,{className:"ablocks-content-style-tabs ablocks-common-tabs",activeClass:"ablocks-content-style-tab__item--active",tabs:i,children:t=>(0,I.jsx)("div",{className:"ablocks-common-tab__content",children:t.content})})}const ab=({blockId:t,changeHandler:e,schema:i,itemIndex:o})=>{const a=(t,o)=>{e(t,{...i,settings:o})};return(0,I.jsxs)(I.Fragment,{children:["none"!==i?.actions[0]?.type&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Split Text","ablocks"),attributeValue:i?.settings?.isSplit,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,isSplit:t})}}),i?.settings?.isSplit&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Split Type","ablocks"),isResponsive:!1,options:Qr,attributeValue:i?.settings?.splitType,onChangeHandler:t=>{a(o,{...i.settings,splitType:t})}}),(0,I.jsx)(_t,{label:(0,L.__)("Stagger(ms)","ablocks"),max:.5,min:.05,step:.01,isResponsive:!1, | |
| 323 | +attributeValue:i?.settings?.stagger,onChangeHandler:t=>a(o,{...i.settings,stagger:t})}),void 0!==i?.actions[0]?.from.opacity&&(0,I.jsx)(ob,{tabs:[{name:"from",title:(0,L.__)("From","ablocks"),content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),max:1,min:0,step:.01,isResponsive:!1,attributeValue:i?.actions[0]?.from.opacity,onChangeHandler:t=>{const a=[...i.actions];a[0]={...a[0],from:{...a[0]?.from,opacity:t}},e(o,{...i,actions:a})}})})},{name:"to",title:(0,L.__)("To","ablocks"),content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),max:1,min:0,step:.01,isResponsive:!1,attributeValue:i?.actions[0]?.to.opacity,onChangeHandler:t=>{const a=[...i.actions];a[0]={...a[0],to:{...a[0]?.to,opacity:t}},e(o,{...i,actions:a})}})})}]})]})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Allow Desktop","ablocks"),attributeValue:i?.settings?.allowDesktop,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,allowDesktop:t})}}),(0,I.jsx)(Ot,{ | |
| 324 | +label:(0,L.__)("Allow Tablet","ablocks"),attributeValue:i?.settings?.allowTablet,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,allowTablet:t})}}),(0,I.jsx)(Ot,{label:(0,L.__)("Allow Mobile","ablocks"),attributeValue:i?.settings?.allowMobile,isResponsive:!1,onChangeHandler:t=>{a(o,{...i.settings,allowMobile:t})}}),i?.settings?.isSplit&&(0,I.jsxs)("div",{className:"ablocks-preview-animations",children:[(0,I.jsx)(at,{label:(0,L.__)("Preview","ablocks"),isResponsive:!1}),(0,I.jsx)("button",{type:"button",className:"ablocks-preview-animations--button",onClick:()=>(()=>{const e=(0,M.bu)(`.ablocks-block-${t}`);if(!e)return;gsap.killTweensOf(e);const o=i.actions[0],a={...i,actions:[o]};new ib(e,a,!0)})(),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--play",children:(0,L.__)("Play","ablocks")})})]})]})},lb=(Y().string,Y().string,Y().string,Y().string,t=>{const{helpLabel:e="",linkBeforeText:i="",linkText:o="",link:a=""}=t;return(0,I.jsx)("div",{ | |
| 325 | +className:"ablocks-trigger--massages",children:(0,I.jsx)("div",{className:"ablocks-trigger--message-info",children:(0,I.jsxs)("span",{className:"ablocks-trigger--link",children:[(0,L.__)(""==i?"Need Help? ":i+" ","ablocks"),(0,I.jsx)("a",{href:""==a?"https://ablocks.pro/docs/how-to-use-gsap-animations-integration-with-ablocks/":a,target:"_blank",rel:"noreferrer",children:(0,L.__)(""==o?"Get Docs":o,"ablocks")})]})})})});function nb(t){const{action:e,index:i,animationAttributeMap:o,updateActionAtIndex:l}=t,n=e?.isOut,[s,r]=(0,a.useState)("from"),b=t=>(0,I.jsxs)("div",{className:"ablocks-animation-tab-controls",children:[o[e.type]?.map(o=>(0,I.jsx)(_t,{label:o,max:o.includes("scale")?5:o.includes("opacity")?1:300,min:o.includes("scale")?1:o.includes("opacity")?0:-300,step:o.includes("opacity")?.01:(o.includes("scale"),1),isResponsive:!1,attributeValue:e[t]?.[o]??0,onChangeHandler:a=>{l(i,{...e,[t]:{...e[t],[o]:a}})}},`${t}-${o}`)),(0,I.jsx)(Ut,{label:(0,L.__)("Ease","ablocks"), | |
| 326 | +isResponsive:!1,options:Jr,attributeValue:e?.to?.ease??"power1.out",onChangeHandler:t=>{l(i,{...e,to:{...e.to,ease:t}})}}),(0,I.jsx)(lb,{})]}),c=[{name:"from",title:(0,L.__)("From","ablocks"),content:b("from")},{name:"to",title:(0,L.__)("To","ablocks"),content:b("to")}],d=n?[...c].reverse():c;return(0,I.jsxs)("div",{className:"ablocks-tabcontrol",children:["none"!==e.type&&(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-tabcontrol__header",children:[(0,I.jsx)("div",{className:"ablocks-tabcontrol__label",children:(0,L.__)("Animation","ablocks")}),(0,I.jsx)("div",{className:"ablocks-tabcontrol__buttons",children:d.map(t=>(0,I.jsx)("button",{className:"ablocks-tabcontrol__btn "+(s===t.name?"ablocks-tabcontrol__btn--active":""),onClick:()=>r(t.name),children:t.title},t.name))})]})}),(0,I.jsx)("div",{className:"ablocks-tabcontrol__content",children:d.find(t=>t.name===s)?.content})]})}const sb=({action:t,index:e,updateActionAtIndex:i,isOutDefault:o,onPreview:a})=>(0, | |
| 327 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),isResponsive:!1,options:Gr,attributeValue:t.type,onChangeHandler:a=>{const l=Zr(a,o);i(e,{...t,...l,type:a})}}),"none"!==t.type&&(0,I.jsxs)(I.Fragment,{children:["none"!==t.type&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Direction","ablocks"),attributeValue:t.isOut,isResponsive:!1,onChangeHandler:o=>{const a=Zr(t.type,o);i(e,{...t,...a,isOut:o})}}),(0,I.jsx)(lb,{})]}),(0,I.jsx)(nb,{action:t,index:e,animationAttributeMap:Kr,updateActionAtIndex:i}),(0,I.jsx)(_t,{label:(0,L.__)("Duration","ablocks"),max:5,min:0,step:.1,isResponsive:!1,attributeValue:t?.to?.duration,onChangeHandler:o=>i(e,{...t,to:{...t.to,duration:o}})}),(0,I.jsx)(_t,{label:(0,L.__)("Delay","ablocks"),max:5,min:0,step:.1,isResponsive:!1,attributeValue:t?.to?.delay,onChangeHandler:o=>i(e,{...t,to:{...t.to,delay:o}})}),(0,I.jsxs)("div",{className:"ablocks-preview-animations",children:[(0,I.jsx)(at,{label:(0, | |
| 328 | +L.__)("Preview","ablocks"),isResponsive:!1}),(0,I.jsx)("button",{type:"button",className:"ablocks-preview-animations--button",onClick:()=>a(e),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--play",children:(0,L.__)("Play","ablocks")})})]})]})]}),rb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||2!==t.actions.length){const e=[{id:Date.now()%1e5,...Zr("none",!1),isOut:!1},{id:(Date.now()+200)%1e5,...Zr("none",!0),isOut:!0}];o(i,{...t,actions:e})}},[]),!t.actions||2!==t.actions.length)return null;const n=t.actions,s=(e,a)=>{const l=[...n];l[e]=a,o(i,{...t,actions:l})},r=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(ob,{tabs:[{name:"in",title:(0,L.__)("In","ablocks"),content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(sb,{action:n[0],index:0,updateActionAtIndex:s,isOutDefault:!1,onPreview:r})}) | |
| 329 | +},{name:"out",title:(0,L.__)("Out","ablocks"),content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(sb,{action:n[1],index:1,updateActionAtIndex:s,isOutDefault:!1,onPreview:r})})},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}]})})},bb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||2!==t.actions.length){const e=[{id:Date.now()%1e5,...Zr("none",!1),isOut:!1},{id:(Date.now()+200)%1e5,...Zr("none",!0),isOut:!0}];o(i,{...t,actions:e})}},[]),!t.actions||2!==t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)},r=[{name:"firstClick",title:(0,L.__)("1st","ablocks"),content:(0,I.jsx)(sb,{action:l[0],index:0,updateActionAtIndex:n,isOutDefault:!1,onPreview:s})},{name:"secondClick",title:(0, | |
| 330 | +L.__)("2nd","ablocks"),content:(0,I.jsx)(sb,{action:l[1],index:1,updateActionAtIndex:n,isOutDefault:!0,onPreview:s})},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,I.jsx)(ob,{tabs:r})},cb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Zr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)},r=[{name:"mouseMove",title:(0,L.__)("Move","ablocks"),content:l.map((e,a)=>(0,I.jsx)(sb,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings", | |
| 331 | +title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,I.jsx)(ob,{tabs:r})},db=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Zr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)},r=[{name:"whileScroll",title:(0,L.__)("On","ablocks"),content:l.map((e,a)=>(0,I.jsx)(sb,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,I.jsx)(ob,{tabs:r | |
| 332 | +})},ub=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||2!==t.actions.length){const e=[{id:Date.now()%1e5,...Zr("none",!1),isOut:!1},{id:(Date.now()+200)%1e5,...Zr("none",!0),isOut:!0}];o(i,{...t,actions:e})}},[]),!t.actions||2!==t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)},r=[{name:"scrollIn",title:(0,L.__)("Up","ablocks"),content:(0,I.jsx)(sb,{action:l[0],index:0,updateActionAtIndex:n,isOutDefault:!1,onPreview:s})},{name:"scrollOut",title:(0,L.__)("Down","ablocks"),content:(0,I.jsx)(sb,{action:l[1],index:1,updateActionAtIndex:n,isOutDefault:!0,onPreview:s})},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,I.jsx)(ob,{tabs:r})},pb=[{value:"pageLoad",label:(0, | |
| 333 | +L.__)("On Page Load","ablocks")},{value:"pageScroll",label:(0,L.__)("On Page Scroll","ablocks")},{value:"mouseMovePage",label:(0,L.__)("Mouse Move in Viewport","ablocks")},{value:"whilePageScroll",label:(0,L.__)("While Page Scrolling","ablocks")}],mb=t=>{switch(t){case"pageLoad":return{id:"",trigger:"pageLoad",title:(0,L.__)("On Page Load","ablocks"),subTitle:(0,L.__)("Define actions that occur when page loads.","ablocks"),once:!1,settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"mouseMovePage":return{id:"",trigger:"mouseMovePage",title:(0,L.__)("Mouse Move in Viewport","ablocks"),subTitle:(0,L.__)("Define actions that occur when cursor moves in viewport along X or Y axis.","ablocks"),once:!1,settings:{strength:30,mouseX:50,mouseY:50,smoothing:50,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"pageScroll":return{id:"", | |
| 334 | +trigger:"pageScroll",title:(0,L.__)("On Page Scroll","ablocks"),subTitle:(0,L.__)("Define actions that occur when page is scrolled.","ablocks"),once:!1,settings:{duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,pin:!0,pinDuration:300,parallax:!0,speed:.3,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};case"whilePageScroll":return{id:"",trigger:"whilePageScroll",title:(0,L.__)("While Page Scrolling","ablocks"),subTitle:(0,L.__)("Define actions that occur when page is being scrolled.","ablocks"),once:!1,settings:{scrub:!0,startValue:10,endValue:100,duration:0,delay:1,isSplit:!1,splitType:"lines",stagger:.15,allowDesktop:!0,allowTablet:!0,allowMobile:!0},actions:[]};default:return{id:"",trigger:t||"unknown",once:!1,settings:{},actions:[]}}},hb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Zr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]), | |
| 335 | +!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=getRenderDomElement(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ABlocksGsapAnimation(o,l,!0)},r=[{name:"pageLoad",title:(0,L.__)("Load","ablocks"),content:l.map((e,a)=>(0,I.jsx)(sb,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,I.jsx)(ob,{tabs:r})},gb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Zr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t, | |
| 336 | +actions:n})},s=(e,i)=>{o(e,{...t,settings:i})},r=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)},b=[{name:"pageScroll",title:(0,L.__)("Scroll","ablocks"),content:l.map((e,a)=>(0,I.jsx)(sb,{action:e,index:a,onPreview:r,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Pin","ablocks"),attributeValue:t?.settings?.pin,isResponsive:!1,onChangeHandler:e=>{s(i,{...t.settings,pin:e})}}),t?.settings?.pin&&(0,I.jsx)(_t,{label:(0,L.__)("Pin Duration","ablocks"),max:700,min:100,step:1,isResponsive:!1,attributeValue:t?.settings?.pinDuration,onChangeHandler:e=>s(i,{...t.settings,pinDuration:e})}),(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})]})}];return(0,I.jsx)(ob,{tabs:b}) | |
| 337 | +},fb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={id:Date.now()%1e5,...Zr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)},r=[{name:"mouseMove",title:(0,L.__)("Move","ablocks"),content:l.map((e,a)=>(0,I.jsx)(sb,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,I.jsx)(ob,{tabs:r})},yb=({schema:t,blockId:e,itemIndex:i,changeHandler:o})=>{if((0,a.useEffect)(()=>{if(!t.actions||0===t.actions.length){const e={ | |
| 338 | +id:Date.now()%1e5,...Zr("none",!1),isOut:!1};o(i,{...t,actions:[e]})}},[]),!t.actions||0===t.actions.length)return null;const l=t.actions,n=(e,a)=>{const n=[...l];n[e]=a,o(i,{...t,actions:n})},s=i=>{const o=(0,M.bu)(`.ablocks-block-${e}`);if(!o)return;gsap.killTweensOf(o);const a=t.actions[i],l={...t,actions:[a]};new ib(o,l,!0)},r=[{name:"whileScroll",title:(0,L.__)("Scroll","ablocks"),content:l.map((e,a)=>(0,I.jsx)(sb,{action:e,index:a,onPreview:s,updateActionAtIndex:n,isOutDefault:!1,settings:t.settings,onSettingsChange:e=>{o(i,{...t,settings:{...t.settings,...e}})}},e.id))},{name:"settings",title:(0,L.__)("Settings","ablocks"),content:(0,I.jsx)(ab,{schema:t,changeHandler:o,itemIndex:i,blockId:e})}];return(0,I.jsx)(ob,{tabs:r})};function Tb({isOpen:t,close:e,content:i}){return t?(0,I.jsx)("div",{className:"ablocks-pro-modal-overlay",children:(0,I.jsxs)("div",{className:"ablocks-pro-modal",children:[(0,I.jsx)("button",{className:"ablocks-pro-modal__close",onClick:()=>{e(!1)}, | |
| 339 | +children:"×"}),(0,I.jsx)("div",{className:"ablocks-pro-modal__content",children:i||(0,L.__)("This feature is only available in the Pro version.","ablocks")}),(0,I.jsx)("button",{className:"ablocks-pro-modal__button",onClick:()=>window.open("https://ablocks.pro/pricing/","_blank"),children:(0,L.__)("Upgrade to aBlocks Pro","ablocks")})]})}):null}Tb.propTypes={isOpen:Y().bool.isRequired,close:Y().func.isRequired,content:Y().string};const Hb=[{value:"scroll",label:(0,L.__)("Scroll Into View","ablocks")},{value:"hover",label:(0,L.__)("Mouse Hover","ablocks")},{value:"click",label:(0,L.__)("Mouse Click (tap)","ablocks")},{value:"mouseMove",label:(0,L.__)("Mouse Move over Element","ablocks")},{value:"whileScroll",label:(0,L.__)("While scrolling in view","ablocks")}];function Mb(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e,[n,s]=(0,a.useState)(!1),[r,b]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),[u,p]=(0,a.useState)(!1),m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=(0, | |
| 340 | +a.useRef)(null),[f,y]=(0,a.useState)(!1),T=(t,o)=>{const a=[...e?._animation_element_trigger||[]];a[t]={...o},i({_animation_element_trigger:a})},H=(t,o)=>{const a=[...e?._animation_page_trigger||[]];a[t]={...o},i({_animation_page_trigger:a})},x=t=>{const i=e?._animation_element_trigger[t];if(i)switch(i?.trigger){case"hover":return(0,I.jsx)(rb,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"scroll":return(0,I.jsx)(ub,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"click":return(0,I.jsx)(bb,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"mousemove":return(0,I.jsx)(cb,{blockId:o,schema:i,itemIndex:t,changeHandler:T});case"whileScroll":return(0,I.jsx)(db,{blockId:o,schema:i,itemIndex:t,changeHandler:T});default:return(0,I.jsx)("h2",{children:(0,L.__)("Data not found","ablocks")})}},k=t=>{const i=e?._animation_page_trigger[t];if(i)switch(i?.trigger){case"pageLoad":return(0,I.jsx)(hb,{blockId:o,schema:i,itemIndex:t,changeHandler:H});case"pageScroll":return(0,I.jsx)(gb,{ | |
| 341 | +blockId:o,schema:i,itemIndex:t,changeHandler:H});case"mouseMovePage":return(0,I.jsx)(fb,{blockId:o,schema:i,itemIndex:t,changeHandler:H});case"whilePageScroll":return(0,I.jsx)(yb,{blockId:o,schema:i,itemIndex:t,changeHandler:H});default:return(0,I.jsx)("h2",{children:(0,L.__)("Data not found","ablocks")})}},v=()=>(0,I.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M5.86323 1.22642C5.82704 1.24451 5.77677 1.28875 5.75264 1.32294C5.71242 1.37924 5.7084 1.41141 5.70237 1.69695C5.69633 2.04884 5.71242 2.11118 5.83709 2.19362C5.97986 2.29014 6.18898 2.23384 6.26539 2.079C6.31567 1.98047 6.31768 1.4657 6.26942 1.36315C6.20105 1.22038 6.00399 1.15403 5.86323 1.22642Z",fill:"white"}),(0,I.jsx)("path",{ | |
| 342 | +d:"M3.09434 2.93155C3.0119 2.96775 2.92744 3.0703 2.91136 3.15475C2.88723 3.29149 2.92945 3.35583 3.2733 3.70371C3.45025 3.88468 3.62117 4.04554 3.65134 4.06163C3.72976 4.10185 3.8866 4.09782 3.96301 4.04957C4.08366 3.97718 4.13192 3.78615 4.06355 3.65545C4.04545 3.62327 3.88861 3.45436 3.71367 3.28143C3.33564 2.90541 3.2552 2.86117 3.09434 2.93155Z",fill:"white"}),(0,I.jsx)("path",{d:"M8.67426 2.93558C8.59584 2.96976 7.98455 3.56496 7.93629 3.65545C7.9202 3.68561 7.90613 3.74996 7.90613 3.79821C7.90613 3.97718 8.02074 4.08978 8.20373 4.08978C8.33644 4.08978 8.38269 4.0556 8.7567 3.67555C9.06838 3.35785 9.11262 3.28747 9.08849 3.15475C9.06436 3.02606 8.91556 2.90139 8.79089 2.9034C8.76475 2.90541 8.71246 2.91949 8.67426 2.93558Z",fill:"white"}),(0,I.jsx)("path",{ | |
| 343 | 343 | d:"M5.77873 2.97784C5.66813 3.03616 5.66813 3.03616 5.30619 3.63337C4.72104 4.59856 4.59436 4.72725 3.64324 5.29832C3.12244 5.61 3.04603 5.66228 2.98973 5.74472C2.95554 5.79701 2.92136 5.87543 2.91332 5.91967C2.89321 6.0383 2.91935 6.15091 2.98973 6.25547C3.04603 6.3359 3.12646 6.39221 3.64324 6.70187C4.59637 7.27495 4.72707 7.40767 5.30619 8.36683C5.62188 8.89165 5.67416 8.96806 5.75259 9.01632C5.91747 9.12088 6.09442 9.11887 6.25529 9.01029C6.33773 8.95398 6.39001 8.87757 6.70169 8.35677C7.27276 7.40566 7.40548 7.27495 8.35659 6.70187C8.87739 6.3902 8.9538 6.33791 9.01011 6.25547C9.1207 6.09058 9.1207 5.90961 9.01011 5.74472C8.9538 5.66429 8.87337 5.60799 8.35659 5.29832C7.40548 4.72524 7.27276 4.59454 6.70169 3.64342C6.37594 3.1005 6.34175 3.05023 6.25127 2.99393C6.17687 2.94768 6.1266 2.93361 6.02204 2.92757C5.90742 2.92154 5.87525 2.92757 5.77873 2.97784ZM6.21105 4.00336C6.56697 4.60258 6.66751 4.73932 6.9631 5.03692C7.2607 5.33251 7.39743 5.43305 7.99665 5.78896C8.18165 5.89956 8.33246 5.99407 8.33246 6.0001C8.33246 6.00613 8.18165 6.10064 7.99665 6.21123C7.39743 6.56715 7.2607 6.66769 6.9631 6.96328C6.66751 7.26088 6.56697 7.39761 6.21105 7.99684C6.10046 8.18183 6.00595 8.33264 5.99992 8.33264C5.99388 8.33264 5.89938 8.18183 5.78878 7.99483C5.43287 7.39761 5.33233 7.26088 5.03674 6.96328C4.73914 6.66769 4.6024 6.56715 4.00519 6.21123C3.81818 6.10064 3.66737 6.00613 3.66737 6.0001C3.66737 5.99407 3.81818 5.89956 4.00519 5.78896C4.6024 5.43305 4.73914 5.33251 5.03674 5.03692C5.33233 4.73932 5.43287 4.60258 5.78878 4.00336C5.89938 3.81836 5.99388 3.66755 5.99992 3.66755C6.00595 3.66755 6.10046 3.81836 6.21105 4.00336Z", |
| 344 | -fill:"white"}),(0,L.jsx)("path",{d:"M1.35896 5.73264C1.21016 5.80503 1.15184 6.00209 1.23831 6.14887C1.31673 6.28159 1.38108 6.3017 1.71688 6.3017C1.95416 6.3017 2.02052 6.29566 2.07883 6.2655C2.29399 6.15893 2.29399 5.84122 2.07883 5.73465C1.9803 5.68438 1.45749 5.68237 1.35896 5.73264Z",fill:"white"}),(0,L.jsx)("path",{d:"M9.921 5.73465C9.82046 5.78492 9.76013 5.88546 9.76013 6.00007C9.76013 6.11469 9.82046 6.21523 9.921 6.2655C9.97931 6.29566 10.0457 6.3017 10.2829 6.3017C10.5484 6.3017 10.5826 6.29768 10.6529 6.25545C10.858 6.13882 10.85 5.83117 10.6368 5.73063C10.5343 5.68237 10.0195 5.68438 9.921 5.73465Z",fill:"white"}),(0,L.jsx)("path",{ | |
| 345 | -d:"M8.1414 7.91036C8.0489 7.93047 7.9926 7.96666 7.95037 8.03704C7.90211 8.11345 7.89809 8.2703 7.93831 8.34872C7.9544 8.37888 8.11526 8.5498 8.29623 8.72876C8.55965 8.99017 8.64008 9.05653 8.71046 9.07865C8.93567 9.145 9.1448 8.93588 9.07844 8.70866C9.05632 8.64029 8.98996 8.56187 8.72856 8.29644C8.5496 8.11546 8.38471 7.95862 8.36259 7.94656C8.30026 7.91237 8.20776 7.89629 8.1414 7.91036Z",fill:"white"}),(0,L.jsx)("path",{d:"M3.63715 7.94853C3.60498 7.96863 3.43607 8.1295 3.26314 8.30444C2.92934 8.64427 2.88712 8.71063 2.91326 8.84736C2.92934 8.94187 3.02989 9.05045 3.1264 9.0786C3.27923 9.12485 3.33955 9.08866 3.70351 8.72872C3.88448 8.54976 4.04535 8.37683 4.06344 8.34466C4.13181 8.21395 4.08355 8.02293 3.9629 7.95054C3.87845 7.89826 3.71758 7.89826 3.63715 7.94853Z",fill:"white"}),(0,L.jsx)("path",{ | |
| 346 | -d:"M5.83699 9.80654C5.71835 9.88496 5.69824 9.95333 5.69824 10.2831C5.69824 10.5485 5.70226 10.5827 5.74449 10.6531C5.82895 10.7999 5.99986 10.8461 6.14866 10.7597C6.28138 10.6853 6.30149 10.6209 6.30149 10.2831C6.30149 10.0458 6.29545 9.97947 6.26529 9.92116C6.21502 9.82062 6.11448 9.76029 5.99986 9.76029C5.93552 9.76029 5.88324 9.77437 5.83699 9.80654Z",fill:"white"})]});return(0,a.useEffect)(()=>{const t=t=>{m.current&&!m.current.contains(t.target)&&p(!1),h.current&&!h.current.contains(t.target)&&d(!1)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsxs)("div",{className:"ablocks-trigger-wrapper",ref:m,children:[(0,L.jsxs)("div",{className:"ablocks-trigger-control",children:[(0,L.jsx)("span",{className:"ablocks-trigger-control__label",children:(0,z.__)("Element Trigger","ablocks")}),(0,L.jsx)("span",{className:"ablocks-trigger-control__toggle",onClick:()=>p(!u),children:u?(0, | |
| 347 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--minus"}):(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})}),u&&(0,L.jsx)("ul",{className:"ablocks-trigger-control__list",children:gb.map((t,o)=>(0,L.jsxs)("li",{className:"ablocks-trigger-control__item",onClick:()=>{if(!M.zX)return y(!0),void p(!1);(t=>{const o={...Br(t),id:Date.now()},a=[...e?._animation_element_trigger||[],o];i({_animation_element_trigger:a}),s(a.length-1),p(!1)})(t.value)},children:[t.label,M.zX?"":(0,L.jsx)(Zr,{type:"pro",content:(0,z.__)("Pro","ablocks"),size:"sm"})]},o))})]}),(0,L.jsx)("div",{className:"ablocks-trigger-items",children:e?._animation_element_trigger?.length>0?e._animation_element_trigger.map((t,o)=>{const a=t?.actions&&0!==t.actions.length?t.actions.every(t=>"none"===t.type)?(0,z.__)("Effects","ablocks"):t.actions.map(t=>t.type).join(" / "):(0,z.__)("Effects","ablocks"),l=n===o;return(0,L.jsxs)("div",{className:"ablocks-trigger-item",children:[(0,L.jsx)("div",{ | |
| 348 | -className:"ablocks-trigger-item__header",onClick:()=>s(l?null:o),children:(0,L.jsxs)("div",{className:"ablocks-trigger-controls",children:[(0,L.jsx)("span",{className:"ablocks-trigger-controls__label",children:t.title}),(0,L.jsxs)("div",{className:"ablocks-trigger-controls__input-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-trigger-controls__left-icon",children:(0,L.jsx)(v,{})}),(0,L.jsx)("input",{type:"text",className:"ablocks-trigger-controls__input",value:a,"aria-readonly":!0,readOnly:!0}),(0,L.jsx)("span",{className:"ablocks-trigger-controls__close-icon",onClick:t=>{t.stopPropagation(),(t=>{const o=e?._animation_element_trigger.filter((e,i)=>i!==t);i({_animation_element_trigger:o}),n===t&&s(null)})(o)},children:"×"})]})]})}),l&&(0,L.jsx)(Yt,{label:t.title,isShowPrimaryLabel:!1,isReset:!1,isVisible:l,toggleVisible:()=>s(l?null:o),anchorRef:g,placement:"left-bottom",children:(0,L.jsx)("div",{className:"ablocks-trigger-item__settings",children:x(o)})})]},t.id)}):(0, | |
| 349 | -L.jsx)(Kr,{icon:"element-trigger",title:(0,z.__)("Element trigger","ablocks"),subtitle:(0,z.__)("Select an element on the canvas and click + to add an animation that runs when the user interacts with it (for example, on hover or click).","ablocks")})})]}),(0,L.jsxs)("div",{className:"ablocks-trigger-wrapper",ref:h,children:[(0,L.jsxs)("div",{className:"ablocks-trigger-control",children:[(0,L.jsx)("span",{className:"ablocks-trigger-control__label",children:(0,z.__)("Page Trigger","ablocks")}),(0,L.jsx)("span",{className:"ablocks-trigger-control__toggle",onClick:()=>d(!c),children:c?(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--minus"}):(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})}),c&&(0,L.jsx)("ul",{className:"ablocks-trigger-control__list",children:bb.map((t,o)=>(0,L.jsxs)("li",{className:"ablocks-trigger-control__item",onClick:()=>{if(!M.zX)return y(!0),void d(!1);(t=>{const o={...cb(t),id:Date.now()},a=[...e?._animation_page_trigger||[],o];i({ | |
| 350 | -_animation_page_trigger:a}),b(a.length-1),d(!1)})(t.value)},children:[t.label,M.zX?"":(0,L.jsx)(Zr,{type:"pro",content:(0,z.__)("Pro","ablocks"),size:"sm"})]},o))})]}),(0,L.jsx)("div",{className:"ablocks-trigger-items",children:e?._animation_page_trigger?.length>0?e._animation_page_trigger.map((t,o)=>{const a=t?.actions&&0!==t.actions.length?t.actions.every(t=>"none"===t.type)?(0,z.__)("Effects","ablocks"):t.actions.map(t=>t.type).join(" / "):(0,z.__)("Effects","ablocks"),l=r===o;return(0,L.jsxs)("div",{className:"ablocks-trigger-item",children:[(0,L.jsx)("div",{className:"ablocks-trigger-item__header",onClick:()=>b(l?null:o),children:(0,L.jsxs)("div",{className:"ablocks-trigger-controls",children:[(0,L.jsx)("span",{className:"ablocks-trigger-controls__label",children:t.title}),(0,L.jsxs)("div",{className:"ablocks-trigger-controls__input-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-trigger-controls__left-icon",children:(0,L.jsx)(v,{})}),(0,L.jsx)("input",{type:"text", | |
| 351 | -className:"ablocks-trigger-controls__input",value:a,"aria-readonly":!0,readOnly:!0}),(0,L.jsx)("span",{className:"ablocks-trigger-controls__close-icon",onClick:t=>{t.stopPropagation(),(t=>{const o=e?._animation_page_trigger.filter((e,i)=>i!==t);i({_animation_page_trigger:o}),r===t&&b(null)})(o)},children:"×"})]})]})}),l&&(0,L.jsx)(Yt,{label:t.title,isShowPrimaryLabel:!1,isReset:!1,isVisible:l,toggleVisible:()=>b(l?null:o),anchorRef:g,placement:"left-top",children:(0,L.jsx)("div",{className:"ablocks-trigger-item__settings",children:k(o)})})]},t.id)}):(0,L.jsx)(Kr,{icon:"page-trigger",title:(0,z.__)("Page trigger","ablocks"),subtitle:(0,z.__)("Click + to create an animation that runs when the page state changes (for example, on page load).","ablocks")})}),f&&(0,L.jsx)(hb,{isOpen:f,close:y,content:(0,z.__)("Access advanced motion effects that draw attention, increase interaction, and make your website feel more dynamic and engaging.","ablocks")})]})]})}fb.propTypes={},fb.defaultProps={} | |
| 352 | -;const yb={docs_url:I().string};function Tb({docs_url:t}){return t?(0,L.jsx)("div",{className:"ablocks-block-help-link",children:(0,L.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[(0,L.jsx)("span",{children:(0,z.__)("Need Help","ablocks")}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--new-tab"})]})}):null}window.aBlocksInspectorTabsState={},Tb.propTypes=yb;const Hb={attributes:I().object,setAttributes:I().func,isDisableLeftRightMargin:I().bool,isContainer:I().bool,hasAdvance:I().bool,docs_url:I().string};function Mb(t){const{children:e,attributes:i={},setAttributes:o=()=>{},isDisableLeftRightMargin:a=!1,isContainer:n=!1,hasAdvance:s=!0,docs_url:r=""}=t,b=s&&(0,Yr.Rz)(),c=[{name:"general",render:e,title:(0,L.jsx)(L.Fragment,{children:(0,z.__)("General","ablocks")}),className:"ablocks-inspector-tab__item"},b&&{name:"advanced",render:(0,L.jsx)(Xr,{attributes:i,setAttributes:o,isDisableLeftRightMargin:a,isContainer:n}),title:(0,L.jsx)(L.Fragment,{ | |
| 353 | -children:(0,z.__)("Advanced","ablocks")}),className:"ablocks-inspector-tab__item"},{name:"integrations",render:(0,L.jsx)(fb,{attributes:i,setAttributes:o,isContainer:n}),title:(0,L.jsx)(L.Fragment,{children:(0,z.__)("Integ.","ablocks")}),className:"ablocks-inspector-tab__item"}].filter(Boolean),{lastBlockId:d="",lastSelectedTabName:u="content"}=window.aBlocksInspectorTabsState,p=i.block_id,m=d===p&&u;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(A.TabPanel,{className:"ablocks-inspector-tabs",activeClass:"ablocks-inspector-tab__item--active",tabs:c,initialTabName:m,children:t=>{{const e={lastBlockId:p,lastSelectedTabName:t.name};return window.aBlocksInspectorTabsState=e,t.render}}}),(0,L.jsx)(Tb,{docs_url:r})]})}window.aBlocksInspectorTabsState={},Mb.propTypes=Hb;const xb={isResponsive:I().bool,allowDeselect:I().bool,isInline:I().bool,options:I().array,setAttributes:I().func,attributeName:I().string,onChangeHandler:I().func,attributeValue:I().any,attributeObjectKey:I().string, | |
| 354 | -label:I().string},kb=t=>{const{isResponsive:e=!0,allowDeselect:i=!0,isInline:o=!1,options:a=[],setAttributes:l,attributeName:n,onChangeHandler:s,attributeValue:r,attributeObjectKey:b="value",label:c}=t,d=e?at():"",u=e?(0,M.Ic)(r,b,d):r;return(0,L.jsxs)("div",{className:"ablocks-component ablocks-component--buttongroup "+(o?"ablocks-component--buttongroup-inline":""),children:[c&&(0,L.jsx)(ot,{label:c,isResponsive:e}),(0,L.jsx)("div",{className:"ablocks-component__buttons",children:a.map((t,o)=>(0,L.jsx)("button",{onClick:()=>((t,o)=>{const a=i&&r===t?void 0:t;s?s(a,e?b+o:n):((t,i)=>{l(e?{[n]:(0,M.jI)((0,Gt.tJ)(e),{...r,[b+i]:t})}:{[n]:t})})(a,o)})(t.value===u?"":t.value,e?d:""),className:`ablocks-component__button ${u===t.value?"active":""} ${t?.icon?"ablocks-component__button--has-icon":""} `,children:t.icon?(0,L.jsx)(X,{position:t?.tooltipPosition,tooltipText:t?.label,children:t.icon}):t?.label},o))})]})};kb.propTypes=xb;const vb=kb,_b={content:I().node.isRequired, | |
| 355 | -style:I().node.isRequired,firstTabLabel:I().string.isRequired,secondTabLabel:I().string.isRequired};function Rb(t){const{content:e="",style:i="",firstTabLabel:o=(0,z.__)("Content","ablocks"),secondTabLabel:a=(0,z.__)("Style","ablocks")}=t;if(!(0,Yr.wA)())return(0,L.jsx)(l().Fragment,{children:e});const n=[{name:o.toLowerCase().replace(/\s+/g,"-"),render:e,title:(0,L.jsx)(L.Fragment,{children:o}),className:"ablocks-content-style-tab__item"},{name:a.toLowerCase().replace(/\s+/g,"-"),render:i,title:(0,L.jsx)(L.Fragment,{children:a}),className:"ablocks-content-style-tab__item"}];return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(A.TabPanel,{className:"ablocks-content-style-tabs",activeClass:"ablocks-content-style-tab__item--active",tabs:n,children:t=>t.render})})}Rb.propTypes=_b;const Sb=({label:t=(0,z.__)("Open Parent Settings","ablocks"),clientId:e})=>{const i=(0,r.select)("core/block-editor").getBlockParents(e);if(0===i.length)return null;const o=i[i.length-1];return(0,L.jsx)(A.Button,{ | |
| 356 | -className:"ablocks-btn--select-parent-Block",isPrimary:!0,onClick:()=>{(0,r.dispatch)("core/block-editor").selectBlock(o)},children:(0,z.sprintf)((0,z.__)("%s","ablocks"),t)})};var Wb=i(88554);function Ub(t){const{attributeValue:e={},setAttributes:i,attributeName:o,label:l,onChangeHandler:n,noFollowIOn:s=!0}=t,{href:r="",noFollow:b=!1,linkTarget:c=!1,keyValue:d=""}=e,[u,p]=(0,a.useState)(!1),m=(t,e)=>{n?n(t,e):h(t,e)},h=(t,a)=>{const l=(0,M.jI)((0,Wb.tJ)(),{...e,[t]:a});i({[o]:l})};return(0,L.jsxs)("div",{className:"ablocks-link-controls",children:[(0,L.jsx)(ql,{attributeName:o,setAttributes:i,dynamicType:"link",attributeObjectValue:e,label:l,attributeValue:r,placeholder:"Paste URL or type",onChangeHandler:t=>m("href",t)}),(0,L.jsx)("button",{className:"ablocks-link-options-button",onClick:()=>{p(!u)},children:(0,z.__)("Link Options","ablocks")}),u&&(0,L.jsxs)("div",{className:"ablocks-link-options",children:[(0,L.jsx)(Vt,{label:(0,z.__)("Open in new window","ablocks"),isResponsive:!1, | |
| 357 | -attributeValue:c,setAttributes:i,attributeName:o,onChangeHandler:t=>m("linkTarget",t)}),s&&(0,L.jsx)(Vt,{label:(0,z.__)("Add nofollow","ablocks"),isResponsive:!1,attributeValue:b,setAttributes:i,attributeName:o,onChangeHandler:t=>m("noFollow",t)}),(0,L.jsx)(ql,{disableDynamicContent:!0,label:(0,z.__)("Custom Attributes","ablocks"),attributeValue:d,placeholder:"key|value",isInline:!1,onChangeHandler:t=>m("keyValue",t)}),(0,L.jsx)("span",{className:"ablocks-filed-description",children:"Set custom attributes for the link element. Separate attribute keys from values using the | (pipe) character. Separate key-value pairs with a comma."})]})]})}const Pb=[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:(0, | |
| 358 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,z.__)("Space Around","ablocks"),value:"space-around",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,z.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],jb=[{label:(0,z.__)("start","ablocks"),value:"start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,z.__)("End","ablocks"),value:"end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,z.__)("Stretch","ablocks"),value:"stretch",icon:(0, | |
| 359 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})}],wb=[{label:(0,z.__)("default","ablocks")},{label:(0,z.__)("div","ablocks"),value:"div"},{label:(0,z.__)("header","ablocks"),value:"header"},{label:(0,z.__)("footer","ablocks"),value:"footer"},{label:(0,z.__)("main","ablocks"),value:"main"},{label:(0,z.__)("article","ablocks"),value:"article"},{label:(0,z.__)("section","ablocks"),value:"section"},{label:(0,z.__)("aside","ablocks"),value:"aside"},{label:(0,z.__)("nav","ablocks"),value:"nav"},{label:(0,z.__)("a (link)","ablocks"),value:"a"}],zb=t=>{switch(t){case"mountains":return(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0,L.jsx)("path",{className:"ablocks-container-shape-fill",opacity:"0.33", | |
| 360 | -d:"M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",opacity:"0.66",d:"M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z","data-sg-is-observed":"true"})]});case"clouds":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"xMidYMax slice","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill", | |
| 344 | +fill:"white"}),(0,I.jsx)("path",{d:"M1.35896 5.73264C1.21016 5.80503 1.15184 6.00209 1.23831 6.14887C1.31673 6.28159 1.38108 6.3017 1.71688 6.3017C1.95416 6.3017 2.02052 6.29566 2.07883 6.2655C2.29399 6.15893 2.29399 5.84122 2.07883 5.73465C1.9803 5.68438 1.45749 5.68237 1.35896 5.73264Z",fill:"white"}),(0,I.jsx)("path",{d:"M9.921 5.73465C9.82046 5.78492 9.76013 5.88546 9.76013 6.00007C9.76013 6.11469 9.82046 6.21523 9.921 6.2655C9.97931 6.29566 10.0457 6.3017 10.2829 6.3017C10.5484 6.3017 10.5826 6.29768 10.6529 6.25545C10.858 6.13882 10.85 5.83117 10.6368 5.73063C10.5343 5.68237 10.0195 5.68438 9.921 5.73465Z",fill:"white"}),(0,I.jsx)("path",{ | |
| 345 | +d:"M8.1414 7.91036C8.0489 7.93047 7.9926 7.96666 7.95037 8.03704C7.90211 8.11345 7.89809 8.2703 7.93831 8.34872C7.9544 8.37888 8.11526 8.5498 8.29623 8.72876C8.55965 8.99017 8.64008 9.05653 8.71046 9.07865C8.93567 9.145 9.1448 8.93588 9.07844 8.70866C9.05632 8.64029 8.98996 8.56187 8.72856 8.29644C8.5496 8.11546 8.38471 7.95862 8.36259 7.94656C8.30026 7.91237 8.20776 7.89629 8.1414 7.91036Z",fill:"white"}),(0,I.jsx)("path",{d:"M3.63715 7.94853C3.60498 7.96863 3.43607 8.1295 3.26314 8.30444C2.92934 8.64427 2.88712 8.71063 2.91326 8.84736C2.92934 8.94187 3.02989 9.05045 3.1264 9.0786C3.27923 9.12485 3.33955 9.08866 3.70351 8.72872C3.88448 8.54976 4.04535 8.37683 4.06344 8.34466C4.13181 8.21395 4.08355 8.02293 3.9629 7.95054C3.87845 7.89826 3.71758 7.89826 3.63715 7.94853Z",fill:"white"}),(0,I.jsx)("path",{ | |
| 346 | +d:"M5.83699 9.80654C5.71835 9.88496 5.69824 9.95333 5.69824 10.2831C5.69824 10.5485 5.70226 10.5827 5.74449 10.6531C5.82895 10.7999 5.99986 10.8461 6.14866 10.7597C6.28138 10.6853 6.30149 10.6209 6.30149 10.2831C6.30149 10.0458 6.29545 9.97947 6.26529 9.92116C6.21502 9.82062 6.11448 9.76029 5.99986 9.76029C5.93552 9.76029 5.88324 9.77437 5.83699 9.80654Z",fill:"white"})]});return(0,a.useEffect)(()=>{const t=t=>{m.current&&!m.current.contains(t.target)&&p(!1),h.current&&!h.current.contains(t.target)&&d(!1)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-trigger-wrapper",ref:m,children:[(0,I.jsxs)("div",{className:"ablocks-trigger-control",children:[(0,I.jsx)("span",{className:"ablocks-trigger-control__label",children:(0,L.__)("Element Trigger","ablocks")}),(0,I.jsx)("span",{className:"ablocks-trigger-control__toggle",onClick:()=>p(!u),children:u?(0, | |
| 347 | +I.jsx)("span",{className:"ablocks-icon ablocks-icon--minus"}):(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})}),u&&(0,I.jsx)("ul",{className:"ablocks-trigger-control__list",children:Hb.map((t,o)=>(0,I.jsxs)("li",{className:"ablocks-trigger-control__item",onClick:()=>{if(!M.zX)return y(!0),void p(!1);(t=>{const o={...$r(t),id:Date.now()},a=[...e?._animation_element_trigger||[],o];i({_animation_element_trigger:a}),s(a.length-1),p(!1)})(t.value)},children:[t.label,M.zX?"":(0,I.jsx)(tb,{type:"pro",content:(0,L.__)("Pro","ablocks"),size:"sm"})]},o))})]}),(0,I.jsx)("div",{className:"ablocks-trigger-items",children:e?._animation_element_trigger?.length>0?e._animation_element_trigger.map((t,o)=>{const a=t?.actions&&0!==t.actions.length?t.actions.every(t=>"none"===t.type)?(0,L.__)("Effects","ablocks"):t.actions.map(t=>t.type).join(" / "):(0,L.__)("Effects","ablocks"),l=n===o;return(0,I.jsxs)("div",{className:"ablocks-trigger-item",children:[(0,I.jsx)("div",{ | |
| 348 | +className:"ablocks-trigger-item__header",onClick:()=>s(l?null:o),children:(0,I.jsxs)("div",{className:"ablocks-trigger-controls",children:[(0,I.jsx)("span",{className:"ablocks-trigger-controls__label",children:t.title}),(0,I.jsxs)("div",{className:"ablocks-trigger-controls__input-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-trigger-controls__left-icon",children:(0,I.jsx)(v,{})}),(0,I.jsx)("input",{type:"text",className:"ablocks-trigger-controls__input",value:a,"aria-readonly":!0,readOnly:!0}),(0,I.jsx)("span",{className:"ablocks-trigger-controls__close-icon",onClick:t=>{t.stopPropagation(),(t=>{const o=e?._animation_element_trigger.filter((e,i)=>i!==t);i({_animation_element_trigger:o}),n===t&&s(null)})(o)},children:"×"})]})]})}),l&&(0,I.jsx)(Xt,{label:t.title,isShowPrimaryLabel:!1,isReset:!1,isVisible:l,toggleVisible:()=>s(l?null:o),anchorRef:g,placement:"left-bottom",children:(0,I.jsx)("div",{className:"ablocks-trigger-item__settings",children:x(o)})})]},t.id)}):(0, | |
| 349 | +I.jsx)(eb,{icon:"element-trigger",title:(0,L.__)("Element trigger","ablocks"),subtitle:(0,L.__)("Select an element on the canvas and click + to add an animation that runs when the user interacts with it (for example, on hover or click).","ablocks")})})]}),(0,I.jsxs)("div",{className:"ablocks-trigger-wrapper",ref:h,children:[(0,I.jsxs)("div",{className:"ablocks-trigger-control",children:[(0,I.jsx)("span",{className:"ablocks-trigger-control__label",children:(0,L.__)("Page Trigger","ablocks")}),(0,I.jsx)("span",{className:"ablocks-trigger-control__toggle",onClick:()=>d(!c),children:c?(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--minus"}):(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})}),c&&(0,I.jsx)("ul",{className:"ablocks-trigger-control__list",children:pb.map((t,o)=>(0,I.jsxs)("li",{className:"ablocks-trigger-control__item",onClick:()=>{if(!M.zX)return y(!0),void d(!1);(t=>{const o={...mb(t),id:Date.now()},a=[...e?._animation_page_trigger||[],o];i({ | |
| 350 | +_animation_page_trigger:a}),b(a.length-1),d(!1)})(t.value)},children:[t.label,M.zX?"":(0,I.jsx)(tb,{type:"pro",content:(0,L.__)("Pro","ablocks"),size:"sm"})]},o))})]}),(0,I.jsx)("div",{className:"ablocks-trigger-items",children:e?._animation_page_trigger?.length>0?e._animation_page_trigger.map((t,o)=>{const a=t?.actions&&0!==t.actions.length?t.actions.every(t=>"none"===t.type)?(0,L.__)("Effects","ablocks"):t.actions.map(t=>t.type).join(" / "):(0,L.__)("Effects","ablocks"),l=r===o;return(0,I.jsxs)("div",{className:"ablocks-trigger-item",children:[(0,I.jsx)("div",{className:"ablocks-trigger-item__header",onClick:()=>b(l?null:o),children:(0,I.jsxs)("div",{className:"ablocks-trigger-controls",children:[(0,I.jsx)("span",{className:"ablocks-trigger-controls__label",children:t.title}),(0,I.jsxs)("div",{className:"ablocks-trigger-controls__input-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-trigger-controls__left-icon",children:(0,I.jsx)(v,{})}),(0,I.jsx)("input",{type:"text", | |
| 351 | +className:"ablocks-trigger-controls__input",value:a,"aria-readonly":!0,readOnly:!0}),(0,I.jsx)("span",{className:"ablocks-trigger-controls__close-icon",onClick:t=>{t.stopPropagation(),(t=>{const o=e?._animation_page_trigger.filter((e,i)=>i!==t);i({_animation_page_trigger:o}),r===t&&b(null)})(o)},children:"×"})]})]})}),l&&(0,I.jsx)(Xt,{label:t.title,isShowPrimaryLabel:!1,isReset:!1,isVisible:l,toggleVisible:()=>b(l?null:o),anchorRef:g,placement:"left-top",children:(0,I.jsx)("div",{className:"ablocks-trigger-item__settings",children:k(o)})})]},t.id)}):(0,I.jsx)(eb,{icon:"page-trigger",title:(0,L.__)("Page trigger","ablocks"),subtitle:(0,L.__)("Click + to create an animation that runs when the page state changes (for example, on page load).","ablocks")})}),f&&(0,I.jsx)(Tb,{isOpen:f,close:y,content:(0,L.__)("Access advanced motion effects that draw attention, increase interaction, and make your website feel more dynamic and engaging.","ablocks")})]})]})}Mb.propTypes={},Mb.defaultProps={} | |
| 352 | +;const xb={docs_url:Y().string};function kb({docs_url:t}){return t?(0,I.jsx)("div",{className:"ablocks-block-help-link",children:(0,I.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[(0,I.jsx)("span",{children:(0,L.__)("Need Help","ablocks")}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--new-tab"})]})}):null}window.aBlocksInspectorTabsState={},kb.propTypes=xb;const vb={attributes:Y().object,setAttributes:Y().func,isDisableLeftRightMargin:Y().bool,isContainer:Y().bool,hasAdvance:Y().bool,docs_url:Y().string};function _b(t){const{children:e,attributes:i={},setAttributes:o=()=>{},isDisableLeftRightMargin:a=!1,isContainer:n=!1,hasAdvance:s=!0,docs_url:r=""}=t,b=s&&(0,Fr.Rz)(),c=[{name:"general",render:e,title:(0,I.jsx)(I.Fragment,{children:(0,L.__)("General","ablocks")}),className:"ablocks-inspector-tab__item"},b&&{name:"advanced",render:(0,I.jsx)(qr,{attributes:i,setAttributes:o,isDisableLeftRightMargin:a,isContainer:n}),title:(0,I.jsx)(I.Fragment,{ | |
| 353 | +children:(0,L.__)("Advanced","ablocks")}),className:"ablocks-inspector-tab__item"},{name:"integrations",render:(0,I.jsx)(Mb,{attributes:i,setAttributes:o,isContainer:n}),title:(0,I.jsx)(I.Fragment,{children:(0,L.__)("Integ.","ablocks")}),className:"ablocks-inspector-tab__item"}].filter(Boolean),{lastBlockId:d="",lastSelectedTabName:u="content"}=window.aBlocksInspectorTabsState,p=i.block_id,m=d===p&&u;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(N.TabPanel,{className:"ablocks-inspector-tabs",activeClass:"ablocks-inspector-tab__item--active",tabs:c,initialTabName:m,children:t=>{{const e={lastBlockId:p,lastSelectedTabName:t.name};return window.aBlocksInspectorTabsState=e,t.render}}}),(0,I.jsx)(kb,{docs_url:r})]})}window.aBlocksInspectorTabsState={},_b.propTypes=vb;const Rb={isResponsive:Y().bool,allowDeselect:Y().bool,isInline:Y().bool,options:Y().array,setAttributes:Y().func,attributeName:Y().string,onChangeHandler:Y().func,attributeValue:Y().any,attributeObjectKey:Y().string, | |
| 354 | +label:Y().string},Sb=t=>{const{isResponsive:e=!0,allowDeselect:i=!0,isInline:o=!1,options:a=[],setAttributes:l,attributeName:n,onChangeHandler:s,attributeValue:r,attributeObjectKey:b="value",label:c}=t,d=e?lt():"",u=e?(0,M.Ic)(r,b,d):r;return(0,I.jsxs)("div",{className:"ablocks-component ablocks-component--buttongroup "+(o?"ablocks-component--buttongroup-inline":""),children:[c&&(0,I.jsx)(at,{label:c,isResponsive:e}),(0,I.jsx)("div",{className:"ablocks-component__buttons",children:a.map((t,o)=>(0,I.jsx)("button",{onClick:()=>((t,o)=>{const a=i&&r===t?void 0:t;s?s(a,e?b+o:n):((t,i)=>{l(e?{[n]:(0,M.jI)((0,Zt.tJ)(e),{...r,[b+i]:t})}:{[n]:t})})(a,o)})(t.value===u?"":t.value,e?d:""),className:`ablocks-component__button ${u===t.value?"active":""} ${t?.icon?"ablocks-component__button--has-icon":""} `,children:t.icon?(0,I.jsx)(F,{position:t?.tooltipPosition,tooltipText:t?.label,children:t.icon}):t?.label},o))})]})};Sb.propTypes=Rb;const Wb=Sb,Pb={content:Y().node.isRequired, | |
| 355 | +style:Y().node.isRequired,firstTabLabel:Y().string.isRequired,secondTabLabel:Y().string.isRequired};function Ub(t){const{content:e="",style:i="",firstTabLabel:o=(0,L.__)("Content","ablocks"),secondTabLabel:a=(0,L.__)("Style","ablocks")}=t;if(!(0,Fr.wA)())return(0,I.jsx)(l().Fragment,{children:e});const n=[{name:o.toLowerCase().replace(/\s+/g,"-"),render:e,title:(0,I.jsx)(I.Fragment,{children:o}),className:"ablocks-content-style-tab__item"},{name:a.toLowerCase().replace(/\s+/g,"-"),render:i,title:(0,I.jsx)(I.Fragment,{children:a}),className:"ablocks-content-style-tab__item"}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-content-style-tabs",activeClass:"ablocks-content-style-tab__item--active",tabs:n,children:t=>t.render})})}Ub.propTypes=Pb;const jb=({label:t=(0,L.__)("Open Parent Settings","ablocks"),clientId:e})=>{const i=(0,r.select)("core/block-editor").getBlockParents(e);if(0===i.length)return null;const o=i[i.length-1];return(0,I.jsx)(N.Button,{ | |
| 356 | +className:"ablocks-btn--select-parent-Block",isPrimary:!0,onClick:()=>{(0,r.dispatch)("core/block-editor").selectBlock(o)},children:(0,L.sprintf)((0,L.__)("%s","ablocks"),t)})};var wb=i(88554);function zb(t){const{attributeValue:e={},setAttributes:i,attributeName:o,label:l,onChangeHandler:n,noFollowIOn:s=!0}=t,{href:r="",noFollow:b=!1,linkTarget:c=!1,keyValue:d=""}=e,[u,p]=(0,a.useState)(!1),m=(t,e)=>{n?n(t,e):h(t,e)},h=(t,a)=>{const l=(0,M.jI)((0,wb.tJ)(),{...e,[t]:a});i({[o]:l})};return(0,I.jsxs)("div",{className:"ablocks-link-controls",children:[(0,I.jsx)(Kl,{attributeName:o,setAttributes:i,dynamicType:"link",attributeObjectValue:e,label:l,attributeValue:r,placeholder:"Paste URL or type",onChangeHandler:t=>m("href",t)}),(0,I.jsx)("button",{className:"ablocks-link-options-button",onClick:()=>{p(!u)},children:(0,L.__)("Link Options","ablocks")}),u&&(0,I.jsxs)("div",{className:"ablocks-link-options",children:[(0,I.jsx)(Ot,{label:(0,L.__)("Open in new window","ablocks"),isResponsive:!1, | |
| 357 | +attributeValue:c,setAttributes:i,attributeName:o,onChangeHandler:t=>m("linkTarget",t)}),s&&(0,I.jsx)(Ot,{label:(0,L.__)("Add nofollow","ablocks"),isResponsive:!1,attributeValue:b,setAttributes:i,attributeName:o,onChangeHandler:t=>m("noFollow",t)}),(0,I.jsx)(Kl,{disableDynamicContent:!0,label:(0,L.__)("Custom Attributes","ablocks"),attributeValue:d,placeholder:"key|value",isInline:!1,onChangeHandler:t=>m("keyValue",t)}),(0,I.jsx)("span",{className:"ablocks-filed-description",children:"Set custom attributes for the link element. Separate attribute keys from values using the | (pipe) character. Separate key-value pairs with a comma."})]})]})}const Cb=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:(0, | |
| 358 | +I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,L.__)("Space Around","ablocks"),value:"space-around",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,L.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],Ab=[{label:(0,L.__)("start","ablocks"),value:"start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("End","ablocks"),value:"end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0, | |
| 359 | +I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})}],Lb=[{label:(0,L.__)("default","ablocks")},{label:(0,L.__)("div","ablocks"),value:"div"},{label:(0,L.__)("header","ablocks"),value:"header"},{label:(0,L.__)("footer","ablocks"),value:"footer"},{label:(0,L.__)("main","ablocks"),value:"main"},{label:(0,L.__)("article","ablocks"),value:"article"},{label:(0,L.__)("section","ablocks"),value:"section"},{label:(0,L.__)("aside","ablocks"),value:"aside"},{label:(0,L.__)("nav","ablocks"),value:"nav"},{label:(0,L.__)("a (link)","ablocks"),value:"a"}],Db=t=>{switch(t){case"mountains":return(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0,I.jsx)("path",{className:"ablocks-container-shape-fill",opacity:"0.33", | |
| 360 | +d:"M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",opacity:"0.66",d:"M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z","data-sg-is-observed":"true"})]});case"clouds":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"xMidYMax slice","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill", | |
| 361 | 361 | d:"M0 0v6.7c1.9-.8 4.7-1.4 8.5-1 9.5 1.1 11.1 6 11.1 6s2.1-.7 4.3-.2c2.1.5 2.8 2.6 2.8 2.6s.2-.5 1.4-.7c1.2-.2 1.7.2 1.7.2s0-2.1 1.9-2.8c1.9-.7 3.6.7 3.6.7s.7-2.9 3.1-4.1 4.7 0 4.7 0 1.2-.5 2.4 0 1.7 1.4 1.7 1.4h1.4c.7 0 1.2.7 1.2.7s.8-1.8 4-2.2c3.5-.4 5.3 2.4 6.2 4.4.4-.4 1-.7 1.8-.9 2.8-.7 4 .7 4 .7s1.7-5 11.1-6c9.5-1.1 12.3 3.9 12.3 3.9s1.2-4.8 5.7-5.7c4.5-.9 6.8 1.8 6.8 1.8s.6-.6 1.5-.9c.9-.2 1.9-.2 1.9-.2s5.2-6.4 12.6-3.3c7.3 3.1 4.7 9 4.7 9s1.9-.9 4 0 2.8 2.4 2.8 2.4 1.9-1.2 4.5-1.2 4.3 1.2 4.3 1.2.2-1 1.4-1.7 2.1-.7 2.1-.7-.5-3.1 2.1-5.5 5.7-1.4 5.7-1.4 1.5-2.3 4.2-1.1c2.7 1.2 1.7 5.2 1.7 5.2s.3-.1 1.3.5c.5.4.8.8.9 1.1.5-1.4 2.4-5.8 8.4-4 7.1 2.1 3.5 8.9 3.5 8.9s.8-.4 2 0 1.1 1.1 1.1 1.1 1.1-1.1 2.3-1.1 2.1.5 2.1.5 1.9-3.6 6.2-1.2 1.9 6.4 1.9 6.4 2.6-2.4 7.4 0c3.4 1.7 3.9 4.9 3.9 4.9s3.3-6.9 10.4-7.9 11.5 2.6 11.5 2.6.8 0 1.2.2c.4.2.9.9.9.9s4.4-3.1 8.3.2c1.9 1.7 1.5 5 1.5 5s.3-1.1 1.6-1.4c1.3-.3 2.3.2 2.3.2s-.1-1.2.5-1.9 1.9-.9 1.9-.9-4.7-9.3 4.4-13.4c5.6-2.5 9.2.9 9.2.9s5-6.2 15.9-6.2 16.1 8.1 16.1 8.1.7-.2 1.6-.4V0H0z", |
| 362 | -"data-sg-is-observed":"true"})});case"pyramids":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9","data-sg-is-observed":"true"})});case"triangle":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M500,98.9L0,6.1V0h1000v6.1L500,98.9z","data-sg-is-observed":"true"})});case"triangle-asymmetrical":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M738,99l262-93V0H0v5.6L738,99z","data-sg-is-observed":"true"})});case"tilt":return(0,L.jsx)("svg",{ | |
| 363 | -xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0,6V0h1000v100L0,6z","data-sg-is-observed":"true"})});case"tilt-opacity":return(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2600 131.1",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0 0L2600 0 2600 69.1 0 0z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.5},d:"M0 0L2600 0 2600 69.1 0 69.1z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.25},d:"M2600 0L0 0 0 130.1 2600 69.1z","data-sg-is-observed":"true"})]});case"fan-opacity":return(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 19.6",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0, | |
| 364 | -L.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.33},d:"M0 0L0 18.8 141.8 4.1 283.5 18.8 283.5 0z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.33},d:"M0 0L0 12.6 141.8 4 283.5 12.6 283.5 0z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.33},d:"M0 0L0 6.4 141.8 4 283.5 6.4 283.5 0z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0 0L0 1.2 141.8 4 283.5 1.2 283.5 0z","data-sg-is-observed":"true"})]});case"curve":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z","data-sg-is-observed":"true"})});case"curve-asymmetrical":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg", | |
| 365 | -viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0,0c0,0,0,6,0,6.7c0,18,240.2,93.6,615.2,92.6C989.8,98.5,1000,25,1000,6.7c0-0.7,0-6.7,0-6.7H0z","data-sg-is-observed":"true"})});case"waves":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z","data-sg-is-observed":"true"})});case"waves-brush":return(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0,L.jsx)("path",{ | |
| 362 | +"data-sg-is-observed":"true"})});case"pyramids":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9","data-sg-is-observed":"true"})});case"triangle":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M500,98.9L0,6.1V0h1000v6.1L500,98.9z","data-sg-is-observed":"true"})});case"triangle-asymmetrical":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M738,99l262-93V0H0v5.6L738,99z","data-sg-is-observed":"true"})});case"tilt":return(0,I.jsx)("svg",{ | |
| 363 | +xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0,6V0h1000v100L0,6z","data-sg-is-observed":"true"})});case"tilt-opacity":return(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2600 131.1",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0 0L2600 0 2600 69.1 0 0z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.5},d:"M0 0L2600 0 2600 69.1 0 69.1z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.25},d:"M2600 0L0 0 0 130.1 2600 69.1z","data-sg-is-observed":"true"})]});case"fan-opacity":return(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 19.6",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0, | |
| 364 | +I.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.33},d:"M0 0L0 18.8 141.8 4.1 283.5 18.8 283.5 0z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.33},d:"M0 0L0 12.6 141.8 4 283.5 12.6 283.5 0z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",style:{opacity:.33},d:"M0 0L0 6.4 141.8 4 283.5 6.4 283.5 0z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0 0L0 1.2 141.8 4 283.5 1.2 283.5 0z","data-sg-is-observed":"true"})]});case"curve":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z","data-sg-is-observed":"true"})});case"curve-asymmetrical":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg", | |
| 365 | +viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M0,0c0,0,0,6,0,6.7c0,18,240.2,93.6,615.2,92.6C989.8,98.5,1000,25,1000,6.7c0-0.7,0-6.7,0-6.7H0z","data-sg-is-observed":"true"})});case"waves":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z","data-sg-is-observed":"true"})});case"waves-brush":return(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"none","data-sg-is-observed":"true",children:[(0,I.jsx)("path",{ | |
| 366 | 366 | className:"ablocks-container-shape-fill", |
| 367 | 367 | d:"M283.5,9.7c0,0-7.3,4.3-14,4.6c-6.8,0.3-12.6,0-20.9-1.5c-11.3-2-33.1-10.1-44.7-5.7 s-12.1,4.6-18,7.4c-6.6,3.2-20,9.6-36.6,9.3C131.6,23.5,99.5,7.2,86.3,8c-1.4,0.1-6.6,0.8-10.5,2c-3.8,1.2-9.4,3.8-17,4.7 c-3.2,0.4-8.3,1.1-14.2,0.9c-1.5-0.1-6.3-0.4-12-1.6c-5.7-1.2-11-3.1-15.8-3.7C6.5,9.2,0,10.8,0,10.8V0h283.5V9.7z M260.8,11.3 c-0.7-1-2-0.4-4.3-0.4c-2.3,0-6.1-1.2-5.8-1.1c0.3,0.1,3.1,1.5,6,1.9C259.7,12.2,261.4,12.3,260.8,11.3z M242.4,8.6 c0,0-2.4-0.2-5.6-0.9c-3.2-0.8-10.3-2.8-15.1-3.5c-8.2-1.1-15.8,0-15.1,0.1c0.8,0.1,9.6-0.6,17.6,1.1c3.3,0.7,9.3,2.2,12.4,2.7 C239.9,8.7,242.4,8.6,242.4,8.6z M185.2,8.5c1.7-0.7-13.3,4.7-18.5,6.1c-2.1,0.6-6.2,1.6-10,2c-3.9,0.4-8.9,0.4-8.8,0.5 c0,0.2,5.8,0.8,11.2,0c5.4-0.8,5.2-1.1,7.6-1.6C170.5,14.7,183.5,9.2,185.2,8.5z M199.1,6.9c0.2,0-0.8-0.4-4.8,1.1 c-4,1.5-6.7,3.5-6.9,3.7c-0.2,0.1,3.5-1.8,6.6-3C197,7.5,199,6.9,199.1,6.9z M283,6c-0.1,0.1-1.9,1.1-4.8,2.5s-6.9,2.8-6.7,2.7 c0.2,0,3.5-0.6,7.4-2.5C282.8,6.8,283.1,5.9,283,6z M31.3,11.6c0.1-0.2-1.9-0.2-4.5-1.2s-5.4-1.6-7.8-2C15,7.6,7.3,8.5,7.7,8.6 C8,8.7,15.9,8.3,20.2,9.3c2.2,0.5,2.4,0.5,5.7,1.6S31.2,11.9,31.3,11.6z M73,9.2c0.4-0.1,3.5-1.6,8.4-2.6c4.9-1.1,8.9-0.5,8.9-0.8 c0-0.3-1-0.9-6.2-0.3S72.6,9.3,73,9.2z M71.6,6.7C71.8,6.8,75,5.4,77.3,5c2.3-0.3,1.9-0.5,1.9-0.6c0-0.1-1.1-0.2-2.7,0.2 C74.8,5.1,71.4,6.6,71.6,6.7z M93.6,4.4c0.1,0.2,3.5,0.8,5.6,1.8c2.1,1,1.8,0.6,1.9,0.5c0.1-0.1-0.8-0.8-2.4-1.3 C97.1,4.8,93.5,4.2,93.6,4.4z M65.4,11.1c-0.1,0.3,0.3,0.5,1.9-0.2s2.6-1.3,2.2-1.2s-0.9,0.4-2.5,0.8C65.3,10.9,65.5,10.8,65.4,11.1 z M34.5,12.4c-0.2,0,2.1,0.8,3.3,0.9c1.2,0.1,2,0.1,2-0.2c0-0.3-0.1-0.5-1.6-0.4C36.6,12.8,34.7,12.4,34.5,12.4z M152.2,21.1 c-0.1,0.1-2.4-0.3-7.5-0.3c-5,0-13.6-2.4-17.2-3.5c-3.6-1.1,10,3.9,16.5,4.1C150.5,21.6,152.3,21,152.2,21.1z", |
| 368 | -"data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M269.6,18c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C267.7,18.8,269.7,18,269.6,18z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M227.4,9.8c-0.2-0.1-4.5-1-9.5-1.2c-5-0.2-12.7,0.6-12.3,0.5c0.3-0.1,5.9-1.8,13.3-1.2 S227.6,9.9,227.4,9.8z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M204.5,13.4c-0.1-0.1,2-1,3.2-1.1c1.2-0.1,2,0,2,0.3c0,0.3-0.1,0.5-1.6,0.4 C206.4,12.9,204.6,13.5,204.5,13.4z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M201,10.6c0-0.1-4.4,1.2-6.3,2.2c-1.9,0.9-6.2,3.1-6.1,3.1c0.1,0.1,4.2-1.6,6.3-2.6 S201,10.7,201,10.6z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill", | |
| 369 | -d:"M154.5,26.7c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C152.6,27.5,154.6,26.8,154.5,26.7z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M41.9,19.3c0,0,1.2-0.3,2.9-0.1c1.7,0.2,5.8,0.9,8.2,0.7c4.2-0.4,7.4-2.7,7-2.6 c-0.4,0-4.3,2.2-8.6,1.9c-1.8-0.1-5.1-0.5-6.7-0.4S41.9,19.3,41.9,19.3z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M75.5,12.6c0.2,0.1,2-0.8,4.3-1.1c2.3-0.2,2.1-0.3,2.1-0.5c0-0.1-1.8-0.4-3.4,0 C76.9,11.5,75.3,12.5,75.5,12.6z","data-sg-is-observed":"true"}),(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M15.6,13.2c0-0.1,4.3,0,6.7,0.5c2.4,0.5,5,1.9,5,2c0,0.1-2.7-0.8-5.1-1.4 C19.9,13.7,15.7,13.3,15.6,13.2z","data-sg-is-observed":"true"})]});case"arrow":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 700 10",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{ | |
| 370 | -className:"ablocks-container-shape-fill",d:"M350,10L340,0h20L350,10z","data-sg-is-observed":"true"})});case"book":return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,L.jsx)("path",{className:"ablocks-container-shape-fill",d:"M194,99c186.7,0.7,305-78.3,306-97.2c1,18.9,119.3,97.9,306,97.2c114.3-0.3,194,0.3,194,0.3s0-91.7,0-100c0,0,0,0,0-0 L0,0v99.3C0,99.3,79.7,98.7,194,99z","data-sg-is-observed":"true"})});default:return null}},Cb=({position:t,shape:e})=>e?(0,L.jsx)("div",{className:`ablocks-container-shape ablocks-container-shape-${t}`,children:zb(e)}):null,Ab=[{label:(0,z.__)("None","ablocks"),value:""},{label:(0,z.__)("Mountains","ablocks"),value:"mountains"},{label:(0,z.__)("Clouds","ablocks"),value:"clouds"},{label:(0,z.__)("Pyramids","ablocks"),value:"pyramids"},{label:(0,z.__)("Triangle","ablocks"),value:"triangle"},{label:(0,z.__)("Triangle Asymmetrical","ablocks"), | |
| 371 | -value:"triangle-asymmetrical"},{label:(0,z.__)("Tilt","ablocks"),value:"tilt"},{label:(0,z.__)("Tilt Opacity","ablocks"),value:"tilt-opacity"},{label:(0,z.__)("Fan Opacity","ablocks"),value:"fan-opacity"},{label:(0,z.__)("Curve","ablocks"),value:"curve"},{label:(0,z.__)("Curve Asymmetrical","ablocks"),value:"curve-asymmetrical"},{label:(0,z.__)("Waves","ablocks"),value:"waves"},{label:(0,z.__)("Waves Brush","ablocks"),value:"waves-brush"},{label:(0,z.__)("Arrow","ablocks"),value:"arrow"},{label:(0,z.__)("Book","ablocks"),value:"book"}];var Lb=i(70866);function Db(t){ | |
| 372 | -const{attributes:e,setAttributes:i,clientId:o}=t,{dir:n,justification:b,alignment:c,wrapping:d,isRootContainer:u,containerWidth:p,containerContentWidth:m,containerWidthType:h,minimumHeight:g={},gap:f={},overflow:y,layout:T,gridRow:H,gridColumn:x,link:k,shapeTop:v,shapeBottom:_,shapeTopColor:R,shapeBottomColor:S,shapeTopHeight:W,shapeTopWidth:U,shapeBottomHeight:P,shapeBottomWidth:j,topShapeBringToFront:w,bottomShapeBringToFront:A,topShapeFlip:N,bottomShapeFlip:I,htmlTag:V}=e;(0,a.useEffect)(()=>{m?.value||i({containerContentWidth:{value:M.W0?.default_container_width}})},[]);const O=at(),Y="custom"===h||!u,X=(0,r.useSelect)(e=>{const{getBlockHierarchyRootClientId:i}=e(C.store);return i(t.clientId)!==t.clientId},[t.clientId]),B=(0,r.useSelect)(t=>{if("flexBox"===T)return T;const{getBlockParents:e,getBlockAttributes:i}=t("core/block-editor"),a=e(o)?.[0];return a?i(a)?.layout:void 0},[o,T]),E="flexBox"===T||"flexBox"===B||"grid"===B;return(0,L.jsx)(l().Fragment,{children:(0, | |
| 373 | -L.jsxs)(C.InspectorControls,{children:[X&&(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore container Blocks Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the container block setting to customize container for easy navigation.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)("div",{className:"ablocks-block-container-settings-wrapper",children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-container-block/",isDisableLeftRightMargin:u,isContainer:!0,children:[(0,L.jsxs)(D,{title:(0,z.__)("Container","ablocks"),initialOpen:!0,children:[u&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Container layout","ablocks"),options:[{label:(0,z.__)("Flex Box","ablocks"), | |
| 374 | -value:"flexBox"},{label:(0,z.__)("Grid","ablocks"),value:"grid"}],attributeValue:T,attributeName:"layout",setAttributes:i}),(0,L.jsx)(vb,{isResponsive:!1,allowDeselect:!1,label:(0,z.__)("Container Width","ablocks"),options:[{value:"full",label:(0,z.__)("Full Width","ablocks")},{value:"boxed",label:(0,z.__)("Boxed","ablocks")},{value:"custom",label:(0,z.__)("Custom","ablocks")}],attributeName:"containerWidthType",attributeValue:h,setAttributes:i})]}),u&&"boxed"===h?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Content Width","ablocks"),attributeName:"containerContentWidth",attributeObjectKey:"value",attributeValue:m,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(m["valueUnit"+O])?100:1600,attributeDefaultValue:Lb.js,autoSyncRange:!0})}):(0,L.jsx)(L.Fragment,{children:Y&&(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"), | |
| 375 | -attributeName:"containerWidth",attributeObjectKey:"value",attributeValue:p,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(p["valueUnit"+O]??"%")?100:1600,attributeDefaultValue:Lb.OM,autoSyncRange:!0})}),(0,L.jsx)(vt,{label:(0,z.__)("Minimum Height","ablocks"),attributeName:"minimumHeight",attributeObjectKey:"value",attributeValue:g,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"}],min:0,max:"vh"===g["valueUnit"+O]?100:1600,attributeDefaultValue:Lb.Kg,autoSyncRange:!0}),(0,L.jsx)(vb,{isResponsive:!1,label:(0,z.__)("Overflow","ablocks"),options:[{label:(0,z.__)("Visible","ablocks"),value:"visible"},{label:(0,z.__)("Hidden","ablocks"),value:"hidden"},{label:(0, | |
| 376 | -z.__)("Auto","ablocks"),value:"auto"}],attributeName:"overflow",attributeValue:y,setAttributes:i}),(0,L.jsx)("hr",{}),(0,L.jsx)("h3",{children:"Items"}),"grid"!==T&&(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Direction","ablocks"),options:[{label:(0,z.__)("Row","ablocks"),value:"row",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,z.__)("Column","ablocks"),value:"column",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,z.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,z.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],attributeName:"dir",attributeValue:n,setAttributes:i}),(0,L.jsx)("div",{className:s()("ablocks-buttongroup-flex-justify-content",`ablocks-rotate-children-icons-for-${e["dir"+O]||"column"}`),children:(0, | |
| 377 | -L.jsx)(vb,{isInline:!0,label:(0,z.__)("Justify","ablocks"),options:"grid"===T?jb:Pb,attributeName:"justification",attributeValue:b,setAttributes:i})}),(0,L.jsx)("div",{className:s()("ablocks-buttongroup-flex-align-items",`ablocks-rotate-children-icons-for-${e["dir"+O]||"column"}`),children:(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Align Items","ablocks"),options:[{label:(0,z.__)("Start","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,z.__)("End","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})},{label:(0,z.__)("Stretch","ablocks"),value:"stretch",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"}],attributeName:"alignment",attributeValue:c,setAttributes:i})}),(0, | |
| 378 | -L.jsx)("hr",{}),"grid"===T&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Grid Columns","ablocks"),attributeName:"gridColumn",attributeObjectKey:"value",attributeValue:x,setAttributes:i,isInline:!1,hasUnit:!1,min:0,max:10,attributeDefaultValue:""}),(0,L.jsx)(vt,{label:(0,z.__)("Grid Rows","ablocks"),attributeName:"gridRow",attributeObjectKey:"value",attributeValue:H,setAttributes:i,isInline:!1,hasUnit:!1,min:0,max:10,attributeDefaultValue:""})]}),(0,L.jsx)(vt,{label:(0,z.__)("Columns Gap","ablocks"),attributeName:"gap",attributeObjectKey:"columnGap",attributeValue:f,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(f["columnGapUnit"+O])?100:1e3,attributeDefaultValue:Lb.rQ,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Rows Gap","ablocks"),attributeName:"gap",attributeObjectKey:"rowGap",attributeValue:f, | |
| 379 | -setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(f["rowGapUnit"+O])?100:1e3,attributeDefaultValue:Lb.rQ,autoSyncRange:!0}),E&&(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Wrap","ablocks"),options:[{label:(0,z.__)("Wrap","ablocks"),value:"wrap",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,z.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,z.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}],attributeName:"wrapping",attributeValue:d,setAttributes:i})]}),(0,L.jsx)(D,{title:(0,z.__)("Container Shape","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{firstTabLabel:(0,z.__)("Top","ablocks"),secondTabLabel:(0, | |
| 380 | -z.__)("Bottom","ablocks"),content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),options:Ab,isSearch:!1,attributeName:"shapeTop",attributeValue:v,setAttributes:i,isInline:!1}),v&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"shapeTopColor",attributeValue:R,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"shapeTopHeight",attributeObjectKey:"value",attributeValue:W,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0,max:500,attributeDefaultValue:Lb.OF,autoSyncRange:!0}),"clouds"!==v&&"drops"!==v&&"tilt"!==v&&(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"shapeTopWidth",attributeObjectKey:"value",attributeValue:U,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0, | |
| 381 | -max:100,attributeDefaultValue:Lb.hV}),(0,L.jsx)(Vt,{label:(0,z.__)("Bring to Front","ablocks"),attributeValue:w,setAttributes:i,attributeName:"topShapeBringToFront",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Flip","ablocks"),attributeValue:N,setAttributes:i,attributeName:"topShapeFlip",isResponsive:!1})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),options:Ab,isSearch:!1,attributeName:"shapeBottom",attributeValue:_,setAttributes:i,isInline:!1}),_&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"shapeBottomColor",attributeValue:S,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"shapeBottomHeight",attributeObjectKey:"value",attributeValue:P,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0,max:500,attributeDefaultValue:Lb.Uq,autoSyncRange:!0 | |
| 382 | -}),"clouds"!==_&&"drops"!==_&&"tilt"!==_&&(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"shapeBottomWidth",attributeObjectKey:"value",attributeValue:j,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0,max:100,attributeDefaultValue:Lb.HU,autoSyncRange:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Bring to Front","ablocks"),attributeValue:A,setAttributes:i,attributeName:"bottomShapeBringToFront",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Flip","ablocks"),attributeValue:I,setAttributes:i,attributeName:"bottomShapeFlip",isResponsive:!1})]})]})})})]})}),(0,L.jsxs)(D,{title:(0,z.__)("Additional Option","ablocks"),initialOpen:!1,children:[(0,L.jsx)(jl,{label:(0,z.__)("HTML Tag","ablocks"),isSearchable:!0,options:wb,value:wb.find(t=>t.value===V)||wb.find(t=>"default"===t.label),onChange:t=>{i({htmlTag:t?.value})}}),"a"===V&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("span",{ | |
| 383 | -className:"ablocks-container__note",children:[(0,L.jsx)("b",{children:"Note:"}),"Don’t add links to elements nested in this container - it will break the layout."]}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:k,setAttributes:i})]})]})]})})}Db.propTypes={};var Nb=i(39387);const Ib={UU:"ablocks/container",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},wrap:{type:"string",default:""},wrapTablet:{type:"string",default:""},wrapMobile:{ | |
| 368 | +"data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M269.6,18c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C267.7,18.8,269.7,18,269.6,18z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M227.4,9.8c-0.2-0.1-4.5-1-9.5-1.2c-5-0.2-12.7,0.6-12.3,0.5c0.3-0.1,5.9-1.8,13.3-1.2 S227.6,9.9,227.4,9.8z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M204.5,13.4c-0.1-0.1,2-1,3.2-1.1c1.2-0.1,2,0,2,0.3c0,0.3-0.1,0.5-1.6,0.4 C206.4,12.9,204.6,13.5,204.5,13.4z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M201,10.6c0-0.1-4.4,1.2-6.3,2.2c-1.9,0.9-6.2,3.1-6.1,3.1c0.1,0.1,4.2-1.6,6.3-2.6 S201,10.7,201,10.6z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill", | |
| 369 | +d:"M154.5,26.7c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C152.6,27.5,154.6,26.8,154.5,26.7z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M41.9,19.3c0,0,1.2-0.3,2.9-0.1c1.7,0.2,5.8,0.9,8.2,0.7c4.2-0.4,7.4-2.7,7-2.6 c-0.4,0-4.3,2.2-8.6,1.9c-1.8-0.1-5.1-0.5-6.7-0.4S41.9,19.3,41.9,19.3z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M75.5,12.6c0.2,0.1,2-0.8,4.3-1.1c2.3-0.2,2.1-0.3,2.1-0.5c0-0.1-1.8-0.4-3.4,0 C76.9,11.5,75.3,12.5,75.5,12.6z","data-sg-is-observed":"true"}),(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M15.6,13.2c0-0.1,4.3,0,6.7,0.5c2.4,0.5,5,1.9,5,2c0,0.1-2.7-0.8-5.1-1.4 C19.9,13.7,15.7,13.3,15.6,13.2z","data-sg-is-observed":"true"})]});case"arrow":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 700 10",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{ | |
| 370 | +className:"ablocks-container-shape-fill",d:"M350,10L340,0h20L350,10z","data-sg-is-observed":"true"})});case"book":return(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none","data-sg-is-observed":"true",children:(0,I.jsx)("path",{className:"ablocks-container-shape-fill",d:"M194,99c186.7,0.7,305-78.3,306-97.2c1,18.9,119.3,97.9,306,97.2c114.3-0.3,194,0.3,194,0.3s0-91.7,0-100c0,0,0,0,0-0 L0,0v99.3C0,99.3,79.7,98.7,194,99z","data-sg-is-observed":"true"})});default:return null}},Nb=({position:t,shape:e})=>e?(0,I.jsx)("div",{className:`ablocks-container-shape ablocks-container-shape-${t}`,children:Db(e)}):null,Ib=[{label:(0,L.__)("None","ablocks"),value:""},{label:(0,L.__)("Mountains","ablocks"),value:"mountains"},{label:(0,L.__)("Clouds","ablocks"),value:"clouds"},{label:(0,L.__)("Pyramids","ablocks"),value:"pyramids"},{label:(0,L.__)("Triangle","ablocks"),value:"triangle"},{label:(0,L.__)("Triangle Asymmetrical","ablocks"), | |
| 371 | +value:"triangle-asymmetrical"},{label:(0,L.__)("Tilt","ablocks"),value:"tilt"},{label:(0,L.__)("Tilt Opacity","ablocks"),value:"tilt-opacity"},{label:(0,L.__)("Fan Opacity","ablocks"),value:"fan-opacity"},{label:(0,L.__)("Curve","ablocks"),value:"curve"},{label:(0,L.__)("Curve Asymmetrical","ablocks"),value:"curve-asymmetrical"},{label:(0,L.__)("Waves","ablocks"),value:"waves"},{label:(0,L.__)("Waves Brush","ablocks"),value:"waves-brush"},{label:(0,L.__)("Arrow","ablocks"),value:"arrow"},{label:(0,L.__)("Book","ablocks"),value:"book"}];var Vb=i(70866);function Ob(t){ | |
| 372 | +const{attributes:e,setAttributes:i,clientId:o}=t,{dir:n,justification:b,alignment:c,wrapping:d,isRootContainer:u,containerWidth:p,containerContentWidth:m,containerWidthType:h,minimumHeight:g={},gap:f={},overflow:y,layout:T,gridRow:H,gridColumn:x,link:k,shapeTop:v,shapeBottom:_,shapeTopColor:R,shapeBottomColor:S,shapeTopHeight:W,shapeTopWidth:P,shapeBottomHeight:U,shapeBottomWidth:j,topShapeBringToFront:w,bottomShapeBringToFront:z,topShapeFlip:C,bottomShapeFlip:A,htmlTag:N}=e;(0,a.useEffect)(()=>{m?.value||i({containerContentWidth:{value:M.W0?.default_container_width}})},[]);const O=lt(),Y="custom"===h||!u,X=(0,r.useSelect)(e=>{const{getBlockHierarchyRootClientId:i}=e(D.store);return i(t.clientId)!==t.clientId},[t.clientId]),B=(0,r.useSelect)(t=>{if("flexBox"===T)return T;const{getBlockParents:e,getBlockAttributes:i}=t("core/block-editor"),a=e(o)?.[0];return a?i(a)?.layout:void 0},[o,T]),E="flexBox"===T||"flexBox"===B||"grid"===B;return(0,I.jsx)(l().Fragment,{children:(0, | |
| 373 | +I.jsxs)(D.InspectorControls,{children:[X&&(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 container Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the container block setting to customize container for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)("div",{className:"ablocks-block-container-settings-wrapper",children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-container-block/",isDisableLeftRightMargin:u,isContainer:!0,children:[(0,I.jsxs)(V,{title:(0,L.__)("Container","ablocks"),initialOpen:!0,children:[u&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Container layout","ablocks"),options:[{label:(0,L.__)("Flex Box","ablocks"), | |
| 374 | +value:"flexBox"},{label:(0,L.__)("Grid","ablocks"),value:"grid"}],attributeValue:T,attributeName:"layout",setAttributes:i}),(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0,L.__)("Container Width","ablocks"),options:[{value:"full",label:(0,L.__)("Full Width","ablocks")},{value:"boxed",label:(0,L.__)("Boxed","ablocks")},{value:"custom",label:(0,L.__)("Custom","ablocks")}],attributeName:"containerWidthType",attributeValue:h,setAttributes:i})]}),u&&"boxed"===h?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Content Width","ablocks"),attributeName:"containerContentWidth",attributeObjectKey:"value",attributeValue:m,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(m["valueUnit"+O])?100:1600,attributeDefaultValue:Vb.js,autoSyncRange:!0})}):(0,I.jsx)(I.Fragment,{children:Y&&(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"), | |
| 375 | +attributeName:"containerWidth",attributeObjectKey:"value",attributeValue:p,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(p["valueUnit"+O]??"%")?100:1600,attributeDefaultValue:Vb.OM,autoSyncRange:!0})}),(0,I.jsx)(_t,{label:(0,L.__)("Minimum Height","ablocks"),attributeName:"minimumHeight",attributeObjectKey:"value",attributeValue:g,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"}],min:0,max:"vh"===g["valueUnit"+O]?100:1600,attributeDefaultValue:Vb.Kg,autoSyncRange:!0}),(0,I.jsx)(Wb,{isResponsive:!1,label:(0,L.__)("Overflow","ablocks"),options:[{label:(0,L.__)("Visible","ablocks"),value:"visible"},{label:(0,L.__)("Hidden","ablocks"),value:"hidden"},{label:(0, | |
| 376 | +L.__)("Auto","ablocks"),value:"auto"}],attributeName:"overflow",attributeValue:y,setAttributes:i}),(0,I.jsx)("hr",{}),(0,I.jsx)("h3",{children:"Items"}),"grid"!==T&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("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",{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}),(0,I.jsx)("div",{className:s()("ablocks-buttongroup-flex-justify-content",`ablocks-rotate-children-icons-for-${e["dir"+O]||"column"}`),children:(0, | |
| 377 | +I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Justify","ablocks"),options:"grid"===T?Ab:Cb,attributeName:"justification",attributeValue:b,setAttributes:i})}),(0,I.jsx)("div",{className:s()("ablocks-buttongroup-flex-align-items",`ablocks-rotate-children-icons-for-${e["dir"+O]||"column"}`),children:(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Align Items","ablocks"),options:[{label:(0,L.__)("Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"}],attributeName:"alignment",attributeValue:c,setAttributes:i})}),(0, | |
| 378 | +I.jsx)("hr",{}),"grid"===T&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Grid Columns","ablocks"),attributeName:"gridColumn",attributeObjectKey:"value",attributeValue:x,setAttributes:i,isInline:!1,hasUnit:!1,min:0,max:10,attributeDefaultValue:""}),(0,I.jsx)(_t,{label:(0,L.__)("Grid Rows","ablocks"),attributeName:"gridRow",attributeObjectKey:"value",attributeValue:H,setAttributes:i,isInline:!1,hasUnit:!1,min:0,max:10,attributeDefaultValue:""})]}),(0,I.jsx)(_t,{label:(0,L.__)("Columns Gap","ablocks"),attributeName:"gap",attributeObjectKey:"columnGap",attributeValue:f,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(f["columnGapUnit"+O])?100:1e3,attributeDefaultValue:Vb.rQ,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Rows Gap","ablocks"),attributeName:"gap",attributeObjectKey:"rowGap",attributeValue:f, | |
| 379 | +setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(f["rowGapUnit"+O])?100:1e3,attributeDefaultValue:Vb.rQ,autoSyncRange:!0}),E&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Wrap","ablocks"),options:[{label:(0,L.__)("Wrap","ablocks"),value:"wrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,L.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,L.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}],attributeName:"wrapping",attributeValue:d,setAttributes:i})]}),(0,I.jsx)(V,{title:(0,L.__)("Container Shape","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{firstTabLabel:(0,L.__)("Top","ablocks"),secondTabLabel:(0, | |
| 380 | +L.__)("Bottom","ablocks"),content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:Ib,isSearch:!1,attributeName:"shapeTop",attributeValue:v,setAttributes:i,isInline:!1}),v&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeTopColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"shapeTopHeight",attributeObjectKey:"value",attributeValue:W,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0,max:500,attributeDefaultValue:Vb.OF,autoSyncRange:!0}),"clouds"!==v&&"drops"!==v&&"tilt"!==v&&(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"shapeTopWidth",attributeObjectKey:"value",attributeValue:P,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0, | |
| 381 | +max:100,attributeDefaultValue:Vb.hV}),(0,I.jsx)(Ot,{label:(0,L.__)("Bring to Front","ablocks"),attributeValue:w,setAttributes:i,attributeName:"topShapeBringToFront",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Flip","ablocks"),attributeValue:C,setAttributes:i,attributeName:"topShapeFlip",isResponsive:!1})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:Ib,isSearch:!1,attributeName:"shapeBottom",attributeValue:_,setAttributes:i,isInline:!1}),_&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeBottomColor",attributeValue:S,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"shapeBottomHeight",attributeObjectKey:"value",attributeValue:U,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0,max:500,attributeDefaultValue:Vb.Uq,autoSyncRange:!0 | |
| 382 | +}),"clouds"!==_&&"drops"!==_&&"tilt"!==_&&(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"shapeBottomWidth",attributeObjectKey:"value",attributeValue:j,setAttributes:i,isInline:!1,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,min:0,max:100,attributeDefaultValue:Vb.HU,autoSyncRange:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Bring to Front","ablocks"),attributeValue:z,setAttributes:i,attributeName:"bottomShapeBringToFront",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Flip","ablocks"),attributeValue:A,setAttributes:i,attributeName:"bottomShapeFlip",isResponsive:!1})]})]})})})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Additional Option","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Wl,{label:(0,L.__)("HTML Tag","ablocks"),isSearchable:!0,options:Lb,value:Lb.find(t=>t.value===N)||Lb.find(t=>"default"===t.label),onChange:t=>{i({htmlTag:t?.value})}}),"a"===N&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("span",{ | |
| 383 | +className:"ablocks-container__note",children:[(0,I.jsx)("b",{children:"Note:"}),"Don’t add links to elements nested in this container - it will break the layout."]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:k,setAttributes:i})]})]})]})})}Ob.propTypes={};var Yb=i(39387);const Xb={UU:"ablocks/container",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},wrap:{type:"string",default:""},wrapTablet:{type:"string",default:""},wrapMobile:{ | |
| 384 | 384 | type:"string",default:""},layout:{type:"string",default:""},htmlTag:{type:"string",default:""},shapeTop:{type:"string",default:""},shapeBottom:{type:"string",default:""},shapeTopColor:{type:"string",default:"#61CE70"},shapeBottomColor:{type:"string",default:"#61CE70"},bottomShapeBringToFront:{type:"boolean",default:!1},topShapeBringToFront:{type:"boolean",default:!1},topShapeFlip:{type:"boolean",default:!1},bottomShapeFlip:{type:"boolean",default:!1},gap:{type:"object",default:{columnGap:0,columnGapTablet:"",columnGapMobile:"",columnGapUnit:"px",columnGapUnitTablet:"",columnGapUnitMobile:"",rowGap:0,rowGapTablet:"",rowGapMobile:"",rowGapUnit:"px",rowGapUnitTablet:"",rowGapUnitMobile:""}},containerWidthType:{type:"string",default:"boxed"},overflow:{type:"string",default:"visible"},dir:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},justification:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"", |
| 385 | 385 | valueTablet:"",valueMobile:""}},wrapping:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},minimumHeight:{type:"object",default:{value:null,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},containerWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},gridColumn:{type:"object",default:{value:0,valueTablet:2,valueMobile:1}},gridRow:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},containerContentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},shapeBottomHeight:{type:"object",default:{value:"100",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},shapeBottomWidth:{type:"object",default:{value:"100",valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},shapeTopHeight:{type:"object",default:{value:"100", |
| 386 | 386 | valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},shapeTopWidth:{type:"object",default:{value:"100",valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},_backgroundOverlay:{type:"object",default:{backgroundOverlayType:"none",backgroundOverlayTypeH:"none",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"px",imgXPositionUnitMobile:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", |
| 387 | 387 | 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:"",blendMode:"",blur:"",brightness:"",contrast:"", |
| @@ -392,34 +392,34 @@ | ||
| 392 | 392 | 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:"", |
| 393 | 393 | 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:"", |
| 394 | 394 | 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:"", |
| 395 | 395 | 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:"", |
| 396 | -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 Vb(t){const{attributes:e,setAttributes:i,hasChildBlocks:n,className:s,clientId:r}=t,{block_id:b,gridColumn:c,gridRow:d,layout:u,shapeTop:p,shapeBottom:m}=e,h={renderAppender:"grid"!==u&&(n?void 0:C.InnerBlocks.ButtonBlockAppender),allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)};return(0,a.useEffect)(()=>{ | |
| 397 | -if("grid"===u){const t=wp.data.select("core/block-editor").getBlocks(r),e=c.value*d.value;if(t.length!==e){if(t.length>e&&t.slice(e).forEach(t=>{wp.data.dispatch("core/block-editor").removeBlock(t.clientId)}),t.length<e){const i=Array.from({length:e-t.length},()=>(0,o.createBlock)("ablocks/container",{}));wp.data.dispatch("core/block-editor").insertBlocks(i,t.length,r)}wp.data.dispatch("core/block-editor").selectBlock(r)}}},[r,c,d]),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(Nb.A,{blockId:b,name:Ib.UU,attributes:e,typography:[],className:s,children:[(0,L.jsx)(Cb,{position:"top",shape:p}),(0,L.jsx)(Cb,{position:"bottom",shape:m}),(0,L.jsx)(C.InnerBlocks,{...h})]})})}Vb.propTypes={};var Ob=i(42377);const Yb=(t,e="")=>{const{isRootContainer:i,containerWidth:o,containerWidthType:a,overflow:l}=t,n={...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,property:"value",unitDefaultValue:"%",device:e})},s={} | |
| 398 | -;return i&&"custom"!==a||!n?.value||(s["max-width"]=`min(100%, ${n?.value}${n?.valueUnit})!important`),"custom"===a&&n?.value&&i&&(s["margin-left"]="auto !important",s["margin-right"]="auto !important"),i&&"custom"!==a&&(delete s["max-width"],delete s["margin-left"],delete s["margin-right"]),l&&(s.overflow=l),s},Xb=(t,e="")=>{const{isRootContainer:i,containerContentWidth:o,containerWidthType:a}=t,l={},n={...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,property:"value",defaultValue:M.W0?.default_container_width,hasUnit:!0,unitDefaultValue:"px",device:e})};return i&&"boxed"===a&&(l["max-width"]=`min(100%, ${n.value??M.W0?.default_container_width}${n?.valueUnit})`,l["margin-left"]="auto !important",l["margin-right"]="auto !important"),l},Bb=(t,e="")=>{const i=((t,e="")=>({...(0,Ob.qD)({attributeValue:t?.minimumHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"min-height",defaultValue:0,unitDefaultValue:"px",device:e})}))(t,e),o={...(0, | |
| 399 | -Ob.qD)({attributeValue:t.gridColumn,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!1,property:"value",unitDefaultValue:"",device:e})},a={...(0,Ob.qD)({attributeValue:t.gridRow,attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!1,property:"value",unitDefaultValue:"",device:e})};return"grid"===t?.layout?(i.display="grid",i["grid-template-columns"]=`repeat(${o?.value}, 1fr)`,i["grid-template-rows"]=`repeat(${a.value}, auto)`):(i.display="flex",t["direction"+e]&&(i["flex-direction"]=t["direction"+e]),t["wrap"+e]&&(i["flex-wrap"]=t["wrap"+e])),t.dir?.["value"+e]&&(i["flex-direction"]=t.dir["value"+e]),t.justification?.["value"+e]&&(i["justify-content"]=t.justification["value"+e]),t.justification?.["value"+e]&&(i["justify-items"]=t.justification["value"+e]),t.alignment?.["value"+e]&&(i["align-items"]=t.alignment["value"+e]),t.wrapping?.["value"+e]&&(i["flex-wrap"]=t.wrapping["value"+e]),{...i,...(0,Ob.qD)({ | |
| 400 | -attributeValue:t.gap,attributeObjectKey:"rowGap",isResponsive:!0,hasUnit:!0,property:"row-gap",defaultValue:0,unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t.gap,attributeObjectKey:"columnGap",isResponsive:!0,hasUnit:!0,property:"column-gap",defaultValue:0,unitDefaultValue:"px",device:e})}},Eb=(t,e="")=>{const i={};return"row"!==t["dir"+e]&&"row-reverse"!==t["dir"+e]||(i.display="inline-block",i.width="auto"),t.alignment?.["value"+e]&&"stretch"!==t.alignment["value"+e]&&(i["max-width"]="unset"),i},Fb=(t,e="")=>{const{topShapeBringToFront:i,shapeTop:o}=t,a={};return i&&""!==o&&(a["z-index"]=1),a},qb=(t,e="")=>{const{bottomShapeBringToFront:i,shapeBottom:o}=t,a={};return i&&""!==o&&(a["z-index"]=1),a},$b=(t,e="")=>{const{topShapeFlip:i,shapeTop:o,shapeTopHeight:a,shapeTopWidth:l,shapeTopColor:n}=t;if(""===o)return{};const s={...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"height",defaultValue:100,unitDefaultValue:"px", | |
| 401 | -device:e}),...(0,Ob.qD)({attributeValue:l,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})};return n&&(s.fill=n),i&&""!==o&&(s.transform="translateX(0%) rotateY(180deg)"),s},Gb=(t,e="")=>{const{bottomShapeFlip:i,shapeBottom:o,shapeBottomHeight:a,shapeBottomWidth:l,shapeBottomColor:n}=t;if(""===o)return{};const s={...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"height",defaultValue:100,unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:l,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})};return n&&(s.fill=n),i&&""!==o&&(s.transform="translateX(0%) rotateY(180deg)"),s},Zb=[{name:"one-column-column",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-bottom-direction"}),attributes:{variationSelected:!0,gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{ | |
| 402 | -valueTablet:100},gridColumn:{value:1},gridRow:{value:1},layout:"flexBox"},scope:["block"]},{name:"one-column-row",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-right-direction"}),attributes:{variationSelected:!0,gap:{columnGap:20,rowGap:20},dir:{value:"row"},containerWidth:{valueTablet:100},gridColumn:{value:1},gridRow:{value:1},layout:"flexBox"},scope:["block"]},{name:"two-columns-split",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-2"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},isDefault:!0,innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]], | |
| 403 | -scope:["block"]},{name:"three-columns-equal",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-3"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:3},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33.33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33.33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33.33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"four-columns-equal",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-4"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:4},gridRow:{value:1}, | |
| 404 | -layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"75-25",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-5"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{ | |
| 405 | -columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"25-75",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-6"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:1},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"50-50_50-50",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-7"}),attributes:{variationSelected:!0, | |
| 406 | -wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"33-33-33_33-33-33",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-8"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:3},gridRow:{value:3},layout:"flexBox",wrapping:{value:"wrap"}, | |
| 407 | -dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"25-50-25",icon:(0,L.jsx)("span",{ | |
| 408 | -className:"ablocks-icon ablocks-icon--column-9"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:3},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"75-25_25-75",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-10"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{ | |
| 409 | -columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"25-75_75-25",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-11"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%", | |
| 410 | -valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"50-50_100",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-12"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50, | |
| 411 | -valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]}],Kb=[{name:"two-columns",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-1"}),attributes:{variationSelected:!0,gridColumn:{value:2},gridRow:{value:1},layout:"grid"},isDefault:!0,innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"one-columns",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-2"}),attributes:{variationSelected:!0,gridColumn:{value:1},gridRow:{value:2},layout:"grid"},isDefault:!0,innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%", | |
| 412 | -valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"three-columns",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-3"}),attributes:{variationSelected:!0,gridColumn:{value:3},gridRow:{value:1},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"three-rows",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-4"}),attributes:{variationSelected:!0,gridColumn:{value:1},gridRow:{value:3},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%", | |
| 413 | -valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"two-columns-two-rows",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-5"}),attributes:{variationSelected:!0,gridColumn:{value:2},gridRow:{value:2},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{ | |
| 414 | -direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"three-columns-three-rows",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-6"}),attributes:{variationSelected:!0,gridColumn:{value:3},gridRow:{value:2},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100, | |
| 415 | -valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]}],Jb=({clientId:t,setAttributes:e,defaultVariation:i})=>{const{replaceInnerBlocks:a}=(0,r.useDispatch)("core/block-editor"),[l,n]=(0,Ot.useState)(""),s=t=>{n(t),e({layout:t})},b=(l=i)=>{l.attributes&&e({...l.attributes,variationSelected:!0}),l.innerBlocks&&"one-column"!==l.name&&a(t,(0,o.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))},c=()=>{wp.data.dispatch("core/block-editor").removeBlock(t)};return(0,L.jsxs)("div",{className:"ablocks-container-block-variation-picker",children:[l&&(0,L.jsxs)("div",{className:"ablocks-container-block-variation-chose-icon-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:c,role:"presentation"}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left",onClick:()=>{n("")},role:"presentation"})]}),!l&&(0,L.jsxs)("div",{className:"ablocks-container-block-variation-chose",children:[(0,L.jsx)("span",{ | |
| 416 | -className:"ablocks-icon ablocks-icon--close",onClick:c,role:"presentation"}),(0,L.jsx)("h3",{className:"ablocks-container-block-variation-picker-title",children:"Which layout would you like to use?"}),!l&&(0,L.jsxs)("div",{className:"ablocks-layout-selector-wrapper",children:[(0,L.jsxs)("div",{className:"ablocks-layout-selector",onClick:()=>s("flexBox"),children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--flexbox-svg-icon"}),(0,L.jsx)("span",{className:"ablocks-icon-title",children:"Flexbox"})]}),(0,L.jsxs)("div",{className:"ablocks-layout-selector",onClick:()=>s("grid"),children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--grid"}),(0,L.jsx)("span",{className:"ablocks-icon-title",children:"Grid"})]})]})]}),"flexBox"===l&&(0,L.jsx)(C.__experimentalBlockVariationPicker,{label:(0,z.__)("Choose Container layout","ablocks"),instructions:(0,z.__)("","ablocks"),variations:Zb,onSelect:b}),"grid"===l&&(0,L.jsx)("div",{className:"ablocks-variation-picker-grid", | |
| 417 | -children:(0,L.jsx)(C.__experimentalBlockVariationPicker,{label:(0,z.__)("Choose Grid layout","ablocks"),instructions:(0,z.__)("","ablocks"),variations:Kb,onSelect:b})})]})};var Qb=i(72649),tc=i(86816),ec=i(24175);const ic={name:I().string,blockId:I().string,blockProps:I().object};function oc({blockId:t,name:e,children:i,attributes:o,className:a,dataAttributes:n={},blockProps:r={}}){const{_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u,_animation:p,_transform:m,_floating:h,_mouse:g,_scrolling:f,htmlTag:y}=o,{videoSource:T,vimeoURL:H,youtubeURL:M,introPortrait:x,introTitle:k,introByline:v,videoPlayOnce:_=!1,preload:R="",videoUrl:S="",videoStartTime:W="",videoEndTime:U="",externalLink:P=!1,selfHostedURL:j="",videoPrivacyMode:w}=o?._background||{};let z=(0,b.applyFilters)("ablocks.global.save_container_classes",{},o),A=(0,b.applyFilters)("ablocks.global.save_container_attributes",{},o) | |
| 418 | -;const D=p?.animationType&&"none"!==p?.animationType||p?.animationTypeTablet&&"none"!==p?.animationTypeTablet||p?.animationTypeMobile&&"none"!==p?.animationTypeMobile,{linkTarget:N,noFollow:I,keyValue:V,href:O}=o?.link||{};let Y={href:O};N&&(Y.target="_blank"),Y.rel=I?N?"nofollow noreferrer noopener":"nofollow":"noopener",V&&(Y={...Y,...(0,Wb.jM)(V)});const X="a"===y,B=X?"div":y||"div",E={...C.useBlockProps.save({...r}),...n,className:(0,Qb.Z)({name:e,blockId:t,className:s()(a,o?.className,{"ablocks-invisible":D,"ablocks-has-block-container":m?.isApplied,"ablocks-block--container-has-link-overlay":X,...z}),_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u})},F={...D?p:{},...A};Lt().isEmpty(F)||(E["data-settings"]=JSON.stringify(F));const q=m?.isApplied||o?.isRootContainer||h?.floatingEffects||f?.scrollingEffects||g?.mouseEffects;let $;const G=(0,Qb.U)(W,U);if("none"!==T)switch(T){case"selfHosted":$=(0,L.jsx)("video",{src:(P?j:S)+G,autoPlay:!0,muted:!0,loop:!_,preload:R, | |
| 419 | -controls:!1,controlsList:"",className:"ablocks-background-video"});break;case"youtube":$=(0,L.jsx)(tc.A,{block_id:t,autoplay:!0,mute:!0,loop:!_,youtubeURL:M,videoStartTime:W,videoEndTime:U,externalLink:P,selfHostedURL:j,playerControl:!1,privacyMode:w,className:"ablocks-background-video",isBackground:!0});break;case"vimeo":$=(0,L.jsx)(ec.A,{block_id:t,autoplay:!0,mute:!0,loop:!_,vimeoURL:H,privacyMode:w,videoStartTime:W,introPortrait:x,introTitle:k,introByline:v,isBackground:!0,className:"ablocks-background-video"});break;default:$=void 0}return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(B,{...E,children:[X&&(0,L.jsx)("a",{...Y,"aria-label":Y["aria-label"]||O,className:"ablocks-block-container__link-overlay"}),"video"===o?._background?.backgroundType&&$,q?(0,L.jsx)("div",{className:"ablocks-block-container",children:i}):i]})})}function ac(t){const{attributes:e}=t,{block_id:i,isRootContainer:o,containerWidthType:a,shapeTop:n,shapeBottom:r}=e,b=s()({"ablocks-block--container--is-root":o, | |
| 420 | -alignfull:o&&("full"===a||"boxed"===a)});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:Ib.UU,attributes:e,className:b,children:[(0,L.jsx)(Cb,{position:"top",shape:n}),(0,L.jsx)(Cb,{position:"bottom",shape:r}),(0,L.jsx)(C.InnerBlocks.Content,{})]})})}oc.propTypes=ic,ac.propTypes={};const lc=({name:t,blockId:e,_hide_on_desktop:i,_hide_on_tablet:o,_hide_on_mobile:a,className:l})=>{const n=`ablocks-block-${e} ablocks-block--${t.split("/")[1]}`;return s()("ablocks-block",n,l,{"ablocks-hide-on-desktop":i,"ablocks-hide-on-tablet":o,"ablocks-hide-on-mobile":a})},nc={name:I().string,blockId:I().string,blockProps:I().object};function sc({blockId:t,name:e,children:i,attributes:o,className:a,dataAttributes:n={},blockProps:r={}}){const{_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u,_animation:p}=o;let m=(0,b.applyFilters)("ablocks.global.save_container_classes",{},o),h=(0,b.applyFilters)("ablocks.global.save_container_attributes",{},o) | |
| 421 | -;const g=p?.animationType&&"none"!==p?.animationType||p?.animationTypeTablet&&"none"!==p?.animationTypeTablet||p?.animationTypeMobile&&"none"!==p?.animationTypeMobile,f={...C.useBlockProps.save({...r}),...n,className:lc({name:e,blockId:t,className:s()(a,o?.className,{"ablocks-invisible":g,...m}),_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u})},y={...g?p:{},...h};return Lt().isEmpty(y)||(f["data-settings"]=JSON.stringify(y)),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)("div",{...f,children:(0,L.jsx)("div",{className:"ablocks-block-container",children:i})})})}sc.propTypes=nc;const rc={UU:"ablocks/container",uK:{block_id:{type:"string",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},containerWidthType:{type:"string",default:"boxed"},overflow:{type:"string",default:"visible"},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string", | |
| 396 | +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 Bb(t){const{attributes:e,setAttributes:i,hasChildBlocks:n,className:s,clientId:r}=t,{block_id:b,gridColumn:c,gridRow:d,layout:u,shapeTop:p,shapeBottom:m}=e,h={renderAppender:"grid"!==u&&(n?void 0:D.InnerBlocks.ButtonBlockAppender),allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)};return(0,a.useEffect)(()=>{ | |
| 397 | +if("grid"===u){const t=wp.data.select("core/block-editor").getBlocks(r),e=c.value*d.value;if(t.length!==e){if(t.length>e&&t.slice(e).forEach(t=>{wp.data.dispatch("core/block-editor").removeBlock(t.clientId)}),t.length<e){const i=Array.from({length:e-t.length},()=>(0,o.createBlock)("ablocks/container",{}));wp.data.dispatch("core/block-editor").insertBlocks(i,t.length,r)}wp.data.dispatch("core/block-editor").selectBlock(r)}}},[r,c,d]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:b,name:Xb.UU,attributes:e,typography:[],className:s,children:[(0,I.jsx)(Nb,{position:"top",shape:p}),(0,I.jsx)(Nb,{position:"bottom",shape:m}),(0,I.jsx)(D.InnerBlocks,{...h})]})})}Bb.propTypes={};var Eb=i(42377);const Fb=(t,e="")=>{const{isRootContainer:i,containerWidth:o,containerWidthType:a,overflow:l}=t,n={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,property:"value",unitDefaultValue:"%",device:e})},s={} | |
| 398 | +;return i&&"custom"!==a||!n?.value||(s["max-width"]=`min(100%, ${n?.value}${n?.valueUnit})!important`),"custom"===a&&n?.value&&i&&(s["margin-left"]="auto !important",s["margin-right"]="auto !important"),i&&"custom"!==a&&(delete s["max-width"],delete s["margin-left"],delete s["margin-right"]),l&&(s.overflow=l),s},qb=(t,e="")=>{const{isRootContainer:i,containerContentWidth:o,containerWidthType:a}=t,l={},n={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,property:"value",defaultValue:M.W0?.default_container_width,hasUnit:!0,unitDefaultValue:"px",device:e})};return i&&"boxed"===a&&(l["max-width"]=`min(100%, ${n.value??M.W0?.default_container_width}${n?.valueUnit})`,l["margin-left"]="auto !important",l["margin-right"]="auto !important"),l},$b=(t,e="")=>{const i=((t,e="")=>({...(0,Eb.qD)({attributeValue:t?.minimumHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"min-height",defaultValue:0,unitDefaultValue:"px",device:e})}))(t,e),o={...(0, | |
| 399 | +Eb.qD)({attributeValue:t.gridColumn,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,defaultValueTablet:2,defaultValueMobile:1,hasUnit:!1,property:"value",unitDefaultValue:"",device:e})},a={...(0,Eb.qD)({attributeValue:t.gridRow,attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!1,property:"value",unitDefaultValue:"",device:e})};return"grid"===t?.layout?(i.display="grid",i["grid-template-columns"]=`repeat(${o?.value}, 1fr)`,i["grid-template-rows"]=`repeat(${a.value}, auto)`):(i.display="flex",t["direction"+e]&&(i["flex-direction"]=t["direction"+e]),t["wrap"+e]&&(i["flex-wrap"]=t["wrap"+e])),t.dir?.["value"+e]&&(i["flex-direction"]=t.dir["value"+e]),t.justification?.["value"+e]&&(i["justify-content"]=t.justification["value"+e]),t.justification?.["value"+e]&&(i["justify-items"]=t.justification["value"+e]),t.alignment?.["value"+e]&&(i["align-items"]=t.alignment["value"+e]),t.wrapping?.["value"+e]&&(i["flex-wrap"]=t.wrapping["value"+e]),{...i,...(0,Eb.qD)({ | |
| 400 | +attributeValue:t.gap,attributeObjectKey:"rowGap",isResponsive:!0,hasUnit:!0,property:"row-gap",defaultValue:0,unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t.gap,attributeObjectKey:"columnGap",isResponsive:!0,hasUnit:!0,property:"column-gap",defaultValue:0,unitDefaultValue:"px",device:e})}},Gb=(t,e="")=>{const i={};return"row"!==t["dir"+e]&&"row-reverse"!==t["dir"+e]||(i.display="inline-block",i.width="auto"),t.alignment?.["value"+e]&&"stretch"!==t.alignment["value"+e]&&(i["max-width"]="unset"),i},Zb=(t,e="")=>{const{topShapeBringToFront:i,shapeTop:o}=t,a={};return i&&""!==o&&(a["z-index"]=1),a},Kb=(t,e="")=>{const{bottomShapeBringToFront:i,shapeBottom:o}=t,a={};return i&&""!==o&&(a["z-index"]=1),a},Jb=(t,e="")=>{const{topShapeFlip:i,shapeTop:o,shapeTopHeight:a,shapeTopWidth:l,shapeTopColor:n}=t;if(""===o)return{};const s={...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"height",defaultValue:100,unitDefaultValue:"px", | |
| 401 | +device:e}),...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})};return n&&(s.fill=n),i&&""!==o&&(s.transform="translateX(0%) rotateY(180deg)"),s},Qb=(t,e="")=>{const{bottomShapeFlip:i,shapeBottom:o,shapeBottomHeight:a,shapeBottomWidth:l,shapeBottomColor:n}=t;if(""===o)return{};const s={...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"height",defaultValue:100,unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})};return n&&(s.fill=n),i&&""!==o&&(s.transform="translateX(0%) rotateY(180deg)"),s},tc=[{name:"one-column-column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-bottom-direction"}),attributes:{variationSelected:!0,gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{ | |
| 402 | +valueTablet:100},gridColumn:{value:1},gridRow:{value:1},layout:"flexBox"},scope:["block"]},{name:"one-column-row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-right-direction"}),attributes:{variationSelected:!0,gap:{columnGap:20,rowGap:20},dir:{value:"row"},containerWidth:{valueTablet:100},gridColumn:{value:1},gridRow:{value:1},layout:"flexBox"},scope:["block"]},{name:"two-columns-split",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-2"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},isDefault:!0,innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]], | |
| 403 | +scope:["block"]},{name:"three-columns-equal",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-3"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:3},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33.33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33.33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33.33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"four-columns-equal",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-4"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:4},gridRow:{value:1}, | |
| 404 | +layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"75-25",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-5"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{ | |
| 405 | +columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"25-75",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-6"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:1},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"50-50_50-50",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-7"}),attributes:{variationSelected:!0, | |
| 406 | +wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"33-33-33_33-33-33",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-8"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:3},gridRow:{value:3},layout:"flexBox",wrapping:{value:"wrap"}, | |
| 407 | +dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:33,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"25-50-25",icon:(0,I.jsx)("span",{ | |
| 408 | +className:"ablocks-icon ablocks-icon--column-9"}),attributes:{variationSelected:!0,wrapTablet:"wrap",direction:"row",gridColumn:{value:3},gridRow:{value:1},layout:"flexBox",wrapping:{valueTablet:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"75-25_25-75",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-10"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{ | |
| 409 | +columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"25-75_75-25",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-11"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%", | |
| 410 | +valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:75,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:25,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"50-50_100",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--column-12"}),attributes:{variationSelected:!0,wrap:"wrap",direction:"row",gridColumn:{value:2},gridRow:{value:2},layout:"flexBox",wrapping:{value:"wrap"},dir:{value:"row"}},innerBlocks:[["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:50, | |
| 411 | +valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{gap:{columnGap:20,rowGap:20},dir:{value:"column"},containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]}],ec=[{name:"two-columns",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-1"}),attributes:{variationSelected:!0,gridColumn:{value:2},gridRow:{value:1},layout:"grid"},isDefault:!0,innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"one-columns",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-2"}),attributes:{variationSelected:!0,gridColumn:{value:1},gridRow:{value:2},layout:"grid"},isDefault:!0,innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%", | |
| 412 | +valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"three-columns",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-3"}),attributes:{variationSelected:!0,gridColumn:{value:3},gridRow:{value:1},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"three-rows",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-4"}),attributes:{variationSelected:!0,gridColumn:{value:1},gridRow:{value:3},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%", | |
| 413 | +valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"two-columns-two-rows",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-5"}),attributes:{variationSelected:!0,gridColumn:{value:2},gridRow:{value:2},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{ | |
| 414 | +direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]},{name:"three-columns-three-rows",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--grid-6"}),attributes:{variationSelected:!0,gridColumn:{value:3},gridRow:{value:2},layout:"grid"},innerBlocks:[["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100,valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}],["ablocks/container",{direction:"column",containerWidth:{value:100, | |
| 415 | +valueUnit:"%",valueUnitTablet:"%",valueTablet:100}}]],scope:["block"]}],ic=({clientId:t,setAttributes:e,defaultVariation:i})=>{const{replaceInnerBlocks:a}=(0,r.useDispatch)("core/block-editor"),[l,n]=(0,Yt.useState)(""),s=t=>{n(t),e({layout:t})},b=(l=i)=>{l.attributes&&e({...l.attributes,variationSelected:!0}),l.innerBlocks&&"one-column"!==l.name&&a(t,(0,o.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))},c=()=>{wp.data.dispatch("core/block-editor").removeBlock(t)};return(0,I.jsxs)("div",{className:"ablocks-container-block-variation-picker",children:[l&&(0,I.jsxs)("div",{className:"ablocks-container-block-variation-chose-icon-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:c,role:"presentation"}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left",onClick:()=>{n("")},role:"presentation"})]}),!l&&(0,I.jsxs)("div",{className:"ablocks-container-block-variation-chose",children:[(0,I.jsx)("span",{ | |
| 416 | +className:"ablocks-icon ablocks-icon--close",onClick:c,role:"presentation"}),(0,I.jsx)("h3",{className:"ablocks-container-block-variation-picker-title",children:"Which layout would you like to use?"}),!l&&(0,I.jsxs)("div",{className:"ablocks-layout-selector-wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-layout-selector",onClick:()=>s("flexBox"),children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--flexbox-svg-icon"}),(0,I.jsx)("span",{className:"ablocks-icon-title",children:"Flexbox"})]}),(0,I.jsxs)("div",{className:"ablocks-layout-selector",onClick:()=>s("grid"),children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--grid"}),(0,I.jsx)("span",{className:"ablocks-icon-title",children:"Grid"})]})]})]}),"flexBox"===l&&(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Choose Container layout","ablocks"),instructions:(0,L.__)("","ablocks"),variations:tc,onSelect:b}),"grid"===l&&(0,I.jsx)("div",{className:"ablocks-variation-picker-grid", | |
| 417 | +children:(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Choose Grid layout","ablocks"),instructions:(0,L.__)("","ablocks"),variations:ec,onSelect:b})})]})};var oc=i(72649),ac=i(86816),lc=i(24175);const nc={name:Y().string,blockId:Y().string,blockProps:Y().object};function sc({blockId:t,name:e,children:i,attributes:o,className:a,dataAttributes:n={},blockProps:r={}}){const{_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u,_animation:p,_transform:m,_floating:h,_mouse:g,_scrolling:f,htmlTag:y}=o,{videoSource:T,vimeoURL:H,youtubeURL:M,introPortrait:x,introTitle:k,introByline:v,videoPlayOnce:_=!1,preload:R="",videoUrl:S="",videoStartTime:W="",videoEndTime:P="",externalLink:U=!1,selfHostedURL:j="",videoPrivacyMode:w}=o?._background||{};let z=(0,b.applyFilters)("ablocks.global.save_container_classes",{},o),C=(0,b.applyFilters)("ablocks.global.save_container_attributes",{},o) | |
| 418 | +;const A=p?.animationType&&"none"!==p?.animationType||p?.animationTypeTablet&&"none"!==p?.animationTypeTablet||p?.animationTypeMobile&&"none"!==p?.animationTypeMobile,{linkTarget:L,noFollow:N,keyValue:V,href:O}=o?.link||{};let Y={href:O};L&&(Y.target="_blank"),Y.rel=N?L?"nofollow noreferrer noopener":"nofollow":"noopener",V&&(Y={...Y,...(0,wb.jM)(V)});const X="a"===y,B=X?"div":y||"div",E={...D.useBlockProps.save({...r}),...n,className:(0,oc.Z)({name:e,blockId:t,className:s()(a,o?.className,{"ablocks-invisible":A,"ablocks-has-block-container":m?.isApplied,"ablocks-block--container-has-link-overlay":X,...z}),_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u})},F={...A?p:{},...C};Dt().isEmpty(F)||(E["data-settings"]=JSON.stringify(F));const q=m?.isApplied||o?.isRootContainer||h?.floatingEffects||f?.scrollingEffects||g?.mouseEffects;let $;const G=(0,oc.U)(W,P);if("none"!==T)switch(T){case"selfHosted":$=(0,I.jsx)("video",{src:(U?j:S)+G,autoPlay:!0,muted:!0,loop:!_,preload:R, | |
| 419 | +controls:!1,controlsList:"",className:"ablocks-background-video"});break;case"youtube":$=(0,I.jsx)(ac.A,{block_id:t,autoplay:!0,mute:!0,loop:!_,youtubeURL:M,videoStartTime:W,videoEndTime:P,externalLink:U,selfHostedURL:j,playerControl:!1,privacyMode:w,className:"ablocks-background-video",isBackground:!0});break;case"vimeo":$=(0,I.jsx)(lc.A,{block_id:t,autoplay:!0,mute:!0,loop:!_,vimeoURL:H,privacyMode:w,videoStartTime:W,introPortrait:x,introTitle:k,introByline:v,isBackground:!0,className:"ablocks-background-video"});break;default:$=void 0}return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(B,{...E,children:[X&&(0,I.jsx)("a",{...Y,"aria-label":Y["aria-label"]||O,className:"ablocks-block-container__link-overlay"}),"video"===o?._background?.backgroundType&&$,q?(0,I.jsx)("div",{className:"ablocks-block-container",children:i}):i]})})}function rc(t){const{attributes:e}=t,{block_id:i,isRootContainer:o,containerWidthType:a,shapeTop:n,shapeBottom:r}=e,b=s()({"ablocks-block--container--is-root":o, | |
| 420 | +alignfull:o&&("full"===a||"boxed"===a)});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:Xb.UU,attributes:e,className:b,children:[(0,I.jsx)(Nb,{position:"top",shape:n}),(0,I.jsx)(Nb,{position:"bottom",shape:r}),(0,I.jsx)(D.InnerBlocks.Content,{})]})})}sc.propTypes=nc,rc.propTypes={};const bc=({name:t,blockId:e,_hide_on_desktop:i,_hide_on_tablet:o,_hide_on_mobile:a,className:l})=>{const n=`ablocks-block-${e} ablocks-block--${t.split("/")[1]}`;return s()("ablocks-block",n,l,{"ablocks-hide-on-desktop":i,"ablocks-hide-on-tablet":o,"ablocks-hide-on-mobile":a})},cc={name:Y().string,blockId:Y().string,blockProps:Y().object};function dc({blockId:t,name:e,children:i,attributes:o,className:a,dataAttributes:n={},blockProps:r={}}){const{_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u,_animation:p}=o;let m=(0,b.applyFilters)("ablocks.global.save_container_classes",{},o),h=(0,b.applyFilters)("ablocks.global.save_container_attributes",{},o) | |
| 421 | +;const g=p?.animationType&&"none"!==p?.animationType||p?.animationTypeTablet&&"none"!==p?.animationTypeTablet||p?.animationTypeMobile&&"none"!==p?.animationTypeMobile,f={...D.useBlockProps.save({...r}),...n,className:bc({name:e,blockId:t,className:s()(a,o?.className,{"ablocks-invisible":g,...m}),_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u})},y={...g?p:{},...h};return Dt().isEmpty(y)||(f["data-settings"]=JSON.stringify(y)),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("div",{...f,children:(0,I.jsx)("div",{className:"ablocks-block-container",children:i})})})}dc.propTypes=cc;const uc={UU:"ablocks/container",uK:{block_id:{type:"string",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},containerWidthType:{type:"string",default:"boxed"},overflow:{type:"string",default:"visible"},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string", | |
| 422 | 422 | default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},wrap:{type:"string",default:""},wrapTablet:{type:"string",default:""},wrapMobile:{type:"string",default:""},gap:{type:"object",default:{columnGap:0,columnGapTablet:"",columnGapMobile:"",columnGapUnit:"px",columnGapUnitTablet:"",columnGapUnitMobile:"",rowGap:0,rowGapTablet:"",rowGapMobile:"",rowGapUnit:"px",rowGapUnitTablet:"",rowGapUnitMobile:""}},minimumHeight:{type:"object",default:{value:null,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},containerWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},containerContentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}}, |
| 423 | 423 | _backgroundOverlay:{type:"object",default:{backgroundOverlayType:"none",backgroundOverlayTypeH:"none",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"px",imgXPositionUnitMobile:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",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:"", |
| 424 | 424 | 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:"",blendMode:"",blur:"",brightness:"",contrast:"",saturate:"",hue:"",opacity:"",opacityTablet:"",opacityMobile:"",blendModeH:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:"",opacityH:"",opacityHTablet:"",opacityHMobile:"",transitionDuration:""}},_margin:{ |
| 425 | 425 | type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, |
| @@ -428,60 +428,82 @@ | ||
| 428 | 428 | backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"", |
| 429 | 429 | imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"", |
| 430 | 430 | rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"", |
| 431 | 431 | rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px", |
| 432 | -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}}};function bc(t){ | |
| 433 | -const{attributes:e}=t,{block_id:i,isRootContainer:o,containerWidthType:a}=e,n=`ablocks-block--container--${a}${o?" ablocks-block--container--is-root":""}`;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(sc,{blockId:i,name:rc.UU,attributes:e,className:`${n.trim()}`,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}bc.propTypes={};const cc={name:I().string,blockId:I().string,blockProps:I().object};function dc({blockId:t,name:e,children:i,attributes:o,className:a,dataAttributes:n={},blockProps:r={}}){const{_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u,_animation:p}=o,{videoSource:m,vimeoURL:h,youtubeURL:g,introPortrait:f,introTitle:y,introByline:T,videoPlayOnce:H=!1,preload:M="",videoUrl:x="",videoStartTime:k="",videoEndTime:v="",externalLink:_=!1,selfHostedURL:R="",videoPrivacyMode:S}=o._background||{};let W=(0,b.applyFilters)("ablocks.global.save_container_classes",{},o),U=(0,b.applyFilters)("ablocks.global.save_container_attributes",{},o) | |
| 434 | -;const P=p?.animationType&&"none"!==p?.animationType||p?.animationTypeTablet&&"none"!==p?.animationTypeTablet||p?.animationTypeMobile&&"none"!==p?.animationTypeMobile,j={...C.useBlockProps.save({...r}),...n,className:(0,Qb.Z)({name:e,blockId:t,className:s()(a,o?.className,{"ablocks-invisible":P,...W}),_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u})},w={...P?p:{},...U};let z;Lt().isEmpty(w)||(j["data-settings"]=JSON.stringify(w));const A=(0,Qb.U)(k,v);if("none"!==m)switch(m){case"selfHosted":z=(0,L.jsx)("video",{src:(_?R:x)+A,autoPlay:!0,muted:!0,loop:!H,preload:M,controls:!1,controlsList:"",className:"ablocks-background-video"});break;case"youtube":z=(0,L.jsx)(tc.A,{block_id:t,autoplay:!0,mute:!0,loop:!H,youtubeURL:g,videoStartTime:k,videoEndTime:v,externalLink:_,selfHostedURL:R,playerControl:!1,privacyMode:S,className:"ablocks-background-video",isBackground:!0});break;case"vimeo":z=(0,L.jsx)(ec.A,{block_id:t,autoplay:!0,mute:!0,loop:!H,vimeoURL:h,privacyMode:S, | |
| 435 | -videoStartTime:k,introPortrait:f,introTitle:y,introByline:T,isBackground:!0,className:"ablocks-background-video"});break;default:z=void 0}return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{...j,children:["video"===o?._background?.backgroundType&&z,(0,L.jsx)("div",{className:"ablocks-block-container",children:i})]})})}function uc(t){const{attributes:e}=t,{block_id:i,isRootContainer:o,containerWidthType:a}=e,n=s()({"ablocks-block--container--is-root":o,alignfull:o&&("full"===a||"boxed"===a)});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:rc.UU,attributes:e,className:n,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}dc.propTypes=cc,uc.propTypes={};(0,M.xV)(Ib.UU)&&(0,o.registerBlockType)(Ib.UU,{title:"Container",attributes:Ib.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{isRootContainer:n,containerWidthType:c,block_id:d}=i;(0,a.useEffect)(()=>{ | |
| 436 | -d&&d===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[d,l]);const{hasChildBlocks:u,containerParents:p}=(0,r.useSelect)(t=>{const e=t("core/block-editor");return{hasChildBlocks:e?.getBlockOrder(l).length>0,containerParents:e?.getBlockParentsByBlockName(l,"ablocks/container"),parentBlockId:e?.getBlockParents(l)[0]}});(0,a.useEffect)(()=>{o(p?.length>0?{isRootContainer:!1,containerWidthType:"custom"}:{isRootContainer:!0})},[p?.length]);const m=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}.ablocks-block--container",Yb(i),Yb(i,"Tablet"),Yb(i,"Mobile")),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container",Xb(i),Xb(i,"Tablet"),Xb(i,"Mobile")),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .block-editor-inner-blocks > .block-editor-block-list__layout",Bb(i),Bb(i,"Tablet"),Bb(i,"Mobile")), | |
| 437 | -t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .block-editor-inner-blocks > .block-editor-block-list__layout > :not(.block-list-appender,.ablocks-block--container).wp-block",Eb(i),Eb(i,"Tablet"),Eb(i,"Mobile")),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container >.ablocks-container-shape-top",Fb(i),Fb(i,"Tablet"),Fb(i,"Mobile")),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container >.ablocks-container-shape-bottom",qb(i),qb(i,"Tablet"),qb(i,"Mobile")),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .ablocks-container-shape-top > svg",$b(i),$b(i,"Tablet"),$b(i,"Mobile")),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .ablocks-container-shape-bottom > svg",Gb(i),Gb(i,"Tablet"),Gb(i,"Mobile")),(0,b.applyFilters)("ablocks.container.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);if(!i.variationSelected&&0===p?.length&&!u)return(0,L.jsx)(Jb,{...t});const h=s()({"ablocks-block--container--is-root":n,alignfull:n&&("full"===c||"boxed"===c)}) | |
| 438 | -;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:m}),e&&(0,L.jsx)(Db,{...t}),(0,L.jsx)(Vb,{...t,hasChildBlocks:u,className:h})]})},save:ac,deprecated:[{attributes:rc.uK,save:bc},{attributes:{block_id:{type:"string",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},wrap:{type:"string",default:""},wrapTablet:{type:"string",default:""},wrapMobile:{type:"string",default:""},gap:{type:"object",default:{columnGap:0,columnGapTablet:"",columnGapMobile:"",columnGapUnit:"px",columnGapUnitTablet:"",columnGapUnitMobile:"",rowGap:0, | |
| 439 | -rowGapTablet:"",rowGapMobile:"",rowGapUnit:"px",rowGapUnitTablet:"",rowGapUnitMobile:""}},containerWidthType:{type:"string",default:"boxed"},overflow:{type:"string",default:"visible"},dir:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},justification:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},wrapping:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},minimumHeight:{type:"object",default:{value:null,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},containerWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},containerContentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_backgroundOverlay:{type:"object",default:{backgroundOverlayType:"none",backgroundOverlayTypeH:"none", | |
| 440 | -imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"px",imgXPositionUnitMobile:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",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:"", | |
| 441 | -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:"",blendMode:"",blur:"",brightness:"",contrast:"",saturate:"",hue:"",opacity:"",opacityTablet:"",opacityMobile:"",blendModeH:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:"",opacityH:"",opacityHTablet:"",opacityHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"", | |
| 442 | -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:"",bottomWidth:"", | |
| 443 | -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", | |
| 444 | -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:"",imgIdTablet:"",imgIdMobile:"", | |
| 445 | -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:"", | |
| 446 | -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:"", | |
| 447 | -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", | |
| 448 | -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", | |
| 449 | -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:""}},save:uc}]});var pc=i(74411);const mc={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func},hc=t=>{ | |
| 450 | -const{attributeName:e,onChangeHandler:i,setAttributes:o,isResponsive:l,label:n=""}=t,s=t.attributeValue||0,{color:r,blur:b,horizontal:c,vertical:d}=s,[u,p]=(0,a.useState)(!1),m=(0,a.useRef)(null),h=(0,pc.tJ)(),g=(t,a)=>{i?i(t,a):o({[e]:(0,M.jI)(h,{...s,[a]:t})})},f=()=>{o({[e]:h})};return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control--text-shadow",children:[n&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:n,isResponsive:!1})}),(0,L.jsxs)("div",{className:"ablocks-text-shadow-controls-options",children:[(r||b||c||d)&&(0,L.jsx)(V,{onClick:f,className:"ablocks-text-shadow-controls-reset",icon:(0,L.jsx)(X,{tooltipText:(0,z.__)("Reset","ablocks"),position:"top",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"})}),preset:"transparent"}),(0,L.jsx)("div",{className:"ablocks-text-shadow-control-content",children:(0,L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{ | |
| 451 | -className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:m,children:(0,L.jsx)(V,{ref:m,onClick:()=>{p(!u)},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:u?"ablocks-component-popover__field--active":""})})}),u&&(0,L.jsx)(Yt,{label:(0,z.__)("Text Shadow","ablocks"),FigmaPasterComponent:({position:t="left"})=>(0,L.jsx)(ut,{position:t,figmaPasteBtnClickHandler:t=>{const i=ft(t,"text-shadow");i?(o({[e]:i}),(0,M.An)({message:"Text-Shadow Style Successfully Pasted",config:{id:"ablocks-notice-figma-text-shadow-paste-success-notice",type:"snackbar"}})):(0,M.An)({message:"Copy/Paste Failed: Wrong Text-Shadow Style",config:{id:"ablocks-notice-figma-paste-invalid-text-shadow-notice",type:"snackbar"}})}}),isShowPrimaryLabel:!1,isReset:!0,handleReset:f,isVisible:u,toggleVisible:p,anchorRef:m,children:(0,L.jsxs)("div",{className:"ablocks-popover-content",ref:m,children:[(0, | |
| 452 | -L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"color",attributeValue:s.color,onChangeHandler:(t,e)=>{g(e,t)},resetHandler:()=>{o({[e]:{...s,color:h.color}})},setAttributes:t=>{o({[e]:{...s,...t}})}}),(0,L.jsx)("div",{className:"ablocks-popover-content--blur",children:(0,L.jsx)(vt,{isResponsive:l,attributeObjectKey:"blur",attributeValue:b,onChangeHandler:g,setAttributes:o,label:(0,z.__)("Blur Shadow","ablocks"),min:0,max:10,isInline:!1})}),(0,L.jsx)("div",{className:"ablocks-popover-content--horizontal",children:(0,L.jsx)(vt,{isResponsive:l,attributeValue:c,attributeObjectKey:"horizontal",onChangeHandler:g,setAttributes:o,label:(0,z.__)("Horizontal Shadow","ablocks"),min:-100,max:100,isInline:!1})}),(0,L.jsx)("div",{className:"ablocks-popover-content--vertical",children:(0,L.jsx)(vt,{isResponsive:l,attributeValue:d,attributeObjectKey:"vertical",onChangeHandler:g,setAttributes:o,label:(0,z.__)("Vertical shadow","ablocks"),min:-100,max:100,isInline:!1})})]})})]})})]})]})} | |
| 453 | -;hc.propTypes=mc;const gc=hc;var fc=i(16867);const yc={isResponsive:I().bool,label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func},Tc=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:l,label:n=""}=t,[s,r]=(0,a.useState)(!1),b=(0,a.useRef)(null),{strokeWidth:c}=o,d=(t,a)=>l(e?{[i]:(0,M.jI)((0,fc.tJ)(e),{...o,[a]:t})}:{[i]:{...o,[a]:t}}),u=()=>{l({[i]:fc.tJ})};return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control--text-stroke",children:[n&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:n,isResponsive:!1})}),(0,L.jsxs)("div",{className:"ablocks-text-stroke-controls-options",children:[c&&(0,L.jsx)(V,{onClick:u,className:"ablocks-text-stroke-controls-reset",icon:(0,L.jsx)(X,{tooltipText:(0,z.__)("Reset","ablocks"),position:"top",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"})}),preset:"transparent"}),(0,L.jsx)("div",{ | |
| 454 | -className:"ablocks-control--text-stroke-content",children:(0,L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:b,children:(0,L.jsx)(V,{ref:b,onClick:()=>{r(!s)},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:s?"ablocks-component-popover__field--active":""})})}),s&&(0,L.jsxs)(Yt,{label:(0,z.__)("Text Stroke","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:u,isVisible:s,toggleVisible:r,anchorRef:b,children:[(0,L.jsx)(vs,{label:(0,z.__)("Stroke color","ablocks"),attributeName:"stroke",attributeValue:o.stroke,onChangeHandler:(t,e)=>{d(e,t)},resetHandler:()=>{l({[i]:{...o,stroke:fc.tJ.stroke}})},setAttributes:t=>{l({[i]:{...o,...t}})}}),(0,L.jsx)(vt,{isResponsive:e,attributeName:i,attributeValue:o,setAttributes:l,attributeObjectKey:"strokeWidth",onChangeHandler:d,label:(0, | |
| 455 | -z.__)("Stroke width","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0})]})]})})]})]})};Tc.propTypes=yc;const Hc=Tc,Mc=[{value:"Default",label:(0,z.__)("Default","ablocks"),weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Arial",label:"Arial",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Helvetica",label:"Helvetica",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Times New Roman",label:"Times New Roman",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Georgia",label:"Georgia",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1}];var xc=i(11244);const kc=()=>{},vc=()=>(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none", | |
| 456 | -children:[(0,L.jsx)("path",{d:"M10.665 3.96001C10.46 3.96001 10.29 3.79001 10.29 3.58501V2.67501C10.29 2.31001 9.99496 2.01501 9.62996 2.01501H2.36996C2.00496 2.01501 1.70996 2.31001 1.70996 2.67501V3.59001C1.70996 3.79501 1.53996 3.96501 1.33496 3.96501C1.12996 3.96501 0.959961 3.79501 0.959961 3.58501V2.67501C0.959961 1.89501 1.59496 1.26501 2.36996 1.26501H9.62996C10.41 1.26501 11.04 1.90001 11.04 2.67501V3.59001C11.04 3.79501 10.875 3.96001 10.665 3.96001Z",fill:"#A7AAAD"}),(0,L.jsx)("path",{d:"M6 10.735C5.795 10.735 5.625 10.565 5.625 10.36V2.05499C5.625 1.84999 5.795 1.67999 6 1.67999C6.205 1.67999 6.375 1.84999 6.375 2.05499V10.36C6.375 10.57 6.205 10.735 6 10.735Z",fill:"#A7AAAD"}),(0,L.jsx)("path",{d:"M7.97003 10.735H4.03003C3.82503 10.735 3.65503 10.565 3.65503 10.36C3.65503 10.155 3.82503 9.98499 4.03003 9.98499H7.97003C8.17503 9.98499 8.34503 10.155 8.34503 10.36C8.34503 10.565 8.17503 10.735 7.97003 10.735Z",fill:"#A7AAAD"})] | |
| 457 | -}),_c=({attributeValue:t,changeHandler:e,deviceType:i,isResponsive:o,resetHandler:l,attributeName:n,setAttributes:s,label:r,attributeDefaultValue:b,showOnlyCustomFonts:c,customFontsOption:d,globalId:u,inline:p=!1,isLocked:m=!1,isFamilyLocked:h=!1})=>{const[g,f]=(0,a.useState)(P.Wy),[y,T]=(0,a.useState)(!1),H=(0,a.useRef)(null),[x,k]=(0,a.useState)({families:[],fontVariants:{}});(0,a.useEffect)(()=>{let t=!0;return(0,xc.TE)().then(e=>{t&&e&&k({families:e.families||[],fontVariants:e.fontVariants||{}})}),()=>{t=!1}},[]);const{fontVariants:v,families:_}=x,R=(0,a.useMemo)(()=>(M.W0?.theme_fonts||[]).map(t=>({value:t.value,label:"theme"===t.source?(0,z.sprintf)( | |
| 432 | +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}}};function pc(t){ | |
| 433 | +const{attributes:e}=t,{block_id:i,isRootContainer:o,containerWidthType:a}=e,n=`ablocks-block--container--${a}${o?" ablocks-block--container--is-root":""}`;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dc,{blockId:i,name:uc.UU,attributes:e,className:`${n.trim()}`,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}pc.propTypes={};const mc={name:Y().string,blockId:Y().string,blockProps:Y().object};function hc({blockId:t,name:e,children:i,attributes:o,className:a,dataAttributes:n={},blockProps:r={}}){const{_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u,_animation:p}=o,{videoSource:m,vimeoURL:h,youtubeURL:g,introPortrait:f,introTitle:y,introByline:T,videoPlayOnce:H=!1,preload:M="",videoUrl:x="",videoStartTime:k="",videoEndTime:v="",externalLink:_=!1,selfHostedURL:R="",videoPrivacyMode:S}=o._background||{};let W=(0,b.applyFilters)("ablocks.global.save_container_classes",{},o),P=(0,b.applyFilters)("ablocks.global.save_container_attributes",{},o) | |
| 434 | +;const U=p?.animationType&&"none"!==p?.animationType||p?.animationTypeTablet&&"none"!==p?.animationTypeTablet||p?.animationTypeMobile&&"none"!==p?.animationTypeMobile,j={...D.useBlockProps.save({...r}),...n,className:(0,oc.Z)({name:e,blockId:t,className:s()(a,o?.className,{"ablocks-invisible":U,...W}),_hide_on_desktop:c,_hide_on_tablet:d,_hide_on_mobile:u})},w={...U?p:{},...P};let z;Dt().isEmpty(w)||(j["data-settings"]=JSON.stringify(w));const C=(0,oc.U)(k,v);if("none"!==m)switch(m){case"selfHosted":z=(0,I.jsx)("video",{src:(_?R:x)+C,autoPlay:!0,muted:!0,loop:!H,preload:M,controls:!1,controlsList:"",className:"ablocks-background-video"});break;case"youtube":z=(0,I.jsx)(ac.A,{block_id:t,autoplay:!0,mute:!0,loop:!H,youtubeURL:g,videoStartTime:k,videoEndTime:v,externalLink:_,selfHostedURL:R,playerControl:!1,privacyMode:S,className:"ablocks-background-video",isBackground:!0});break;case"vimeo":z=(0,I.jsx)(lc.A,{block_id:t,autoplay:!0,mute:!0,loop:!H,vimeoURL:h,privacyMode:S, | |
| 435 | +videoStartTime:k,introPortrait:f,introTitle:y,introByline:T,isBackground:!0,className:"ablocks-background-video"});break;default:z=void 0}return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{...j,children:["video"===o?._background?.backgroundType&&z,(0,I.jsx)("div",{className:"ablocks-block-container",children:i})]})})}function gc(t){const{attributes:e}=t,{block_id:i,isRootContainer:o,containerWidthType:a}=e,n=s()({"ablocks-block--container--is-root":o,alignfull:o&&("full"===a||"boxed"===a)});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:uc.UU,attributes:e,className:n,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}hc.propTypes=mc,gc.propTypes={};(0,M.xV)(Xb.UU)&&(0,o.registerBlockType)(Xb.UU,{title:(0,L.__)("Container","ablocks"),attributes:Xb.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{isRootContainer:n,containerWidthType:c,block_id:d}=i | |
| 436 | +;(0,a.useEffect)(()=>{d&&d===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[d,l]);const{hasChildBlocks:u,containerParents:p}=(0,r.useSelect)(t=>{const e=t("core/block-editor");return{hasChildBlocks:e?.getBlockOrder(l).length>0,containerParents:e?.getBlockParentsByBlockName(l,"ablocks/container"),parentBlockId:e?.getBlockParents(l)[0]}});(0,a.useEffect)(()=>{o(p?.length>0?{isRootContainer:!1,containerWidthType:"custom"}:{isRootContainer:!0})},[p?.length]);const m=(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",Fb(i),Fb(i,"Tablet"),Fb(i,"Mobile"),e(t=>Fb(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container",qb(i),qb(i,"Tablet"),qb(i,"Mobile"),e(t=>qb(i,t))), | |
| 437 | +t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .block-editor-inner-blocks > .block-editor-block-list__layout",$b(i),$b(i,"Tablet"),$b(i,"Mobile"),e(t=>$b(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .block-editor-inner-blocks > .block-editor-block-list__layout > :not(.block-list-appender,.ablocks-block--container).wp-block",Gb(i),Gb(i,"Tablet"),Gb(i,"Mobile"),e(t=>Gb(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container >.ablocks-container-shape-top",Zb(i),Zb(i,"Tablet"),Zb(i,"Mobile"),e(t=>Zb(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container >.ablocks-container-shape-bottom",Kb(i),Kb(i,"Tablet"),Kb(i,"Mobile"),e(t=>Kb(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .ablocks-container-shape-top > svg",Jb(i),Jb(i,"Tablet"),Jb(i,"Mobile"),e(t=>Jb(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .ablocks-container-shape-bottom > svg",Qb(i),Qb(i,"Tablet"),Qb(i,"Mobile"),e(t=>Qb(i,t))),(0, | |
| 438 | +b.applyFilters)("ablocks.container.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);if(!i.variationSelected&&0===p?.length&&!u)return(0,I.jsx)(ic,{...t});const h=s()({"ablocks-block--container--is-root":n,alignfull:n&&("full"===c||"boxed"===c)});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:m}),e&&(0,I.jsx)(Ob,{...t}),(0,I.jsx)(Bb,{...t,hasChildBlocks:u,className:h})]})},save:rc,deprecated:[{attributes:uc.uK,save:pc},{attributes:{block_id:{type:"string",default:""},className:{type:"string",default:""},isRootContainer:{type:"boolean",default:!1},variationSelected:{type:"boolean",default:!1},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},wrap:{type:"string", | |
| 439 | +default:""},wrapTablet:{type:"string",default:""},wrapMobile:{type:"string",default:""},gap:{type:"object",default:{columnGap:0,columnGapTablet:"",columnGapMobile:"",columnGapUnit:"px",columnGapUnitTablet:"",columnGapUnitMobile:"",rowGap:0,rowGapTablet:"",rowGapMobile:"",rowGapUnit:"px",rowGapUnitTablet:"",rowGapUnitMobile:""}},containerWidthType:{type:"string",default:"boxed"},overflow:{type:"string",default:"visible"},dir:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},justification:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},wrapping:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},minimumHeight:{type:"object",default:{value:null,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},containerWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 440 | +containerContentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_backgroundOverlay:{type:"object",default:{backgroundOverlayType:"none",backgroundOverlayTypeH:"none",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"px",imgXPositionUnitMobile:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 441 | +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:"",blendMode:"",blur:"",brightness:"",contrast:"",saturate:"",hue:"",opacity:"",opacityTablet:"",opacityMobile:"",blendModeH:"",blurH:"", | |
| 442 | +brightnessH:"",contrastH:"",saturateH:"",hueH:"",opacityH:"",opacityHTablet:"",opacityHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{ | |
| 443 | +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:"", | |
| 444 | +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:"", | |
| 445 | +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:"", | |
| 446 | +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:""}}, | |
| 447 | +_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, | |
| 448 | +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:"", | |
| 449 | +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", | |
| 450 | +default:""}},save:gc}]});var fc=i(74411);const yc={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func},Tc=t=>{const{attributeName:e,onChangeHandler:i,setAttributes:o,isResponsive:l,label:n=""}=t,s=t.attributeValue||0,{color:r,blur:b,horizontal:c,vertical:d}=s,[u,p]=(0,a.useState)(!1),m=(0,a.useRef)(null),h=(0,fc.tJ)(),g=(t,a)=>{i?i(t,a):o({[e]:(0,M.jI)(h,{...s,[a]:t})})},f=()=>{o({[e]:h})};return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--text-shadow",children:[n&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:n,isResponsive:!1})}),(0,I.jsxs)("div",{className:"ablocks-text-shadow-controls-options",children:[(r||b||c||d)&&(0,I.jsx)(X,{onClick:f,className:"ablocks-text-shadow-controls-reset",icon:(0,I.jsx)(F,{tooltipText:(0,L.__)("Reset","ablocks"),position:"top",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"})}),preset:"transparent"}),(0,I.jsx)("div",{ | |
| 451 | +className:"ablocks-text-shadow-control-content",children:(0,I.jsxs)("div",{className:"ablocks-component-popover",children:[(0,I.jsx)("div",{className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:m,children:(0,I.jsx)(X,{ref:m,onClick:()=>{p(!u)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:u?"ablocks-component-popover__field--active":""})})}),u&&(0,I.jsx)(Xt,{label:(0,L.__)("Text Shadow","ablocks"),FigmaPasterComponent:({position:t="left"})=>(0,I.jsx)(pt,{position:t,figmaPasteBtnClickHandler:t=>{const i=yt(t,"text-shadow");i?(o({[e]:i}),(0,M.An)({message:"Text-Shadow Style Successfully Pasted",config:{id:"ablocks-notice-figma-text-shadow-paste-success-notice",type:"snackbar"}})):(0,M.An)({message:"Copy/Paste Failed: Wrong Text-Shadow Style",config:{id:"ablocks-notice-figma-paste-invalid-text-shadow-notice",type:"snackbar"}})}}),isShowPrimaryLabel:!1, | |
| 452 | +isReset:!0,handleReset:f,isVisible:u,toggleVisible:p,anchorRef:m,children:(0,I.jsxs)("div",{className:"ablocks-popover-content",ref:m,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:s.color,onChangeHandler:(t,e)=>{g(e,t)},resetHandler:()=>{o({[e]:{...s,color:h.color}})},setAttributes:t=>{o({[e]:{...s,...t}})}}),(0,I.jsx)("div",{className:"ablocks-popover-content--blur",children:(0,I.jsx)(_t,{isResponsive:l,attributeObjectKey:"blur",attributeValue:b,onChangeHandler:g,setAttributes:o,label:(0,L.__)("Blur Shadow","ablocks"),min:0,max:10,isInline:!1})}),(0,I.jsx)("div",{className:"ablocks-popover-content--horizontal",children:(0,I.jsx)(_t,{isResponsive:l,attributeValue:c,attributeObjectKey:"horizontal",onChangeHandler:g,setAttributes:o,label:(0,L.__)("Horizontal Shadow","ablocks"),min:-100,max:100,isInline:!1})}),(0,I.jsx)("div",{className:"ablocks-popover-content--vertical",children:(0,I.jsx)(_t,{isResponsive:l,attributeValue:d, | |
| 453 | +attributeObjectKey:"vertical",onChangeHandler:g,setAttributes:o,label:(0,L.__)("Vertical shadow","ablocks"),min:-100,max:100,isInline:!1})})]})})]})})]})]})};Tc.propTypes=yc;const Hc=Tc;var Mc=i(16867);const xc={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func},kc=t=>{const{isResponsive:e=!0,attributeName:i,attributeValue:o,setAttributes:l,label:n=""}=t,[s,r]=(0,a.useState)(!1),b=(0,a.useRef)(null),{strokeWidth:c}=o,d=(t,a)=>l(e?{[i]:(0,M.jI)((0,Mc.tJ)(e),{...o,[a]:t})}:{[i]:{...o,[a]:t}}),u=()=>{l({[i]:Mc.tJ})};return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--text-stroke",children:[n&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:n,isResponsive:!1})}),(0,I.jsxs)("div",{className:"ablocks-text-stroke-controls-options",children:[c&&(0,I.jsx)(X,{onClick:u,className:"ablocks-text-stroke-controls-reset",icon:(0,I.jsx)(F,{tooltipText:(0,L.__)("Reset","ablocks"),position:"top", | |
| 454 | +children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--reset"})}),preset:"transparent"}),(0,I.jsx)("div",{className:"ablocks-control--text-stroke-content",children:(0,I.jsxs)("div",{className:"ablocks-component-popover",children:[(0,I.jsx)("div",{className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:b,children:(0,I.jsx)(X,{ref:b,onClick:()=>{r(!s)},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:s?"ablocks-component-popover__field--active":""})})}),s&&(0,I.jsxs)(Xt,{label:(0,L.__)("Text Stroke","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:u,isVisible:s,toggleVisible:r,anchorRef:b,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Stroke color","ablocks"),attributeName:"stroke",attributeValue:o.stroke,onChangeHandler:(t,e)=>{d(e,t)},resetHandler:()=>{l({[i]:{...o,stroke:Mc.tJ.stroke}})},setAttributes:t=>{l({[i]:{...o,...t}})}}),(0,I.jsx)(_t,{ | |
| 455 | +isResponsive:e,attributeName:i,attributeValue:o,setAttributes:l,attributeObjectKey:"strokeWidth",onChangeHandler:d,label:(0,L.__)("Stroke width","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0})]})]})})]})]})};kc.propTypes=xc;const vc=kc,_c=[{value:"Default",label:(0,L.__)("Default","ablocks"),weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Arial",label:"Arial",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Helvetica",label:"Helvetica",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Times New Roman",label:"Times New Roman",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1},{value:"Georgia",label:"Georgia",weight:["Default","100","200","300","400","500","600","700","800","900"],google:!1}];var Rc=i(11244) | |
| 456 | +;const Sc=()=>{},Wc=()=>(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[(0,I.jsx)("path",{d:"M10.665 3.96001C10.46 3.96001 10.29 3.79001 10.29 3.58501V2.67501C10.29 2.31001 9.99496 2.01501 9.62996 2.01501H2.36996C2.00496 2.01501 1.70996 2.31001 1.70996 2.67501V3.59001C1.70996 3.79501 1.53996 3.96501 1.33496 3.96501C1.12996 3.96501 0.959961 3.79501 0.959961 3.58501V2.67501C0.959961 1.89501 1.59496 1.26501 2.36996 1.26501H9.62996C10.41 1.26501 11.04 1.90001 11.04 2.67501V3.59001C11.04 3.79501 10.875 3.96001 10.665 3.96001Z",fill:"#A7AAAD"}),(0,I.jsx)("path",{d:"M6 10.735C5.795 10.735 5.625 10.565 5.625 10.36V2.05499C5.625 1.84999 5.795 1.67999 6 1.67999C6.205 1.67999 6.375 1.84999 6.375 2.05499V10.36C6.375 10.57 6.205 10.735 6 10.735Z",fill:"#A7AAAD"}),(0,I.jsx)("path",{ | |
| 457 | +d:"M7.97003 10.735H4.03003C3.82503 10.735 3.65503 10.565 3.65503 10.36C3.65503 10.155 3.82503 9.98499 4.03003 9.98499H7.97003C8.17503 9.98499 8.34503 10.155 8.34503 10.36C8.34503 10.565 8.17503 10.735 7.97003 10.735Z",fill:"#A7AAAD"})]}),Pc=({attributeValue:t,changeHandler:e,deviceType:i,isResponsive:o,resetHandler:l,attributeName:n,setAttributes:s,label:r,attributeDefaultValue:b,showOnlyCustomFonts:c,customFontsOption:d,globalId:u,inline:p=!1,isLocked:m=!1,isFamilyLocked:h=!1})=>{const[g,f]=(0,a.useState)(U.Wy),[y,T]=(0,a.useState)(!1),H=(0,a.useRef)(null),[x,k]=(0,a.useState)({families:[],fontVariants:{}});(0,a.useEffect)(()=>{let t=!0;return(0,Rc.TE)().then(e=>{t&&e&&k({families:e.families||[],fontVariants:e.fontVariants||{}})}),()=>{t=!1}},[]);const{fontVariants:v,families:_}=x,R=(0,a.useMemo)(()=>(M.W0?.theme_fonts||[]).map(t=>({value:t.value,label:"theme"===t.source?(0,L.sprintf)( | |
| 458 | 458 | // translators: %s: font family name. |
| 459 | 459 | // translators: %s: font family name. |
| 460 | -(0,z.__)("%s (Theme)","ablocks"),t.label):t.label,google:!1})),[]),S=u?M.W0?.global_typography?.find(t=>t.id===u):null,W=u&&S?(U=S.value)?{...U,weight:U.weight?String(U.weight):U.weight}:U:t;var U;const j=()=>{l()};(0,a.useEffect)(()=>{const{fontFamily:e,weight:i}=t||{};if(v[e]){const o=v[e]?.variants;if(i&&!o.includes(i)){const e={...t,weight:"400"};s({[n]:e})}const a=g.every((t,e)=>t.value===o[e]);if(a)return kc;const l=g.filter(t=>o.includes(t.value));f(l)}else{if(JSON.stringify(g)===JSON.stringify(P.Wy))return kc;f(P.Wy)}},[t?.fontFamily,t?.weight,g,v]);const w=(t=!1)=>{T(e=>t||!e)},C=(0,L.jsxs)("div",{className:"ablocks-popover__content",children:[(0,L.jsx)(Ut,{options:c?d.families:[...Mc,...R,..._],label:(0,z.__)("Family","ablocks"),attributeObjectKey:"fontFamily",attributeValue:t,attributeName:n,setAttributes:s,disabled:h,isSearch:!0}),h&&(0,L.jsx)("p",{className:"ablocks-control__lock-note",children:fs.tN.family}),(0,L.jsx)(vt,{isResponsive:o,attributeName:n,attributeValue:W, | |
| 461 | -setAttributes:s,attributeObjectKey:"fontSize",onChangeHandler:e,label:(0,z.__)("Size","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,L.jsx)(Ut,{options:g,label:(0,z.__)("Weight","ablocks"),attributeObjectKey:"weight",attributeValue:W,attributeName:n,setAttributes:s}),(0,L.jsx)(Ut,{label:(0,z.__)("Transform","ablocks"),options:P.pd,attributeObjectKey:"transform",attributeValue:W,attributeName:n,setAttributes:s}),(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),options:P.iF,attributeObjectKey:"style",attributeValue:W,attributeName:n,setAttributes:s}),(0,L.jsx)(Ut,{label:(0,z.__)("Decoration","ablocks"),options:P.H8,attributeObjectKey:"decoration",attributeValue:W,attributeName:n,setAttributes:s}),(0,L.jsx)(vt,{isResponsive:o,attributeName:n,attributeValue:W,setAttributes:s,attributeObjectKey:"lineHeight",onChangeHandler:e,label:(0, | |
| 462 | -z.__)("Line-Height","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,L.jsx)(vt,{isResponsive:o,attributeName:n,attributeValue:W,setAttributes:s,attributeObjectKey:"letterSpacing",onChangeHandler:e,label:(0,z.__)("Letter Spacing","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,L.jsx)(vt,{isResponsive:o,attributeName:n,attributeValue:W,setAttributes:s,attributeObjectKey:"wordSpacing",onChangeHandler:e,label:(0,z.__)("Word spacing","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0})]});return p?(0,L.jsxs)("div",{className:"ablocks-control ablocks-control--typography-inline",children:[(0,L.jsxs)("div",{ | |
| 463 | -className:"ablocks-typography-inline__head",children:[r&&(0,L.jsx)(ot,{label:r,isResponsive:!1}),(0,L.jsx)("button",{type:"button",className:"ablocks-typography-inline__reset",onClick:j,children:(0,z.__)("Reset","ablocks")})]}),C]}):(0,L.jsxs)("div",{children:[r&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:r,isResponsive:!1})}),(0,L.jsxs)("div",{className:"ablocks-control-color-gradient",children:[(0,L.jsx)("div",{className:"ablocks-component-popover",children:(0,L.jsx)("div",{className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:H,children:(0,L.jsxs)("div",{className:"ablocks-component-popover__input-wrapper",children:[(0,L.jsx)("input",{type:"text",className:"ablocks-component-popover__input",value:u&&S?S.label:`${W?.fontFamily?.split(" ")[0]||"Default"}${W?.fontSize?`-${W.fontSize}${W?.fontSizeUnit||"px"}`:""}`,placeholder:(0,z.__)("Add…","ablocks"),readOnly:m, | |
| 464 | -title:m?fs.tN.typography:void 0,onChange:t=>{m||(t=>{e(t,"text")})(t.target.value)},onClick:()=>{m||u&&S||W?.fontFamily||W?.fontSize||w(!0)}}),(u&&S||W?.fontFamily||W?.fontSize)&&(0,L.jsx)("span",{className:"ablocks-component-popover__clear-button",onClick:()=>{l()},role:"presentation",children:"×"}),(0,L.jsx)("div",{className:"ablocks-component-popover__color-button"+(m?" ablocks-control--locked":""),title:m?fs.tN.typography:void 0,onClick:()=>{m||w()},role:"presentation",children:(0,L.jsx)(vc,{})})]})})})}),y&&!m&&(0,L.jsx)(Yt,{FigmaPasterComponent:m?void 0:({position:e="left"})=>(0,L.jsx)(ut,{position:e,figmaPasteBtnClickHandler:e=>{const o=ft(e,"typography");(0,P.ju)({cssObject:o,attributeValue:t,attributeName:n,setAttributes:s,deviceType:i})}}),label:(0,z.__)("Typography","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:j,isVisible:y,toggleVisible:T,anchorRef:H,children:C})]})]})},Rc={isResponsive:I().bool,showOnlyCustomFonts:I().bool,customFontsOption:I().object, | |
| 465 | -label:I().string,attributeName:I().string,attributeValue:I().any,onChangeHandler:I().func,showGlobal:I().bool},Sc=t=>{const{label:e="",isResponsive:i=!0,showOnlyCustomFonts:o=!1,customFontsOption:l={},attributeName:n,attributeValue:s,onChangeHandler:r,setAttributes:b,showGlobal:c=!0,attributes:d,inline:u=!1}=t,p=d?.[n+"Global"],m=(0,M.IO)(p),h=p&&m?m:s;(0,a.useEffect)(()=>{p&&!m&&b({[n+"Global"]:""})},[p,m,n,b]);const g=(0,P.tJ)(i),f=at(),y=(0,fs.qX)(),T=(0,fs.X6)(),[H,x]=(0,a.useState)(!1),k=(0,a.useRef)(null);return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control--typography",children:[e&&(0,L.jsx)("div",{className:"ablocks-control__label",children:(0,L.jsx)(ot,{label:e,isResponsive:!1})}),(0,L.jsxs)("div",{className:"ablocks-typography--btn-options",children:[(0,L.jsx)(_c,{isResponsive:i,deviceType:f,attributeName:n,attributeValue:h,changeHandler:(t,e)=>{if(!r){const i={[n]:(0,M.jI)(g,{...s,[e]:t}),[n+"Global"]:""};return b(i)}r(t,e)},resetHandler:()=>{b({[n]:g, | |
| 466 | -[n+"Global"]:""})},setAttributes:b,attributeDefaultValue:g,showOnlyCustomFonts:o,customFontsOption:l??{},globalId:p,inline:u,isLocked:T,isFamilyLocked:y}),c&&(0,L.jsx)("span",{role:"button",tabIndex:0,ref:k,className:"ablocks-icon ablocks-icon--globe "+(p?"active":""),onClick:()=>x(!H)}),c&&H&&(0,L.jsx)(Yt,{label:(0,z.__)("Global Fonts","ablocks"),isVisible:H,toggleVisible:x,anchorRef:k,children:(0,L.jsxs)("div",{className:"ablocks-popover__content",children:[M.W0?.global_typography?.map((t,e)=>(0,L.jsx)("div",{className:"ablocks-global-font-item "+(p===t.id?"active":""),children:(0,L.jsx)("span",{role:"button",tabIndex:0,className:"ablocks-global-font-button "+(p===t.id?"active":""),onClick:()=>{return e=t.id,b({[n]:g,[n+"Global"]:e}),void x(!1);var e},children:t.label||`Global Font ${e+1}`})},e)),!M.W0?.global_typography?.length&&(0,L.jsx)("p",{children:(0,z.__)("No global typography settings available","ablocks")})]})})]})]})};Sc.propTypes=Rc | |
| 467 | -;const Wc=Sc,Uc=window.wp.primitives,Pc=(0,L.jsx)(Uc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L.jsx)(Uc.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),jc=(0,L.jsx)(Uc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L.jsx)(Uc.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),wc=(0,L.jsx)(Uc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L.jsx)(Uc.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),zc=(0,L.jsx)(Uc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L.jsx)(Uc.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})}),Cc=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0, | |
| 468 | -z.__)("Align text justify","ablocks"),align:"justify"}],Ac=[{label:(0,z.__)("Highlighted Text","ablocks"),value:"highlighted"},{label:(0,z.__)("Rotating Text","ablocks"),value:"rotating"}],Lc=[{label:(0,z.__)("Circle","ablocks"),value:"highlighter-circle"},{label:(0,z.__)("Curly","ablocks"),value:"highlighter-curly"},{label:(0,z.__)("Underline","ablocks"),value:"highlighter-underline"},{label:(0,z.__)("Double","ablocks"),value:"highlighter-double"},{label:(0,z.__)("Double Underline","ablocks"),value:"highlighter-double-underline"},{label:(0,z.__)("Underline Zigzag","ablocks"),value:"highlighter-underline-zigzag"},{label:(0,z.__)("Diagonal","ablocks"),value:"highlighter-diagonal"},{label:(0,z.__)("Strikethrough","ablocks"),value:"highlighter-strikethrough"},{label:(0,z.__)("Crossed","ablocks"),value:"highlighter-crossed"}],Dc=t=>"highlighter-circle"===t?(0,L.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,L.jsx)("path",{fill:"none", | |
| 469 | -d:"M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"})}):"highlighter-curly"===t?(0,L.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,L.jsx)("path",{fill:"none",d:"M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"})}):"highlighter-underline"===t?(0,L.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,L.jsx)("path",{fill:"none",d:"M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"})}):"highlighter-double"===t?(0,L.jsxs)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,L.jsx)("path",{fill:"none", | |
| 470 | -d:"M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2"}),(0,L.jsx)("path",{fill:"none",d:"M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"})]}):"highlighter-double-underline"===t?(0,L.jsxs)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,L.jsx)("path",{fill:"none",d:"M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6"}),(0,L.jsx)("path",{fill:"none",d:"M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"})]}):"highlighter-underline-zigzag"===t?(0,L.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,L.jsx)("path",{fill:"none",d:"M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"})}):"highlighter-diagonal"===t?(0,L.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,L.jsx)("path",{fill:"none",d:"M13.5,15.5c131,13.7,289.3,55.5,475,125.5"}) | |
| 471 | -}):"highlighter-strikethrough"===t?(0,L.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,L.jsx)("path",{fill:"none",d:"M3,75h493.5"})}):"highlighter-crossed"===t?(0,L.jsxs)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,L.jsx)("path",{fill:"none",d:"M497.4,23.9C301.6,40,155.9,80.6,4,144.4"}),(0,L.jsx)("path",{fill:"none",d:"M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"})]}):(0,L.jsx)(L.Fragment,{}),Nc=[{label:(0,z.__)("Typing","ablocks"),value:"rotate-typing"},{label:(0,z.__)("Flip","ablocks"),value:"rotate-flip"},{label:(0,z.__)("Drop In","ablocks"),value:"rotate-drop-in"},{label:(0,z.__)("Swirl","ablocks"),value:"rotate-swirl"},{label:(0,z.__)("Slide","ablocks"),value:"rotate-slide"},{label:(0,z.__)("Sliding Down","ablocks"),value:"rotate-slide-down"}],Ic=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}];var Vc=i(14745);function Oc(t){ | |
| 472 | -const{attributes:e,setAttributes:i,context:o}=t,{isAnimated:a,heading:n,headingTag:s,alignment:r,typography:b,textShadow:c,textStroke:d,textColor:u,link:p,animationType:m,animationStyle:h,startingText:g,animatedText:f,endingText:y,highlightColor:T,highlightStrokeWidth:H,highlightDuration:M,isInfiniteLoop:x,animatedTextColor:k}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-heading-block/",children:(0,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Animated Heading","ablocks"),attributeValue:a,setAttributes:i,attributeName:"isAnimated"}),a?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Animation Type","ablocks"),isResponsive:!1,options:Ac,attributeName:"animationType",attributeValue:m,setAttributes:i}),(0,L.jsx)(Ut,{label:(0, | |
| 473 | -z.__)("Animation","ablocks"),isResponsive:!1,options:"highlighted"===m?Lc:Nc,attributeName:"animationStyle",attributeValue:h,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ql,{label:(0,z.__)("Starting Text","ablocks"),attributeName:"startingText",attributeValue:g,setAttributes:i,placeholder:(0,z.__)("Enter your starting text","ablocks"),isInline:!1,disableDynamicContent:!0}),"highlighted"===m?(0,L.jsx)(ql,{label:(0,z.__)("Animated Text","ablocks"),attributeName:"animatedText",attributeValue:f,setAttributes:i,placeholder:(0,z.__)("Enter your animated text","ablocks"),isInline:!1,disableDynamicContent:!0}):(0,L.jsx)(ae,{label:(0,z.__)("Animated Text","ablocks"),attributeName:"animatedText",attributeValue:f,setAttributes:i,placeholder:(0,z.__)("Enter your animated text","ablocks")}),(0,L.jsx)(ql,{label:(0,z.__)("Ending Text","ablocks"),attributeName:"endingText",attributeValue:y,setAttributes:i,placeholder:(0,z.__)("Enter your ending text","ablocks"),isInline:!1,disableDynamicContent:!0 | |
| 474 | -}),(0,L.jsx)(Nt,{}),(0,L.jsx)(js,{label:(0,z.__)("Duration(ms)","ablocks"),attributeName:"highlightDuration",attributeValue:M,setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Infinite Loop","ablocks"),attributeValue:x,setAttributes:i,attributeName:"isInfiniteLoop"})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"heading",attributeValue:n,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks"),context:o}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"headingTag",attributeValue:s,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,isInline:!1}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:p,setAttributes:i})]})]}),style:a?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Regular Text","ablocks"),attributeName:"textColor", | |
| 475 | -attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Animated Text","ablocks"),attributeName:"animatedTextColor",attributeValue:k,setAttributes:i}),"highlighted"==m?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Stroke Color","ablocks"),attributeName:"highlightColor",attributeValue:T,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"highlightStrokeWidth",attributeValue:H,setAttributes:i,isResponsive:!1,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:Ic,min:0,max:(v=H?.valueUnit||"px",{px:160,"%":100,vw:100,rem:100,em:100}[v]||160),step:.1,attributeDefaultValue:Vc.n,autoSyncRange:!1})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:b,setAttributes:i,isResponsive:!0}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1})]})]}):(0,L.jsxs)(L.Fragment,{ | |
| 476 | -children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:d,setAttributes:i,isResponsive:!0})]})})})})})});var v}function Yc(t){return(0,b.applyFilters)("ablocks.dynamic_content.richTextComponent",t)}const Xc={attributeValue:I().object,setAttributes:I().func,options:I().array},Bc=[{icon:Pc,title:(0,z.__)("Align left"),align:"left"},{icon:jc,title:(0,z.__)("Align center"),align:"center"},{icon:wc,title:(0,z.__)("Align right"),align:"right"}],Ec=t=>{const e=at(),{attributeValue:i={},setAttributes:o=()=>{},options:a=Bc}=t,l=i[`value${e}`]||"none";return(0, | |
| 477 | -L.jsx)(L.Fragment,{children:(0,L.jsx)(C.AlignmentControl,{value:l,alignmentControls:a,onChange:t=>{o({alignment:{...i,[`value${e}`]:t}})}})})};Ec.propTypes=Xc;const Fc=Ec,qc=(t,{value:e,before:i="",after:o="",fallback:a=""})=>{t(e?`${i}${e}${o}`:a)},$c=async({setLoading:t,request:e,onSuccess:i,onError:o=console.error})=>{try{t?.(!0);const o=await(0,M.In)(e),a=o?.data?.data||"";i?.(a)}catch(t){o(t)}finally{t?.(!1)}},Gc=(t,e)=>{const i=(0,r.select)("ablocks/dynamic-content-store")?.getPostMetaRelations();return i?.[t]?.[e]?.value},Zc=({attributeValue:t="",context:e={}})=>{const[i,o]=(0,a.useState)(t),[l,n]=(0,a.useState)(!1),s=e?.postId||(0,r.select)("core/editor")?.getCurrentPostId(),b=e?.postType,c=(0, | |
| 478 | -M.hW)(t||""),{isDynamicByNewSolution:d,source:u,source_type:p,source_id:m,group_item:h,before:g="",after:f="",fallback:y="",excerptWords:T,taxonomy:H,termsSeparator:x=", ",metaKey:k,authorMetaKey:v,numberOfTopics:_,numberOfReviews:R,totalDuration:S,numberOfEnrolled:W}=c||{},U=!u||["current","post-type"].includes(u)?"postType":u,P=b||p,j=s||m,{record:w,isResolving:z,hasResolved:C}=(0,ge.useEntityRecord)(U,P,j),A=(0,a.useCallback)(()=>{if(!H)return;const t=((t,e)=>{const i=(0,r.select)("ablocks/dynamic-content-store")?.getPostTermsRelations();return i?.[t]?.[e]})(j,H);if(t)return qc(o,{value:t.map(t=>t.name).join(x),before:g,after:f,fallback:y});$c({setLoading:n,request:{action:"ablocks/get_terms_for_post",post_id:j,taxonomy:H},onSuccess:t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostTermsRelations(j,H,t),qc(o,{value:t.map(t=>t.name).join(x),before:g,after:f,fallback:y})}})},[H,j,x,g,f,y]),L=(0,a.useCallback)(()=>{if(!k)return qc(o,{value:"",before:g,after:f,fallback:y}) | |
| 479 | -;const t=Gc(j,k);if(void 0!==t)return qc(o,{value:t,before:g,after:f,fallback:y});$c({setLoading:n,request:{action:"ablocks/get_post_meta",post_id:j,meta_key:k},onSuccess:t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[k]:{value:t,isRequestBeingProcessed:!1}}),qc(o,{value:t,before:g,after:f,fallback:y})}})},[k,j,g,f,y]),D=(0,a.useCallback)(()=>{if(!v)return qc(o,{value:"",before:g,after:f,fallback:y});const t=w?.author,e=((t,e)=>{const i=(0,r.select)("ablocks/dynamic-content-store")?.getAuthorsMeta();return i?.[t]?.[e]})(t,v);if(void 0!==e)return qc(o,{value:e,before:g,after:f,fallback:y});$c({setLoading:n,request:{action:"ablocks/get_author_meta",author_id:t,meta_key:v},onSuccess:e=>{(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsMeta({authorID:t,[v]:e,isRequestBeingProcessed:!1}),qc(o,{value:e,before:g,after:f,fallback:y})}})},[v,w?.author,g,f,y]),N=(0,a.useCallback)(t=>{if(void 0!==Gc(j,t))return qc(o,{value:t,before:g,after:f,fallback:y}) | |
| 480 | -;$c({setLoading:n,request:{action:"ablocks/get_academy_course_data",post_id:j,meta_key:t},onSuccess:e=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[t]:{value:e,isRequestBeingProcessed:!1}}),qc(o,{value:e,before:g,after:f,fallback:y})}})},[_,R,W,S,g,f,y]),I=(0,a.useCallback)(()=>{const t=(0,r.select)("core").getEntityRecord("postType",b,s)?.featured_media||(0,r.select)("core/editor")?.getEditedPostAttribute("featured_media");if(!t)return qc(o,{value:M.hq+"assets/images/Placeholder-Loop.svg",before:g,after:f,fallback:y}),void n(!1);(0,r.resolveSelect)("core").getMedia(t).then(t=>qc(o,{value:t?.source_url||"",before:g,after:f,fallback:y})).catch(console.error).finally(()=>n(!1))},[s,b,g,f,y]);return(0,a.useEffect)(()=>{if(d)switch(u){case"site-tagline":case"site-title":n(!0),(0,r.resolveSelect)("core").getSite().then(t=>{qc(o,{value:"site-tagline"===u?t?.description:t?.title,before:g,after:f,fallback:y})}).catch(console.error).finally(()=>n(!1));break | |
| 481 | -;case"current-date-time":{const t=(0,M.BP)({dynamicAttributeValue:c});qc(o,{value:t,before:g,after:f,fallback:y});break}case"image":"featured-image"===h&&I();break;default:if("postType"===U&&w&&C&&!z){let t="";switch(h){case"post-title":t=w?.title?.rendered;break;case"post-id":t=w?.id;break;case"post-excerpt":{const e=w?.excerpt?.rendered||"";t=T?e.split(" ").slice(0,T).join(" "):e;break}case"post-custom-field":return void L();case"post-terms":return void A();case"author-meta":return void D();case"numberOfTopics":return void N("numberOfTopics");case"totalDuration":return void N("totalDuration");case"numberOfReviews":return void N("numberOfReviews");case"numberOfEnrolled":return void N("numberOfEnrolled")}qc(o,{value:t,before:g,after:f,fallback:y})}}},[d,U,C,z,c]),{isDynamicEnabled:t?.startsWith("ablocks_dc:"),data:i,isProcessingData:l}},Kc={UU:"ablocks/heading",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isAnimated:{type:"boolean",default:!1}, | |
| 482 | -heading:{type:"string",source:"html",selector:".ablocks-heading-text"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:""},animationType:{type:"string",default:"highlighted"},animationStyle:{type:"string",default:"highlighter-circle"},startingText:{type:"string",default:""},animatedText:{type:"string",default:"Animated"},endingText:{type:"string",default:""},highlightColor:{type:"string",default:"#ff000e"},highlightDuration:{type:"number",default:2e3},isInfiniteLoop:{type:"boolean",default:!0},highlightDelay:{type:"number",default:1e3},animatedTextColor:{type:"string",default:""},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:"", | |
| 483 | -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:""}},highlightStrokeWidth:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"", | |
| 460 | +(0,L.__)("%s (Theme)","ablocks"),t.label):t.label,google:!1})),[]),S=u?M.W0?.global_typography?.find(t=>t.id===u):null,W=u&&S?(P=S.value)?{...P,weight:P.weight?String(P.weight):P.weight}:P:t;var P;const j=()=>{l()};(0,a.useEffect)(()=>{const{fontFamily:e,weight:i}=t||{};if(v[e]){const o=v[e]?.variants;if(i&&!o.includes(i)){const e={...t,weight:"400"};s({[n]:e})}const a=g.every((t,e)=>t.value===o[e]);if(a)return Sc;const l=g.filter(t=>o.includes(t.value));f(l)}else{if(JSON.stringify(g)===JSON.stringify(U.Wy))return Sc;f(U.Wy)}},[t?.fontFamily,t?.weight,g,v]);const w=(t=!1)=>{T(e=>t||!e)},z=(0,I.jsxs)("div",{className:"ablocks-popover__content",children:[(0,I.jsx)(Ut,{options:c?d.families:[..._c,...R,..._],label:(0,L.__)("Family","ablocks"),attributeObjectKey:"fontFamily",attributeValue:t,attributeName:n,setAttributes:s,disabled:h,isSearch:!0}),h&&(0,I.jsx)("p",{className:"ablocks-control__lock-note",children:Ms.tN.family}),(0,I.jsx)(_t,{isResponsive:o,attributeName:n,attributeValue:W, | |
| 461 | +setAttributes:s,attributeObjectKey:"fontSize",onChangeHandler:e,label:(0,L.__)("Size","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,I.jsx)(Ut,{options:g,label:(0,L.__)("Weight","ablocks"),attributeObjectKey:"weight",attributeValue:W,attributeName:n,setAttributes:s}),(0,I.jsx)(Ut,{label:(0,L.__)("Transform","ablocks"),options:U.pd,attributeObjectKey:"transform",attributeValue:W,attributeName:n,setAttributes:s}),(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:U.iF,attributeObjectKey:"style",attributeValue:W,attributeName:n,setAttributes:s}),(0,I.jsx)(Ut,{label:(0,L.__)("Decoration","ablocks"),options:U.H8,attributeObjectKey:"decoration",attributeValue:W,attributeName:n,setAttributes:s}),(0,I.jsx)(_t,{isResponsive:o,attributeName:n,attributeValue:W,setAttributes:s,attributeObjectKey:"lineHeight",onChangeHandler:e,label:(0, | |
| 462 | +L.__)("Line-Height","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,I.jsx)(_t,{isResponsive:o,attributeName:n,attributeValue:W,setAttributes:s,attributeObjectKey:"letterSpacing",onChangeHandler:e,label:(0,L.__)("Letter Spacing","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,I.jsx)(_t,{isResponsive:o,attributeName:n,attributeValue:W,setAttributes:s,attributeObjectKey:"wordSpacing",onChangeHandler:e,label:(0,L.__)("Word spacing","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0})]});return p?(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--typography-inline",children:[(0,I.jsxs)("div",{ | |
| 463 | +className:"ablocks-typography-inline__head",children:[r&&(0,I.jsx)(at,{label:r,isResponsive:!1}),(0,I.jsx)("button",{type:"button",className:"ablocks-typography-inline__reset",onClick:j,children:(0,L.__)("Reset","ablocks")})]}),z]}):(0,I.jsxs)("div",{children:[r&&(0,I.jsx)("div",{className:"ablocks-control-label",children:(0,I.jsx)(at,{label:r,isResponsive:!1})}),(0,I.jsxs)("div",{className:"ablocks-control-color-gradient",children:[(0,I.jsx)("div",{className:"ablocks-component-popover",children:(0,I.jsx)("div",{className:"ablocks-component-popover__field",children:(0,I.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:H,children:(0,I.jsxs)("div",{className:"ablocks-component-popover__input-wrapper",children:[(0,I.jsx)("input",{type:"text",className:"ablocks-component-popover__input",value:u&&S?S.label:`${W?.fontFamily?.split(" ")[0]||"Default"}${W?.fontSize?`-${W.fontSize}${W?.fontSizeUnit||"px"}`:""}`,placeholder:(0,L.__)("Add…","ablocks"),readOnly:m, | |
| 464 | +title:m?Ms.tN.typography:void 0,onChange:t=>{m||(t=>{e(t,"text")})(t.target.value)},onClick:()=>{m||u&&S||W?.fontFamily||W?.fontSize||w(!0)}}),(u&&S||W?.fontFamily||W?.fontSize)&&(0,I.jsx)("span",{className:"ablocks-component-popover__clear-button",onClick:()=>{l()},role:"presentation",children:"×"}),(0,I.jsx)("div",{className:"ablocks-component-popover__color-button"+(m?" ablocks-control--locked":""),title:m?Ms.tN.typography:void 0,onClick:()=>{m||w()},role:"presentation",children:(0,I.jsx)(Wc,{})})]})})})}),y&&!m&&(0,I.jsx)(Xt,{FigmaPasterComponent:m?void 0:({position:e="left"})=>(0,I.jsx)(pt,{position:e,figmaPasteBtnClickHandler:e=>{const o=yt(e,"typography");(0,U.ju)({cssObject:o,attributeValue:t,attributeName:n,setAttributes:s,deviceType:i})}}),label:(0,L.__)("Typography","ablocks"),isShowPrimaryLabel:!1,isReset:!0,handleReset:j,isVisible:y,toggleVisible:T,anchorRef:H,children:z})]})]})},Uc={isResponsive:Y().bool,showOnlyCustomFonts:Y().bool,customFontsOption:Y().object, | |
| 465 | +label:Y().string,attributeName:Y().string,attributeValue:Y().any,onChangeHandler:Y().func,showGlobal:Y().bool},jc=t=>{const{label:e="",isResponsive:i=!0,showOnlyCustomFonts:o=!1,customFontsOption:l={},attributeName:n,attributeValue:s,onChangeHandler:r,setAttributes:b,showGlobal:c=!0,attributes:d,inline:u=!1}=t,p=d?.[n+"Global"],m=(0,M.IO)(p),h=p&&m?m:s;(0,a.useEffect)(()=>{p&&!m&&b({[n+"Global"]:""})},[p,m,n,b]);const g=(0,U.tJ)(i),f=lt(),y=(0,Ms.qX)(),T=(0,Ms.X6)(),[H,x]=(0,a.useState)(!1),k=(0,a.useRef)(null);return(0,I.jsxs)("div",{className:"ablocks-control ablocks-control--typography",children:[e&&(0,I.jsx)("div",{className:"ablocks-control__label",children:(0,I.jsx)(at,{label:e,isResponsive:!1})}),(0,I.jsxs)("div",{className:"ablocks-typography--btn-options",children:[(0,I.jsx)(Pc,{isResponsive:i,deviceType:f,attributeName:n,attributeValue:h,changeHandler:(t,e)=>{if(!r){const i={[n]:(0,M.jI)(g,{...s,[e]:t}),[n+"Global"]:""};return b(i)}r(t,e)},resetHandler:()=>{b({[n]:g, | |
| 466 | +[n+"Global"]:""})},setAttributes:b,attributeDefaultValue:g,showOnlyCustomFonts:o,customFontsOption:l??{},globalId:p,inline:u,isLocked:T,isFamilyLocked:y}),c&&(0,I.jsx)("span",{role:"button",tabIndex:0,ref:k,className:"ablocks-icon ablocks-icon--globe "+(p?"active":""),onClick:()=>x(!H)}),c&&H&&(0,I.jsx)(Xt,{label:(0,L.__)("Global Fonts","ablocks"),isVisible:H,toggleVisible:x,anchorRef:k,children:(0,I.jsxs)("div",{className:"ablocks-popover__content",children:[M.W0?.global_typography?.map((t,e)=>(0,I.jsx)("div",{className:"ablocks-global-font-item "+(p===t.id?"active":""),children:(0,I.jsx)("span",{role:"button",tabIndex:0,className:"ablocks-global-font-button "+(p===t.id?"active":""),onClick:()=>{return e=t.id,b({[n]:g,[n+"Global"]:e}),void x(!1);var e},children:t.label||`Global Font ${e+1}`})},e)),!M.W0?.global_typography?.length&&(0,I.jsx)("p",{children:(0,L.__)("No global typography settings available","ablocks")})]})})]})]})};jc.propTypes=Uc | |
| 467 | +;const wc=jc,zc=window.wp.primitives,Cc=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),Ac=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),Lc=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),Dc=(0,I.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I.jsx)(zc.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})}),Nc=[{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, | |
| 468 | +L.__)("Align text justify","ablocks"),align:"justify"}],Ic=[{label:(0,L.__)("Highlighted Text","ablocks"),value:"highlighted"},{label:(0,L.__)("Rotating Text","ablocks"),value:"rotating"}],Vc=[{label:(0,L.__)("Circle","ablocks"),value:"highlighter-circle"},{label:(0,L.__)("Curly","ablocks"),value:"highlighter-curly"},{label:(0,L.__)("Underline","ablocks"),value:"highlighter-underline"},{label:(0,L.__)("Double","ablocks"),value:"highlighter-double"},{label:(0,L.__)("Double Underline","ablocks"),value:"highlighter-double-underline"},{label:(0,L.__)("Underline Zigzag","ablocks"),value:"highlighter-underline-zigzag"},{label:(0,L.__)("Diagonal","ablocks"),value:"highlighter-diagonal"},{label:(0,L.__)("Strikethrough","ablocks"),value:"highlighter-strikethrough"},{label:(0,L.__)("Crossed","ablocks"),value:"highlighter-crossed"}],Oc=t=>"highlighter-circle"===t?(0,I.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,I.jsx)("path",{fill:"none", | |
| 469 | +d:"M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"})}):"highlighter-curly"===t?(0,I.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,I.jsx)("path",{fill:"none",d:"M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"})}):"highlighter-underline"===t?(0,I.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,I.jsx)("path",{fill:"none",d:"M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"})}):"highlighter-double"===t?(0,I.jsxs)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,I.jsx)("path",{fill:"none", | |
| 470 | +d:"M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2"}),(0,I.jsx)("path",{fill:"none",d:"M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"})]}):"highlighter-double-underline"===t?(0,I.jsxs)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,I.jsx)("path",{fill:"none",d:"M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6"}),(0,I.jsx)("path",{fill:"none",d:"M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"})]}):"highlighter-underline-zigzag"===t?(0,I.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,I.jsx)("path",{fill:"none",d:"M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"})}):"highlighter-diagonal"===t?(0,I.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,I.jsx)("path",{fill:"none",d:"M13.5,15.5c131,13.7,289.3,55.5,475,125.5"}) | |
| 471 | +}):"highlighter-strikethrough"===t?(0,I.jsx)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,I.jsx)("path",{fill:"none",d:"M3,75h493.5"})}):"highlighter-crossed"===t?(0,I.jsxs)("svg",{viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,I.jsx)("path",{fill:"none",d:"M497.4,23.9C301.6,40,155.9,80.6,4,144.4"}),(0,I.jsx)("path",{fill:"none",d:"M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"})]}):(0,I.jsx)(I.Fragment,{}),Yc=[{label:(0,L.__)("Typing","ablocks"),value:"rotate-typing"},{label:(0,L.__)("Flip","ablocks"),value:"rotate-flip"},{label:(0,L.__)("Drop In","ablocks"),value:"rotate-drop-in"},{label:(0,L.__)("Swirl","ablocks"),value:"rotate-swirl"},{label:(0,L.__)("Slide","ablocks"),value:"rotate-slide"},{label:(0,L.__)("Sliding Down","ablocks"),value:"rotate-slide-down"}],Xc=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}];var Bc=i(14745) | |
| 472 | +;const Ec=St.filter(t=>/^h[1-6]$/.test(t.value)),Fc=Zt.gh.filter(t=>"justify"!==t.value);function qc(t){const{attributes:e,setAttributes:i,context:o}=t,{isAnimated:a,heading:n,headingTag:s,alignment:r,typography:b,textShadow:c,textStroke:d,textColor:u,link:p,animationType:m,animationStyle:h,startingText:g,animatedText:f,endingText:y,highlightColor:T,highlightStrokeWidth:H,highlightDuration:M,isInfiniteLoop:x,animatedTextColor:k}=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-heading-block/",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)(Ot,{isResponsive:!1,label:(0,L.__)("Animated Heading","ablocks"),attributeValue:a,setAttributes:i,attributeName:"isAnimated"}),a?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Animation Type","ablocks"),isResponsive:!1, | |
| 473 | +options:Ic,attributeName:"animationType",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Animation","ablocks"),isResponsive:!1,options:"highlighted"===m?Vc:Yc,attributeName:"animationStyle",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),isResponsive:!1,options:Ec,attributeName:"headingTag",attributeValue:s,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:Fc,attributeName:"alignment",attributeValue:r,setAttributes:i,isInline:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(Kl,{label:(0,L.__)("Starting Text","ablocks"),attributeName:"startingText",attributeValue:g,setAttributes:i,placeholder:(0,L.__)("Enter your starting text","ablocks"),isInline:!1,disableDynamicContent:!0}),"highlighted"===m?(0,I.jsx)(Kl,{label:(0,L.__)("Animated Text","ablocks"),attributeName:"animatedText",attributeValue:f,setAttributes:i,placeholder:(0,L.__)("Enter your animated text","ablocks"),isInline:!1,disableDynamicContent:!0}):(0,I.jsx)(le,{ | |
| 474 | +label:(0,L.__)("Animated Text","ablocks"),attributeName:"animatedText",attributeValue:f,setAttributes:i,placeholder:(0,L.__)("Enter your animated text","ablocks")}),(0,I.jsx)(Kl,{label:(0,L.__)("Ending Text","ablocks"),attributeName:"endingText",attributeValue:y,setAttributes:i,placeholder:(0,L.__)("Enter your ending text","ablocks"),isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(As,{label:(0,L.__)("Duration(ms)","ablocks"),attributeName:"highlightDuration",attributeValue:M,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Infinite Loop","ablocks"),attributeValue:x,setAttributes:i,attributeName:"isInfiniteLoop"})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"heading",attributeValue:n,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks"),context:o}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"headingTag",attributeValue:s, | |
| 475 | +setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,isInline:!1}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:p,setAttributes:i})]})]}),style:a?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Regular Text","ablocks"),attributeName:"textColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Animated Text","ablocks"),attributeName:"animatedTextColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),"highlighted"===m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Stroke Color","ablocks"),attributeName:"highlightColor",attributeValue:T,setAttributes:i | |
| 476 | +}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"highlightStrokeWidth",attributeValue:H,setAttributes:i,isResponsive:!1,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:Xc,min:0,max:(v=H?.valueUnit||"px",{px:160,"%":100,vw:100,rem:100,em:100}[v]||160),step:.1,attributeDefaultValue:Bc.n,autoSyncRange:!1})]})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:d,setAttributes:i,isResponsive:!0})]})})})})})});var v}function $c(t){return(0,b.applyFilters)("ablocks.dynamic_content.richTextComponent",t)} | |
| 477 | +const Gc={attributeValue:Y().object,setAttributes:Y().func,options:Y().array},Zc=[{icon:Cc,title:(0,L.__)("Align left"),align:"left"},{icon:Ac,title:(0,L.__)("Align center"),align:"center"},{icon:Lc,title:(0,L.__)("Align right"),align:"right"}],Kc=t=>{const e=lt(),{attributeValue:i={},setAttributes:o=()=>{},options:a=Zc}=t,l=i[`value${e}`]||"none";return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(D.AlignmentControl,{value:l,alignmentControls:a,onChange:t=>{o({alignment:{...i,[`value${e}`]:t}})}})})};Kc.propTypes=Gc;const Jc=Kc,Qc=(t,{value:e,before:i="",after:o="",fallback:a=""})=>{t(e?`${i}${e}${o}`:a)},td=async({setLoading:t,request:e,onSuccess:i,onError:o=console.error})=>{try{t?.(!0);const o=await(0,M.In)(e),a=o?.data?.data||"";i?.(a)}catch(t){o(t)}finally{t?.(!1)}},ed=(t,e)=>{const i=(0,r.select)("ablocks/dynamic-content-store")?.getPostMetaRelations();return i?.[t]?.[e]?.value},id=({attributeValue:t="",context:e={}})=>{const[i,o]=(0,a.useState)(t),[l,n]=(0, | |
| 478 | +a.useState)(!1),s=e?.postId||(0,r.select)("core/editor")?.getCurrentPostId(),b=e?.postType,c=(0,M.hW)(t||""),{isDynamicByNewSolution:d,source:u,source_type:p,source_id:m,group_item:h,before:g="",after:f="",fallback:y="",excerptWords:T,taxonomy:H,termsSeparator:x=", ",metaKey:k,authorMetaKey:v,numberOfTopics:_,numberOfReviews:R,totalDuration:S,numberOfEnrolled:W}=c||{},P=!u||["current","post-type"].includes(u)?"postType":u,U=b||p,j=s||m,{record:w,isResolving:z,hasResolved:C}=(0,zl.useEntityRecord)(P,U,j),A=(0,a.useCallback)(()=>{if(!H)return;const t=((t,e)=>{const i=(0,r.select)("ablocks/dynamic-content-store")?.getPostTermsRelations();return i?.[t]?.[e]})(j,H);if(t)return Qc(o,{value:t.map(t=>t.name).join(x),before:g,after:f,fallback:y});td({setLoading:n,request:{action:"ablocks/get_terms_for_post",post_id:j,taxonomy:H},onSuccess:t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostTermsRelations(j,H,t),Qc(o,{value:t.map(t=>t.name).join(x),before:g,after:f,fallback:y})}}) | |
| 479 | +},[H,j,x,g,f,y]),L=(0,a.useCallback)(()=>{if(!k)return Qc(o,{value:"",before:g,after:f,fallback:y});const t=ed(j,k);if(void 0!==t)return Qc(o,{value:t,before:g,after:f,fallback:y});td({setLoading:n,request:{action:"ablocks/get_post_meta",post_id:j,meta_key:k},onSuccess:t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[k]:{value:t,isRequestBeingProcessed:!1}}),Qc(o,{value:t,before:g,after:f,fallback:y})}})},[k,j,g,f,y]),D=(0,a.useCallback)(()=>{if(!v)return Qc(o,{value:"",before:g,after:f,fallback:y});const t=w?.author,e=((t,e)=>{const i=(0,r.select)("ablocks/dynamic-content-store")?.getAuthorsMeta();return i?.[t]?.[e]})(t,v);if(void 0!==e)return Qc(o,{value:e,before:g,after:f,fallback:y});td({setLoading:n,request:{action:"ablocks/get_author_meta",author_id:t,meta_key:v},onSuccess:e=>{(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsMeta({authorID:t,[v]:e,isRequestBeingProcessed:!1}),Qc(o,{value:e,before:g,after:f,fallback:y})}}) | |
| 480 | +},[v,w?.author,g,f,y]),N=(0,a.useCallback)(t=>{if(void 0!==ed(j,t))return Qc(o,{value:t,before:g,after:f,fallback:y});td({setLoading:n,request:{action:"ablocks/get_academy_course_data",post_id:j,meta_key:t},onSuccess:e=>{(0,r.dispatch)("ablocks/dynamic-content-store").setPostMetaRelations(j,{[t]:{value:e,isRequestBeingProcessed:!1}}),Qc(o,{value:e,before:g,after:f,fallback:y})}})},[_,R,W,S,g,f,y]),I=(0,a.useCallback)(()=>{const t=(0,r.select)("core").getEntityRecord("postType",b,s)?.featured_media||(0,r.select)("core/editor")?.getEditedPostAttribute("featured_media");if(!t)return Qc(o,{value:M.hq+"assets/images/Placeholder-Loop.svg",before:g,after:f,fallback:y}),void n(!1);(0,r.resolveSelect)("core").getMedia(t).then(t=>Qc(o,{value:t?.source_url||"",before:g,after:f,fallback:y})).catch(console.error).finally(()=>n(!1))},[s,b,g,f,y]);return(0,a.useEffect)(()=>{if(d)switch(u){case"site-tagline":case"site-title":n(!0),(0,r.resolveSelect)("core").getSite().then(t=>{Qc(o,{ | |
| 481 | +value:"site-tagline"===u?t?.description:t?.title,before:g,after:f,fallback:y})}).catch(console.error).finally(()=>n(!1));break;case"current-date-time":{const t=(0,M.BP)({dynamicAttributeValue:c});Qc(o,{value:t,before:g,after:f,fallback:y});break}case"image":"featured-image"===h&&I();break;default:if("postType"===P&&w&&C&&!z){let t="";switch(h){case"post-title":t=w?.title?.rendered;break;case"post-id":t=w?.id;break;case"post-excerpt":{const e=w?.excerpt?.rendered||"";t=T?e.split(" ").slice(0,T).join(" "):e;break}case"post-custom-field":return void L();case"post-terms":return void A();case"author-meta":return void D();case"numberOfTopics":return void N("numberOfTopics");case"totalDuration":return void N("totalDuration");case"numberOfReviews":return void N("numberOfReviews");case"numberOfEnrolled":return void N("numberOfEnrolled")}Qc(o,{value:t,before:g,after:f,fallback:y})}}},[d,P,C,z,c]),{isDynamicEnabled:t?.startsWith("ablocks_dc:"),data:i,isProcessingData:l}},od={UU:"ablocks/heading", | |
| 482 | +uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isAnimated:{type:"boolean",default:!1},heading:{type:"string",source:"html",selector:".ablocks-heading-text"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:""},animationType:{type:"string",default:"highlighted"},animationStyle:{type:"string",default:"highlighter-circle"},startingText:{type:"string",default:""},animatedText:{type:"string",default:"Animated"},endingText:{type:"string",default:""},highlightColor:{type:"string",default:"#ff000e"},highlightDuration:{type:"number",default:2e3},isInfiniteLoop:{type:"boolean",default:!0},highlightDelay:{type:"number",default:1e3},animatedTextColor:{type:"string",default:""},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:"", | |
| 483 | +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:""}},highlightStrokeWidth:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 484 | +_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:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 485 | +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:"", | |
| 486 | +leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{ | |
| 487 | +backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"", | |
| 488 | +imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"", | |
| 489 | +rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"", | |
| 490 | +rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px", | |
| 491 | +scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}}, | |
| 492 | +_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},ad=class{constructor(t,e){t&&(this.element=t,this.texts=this.element.querySelectorAll(".ablocks-dynamic-text"),this.index=0,this.intervalId=null,this.isLoop="true"===e.isloop||!0===e.isloop,this.highlightDuration=parseInt(e.duration)||2e3,0!==this.texts.length&&(this.texts[0].classList.add("ablocks-dynamic-text-active"),setTimeout(()=>{this.texts.forEach((t,e)=>{0===e?t.classList.add("ablocks-dynamic-text-active"):t.classList.remove("ablocks-dynamic-text-active")})},100),this.startRotation(),this.onVisibilityChange=this.handleVisibilityChange.bind(this),document.addEventListener("visibilitychange",this.onVisibilityChange)))}startRotation(){this.stopRotation(), | |
| 493 | +this.intervalId=setInterval(()=>{this.index!==this.texts.length-1||this.isLoop?(this.texts[this.index].classList.remove("ablocks-dynamic-text-active"),this.index++,this.index>=this.texts.length&&this.isLoop&&(this.index=0),this.texts[this.index].classList.add("ablocks-dynamic-text-active")):this.stopRotation()},this.highlightDuration)}stopRotation(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}destroy(){this.stopRotation(),this.onVisibilityChange&&(document.removeEventListener("visibilitychange",this.onVisibilityChange),this.onVisibilityChange=null)}handleVisibilityChange(){document.hidden?this.stopRotation():this.startRotation()}},ld=class{constructor(t,e){t&&(this.element=t,this.texts=t.querySelectorAll(".ablocks-dynamic-text"),this.currentIndex=0,this.isLoop="true"===e.isloop||!0===e.isloop,this.highlightDuration=parseInt(e.duration)||2e3,this.timeoutId=null,0!==this.texts.length&&(this.texts.forEach(t=>t.classList.remove("ablocks-headline-text-active")), | |
| 494 | +this.showNextText(),this.onVisibilityChange=this.handleVisibilityChange.bind(this),document.addEventListener("visibilitychange",this.onVisibilityChange)))}showNextText(){this.stopRotation(),this.texts.forEach(t=>{t.classList.remove("ablocks-headline-text-active"),t.querySelectorAll(".ablocks-dynamic-letter").forEach(t=>{t.classList.remove("ablocks-animation-in","ablocks-typing-caret")})});const t=this.texts[this.currentIndex],e=Array.from(t.querySelectorAll(".ablocks-dynamic-letter")).filter(t=>""!==t.textContent);e.length>0?this.typeSpeed=.6*this.highlightDuration/e.length:this.typeSpeed=this.highlightDuration;let i=0;this.typeInterval=setInterval(()=>{i<e.length?(e[i-1]?.classList.remove("ablocks-typing-caret"),e[i].classList.add("ablocks-animation-in","ablocks-typing-caret"),i++):(clearInterval(this.typeInterval),this.typeInterval=null)},this.typeSpeed),t.classList.add("ablocks-headline-text-active"), | |
| 495 | +this.currentIndex===this.texts.length-1&&!this.isLoop||(this.currentIndex=(this.currentIndex+1)%this.texts.length,this.timeoutId=setTimeout(()=>this.showNextText(),this.highlightDuration))}stopRotation(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.typeInterval&&(clearInterval(this.typeInterval),this.typeInterval=null)}destroy(){this.stopRotation(),this.onVisibilityChange&&(document.removeEventListener("visibilitychange",this.onVisibilityChange),this.onVisibilityChange=null)}handleVisibilityChange(){document.hidden?this.stopRotation():this.showNextText()}},nd=class{constructor(t,e){t&&(this.element=t,this.texts=t.querySelectorAll(".ablocks-dynamic-text"),this.currentIndex=0,this.isLoop="true"===e.isloop||!0===e.isloop,this.highlightDuration=parseInt(e.duration)||2e3,this.timeoutId=null,0!==this.texts.length&&(this.texts.forEach(t=>t.classList.remove("ablocks-headline-text-active")),this.showNextText(), | |
| 496 | +this.onVisibilityChange=this.handleVisibilityChange.bind(this),document.addEventListener("visibilitychange",this.onVisibilityChange)))}showNextText(){this.stopRotation(),this.texts.forEach(t=>{t.classList.remove("ablocks-headline-text-active"),t.querySelectorAll(".ablocks-dynamic-letter").forEach(t=>{t.classList.remove("ablocks-animation-in"),t.offsetWidth})});const t=this.texts[this.currentIndex],e=Array.from(t.querySelectorAll(".ablocks-dynamic-letter")).filter(t=>""!==t.textContent);e.length>0?this.typeSpeed=.6*this.highlightDuration/e.length:this.typeSpeed=this.highlightDuration;let i=0;this.typeInterval=setInterval(()=>{i<e.length?(e[i].classList.add("ablocks-animation-in"),i++):(clearInterval(this.typeInterval),this.typeInterval=null)},this.typeSpeed),t.classList.add("ablocks-headline-text-active"),this.currentIndex===this.texts.length-1&&!this.isLoop||(this.currentIndex=(this.currentIndex+1)%this.texts.length, | |
| 497 | +this.timeoutId=setTimeout(()=>this.showNextText(),this.highlightDuration))}stopRotation(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.typeInterval&&(clearInterval(this.typeInterval),this.typeInterval=null)}destroy(){this.stopRotation(),this.onVisibilityChange&&(document.removeEventListener("visibilitychange",this.onVisibilityChange),this.onVisibilityChange=null)}handleVisibilityChange(){document.hidden?this.stopRotation():this.showNextText()}};function sd(t){const{attributes:e,context:i,setAttributes:o}=t,{block_id:n,headingTag:r,alignment:b,heading:c,link:d,isAnimated:u,startingText:p,animatedText:m,endingText:h,animationType:g,animationStyle:f,isInfiniteLoop:y,highlightDuration:T}=e,{isDynamicEnabled:H,data:x}=id({attributeValue:p}),{isDynamicEnabled:k,data:v}=id({attributeValue:m}),{isDynamicEnabled:_,data:R}=id({attributeValue:h}),S=(0,a.useRef)(null);(0,a.useEffect)(()=>{const t=()=>{const t=S.current | |
| 498 | +;t?.destroy?t.destroy():t?.stopRotation&&t.stopRotation(),S.current=null},e=(0,M.bu)(`.ablocks-block-${n} `);if(e){const i=e.querySelector(".ablocks-animated-text");if(t(),!u||!i)return()=>{};i.querySelectorAll(".ablocks-dynamic-text").forEach(t=>{t.classList.remove("ablocks-dynamic-text-active")}),i.offsetWidth,setTimeout(()=>{const t=i.querySelector(".ablocks-dynamic-text");t&&t.classList.add("ablocks-dynamic-text-active")},50),["rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide"].includes(f)&&(S.current=new ad(i,{isloop:y,duration:T})),["rotate-typing"].includes(f)&&(S.current=new ld(i,{isloop:y,duration:T})),["rotate-swirl"].includes(f)&&(S.current=new nd(i,{isloop:y,duration:T}))}return t},[n,u,m,g,f,y,T,r]);const[W,P]=(0,a.useState)("highlighter-circle"),[U,j]=(0,a.useState)("rotate-typing"),[w,z]=(0,a.useState)("Animated Text"),[C,A]=(0,a.useState)("Animated\nText\nare\nAwesome"),N=(0,a.useRef)(u),V=(0,a.useRef)({animationType:g,animationStyle:f});(0, | |
| 499 | +a.useEffect)(()=>{N.current!==u&&(N.current=u,u?o({heading:""}):(o({animationType:"highlighted",animationStyle:"highlighter-circle",startingText:"",animatedText:"Animated",endingText:"",highlightColor:"#ff000e",highlightDuration:2e3,isInfiniteLoop:!0,highlightDelay:1e3,animatedTextColor:""}),P("highlighter-circle"),j("rotate-typing"),z("Animated Text"),A("Animated\nText\nare\nAwesome")))},[u]),(0,a.useEffect)(()=>{"highlighted"!==g||["highlighter-circle","highlighter-curly","highlighter-underline","highlighter-double","highlighter-double-underline","highlighter-underline-zigzag","highlighter-diagonal","highlighter-strikethrough","highlighter-crossed"].includes(f)?"rotating"!==g||["rotate-typing","rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide","rotate-swirl"].includes(f)||o({animationStyle:U}):o({animationStyle:W})},[g]),(0,a.useEffect)(()=>{"highlighted"===g?P(f):"rotating"===g&&j(f);const t=V.current | |
| 500 | +;t.animationType===g&&t.animationStyle===f||(V.current={animationType:g,animationStyle:f},"highlighted"===g?o({animatedText:w}):"rotating"===g&&o({animatedText:C}))},[f,g]),(0,a.useEffect)(()=>{"highlighted"===g?(z(m),o({animatedText:m})):"rotating"===g&&(A(m),o({animatedText:m}))},[m]);const O=Array.from({length:10},(t,e)=>(0,I.jsx)("span",{className:"ablocks-dynamic-letter"},e)),Y=r||"h2",{linkTarget:X,noFollow:B,keyValue:E,href:F}=d||{};let q={href:F};return X&&(q.target="_blank"),q.rel=B?X?"nofollow noreferrer noopener":"nofollow":"noopener",E&&(q={...q,...(0,wb.jM)(E)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:b,setAttributes:o,options:u?Nc.filter(t=>"justify"!==t.align):Nc})}),(0,I.jsx)(Yb.A,{blockId:n,name:od.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:F&&!u?(0,I.jsx)("a",{...q,children:(0,I.jsx)($c,{value:c,tagName:r,className:"ablocks-heading-text", | |
| 501 | +onChange:t=>o({heading:t}),placeholder:(0,L.__)("Enter your heading..","ablocks"),context:i})}):(0,I.jsx)(I.Fragment,{children:u?(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(Y,{className:s()("ablocks-animated-text",`ablocks-${f}`),children:[H?x:p,(0,I.jsxs)("span",{className:"ablocks-animated-text-wrapper",children:[k?v:"highlighted"===g?(0,I.jsx)("span",{className:"ablocks-dynamic-text",children:m}):m.split("\n").map((t,e)=>(0,I.jsx)("span",{className:"ablocks-dynamic-text",children:["rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide"].includes(f)?t+" ":(0,I.jsxs)(I.Fragment,{children:[O,t.split("").map((t,e)=>(0,I.jsx)("span",{className:"ablocks-dynamic-letter",children:t},e)),O]})},e)),"highlighted"===g&&Oc(f)]}),_?R:h]})}):(0,I.jsx)($c,{value:c,tagName:r,className:"ablocks-heading-text",onChange:t=>o({heading:t}),placeholder:(0,L.__)("Enter your heading..","ablocks"),context:i})})})]})}sd.propTypes={};const rd=(t,e="")=>({...(0, | |
| 502 | +Zt.qD)(t?.alignment,"text-align",e)}),bd=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=(0,M.Zy)(t.textStroke,{strokeWidthUnit:"px"}),a=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(i,e,a),...(0,Mc.qD)(o,e),...(0,fc.qD)(t?.textShadow)}},cd=(t,e="")=>{const{highlightColor:i,highlightStrokeWidth:o={},highlightDuration:a,highlightDelay:l,isInfiniteLoop:n}=t,s=n?"infinite":1,r=e?"valueUnit"+e:"valueUnit",b=o[e?"value"+e:"value"]??0,c=o[r]??"px",d=parseInt(a)+parseInt(l);return{stroke:(0,Hs.qD)(i),"stroke-width":b+c,animation:`draw-auto ${d}ms forwards ${s}`}},dd=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=(0,M.Zy)(t.textStroke,{strokeWidthUnit:"px"}),a=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(i,e,a),...(0,Mc.qD)(o,e),...(0,fc.qD)(t?.textShadow)}},ud=(t,e="")=>{const i=t.animatedTypography||{},o=(0,M.Zy)(t.animatedTextStroke,{strokeWidthUnit:"px"});return{color:(0, | |
| 503 | +Hs.qD)(t?.animatedTextColor),...(0,U.qD)(i,e),...(0,Mc.qD)(o,e),...(0,fc.qD)(t?.animatedTextShadow)}};function pd(t){const{attributes:e}=t,{block_id:i,headingTag:o,link:a,heading:l,isAnimated:n,startingText:r,animatedText:b,endingText:c,animationType:d,animationStyle:u,isInfiniteLoop:p,highlightDuration:m}=e,h=[...Array(10)].map((t,e)=>(0,I.jsx)("span",{className:"ablocks-dynamic-letter"},e)),g=o||"h2",{linkTarget:f,noFollow:y,keyValue:T,href:H}=a||{};let M={href:H};return f&&(M.target="_blank"),M.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(M={...M,...(0,wb.jM)(T)}),(0,I.jsx)(sc,{blockId:i,name:od.UU,attributes:e,blockProps:n?{"data-isLoop":p,"data-duration":m}:{},children:a&&H&&!n?(0,I.jsx)("a",{...M,children:(0,I.jsx)(D.RichText.Content,{tagName:o,className:"ablocks-heading-text",value:e.heading})}):(0,I.jsx)(I.Fragment,{children:n?(0,I.jsxs)(g,{className:s()("ablocks-animated-text",`ablocks-${u}`),children:[r,(0,I.jsxs)("span",{ | |
| 504 | +className:"ablocks-animated-text-wrapper",children:["highlighted"===d?(0,I.jsx)("span",{className:"ablocks-dynamic-text",children:b}):b.split("\n").map((t,e)=>(0,I.jsx)("span",{className:"ablocks-dynamic-text",children:["rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide"].includes(u)?t+" ":(0,I.jsxs)(I.Fragment,{children:[h,t.split("").map((t,e)=>(0,I.jsx)("span",{className:"ablocks-dynamic-letter",children:t},e)),h]})},e)),"highlighted"===d&&Oc(u)]}),c]}):(0,I.jsx)(D.RichText.Content,{tagName:o,className:"ablocks-heading-text",value:l})})})}pd.propTypes={};const md={UU:"ablocks/heading",uK:{block_id:{type:"string",default:""},heading:{type:"string",source:"html",selector:".ablocks-heading-text"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"", | |
| 505 | +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:"", | |
| 484 | 506 | 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:"", |
| 485 | 507 | 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:"", |
| 486 | 508 | 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:"", |
| 487 | 509 | imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"", |
| @@ -487,55 +509,20 @@ | ||
| 487 | 509 | imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"", |
| 488 | 510 | 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:"", |
| 489 | 511 | 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:"", |
| 490 | 512 | 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", |
| 491 | -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}, | |
| 492 | -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},Jc=class{constructor(t,e){if(t){if(this.element=t,this.texts=this.element.querySelectorAll(".ablocks-dynamic-text"),this.index=0,this.intervalId=null,this.isLoop="true"===e.isloop||!0===e.isloop,this.highlightDuration=parseInt(e.duration)||2e3,this.txtWrapper=this.element.querySelector(".ablocks-animated-text-wrapper"),this.txtWrapper){const t=Array.from(this.texts).reduce((t,e)=>Math.max(t,e.offsetWidth),0);this.txtWrapper.style.minWidth=`${t}px`}0!==this.texts.length&&(this.texts[0].classList.add("ablocks-dynamic-text-active"),setTimeout(()=>{this.texts.forEach((t,e)=>{0===e?t.classList.add("ablocks-dynamic-text-active"):t.classList.remove("ablocks-dynamic-text-active")})},100),this.startRotation(), | |
| 493 | -document.addEventListener("visibilitychange",this.handleVisibilityChange.bind(this)))}}startRotation(){this.stopRotation(),this.intervalId=setInterval(()=>{this.index!==this.texts.length-1||this.isLoop?(this.texts[this.index].classList.remove("ablocks-dynamic-text-active"),this.index++,this.index>=this.texts.length&&this.isLoop&&(this.index=0),this.texts[this.index].classList.add("ablocks-dynamic-text-active")):this.stopRotation()},this.highlightDuration)}stopRotation(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}handleVisibilityChange(){document.hidden?this.stopRotation():this.startRotation()}},Qc=class{constructor(t,e){t&&(this.element=t,this.texts=t.querySelectorAll(".ablocks-dynamic-text"),this.currentIndex=0,this.isLoop="true"===e.isloop||!0===e.isloop,this.highlightDuration=parseInt(e.duration)||2e3,this.timeoutId=null,0!==this.texts.length&&(this.texts.forEach(t=>t.classList.remove("ablocks-headline-text-active")),this.showNextText(), | |
| 494 | -document.addEventListener("visibilitychange",this.handleVisibilityChange.bind(this))))}showNextText(){this.stopRotation(),this.texts.forEach(t=>{t.classList.remove("ablocks-headline-text-active"),t.querySelectorAll(".ablocks-dynamic-letter").forEach(t=>{t.classList.remove("ablocks-animation-in")})});const t=this.texts[this.currentIndex],e=t.querySelectorAll(".ablocks-dynamic-letter");e.length>0?this.typeSpeed=this.highlightDuration/e.length:this.typeSpeed=this.highlightDuration;let i=0;const o=setInterval(()=>{i<e.length?(e[i].classList.add("ablocks-animation-in"),i++):clearInterval(o)},this.typeSpeed);t.classList.add("ablocks-headline-text-active"),this.currentIndex===this.texts.length-1&&!this.isLoop||(this.currentIndex=(this.currentIndex+1)%this.texts.length,this.timeoutId=setTimeout(()=>this.showNextText(),this.highlightDuration))}stopRotation(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleVisibilityChange(){ | |
| 495 | -document.hidden?this.stopRotation():this.showNextText()}},td=class{constructor(t,e){t&&(this.element=t,this.texts=t.querySelectorAll(".ablocks-dynamic-text"),this.currentIndex=0,this.isLoop="true"===e.isloop||!0===e.isloop,this.highlightDuration=parseInt(e.duration)||2e3,this.timeoutId=null,0!==this.texts.length&&(this.texts.forEach(t=>t.classList.remove("ablocks-headline-text-active")),this.showNextText(),document.addEventListener("visibilitychange",this.handleVisibilityChange.bind(this))))}showNextText(){this.stopRotation(),this.texts.forEach(t=>{t.classList.remove("ablocks-headline-text-active"),t.querySelectorAll(".ablocks-dynamic-letter").forEach(t=>{t.classList.remove("ablocks-animation-in"),t.offsetWidth})});const t=this.texts[this.currentIndex],e=t.querySelectorAll(".ablocks-dynamic-letter");e.length>0?this.typeSpeed=this.highlightDuration/e.length:this.typeSpeed=this.highlightDuration;let i=0;const o=setInterval(()=>{i<e.length?(e[i].classList.add("ablocks-animation-in"), | |
| 496 | -i++):clearInterval(o)},this.typeSpeed);t.classList.add("ablocks-headline-text-active"),this.currentIndex===this.texts.length-1&&!this.isLoop||(this.currentIndex=(this.currentIndex+1)%this.texts.length,this.timeoutId=setTimeout(()=>this.showNextText(),this.highlightDuration))}stopRotation(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleVisibilityChange(){document.hidden?this.stopRotation():this.showNextText()}};function ed(t){const{attributes:e,context:i,setAttributes:o}=t,{block_id:n,headingTag:r,alignment:b,heading:c,link:d,isAnimated:u,startingText:p,animatedText:m,endingText:h,animationType:g,animationStyle:f,isInfiniteLoop:y,highlightDuration:T}=e,{isDynamicEnabled:H,data:x}=Zc({attributeValue:p}),{isDynamicEnabled:k,data:v}=Zc({attributeValue:m}),{isDynamicEnabled:_,data:R}=Zc({attributeValue:h}),S=(0,a.useRef)(null);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${n} `);if(t){const e=t.querySelector(".ablocks-animated-text") | |
| 497 | -;if(S.current?.stopRotation&&(S.current.stopRotation(),S.current=null),!u||!e)return()=>{};e.querySelectorAll(".ablocks-dynamic-text").forEach(t=>{t.classList.remove("ablocks-dynamic-text-active")}),e.offsetWidth,setTimeout(()=>{const t=e.querySelector(".ablocks-dynamic-text");t&&t.classList.add("ablocks-dynamic-text-active")},50),["rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide"].includes(f)&&(S.current=new Jc(e,{isloop:y,duration:T})),["rotate-typing"].includes(f)&&(S.current=new Qc(e,{isloop:y,duration:T})),["rotate-swirl"].includes(f)&&(S.current=new td(e,{isloop:y,duration:T}))}return()=>{S.current&&S.current.stopRotation&&(S.current.stopRotation(),S.current=null)}},[n,u,m,g,f,y,T,r]);const[W,U]=(0,a.useState)("highlighter-circle"),[P,j]=(0,a.useState)("rotate-typing"),[w,A]=(0,a.useState)("Animated Text"),[D,N]=(0,a.useState)("Animated\nText\nare\nAwesome"),I=(0,a.useRef)(u),V=(0,a.useRef)({animationType:g,animationStyle:f});(0,a.useEffect)(()=>{ | |
| 498 | -I.current!==u&&(I.current=u,u?o({heading:""}):(o({animationType:"highlighted",animationStyle:"highlighter-circle",startingText:"",animatedText:"Animated",endingText:"",highlightColor:"#ff000e",highlightDuration:2e3,isInfiniteLoop:!0,highlightDelay:1e3,animatedTextColor:""}),U("highlighter-circle"),j("rotate-typing"),A("Animated Text"),N("Animated\nText\nare\nAwesome")))},[u]),(0,a.useEffect)(()=>{"highlighted"!==g||["highlighter-circle","highlighter-curly","highlighter-underline","highlighter-double","highlighter-double-underline","highlighter-underline-zigzag","highlighter-diagonal","highlighter-strikethrough","highlighter-crossed"].includes(f)?"rotating"!==g||["rotate-typing","rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide","rotate-swirl"].includes(f)||o({animationStyle:P}):o({animationStyle:W})},[g]),(0,a.useEffect)(()=>{"highlighted"===g?U(f):"rotating"===g&&j(f);const t=V.current;t.animationType===g&&t.animationStyle===f||(V.current={animationType:g, | |
| 499 | -animationStyle:f},"highlighted"===g?o({animatedText:w}):"rotating"===g&&o({animatedText:D}))},[f,g]),(0,a.useEffect)(()=>{"highlighted"===g?(A(m),o({animatedText:m})):"rotating"===g&&(N(m),o({animatedText:m}))},[m]);const O=Array.from({length:10},(t,e)=>(0,L.jsx)("span",{className:"ablocks-dynamic-letter"},e)),Y=r||"h2",{linkTarget:X,noFollow:B,keyValue:E,href:F}=d||{};let q={href:F};return X&&(q.target="_blank"),q.rel=B?X?"nofollow noreferrer noopener":"nofollow":"noopener",E&&(q={...q,...(0,Wb.jM)(E)}),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:b,setAttributes:o,options:Cc})}),(0,L.jsx)(Nb.A,{blockId:n,name:Kc.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:F&&!u?(0,L.jsx)("a",{...q,children:(0,L.jsx)(Yc,{value:c,tagName:r,className:"ablocks-heading-text",onChange:t=>o({heading:t}),placeholder:(0,z.__)("Enter your heading..","ablocks"),context:i})}):(0,L.jsx)(L.Fragment,{ | |
| 500 | -children:u?(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(Y,{className:s()("ablocks-animated-text",`ablocks-${f}`),children:[H?x:p,(0,L.jsxs)("span",{className:"ablocks-animated-text-wrapper",children:[k?v:"highlighted"===g?(0,L.jsx)("span",{className:"ablocks-dynamic-text",children:m}):m.split("\n").map((t,e)=>(0,L.jsx)("span",{className:"ablocks-dynamic-text",children:["rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide"].includes(f)?t+" ":(0,L.jsxs)(L.Fragment,{children:[O,t.split("").map((t,e)=>(0,L.jsx)("span",{className:"ablocks-dynamic-letter",children:t},e)),O]})},e)),"highlighted"===g&&Dc(f)]}),_?R:h]})}):(0,L.jsx)(Yc,{value:c,tagName:r,className:"ablocks-heading-text",onChange:t=>o({heading:t}),placeholder:(0,z.__)("Enter your heading..","ablocks"),context:i})})})]})}ed.propTypes={};const id=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e)}),od=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=(0,M.Zy)(t.textStroke,{strokeWidthUnit:"px" | |
| 501 | -}),a=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,gs.qD)(t?.textColor),...(0,P.qD)(i,e,a),...(0,fc.qD)(o,e),...(0,pc.qD)(t?.textShadow)}},ad=(t,e="")=>{const{highlightColor:i,highlightStrokeWidth:o={},highlightDuration:a,highlightDelay:l,isInfiniteLoop:n}=t,s=n?"infinite":1,r=e?"valueUnit"+e:"valueUnit",b=o[e?"value"+e:"value"]??0,c=o[r]??"px",d=parseInt(a)+parseInt(l);return{stroke:(0,gs.qD)(i),"stroke-width":b+c,animation:`draw-auto ${d}ms forwards ${s}`}},ld=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=(0,M.Zy)(t.textStroke,{strokeWidthUnit:"px"}),a=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,gs.qD)(t?.textColor),...(0,P.qD)(i,e,a),...(0,fc.qD)(o,e),...(0,pc.qD)(t?.textShadow)}},nd=(t,e="")=>{const i=(0,M.Zy)(t.animatedTypography,{weight:"400"}),o=(0,M.Zy)(t.animatedTextStroke,{strokeWidthUnit:"px"});return{color:(0,gs.qD)(t?.animatedTextColor),...(0,P.qD)(i,e),...(0,fc.qD)(o,e),...(0,pc.qD)(t?.animatedTextShadow)}};function sd(t){ | |
| 502 | -const{attributes:e}=t,{block_id:i,headingTag:o,link:a,heading:l,isAnimated:n,startingText:r,animatedText:b,endingText:c,animationType:d,animationStyle:u,isInfiniteLoop:p,highlightDuration:m}=e,h=[...Array(10)].map((t,e)=>(0,L.jsx)("span",{className:"ablocks-dynamic-letter"},e)),g=o||"h2",{linkTarget:f,noFollow:y,keyValue:T,href:H}=a||{};let M={href:H};return f&&(M.target="_blank"),M.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(M={...M,...(0,Wb.jM)(T)}),(0,L.jsx)(oc,{blockId:i,name:Kc.UU,attributes:e,blockProps:n?{"data-isLoop":p,"data-duration":m}:{},children:a&&H&&!n?(0,L.jsx)("a",{...M,children:(0,L.jsx)(C.RichText.Content,{tagName:o,className:"ablocks-heading-text",value:e.heading})}):(0,L.jsx)(L.Fragment,{children:n?(0,L.jsxs)(g,{className:s()("ablocks-animated-text",`ablocks-${u}`),children:[r,(0,L.jsxs)("span",{className:"ablocks-animated-text-wrapper",children:["highlighted"===d?(0,L.jsx)("span",{className:"ablocks-dynamic-text",children:b | |
| 503 | -}):b.split("\n").map((t,e)=>(0,L.jsx)("span",{className:"ablocks-dynamic-text",children:["rotate-slide-down","rotate-clip","rotate-drop-in","rotate-flip","rotate-slide"].includes(u)?t+" ":(0,L.jsxs)(L.Fragment,{children:[h,t.split("").map((t,e)=>(0,L.jsx)("span",{className:"ablocks-dynamic-letter",children:t},e)),h]})},e)),"highlighted"===d&&Dc(u)]}),c]}):(0,L.jsx)(C.RichText.Content,{tagName:o,className:"ablocks-heading-text",value:l})})})}sd.propTypes={};const rd={UU:"ablocks/heading",uK:{block_id:{type:"string",default:""},heading:{type:"string",source:"html",selector:".ablocks-heading-text"},headingTag:{type:"string",default:"h2"},textColor:{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", | |
| 504 | -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:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"", | |
| 505 | -commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"", | |
| 506 | -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, | |
| 507 | -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:"", | |
| 508 | -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", | |
| 509 | -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:"", | |
| 510 | -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:"", | |
| 511 | -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", | |
| 512 | -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 bd(t){const{attributes:e}=t,{block_id:i,headingTag:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:rd.UU,attributes:e,children:(0,L.jsx)(C.RichText.Content,{tagName:o,className:"ablocks-heading-text",value:e.heading})})})}bd.propTypes={},(0,M.xV)(Kc.UU)&&(0,o.registerBlockType)(Kc.UU,{ | |
| 513 | -title:"Heading",attributes:Kc.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-heading"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,isAnimated:s}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}",id(i),id(i,"Tablet"),id(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-heading-text",od(i),od(i,"Tablet"),od(i,"Mobile"));const e=(t=>{const e=t?.typography?.decoration;return e?{"text-decoration":e}:{}})(i);return t.addClassStyles("{{WRAPPER}}.ablocks-block--heading a",e),s&&(t.addClassStyles("{{WRAPPER}} .ablocks-animated-text path",ad(i),ad(i,"Tablet"),ad(i,"Mobile")), | |
| 514 | -t.addClassStyles("{{WRAPPER}} .ablocks-animated-text",ld(i),ld(i,"Tablet"),ld(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-animated-text-wrapper",nd(i),nd(i,"Tablet"),nd(i,"Mobile"))),(0,b.applyFilters)("ablocks.heading.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(Oc,{...t}),(0,L.jsx)(ed,{...t})]})},save:sd,deprecated:[{attributes:rd.uK,save:bd}]});const cd={changeHandler:I().func.isRequired,deviceType:I().string,options:I().array.isRequired,attributeValue:I().any,isResponsive:I().bool};function dd(t){const{changeHandler:e,deviceType:i="",options:o,attributeValue:a,isResponsive:l}=t;return(0,L.jsx)("div",{className:"ablocks-control__fields",children:o.map((t,o)=>(0,L.jsx)("button",{type:"button",className:"ablocks-btn ablocks-btn--transparent "+(a===t.value?"active":""),onClick:()=>e(t.value===a?"":t.value,l?i:""),children:t.label},o))})}dd.propTypes=cd;const ud={isResponsive:I().bool, | |
| 515 | -label:I().string,attributeName:I().string,attributeValue:I().any,setAttributes:I().func.isRequired,onChangeHandler:I().func,options:I().array,attributeObjectKey:I().string,isInline:I().bool};let pd="";function md(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",attributeObjectKey:b="value",options:c=Gt.gh,isInline:d=!0}=t;pd=e?at():"";const u=e?(0,M.Ic)(o,b,pd):o;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:s()("ablocks-control ablocks-control--groupbutton",{"ablocks-control--inline":d}),children:[r&&(0,L.jsx)(ot,{label:r,isResponsive:e}),(0,L.jsx)(dd,{attributeName:i,deviceType:pd,attributeValue:u,setAttributes:n,changeHandler:(t,l)=>{a?a(t,e?b+l:i):((t,a)=>{n(e?{[i]:(0,M.jI)((0,Gt.tJ)(e),{...o,[b+a]:t})}:{[i]:t})})(t,l)},options:c,isResponsive:e})]})})}md.propTypes=ud;var hd=i(91464);function gd(t){ | |
| 516 | -const{attributes:e,setAttributes:i}=t,{stack:o,alignment:a,gap:n,buttonType:s,buttonSize:r,textShadow:b,typography:c,textColor:d,textColorH:u,background:p,backgroundH:m,padding:h}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-dual-button-block/",children:(0,L.jsx)(D,{title:(0,z.__)("Dual Button","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(md,{isResponsive:!1,label:(0,z.__)("Layout","ablocks"),options:[{value:"vertical",label:(0,z.__)("Vertical","ablocks")},{value:"horizontal",label:(0,z.__)("Horizontal","ablocks")}],attributeName:"stack",attributeValue:o,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:a,setAttributes:i,options:"horizontal"===o?[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0, | |
| 517 | -z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}]:[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:"right"}],isInline:!1}),"space-between"!==a&&"horizontal"===o||"vertical"===o?(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),min:0,max:400,hasUnit:!0,unitOptions:"horizontal"===o?[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}]:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"gap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:hd.r}):null,(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),options:[{label:(0, | |
| 518 | -z.__)("Default","ablocks"),value:"#ddd"},{label:(0,z.__)("Link","ablocks"),value:"link"},{label:(0,z.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,z.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,z.__)("Success","ablocks"),value:"#198754"},{label:(0,z.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,z.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:s||"Primary",attributeName:"buttonType",setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),options:[{label:(0,z.__)("Extra small","ablocks"),value:"xs"},{label:(0,z.__)("Small","ablocks"),value:"sm"},{label:(0,z.__)("Medium","ablocks"),value:"md"},{label:(0,z.__)("Large","ablocks"),value:"lg"},{label:(0,z.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:r||"sm",attributeName:"buttonSize",setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:c,setAttributes:i, | |
| 519 | -isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:d||"#000000",setAttributes:i}),"link"!==s&&(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:p||"#ddd",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:u,setAttributes:i}),"link"!==s&&(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:m,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1, | |
| 520 | -attributeValue:e?.transition,attributeName:"transition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:h,setAttributes:i})]})})})})})})}gd.propTypes={},gd.defaultProps={};const fd={UU:"ablocks/dual-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},justifyItems:{type:"string",default:"start"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:0},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},border:{type:"object", | |
| 521 | -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:"", | |
| 522 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"", | |
| 523 | -bottomMobile:"",leftMobile:"",unitMobile:""}},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:""}},stack:{type:"string",default:"horizontal"},gap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0, | |
| 524 | -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:"", | |
| 525 | -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:"", | |
| 526 | -rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none", | |
| 527 | -backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"", | |
| 528 | -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:"", | |
| 529 | -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:"", | |
| 530 | -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", | |
| 531 | -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", | |
| 532 | -default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},yd=({insertButtonBlock:t})=>(0,L.jsx)(C.BlockControls,{group:"block",children:(0,L.jsx)(A.Toolbar,{children:(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),label:(0,z.__)("Add Button","ablocks"),onClick:t})})});function Td(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s,buttonType:b,buttonSize:c,textShadow:d,typography:u,textColor:p,textColorH:m,background:h,backgroundH:g,transition:f,padding:y}=e,{updateBlockAttributes:T}=(0,r.useDispatch)("core/block-editor");return(0,a.useEffect)(()=>{n&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;T(i,{buttonType:b,buttonSize:c, | |
| 533 | -textShadow:d,typography:u,textColor:p,textColorH:m,background:h,backgroundH:g,padding:y,border:e?.border,transition:f})})})()},[b,c,d,u,p,m,h,g,y,f,e?.border]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(yd,{insertButtonBlock:()=>{const t=(0,r.select)("core/block-editor").getBlocks(i),e=(0,o.createBlock)("ablocks/button");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,s)}})}),(0,L.jsx)(Nb.A,{blockId:s,name:fd.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/button",{}],["ablocks/button",{}]],allowedBlocks:["ablocks/button"]})})]})}Td.propTypes={},Td.defaultProps={};const Hd=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e}),...(0,Ob.qD)({attributeValue:t?.transition,attributeObjectKey:"value",unitDefaultValue:"s", | |
| 534 | -defaultValue:0,property:"transition-duration"})};return i["flex-wrap"]="wrap","vertical"===t.stack&&(i["flex-direction"]="column"),"horizontal"===t.stack&&(i["flex-direction"]="row"),{...i,...(0,Gt.qD)(t?.alignment,"horizontal"===t?.stack?"justify-content":"align-items",e)}},Md=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.typography,{weight:"400"}),l=t.typographyGlobal?t.typographyGlobal:"";return{...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,P.qD)(a,e,l)}},xd=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},kd={UU:"ablocks/dual-button",uK:{block_id:{type:"string",default:""},justifyItems:{type:"string",default:"start"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""}, | |
| 535 | -transition:{type:"number",default:0},alignment:{type:"object",default:{value:"flex-start",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:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", | |
| 536 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"", | |
| 537 | -unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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:""}},stack:{type:"string",default:"horizontal"},gap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10, | |
| 513 | +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 hd(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:md.UU,attributes:e,children:(0,I.jsx)(D.RichText.Content,{tagName:o, | |
| 514 | +className:"ablocks-heading-text",value:e.heading})})})}hd.propTypes={},(0,M.xV)(od.UU)&&(0,o.registerBlockType)(od.UU,{title:(0,L.__)("Heading","ablocks"),attributes:od.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-heading"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n,isAnimated:s}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[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):{};t.addClassStyles("{{WRAPPER}}",rd(i),rd(i,"Tablet"),rd(i,"Mobile"),e(t=>rd(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-heading-text",bd(i),bd(i,"Tablet"),bd(i,"Mobile"),e(t=>bd(i,t)));const o=(t=>{const e=t?.typography?.decoration;return e?{"text-decoration":e}:{}})(i) | |
| 515 | +;return t.addClassStyles("{{WRAPPER}}.ablocks-block--heading a",o),s&&(t.addClassStyles("{{WRAPPER}} .ablocks-animated-text path",cd(i),cd(i,"Tablet"),cd(i,"Mobile"),e(t=>cd(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-animated-text",dd(i),dd(i,"Tablet"),dd(i,"Mobile"),e(t=>dd(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-animated-text-wrapper",ud(i),ud(i,"Tablet"),ud(i,"Mobile"),e(t=>ud(i,t)))),(0,b.applyFilters)("ablocks.heading.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(qc,{...t}),(0,I.jsx)(sd,{...t})]})},save:pd,deprecated:[{attributes:md.uK,save:hd}]});const gd={changeHandler:Y().func.isRequired,deviceType:Y().string,options:Y().array.isRequired,attributeValue:Y().any,isResponsive:Y().bool};function fd(t){const{changeHandler:e,deviceType:i="",options:o,attributeValue:a,isResponsive:l}=t;return(0,I.jsx)("div",{className:"ablocks-control__fields",children:o.map((t,o)=>(0,I.jsx)("button",{ | |
| 516 | +type:"button",className:"ablocks-btn ablocks-btn--transparent "+(a===t.value?"active":""),onClick:()=>e(t.value===a?"":t.value,l?i:""),children:t.label},o))})}fd.propTypes=gd;const yd={isResponsive:Y().bool,label:Y().string,attributeName:Y().string,attributeValue:Y().any,setAttributes:Y().func.isRequired,onChangeHandler:Y().func,options:Y().array,attributeObjectKey:Y().string,isInline:Y().bool};let Td="";function Hd(t){const{isResponsive:e=!0,attributeName:i,attributeValue:o,onChangeHandler:a,setAttributes:n,label:r="",attributeObjectKey:b="value",options:c=Zt.gh,isInline:d=!0}=t;Td=e?lt():"";const u=e?(0,M.Ic)(o,b,Td):o;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:s()("ablocks-control ablocks-control--groupbutton",{"ablocks-control--inline":d}),children:[r&&(0,I.jsx)(at,{label:r,isResponsive:e}),(0,I.jsx)(fd,{attributeName:i,deviceType:Td,attributeValue:u,setAttributes:n,changeHandler:(t,l)=>{a?a(t,e?b+l:i):((t,a)=>{n(e?{[i]:(0,M.jI)((0,Zt.tJ)(e),{...o,[b+a]:t}) | |
| 517 | +}:{[i]:t})})(t,l)},options:c,isResponsive:e})]})})}Hd.propTypes=yd;var Md=i(91464);function xd(t){const{attributes:e,setAttributes:i}=t,{stack:o,alignment:a,gap:n,buttonType:s,buttonSize:r,textShadow:b,typography:c,textColor:d,textColorH:u,background:p,backgroundH:m,padding:h}=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-dual-button-block/",children:(0,I.jsx)(V,{title:(0,L.__)("Dual Button","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Hd,{isResponsive:!1,label:(0,L.__)("Layout","ablocks"),options:[{value:"vertical",label:(0,L.__)("Vertical","ablocks")},{value:"horizontal",label:(0,L.__)("Horizontal","ablocks")}],attributeName:"stack",attributeValue:o,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:a,setAttributes:i,options:"horizontal"===o?[{ | |
| 518 | +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,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}]:[{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"}],isInline:!1}),"space-between"!==a&&"horizontal"===o||"vertical"===o?(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:400,hasUnit:!0,unitOptions:"horizontal"===o?[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}]:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"gap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Md.r}):null,(0, | |
| 519 | +I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"#ddd"},{label:(0,L.__)("Link","ablocks"),value:"link"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:s||"Primary",attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:r||"sm",attributeName:"buttonSize",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0, | |
| 520 | +L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:d||"#000000",setAttributes:i}),"link"!==s&&(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:p||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:u,setAttributes:i}),"link"!==s&&(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:m,setAttributes:i}),(0,I.jsx)(_t,{label:(0, | |
| 521 | +L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:h,setAttributes:i})]})})})})})})}xd.propTypes={},xd.defaultProps={};const kd={UU:"ablocks/dual-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},justifyItems:{type:"string",default:"start"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:0},alignment:{ | |
| 522 | +type:"object",default:{value:"flex-start",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:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0, | |
| 523 | +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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"", | |
| 524 | +rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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:""}},stack:{type:"string",default:"horizontal"},gap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10, | |
| 538 | 525 | 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:"", |
| 539 | 526 | 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:"", |
| 540 | 527 | 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", |
| 541 | 528 | 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:"", |
| @@ -541,12 +528,26 @@ | ||
| 541 | 528 | 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:"", |
| 542 | 529 | 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:"", |
| 543 | 530 | 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:"", |
| 544 | 531 | 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:"", |
| 545 | -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)(fd.UU)&&(0, | |
| 546 | -o.registerBlockType)(fd.UU,{title:"Dual Button",attributes:fd.uK,icon:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .block-editor-inner-blocks .block-editor-block-list__layout",Hd(i),Hd(i,"Tablet"),Hd(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-button",Md(i),Md(i,"Tablet"),Md(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-button:hover",xd(i,""),xd(i,"Tablet"),xd(i,"Mobile")), | |
| 547 | -t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(gd,{...t}),(0,L.jsx)(Td,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:fd.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})},deprecated:[{attributes:kd.uK,save:function(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:kd.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}}]});var vd=i(68761);const _d=[{prefix:"far fa",type:"regular",icons:vd.Hg?.icons},{prefix:"fas fa",type:"solid",icons:vd.QJ?.icons},{prefix:"fab fa",type:"brands",icons:vd.Hk?.icons}];function Rd({iconType:t,iconName:e,changeHandler:i}){const o=t.prefix;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{role:"presentation",className:"__icon",onClick:()=>i(`${o}-${e}`,"icon"),onKeyDown:()=>{},children:(0,L.jsx)("i",{className:`${o}-${e}` | |
| 548 | -})}),(0,L.jsx)("span",{className:"__icon-name",children:e.replace(/-/g," ")})]})}const Sd=function({changeHandler:t,searchIconQuery:e,modalIconType:i}){const o=e?.toLowerCase().trim();return(0,L.jsx)("div",{className:"ablocks-icon-library--icon-container",children:_d.map(e=>"all"===i||i===e.type?e.icons.filter(t=>t?.split("-").join(" ").includes(o)).map((i,o)=>(0,L.jsx)("div",{className:"__icon-wrapper",children:(0,L.jsx)(Rd,{iconType:e,iconName:i,changeHandler:t})},o)):null)})},Wd={ | |
| 532 | +maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none", | |
| 533 | +loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},vd=({insertButtonBlock:t})=>(0,I.jsx)(D.BlockControls,{group:"block",children:(0,I.jsx)(N.Toolbar,{children:(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),label:(0,L.__)("Add Button","ablocks"),onClick:t})})});function _d(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s,buttonType:b,buttonSize:c,textShadow:d,typography:u,textColor:p,textColorH:m,background:h,backgroundH:g,transition:f,padding:y}=e,{updateBlockAttributes:T}=(0,r.useDispatch)("core/block-editor");return(0,a.useEffect)(()=>{n&&(()=>{const t=(0, | |
| 534 | +r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;T(i,{buttonType:b,buttonSize:c,textShadow:d,typography:u,textColor:p,textColorH:m,background:h,backgroundH:g,padding:y,border:e?.border,transition:f})})})()},[b,c,d,u,p,m,h,g,y,f,e?.border]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(vd,{insertButtonBlock:()=>{const t=(0,r.select)("core/block-editor").getBlocks(i),e=(0,o.createBlock)("ablocks/button");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,s)}})}),(0,I.jsx)(Yb.A,{blockId:s,name:kd.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/button",{}],["ablocks/button",{}]],allowedBlocks:["ablocks/button"]})})]})}_d.propTypes={},_d.defaultProps={};const Rd=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px", | |
| 535 | +property:"gap",device:e}),...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",unitDefaultValue:"s",defaultValue:0,property:"transition-duration"})};return i["flex-wrap"]="wrap","vertical"===t.stack&&(i["flex-direction"]="column"),"horizontal"===t.stack&&(i["flex-direction"]="row"),{...i,...(0,Zt.qD)(t?.alignment,"horizontal"===t?.stack?"justify-content":"align-items",e)}},Sd=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.typography,{weight:"400"}),l=t.typographyGlobal?t.typographyGlobal:"";return{...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,U.qD)(a,e,l)}},Wd=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},Pd={UU:"ablocks/dual-button",uK:{block_id:{type:"string",default:""},justifyItems:{type:"string",default:"start"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000" | |
| 536 | +},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:0},alignment:{type:"object",default:{value:"flex-start",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:"", | |
| 537 | +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:""}},padding:{ | |
| 538 | +type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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:""}}, | |
| 539 | +stack:{type:"string",default:"horizontal"},gap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,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:"", | |
| 540 | +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, | |
| 541 | +commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px", | |
| 542 | +hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 543 | +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:"", | |
| 544 | +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:"", | |
| 545 | +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:"", | |
| 546 | +maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{ | |
| 547 | +type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};(0,M.xV)(kd.UU)&&(0,o.registerBlockType)(kd.UU,{title:(0,L.__)("Dual Button","ablocks"),attributes:kd.uK,icon:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .block-editor-inner-blocks .block-editor-block-list__layout",Rd(i),Rd(i,"Tablet"),Rd(i,"Mobile"),e(t=>Rd(i,t))), | |
| 548 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-button",Sd(i),Sd(i,"Tablet"),Sd(i,"Mobile"),e(t=>Sd(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-button:hover",Wd(i,""),Wd(i,"Tablet"),Wd(i,"Mobile"),e(t=>Wd(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(xd,{...t}),(0,I.jsx)(_d,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:kd.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})},deprecated:[{attributes:Pd.uK,save:function(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Pd.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}}]});var Ud=i(68761);const jd=[{prefix:"far fa",type:"regular",icons:Ud.Hg?.icons},{prefix:"fas fa",type:"solid",icons:Ud.QJ?.icons},{prefix:"fab fa",type:"brands",icons:Ud.Hk?.icons}] | |
| 549 | +;function wd({iconType:t,iconName:e,changeHandler:i}){const o=t.prefix;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{role:"presentation",className:"__icon",onClick:()=>i(`${o}-${e}`,"icon"),onKeyDown:()=>{},children:(0,I.jsx)("i",{className:`${o}-${e}`})}),(0,I.jsx)("span",{className:"__icon-name",children:e.replace(/-/g," ")})]})}const zd=function({changeHandler:t,searchIconQuery:e,modalIconType:i}){const o=e?.toLowerCase().trim();return(0,I.jsx)("div",{className:"ablocks-icon-library--icon-container",children:jd.map(e=>"all"===i||i===e.type?e.icons.filter(t=>t?.split("-").join(" ").includes(o)).map((i,o)=>(0,I.jsx)("div",{className:"__icon-wrapper",children:(0,I.jsx)(wd,{iconType:e,iconName:i,changeHandler:t})},o)):null)})},Cd={ | |
| 549 | 550 | "address-book":[448,512,[],"f2b9","M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"], |
| 550 | 551 | "address-card":[576,512,[],"f2bb","M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"], |
| 551 | 552 | angry:[496,512,[],"f556","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 200zm0-144c-33.6 0-65.2 14.8-86.8 40.6-8.5 10.2-7.1 25.3 3.1 33.8s25.3 7.2 33.8-3c24.8-29.7 75-29.7 99.8 0 8.1 9.7 23.2 11.9 33.8 3 10.2-8.5 11.5-23.6 3.1-33.8-21.6-25.8-53.2-40.6-86.8-40.6zm-48-72c10.3 0 19.9-6.7 23-17.1 3.8-12.7-3.4-26.1-16.1-29.9l-80-24c-12.8-3.9-26.1 3.4-29.9 16.1-3.8 12.7 3.4 26.1 16.1 29.9l28.2 8.5c-3.1 4.9-5.3 10.4-5.3 16.6 0 17.7 14.3 32 32 32s32-14.4 32-32.1zm199-54.9c-3.8-12.7-17.1-19.9-29.9-16.1l-80 24c-12.7 3.8-19.9 17.2-16.1 29.9 3.1 10.4 12.7 17.1 23 17.1 0 17.7 14.3 32 32 32s32-14.3 32-32c0-6.2-2.2-11.7-5.3-16.6l28.2-8.5c12.7-3.7 19.9-17.1 16.1-29.8z"], |
| 552 | 553 | "arrow-alt-circle-down":[512,512,[],"f358","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z"],"arrow-alt-circle-left":[512,512,[],"f359","M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"], |
| @@ -672,9 +673,9 @@ | ||
| 672 | 673 | "trash-alt":[448,512,[],"f2ed","M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"], |
| 673 | 674 | user:[448,512,[],"f007","M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"], |
| 674 | 675 | "user-circle":[496,512,[],"f2bd","M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z"], |
| 675 | 676 | "window-close":[512,512,[],"f410","M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"],"window-maximize":[512,512,[],"f2d0","M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V192h416v234z"],"window-minimize":[512,512,[],"f2d1","M480 480H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h448c17.7 0 32 14.3 32 32s-14.3 32-32 32z"], |
| 676 | -"window-restore":[512,512,[],"f2d2","M464 0H144c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v320c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-96 464H48V256h320v208zm96-96h-48V144c0-26.5-21.5-48-48-48H144V48h320v320z"]},Ud={ | |
| 677 | +"window-restore":[512,512,[],"f2d2","M464 0H144c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v320c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-96 464H48V256h320v208zm96-96h-48V144c0-26.5-21.5-48-48-48H144V48h320v320z"]},Ad={ | |
| 677 | 678 | "500px":[448,512,[],"f26e","M103.3 344.3c-6.5-14.2-6.9-18.3 7.4-23.1 25.6-8 8 9.2 43.2 49.2h.3v-93.9c1.2-50.2 44-92.2 97.7-92.2 53.9 0 97.7 43.5 97.7 96.8 0 63.4-60.8 113.2-128.5 93.3-10.5-4.2-2.1-31.7 8.5-28.6 53 0 89.4-10.1 89.4-64.4 0-61-77.1-89.6-116.9-44.6-23.5 26.4-17.6 42.1-17.6 157.6 50.7 31 118.3 22 160.4-20.1 24.8-24.8 38.5-58 38.5-93 0-35.2-13.8-68.2-38.8-93.3-24.8-24.8-57.8-38.5-93.3-38.5s-68.8 13.8-93.5 38.5c-.3.3-16 16.5-21.2 23.9l-.5.6c-3.3 4.7-6.3 9.1-20.1 6.1-6.9-1.7-14.3-5.8-14.3-11.8V20c0-5 3.9-10.5 10.5-10.5h241.3c8.3 0 8.3 11.6 8.3 15.1 0 3.9 0 15.1-8.3 15.1H130.3v132.9h.3c104.2-109.8 282.8-36 282.8 108.9 0 178.1-244.8 220.3-310.1 62.8zm63.3-260.8c-.5 4.2 4.6 24.5 14.6 20.6C306 56.6 384 144.5 390.6 144.5c4.8 0 22.8-15.3 14.3-22.8-93.2-89-234.5-57-238.3-38.2zM393 414.7C283 524.6 94 475.5 61 310.5c0-12.2-30.4-7.4-28.9 3.3 24 173.4 246 256.9 381.6 121.3 6.9-7.8-12.6-28.4-20.7-20.4zM213.6 306.6c0 4 4.3 7.3 5.5 8.5 3 3 6.1 4.4 8.5 4.4 3.8 0 2.6.2 22.3-19.5 19.6 19.3 19.1 19.5 22.3 19.5 5.4 0 18.5-10.4 10.7-18.2L265.6 284l18.2-18.2c6.3-6.8-10.1-21.8-16.2-15.7L249.7 268c-18.6-18.8-18.4-19.5-21.5-19.5-5 0-18 11.7-12.4 17.3L234 284c-18.1 17.9-20.4 19.2-20.4 22.6z"], |
| 678 | 679 | "accessible-icon":[448,512,[],"f368","M423.9 255.8L411 413.1c-3.3 40.7-63.9 35.1-60.6-4.9l10-122.5-41.1 2.3c10.1 20.7 15.8 43.9 15.8 68.5 0 41.2-16.1 78.7-42.3 106.5l-39.3-39.3c57.9-63.7 13.1-167.2-74-167.2-25.9 0-49.5 9.9-67.2 26L73 243.2c22-20.7 50.1-35.1 81.4-40.2l75.3-85.7-42.6-24.8-51.6 46c-30 26.8-70.6-18.5-40.5-45.4l68-60.7c9.8-8.8 24.1-10.2 35.5-3.6 0 0 139.3 80.9 139.5 81.1 16.2 10.1 20.7 36 6.1 52.6L285.7 229l106.1-5.9c18.5-1.1 33.6 14.4 32.1 32.7zm-64.9-154c28.1 0 50.9-22.8 50.9-50.9C409.9 22.8 387.1 0 359 0c-28.1 0-50.9 22.8-50.9 50.9 0 28.1 22.8 50.9 50.9 50.9zM179.6 456.5c-80.6 0-127.4-90.6-82.7-156.1l-39.7-39.7C36.4 287 24 320.3 24 356.4c0 130.7 150.7 201.4 251.4 122.5l-39.7-39.7c-16 10.9-35.3 17.3-56.1 17.3z"], |
| 679 | 680 | accusoft:[640,512,[],"f369","M322.1 252v-1l-51.2-65.8s-12 1.6-25 15.1c-9 9.3-242.1 239.1-243.4 240.9-7 10 1.6 6.8 15.7 1.7.8 0 114.5-36.6 114.5-36.6.5-.6-.1-.1.6-.6-.4-5.1-.8-26.2-1-27.7-.6-5.2 2.2-6.9 7-8.9l92.6-33.8c.6-.8 88.5-81.7 90.2-83.3zm160.1 120.1c13.3 16.1 20.7 13.3 30.8 9.3 3.2-1.2 115.4-47.6 117.8-48.9 8-4.3-1.7-16.7-7.2-23.4-2.1-2.5-205.1-245.6-207.2-248.3-9.7-12.2-14.3-12.9-38.4-12.8-10.2 0-106.8.5-116.5.6-19.2.1-32.9-.3-19.2 16.9C250 75 476.5 365.2 482.2 372.1zm152.7 1.6c-2.3-.3-24.6-4.7-38-7.2 0 0-115 50.4-117.5 51.6-16 7.3-26.9-3.2-36.7-14.6l-57.1-74c-5.4-.9-60.4-9.6-65.3-9.3-3.1.2-9.6.8-14.4 2.9-4.9 2.1-145.2 52.8-150.2 54.7-5.1 2-11.4 3.6-11.1 7.6.2 2.5 2 2.6 4.6 3.5 2.7.8 300.9 67.6 308 69.1 15.6 3.3 38.5 10.5 53.6 1.7 2.1-1.2 123.8-76.4 125.8-77.8 5.4-4 4.3-6.8-1.7-8.2z"], |
| 680 | 681 | "acquisitions-incorporated":[384,512,[],"f6af","M357.45 468.2c-1.2-7.7-1.3-7.6-9.6-7.6-99.8.2-111.8-2.4-112.7-2.6-12.3-1.7-20.6-10.5-21-23.1-.1-1.6-.2-71.6-1-129.1-.1-4.7 1.6-6.4 5.9-7.5 12.5-3 24.9-6.1 37.3-9.7 4.3-1.3 6.8-.2 8.4 3.5 4.5 10.3 8.8 20.6 13.2 30.9 1.6 3.7.1 4.4-3.4 4.4-10-.2-20-.1-30.4-.1v27h116c-1.4-9.5-2.7-18.1-4-27.5-7 0-13.8.4-20.4-.1-22.6-1.6-18.3-4.4-84-158.6-8.8-20.1-27.9-62.1-36.5-89.2-4.4-14 5.5-25.4 18.9-26.6 18.6-1.7 37.5-1.6 56.2-2 20.6-.4 41.2-.4 61.8-.5 3.1 0 4-1.4 4.3-4.3 1.2-9.8 2.7-19.5 4-29.2.8-5.3 1.6-10.7 2.4-16.1L23.75 0c-3.6 0-5.3 1.1-4.6 5.3 2.2 13.2-.8.8 6.4 45.3 63.4 0 71.8.9 101.8.5 12.3-.2 37 3.5 37.7 22.1.4 11.4-1.1 11.3-32.6 87.4-53.8 129.8-50.7 120.3-67.3 161-1.7 4.1-3.6 5.2-7.6 5.2-8.5-.2-17-.3-25.4.1-1.9.1-5.2 1.8-5.5 3.2-1.5 8.1-2.2 16.3-3.2 24.9h114.3v-27.6c-6.9 0-33.5.4-35.3-2.9 5.3-12.3 10.4-24.4 15.7-36.7 16.3 4 31.9 7.8 47.6 11.7 3.4.9 4.6 3 4.6 6.8-.1 42.9.1 85.9.2 128.8 0 10.2-5.5 19.1-14.9 23.1-6.5 2.7-3.3 3.4-121.4 2.4-5.3 0-7.1 2-7.6 6.8-1.5 12.9-2.9 25.9-5 38.8-.8 5 1.3 5.7 5.3 5.7 183.2.6-30.7 0 337.1 0-2.5-15-4.4-29.4-6.6-43.7zm-174.9-205.7c-13.3-4.2-26.6-8.2-39.9-12.5a44.53 44.53 0 0 1-5.8-2.9c17.2-44.3 34.2-88.1 51.3-132.1 7.5 2.4 7.9-.8 9.4 0 9.3 22.5 18.1 60.1 27 82.8 6.6 16.7 13 33.5 19.7 50.9a35.78 35.78 0 0 1-3.9 2.1c-13.1 3.9-26.4 7.5-39.4 11.7a27.66 27.66 0 0 1-18.4 0z"], |
| @@ -1062,9 +1063,9 @@ | ||
| 1062 | 1063 | yelp:[384,512,[],"f1e9","M42.9 240.32l99.62 48.61c19.2 9.4 16.2 37.51-4.5 42.71L30.5 358.45a22.79 22.79 0 0 1-28.21-19.6 197.16 197.16 0 0 1 9-85.32 22.8 22.8 0 0 1 31.61-13.21zm44 239.25a199.45 199.45 0 0 0 79.42 32.11A22.78 22.78 0 0 0 192.94 490l3.9-110.82c.7-21.3-25.5-31.91-39.81-16.1l-74.21 82.4a22.82 22.82 0 0 0 4.09 34.09zm145.34-109.92l58.81 94a22.93 22.93 0 0 0 34 5.5 198.36 198.36 0 0 0 52.71-67.61A23 23 0 0 0 364.17 370l-105.42-34.26c-20.31-6.5-37.81 15.8-26.51 33.91zm148.33-132.23a197.44 197.44 0 0 0-50.41-69.31 22.85 22.85 0 0 0-34 4.4l-62 91.92c-11.9 17.7 4.7 40.61 25.2 34.71L366 268.63a23 23 0 0 0 14.61-31.21zM62.11 30.18a22.86 22.86 0 0 0-9.9 32l104.12 180.44c11.7 20.2 42.61 11.9 42.61-11.4V22.88a22.67 22.67 0 0 0-24.5-22.8 320.37 320.37 0 0 0-112.33 30.1z"], |
| 1063 | 1064 | yoast:[448,512,[],"f2b1","M91.3 76h186l-7 18.9h-179c-39.7 0-71.9 31.6-71.9 70.3v205.4c0 35.4 24.9 70.3 84 70.3V460H91.3C41.2 460 0 419.8 0 370.5V165.2C0 115.9 40.7 76 91.3 76zm229.1-56h66.5C243.1 398.1 241.2 418.9 202.2 459.3c-20.8 21.6-49.3 31.7-78.3 32.7v-51.1c49.2-7.7 64.6-49.9 64.6-75.3 0-20.1.6-12.6-82.1-223.2h61.4L218.2 299 320.4 20zM448 161.5V460H234c6.6-9.6 10.7-16.3 12.1-19.4h182.5V161.5c0-32.5-17.1-51.9-48.2-62.9l6.7-17.6c41.7 13.6 60.9 43.1 60.9 80.5z"],youtube:[576,512,[],"f167","M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"], |
| 1064 | 1065 | "youtube-square":[448,512,[],"f431","M186.8 202.1l95.2 54.1-95.2 54.1V202.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-42 176.3s0-59.6-7.6-88.2c-4.2-15.8-16.5-28.2-32.2-32.4C337.9 128 224 128 224 128s-113.9 0-142.2 7.7c-15.7 4.2-28 16.6-32.2 32.4-7.6 28.5-7.6 88.2-7.6 88.2s0 59.6 7.6 88.2c4.2 15.8 16.5 27.7 32.2 31.9C110.1 384 224 384 224 384s113.9 0 142.2-7.7c15.7-4.2 28-16.1 32.2-31.9 7.6-28.5 7.6-88.1 7.6-88.1z"], |
| 1065 | 1066 | zhihu:[640,512,[],"f63f","M170.54 148.13v217.54l23.43.01 7.71 26.37 42.01-26.37h49.53V148.13H170.54zm97.75 193.93h-27.94l-27.9 17.51-5.08-17.47-11.9-.04V171.75h72.82v170.31zm-118.46-94.39H97.5c1.74-27.1 2.2-51.59 2.2-73.46h51.16s1.97-22.56-8.58-22.31h-88.5c3.49-13.12 7.87-26.66 13.12-40.67 0 0-24.07 0-32.27 21.57-3.39 8.9-13.21 43.14-30.7 78.12 5.89-.64 25.37-1.18 36.84-22.21 2.11-5.89 2.51-6.66 5.14-14.53h28.87c0 10.5-1.2 66.88-1.68 73.44H20.83c-11.74 0-15.56 23.62-15.56 23.62h65.58C66.45 321.1 42.83 363.12 0 396.34c20.49 5.85 40.91-.93 51-9.9 0 0 22.98-20.9 35.59-69.25l53.96 64.94s7.91-26.89-1.24-39.99c-7.58-8.92-28.06-33.06-36.79-41.81L87.9 311.95c4.36-13.98 6.99-27.55 7.87-40.67h61.65s-.09-23.62-7.59-23.62v.01zm412.02-1.6c20.83-25.64 44.98-58.57 44.98-58.57s-18.65-14.8-27.38-4.06c-6 8.15-36.83 48.2-36.83 48.2l19.23 14.43zm-150.09-59.09c-9.01-8.25-25.91 2.13-25.91 2.13s39.52 55.04 41.12 57.45l19.46-13.73s-25.67-37.61-34.66-45.86h-.01zM640 258.35c-19.78 0-130.91.93-131.06.93v-101c4.81 0 12.42-.4 22.85-1.2 40.88-2.41 70.13-4 87.77-4.81 0 0 12.22-27.19-.59-33.44-3.07-1.18-23.17 4.58-23.17 4.58s-165.22 16.49-232.36 18.05c1.6 8.82 7.62 17.08 15.78 19.55 13.31 3.48 22.69 1.7 49.15.89 24.83-1.6 43.68-2.43 56.51-2.43v99.81H351.41s2.82 22.31 25.51 22.85h107.94v70.92c0 13.97-11.19 21.99-24.48 21.12-14.08.11-26.08-1.15-41.69-1.81 1.99 3.97 6.33 14.39 19.31 21.84 9.88 4.81 16.17 6.57 26.02 6.57 29.56 0 45.67-17.28 44.89-45.31v-73.32h122.36c9.68 0 8.7-23.78 8.7-23.78l.03-.01z"] |
| 1066 | -},Pd={ad:[512,512,[],"f641","M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"], | |
| 1067 | +},Ld={ad:[512,512,[],"f641","M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"], | |
| 1067 | 1068 | "address-book":[448,512,[],"f2b9","M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"], |
| 1068 | 1069 | "address-card":[576,512,[],"f2bb","M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"],adjust:[512,512,[],"f042","M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"], |
| 1069 | 1070 | "air-freshener":[384,512,[],"f5d0","M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"], |
| 1070 | 1071 | "align-center":[448,512,[],"f037","M432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM108.1 96h231.81A12.09 12.09 0 0 0 352 83.9V44.09A12.09 12.09 0 0 0 339.91 32H108.1A12.09 12.09 0 0 0 96 44.09V83.9A12.1 12.1 0 0 0 108.1 96zm231.81 256A12.09 12.09 0 0 0 352 339.9v-39.81A12.09 12.09 0 0 0 339.91 288H108.1A12.09 12.09 0 0 0 96 300.09v39.81a12.1 12.1 0 0 0 12.1 12.1z"],"align-justify":[448,512,[],"f039","M432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"], |
| @@ -1813,36 +1814,37 @@ | ||
| 1813 | 1814 | "wine-glass":[288,512,[],"f4e3","M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"],"wine-glass-alt":[288,512,[],"f5ce","M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"], |
| 1814 | 1815 | "won-sign":[576,512,[],"f159","M564 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-48l18.6-80.6c1.7-7.5-4-14.7-11.7-14.7h-46.1c-5.7 0-10.6 4-11.7 9.5L450.7 128H340.8l-19.7-86c-1.3-5.5-6.1-9.3-11.7-9.3h-44c-5.6 0-10.4 3.8-11.7 9.3l-20 86H125l-17.5-85.7c-1.1-5.6-6.1-9.6-11.8-9.6H53.6c-7.7 0-13.4 7.1-11.7 14.6L60 128H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h62.3l7.2 32H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h83.9l40.9 182.6c1.2 5.5 6.1 9.4 11.7 9.4h56.8c5.6 0 10.4-3.9 11.7-9.3L259.3 288h55.1l42.4 182.7c1.3 5.4 6.1 9.3 11.7 9.3h56.8c5.6 0 10.4-3.9 11.7-9.3L479.1 288H564c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-70.1l7.4-32zM183.8 342c-6.2 25.8-6.8 47.2-7.3 47.2h-1.1s-1.7-22-6.8-47.2l-11-54h38.8zm27.5-118h-66.8l-6.5-32h80.8zm62.9 0l2-8.6c1.9-8 3.5-16 4.8-23.4h11.8c1.3 7.4 2.9 15.4 4.8 23.4l2 8.6zm130.9 118c-5.1 25.2-6.8 47.2-6.8 47.2h-1.1c-.6 0-1.1-21.4-7.3-47.2l-12.4-54h39.1zm25.2-118h-67.4l-7.3-32h81.6z"], |
| 1815 | 1816 | wrench:[512,512,[],"f0ad","M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"], |
| 1816 | 1817 | "x-ray":[640,512,[],"f497","M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"], |
| 1817 | -"yen-sign":[384,512,[],"f157","M351.2 32h-65.3c-4.6 0-8.8 2.6-10.8 6.7l-55.4 113.2c-14.5 34.7-27.1 71.9-27.1 71.9h-1.3s-12.6-37.2-27.1-71.9L108.8 38.7c-2-4.1-6.2-6.7-10.8-6.7H32.8c-9.1 0-14.8 9.7-10.6 17.6L102.3 200H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h88.2l19.8 37.2V320H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h108v92c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12v-92h108c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12H232v-26.8l19.8-37.2H340c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12h-58.3l80.1-150.4c4.3-7.9-1.5-17.6-10.6-17.6z"],"yin-yang":[496,512,[],"f6ad","M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]};var jd=i(1168);const wd=(t,e,i,o)=>{ | |
| 1818 | -const a=zd(t,e,o),{title:l,alt:n,imgUrl:s,imgUrlTablet:r,imgUrlMobile:b,imgId:c,imgNaturalWidth:d,imgNaturalHeight:u}=a,p=e?.imgUrl,{imgId:m,imgIdTablet:h,imgIdMobile:g}=e||{};let f;const y={};let T;"Tablet"===o?(f={imgUrl:p||s,imgUrlTablet:r||s},g||(f.imgUrlMobile=b||s),T={...e?.widthHeightWidget}):"Mobile"===o?(f={imgUrl:p||s,imgUrlMobile:b||r||s},T={...e?.widthHeightWidget}):(f={imgUrl:s},h||(f.imgUrlTablet=r||s),g||(f.imgUrlMobile=b||s),T={...e?.widthHeightWidget,imgNaturalWidth:d,imgNaturalHeight:u}),m?y["imgId"+o]=c:y.imgId=c,o||!h&&!g||(y.showNotice=!0),n&&!e?.imgAltText&&(y.imgAltText=n),i({...y,imgTitle:l,...f,widthHeightWidget:(0,M.jI)(jd.aY,{...jd.aY,...T})})},zd=t=>{const{id:e,url:i,width:o,height:a,title:l,alt:n}=t;let s;s=t?.sizes?t?.sizes:t?.media_details?.sizes;const r=s?.large?.width,b=s?.large?.height;return{imgId:e,title:l,alt:n||"",imgNaturalWidth:r||o,imgNaturalHeight:b||a,width:r||o,height:b||a,imgUrl:s?.large?.url||i,widthTablet:r||o,heightTablet:b||a, | |
| 1819 | -imgUrlTablet:i,widthMobile:r||o,heightMobile:b||a,imgUrlMobile:i}},Cd=t=>{const e=[];for(const i in t)if(Object.hasOwnProperty.call(t,i)){const t=i.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");e.push({label:t,value:i})}return e},Ad={label:I().string,attributePrefix:I().string,setAttributes:I().func,attributes:I().object,onChangeHandler:I().func,deleteHandler:I().func,getIconClass:I().func,legacySupport:I().bool,legacyIconSizeSupport:I().bool,viewSupport:I().bool};function Ld({label:t,attributePrefix:e="icon",attributes:i,setAttributes:o,onChangeHandler:l,deleteHandler:n,getIconClass:s,legacySupport:b=!1,legacyIconSizeSupport:c=!1,viewSupport:d=!1}){const[u,p]=(0,a.useState)(!1),[m,h]=(0,a.useState)(""),[g,f]=(0,a.useState)("all"),[y,T]=(0,a.useState)([]),H=e+"ImageUrl",x=e+"ImageSize",k=i[x],v=i[e+"Type"],_=i[e+"Shape"],R=i[e+"ImageID"],{image:S}=(0,r.useSelect)(t=>{const{getMedia:e}=t(ge.store);return{image:R?e(R):null}},[R]);(0,a.useEffect)(()=>{ | |
| 1820 | -const t=S?.media_details?.sizes,e=Cd(t);T(e),S&&!k&&o({[H]:S?.media_details?.sizes?.thumbnail?.source_url,[x]:"thumbnail"})},[S,k]);const W=s?s():i[e+"Class"],U=i[e+"ImageUrl"];return(0,L.jsxs)("div",{children:[(0,L.jsx)(ot,{label:t,isResponsive:!1}),(0,L.jsxs)("div",{role:"presentation",className:"ablocks-placeholder-icon-wrapper",onClick:()=>{U?(0,vd.S4)().then(t=>{o({[e+"SvgPath"]:void 0,[e+"SvgViewBox"]:void 0,[e+"Class"]:"",[e+"ImageUrl"]:t?.url,[e+"ImageID"]:t?.id,[e+"ImageSize"]:"thumbnail"})}):p(!0)},children:[(0,L.jsx)("img",{className:"ablocks-placeholder-image",src:M.hq+"/assets/images/placeholder-image.svg",alt:""}),(W||U)&&(0,L.jsxs)(L.Fragment,{children:[W&&(0,L.jsx)("div",{className:"iconWrapper",children:(0,L.jsx)("i",{className:W})}),U&&(0,L.jsx)("div",{className:"imageWrapper",children:(0,L.jsx)("img",{src:U,alt:""})}),(0,L.jsx)("button",{className:"ablocks-delete-icon",onClick:t=>{t.stopPropagation(),n?n():o({[e+"Class"]:""}),o({[e+"SvgPath"]:void 0, | |
| 1821 | -[e+"SvgViewBox"]:void 0,[e+"Class"]:"Empty",[e+"ImageUrl"]:void 0,[e+"ImageID"]:void 0,[e+"ImageSize"]:void 0})},children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})]}),!b&&(0,L.jsxs)("div",{className:"ablocks-icon-selector__actions",children:[(0,L.jsx)("button",{onClick:t=>{t.stopPropagation(),p(!0)},className:"ablocks-icon-selector__action--icon-button",children:(0,z.__)("Icon Library","ablocks")}),(0,L.jsx)("button",{onClick:t=>{t.stopPropagation(),(0,vd.S4)().then(t=>{o({[e+"SvgPath"]:void 0,[e+"SvgViewBox"]:void 0,[e+"Class"]:"",[e+"ImageUrl"]:t?.url,[e+"ImageID"]:t?.id,[e+"ImageSize"]:"thumbnail"})})},className:"ablocks-icon-selector__action--svg-button",children:(0,z.__)("Upload Image","ablocks")})]})]}),d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("View","ablocks"),options:[{value:"default",label:"Default"},{value:"stacked",label:"Stacked"},{value:"framed",label:"Framed"}],attributeName:e+"Type",attributeValue:v||"default", | |
| 1822 | -setAttributes:o}),"default"!==v&&(0,L.jsx)(Ut,{label:(0,z.__)("Shape","ablocks"),options:[{label:"Circle",value:"circle"},{label:"Square",value:"square"}],isResponsive:!1,attributeValue:_,attributeName:e+"Shape",setAttributes:o})]}),c&&(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),min:0,max:300,isInline:!1,attributeName:e+"Sizing",attributeValue:i[e+"Sizing"],setAttributes:o,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0}),!b&&(0,L.jsxs)(L.Fragment,{children:[U?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Image sizes","ablocks"),options:y,attributeName:x,setAttributes:o,attributeValue:k,onChangeHandler:t=>{o({[H]:S?.media_details?.sizes?.[t]?.source_url,[x]:t})}}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:600,isInline:!1,attributeName:e+"Sizing",attributeValue:i[e+"Sizing"]??"0",setAttributes:o,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem", | |
| 1823 | -label:"rem"},{value:"em",label:"em"}],isResponsive:!0,autoSyncRange:!0})]}):(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),min:0,max:300,isInline:!1,attributeName:e+"Sizing",attributeValue:i[e+"Sizing"],setAttributes:o,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("View","ablocks"),options:[{value:"default",label:"Default"},{value:"stacked",label:"Stacked"},{value:"framed",label:"Framed"}],attributeName:e+"Type",attributeValue:v||"default",setAttributes:o}),"default"!==v&&(0,L.jsx)(Ut,{label:(0,z.__)("Shape","ablocks"),options:[{label:"Circle",value:"circle"},{label:"Square",value:"square"}],isResponsive:!1,attributeValue:_,attributeName:e+"Shape",setAttributes:o})]}),u&&(0,L.jsx)(A.Modal,{className:"ablocks-icon-uploader-modal-root-wrapper",onRequestClose:()=>{p(!1)},children:(0,L.jsx)("div",{className:"ablocks-icon-library",children:(0,L.jsxs)("div",{ | |
| 1824 | -className:"ablocks-icon-library--wrapper",children:[(0,L.jsxs)("div",{className:"ablocks-icon-library--header",children:[(0,L.jsx)("input",{type:"text",className:"ablocks-icon-library--icons-search",placeholder:(0,z.__)("search icons…","ablocks"),value:m,onChange:t=>h(t.target.value)}),(0,L.jsx)("div",{className:"ablocks-icon-library--header--btn-wrapper",children:(0,L.jsx)(V,{icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),onClick:()=>{p(!1)}})})]}),(0,L.jsxs)("div",{className:"ablocks-icon-library--content-area",children:[(0,L.jsxs)("div",{className:"ablocks-icon-library--icons-type",children:[(0,L.jsx)("span",{role:"presentation",className:"all"===g?"active":"",onClick:()=>f("all"),onKeyDown:()=>{},children:(0,z.__)("All","ablocks")}),(0,L.jsx)("span",{role:"presentation",className:"solid"===g?"active":"",onClick:()=>f("solid"),onKeyDown:()=>{},children:(0,z.__)("Solid","ablocks")}),(0,L.jsx)("span",{role:"presentation",className:"brands"===g?"active":"", | |
| 1825 | -onClick:()=>f("brands"),onKeyDown:()=>{},children:(0,z.__)("Brands","ablocks")})]}),(0,L.jsx)("div",{className:"ablocks-icon-library--icons",children:(0,L.jsx)("h2",{className:"ablocks-icon-library--icons--total-icon",children:(0,z.__)("All Icons","ablocks")})}),(0,L.jsx)(Sd,{changeHandler:t=>{l?l(t):(t=>{const i={};switch(t.substring(2,3)){case"r":i.data=Wd;break;case"s":i.data=Pd;break;case"b":i.data=Ud}const a=t.substring(7),l=i.data[a],n=`0 0 ${l[0]} ${l[1]}`,s=l[4];o({[e+"SvgPath"]:s,[e+"SvgViewBox"]:n,[e+"Class"]:t,[e+"ImageUrl"]:void 0,[e+"ImageID"]:void 0,[e+"ImageSize"]:void 0})})(t),p(!1)},searchIconQuery:m,modalIconType:g})]})]})})})]})}Ld.propTypes=Ad;const Dd={label:I().string,attributePrefix:I().string,setAttributes:I().func,attributes:I().object,onChangeHandler:I().func,deleteHandler:I().func,getIconClass:I().func,isHoverColor:I().bool};function Nd(t){ | |
| 1826 | -const{setAttributes:e,attributes:i,attributePrefix:o="icon",isHoverColor:a=!1}=t,n=i[o+"Type"],s=i[o+"ImageUrl"],r="stacked"===n||"framed"===n;return(0,L.jsxs)(l().Fragment,{children:[a?(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[!s&&(0,L.jsx)(vs,{label:(0,z.__)("Primary color","ablocks"),attributeName:o+"Color",attributeValue:i[o+"Color"],setAttributes:e}),n&&(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:o+"BgColor",attributeValue:i[o+"BgColor"],setAttributes:e})]}),hover:(0,L.jsxs)(L.Fragment,{children:[!s&&(0,L.jsx)(vs,{label:(0,z.__)("Hover Primary color","ablocks"),attributeName:o+"HoverColor",attributeValue:i[o+"HoverColor"],setAttributes:e}),n&&(0,L.jsx)(vs,{label:(0,z.__)("Hover Background color","ablocks"),attributeName:o+"HoverBgColor",attributeValue:i[o+"HoverBgColor"],setAttributes:e})]})}):(0,L.jsxs)(L.Fragment,{children:[!s&&(0,L.jsx)(vs,{label:(0,z.__)("Primary color","ablocks"),attributeName:o+"Color",attributeValue:i[o+"Color"], | |
| 1827 | -setAttributes:e}),n&&(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:o+"BgColor",attributeValue:i[o+"BgColor"],setAttributes:e})]}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vt,{label:(0,z.__)("Rotate","ablocks"),min:0,max:360,isInline:!1,isResponsive:!0,attributeName:o+"Rotated",attributeValue:i[o+"Rotated"],setAttributes:e,hasUnit:!0,unitOptions:[{value:"deg",label:"deg"}]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Rotate","ablocks"),min:0,max:360,isInline:!1,isResponsive:!0,attributeName:o+"RotateHover",attributeValue:i[o+"RotateHover"],setAttributes:e,hasUnit:!0,unitOptions:[{value:"deg",label:"deg"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,isInline:!1,isResponsive:!1,attributeName:o+"transitionDuration",attributeValue:i[o+"transitionDuration"]??"0",setAttributes:e})]})}),r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0, | |
| 1828 | -attributeName:o+"Padding",attributeValue:i[o+"Padding"],setAttributes:e}),(0,L.jsx)(ot,{label:"Border",isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:o+"Border",attributeValue:i[o+"Border"]||{},setAttributes:e,hasHover:!1}),(0,L.jsx)(ot,{label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:o+"BoxShadow",attributeValue:i[o+"BoxShadow"]||{},setAttributes:e})]})]})}function Id(t){const{attributes:e,setAttributes:i}=t,{alignment:o,link:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-icon-block/",children:(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o, | |
| 1829 | -setAttributes:i,isInline:!1,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}]}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:a,setAttributes:i})]}),style:(0,L.jsx)(Nd,{attributes:e,setAttributes:i,isHoverColor:!0})})})})})})}Nd.propTypes=Dd,Id.propTypes={};const Vd=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o})=>{const a=i?i.path||"":e[t+"SvgPath"],l=i?i.viewBox||"":e[t+"SvgViewBox"],n=e[t+"ImageUrl"];return"Empty"!==e[t+"Class"]&&!!(n||l||a)&&(0,L.jsx)("div",{className:"ablocks-icon-wrap",children:n?(0,L.jsx)("img",{className:"ablocks-image-icon",src:n,alt:""}):(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l,className:"ablocks-svg-icon"+(l||a?"":" empty-svg"),style:o,children:(0,L.jsx)("path",{d:a})})})},Od={UU:"ablocks/icon",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""}, | |
| 1830 | -iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute", | |
| 1831 | -selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px", | |
| 1832 | -isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 1833 | -icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"", | |
| 1834 | -widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 1835 | -unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"", | |
| 1836 | -positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 1837 | -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:"", | |
| 1838 | -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:"", | |
| 1839 | -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:{ | |
| 1840 | -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"}}, | |
| 1841 | -_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 Yd(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"),d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,Wb.jM)(b)}),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:o,setAttributes:i}) | |
| 1842 | -}),(0,L.jsx)(Nb.A,{blockId:a,name:Od.UU,attributes:e,typography:[],children:c?(0,L.jsx)("a",{...d,children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)(Vd,{attributes:e})})]})}Yd.propTypes={};const Xd=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o};function Bd(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener",s&&(b={...b,...(0,Wb.jM)(s)}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:Od.UU,attributes:e,children:o&&r?(0,L.jsx)("a",{...b,children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)(Vd,{attributes:e})})})}Bd.propTypes={};function Ed(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener", | |
| 1843 | -s&&(b={...b,...(0,Wb.jM)(s)}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:"ablocks/icon",attributes:e,children:o&&r?(0,L.jsx)("a",{...b,children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)(Vd,{attributes:e})})})}Ed.propTypes={},(0,M.xV)(Od.UU)&&(0,o.registerBlockType)(Od.UU,{title:"Icon",attributes:Od.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-container",Xd(i),Xd(i,"Tablet"),Xd(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")), | |
| 1844 | -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover img.ablocks-image-icon",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover svg.ablocks-svg-icon",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),(0,b.applyFilters)("ablocks.icon.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Id,{...t}),(0,L.jsx)(Yd,{...t})]})},save:Bd,deprecated:[{attributes:{block_id:{type:"string",default:""},iconSvgPath:{type:"string", | |
| 1818 | +"yen-sign":[384,512,[],"f157","M351.2 32h-65.3c-4.6 0-8.8 2.6-10.8 6.7l-55.4 113.2c-14.5 34.7-27.1 71.9-27.1 71.9h-1.3s-12.6-37.2-27.1-71.9L108.8 38.7c-2-4.1-6.2-6.7-10.8-6.7H32.8c-9.1 0-14.8 9.7-10.6 17.6L102.3 200H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h88.2l19.8 37.2V320H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h108v92c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12v-92h108c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12H232v-26.8l19.8-37.2H340c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12h-58.3l80.1-150.4c4.3-7.9-1.5-17.6-10.6-17.6z"],"yin-yang":[496,512,[],"f6ad","M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]};var Dd=i(1168);const Nd=(t,e,i,o)=>{ | |
| 1819 | +const a=Id(t,e,o),{title:l,alt:n,imgUrl:s,imgUrlTablet:r,imgUrlMobile:b,imgId:c,imgNaturalWidth:d,imgNaturalHeight:u}=a,p=e?.imgUrl,{imgId:m,imgIdTablet:h,imgIdMobile:g}=e||{};let f;const y={};let T;"Tablet"===o?(f={imgUrl:p||s,imgUrlTablet:r||s},g||(f.imgUrlMobile=b||s),T={...e?.widthHeightWidget}):"Mobile"===o?(f={imgUrl:p||s,imgUrlMobile:b||r||s},T={...e?.widthHeightWidget}):(f={imgUrl:s},h||(f.imgUrlTablet=r||s),g||(f.imgUrlMobile=b||s),T={...e?.widthHeightWidget,imgNaturalWidth:d,imgNaturalHeight:u}),m?y["imgId"+o]=c:y.imgId=c,o||!h&&!g||(y.showNotice=!0),n&&!e?.imgAltText&&(y.imgAltText=n),i({...y,imgTitle:l,...f,widthHeightWidget:(0,M.jI)(Dd.aY,{...Dd.aY,...T})})},Id=t=>{const{id:e,url:i,width:o,height:a,title:l,alt:n}=t;let s;s=t?.sizes?t?.sizes:t?.media_details?.sizes;const r=s?.large?.width,b=s?.large?.height;return{imgId:e,title:l,alt:n||"",imgNaturalWidth:r||o,imgNaturalHeight:b||a,width:r||o,height:b||a,imgUrl:s?.large?.url||i,widthTablet:r||o,heightTablet:b||a, | |
| 1820 | +imgUrlTablet:i,widthMobile:r||o,heightMobile:b||a,imgUrlMobile:i}},Vd=t=>{const e=[];for(const i in t)if(Object.hasOwnProperty.call(t,i)){const t=i.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");e.push({label:t,value:i})}return e},Od={label:Y().string,attributePrefix:Y().string,setAttributes:Y().func,attributes:Y().object,onChangeHandler:Y().func,deleteHandler:Y().func,getIconClass:Y().func,legacySupport:Y().bool,legacyIconSizeSupport:Y().bool,viewSupport:Y().bool};function Yd({label:t,attributePrefix:e="icon",attributes:i,setAttributes:o,onChangeHandler:l,deleteHandler:n,getIconClass:s,legacySupport:b=!1,legacyIconSizeSupport:c=!1,viewSupport:d=!1}){const[u,p]=(0,a.useState)(!1),[m,h]=(0,a.useState)(""),[g,f]=(0,a.useState)("all"),[y,T]=(0,a.useState)([]),H=e+"ImageUrl",x=e+"ImageSize",k=i[x],v=i[e+"Type"],_=i[e+"Shape"],R=i[e+"ImageID"],{image:S}=(0,r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:R?e(R):null}},[R]);(0,a.useEffect)(()=>{ | |
| 1821 | +const t=S?.media_details?.sizes,e=Vd(t);T(e),S&&!k&&o({[H]:S?.media_details?.sizes?.thumbnail?.source_url,[x]:"thumbnail"})},[S,k]);const W=s?s():i[e+"Class"],P=i[e+"ImageUrl"];return(0,I.jsxs)("div",{children:[(0,I.jsx)(at,{label:t,isResponsive:!1}),(0,I.jsxs)("div",{role:"presentation",className:"ablocks-placeholder-icon-wrapper",onClick:()=>{P?(0,Ud.S4)().then(t=>{o({[e+"SvgPath"]:void 0,[e+"SvgViewBox"]:void 0,[e+"Class"]:"",[e+"ImageUrl"]:t?.url,[e+"ImageID"]:t?.id,[e+"ImageSize"]:"thumbnail"})}):p(!0)},children:[(0,I.jsx)("img",{className:"ablocks-placeholder-image",src:M.hq+"/assets/images/placeholder-image.svg",alt:""}),(W||P)&&(0,I.jsxs)(I.Fragment,{children:[W&&(0,I.jsx)("div",{className:"iconWrapper",children:(0,I.jsx)("i",{className:W})}),P&&(0,I.jsx)("div",{className:"imageWrapper",children:(0,I.jsx)("img",{src:P,alt:""})}),(0,I.jsx)("button",{className:"ablocks-delete-icon",onClick:t=>{t.stopPropagation(),n?n():o({[e+"Class"]:""}),o({[e+"SvgPath"]:void 0, | |
| 1822 | +[e+"SvgViewBox"]:void 0,[e+"Class"]:"Empty",[e+"ImageUrl"]:void 0,[e+"ImageID"]:void 0,[e+"ImageSize"]:void 0})},children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})]}),!b&&(0,I.jsxs)("div",{className:"ablocks-icon-selector__actions",children:[(0,I.jsx)("button",{onClick:t=>{t.stopPropagation(),p(!0)},className:"ablocks-icon-selector__action--icon-button",children:(0,L.__)("Icon Library","ablocks")}),(0,I.jsx)("button",{onClick:t=>{t.stopPropagation(),(0,Ud.S4)().then(t=>{o({[e+"SvgPath"]:void 0,[e+"SvgViewBox"]:void 0,[e+"Class"]:"",[e+"ImageUrl"]:t?.url,[e+"ImageID"]:t?.id,[e+"ImageSize"]:"thumbnail"})})},className:"ablocks-icon-selector__action--svg-button",children:(0,L.__)("Upload Image","ablocks")})]})]}),d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("View","ablocks"),options:[{value:"default",label:(0,L.__)("Default","ablocks")},{value:"stacked",label:(0,L.__)("Stacked","ablocks")},{value:"framed",label:(0,L.__)("Framed","ablocks")}], | |
| 1823 | +attributeName:e+"Type",attributeValue:v||"default",setAttributes:o}),"default"!==v&&(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:[{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}],isResponsive:!1,attributeValue:_,attributeName:e+"Shape",setAttributes:o})]}),c&&(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),min:0,max:300,isInline:!1,attributeName:e+"Sizing",attributeValue:i[e+"Sizing"],setAttributes:o,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0}),!b&&(0,I.jsxs)(I.Fragment,{children:[P?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Image sizes","ablocks"),options:y,attributeName:x,setAttributes:o,attributeValue:k,onChangeHandler:t=>{o({[H]:S?.media_details?.sizes?.[t]?.source_url,[x]:t})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:600,isInline:!1,attributeName:e+"Sizing",attributeValue:i[e+"Sizing"]??"0",setAttributes:o, | |
| 1824 | +hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0,autoSyncRange:!0})]}):(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),min:0,max:300,isInline:!1,attributeName:e+"Sizing",attributeValue:i[e+"Sizing"],setAttributes:o,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isResponsive:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("View","ablocks"),options:[{value:"default",label:(0,L.__)("Default","ablocks")},{value:"stacked",label:(0,L.__)("Stacked","ablocks")},{value:"framed",label:(0,L.__)("Framed","ablocks")}],attributeName:e+"Type",attributeValue:v||"default",setAttributes:o}),"default"!==v&&(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:[{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}],isResponsive:!1,attributeValue:_,attributeName:e+"Shape",setAttributes:o})]}),u&&(0,I.jsx)(N.Modal,{ | |
| 1825 | +className:"ablocks-icon-uploader-modal-root-wrapper",onRequestClose:()=>{p(!1)},children:(0,I.jsx)("div",{className:"ablocks-icon-library",children:(0,I.jsxs)("div",{className:"ablocks-icon-library--wrapper",children:[(0,I.jsxs)("div",{className:"ablocks-icon-library--header",children:[(0,I.jsx)("input",{type:"text",className:"ablocks-icon-library--icons-search",placeholder:(0,L.__)("search icons…","ablocks"),value:m,onChange:t=>h(t.target.value)}),(0,I.jsx)("div",{className:"ablocks-icon-library--header--btn-wrapper",children:(0,I.jsx)(X,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),onClick:()=>{p(!1)}})})]}),(0,I.jsxs)("div",{className:"ablocks-icon-library--content-area",children:[(0,I.jsxs)("div",{className:"ablocks-icon-library--icons-type",children:[(0,I.jsx)("span",{role:"presentation",className:"all"===g?"active":"",onClick:()=>f("all"),onKeyDown:()=>{},children:(0,L.__)("All","ablocks")}),(0,I.jsx)("span",{role:"presentation", | |
| 1826 | +className:"solid"===g?"active":"",onClick:()=>f("solid"),onKeyDown:()=>{},children:(0,L.__)("Solid","ablocks")}),(0,I.jsx)("span",{role:"presentation",className:"brands"===g?"active":"",onClick:()=>f("brands"),onKeyDown:()=>{},children:(0,L.__)("Brands","ablocks")})]}),(0,I.jsx)("div",{className:"ablocks-icon-library--icons",children:(0,I.jsx)("h2",{className:"ablocks-icon-library--icons--total-icon",children:(0,L.__)("All Icons","ablocks")})}),(0,I.jsx)(zd,{changeHandler:t=>{l?l(t):(t=>{const i={};switch(t.substring(2,3)){case"r":i.data=Cd;break;case"s":i.data=Ld;break;case"b":i.data=Ad}const a=t.substring(7),l=i.data[a],n=`0 0 ${l[0]} ${l[1]}`,s=l[4];o({[e+"SvgPath"]:s,[e+"SvgViewBox"]:n,[e+"Class"]:t,[e+"ImageUrl"]:void 0,[e+"ImageID"]:void 0,[e+"ImageSize"]:void 0})})(t),p(!1)},searchIconQuery:m,modalIconType:g})]})]})})})]})}Yd.propTypes=Od;const Xd={label:Y().string,attributePrefix:Y().string,setAttributes:Y().func,attributes:Y().object,onChangeHandler:Y().func, | |
| 1827 | +deleteHandler:Y().func,getIconClass:Y().func,isHoverColor:Y().bool};function Bd(t){const{setAttributes:e,attributes:i,attributePrefix:o="icon",isHoverColor:a=!1}=t,n=i[o+"Type"],s=i[o+"ImageUrl"],r="stacked"===n||"framed"===n;return(0,I.jsxs)(l().Fragment,{children:[a?(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[!s&&(0,I.jsx)(Ws,{label:(0,L.__)("Primary color","ablocks"),attributeName:o+"Color",attributeValue:i[o+"Color"],setAttributes:e}),n&&(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:o+"BgColor",attributeValue:i[o+"BgColor"],setAttributes:e})]}),hover:(0,I.jsxs)(I.Fragment,{children:[!s&&(0,I.jsx)(Ws,{label:(0,L.__)("Hover Primary color","ablocks"),attributeName:o+"HoverColor",attributeValue:i[o+"HoverColor"],setAttributes:e}),n&&(0,I.jsx)(Ws,{label:(0,L.__)("Hover Background color","ablocks"),attributeName:o+"HoverBgColor",attributeValue:i[o+"HoverBgColor"],setAttributes:e})]})}):(0,I.jsxs)(I.Fragment,{children:[!s&&(0,I.jsx)(Ws,{label:(0, | |
| 1828 | +L.__)("Primary color","ablocks"),attributeName:o+"Color",attributeValue:i[o+"Color"],setAttributes:e}),n&&(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:o+"BgColor",attributeValue:i[o+"BgColor"],setAttributes:e})]}),(0,I.jsx)(At,{normal:(0,I.jsx)(_t,{label:(0,L.__)("Rotate","ablocks"),min:0,max:360,isInline:!1,isResponsive:!0,attributeName:o+"Rotated",attributeValue:i[o+"Rotated"],setAttributes:e,hasUnit:!0,unitOptions:[{value:"deg",label:"deg"}]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Rotate","ablocks"),min:0,max:360,isInline:!1,isResponsive:!0,attributeName:o+"RotateHover",attributeValue:i[o+"RotateHover"],setAttributes:e,hasUnit:!0,unitOptions:[{value:"deg",label:"deg"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,isInline:!1,isResponsive:!1,attributeName:o+"transitionDuration",attributeValue:i[o+"transitionDuration"]??"0",setAttributes:e})]})}),r&&(0,I.jsxs)(I.Fragment,{ | |
| 1829 | +children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:o+"Padding",attributeValue:i[o+"Padding"],setAttributes:e}),(0,I.jsx)(at,{label:"Border",isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:o+"Border",attributeValue:i[o+"Border"]||{},setAttributes:e,hasHover:!1}),(0,I.jsx)(at,{label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:o+"BoxShadow",attributeValue:i[o+"BoxShadow"]||{},setAttributes:e})]})]})}function Ed(t){const{attributes:e,setAttributes:i}=t,{alignment:o,link:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-icon-block/",children:(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Jt,{ | |
| 1830 | +label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:a,setAttributes:i})]}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i,isHoverColor:!0})})})})})})}Bd.propTypes=Xd,Ed.propTypes={};const Fd=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o})=>{const a=i?i.path||"":e[t+"SvgPath"],l=i?i.viewBox||"":e[t+"SvgViewBox"],n=e[t+"ImageUrl"];return"Empty"!==e[t+"Class"]&&!!(n||l||a)&&(0,I.jsx)("div",{className:"ablocks-icon-wrap",children:n?(0,I.jsx)("img",{className:"ablocks-image-icon",src:n,alt:""}):(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l,className:"ablocks-svg-icon"+(l||a?"":" empty-svg"),style:o, | |
| 1831 | +children:(0,I.jsx)("path",{d:a})})})},qd={UU:"ablocks/icon",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute", | |
| 1832 | +selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0, | |
| 1833 | +isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 1834 | +iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"", | |
| 1835 | +topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"", | |
| 1836 | +rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px", | |
| 1837 | +unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"", | |
| 1838 | +imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"", | |
| 1839 | +imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"", | |
| 1840 | +scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"", | |
| 1841 | +flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default", | |
| 1842 | +shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function $d(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"), | |
| 1843 | +d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,wb.jM)(b)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:a,name:qd.UU,attributes:e,typography:[],children:c?(0,I.jsx)("a",{...d,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})]})}$d.propTypes={};const Gd=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o};function Zd(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:qd.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}Zd.propTypes={};function Kd(t){ | |
| 1844 | +const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:"ablocks/icon",attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}Kd.propTypes={},(0,M.xV)(qd.UU)&&(0,o.registerBlockType)(qd.UU,{title:(0,L.__)("Icon","ablocks"),attributes:qd.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l), | |
| 1845 | +null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",Gd(i),Gd(i,"Tablet"),Gd(i,"Mobile"),e(t=>Gd(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover img.ablocks-image-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))), | |
| 1846 | +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover svg.ablocks-svg-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.icon.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Ed,{...t}),(0,I.jsx)($d,{...t})]})},save:Zd,deprecated:[{attributes:{block_id:{type:"string",default:""},iconSvgPath:{type:"string", | |
| 1845 | 1847 | 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" |
| 1846 | 1848 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, |
| 1847 | 1849 | iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"", |
| 1848 | 1850 | topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"", |
| @@ -1851,15 +1853,15 @@ | ||
| 1851 | 1853 | imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"", |
| 1852 | 1854 | imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"", |
| 1853 | 1855 | scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"", |
| 1854 | 1856 | flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default", |
| 1855 | -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:Ed}]});var Fd=i(17463);function qd(t){const{attributes:e,setAttributes:i,context:o}=t,{buttonType:a,text:n,position:s,alignment:r,buttonSize:b,textShadow:c,typography:d,textColor:u,textColorH:p,background:m,backgroundH:h,padding:g,iconPosition:f,link:y,showIcon:T,iconSpace:H}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-button-block/",children:[(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Button","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0, | |
| 1856 | -z.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:[{label:"left",value:"left",icon:"arrow-left"},{label:"center",value:"center",icon:"wrap"},{label:"right",value:"right",icon:"arrow-right"},{label:"stretch",value:"stretch",icon:"align-center"}],isInline:!1}),"stretch"===s?.value&&(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:[{label:"start",value:"start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"end",value:"end",icon:"right"},{label:"space-between",value:"space-between",icon:"justify"}],isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),options:[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Link","ablocks"),value:"link"},{label:(0,z.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,z.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,z.__)("Success","ablocks"),value:"#198754"},{label:(0, | |
| 1857 | -z.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,z.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:a||"default",attributeName:"buttonType",setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"text",attributeValue:n,setAttributes:i,isInline:!1,context:o}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),options:[{label:(0,z.__)("Extra small","ablocks"),value:"xs"},{label:(0,z.__)("Small","ablocks"),value:"sm"},{label:(0,z.__)("Medium","ablocks"),value:"md"},{label:(0,z.__)("Large","ablocks"),value:"lg"},{label:(0,z.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:b||"sm",attributeName:"buttonSize",setAttributes:i}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:y,setAttributes:i}),"link"!==a&&(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:T,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 1858 | -L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u||"#000000",setAttributes:i}),"link"!==a&&(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:m||"#ddd",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:p,setAttributes:i}),"link"!==a&&(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:h,setAttributes:i}),(0,L.jsx)(vt,{ | |
| 1859 | -label:(0,z.__)("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,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),T&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,L.jsx)(Ut,{label:(0, | |
| 1860 | -z.__)("Icon position","ablocks"),options:[{label:(0,z.__)("Before","ablocks"),value:"left"},{label:(0,z.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:H,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Fd.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}qd.propTypes={};const $d={UU:"ablocks/button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Click here"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string", | |
| 1861 | -default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},iconSvgPath:{type:"string", | |
| 1857 | +shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:Kd}]});var Jd=i(17463);function Qd(t){const{attributes:e,setAttributes:i,context:o}=t,{buttonType:a,text:n,position:s,alignment:r,buttonSize:b,textShadow:c,typography:d,textColor:u,textColorH:p,background:m,backgroundH:h,padding:g,iconPosition:f,link:y,showIcon:T,iconSpace:H}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-button-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0, | |
| 1858 | +L.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"},{label:"stretch",value:"stretch",icon:"align-center"}],isInline:!1}),"stretch"===s?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:"space-between",value:"space-between",icon:"justify"}],isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Link","ablocks"),value:"link"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0, | |
| 1859 | +L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:a||"default",attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"text",attributeValue:n,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:b||"sm",attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:y,setAttributes:i}),"link"!==a&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:T, | |
| 1860 | +setAttributes:i,attributeName:"showIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u||"#000000",setAttributes:i}),"link"!==a&&(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:m||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:p,setAttributes:i}),"link"!==a&&(0,I.jsx)(Ws,{label:(0, | |
| 1861 | +L.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:h,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),T&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{ | |
| 1862 | +children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:H,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Jd.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}Qd.propTypes={};const tu={UU:"ablocks/button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Click here"},buttonType:{type:"string",default:"#ddd"}, | |
| 1863 | +buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},iconSvgPath:{type:"string", | |
| 1862 | 1864 | default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox" |
| 1863 | 1865 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", |
| 1864 | 1866 | rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0}, |
| 1865 | 1867 | iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"", |
| @@ -1872,171 +1874,173 @@ | ||
| 1872 | 1874 | 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:"", |
| 1873 | 1875 | 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, |
| 1874 | 1876 | 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:"", |
| 1875 | 1877 | 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:"", |
| 1876 | -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 Gd(t){ | |
| 1877 | -const{attributes:e,setAttributes:i,context:o}=t,{block_id:a,buttonSize:n,iconPosition:r,iconClass:b,showIcon:c,link:{linkTarget:d,noFollow:u,keyValue:p},alignment:m,iconImageID:h,iconImageUrl:g}=e;let f={};return d&&(f.target="_blank"),f.rel=u?d?"nofollow noreferrer noopener":"nofollow":"noopener",p&&(f={...f,...(0,Wb.jM)(p)}),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:m,setAttributes:i})}),(0,L.jsx)(Nb.A,{blockId:a,name:$d.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsxs)("a",{...f,className:s()("ablocks-button",`ablocks-button--${n}`,{[`ablocks-button--icon-${r}`]:b&&r||h&&g}),children:[c&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(Yc,{tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-button__text",onChange:t=>i({text:t}),context:o})]})})]})}Gd.propTypes={};const Zd=(t,e="")=>{const{position:i}=t,o={} | |
| 1878 | -;return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},Kd=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"column-gap",device:e})};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),"link"===t?.buttonType?(l.background="none",l.padding="0",l.cursor="pointer"):l.background=t?.background?(0,gs.qD)(t?.background):t?.buttonType;const n=(0,M.Zy)(t?.padding,{unit:"px"}),s=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),r=(0,M.Zy)(t.typography,{weight:"400"}),b=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,gs.qD)(t?.textColor),...(0,y.qD)(s,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(n,"padding",e),...(0,P.qD)(r,e,b),...(0,c.qD)(t?.padding,"padding",e)}},Jd=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0, | |
| 1879 | -unitDefaultValue:"s",property:"transition-duration"})},o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,gs.qD)(t?.textColorH),background:(0,gs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},Qd=t=>({fill:(0,gs.qD)(t?.textColorH)}),tu=t=>({...(0,pc.qD)(t?.textShadow)});function eu(t){const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,link:{href:r,linkTarget:b,noFollow:c,keyValue:d},iconImageID:u,iconImageUrl:p}=e;let m={};return r&&(m.href=r),b&&(m.target="_blank"),m.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(m={...m,...(0,Wb.jM)(d)}),(0,L.jsx)(oc,{blockId:i,name:$d.UU,attributes:e,children:(0,L.jsxs)("a",{...m,className:s()("ablocks-button",`ablocks-button--${o}`,{[`ablocks-button--icon-${a}`]:l&&a||u&&p}),children:[n&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(C.RichText.Content,{tagName:"span",className:"ablocks-button__text",value:e.text})]})})}eu.propTypes={};function iu(t){ | |
| 1880 | -const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,link:{href:r,linkTarget:b,noFollow:c,keyValue:d},iconImageID:u,iconImageUrl:p}=e;let m={};return r&&(m.href=r),b&&(m.target="_blank"),m.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(m={...m,...(0,Wb.jM)(d)}),(0,L.jsx)(dc,{blockId:i,name:"ablocks/button",attributes:e,children:(0,L.jsxs)("a",{...m,className:s()("ablocks-button",`ablocks-button--${o}`,{[`ablocks-button--icon-${a}`]:l&&a||u&&p}),children:[n&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(C.RichText.Content,{tagName:"span",className:"ablocks-button__text",value:e.text})]})})}iu.propTypes={},(0,M.xV)($d.UU)&&(0,o.registerBlockType)($d.UU,{title:"Button",attributes:$d.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]) | |
| 1881 | -;const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",Zd(i,""),Zd(i,"Tablet"),Zd(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-button",Kd(i),Kd(i,"Tablet"),Kd(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-button:hover",Jd(i,""),Jd(i,"Tablet"),Jd(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",Qd(i),Qd(i),Qd(i)),t.addClassStyles("{{WRAPPER}} .ablocks-button .ablocks-button__text",tu(i),tu(i),tu(i)),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0, | |
| 1882 | -vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(qd,{...t}),(0,L.jsx)(Gd,{...t})]})},save:eu,deprecated:[{attributes:{block_id:{type:"string",default:""},text:{type:"string",default:"Click here"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{ | |
| 1883 | -type:"number",default:""},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path", | |
| 1884 | -attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"", | |
| 1885 | -valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"", | |
| 1886 | -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:"", | |
| 1887 | -leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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", | |
| 1888 | -letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},position:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},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"}},iconSpace:{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:"", | |
| 1889 | -bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"", | |
| 1890 | -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, | |
| 1891 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", | |
| 1892 | -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:"", | |
| 1893 | -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:"", | |
| 1894 | -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", | |
| 1895 | -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", | |
| 1896 | -xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,L.jsx)(iu,{...t})}]});var ou=i(33206);function au(t){ | |
| 1897 | -const{attributes:e,setAttributes:i}=t,{alignment:o,appearance:a,buttonText:n,border:s,textStroke:r,typography:b,buttonTextColor:c,buttonTextColorH:d,buttonTextColorBgH:u,buttonTextColorBg:p,textShadow:m,progressColor:h,progressColorBg:g,strokeSize:f,position:y,positionLeft:T,positionRight:H,positionBottom:M,visibleControl:x}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Scroll To Top","ablocks"),initialOpen:!0,children:[!("right"===y||"left"===y)&&(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Ut,{label:(0,z.__)("Scroll To Top","ablocks"),options:[{label:"Icon",value:"icon"},{label:"Text",value:"text"},{label:"Progress Indicator", | |
| 1898 | -value:"progressIndicator"}],isResponsive:!1,attributeValue:a,attributeName:"appearance",setAttributes:i}),"text"===a?(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Button Text","ablocks"),attributeName:"buttonText",attributeValue:n,setAttributes:i,isInline:!1})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonTextColorBg",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0,attributeName:"buttonTextColor",attributeValue:c,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonTextColorBgH",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),isGradient:!0, | |
| 1899 | -attributeName:"buttonTextColorH",attributeValue:d,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:e?.padding,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:s,setAttributes:i})]})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Icon","ablocks"), | |
| 1900 | -isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})]})]}),"progressIndicator"===a&&(0,L.jsx)(D,{title:(0,z.__)("Progress Style","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Stroke Size","ablocks"),min:1,max:100,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"strokeSize",attributeValue:f,attributeDefaultValue:ou.mm,setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(vs,{label:(0,z.__)("Line color","ablocks"),isGradient:!0,attributeName:"progressColor",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Line Background","ablocks"),isGradient:!0, | |
| 1901 | -attributeName:"progressColorBg",attributeValue:g,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Position Control","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,options:[{label:"Bottom Left",value:"left"},{label:"Bottom Right",value:"right"}],attributeName:"position",attributeValue:y,setAttributes:i}),"left"===y&&(0,L.jsx)(vt,{label:(0,z.__)("Position Left","ablocks"),min:0,max:500,unitValue:T,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionLeft",attributeValue:T,attributeDefaultValue:ou.Nf,setAttributes:i}),"right"===y&&(0,L.jsx)(vt,{label:(0,z.__)("Position Right","ablocks"),min:0,max:500,unitValue:H,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionRight",attributeValue:H,attributeDefaultValue:ou.gB,setAttributes:i}),("right"===y||"left"===y)&&(0,L.jsx)(vt,{label:(0,z.__)("Position Bottom","ablocks"),min:0,max:500,unitValue:M,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionBottom",attributeValue:M, | |
| 1902 | -attributeDefaultValue:ou.fb,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Visible Control","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,options:[{label:"Visible",value:"visible"},{label:"Hidden",value:"hidden"}],attributeName:"visibleControl",attributeValue:x,setAttributes:i}),(0,L.jsx)("p",{style:{border:"1px solid #EFEFF0",padding:"10px",borderRadius:"5px"},children:(0,z.__)("The Visible Control is only for the editor view. It does not affect the frontend display. Used for user convenience while designing","ablocks")})]})]})})})}au.propTypes={};const lu=t=>{const{buttonText:e,appearance:i,iconSizing:o,strokeSize:a}=t,l=o.value+20;return"progressIndicator"===i?(0,L.jsxs)("span",{className:"ablocks-scroll-progress-wrapper",style:{width:l,height:l},children:[(0,L.jsxs)("svg",{className:"ablocks-scroll-progress-ring",width:l,height:l,children:[(0,L.jsx)("circle",{cx:l/2,cy:l/2,r:l/2-4,stroke:(0,gs.qD)(t?.progressColorBg), | |
| 1903 | -strokeWidth:a,fill:"transparent"}),(0,L.jsx)("circle",{className:"ablocks-scroll-progress-ring__circle",cx:l/2,cy:l/2,r:l/2-4,stroke:(0,gs.qD)(t?.progressColor),strokeWidth:a,strokeLinecap:"round",fill:"transparent"})]}),(0,L.jsx)("div",{className:"ablocks-scroll-progress-content",style:{width:.66*l,height:.66*l},children:(0,L.jsx)(Vd,{attributes:t})})]}):"icon"===i?(0,L.jsx)(Vd,{attributes:t}):"text"===i?(0,L.jsx)("span",{className:"ablocks-scroll-to-top-button-text",children:e}):null},nu={UU:"ablocks/scroll-to-top",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},appearance:{type:"string",default:"icon"},buttonText:{type:"string",default:"Top"},buttonTextColor:{type:"string",default:""},buttonTextColorH:{type:"string",default:""},buttonTextColorBg:{type:"string",default:""},buttonTextColorBgH:{type:"string",default:""},progressColor:{type:"string",default:"red"},progressColorBg:{type:"string",default:"#EEEEEE"},strokeSize:{type:"number",default:"3"}, | |
| 1904 | -positionBottom:{type:"object",default:{value:20,valueTablet:"",valueMobile:""}},positionLeft:{type:"object",default:{value:20,valueTablet:"",valueMobile:""}},positionRight:{type:"object",default:{value:20,valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",default:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""}, | |
| 1905 | -iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{ | |
| 1906 | -preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:40},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:40,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},position:{type:"string",default:"default"},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"", | |
| 1907 | -strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",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:"", | |
| 1908 | -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:"", | |
| 1909 | -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:""}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},visibleControl:{type:"string",default:"visible"},_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:"", | |
| 1910 | -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:"", | |
| 1911 | -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:"", | |
| 1912 | -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:"", | |
| 1913 | -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:"", | |
| 1914 | -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:"", | |
| 1915 | -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", | |
| 1916 | -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", | |
| 1917 | -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"}}, | |
| 1918 | -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},su=class{constructor(t,e){this.element=t,this.isFrontend=e,this.scrollTarget=e?window:document.querySelector('[name="editor-canvas"]')?.contentWindow,this.circle=this.element?.querySelector(".ablocks-scroll-progress-ring__circle"),this.scrollButton=this.element?.querySelector(".ablocks-scroll-progress-wrapper, .ablocks-scroll-to-top-button-text, .ablocks-icon-wrap"),this.setupCircle(),this.init()}setupCircle(){this.circle&&(this.radius=this.circle.r.baseVal.value,this.circumference=2*Math.PI*this.radius,Object.assign(this.circle.style,{strokeDasharray:`${this.circumference} ${this.circumference}`,strokeDashoffset:this.circumference,transform:"rotate(-90deg)",transformOrigin:"50% 50%"}))}init(){this.element&&this.scrollTarget&&(this.scrollTarget.addEventListener("scroll",()=>this.updateProgress()),this.scrollButton?.addEventListener("click",()=>{this.scrollTarget.scrollTo({top:0,behavior:"smooth"})}), | |
| 1919 | -this.updateProgress())}updateProgress(){if(!this.scrollTarget?.document)return;const{document:t,innerHeight:e,scrollY:i}=this.scrollTarget,o=t.documentElement.scrollHeight-e,a=i??t.documentElement.scrollTop;if(this.isFrontend&&(0===a?(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.style.transition="opacity 0.3s ease"):(this.element.style.visibility="visible",this.element.style.opacity="1",this.element.style.transition="opacity 0.3s ease")),this.circle){const t=o>0?a/o:0;this.circle.style.strokeDashoffset=this.circumference*(1-t)}}};function ru(t){const{attributes:e,appearance:i}=t,{block_id:o}=e;return(0,a.useEffect)(()=>{new su((0,M.bu)(`.ablocks-block-${o}`))},[e,i,o]),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:o,name:nu.UU,attributes:e,children:lu(e)})})}ru.propTypes={};const bu=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"justify-content",e)}),cu=(t,e="")=>{const{position:i,visibleControl:o}=t;let a={};return"left"!==i&&"right"!==i||(a={ | |
| 1920 | -...a,...(0,Ob.qD)({attributeValue:t?.positionBottom,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:60,property:"bottom",unitDefaultValue:"px",device:e}),position:"fixed","z-index":"9999"},"left"===i?a={...a,...(0,Ob.qD)({attributeValue:t?.positionLeft,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"left",unitDefaultValue:"px",device:e})}:"right"===i&&(a={...a,...(0,Ob.qD)({attributeValue:t?.positionRight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:60,property:"right",unitDefaultValue:"px",device:e})})),a.visibility="visible"===o?"visible":"hidden",{...a,...(0,Gt.qD)(t?.alignment,"justify-content",e)}},du=(t,e="")=>{const i=(0,M.Zy)(t.padding,{unit:"px"}),o=t.typographyGlobal?t.typographyGlobal:"";return{...(0,P.qD)(t?.typography,e,o),...(0,fc.qD)(t?.textStroke,e),...(0,pc.qD)(t?.textShadow),...(0,c.qD)(i,"padding",e),color:(0,gs.qD)(t?.buttonTextColor),background:(0,gs.qD)(t?.buttonTextColorBg),...(0, | |
| 1921 | -y.qD)(t?.border,e)}},uu=(t,e="")=>({color:(0,gs.qD)(t?.buttonTextColorH),background:(0,gs.qD)(t?.buttonTextColorBgH),...(0,y.a9)(t?.border,e)});function pu(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:nu.UU,attributes:e,children:lu(e)})})}function mu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Pe(t,e)}function hu(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. "}pu.propTypes={},(0,M.xV)(nu.UU)&&(0,o.registerBlockType)(nu.UU,{title:"Scroll to Top",attributes:nu.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--back-to-top"}),edit:function(t){const{isSelected:e,attributes: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 | |
| 1922 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",bu(i),bu(i,"Tablet"),bu(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",cu(i),cu(i,"Tablet"),cu(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-scroll-to-top-button-text",du(i),du(i,"Tablet"),du(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-scroll-to-top-button-text:hover",uu(i),uu(i,"Tablet"),uu(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0, | |
| 1923 | -vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),(0,b.applyFilters)("ablocks.scroll-to-top.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(au,{...t}),(0,L.jsx)(ru,{...t})]})},save:pu});var gu="function"==typeof Symbol&&Symbol.observable||"@@observable",fu=function(){return Math.random().toString(36).substring(7).split("").join(".")},yu={INIT:"@@redux/INIT"+fu(),REPLACE:"@@redux/REPLACE"+fu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fu()}};function Tu(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(hu(0)) | |
| 1924 | -;if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(hu(1));return i(Tu)(t,e)}if("function"!=typeof t)throw new Error(hu(2));var a=t,l=e,n=[],s=n,r=!1;function b(){s===n&&(s=n.slice())}function c(){if(r)throw new Error(hu(3));return l}function d(t){if("function"!=typeof t)throw new Error(hu(4));if(r)throw new Error(hu(5));var e=!0;return b(),s.push(t),function(){if(e){if(r)throw new Error(hu(6));e=!1,b();var i=s.indexOf(t);s.splice(i,1),n=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(hu(7));if(void 0===t.type)throw new Error(hu(8));if(r)throw new Error(hu(9));try{r=!0,l=a(l,t)}finally{r=!1}for(var e=n=s,i=0;i<e.length;i++)(0,e[i])();return t}return u({type:yu.INIT}),(o={dispatch:u,subscribe:d,getState:c,replaceReducer:function(t){if("function"!=typeof t)throw new Error(hu(10)) | |
| 1925 | -;a=t,u({type:yu.REPLACE})}})[gu]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(hu(11));function i(){t.next&&t.next(c())}return i(),{unsubscribe:e(i)}}})[gu]=function(){return this},t},o}function Hu(t,e){return function(){return e(t.apply(this,arguments))}}function Mu(t,e){if("function"==typeof t)return Hu(t,e);if("object"!=typeof t||null===t)throw new Error(hu(16));var i={};for(var o in t){var a=t[o];"function"==typeof a&&(i[o]=Hu(a,e))}return i}function xu(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}var ku=l().createContext(null),vu=function(t){t()},_u=function(){return vu},Ru={notify:function(){},get:function(){return[]}};function Su(t,e){var i,o=Ru;function a(){n.onStateChange&&n.onStateChange()}function l(){i||(i=e?e.addNestedSub(a):t.subscribe(a),o=function(){ | |
| 1926 | -var t=_u(),e=null,i=null;return{clear:function(){e=null,i=null},notify:function(){t(function(){for(var t=e;t;)t.callback(),t=t.next})},get:function(){for(var t=[],i=e;i;)t.push(i),i=i.next;return t},subscribe:function(t){var o=!0,a=i={callback:t,next:null,prev:i};return a.prev?a.prev.next=a:e=a,function(){o&&null!==e&&(o=!1,a.next?a.next.prev=a.prev:i=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}())}var n={addNestedSub:function(t){return l(),o.subscribe(t)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(i)},trySubscribe:l,tryUnsubscribe:function(){i&&(i(),i=void 0,o.clear(),o=Ru)},getListeners:function(){return o}};return n}var Wu="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;const Uu=function(t){var e=t.store,i=t.context,o=t.children,n=(0,a.useMemo)(function(){var t=Su(e);return{store:e,subscription:t}},[e]),s=(0,a.useMemo)(function(){return e.getState() | |
| 1927 | -},[e]);Wu(function(){var t=n.subscription;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}},[n,s]);var r=i||ku;return l().createElement(r.Provider,{value:n},o)};var Pu=i(61899),ju=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],wu=["reactReduxForwardedRef"],zu=[],Cu=[null,null];function Au(t,e){var i=t[1];return[e.payload,i+1]}function Lu(t,e,i){Wu(function(){return t.apply(void 0,e)},i)}function Du(t,e,i,o,a,l,n){t.current=o,e.current=a,i.current=!1,l.current&&(l.current=null,n())}function Nu(t,e,i,o,a,l,n,s,r,b){if(t){var c=!1,d=null,u=function(){if(!c){var t,i,u=e.getState();try{t=o(u,a.current)}catch(t){i=t,d=t}i||(d=null),t===l.current?n.current||r():(l.current=t,s.current=t,n.current=!0,b({type:"STORE_UPDATED",payload:{error:i}}))}};return i.onStateChange=u,i.trySubscribe(),u(),function(){if(c=!0, | |
| 1928 | -i.tryUnsubscribe(),i.onStateChange=null,d)throw d}}}var Iu=function(){return[null,0]};function Vu(t,e){void 0===e&&(e={});var i=e,o=i.getDisplayName,n=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,s=i.methodName,r=void 0===s?"connectAdvanced":s,b=i.renderCountProp,c=void 0===b?void 0:b,d=i.shouldHandleStateChanges,u=void 0===d||d,p=i.storeKey,m=void 0===p?"store":p,h=(i.withRef,i.forwardRef),g=void 0!==h&&h,f=i.context,y=void 0===f?ku:f,T=(0,_e.A)(i,ju),H=y;return function(e){var i=e.displayName||e.name||"Component",o=n(i),s=(0,We.A)({},T,{getDisplayName:n,methodName:r,renderCountProp:c,shouldHandleStateChanges:u,storeKey:m,displayName:o,wrappedComponentName:i,WrappedComponent:e}),b=T.pure,d=b?a.useMemo:function(t){return t()};function p(i){var o=(0,a.useMemo)(function(){var t=i.reactReduxForwardedRef,e=(0,_e.A)(i,wu);return[i.context,t,e]},[i]),n=o[0],r=o[1],b=o[2],c=(0,a.useMemo)(function(){return n&&n.Consumer&&(0, | |
| 1929 | -Pu.isContextConsumer)(l().createElement(n.Consumer,null))?n:H},[n,H]),p=(0,a.useContext)(c),m=Boolean(i.store)&&Boolean(i.store.getState)&&Boolean(i.store.dispatch);Boolean(p)&&Boolean(p.store);var h=m?i.store:p.store,g=(0,a.useMemo)(function(){return function(e){return t(e.dispatch,s)}(h)},[h]),f=(0,a.useMemo)(function(){if(!u)return Cu;var t=Su(h,m?null:p.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]},[h,m,p]),y=f[0],T=f[1],M=(0,a.useMemo)(function(){return m?p:(0,We.A)({},p,{subscription:y})},[m,p,y]),x=(0,a.useReducer)(Au,zu,Iu),k=x[0][0],v=x[1];if(k&&k.error)throw k.error;var _=(0,a.useRef)(),R=(0,a.useRef)(b),S=(0,a.useRef)(),W=(0,a.useRef)(!1),U=d(function(){return S.current&&b===R.current?S.current:g(h.getState(),b)},[h,k,b]);Lu(Du,[R,_,W,b,U,S,T]),Lu(Nu,[u,h,y,g,R,_,W,S,T,v],[h,y,g]);var P=(0,a.useMemo)(function(){return l().createElement(e,(0,We.A)({},U,{ref:r}))},[r,e,U]);return(0,a.useMemo)(function(){return u?l().createElement(c.Provider,{value:M},P):P},[c,P,M])} | |
| 1930 | -var h=b?l().memo(p):p;if(h.WrappedComponent=e,h.displayName=p.displayName=o,g){var f=l().forwardRef(function(t,e){return l().createElement(h,(0,We.A)({},t,{reactReduxForwardedRef:e}))});return f.displayName=o,f.WrappedComponent=e,so()(f,e)}return so()(h,e)}}function Ou(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function Yu(t,e){if(Ou(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!Object.prototype.hasOwnProperty.call(e,i[a])||!Ou(t[i[a]],e[i[a]]))return!1;return!0}function Xu(t){return function(e,i){var o=t(e,i);function a(){return o}return a.dependsOnOwnProps=!1,a}}function Bu(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function Eu(t,e){return function(e,i){i.displayName;var o=function(t,e){return o.dependsOnOwnProps?o.mapToProps(t,e):o.mapToProps(t)} | |
| 1931 | -;return o.dependsOnOwnProps=!0,o.mapToProps=function(e,i){o.mapToProps=t,o.dependsOnOwnProps=Bu(t);var a=o(e,i);return"function"==typeof a&&(o.mapToProps=a,o.dependsOnOwnProps=Bu(a),a=o(e,i)),a},o}}const Fu=[function(t){return"function"==typeof t?Eu(t):void 0},function(t){return t?void 0:Xu(function(t){return{dispatch:t}})},function(t){return t&&"object"==typeof t?Xu(function(e){return function(t,e){var i={},o=function(o){var a=t[o];"function"==typeof a&&(i[o]=function(){return e(a.apply(void 0,arguments))})};for(var a in t)o(a);return i}(t,e)}):void 0}],qu=[function(t){return"function"==typeof t?Eu(t):void 0},function(t){return t?void 0:Xu(function(){return{}})}];function $u(t,e,i){return(0,We.A)({},i,t,e)}const Gu=[function(t){return"function"==typeof t?function(t){return function(e,i){i.displayName;var o,a=i.pure,l=i.areMergedPropsEqual,n=!1;return function(e,i,s){var r=t(e,i,s);return n?a&&l(r,o)||(o=r):(n=!0,o=r),o}}}(t):void 0},function(t){return t?void 0:function(){return $u}}] | |
| 1932 | -;var Zu=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Ku(t,e,i,o){return function(a,l){return i(t(a,l),e(o,l),l)}}function Ju(t,e,i,o,a){var l,n,s,r,b,c=a.areStatesEqual,d=a.areOwnPropsEqual,u=a.areStatePropsEqual,p=!1;return function(a,m){return p?function(a,p){var m,h,g=!d(p,n),f=!c(a,l,p,n);return l=a,n=p,g&&f?(s=t(l,n),e.dependsOnOwnProps&&(r=e(o,n)),b=i(s,r,n)):g?(t.dependsOnOwnProps&&(s=t(l,n)),e.dependsOnOwnProps&&(r=e(o,n)),b=i(s,r,n)):f?(m=t(l,n),h=!u(m,s),s=m,h&&(b=i(s,r,n)),b):b}(a,m):(s=t(l=a,n=m),r=e(o,n),b=i(s,r,n),p=!0,b)}}function Qu(t,e){var i=e.initMapStateToProps,o=e.initMapDispatchToProps,a=e.initMergeProps,l=(0,_e.A)(e,Zu),n=i(t,l),s=o(t,l),r=a(t,l);return(l.pure?Ju:Ku)(n,s,r,t,l)}var tp=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ep(t,e,i){for(var o=e.length-1;o>=0;o--){var a=e[o](t);if(a)return a}return function(e,o){ | |
| 1933 | -throw new Error("Invalid value of type "+typeof t+" for "+i+" argument when connecting component "+o.wrappedComponentName+".")}}function ip(t,e){return t===e}function op(t){var e=void 0===t?{}:t,i=e.connectHOC,o=void 0===i?Vu:i,a=e.mapStateToPropsFactories,l=void 0===a?qu:a,n=e.mapDispatchToPropsFactories,s=void 0===n?Fu:n,r=e.mergePropsFactories,b=void 0===r?Gu:r,c=e.selectorFactory,d=void 0===c?Qu:c;return function(t,e,i,a){void 0===a&&(a={});var n=a,r=n.pure,c=void 0===r||r,u=n.areStatesEqual,p=void 0===u?ip:u,m=n.areOwnPropsEqual,h=void 0===m?Yu:m,g=n.areStatePropsEqual,f=void 0===g?Yu:g,y=n.areMergedPropsEqual,T=void 0===y?Yu:y,H=(0,_e.A)(n,tp),M=ep(t,l,"mapStateToProps"),x=ep(e,s,"mapDispatchToProps"),k=ep(i,b,"mergeProps");return o(d,(0,We.A)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:M,initMapDispatchToProps:x,initMergeProps:k,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:f, | |
| 1934 | -areMergedPropsEqual:T},H))}}const ap=op();var lp;function np(t,e){var i=(0,a.useState)(function(){return{inputs:e,result:t()}})[0],o=(0,a.useRef)(!0),l=(0,a.useRef)(i),n=o.current||Boolean(e&&l.current.inputs&&function(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}(e,l.current.inputs)),s=n?l.current:{inputs:e,result:t()};return(0,a.useEffect)(function(){o.current=!1,l.current=s},[s]),s.result}lp=co.unstable_batchedUpdates,vu=lp;var sp=np,rp=function(t,e){return np(function(){return t},e)},bp=function(t){var e=t.top,i=t.right,o=t.bottom,a=t.left;return{top:e,right:i,bottom:o,left:a,width:i-a,height:o-e,x:a,y:e,center:{x:(i+a)/2,y:(o+e)/2}}},cp=function(t,e){return{top:t.top-e.top,left:t.left-e.left,bottom:t.bottom+e.bottom,right:t.right+e.right}},dp=function(t,e){return{top:t.top+e.top,left:t.left+e.left,bottom:t.bottom-e.bottom,right:t.right-e.right}},up={top:0,right:0,bottom:0,left:0},pp=function(t){ | |
| 1935 | -var e=t.borderBox,i=t.margin,o=void 0===i?up:i,a=t.border,l=void 0===a?up:a,n=t.padding,s=void 0===n?up:n,r=bp(cp(e,o)),b=bp(dp(e,l)),c=bp(dp(b,s));return{marginBox:r,borderBox:bp(e),paddingBox:b,contentBox:c,margin:o,border:l,padding:s}},mp=function(t){var e=t.slice(0,-2);if("px"!==t.slice(-2))return 0;var i=Number(e);return isNaN(i)&&function(){throw new Error("Invariant failed")}(),i},hp=function(t,e){var i,o,a=t.borderBox,l=t.border,n=t.margin,s=t.padding,r=(o=e,{top:(i=a).top+o.y,left:i.left+o.x,bottom:i.bottom+o.y,right:i.right+o.x});return pp({borderBox:r,border:l,margin:n,padding:s})},gp=function(t,e){return void 0===e&&(e={x:window.pageXOffset,y:window.pageYOffset}),hp(t,e)},fp=function(t,e){var i={top:mp(e.marginTop),right:mp(e.marginRight),bottom:mp(e.marginBottom),left:mp(e.marginLeft)},o={top:mp(e.paddingTop),right:mp(e.paddingRight),bottom:mp(e.paddingBottom),left:mp(e.paddingLeft)},a={top:mp(e.borderTopWidth),right:mp(e.borderRightWidth),bottom:mp(e.borderBottomWidth), | |
| 1936 | -left:mp(e.borderLeftWidth)};return pp({borderBox:t,margin:i,padding:o,border:a})},yp=function(t){var e=t.getBoundingClientRect(),i=window.getComputedStyle(t);return fp(e,i)},Tp=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function Hp(t,e){return t===e||!(!Tp(t)||!Tp(e))}function Mp(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!Hp(t[i],e[i]))return!1;return!0}const xp=function(t,e){var i;void 0===e&&(e=Mp);var o,a=[],l=!1;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return l&&i===this&&e(n,a)||(o=t.apply(this,n),l=!0,i=this,a=n),o}},kp=function(t){var e=[],i=null,o=function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];e=a,i||(i=requestAnimationFrame(function(){i=null,t.apply(void 0,e)}))};return o.cancel=function(){i&&(cancelAnimationFrame(i),i=null)},o};function vp(t,e){}function _p(){}function Rp(t,e,i){var o=e.map(function(e){var o,a,l=(o=i,a=e.options,(0,We.A)({},o,{},a)) | |
| 1937 | -;return t.addEventListener(e.eventName,e.fn,l),function(){t.removeEventListener(e.eventName,e.fn,l)}});return function(){o.forEach(function(t){t()})}}vp.bind(null,"warn"),vp.bind(null,"error");function Sp(t){this.message=t}function Wp(t,e){if(!t)throw new Sp("Invariant failed")}Sp.prototype.toString=function(){return this.message};var Up=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))||this).callbacks=null,e.unbind=_p,e.onWindowError=function(t){var i=e.getCallbacks();i.isDragging()&&i.tryAbort(),t.error instanceof Sp&&t.preventDefault()},e.getCallbacks=function(){if(!e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return e.callbacks},e.setCallbacks=function(t){e.callbacks=t},e}mu(e,t);var i=e.prototype;return i.componentDidMount=function(){this.unbind=Rp(window,[{eventName:"error",fn:this.onWindowError}])},i.componentDidCatch=function(t){ | |
| 1938 | -if(!(t instanceof Sp))throw t;this.setState({})},i.componentWillUnmount=function(){this.unbind()},i.render=function(){return this.props.children(this.setCallbacks)},e}(l().Component),Pp=function(t){return t+1},jp=function(t,e){var i=t.droppableId===e.droppableId,o=Pp(t.index),a=Pp(e.index);return i?"\n You have moved the item from position "+o+"\n to position "+a+"\n ":"\n You have moved the item from position "+o+"\n in list "+t.droppableId+"\n to list "+e.droppableId+"\n in position "+a+"\n "},zp=function(t,e,i){return e.droppableId===i.droppableId?"\n The item "+t+"\n has been combined with "+i.draggableId:"\n The item "+t+"\n in list "+e.droppableId+"\n has been combined with "+i.draggableId+"\n in list "+i.droppableId+"\n "},Cp=function(t){return"\n The item has returned to its starting position\n of "+Pp(t.index)+"\n"},Ap=function(t){return"\n You have lifted an item in position "+Pp(t.source.index)+"\n" | |
| 1939 | -},Lp=function(t){var e=t.destination;if(e)return jp(t.source,e);var i=t.combine;return i?zp(t.draggableId,t.source,i):"You are over an area that cannot be dropped on"},Dp=function(t){if("CANCEL"===t.reason)return"\n Movement cancelled.\n "+Cp(t.source)+"\n ";var e=t.destination,i=t.combine;return e?"\n You have dropped the item.\n "+jp(t.source,e)+"\n ":i?"\n You have dropped the item.\n "+zp(t.draggableId,t.source,i)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Cp(t.source)+"\n "},Np={x:0,y:0},Ip=function(t,e){return{x:t.x+e.x,y:t.y+e.y}},Vp=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},Op=function(t,e){return t.x===e.x&&t.y===e.y},Yp=function(t){return{x:0!==t.x?-t.x:0,y:0!==t.y?-t.y:0}},Xp=function(t,e,i){var o;return void 0===i&&(i=0),(o={})[t]=e,o["x"===t?"y":"x"]=i,o},Bp=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},Ep=function(t,e){return Math.min.apply(Math,e.map(function(e){ | |
| 1940 | -return Bp(t,e)}))},Fp=function(t){return function(e){return{x:t(e.x),y:t(e.y)}}},qp=function(t,e){return{top:t.top+e.y,left:t.left+e.x,bottom:t.bottom+e.y,right:t.right+e.x}},$p=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},Gp=function(t,e){return e&&e.shouldClipSubject?function(t,e){var i=bp({top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom),left:Math.max(e.left,t.left)});return i.width<=0||i.height<=0?null:i}(e.pageMarginBox,t):bp(t)},Zp=function(t){var e=t.page,i=t.withPlaceholder,o=t.axis,a=t.frame,l=function(t,e){return e?qp(t,e.scroll.diff.displacement):t}(e.marginBox,a),n=function(t,e,i){var o;return i&&i.increasedBy?(0,We.A)({},t,((o={})[e.end]=t[e.end]+i.increasedBy[e.line],o)):t}(l,o,i);return{page:e,withPlaceholder:i,active:Gp(n,a)}},Kp=function(t,e){t.frame||Wp(!1);var i=t.frame,o=Vp(e,i.scroll.initial),a=Yp(o),l=(0,We.A)({},i,{scroll:{initial:i.scroll.initial,current:e, | |
| 1941 | -diff:{value:o,displacement:a},max:i.scroll.max}}),n=Zp({page:t.subject.page,withPlaceholder:t.subject.withPlaceholder,axis:t.axis,frame:l});return(0,We.A)({},t,{frame:l,subject:n})};function Jp(t){return Object.values?Object.values(t):Object.keys(t).map(function(e){return t[e]})}function Qp(t,e){if(t.findIndex)return t.findIndex(e);for(var i=0;i<t.length;i++)if(e(t[i]))return i;return-1}function tm(t,e){if(t.find)return t.find(e);var i=Qp(t,e);return-1!==i?t[i]:void 0}function em(t){return Array.prototype.slice.call(t)}var im=xp(function(t){return t.reduce(function(t,e){return t[e.descriptor.id]=e,t},{})}),om=xp(function(t){return t.reduce(function(t,e){return t[e.descriptor.id]=e,t},{})}),am=xp(function(t){return Jp(t)}),lm=xp(function(t){return Jp(t)}),nm=xp(function(t,e){var i=lm(e).filter(function(e){return t===e.descriptor.droppableId}).sort(function(t,e){return t.descriptor.index-e.descriptor.index});return i});function sm(t){ | |
| 1942 | -return t.at&&"REORDER"===t.at.type?t.at.destination:null}function rm(t){return t.at&&"COMBINE"===t.at.type?t.at.combine:null}var bm=xp(function(t,e){return e.filter(function(e){return e.descriptor.id!==t.descriptor.id})}),cm=function(t,e){return t.descriptor.droppableId===e.descriptor.id},dm={point:Np,value:0},um={invisible:{},visible:{},all:[]},pm={displaced:um,displacedBy:dm,at:null},mm=function(t,e){return function(i){return t<=i&&i<=e}},hm=function(t){var e=mm(t.top,t.bottom),i=mm(t.left,t.right);return function(o){if(e(o.top)&&e(o.bottom)&&i(o.left)&&i(o.right))return!0;var a=e(o.top)||e(o.bottom),l=i(o.left)||i(o.right);if(a&&l)return!0;var n=o.top<t.top&&o.bottom>t.bottom,s=o.left<t.left&&o.right>t.right;return!(!n||!s)||n&&l||s&&a}},gm=function(t){var e=mm(t.top,t.bottom),i=mm(t.left,t.right);return function(t){return e(t.top)&&e(t.bottom)&&i(t.left)&&i(t.right)}},fm={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left", | |
| 1943 | -crossAxisEnd:"right",crossAxisSize:"width"},ym={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Tm=function(t){var e=t.target,i=t.destination,o=t.viewport,a=t.withDroppableDisplacement,l=t.isVisibleThroughFrameFn,n=a?function(t,e){var i=e.frame?e.frame.scroll.diff.displacement:Np;return qp(t,i)}(e,i):e;return function(t,e,i){return!!e.subject.active&&i(e.subject.active)(t)}(n,i,l)&&function(t,e,i){return i(e)(t)}(n,o,l)},Hm=function(t){return Tm((0,We.A)({},t,{isVisibleThroughFrameFn:gm}))};function Mm(t){var e=t.afterDragging,i=t.destination,o=t.displacedBy,a=t.viewport,l=t.forceShouldAnimate,n=t.last;return e.reduce(function(t,e){var s,r=function(t,e){var i=t.page.marginBox,o={top:e.point.y,right:0,bottom:0,left:e.point.x};return bp(cp(i,o))}(e,o),b=e.descriptor.id;if(t.all.push(b),s={target:r,destination:i,viewport:a,withDroppableDisplacement:!0},!Tm((0,We.A)({},s,{ | |
| 1944 | -isVisibleThroughFrameFn:hm})))return t.invisible[e.descriptor.id]=!0,t;var c=function(t,e,i){if("boolean"==typeof i)return i;if(!e)return!0;var o=e.invisible,a=e.visible;if(o[t])return!1;var l=a[t];return!l||l.shouldAnimate}(b,n,l),d={draggableId:b,shouldAnimate:c};return t.visible[b]=d,t},{all:[],visible:{},invisible:{}})}function xm(t){var e=t.insideDestination,i=t.inHomeList,o=t.displacedBy,a=t.destination,l=function(t,e){if(!t.length)return 0;var i=t[t.length-1].descriptor.index;return e.inHomeList?i:i+1}(e,{inHomeList:i});return{displaced:um,displacedBy:o,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:l}}}}function km(t){var e=t.draggable,i=t.insideDestination,o=t.destination,a=t.viewport,l=t.displacedBy,n=t.last,s=t.index,r=t.forceShouldAnimate,b=cm(e,o);if(null==s)return xm({insideDestination:i,inHomeList:b,displacedBy:l,destination:o});var c=tm(i,function(t){return t.descriptor.index===s});if(!c)return xm({insideDestination:i,inHomeList:b,displacedBy:l, | |
| 1945 | -destination:o});var d=bm(e,i),u=i.indexOf(c);return{displaced:Mm({afterDragging:d.slice(u),destination:o,displacedBy:l,last:n,viewport:a.frame,forceShouldAnimate:r}),displacedBy:l,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:s}}}}function vm(t,e){return Boolean(e.effected[t])}var _m=function(t,e){return e.margin[t.start]+e.borderBox[t.size]/2},Rm=function(t,e,i){return e[t.crossAxisStart]+i.margin[t.crossAxisStart]+i.borderBox[t.crossAxisSize]/2},Sm=function(t){var e=t.axis,i=t.moveRelativeTo,o=t.isMoving;return Xp(e.line,i.marginBox[e.end]+_m(e,o),Rm(e,i.marginBox,o))},Wm=function(t){var e=t.axis,i=t.moveRelativeTo,o=t.isMoving;return Xp(e.line,i.marginBox[e.start]-function(t,e){return e.margin[t.end]+e.borderBox[t.size]/2}(e,o),Rm(e,i.marginBox,o))},Um=function(t,e){var i=t.frame;return i?Ip(e,i.scroll.diff.displacement):e},Pm=function(t){var e=function(t){var e=t.impact,i=t.draggable,o=t.droppable,a=t.draggables,l=t.afterCritical,n=i.page.borderBox.center,s=e.at | |
| 1946 | -;return o&&s?"REORDER"===s.type?function(t){var e=t.impact,i=t.draggable,o=t.draggables,a=t.droppable,l=t.afterCritical,n=nm(a.descriptor.id,o),s=i.page,r=a.axis;if(!n.length)return function(t){var e=t.axis,i=t.moveInto,o=t.isMoving;return Xp(e.line,i.contentBox[e.start]+_m(e,o),Rm(e,i.contentBox,o))}({axis:r,moveInto:a.page,isMoving:s});var b=e.displaced,c=e.displacedBy,d=b.all[0];if(d){var u=o[d];if(vm(d,l))return Wm({axis:r,moveRelativeTo:u.page,isMoving:s});var p=hp(u.page,c.point);return Wm({axis:r,moveRelativeTo:p,isMoving:s})}var m=n[n.length-1];if(m.descriptor.id===i.descriptor.id)return s.borderBox.center;if(vm(m.descriptor.id,l)){var h=hp(m.page,Yp(l.displacedBy.point));return Sm({axis:r,moveRelativeTo:h,isMoving:s})}return Sm({axis:r,moveRelativeTo:m.page,isMoving:s})}({impact:e,draggable:i,draggables:a,droppable:o,afterCritical:l}):function(t){var e=t.afterCritical,i=t.impact,o=t.draggables,a=rm(i);a||Wp(!1);var l=a.draggableId,n=o[l].page.borderBox.center,s=function(t){ | |
| 1947 | -var e=t.displaced,i=t.afterCritical,o=t.combineWith,a=t.displacedBy,l=Boolean(e.visible[o]||e.invisible[o]);return vm(o,i)?l?Np:Yp(a.point):l?a.point:Np}({displaced:i.displaced,afterCritical:e,combineWith:l,displacedBy:i.displacedBy});return Ip(n,s)}({impact:e,draggables:a,afterCritical:l}):n}(t),i=t.droppable;return i?Um(i,e):e},jm=function(t,e){var i=Vp(e,t.scroll.initial),o=Yp(i);return{frame:bp({top:e.y,bottom:e.y+t.frame.height,left:e.x,right:e.x+t.frame.width}),scroll:{initial:t.scroll.initial,max:t.scroll.max,current:e,diff:{value:i,displacement:o}}}};function wm(t,e){return t.map(function(t){return e[t]})}var zm=function(t){var e,i,o=t.pageBorderBoxCenter,a=t.draggable,l=(e=t.viewport,i=o,Ip(e.scroll.diff.displacement,i)),n=Vp(l,a.page.borderBox.center);return Ip(a.client.borderBox.center,n)},Cm=function(t){ | |
| 1948 | -var e=t.draggable,i=t.destination,o=t.newPageBorderBoxCenter,a=t.viewport,l=t.withDroppableDisplacement,n=t.onlyOnMainAxis,s=void 0!==n&&n,r=Vp(o,e.page.borderBox.center),b={target:qp(e.page.borderBox,r),destination:i,withDroppableDisplacement:l,viewport:a};return s?function(t){return Tm((0,We.A)({},t,{isVisibleThroughFrameFn:(e=t.destination.axis,function(t){var i=mm(t.top,t.bottom),o=mm(t.left,t.right);return function(t){return e===fm?i(t.top)&&i(t.bottom):o(t.left)&&o(t.right)}})}));var e}(b):Hm(b)},Am=function(t){var e=t.isMovingForward,i=t.draggable,o=t.destination,a=t.draggables,l=t.previousImpact,n=t.viewport,s=t.previousPageBorderBoxCenter,r=t.previousClientSelection,b=t.afterCritical;if(!o.isEnabled)return null;var c=nm(o.descriptor.id,a),d=cm(i,o),u=function(t){var e=t.isMovingForward,i=t.draggable,o=t.destination,a=t.insideDestination,l=t.previousImpact;if(!o.isCombineEnabled)return null;if(!sm(l))return null;function n(t){var e={type:"COMBINE",combine:{draggableId:t, | |
| 1949 | -droppableId:o.descriptor.id}};return(0,We.A)({},l,{at:e})}var s=l.displaced.all,r=s.length?s[0]:null;if(e)return r?n(r):null;var b=bm(i,a);if(!r)return b.length?n(b[b.length-1].descriptor.id):null;var c=Qp(b,function(t){return t.descriptor.id===r});-1===c&&Wp(!1);var d=c-1;return d<0?null:n(b[d].descriptor.id)}({isMovingForward:e,draggable:i,destination:o,insideDestination:c,previousImpact:l})||function(t){var e=t.isMovingForward,i=t.isInHomeList,o=t.draggable,a=t.draggables,l=t.destination,n=t.insideDestination,s=t.previousImpact,r=t.viewport,b=t.afterCritical,c=s.at;if(c||Wp(!1),"REORDER"===c.type){var d=function(t){var e=t.isMovingForward,i=t.isInHomeList,o=t.insideDestination,a=t.location;if(!o.length)return null;var l=a.index,n=e?l+1:l-1,s=o[0].descriptor.index,r=o[o.length-1].descriptor.index;return n<s||n>(i?r:r+1)?null:n}({isMovingForward:e,isInHomeList:i,location:c.destination,insideDestination:n});return null==d?null:km({draggable:o,insideDestination:n,destination:l, | |
| 1950 | -viewport:r,last:s.displaced,displacedBy:s.displacedBy,index:d})}var u=function(t){var e=t.isMovingForward,i=t.draggables,o=t.combine,a=t.afterCritical;if(!t.destination.isCombineEnabled)return null;var l=o.draggableId,n=i[l].descriptor.index;return vm(l,a)?e?n:n-1:e?n+1:n}({isMovingForward:e,destination:l,displaced:s.displaced,draggables:a,combine:c.combine,afterCritical:b});return null==u?null:km({draggable:o,insideDestination:n,destination:l,viewport:r,last:s.displaced,displacedBy:s.displacedBy,index:u})}({isMovingForward:e,isInHomeList:d,draggable:i,draggables:a,destination:o,insideDestination:c,previousImpact:l,viewport:n,afterCritical:b});if(!u)return null;var p=Pm({impact:u,draggable:i,droppable:o,draggables:a,afterCritical:b});if(Cm({draggable:i,destination:o,newPageBorderBoxCenter:p,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:zm({pageBorderBoxCenter:p,draggable:i,viewport:n}),impact:u,scrollJumpRequest:null} | |
| 1951 | -;var m=Vp(p,s),h=function(t){var e=t.impact,i=t.viewport,o=t.destination,a=t.draggables,l=t.maxScrollChange,n=jm(i,Ip(i.scroll.current,l)),s=o.frame?Kp(o,Ip(o.frame.scroll.current,l)):o,r=e.displaced,b=Mm({afterDragging:wm(r.all,a),destination:o,displacedBy:e.displacedBy,viewport:n.frame,last:r,forceShouldAnimate:!1}),c=Mm({afterDragging:wm(r.all,a),destination:s,displacedBy:e.displacedBy,viewport:i.frame,last:r,forceShouldAnimate:!1}),d={},u={},p=[r,b,c];return r.all.forEach(function(t){var e=function(t,e){for(var i=0;i<e.length;i++){var o=e[i].visible[t];if(o)return o}return null}(t,p);e?u[t]=e:d[t]=!0}),(0,We.A)({},e,{displaced:{all:r.all,invisible:d,visible:u}})}({impact:u,viewport:n,destination:o,draggables:a,maxScrollChange:m});return{clientSelection:r,impact:h,scrollJumpRequest:m}},Lm=function(t){var e=t.subject.active;return e||Wp(!1),e},Dm=function(t,e){var i=t.page.borderBox.center;return vm(t.descriptor.id,e)?Vp(i,e.displacedBy.point):i},Nm=function(t,e){ | |
| 1952 | -var i=t.page.borderBox;return vm(t.descriptor.id,e)?qp(i,Yp(e.displacedBy.point)):i},Im=xp(function(t,e){var i=e[t.line];return{value:i,point:Xp(t.line,i)}}),Vm=function(t,e){return(0,We.A)({},t,{scroll:(0,We.A)({},t.scroll,{max:e})})},Om=function(t,e,i){var o=t.frame;cm(e,t)&&Wp(!1),t.subject.withPlaceholder&&Wp(!1);var a=Im(t.axis,e.displaceBy).point,l=function(t,e,i){var o=t.axis;if("virtual"===t.descriptor.mode)return Xp(o.line,e[o.line]);var a=t.subject.page.contentBox[o.size],l=nm(t.descriptor.id,i).reduce(function(t,e){return t+e.client.marginBox[o.size]},0)+e[o.line]-a;return l<=0?null:Xp(o.line,l)}(t,a,i),n={placeholderSize:a,increasedBy:l,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!o){var s=Zp({page:t.subject.page,withPlaceholder:n,axis:t.axis,frame:t.frame});return(0,We.A)({},t,{subject:s})}var r=l?Ip(o.scroll.max,l):o.scroll.max,b=Vm(o,r),c=Zp({page:t.subject.page,withPlaceholder:n,axis:t.axis,frame:b});return(0,We.A)({},t,{subject:c,frame:b})},Ym=function(t){ | |
| 1953 | -var e=t.at;return e?"REORDER"===e.type?e.destination.droppableId:e.combine.droppableId:null},Xm=function(t){var e=t.state,i=t.type,o=function(t,e){var i=Ym(t);return i?e[i]:null}(e.impact,e.dimensions.droppables),a=Boolean(o),l=e.dimensions.droppables[e.critical.droppable.id],n=o||l,s=n.axis.direction,r="vertical"===s&&("MOVE_UP"===i||"MOVE_DOWN"===i)||"horizontal"===s&&("MOVE_LEFT"===i||"MOVE_RIGHT"===i);if(r&&!a)return null;var b="MOVE_DOWN"===i||"MOVE_RIGHT"===i,c=e.dimensions.draggables[e.critical.draggable.id],d=e.current.page.borderBoxCenter,u=e.dimensions,p=u.draggables,m=u.droppables;return r?Am({isMovingForward:b,previousPageBorderBoxCenter:d,draggable:c,destination:n,draggables:p,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):function(t){var e=t.isMovingForward,i=t.previousPageBorderBoxCenter,o=t.draggable,a=t.isOver,l=t.draggables,n=t.droppables,s=t.viewport,r=t.afterCritical,b=function(t){ | |
| 1954 | -var e=t.isMovingForward,i=t.pageBorderBoxCenter,o=t.source,a=t.droppables,l=t.viewport,n=o.subject.active;if(!n)return null;var s=o.axis,r=mm(n[s.start],n[s.end]),b=am(a).filter(function(t){return t!==o}).filter(function(t){return t.isEnabled}).filter(function(t){return Boolean(t.subject.active)}).filter(function(t){return hm(l.frame)(Lm(t))}).filter(function(t){var i=Lm(t);return e?n[s.crossAxisEnd]<i[s.crossAxisEnd]:i[s.crossAxisStart]<n[s.crossAxisStart]}).filter(function(t){var e=Lm(t),i=mm(e[s.start],e[s.end]);return r(e[s.start])||r(e[s.end])||i(n[s.start])||i(n[s.end])}).sort(function(t,i){var o=Lm(t)[s.crossAxisStart],a=Lm(i)[s.crossAxisStart];return e?o-a:a-o}).filter(function(t,e,i){return Lm(t)[s.crossAxisStart]===Lm(i[0])[s.crossAxisStart]});if(!b.length)return null;if(1===b.length)return b[0];var c=b.filter(function(t){return mm(Lm(t)[s.start],Lm(t)[s.end])(i[s.line])});return 1===c.length?c[0]:c.length>1?c.sort(function(t,e){return Lm(t)[s.start]-Lm(e)[s.start] | |
| 1955 | -})[0]:b.sort(function(t,e){var o=Ep(i,$p(Lm(t))),a=Ep(i,$p(Lm(e)));return o!==a?o-a:Lm(t)[s.start]-Lm(e)[s.start]})[0]}({isMovingForward:e,pageBorderBoxCenter:i,source:a,droppables:n,viewport:s});if(!b)return null;var c=nm(b.descriptor.id,l),d=function(t){var e=t.pageBorderBoxCenter,i=t.viewport,o=t.destination,a=t.afterCritical,l=t.insideDestination.filter(function(t){return Hm({target:Nm(t,a),destination:o,viewport:i.frame,withDroppableDisplacement:!0})}).sort(function(t,i){var l=Bp(e,Um(o,Dm(t,a))),n=Bp(e,Um(o,Dm(i,a)));return l<n?-1:n<l?1:t.descriptor.index-i.descriptor.index});return l[0]||null}({pageBorderBoxCenter:i,viewport:s,destination:b,insideDestination:c,afterCritical:r}),u=function(t){var e=t.previousPageBorderBoxCenter,i=t.moveRelativeTo,o=t.insideDestination,a=t.draggable,l=t.draggables,n=t.destination,s=t.viewport,r=t.afterCritical;if(!i){if(o.length)return null;var b={displaced:um,displacedBy:dm,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:0}} | |
| 1956 | -},c=Pm({impact:b,draggable:a,droppable:n,draggables:l,afterCritical:r}),d=cm(a,n)?n:Om(n,a,l);return Cm({draggable:a,destination:d,newPageBorderBoxCenter:c,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?b:null}var u,p=Boolean(e[n.axis.line]<=i.page.borderBox.center[n.axis.line]),m=(u=i.descriptor.index,i.descriptor.id===a.descriptor.id||p?u:u+1);return km({draggable:a,insideDestination:o,destination:n,viewport:s,displacedBy:Im(n.axis,a.displaceBy),last:um,index:m})}({previousPageBorderBoxCenter:i,destination:b,draggable:o,draggables:l,moveRelativeTo:d,insideDestination:c,viewport:s,afterCritical:r});if(!u)return null;var p=Pm({impact:u,draggable:o,droppable:b,draggables:l,afterCritical:r});return{clientSelection:zm({pageBorderBoxCenter:p,draggable:o,viewport:s}),impact:u,scrollJumpRequest:null}}({isMovingForward:b,previousPageBorderBoxCenter:d,draggable:c,isOver:n,draggables:p,droppables:m,viewport:e.viewport,afterCritical:e.afterCritical})};function Bm(t){ | |
| 1957 | -return"DRAGGING"===t.phase||"COLLECTING"===t.phase}function Em(t){var e=mm(t.top,t.bottom),i=mm(t.left,t.right);return function(t){return e(t.y)&&i(t.x)}}var Fm=function(t,e){return bp(qp(t,e))};function qm(t){var e=t.displaced,i=t.id;return Boolean(e.visible[i]||e.invisible[i])}var $m=function(t){var e=t.pageOffset,i=t.draggable,o=t.draggables,a=t.droppables,l=t.previousImpact,n=t.viewport,s=t.afterCritical,r=Fm(i.page.borderBox,e),b=function(t){var e=t.pageBorderBox,i=t.draggable,o=t.droppables,a=am(o).filter(function(t){if(!t.isEnabled)return!1;var i,o,a=t.subject.active;if(!a)return!1;if(o=a,!((i=e).left<o.right&&i.right>o.left&&i.top<o.bottom&&i.bottom>o.top))return!1;if(Em(a)(e.center))return!0;var l=t.axis,n=a.center[l.crossAxisLine],s=e[l.crossAxisStart],r=e[l.crossAxisEnd],b=mm(a[l.crossAxisStart],a[l.crossAxisEnd]),c=b(s),d=b(r);return!c&&!d||(c?s<n:r>n)});return a.length?1===a.length?a[0].descriptor.id:function(t){ | |
| 1958 | -var e=t.pageBorderBox,i=t.candidates,o=t.draggable.page.borderBox.center,a=i.map(function(t){var i=t.axis,a=Xp(t.axis.line,e.center[i.line],t.page.borderBox.center[i.crossAxisLine]);return{id:t.descriptor.id,distance:Bp(o,a)}}).sort(function(t,e){return e.distance-t.distance});return a[0]?a[0].id:null}({pageBorderBox:e,draggable:i,candidates:a}):null}({pageBorderBox:r,draggable:i,droppables:a});if(!b)return pm;var c=a[b],d=nm(c.descriptor.id,o),u=function(t,e){var i=t.frame;return i?Fm(e,i.scroll.diff.value):e}(c,r);return function(t){var e=t.draggable,i=t.pageBorderBoxWithDroppableScroll,o=t.previousImpact,a=t.destination,l=t.insideDestination,n=t.afterCritical;if(!a.isCombineEnabled)return null;var s=a.axis,r=Im(a.axis,e.displaceBy),b=r.value,c=i[s.start],d=i[s.end],u=tm(bm(e,l),function(t){var e=t.descriptor.id,i=t.page.borderBox,a=i[s.size]/4,l=vm(e,n),r=qm({displaced:o.displaced,id:e}) | |
| 1959 | -;return l?r?d>i[s.start]+a&&d<i[s.end]-a:c>i[s.start]-b+a&&c<i[s.end]-b-a:r?d>i[s.start]+b+a&&d<i[s.end]+b-a:c>i[s.start]+a&&c<i[s.end]-a});return u?{displacedBy:r,displaced:o.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:a.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:u,draggable:i,previousImpact:l,destination:c,insideDestination:d,afterCritical:s})||function(t){var e=t.pageBorderBoxWithDroppableScroll,i=t.draggable,o=t.destination,a=t.insideDestination,l=t.last,n=t.viewport,s=t.afterCritical,r=o.axis,b=Im(o.axis,i.displaceBy),c=b.value,d=e[r.start],u=e[r.end],p=function(t){var e=t.draggable,i=t.closest;return i?t.inHomeList&&i.descriptor.index>e.descriptor.index?i.descriptor.index-1:i.descriptor.index:null}({draggable:i,closest:tm(bm(i,a),function(t){var e=t.descriptor.id,i=t.page.borderBox.center[r.line],o=vm(e,s),a=qm({displaced:l,id:e});return o?a?u<=i:d<i-c:a?u<=i+c:d<i}),inHomeList:cm(i,o)});return km({draggable:i,insideDestination:a, | |
| 1960 | -destination:o,viewport:n,last:l,displacedBy:b,index:p})}({pageBorderBoxWithDroppableScroll:u,draggable:i,destination:c,insideDestination:d,last:l.displaced,viewport:n,afterCritical:s})},Gm=function(t,e){var i;return(0,We.A)({},t,((i={})[e.descriptor.id]=e,i))},Zm=function(t){var e=t.state,i=t.clientSelection,o=t.dimensions,a=t.viewport,l=t.impact,n=t.scrollJumpRequest,s=a||e.viewport,r=o||e.dimensions,b=i||e.current.client.selection,c=Vp(b,e.initial.client.selection),d={offset:c,selection:b,borderBoxCenter:Ip(e.initial.client.borderBoxCenter,c)},u={selection:Ip(d.selection,s.scroll.current),borderBoxCenter:Ip(d.borderBoxCenter,s.scroll.current),offset:Ip(d.offset,s.scroll.diff.value)},p={client:d,page:u};if("COLLECTING"===e.phase)return(0,We.A)({phase:"COLLECTING"},e,{dimensions:r,viewport:s,current:p});var m=r.draggables[e.critical.draggable.id],h=l||$m({pageOffset:u.offset,draggable:m,draggables:r.draggables,droppables:r.droppables,previousImpact:e.impact,viewport:s, | |
| 1961 | -afterCritical:e.afterCritical}),g=function(t){var e=t.draggable,i=t.draggables,o=t.droppables,a=t.impact,l=function(t){var e=t.previousImpact,i=t.impact,o=t.droppables,a=Ym(e),l=Ym(i);if(!a)return o;if(a===l)return o;var n=o[a];if(!n.subject.withPlaceholder)return o;var s=function(t){var e=t.subject.withPlaceholder;e||Wp(!1);var i=t.frame;if(!i){var o=Zp({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return(0,We.A)({},t,{subject:o})}var a=e.oldFrameMaxScroll;a||Wp(!1);var l=Vm(i,a),n=Zp({page:t.subject.page,axis:t.axis,frame:l,withPlaceholder:null});return(0,We.A)({},t,{subject:n,frame:l})}(n);return Gm(o,s)}({previousImpact:t.previousImpact,impact:a,droppables:o}),n=Ym(a);if(!n)return l;var s=o[n];if(cm(e,s))return l;if(s.subject.withPlaceholder)return l;var r=Om(s,e,i);return Gm(l,r)}({draggable:m,impact:h,previousImpact:e.impact,draggables:r.draggables,droppables:r.droppables});return(0,We.A)({},e,{current:p,dimensions:{draggables:r.draggables,droppables:g}, | |
| 1962 | -impact:h,viewport:s,scrollJumpRequest:n||null,forceShouldAnimate:!n&&null})},Km=function(t){var e=t.impact,i=t.viewport,o=t.draggables,a=t.destination,l=t.forceShouldAnimate,n=e.displaced,s=function(t,e){return t.map(function(t){return e[t]})}(n.all,o),r=Mm({afterDragging:s,destination:a,displacedBy:e.displacedBy,viewport:i.frame,forceShouldAnimate:l,last:n});return(0,We.A)({},e,{displaced:r})},Jm=function(t){var e=t.impact,i=t.draggable,o=t.droppable,a=t.draggables,l=t.viewport,n=t.afterCritical,s=Pm({impact:e,draggable:i,draggables:a,droppable:o,afterCritical:n});return zm({pageBorderBoxCenter:s,draggable:i,viewport:l})},Qm=function(t){var e=t.state,i=t.dimensions,o=t.viewport;"SNAP"!==e.movementMode&&Wp(!1);var a=e.impact,l=o||e.viewport,n=i||e.dimensions,s=n.draggables,r=n.droppables,b=s[e.critical.draggable.id],c=Ym(a);c||Wp(!1);var d=r[c],u=Km({impact:a,viewport:l,destination:d,draggables:s}),p=Jm({impact:u,draggable:b,droppable:d,draggables:s,viewport:l, | |
| 1963 | -afterCritical:e.afterCritical});return Zm({impact:u,clientSelection:p,state:e,dimensions:n,viewport:l})},th=function(t){var e=t.draggable,i=t.home,o=t.draggables,a=t.viewport,l=Im(i.axis,e.displaceBy),n=nm(i.descriptor.id,o),s=n.indexOf(e);-1===s&&Wp(!1);var r,b=n.slice(s+1),c=b.reduce(function(t,e){return t[e.descriptor.id]=!0,t},{}),d={inVirtualList:"virtual"===i.descriptor.mode,displacedBy:l,effected:c};return{impact:{displaced:Mm({afterDragging:b,destination:i,displacedBy:l,last:null,viewport:a.frame,forceShouldAnimate:!1}),displacedBy:l,at:{type:"REORDER",destination:(r=e.descriptor,{index:r.index,droppableId:r.droppableId})}},afterCritical:d}},eh=function(t){return"SNAP"===t.movementMode},ih=function(t,e,i){var o=function(t,e){return{draggables:t.draggables,droppables:Gm(t.droppables,e)}}(t.dimensions,e);return!eh(t)||i?Zm({state:t,dimensions:o}):Qm({state:t,dimensions:o})};function oh(t){return t.isDragging&&"SNAP"===t.movementMode?(0,We.A)({phase:"DRAGGING"},t,{ | |
| 1964 | -scrollJumpRequest:null}):t}var ah={phase:"IDLE",completed:null,shouldFlush:!1},lh=function(t,e){if(void 0===t&&(t=ah),"FLUSH"===e.type)return(0,We.A)({},ah,{shouldFlush:!0});if("INITIAL_PUBLISH"===e.type){"IDLE"!==t.phase&&Wp(!1);var i=e.payload,o=i.critical,a=i.clientSelection,l=i.viewport,n=i.dimensions,s=i.movementMode,r=n.draggables[o.draggable.id],b=n.droppables[o.droppable.id],c={selection:a,borderBoxCenter:r.client.borderBox.center,offset:Np},d={client:c,page:{selection:Ip(c.selection,l.scroll.initial),borderBoxCenter:Ip(c.selection,l.scroll.initial),offset:Ip(c.selection,l.scroll.diff.value)}},u=am(n.droppables).every(function(t){return!t.isFixedOnPage}),p=th({draggable:r,home:b,draggables:n.draggables,viewport:l}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:o,movementMode:s,dimensions:n,initial:d,current:d,isWindowScrollAllowed:u,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}} | |
| 1965 | -if("COLLECTION_STARTING"===e.type)return"COLLECTING"===t.phase||"DROP_PENDING"===t.phase?t:("DRAGGING"!==t.phase&&Wp(!1),(0,We.A)({phase:"COLLECTING"},t,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===e.type)return"COLLECTING"!==t.phase&&"DROP_PENDING"!==t.phase&&Wp(!1),function(t){var e=t.state,i=t.published,o=i.modified.map(function(t){var i=e.dimensions.droppables[t.droppableId];return Kp(i,t.scroll)}),a=(0,We.A)({},e.dimensions.droppables,{},im(o)),l=om(function(t){var e=t.additions,i=t.updatedDroppables,o=t.viewport,a=o.scroll.diff.value;return e.map(function(t){var e=t.descriptor.droppableId,l=function(t){var e=t.frame;return e||Wp(!1),e}(i[e]),n=l.scroll.diff.value,s=function(t){var e=t.draggable,i=t.offset,o=t.initialWindowScroll,a=hp(e.client,i),l=gp(a,o);return(0,We.A)({},e,{placeholder:(0,We.A)({},e.placeholder,{client:a}),client:a,page:l})}({draggable:t,offset:Ip(a,n),initialWindowScroll:o.scroll.initial});return s})}({additions:i.additions,updatedDroppables:a, | |
| 1966 | -viewport:e.viewport})),n=(0,We.A)({},e.dimensions.draggables,{},l);i.removals.forEach(function(t){delete n[t]});var s={droppables:a,draggables:n},r=Ym(e.impact),b=r?s.droppables[r]:null,c=s.draggables[e.critical.draggable.id],d=s.droppables[e.critical.droppable.id],u=th({draggable:c,home:d,draggables:n,viewport:e.viewport}),p=u.impact,m=u.afterCritical,h=b&&b.isCombineEnabled?e.impact:p,g=$m({pageOffset:e.current.page.offset,draggable:s.draggables[e.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:h,viewport:e.viewport,afterCritical:m}),f=(0,We.A)({phase:"DRAGGING"},e,{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:s,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===e.phase?f:(0,We.A)({phase:"DROP_PENDING"},f,{phase:"DROP_PENDING",reason:e.reason,isWaiting:!1})}({state:t,published:e.payload});if("MOVE"===e.type){if("DROP_PENDING"===t.phase)return t;Bm(t)||Wp(!1);var h=e.payload.client;return Op(h,t.current.client.selection)?t:Zm({ | |
| 1967 | -state:t,clientSelection:h,impact:eh(t)?t.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===e.type){if("DROP_PENDING"===t.phase)return oh(t);if("COLLECTING"===t.phase)return oh(t);Bm(t)||Wp(!1);var g=e.payload,f=g.id,y=g.newScroll,T=t.dimensions.droppables[f];if(!T)return t;var H=Kp(T,y);return ih(t,H,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===e.type){if("DROP_PENDING"===t.phase)return t;Bm(t)||Wp(!1);var M=e.payload,x=M.id,k=M.isEnabled,v=t.dimensions.droppables[x];v||Wp(!1),v.isEnabled===k&&Wp(!1);var _=(0,We.A)({},v,{isEnabled:k});return ih(t,_,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===e.type){if("DROP_PENDING"===t.phase)return t;Bm(t)||Wp(!1);var R=e.payload,S=R.id,W=R.isCombineEnabled,U=t.dimensions.droppables[S];U||Wp(!1),U.isCombineEnabled===W&&Wp(!1);var P=(0,We.A)({},U,{isCombineEnabled:W});return ih(t,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===e.type){if("DROP_PENDING"===t.phase||"DROP_ANIMATING"===t.phase)return t;Bm(t)||Wp(!1),t.isWindowScrollAllowed||Wp(!1);var j=e.payload.newScroll | |
| 1968 | -;if(Op(t.viewport.scroll.current,j))return oh(t);var w=jm(t.viewport,j);return eh(t)?Qm({state:t,viewport:w}):Zm({state:t,viewport:w})}if("UPDATE_VIEWPORT_MAX_SCROLL"===e.type){if(!Bm(t))return t;var z=e.payload.maxScroll;if(Op(z,t.viewport.scroll.max))return t;var C=(0,We.A)({},t.viewport,{scroll:(0,We.A)({},t.viewport.scroll,{max:z})});return(0,We.A)({phase:"DRAGGING"},t,{viewport:C})}if("MOVE_UP"===e.type||"MOVE_DOWN"===e.type||"MOVE_LEFT"===e.type||"MOVE_RIGHT"===e.type){if("COLLECTING"===t.phase||"DROP_PENDING"===t.phase)return t;"DRAGGING"!==t.phase&&Wp(!1);var A=Xm({state:t,type:e.type});return A?Zm({state:t,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):t}if("DROP_PENDING"===e.type){var L=e.payload.reason;return"COLLECTING"!==t.phase&&Wp(!1),(0,We.A)({phase:"DROP_PENDING"},t,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===e.type){var D=e.payload,N=D.completed,I=D.dropDuration,V=D.newHomeClientOffset | |
| 1969 | -;return"DRAGGING"!==t.phase&&"DROP_PENDING"!==t.phase&&Wp(!1),{phase:"DROP_ANIMATING",completed:N,dropDuration:I,newHomeClientOffset:V,dimensions:t.dimensions}}return"DROP_COMPLETE"===e.type?{phase:"IDLE",completed:e.payload.completed,shouldFlush:!1}:t},nh=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},sh=function(){return{type:"COLLECTION_STARTING",payload:null}},rh=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},bh=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},ch=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},dh=function(t){return{type:"MOVE",payload:t}},uh=function(){return{type:"MOVE_UP",payload:null}},ph=function(){return{type:"MOVE_DOWN",payload:null}},mh=function(){return{type:"MOVE_RIGHT",payload:null}},hh=function(){return{type:"MOVE_LEFT",payload:null}},gh=function(t){return{type:"DROP_COMPLETE",payload:t}},fh=function(t){return{type:"DROP",payload:t} | |
| 1970 | -},yh="cubic-bezier(.2,1,.1,1)",Th=0,Hh=.7,Mh=.75,xh="0.2s cubic-bezier(0.2, 0, 0, 1)",kh={fluid:"opacity "+xh,snap:"transform "+xh+", opacity "+xh,drop:function(t){var e=t+"s "+yh;return"transform "+e+", opacity "+e},outOfTheWay:"transform "+xh,placeholder:"height "+xh+", width "+xh+", margin "+xh},vh=function(t){return Op(t,Np)?null:"translate("+t.x+"px, "+t.y+"px)"},_h=vh,Rh=.33,Sh=.55-Rh,Wh=function(t){var e=t.getState,i=t.dispatch;return function(t){return function(o){if("DROP"===o.type){var a=e(),l=o.payload.reason;if("COLLECTING"!==a.phase){if("IDLE"!==a.phase){"DROP_PENDING"===a.phase&&a.isWaiting&&Wp(!1),"DRAGGING"!==a.phase&&"DROP_PENDING"!==a.phase&&Wp(!1);var n=a.critical,s=a.dimensions,r=s.draggables[a.critical.draggable.id],b=function(t){var e=t.draggables,i=t.reason,o=t.lastImpact,a=t.home,l=t.viewport,n=t.onLiftImpact;return o.at&&"DROP"===i?"REORDER"===o.at.type?{impact:o,didDropInsideDroppable:!0}:{impact:(0,We.A)({},o,{displaced:um}),didDropInsideDroppable:!0}:{ | |
| 1971 | -impact:Km({draggables:e,impact:n,destination:a,viewport:l,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:l,lastImpact:a.impact,afterCritical:a.afterCritical,onLiftImpact:a.onLiftImpact,home:a.dimensions.droppables[a.critical.droppable.id],viewport:a.viewport,draggables:a.dimensions.draggables}),c=b.impact,d=b.didDropInsideDroppable,u=d?sm(c):null,p=d?rm(c):null,m={index:n.draggable.index,droppableId:n.droppable.id},h={draggableId:r.descriptor.id,type:r.descriptor.type,source:m,reason:l,mode:a.movementMode,destination:u,combine:p},g=function(t){var e=t.impact,i=t.draggable,o=t.dimensions,a=t.viewport,l=t.afterCritical,n=o.draggables,s=o.droppables,r=Ym(e),b=r?s[r]:null,c=s[i.descriptor.droppableId],d=Jm({impact:e,draggable:i,draggables:n,afterCritical:l,droppable:b||c,viewport:a});return Vp(d,i.client.borderBox.center)}({impact:c,draggable:r,dimensions:s,viewport:a.viewport,afterCritical:a.afterCritical}),f={critical:a.critical,afterCritical:a.afterCritical,result:h, | |
| 1972 | -impact:c};if(!Op(a.current.client.offset,g)||Boolean(h.combine)){var y=function(t){var e=t.reason,i=Bp(t.current,t.destination);if(i<=0)return Rh;if(i>=1500)return.55;var o=Rh+Sh*(i/1500);return Number(("CANCEL"===e?.6*o:o).toFixed(2))}({current:a.current.client.offset,destination:g,reason:l});i({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:y,completed:f}})}else i(gh({completed:f}))}}else i(function(t){return{type:"DROP_PENDING",payload:t}}({reason:l}))}else t(o)}}},Uh=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Ph=function(t){var e=function(t){var e=t.onWindowScroll,i=kp(function(){e(Uh())}),o=function(t){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||t()}}}(i),a=_p;function l(){return a!==_p}return{start:function(){l()&&Wp(!1),a=Rp(window,[o])},stop:function(){l()||Wp(!1),i.cancel(),a(),a=_p},isActive:l}}({onWindowScroll:function(e){t.dispatch({ | |
| 1973 | -type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:e}})}});return function(t){return function(i){e.isActive()||"INITIAL_PUBLISH"!==i.type||e.start(),e.isActive()&&function(t){return"DROP_COMPLETE"===t.type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type}(i)&&e.stop(),t(i)}}},jh=function(t,e){e()},wh=function(t,e){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:e}},zh=function(t,e,i,o){if(t){var a=function(t){var e=!1,i=!1,o=setTimeout(function(){i=!0}),a=function(a){e||i||(e=!0,t(a),clearTimeout(o))};return a.wasCalled=function(){return e},a}(i);t(e,{announce:a}),a.wasCalled()||i(o(e))}else i(o(e))},Ch=function(t,e){var i=function(t,e){var i,o=(i=[],{add:function(t){var e=setTimeout(function(){return function(t){var e=Qp(i,function(e){return e.timerId===t});-1===e&&Wp(!1),i.splice(e,1)[0].callback()}(e)}),o={timerId:e,callback:t};i.push(o)},flush:function(){if(i.length){var t=[].concat(i);i.length=0,t.forEach(function(t){ | |
| 1974 | -clearTimeout(t.timerId),t.callback()})}}}),a=null,l=function(i){a||Wp(!1),a=null,jh(0,function(){return zh(t().onDragEnd,i,e,Dp)})};return{beforeCapture:function(e,i){a&&Wp(!1),jh(0,function(){var o=t().onBeforeCapture;o&&o({draggableId:e,mode:i})})},beforeStart:function(e,i){a&&Wp(!1),jh(0,function(){var o=t().onBeforeDragStart;o&&o(wh(e,i))})},start:function(i,l){a&&Wp(!1);var n=wh(i,l);a={mode:l,lastCritical:i,lastLocation:n.source,lastCombine:null},o.add(function(){jh(0,function(){return zh(t().onDragStart,n,e,Ap)})})},update:function(i,l){var n=sm(l),s=rm(l);a||Wp(!1);var r=!function(t,e){if(t===e)return!0;var i=t.draggable.id===e.draggable.id&&t.draggable.droppableId===e.draggable.droppableId&&t.draggable.type===e.draggable.type&&t.draggable.index===e.draggable.index,o=t.droppable.id===e.droppable.id&&t.droppable.type===e.droppable.type;return i&&o}(i,a.lastCritical);r&&(a.lastCritical=i);var b,c,d=(c=n, | |
| 1975 | -!(null==(b=a.lastLocation)&&null==c||null!=b&&null!=c&&b.droppableId===c.droppableId&&b.index===c.index));d&&(a.lastLocation=n);var u=!function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.draggableId===e.draggableId&&t.droppableId===e.droppableId}(a.lastCombine,s);if(u&&(a.lastCombine=s),r||d||u){var p=(0,We.A)({},wh(i,a.mode),{combine:s,destination:n});o.add(function(){jh(0,function(){return zh(t().onDragUpdate,p,e,Lp)})})}},flush:function(){a||Wp(!1),o.flush()},drop:l,abort:function(){if(a){var t=(0,We.A)({},wh(a.lastCritical,a.mode),{combine:null,destination:null,reason:"CANCEL"});l(t)}}}}(t,e);return function(t){return function(e){return function(o){if("BEFORE_INITIAL_CAPTURE"!==o.type){if("INITIAL_PUBLISH"===o.type){var a=o.payload.critical;return i.beforeStart(a,o.payload.movementMode),e(o),void i.start(a,o.payload.movementMode)}if("DROP_COMPLETE"===o.type){var l=o.payload.completed.result;return i.flush(),e(o),void i.drop(l)}if(e(o),"FLUSH"!==o.type){var n=t.getState() | |
| 1976 | -;"DRAGGING"===n.phase&&i.update(n.critical,n.impact)}else i.abort()}else i.beforeCapture(o.payload.draggableId,o.payload.movementMode)}}}},Ah=function(t){return function(e){return function(i){if("DROP_ANIMATION_FINISHED"===i.type){var o=t.getState();"DROP_ANIMATING"!==o.phase&&Wp(!1),t.dispatch(gh({completed:o.completed}))}else e(i)}}},Lh=function(t){var e=null,i=null;return function(o){return function(a){if("FLUSH"!==a.type&&"DROP_COMPLETE"!==a.type&&"DROP_ANIMATION_FINISHED"!==a.type||(i&&(cancelAnimationFrame(i),i=null),e&&(e(),e=null)),o(a),"DROP_ANIMATE"===a.type){var l={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===t.getState().phase&&t.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};i=requestAnimationFrame(function(){i=null,e=Rp(window,[l])})}}}},Dh=function(t){return function(e){return function(i){if(e(i),"PUBLISH_WHILE_DRAGGING"===i.type){var o=t.getState();"DROP_PENDING"===o.phase&&(o.isWaiting||t.dispatch(fh({ | |
| 1977 | -reason:o.reason})))}}}},Nh=xu,Ih=function(t){var e=t.scrollHeight,i=t.scrollWidth,o=t.height,a=t.width,l=Vp({x:i,y:e},{x:a,y:o});return{x:Math.max(0,l.x),y:Math.max(0,l.y)}},Vh=function(){var t=document.documentElement;return t||Wp(!1),t},Oh=function(){var t=Vh();return Ih({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,width:t.clientWidth,height:t.clientHeight})};function Yh(t,e,i){return i.descriptor.id!==e.id&&i.descriptor.type===e.type&&"virtual"===t.droppable.getById(i.descriptor.droppableId).descriptor.mode}var Xh,Bh,Eh=function(t,e){var i=null,o=function(t){var e=t.registry,i=t.callbacks,o={additions:{},removals:{},modified:{}},a=null,l=function(){a||(i.collectionStarting(),a=requestAnimationFrame(function(){a=null;var t=o,l=t.additions,n=t.removals,s=t.modified,r=Object.keys(l).map(function(t){return e.draggable.getById(t).getDimension(Np)}).sort(function(t,e){return t.descriptor.index-e.descriptor.index}),b=Object.keys(s).map(function(t){return{droppableId:t, | |
| 1978 | -scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}}),c={additions:r,removals:Object.keys(n),modified:b};o={additions:{},removals:{},modified:{}},i.publish(c)}))};return{add:function(t){var e=t.descriptor.id;o.additions[e]=t,o.modified[t.descriptor.droppableId]=!0,o.removals[e]&&delete o.removals[e],l()},remove:function(t){var e=t.descriptor;o.removals[e.id]=!0,o.modified[e.droppableId]=!0,o.additions[e.id]&&delete o.additions[e.id],l()},stop:function(){a&&(cancelAnimationFrame(a),a=null,o={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:e.publishWhileDragging,collectionStarting:e.collectionStarting},registry:t}),a=function(e){i||Wp(!1);var a=i.critical.draggable;"ADDITION"===e.type&&Yh(t,a,e.value)&&o.add(e.value),"REMOVAL"===e.type&&Yh(t,a,e.value)&&o.remove(e.value)},l={updateDroppableIsEnabled:function(o,a){t.droppable.exists(o)||Wp(!1),i&&e.updateDroppableIsEnabled({id:o,isEnabled:a})},updateDroppableIsCombineEnabled:function(o,a){ | |
| 1979 | -i&&(t.droppable.exists(o)||Wp(!1),e.updateDroppableIsCombineEnabled({id:o,isCombineEnabled:a}))},scrollDroppable:function(e,o){i&&t.droppable.getById(e).callbacks.scroll(o)},updateDroppableScroll:function(o,a){i&&(t.droppable.exists(o)||Wp(!1),e.updateDroppableScroll({id:o,newScroll:a}))},startPublishing:function(e){i&&Wp(!1);var o=t.draggable.getById(e.draggableId),l=t.droppable.getById(o.descriptor.droppableId),n={draggable:o.descriptor,droppable:l.descriptor},s=t.subscribe(a);return i={critical:n,unsubscribe:s},function(t){var e=t.critical,i=t.scrollOptions,o=t.registry,a=function(){var t=Uh(),e=Oh(),i=t.y,o=t.x,a=Vh(),l=a.clientWidth,n=a.clientHeight;return{frame:bp({top:i,left:o,right:o+l,bottom:i+n}),scroll:{initial:t,current:t,max:e,diff:{value:Np,displacement:Np}}}}(),l=a.scroll.current,n=e.droppable,s=o.droppable.getAllByType(n.type).map(function(t){return t.callbacks.getDimensionAndWatchScroll(l,i)}),r=o.draggable.getAllByType(e.draggable.type).map(function(t){ | |
| 1980 | -return t.getDimension(l)});return{dimensions:{draggables:om(r),droppables:im(s)},critical:e,viewport:a}}({critical:n,registry:t,scrollOptions:e.scrollOptions})},stopPublishing:function(){if(i){o.stop();var e=i.critical.droppable;t.droppable.getAllByType(e.type).forEach(function(t){return t.callbacks.dragStopped()}),i.unsubscribe(),i=null}}};return l},Fh=function(t,e){return"IDLE"===t.phase||"DROP_ANIMATING"===t.phase&&t.completed.result.draggableId!==e&&"DROP"===t.completed.result.reason},qh=function(t){window.scrollBy(t.x,t.y)},$h=xp(function(t){return am(t).filter(function(t){return!!t.isEnabled&&!!t.frame})}),Gh=function(t){return Math.pow(t,2)},Zh=function(t){var e=t.startOfRange,i=t.endOfRange,o=t.current,a=i-e;return 0===a?0:(o-e)/a},Kh=360,Jh=1200,Qh=function(t){var e=t.distanceToEdge,i=t.thresholds,o=t.dragStartTime,a=t.shouldUseTimeDampening,l=function(t,e){if(t>e.startScrollingFrom)return 0;if(t<=e.maxScrollValueAt)return 28;if(t===e.startScrollingFrom)return 1;var i=Zh({ | |
| 1981 | -startOfRange:e.maxScrollValueAt,endOfRange:e.startScrollingFrom,current:t}),o=28*Gh(1-i);return Math.ceil(o)}(e,i);return 0===l?0:a?Math.max(function(t,e){var i=e,o=Jh,a=Date.now()-i;if(a>=Jh)return t;if(a<Kh)return 1;var l=Zh({startOfRange:Kh,endOfRange:o,current:a}),n=t*Gh(l);return Math.ceil(n)}(l,o),1):l},tg=function(t){var e=t.container,i=t.distanceToEdges,o=t.dragStartTime,a=t.axis,l=t.shouldUseTimeDampening,n=function(t,e){return{startScrollingFrom:.25*t[e.size],maxScrollValueAt:.05*t[e.size]}}(e,a);return i[a.end]<i[a.start]?Qh({distanceToEdge:i[a.end],thresholds:n,dragStartTime:o,shouldUseTimeDampening:l}):-1*Qh({distanceToEdge:i[a.start],thresholds:n,dragStartTime:o,shouldUseTimeDampening:l})},eg=Fp(function(t){return 0===t?0:t}),ig=function(t){var e=t.dragStartTime,i=t.container,o=t.subject,a=t.center,l=t.shouldUseTimeDampening,n={top:a.y-i.top,right:i.right-a.x,bottom:i.bottom-a.y,left:a.x-i.left},s=tg({container:i,distanceToEdges:n,dragStartTime:e,axis:fm, | |
| 1982 | -shouldUseTimeDampening:l}),r=tg({container:i,distanceToEdges:n,dragStartTime:e,axis:ym,shouldUseTimeDampening:l}),b=eg({x:r,y:s});if(Op(b,Np))return null;var c=function(t){var e=t.container,i=t.subject,o=t.proposedScroll,a=i.height>e.height,l=i.width>e.width;return l||a?l&&a?null:{x:l?0:o.x,y:a?0:o.y}:o}({container:i,subject:o,proposedScroll:b});return c?Op(c,Np)?null:c:null},og=Fp(function(t){return 0===t?0:t>0?1:-1}),ag=(Xh=function(t,e){return t<0?t:t>e?t-e:0},function(t){var e=t.current,i=t.max,o=t.change,a=Ip(e,o),l={x:Xh(a.x,i.x),y:Xh(a.y,i.y)};return Op(l,Np)?null:l}),lg=function(t){var e=t.max,i=t.current,o=t.change,a={x:Math.max(i.x,e.x),y:Math.max(i.y,e.y)},l=og(o),n=ag({max:a,current:i,change:l});return!n||0!==l.x&&0===n.x||0!==l.y&&0===n.y},ng=function(t,e){return lg({current:t.scroll.current,max:t.scroll.max,change:e})},sg=function(t,e){var i=t.frame;return!!i&&lg({current:i.scroll.current,max:i.scroll.max,change:e})},rg=function(t){ | |
| 1983 | -var e=t.state,i=t.dragStartTime,o=t.shouldUseTimeDampening,a=t.scrollWindow,l=t.scrollDroppable,n=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){var r=function(t){var e=t.viewport,i=t.subject,o=t.center,a=t.shouldUseTimeDampening,l=ig({dragStartTime:t.dragStartTime,container:e.frame,subject:i,center:o,shouldUseTimeDampening:a});return l&&ng(e,l)?l:null}({dragStartTime:i,viewport:e.viewport,subject:s,center:n,shouldUseTimeDampening:o});if(r)return void a(r)}var b=function(t){var e=t.center,i=t.destination,o=t.droppables;if(i){var a=o[i];return a.frame?a:null}var l=function(t,e){var i=tm($h(e),function(e){return e.frame||Wp(!1),Em(e.frame.pageMarginBox)(t)});return i}(e,o);return l}({center:n,destination:Ym(e.impact),droppables:e.dimensions.droppables});if(b){var c=function(t){var e=t.droppable,i=t.subject,o=t.center,a=t.dragStartTime,l=t.shouldUseTimeDampening,n=e.frame;if(!n)return null;var s=ig({ | |
| 1984 | -dragStartTime:a,container:n.pageMarginBox,subject:i,center:o,shouldUseTimeDampening:l});return s&&sg(e,s)?s:null}({dragStartTime:i,droppable:b,subject:s,center:n,shouldUseTimeDampening:o});c&&l(b.descriptor.id,c)}},bg=function(t){var e=t.move,i=t.scrollDroppable,o=t.scrollWindow;return function(t){var a=t.scrollJumpRequest;if(a){var l=Ym(t.impact);l||Wp(!1);var n=function(t,e){if(!sg(t,e))return e;var o=function(t,e){var i=t.frame;return i&&sg(t,e)?ag({current:i.scroll.current,max:i.scroll.max,change:e}):null}(t,e);if(!o)return i(t.descriptor.id,e),null;var a=Vp(e,o);return i(t.descriptor.id,a),Vp(e,a)}(t.dimensions.droppables[l],a);if(n){var s=t.viewport,r=function(t,e,i){if(!t)return i;if(!ng(e,i))return i;var a=function(t,e){if(!ng(t,e))return null;var i=t.scroll.max,o=t.scroll.current;return ag({current:o,max:i,change:e})}(e,i);if(!a)return o(i),null;var l=Vp(i,a);return o(l),Vp(i,l)}(t.isWindowScrollAllowed,s,n);r&&function(t,i){var o=Ip(t.current.client.selection,i);e({client:o}) | |
| 1985 | -}(t,r)}}}},cg="data-rbd",dg={base:Bh=cg+"-drag-handle",draggableId:Bh+"-draggable-id",contextId:Bh+"-context-id"},ug=function(){var t=cg+"-draggable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),pg=function(){var t=cg+"-droppable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),mg={contextId:cg+"-scroll-container-context-id"},hg=function(t,e){return t.map(function(t){var i=t.styles[e];return i?t.selector+" { "+i+" }":""}).join(" ")},gg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,fg=function(){var t=document.querySelector("head");return t||Wp(!1),t},yg=function(t){var e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.type="text/css",e};var Tg=function(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:window};function Hg(t){return t instanceof Tg(t).HTMLElement}function Mg(){var t={draggables:{},droppables:{}},e=[];function i(t){e.length&&e.forEach(function(e){ | |
| 1986 | -return e(t)})}function o(e){return t.draggables[e]||null}function a(e){return t.droppables[e]||null}return{draggable:{register:function(e){t.draggables[e.descriptor.id]=e,i({type:"ADDITION",value:e})},update:function(e,i){var o=t.draggables[i.descriptor.id];o&&o.uniqueId===e.uniqueId&&(delete t.draggables[i.descriptor.id],t.draggables[e.descriptor.id]=e)},unregister:function(e){var a=e.descriptor.id,l=o(a);l&&e.uniqueId===l.uniqueId&&(delete t.draggables[a],i({type:"REMOVAL",value:e}))},getById:function(t){var e=o(t);return e||Wp(!1),e},findById:o,exists:function(t){return Boolean(o(t))},getAllByType:function(e){return Jp(t.draggables).filter(function(t){return t.descriptor.type===e})}},droppable:{register:function(e){t.droppables[e.descriptor.id]=e},unregister:function(e){var i=a(e.descriptor.id);i&&e.uniqueId===i.uniqueId&&delete t.droppables[e.descriptor.id]},getById:function(t){var e=a(t);return e||Wp(!1),e},findById:a,exists:function(t){return Boolean(a(t))}, | |
| 1987 | -getAllByType:function(e){return Jp(t.droppables).filter(function(t){return t.descriptor.type===e})}},subscribe:function(t){return e.push(t),function(){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}},clean:function(){t.draggables={},t.droppables={},e.length=0}}}var xg=l().createContext(null),kg=function(){var t=document.body;return t||Wp(!1),t},vg={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},_g=0,Rg={separator:"::"};function Sg(t,e){return void 0===e&&(e=Rg),sp(function(){return""+t+e.separator+_g++},[e.separator,t])}var Wg=l().createContext(null);function Ug(t){var e=(0,a.useRef)(t);return(0,a.useEffect)(function(){e.current=t}),e}var Pg,jg,wg=((Pg={})[13]=!0,Pg[9]=!0,Pg),zg=function(t){wg[t.keyCode]&&t.preventDefault()},Cg=function(){var t="visibilitychange";return"undefined"==typeof document?t:tm([t,"ms"+t,"webkit"+t,"moz"+t,"o"+t],function(t){return"on"+t in document})||t}(),Ag={ | |
| 1988 | -type:"IDLE"};function Lg(){}var Dg=((jg={})[34]=!0,jg[33]=!0,jg[36]=!0,jg[35]=!0,jg);var Ng={type:"IDLE"},Ig={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Vg(t,e){if(null==e)return!1;if(Boolean(Ig[e.tagName.toLowerCase()]))return!0;var i=e.getAttribute("contenteditable");return"true"===i||""===i||e!==t&&Vg(t,e.parentElement)}function Og(t,e){var i=e.target;return!!Hg(i)&&Vg(t,i)}var Yg=function(t){return bp(t.getBoundingClientRect()).center},Xg=function(){var t="matches";return"undefined"==typeof document?t:tm([t,"msMatchesSelector","webkitMatchesSelector"],function(t){return t in Element.prototype})||t}();function Bg(t,e){return null==t?null:t[Xg](e)?t:Bg(t.parentElement,e)}function Eg(t,e){return t.closest?t.closest(e):Bg(t,e)}function Fg(t){t.preventDefault()}function qg(t){var e=t.expected,i=t.phase,o=t.isLockActive;return t.shouldWarn,!!o()&&e===i}function $g(t){var e=t.lockAPI,i=t.store,o=t.registry,a=t.draggableId | |
| 1989 | -;if(e.isClaimed())return!1;var l=o.draggable.findById(a);return!!l&&!!l.options.isEnabled&&!!Fh(i.getState(),a)}var Gg=[function(t){var e=(0,a.useRef)(Ag),i=(0,a.useRef)(_p),o=sp(function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var o=t.findClosestDraggableId(e);if(o){var a=t.tryGetLock(o,s,{sourceEvent:e});if(a){e.preventDefault();var l={x:e.clientX,y:e.clientY};i.current(),c(a,l)}}}}}},[t]),l=sp(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var i=t.findClosestDraggableId(e);if(i){var o=t.findOptionsForDraggable(i);o&&(o.shouldRespectForcePress||t.canGetLock(i)&&e.preventDefault())}}}}},[t]),n=rp(function(){i.current=Rp(window,[l,o],{passive:!1,capture:!0})},[l,o]),s=rp(function(){"IDLE"!==e.current.type&&(e.current=Ag,i.current(),n())},[n]),r=rp(function(){var t=e.current;s(),"DRAGGING"===t.type&&t.actions.cancel({shouldBlockNextClick:!0}), | |
| 1990 | -"PENDING"===t.type&&t.actions.abort()},[s]),b=rp(function(){var t=function(t){var e=t.cancel,i=t.completed,o=t.getPhase,a=t.setPhase;return[{eventName:"mousemove",fn:function(t){var e,i,l=t.button,n=t.clientX,s=t.clientY;if(0===l){var r={x:n,y:s},b=o();if("DRAGGING"===b.type)return t.preventDefault(),void b.actions.move(r);if("PENDING"!==b.type&&Wp(!1),e=b.point,i=r,Math.abs(i.x-e.x)>=5||Math.abs(i.y-e.y)>=5){t.preventDefault();var c=b.actions.fluidLift(r);a({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(t){var a=o();"DRAGGING"===a.type?(t.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),i()):e()}},{eventName:"mousedown",fn:function(t){"DRAGGING"===o().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:function(t){if("PENDING"!==o().type)return 27===t.keyCode?(t.preventDefault(),void e()):void zg(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===o().type&&e()}},{ | |
| 1991 | -eventName:"webkitmouseforcedown",fn:function(t){var i=o();"IDLE"===i.type&&Wp(!1),i.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:Cg,fn:e}]}({cancel:r,completed:s,getPhase:function(){return e.current},setPhase:function(t){e.current=t}});i.current=Rp(window,t,{capture:!0,passive:!1})},[r,s]),c=rp(function(t,i){"IDLE"!==e.current.type&&Wp(!1),e.current={type:"PENDING",point:i,actions:t},b()},[b]);gg(function(){return n(),function(){i.current()}},[n])},function(t){var e=(0,a.useRef)(Lg),i=sp(function(){return{eventName:"keydown",fn:function(i){if(!i.defaultPrevented&&32===i.keyCode){var a=t.findClosestDraggableId(i);if(a){var l=t.tryGetLock(a,r,{sourceEvent:i});if(l){i.preventDefault();var n=!0,s=l.snapLift();e.current(),e.current=Rp(window,function(t,e){function i(){e(),t.cancel()}return[{eventName:"keydown",fn:function(o){return 27===o.keyCode?(o.preventDefault(),void i()):32===o.keyCode?(o.preventDefault(),e(),void t.drop()):40===o.keyCode?(o.preventDefault(), | |
| 1992 | -void t.moveDown()):38===o.keyCode?(o.preventDefault(),void t.moveUp()):39===o.keyCode?(o.preventDefault(),void t.moveRight()):37===o.keyCode?(o.preventDefault(),void t.moveLeft()):void(Dg[o.keyCode]?o.preventDefault():zg(o))}},{eventName:"mousedown",fn:i},{eventName:"mouseup",fn:i},{eventName:"click",fn:i},{eventName:"touchstart",fn:i},{eventName:"resize",fn:i},{eventName:"wheel",fn:i,options:{passive:!0}},{eventName:Cg,fn:i}]}(s,r),{capture:!0,passive:!1})}}}function r(){n||Wp(!1),n=!1,e.current(),o()}}}},[t]),o=rp(function(){e.current=Rp(window,[i],{passive:!1,capture:!0})},[i]);gg(function(){return o(),function(){e.current()}},[o])},function(t){var e=(0,a.useRef)(Ng),i=(0,a.useRef)(_p),o=rp(function(){return e.current},[]),l=rp(function(t){e.current=t},[]),n=sp(function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var o=t.findClosestDraggableId(e);if(o){var a=t.tryGetLock(o,r,{sourceEvent:e});if(a){var l=e.touches[0],n={x:l.clientX,y:l.clientY};i.current(), | |
| 1993 | -u(a,n)}}}}}},[t]),s=rp(function(){i.current=Rp(window,[n],{capture:!0,passive:!1})},[n]),r=rp(function(){var t=e.current;"IDLE"!==t.type&&("PENDING"===t.type&&clearTimeout(t.longPressTimerId),l(Ng),i.current(),s())},[s,l]),b=rp(function(){var t=e.current;r(),"DRAGGING"===t.type&&t.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===t.type&&t.actions.abort()},[r]),c=rp(function(){var t={capture:!0,passive:!1},e={cancel:b,completed:r,getPhase:o},a=Rp(window,function(t){var e=t.cancel,i=t.completed,o=t.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(t){var i=o();if("DRAGGING"===i.type){i.hasMoved=!0;var a=t.touches[0],l={x:a.clientX,y:a.clientY};t.preventDefault(),i.actions.move(l)}else e()}},{eventName:"touchend",fn:function(t){var a=o();"DRAGGING"===a.type?(t.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),i()):e()}},{eventName:"touchcancel",fn:function(t){"DRAGGING"===o().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange", | |
| 1994 | -fn:function(t){var i=o();"IDLE"===i.type&&Wp(!1);var a=t.touches[0];if(a&&a.force>=.15){var l=i.actions.shouldRespectForcePress();if("PENDING"!==i.type)return l?i.hasMoved?void t.preventDefault():void e():void t.preventDefault();l&&e()}}},{eventName:Cg,fn:e}]}(e),t),l=Rp(window,function(t){var e=t.cancel,i=t.getPhase;return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:function(t){t.preventDefault()}},{eventName:"keydown",fn:function(t){"DRAGGING"===i().type?(27===t.keyCode&&t.preventDefault(),e()):e()}},{eventName:Cg,fn:e}]}(e),t);i.current=function(){a(),l()}},[b,o,r]),d=rp(function(){var t=o();"PENDING"!==t.type&&Wp(!1);var e=t.actions.fluidLift(t.point);l({type:"DRAGGING",actions:e,hasMoved:!1})},[o,l]),u=rp(function(t,e){"IDLE"!==o().type&&Wp(!1);var i=setTimeout(d,120);l({type:"PENDING",point:e,actions:t,longPressTimerId:i}),c()},[c,o,l,d]);gg(function(){return s(),function(){i.current();var t=o() | |
| 1995 | -;"PENDING"===t.type&&(clearTimeout(t.longPressTimerId),l(Ng))}},[o,s,l]),gg(function(){return Rp(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}];function Zg(t){var e=t.contextId,i=t.store,o=t.registry,l=t.customSensors,n=t.enableDefaultSensors,s=[].concat(n?Gg:[],l||[]),r=(0,a.useState)(function(){return function(){var t=null;function e(){t||Wp(!1),t=null}return{isClaimed:function(){return Boolean(t)},isActive:function(e){return e===t},claim:function(e){t&&Wp(!1);var i={abandon:e};return t=i,i},release:e,tryAbandon:function(){t&&(t.abandon(),e())}}}()})[0],b=rp(function(t,e){t.isDragging&&!e.isDragging&&r.tryAbandon()},[r]);gg(function(){var t=i.getState();return i.subscribe(function(){var e=i.getState();b(t,e),t=e})},[r,i,b]),gg(function(){return r.tryAbandon},[r.tryAbandon]);for(var c=rp(function(t){return $g({lockAPI:r,registry:o,store:i,draggableId:t})},[r,o,i]),d=rp(function(t,a,l){return function(t){ | |
| 1996 | -var e=t.lockAPI,i=t.contextId,o=t.store,a=t.registry,l=t.draggableId,n=t.forceSensorStop,s=t.sourceEvent;if(!$g({lockAPI:e,store:o,registry:a,draggableId:l}))return null;var r=a.draggable.getById(l),b=function(t,e){var i="["+ug.contextId+'="'+t+'"]',o=tm(em(document.querySelectorAll(i)),function(t){return t.getAttribute(ug.id)===e});return o&&Hg(o)?o:null}(i,r.descriptor.id);if(!b)return null;if(s&&!r.options.canDragInteractiveElements&&Og(b,s))return null;var c=e.claim(n||_p),d="PRE_DRAG";function u(){return r.options.shouldRespectForcePress}function p(){return e.isActive(c)}var m=function(t,e){qg({expected:t,phase:d,isLockActive:p,shouldWarn:!0})&&o.dispatch(e())}.bind(null,"DRAGGING");function h(t){function i(){e.release(),d="COMPLETED"}function a(e,a){if(void 0===a&&(a={shouldBlockNextClick:!1}),t.cleanup(),a.shouldBlockNextClick){var l=Rp(window,[{eventName:"click",fn:Fg,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(l)}i(),o.dispatch(fh({reason:e}))} | |
| 1997 | -return"PRE_DRAG"!==d&&(i(),"PRE_DRAG"!==d&&Wp(!1)),o.dispatch(function(t){return{type:"LIFT",payload:t}}(t.liftActionArgs)),d="DRAGGING",(0,We.A)({isActive:function(){return qg({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:u,drop:function(t){return a("DROP",t)},cancel:function(t){return a("CANCEL",t)}},t.actions)}var g={isActive:function(){return qg({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:u,fluidLift:function(t){var e=kp(function(t){m(function(){return dh({client:t})})}),i=h({liftActionArgs:{id:l,clientSelection:t,movementMode:"FLUID"},cleanup:function(){return e.cancel()},actions:{move:e}});return(0,We.A)({},i,{move:e})},snapLift:function(){var t={moveUp:function(){return m(uh)},moveRight:function(){return m(mh)},moveDown:function(){return m(ph)},moveLeft:function(){return m(hh)}};return h({liftActionArgs:{id:l,clientSelection:Yg(b),movementMode:"SNAP"},cleanup:_p,actions:t})},abort:function(){qg({ | |
| 1998 | -expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&e.release()}};return g}({lockAPI:r,registry:o,contextId:e,store:i,draggableId:t,forceSensorStop:a,sourceEvent:l&&l.sourceEvent?l.sourceEvent:null})},[e,r,o,i]),u=rp(function(t){return function(t,e){var i=function(t,e){var i,o=e.target;if(!((i=o)instanceof Tg(i).Element))return null;var a=function(t){return"["+dg.contextId+'="'+t+'"]'}(t),l=Eg(o,a);return l&&Hg(l)?l:null}(t,e);return i?i.getAttribute(dg.draggableId):null}(e,t)},[e]),p=rp(function(t){var e=o.draggable.findById(t);return e?e.options:null},[o.draggable]),m=rp(function(){r.isClaimed()&&(r.tryAbandon(),"IDLE"!==i.getState().phase&&i.dispatch({type:"FLUSH",payload:null}))},[r,i]),h=rp(r.isClaimed,[r]),g=sp(function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:u,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}},[c,d,u,p,m,h]),f=0;f<s.length;f++)s[f](g)}function Kg(t){return t.current||Wp(!1),t.current}function Jg(t){ | |
| 1999 | -var e=t.contextId,i=t.setCallbacks,o=t.sensors,n=t.nonce,s=t.dragHandleUsageInstructions,r=(0,a.useRef)(null),b=Ug(t),c=rp(function(){return function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}}(b.current)},[b]),d=function(t){var e=sp(function(){return function(t){return"rbd-announcement-"+t}(t)},[t]),i=(0,a.useRef)(null);return(0,a.useEffect)(function(){var t=document.createElement("div");return i.current=t,t.id=e,t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),(0,We.A)(t.style,vg),kg().appendChild(t),function(){setTimeout(function(){var e=kg();e.contains(t)&&e.removeChild(t),t===i.current&&(i.current=null)})}},[e]),rp(function(t){var e=i.current;e&&(e.textContent=t)},[])}(e),u=function(t){var e=t.contextId,i=t.text,o=Sg("hidden-text",{separator:"-"}),l=sp(function(){return function(t){return"rbd-hidden-text-"+t.contextId+"-"+t.uniqueId}({ | |
| 2000 | -contextId:e,uniqueId:o})},[o,e]);return(0,a.useEffect)(function(){var t=document.createElement("div");return t.id=l,t.textContent=i,t.style.display="none",kg().appendChild(t),function(){var e=kg();e.contains(t)&&e.removeChild(t)}},[l,i]),l}({contextId:e,text:s}),p=function(t,e){var i=sp(function(){return function(t){var e,i,o=function(t){return function(e){return"["+e+'="'+t+'"]'}}(t),a=(e="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(dg.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}),l=[(i="\n transition: "+kh.outOfTheWay+";\n ",{selector:o(ug.contextId),styles:{dragging:i,dropAnimating:i,userCancel:i}}),a,{selector:o(pg.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{ | |
| 2001 | -dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:hg(l,"always"),resting:hg(l,"resting"),dragging:hg(l,"dragging"),dropAnimating:hg(l,"dropAnimating"),userCancel:hg(l,"userCancel")}}(t)},[t]),o=(0,a.useRef)(null),l=(0,a.useRef)(null),n=rp(xp(function(t){var e=l.current;e||Wp(!1),e.textContent=t}),[]),s=rp(function(t){var e=o.current;e||Wp(!1),e.textContent=t},[]);gg(function(){(o.current||l.current)&&Wp(!1);var a=yg(e),r=yg(e);return o.current=a,l.current=r,a.setAttribute(cg+"-always",t),r.setAttribute(cg+"-dynamic",t),fg().appendChild(a),fg().appendChild(r),s(i.always),n(i.resting),function(){var t=function(t){var e=t.current;e||Wp(!1),fg().removeChild(e),t.current=null};t(o),t(l)}},[e,s,n,i.always,i.resting,t]);var r=rp(function(){return n(i.dragging) | |
| 2002 | -},[n,i.dragging]),b=rp(function(t){n("DROP"!==t?i.userCancel:i.dropAnimating)},[n,i.dropAnimating,i.userCancel]),c=rp(function(){l.current&&n(i.resting)},[n,i.resting]);return sp(function(){return{dragging:r,dropping:b,resting:c}},[r,b,c])}(e,n),m=rp(function(t){Kg(r).dispatch(t)},[]),h=sp(function(){return Mu({publishWhileDragging:nh,updateDroppableScroll:rh,updateDroppableIsEnabled:bh,updateDroppableIsCombineEnabled:ch,collectionStarting:sh},m)},[m]),g=function(){var t=sp(Mg,[]);return(0,a.useEffect)(function(){return function(){requestAnimationFrame(t.clean)}},[t]),t}(),f=sp(function(){return Eh(g,h)},[g,h]),y=sp(function(){return function(t){var e=t.scrollDroppable,i=t.scrollWindow,o=t.move,a=function(t){var e=t.scrollDroppable,i=kp(t.scrollWindow),o=kp(e),a=null,l=function(t){a||Wp(!1);var e=a,l=e.shouldUseTimeDampening,n=e.dragStartTime;rg({state:t,scrollWindow:i,scrollDroppable:o,dragStartTime:n,shouldUseTimeDampening:l})};return{start:function(t){a&&Wp(!1) | |
| 2003 | -;var e=Date.now(),i=!1,o=function(){i=!0};rg({state:t,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o}),a={dragStartTime:e,shouldUseTimeDampening:i},i&&l(t)},stop:function(){a&&(i.cancel(),o.cancel(),a=null)},scroll:l}}({scrollWindow:i,scrollDroppable:e}),l=bg({move:o,scrollWindow:i,scrollDroppable:e});return{scroll:function(t){"DRAGGING"===t.phase&&("FLUID"!==t.movementMode?t.scrollJumpRequest&&l(t):a.scroll(t))},start:a.start,stop:a.stop}}((0,We.A)({scrollWindow:qh,scrollDroppable:f.scrollDroppable},Mu({move:dh},m)))},[f.scrollDroppable,m]),T=function(t){var e=(0,a.useRef)({}),i=(0,a.useRef)(null),o=(0,a.useRef)(null),l=(0,a.useRef)(!1),n=rp(function(t,i){var o={id:t,focus:i};return e.current[t]=o,function(){var i=e.current;i[t]!==o&&delete i[t]}},[]),s=rp(function(e){var i=function(t,e){var i="["+dg.contextId+'="'+t+'"]',o=em(document.querySelectorAll(i));if(!o.length)return null;var a=tm(o,function(t){return t.getAttribute(dg.draggableId)===e}) | |
| 2004 | -;return a&&Hg(a)?a:null}(t,e);i&&i!==document.activeElement&&i.focus()},[t]),r=rp(function(t,e){i.current===t&&(i.current=e)},[]),b=rp(function(){o.current||l.current&&(o.current=requestAnimationFrame(function(){o.current=null;var t=i.current;t&&s(t)}))},[s]),c=rp(function(t){i.current=null;var e=document.activeElement;e&&e.getAttribute(dg.draggableId)===t&&(i.current=t)},[]);return gg(function(){return l.current=!0,function(){l.current=!1;var t=o.current;t&&cancelAnimationFrame(t)}},[]),sp(function(){return{register:n,tryRecordFocus:c,tryRestoreFocusRecorded:b,tryShiftRecord:r}},[n,c,b,r])}(e),H=sp(function(){return function(t){var e,i=t.dimensionMarshal,o=t.focusMarshal,a=t.styleMarshal,l=t.getResponders,n=t.announce,s=t.autoScroller;return Tu(lh,Nh(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(hu(15))},a={getState:i.getState,dispatch:function(){ | |
| 2005 | -return o.apply(void 0,arguments)}},l=e.map(function(t){return t(a)});return o=xu.apply(void 0,l)(i.dispatch),Me(Me({},i),{},{dispatch:o})}}}((e=a,function(){return function(t){return function(i){"INITIAL_PUBLISH"===i.type&&e.dragging(),"DROP_ANIMATE"===i.type&&e.dropping(i.payload.completed.result.reason),"FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type||e.resting(),t(i)}}}),function(t){return function(){return function(e){return function(i){"DROP_COMPLETE"!==i.type&&"FLUSH"!==i.type&&"DROP_ANIMATE"!==i.type||t.stopPublishing(),e(i)}}}}(i),function(t){return function(e){var i=e.getState,o=e.dispatch;return function(e){return function(a){if("LIFT"===a.type){var l=a.payload,n=l.id,s=l.clientSelection,r=l.movementMode,b=i();"DROP_ANIMATING"===b.phase&&o(gh({completed:b.completed})),"IDLE"!==i().phase&&Wp(!1),o({type:"FLUSH",payload:null}),o({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:n,movementMode:r}});var c={draggableId:n,scrollOptions:{shouldPublishImmediately:"SNAP"===r} | |
| 2006 | -},d=t.startPublishing(c),u=d.critical,p=d.dimensions,m=d.viewport;o({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:p,clientSelection:s,movementMode:r,viewport:m}})}else e(a)}}}}(i),Wh,Ah,Lh,Dh,function(t){return function(e){return function(i){return function(o){if(function(t){return"DROP_COMPLETE"===t.type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type}(o))return t.stop(),void i(o);if("INITIAL_PUBLISH"===o.type){i(o);var a=e.getState();return"DRAGGING"!==a.phase&&Wp(!1),void t.start(a)}i(o),t.scroll(e.getState())}}}}(s),Ph,function(t){var e=!1;return function(){return function(i){return function(o){if("INITIAL_PUBLISH"===o.type)return e=!0,t.tryRecordFocus(o.payload.critical.draggable.id),i(o),void t.tryRestoreFocusRecorded();if(i(o),e){if("FLUSH"===o.type)return e=!1,void t.tryRestoreFocusRecorded();if("DROP_COMPLETE"===o.type){e=!1;var a=o.payload.completed.result;a.combine&&t.tryShiftRecord(a.draggableId,a.combine.draggableId),t.tryRestoreFocusRecorded()}}}}}}(o),Ch(l,n))))}({ | |
| 2007 | -announce:d,autoScroller:y,dimensionMarshal:f,focusMarshal:T,getResponders:c,styleMarshal:p})},[d,y,f,T,c,p]);r.current=H;var M=rp(function(){var t=Kg(r);"IDLE"!==t.getState().phase&&t.dispatch({type:"FLUSH",payload:null})},[]),x=rp(function(){var t=Kg(r).getState();return t.isDragging||"DROP_ANIMATING"===t.phase},[]);i(sp(function(){return{isDragging:x,tryAbort:M}},[x,M]));var k=rp(function(t){return Fh(Kg(r).getState(),t)},[]),v=rp(function(){return Bm(Kg(r).getState())},[]),_=sp(function(){return{marshal:f,focus:T,contextId:e,canLift:k,isMovementAllowed:v,dragHandleUsageInstructionsId:u,registry:g}},[e,f,u,T,k,v,g]);return Zg({contextId:e,store:H,registry:g,customSensors:o,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,a.useEffect)(function(){return M},[M]),l().createElement(Wg.Provider,{value:_},l().createElement(Uu,{context:xg,store:H},t.children))}var Qg=0;function tf(t){var e=sp(function(){return""+Qg++ | |
| 2008 | -},[]),i=t.dragHandleUsageInstructions||"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";return l().createElement(Up,null,function(o){return l().createElement(Jg,{nonce:t.nonce,contextId:e,setCallbacks:o,dragHandleUsageInstructions:i,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd},t.children)})}var ef=function(t){return function(e){return t===e}},of=ef("scroll"),af=ef("auto"),lf=(ef("visible"),function(t,e){return e(t.overflowX)||e(t.overflowY)}),nf=function t(e){return null==e||e===document.body||e===document.documentElement?null:function(t){var e=window.getComputedStyle(t),i={overflowX:e.overflowX,overflowY:e.overflowY};return lf(i,of)||lf(i,af) | |
| 2009 | -}(e)?e:t(e.parentElement)},sf=function(t){return{x:t.scrollLeft,y:t.scrollTop}},rf=function t(e){return!!e&&("fixed"===window.getComputedStyle(e).position||t(e.parentElement))},bf={passive:!1},cf={passive:!0},df=function(t){return t.shouldPublishImmediately?bf:cf};function uf(t){var e=(0,a.useContext)(t);return e||Wp(!1),e}var pf=function(t){return t&&t.env.closestScrollable||null};function mf(){}var hf={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},gf=l().memo(function(t){var e=(0,a.useRef)(null),i=rp(function(){e.current&&(clearTimeout(e.current),e.current=null)},[]),o=t.animate,n=t.onTransitionEnd,s=t.onClose,r=t.contextId,b=(0,a.useState)("open"===t.animate),c=b[0],d=b[1];(0,a.useEffect)(function(){return c?"open"!==o?(i(),d(!1),mf):e.current?mf:(e.current=setTimeout(function(){e.current=null,d(!1)}),i):mf},[o,c,i]);var u=rp(function(t){"height"===t.propertyName&&(n(),"close"===o&&s())},[o,s,n]),p=function(t){ | |
| 2010 | -var e=t.isAnimatingOpenOnMount,i=t.placeholder,o=t.animate,a=function(t){var e=t.placeholder;return t.isAnimatingOpenOnMount||"close"===t.animate?hf:{height:e.client.borderBox.height,width:e.client.borderBox.width,margin:e.client.margin}}({isAnimatingOpenOnMount:e,placeholder:i,animate:o});return{display:i.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==o?kh.placeholder:null}}({isAnimatingOpenOnMount:c,animate:t.animate,placeholder:t.placeholder});return l().createElement(t.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":r,onTransitionEnd:u,ref:t.innerRef})}),ff=l().createContext(null),yf=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))||this).state={isVisible:Boolean(e.props.on),data:e.props.on, | |
| 2011 | -animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return mu(e,t),e.getDerivedStateFromProps=function(t,e){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:e.isVisible?{isVisible:!0,data:e.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(t.on),data:t.on,animate:"none"}},e.prototype.render=function(){if(!this.state.isVisible)return null;var t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)},e}(l().PureComponent),Tf=function(t,e){return e?kh.drop(e.duration):t?kh.snap:kh.fluid},Hf=function(t,e){return t?e?Th:Hh:null};function Mf(t){return"DRAGGING"===t.type?function(t){var e=t.dimension.client,i=t.offset,o=t.combineWith,a=t.dropping,l=Boolean(o),n=function(t){return null!=t.forceShouldAnimate?t.forceShouldAnimate:"SNAP"===t.mode}(t),s=Boolean(a),r=s?function(t,e){var i=vh(t) | |
| 2012 | -;return i?e?i+" scale("+Mh+")":i:null}(i,l):_h(i);return{position:"fixed",top:e.marginBox.top,left:e.marginBox.left,boxSizing:"border-box",width:e.borderBox.width,height:e.borderBox.height,transition:Tf(n,a),transform:r,opacity:Hf(l,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(t):{transform:_h((e=t).offset),transition:e.shouldAnimateDisplacement?null:"none"};var e}function xf(t){t.preventDefault()}var kf=function(t,e){return t===e},vf=function(t){var e=t.combine,i=t.destination;return i?i.droppableId:e?e.droppableId:null};function _f(t){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:t,combineWith:null}}var Rf={mapped:{type:"SECONDARY",offset:Np,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:_f(null)}},Sf=ap(function(){var t,e,i,o=(t=xp(function(t,e){return{x:t,y:e}}),e=xp(function(t,e,i,o,a){return{isDragging:!0,isClone:e,isDropAnimating:Boolean(a),dropAnimation:a,mode:t,draggingOver:i,combineWith:o, | |
| 2013 | -combineTargetFor:null}}),i=xp(function(t,i,o,a,l,n,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:n,mode:i,offset:t,dimension:o,forceShouldAnimate:s,snapshot:e(i,a,l,n,null)}}}),function(o,a){if(o.isDragging){if(o.critical.draggable.id!==a.draggableId)return null;var l=o.current.client.offset,n=o.dimensions.draggables[a.draggableId],s=Ym(o.impact),r=(c=o.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,b=o.forceShouldAnimate;return i(t(l.x,l.y),o.movementMode,n,a.isClone,s,r,b)}var c;if("DROP_ANIMATING"===o.phase){var d=o.completed;if(d.result.draggableId!==a.draggableId)return null;var u=a.isClone,p=o.dimensions.draggables[a.draggableId],m=d.result,h=m.mode,g=vf(m),f=function(t){return t.combine?t.combine.draggableId:null}(m),y={duration:o.dropDuration,curve:yh,moveTo:o.newHomeClientOffset,opacity:f?Th:null,scale:f?Mh:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:f,mode:h, | |
| 2014 | -forceShouldAnimate:null,snapshot:e(h,u,g,f,y)}}}return null}),a=function(){var t=xp(function(t,e){return{x:t,y:e}}),e=xp(_f),i=xp(function(t,i,o){return void 0===i&&(i=null),{mapped:{type:"SECONDARY",offset:t,combineTargetFor:i,shouldAnimateDisplacement:o,snapshot:e(i)}}}),o=function(t){return t?i(Np,t,!0):null},a=function(e,a,l,n){var s=l.displaced.visible[e],r=Boolean(n.inVirtualList&&n.effected[e]),b=rm(l),c=b&&b.draggableId===e?a:null;if(!s){if(!r)return o(c);if(l.displaced.invisible[e])return null;var d=Yp(n.displacedBy.point),u=t(d.x,d.y);return i(u,c,!0)}if(r)return o(c);var p=l.displacedBy.point,m=t(p.x,p.y);return i(m,c,s.shouldAnimate)};return function(t,e){if(t.isDragging)return t.critical.draggable.id===e.draggableId?null:a(e.draggableId,t.critical.draggable.id,t.impact,t.afterCritical);if("DROP_ANIMATING"===t.phase){var i=t.completed;return i.result.draggableId===e.draggableId?null:a(e.draggableId,i.result.draggableId,i.impact,i.afterCritical)}return null}}() | |
| 2015 | -;return function(t,e){return o(t,e)||a(t,e)||Rf}},{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:xg,pure:!0,areStatePropsEqual:kf})(function(t){var e=(0,a.useRef)(null),i=rp(function(t){e.current=t},[]),o=rp(function(){return e.current},[]),l=uf(Wg),n=l.contextId,s=l.dragHandleUsageInstructionsId,r=l.registry,b=uf(ff),c=b.type,d=b.droppableId,u=sp(function(){return{id:t.draggableId,index:t.index,type:c,droppableId:d}},[t.draggableId,t.index,c,d]),p=t.children,m=t.draggableId,h=t.isEnabled,g=t.shouldRespectForcePress,f=t.canDragInteractiveElements,y=t.isClone,T=t.mapped,H=t.dropAnimationFinished;y||function(t){var e=Sg("draggable"),i=t.descriptor,o=t.registry,l=t.getDraggableRef,n=t.canDragInteractiveElements,s=t.shouldRespectForcePress,r=t.isEnabled,b=sp(function(){return{canDragInteractiveElements:n,shouldRespectForcePress:s,isEnabled:r}},[n,r,s]),c=rp(function(t){var e=l();return e||Wp(!1),function(t,e,i){void 0===i&&(i=Np) | |
| 2016 | -;var o=window.getComputedStyle(e),a=e.getBoundingClientRect(),l=fp(a,o),n=gp(l,i);return{descriptor:t,placeholder:{client:l,tagName:e.tagName.toLowerCase(),display:o.display},displaceBy:{x:l.marginBox.width,y:l.marginBox.height},client:l,page:n}}(i,e,t)},[i,l]),d=sp(function(){return{uniqueId:e,descriptor:i,options:b,getDimension:c}},[i,c,b,e]),u=(0,a.useRef)(d),p=(0,a.useRef)(!0);gg(function(){return o.draggable.register(u.current),function(){return o.draggable.unregister(u.current)}},[o.draggable]),gg(function(){if(p.current)p.current=!1;else{var t=u.current;u.current=d,o.draggable.update(d,t)}},[d,o.draggable])}(sp(function(){return{descriptor:u,registry:r,getDraggableRef:o,canDragInteractiveElements:f,shouldRespectForcePress:g,isEnabled:h}},[u,r,o,f,g,h]));var M=sp(function(){return h?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":n,draggable:!1,onDragStart:xf}:null},[n,s,m,h]),x=rp(function(t){ | |
| 2017 | -"DRAGGING"===T.type&&T.dropping&&"transform"===t.propertyName&&H()},[H,T]),k=sp(function(){var t=Mf(T),e="DRAGGING"===T.type&&T.dropping?x:null;return{innerRef:i,draggableProps:{"data-rbd-draggable-context-id":n,"data-rbd-draggable-id":m,style:t,onTransitionEnd:e},dragHandleProps:M}},[n,M,m,T,x,i]),v=sp(function(){return{draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}},[u.droppableId,u.id,u.index,u.type]);return p(k,T.snapshot,v)});function Wf(t){return uf(ff).isUsingCloneFor!==t.draggableId||t.isClone?l().createElement(Sf,t):null}function Uf(t){var e="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,i=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return l().createElement(Wf,(0,We.A)({},t,{isClone:!1,isEnabled:e,canDragInteractiveElements:i,shouldRespectForcePress:o}))}var Pf=function(t,e){return t===e.droppable.type},jf=function(t,e){return e.draggables[t.draggable.id]},wf={mode:"standard",type:"DEFAULT", | |
| 2018 | -direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Wp(!1),document.body}},zf=ap(function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},e=(0,We.A)({},t,{shouldAnimatePlaceholder:!1}),i=xp(function(t){return{draggableId:t.id,type:t.type,source:{index:t.index,droppableId:t.droppableId}}}),o=xp(function(o,a,l,n,s,r){var b=s.descriptor.id;if(s.descriptor.droppableId===o){var c=r?{render:r,dragging:i(s.descriptor)}:null,d={isDraggingOver:l,draggingOverWith:l?b:null,draggingFromThisWith:b,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:c}}if(!a)return e;if(!n)return t;var u={isDraggingOver:l,draggingOverWith:b,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder, | |
| 2019 | -shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return function(i,a){var l=a.droppableId,n=a.type,s=!a.isDropDisabled,r=a.renderClone;if(i.isDragging){var b=i.critical;if(!Pf(n,b))return e;var c=jf(b,i.dimensions),d=Ym(i.impact)===l;return o(l,s,d,d,c,r)}if("DROP_ANIMATING"===i.phase){var u=i.completed;if(!Pf(n,u.critical))return e;var p=jf(u.critical,i.dimensions);return o(l,s,vf(u.result)===l,Ym(u.impact)===l,p,r)}if("IDLE"===i.phase&&i.completed&&!i.shouldFlush){var m=i.completed;if(!Pf(n,m.critical))return e;var h=Ym(m.impact)===l,g=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),f=m.critical.droppable.id===l;return h?g?t:e:f?t:e}return e}},{updateViewportMaxScroll:function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}}},null,{context:xg,pure:!0,areStatePropsEqual:kf})(function(t){var e=(0,a.useContext)(Wg);e||Wp(!1);var i=e.contextId,o=e.isMovementAllowed,n=(0,a.useRef)(null),s=(0, | |
| 2020 | -a.useRef)(null),r=t.children,b=t.droppableId,c=t.type,d=t.mode,u=t.direction,p=t.ignoreContainerClipping,m=t.isDropDisabled,h=t.isCombineEnabled,g=t.snapshot,f=t.useClone,y=t.updateViewportMaxScroll,T=t.getContainerForClone,H=rp(function(){return n.current},[]),M=rp(function(t){n.current=t},[]),x=(rp(function(){return s.current},[]),rp(function(t){s.current=t},[])),k=rp(function(){o()&&y({maxScroll:Oh()})},[o,y]);!function(t){var e=(0,a.useRef)(null),i=uf(Wg),o=Sg("droppable"),l=i.registry,n=i.marshal,s=Ug(t),r=sp(function(){return{id:t.droppableId,type:t.type,mode:t.mode}},[t.droppableId,t.mode,t.type]),b=(0,a.useRef)(r),c=sp(function(){return xp(function(t,i){e.current||Wp(!1);var o={x:t,y:i};n.updateDroppableScroll(r.id,o)})},[r.id,n]),d=rp(function(){var t=e.current;return t&&t.env.closestScrollable?sf(t.env.closestScrollable):Np},[]),u=rp(function(){var t=d();c(t.x,t.y)},[d,c]),p=sp(function(){return kp(u)},[u]),m=rp(function(){var t=e.current,i=pf(t);t&&i||Wp(!1), | |
| 2021 | -t.scrollOptions.shouldPublishImmediately?u():p()},[p,u]),h=rp(function(t,o){e.current&&Wp(!1);var a=s.current,l=a.getDroppableRef();l||Wp(!1);var n=function(t){return{closestScrollable:nf(t),isFixedOnPage:rf(t)}}(l),b={ref:l,descriptor:r,env:n,scrollOptions:o};e.current=b;var c=function(t){var e=t.ref,i=t.descriptor,o=t.env,a=t.windowScroll,l=t.direction,n=t.isDropDisabled,s=t.isCombineEnabled,r=t.shouldClipSubject,b=o.closestScrollable,c=function(t,e){var i=yp(t);if(!e)return i;if(t!==e)return i;var o=i.paddingBox.top-e.scrollTop,a=i.paddingBox.left-e.scrollLeft,l=o+e.scrollHeight,n=a+e.scrollWidth,s=cp({top:o,right:n,bottom:l,left:a},i.border);return pp({borderBox:s,margin:i.margin,border:i.border,padding:i.padding})}(e,b),d=gp(c,a),u=function(){if(!b)return null;var t=yp(b),e={scrollHeight:b.scrollHeight,scrollWidth:b.scrollWidth};return{client:t,page:gp(t,a),scroll:sf(b),scrollSize:e,shouldClipSubject:r}}(),p=function(t){ | |
| 2022 | -var e=t.descriptor,i=t.isEnabled,o=t.isCombineEnabled,a=t.isFixedOnPage,l=t.direction,n=t.client,s=t.page,r=t.closest,b=function(){if(!r)return null;var t=r.scrollSize,e=r.client,i=Ih({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,height:e.paddingBox.height,width:e.paddingBox.width});return{pageMarginBox:r.page.marginBox,frameClient:e,scrollSize:t,shouldClipSubject:r.shouldClipSubject,scroll:{initial:r.scroll,current:r.scroll,max:i,diff:{value:Np,displacement:Np}}}}(),c="vertical"===l?fm:ym;return{descriptor:e,isCombineEnabled:o,isFixedOnPage:a,axis:c,isEnabled:i,client:n,page:s,frame:b,subject:Zp({page:s,withPlaceholder:null,axis:c,frame:b})}}({descriptor:i,isEnabled:!n,isCombineEnabled:s,isFixedOnPage:o.isFixedOnPage,direction:l,client:c,page:d,closest:u});return p}({ref:l,descriptor:r,env:n,windowScroll:t,direction:a.direction,isDropDisabled:a.isDropDisabled,isCombineEnabled:a.isCombineEnabled,shouldClipSubject:!a.ignoreContainerClipping}),d=n.closestScrollable | |
| 2023 | -;return d&&(d.setAttribute(mg.contextId,i.contextId),d.addEventListener("scroll",m,df(b.scrollOptions))),c},[i.contextId,r,m,s]),g=rp(function(){var t=e.current,i=pf(t);return t&&i||Wp(!1),sf(i)},[]),f=rp(function(){var t=e.current;t||Wp(!1);var i=pf(t);e.current=null,i&&(p.cancel(),i.removeAttribute(mg.contextId),i.removeEventListener("scroll",m,df(t.scrollOptions)))},[m,p]),y=rp(function(t){var i=e.current;i||Wp(!1);var o=pf(i);o||Wp(!1),o.scrollTop+=t.y,o.scrollLeft+=t.x},[]),T=sp(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:f,scroll:y}},[f,h,g,y]),H=sp(function(){return{uniqueId:o,descriptor:r,callbacks:T}},[T,r,o]);gg(function(){return b.current=H.descriptor,l.droppable.register(H),function(){e.current&&f(),l.droppable.unregister(H)}},[T,r,f,H,n,l.droppable]),gg(function(){e.current&&n.updateDroppableIsEnabled(b.current.id,!t.isDropDisabled)},[t.isDropDisabled,n]),gg(function(){ | |
| 2024 | -e.current&&n.updateDroppableIsCombineEnabled(b.current.id,t.isCombineEnabled)},[t.isCombineEnabled,n])}({droppableId:b,type:c,mode:d,direction:u,isDropDisabled:m,isCombineEnabled:h,ignoreContainerClipping:p,getDroppableRef:H});var v=l().createElement(yf,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},function(t){var e=t.onClose,o=t.data,a=t.animate;return l().createElement(gf,{placeholder:o,onClose:e,innerRef:x,animate:a,contextId:i,onTransitionEnd:k})}),_=sp(function(){return{innerRef:M,placeholder:v,droppableProps:{"data-rbd-droppable-id":b,"data-rbd-droppable-context-id":i}}},[i,b,v,M]),R=f?f.dragging.draggableId:null,S=sp(function(){return{droppableId:b,type:c,isUsingCloneFor:R}},[b,R,c]);return l().createElement(ff.Provider,{value:S},r(_,g),function(){if(!f)return null;var t=f.dragging,e=f.render,i=l().createElement(Wf,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(i,o){ | |
| 2025 | -return e(i,o,t)});return uo().createPortal(i,T())}())});zf.defaultProps=wf;var Cf=i(48396);const Af=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Icon","ablocks"),value:"icon"},{label:(0,z.__)("Number","ablocks"),value:"number"},{label:(0,z.__)("Disc","ablocks"),value:"disc"},{label:(0,z.__)("Square","ablocks"),value:"square"},{label:(0,z.__)("Emoji","ablocks"),value:"emoji"}],Lf=((0,z.__)("vertical","ablocks"),(0,z.__)("horizontal","ablocks"),[{label:(0,z.__)("Solid","ablocks"),value:"solid"},{label:(0,z.__)("Double","ablocks"),value:"double"},{label:(0,z.__)("Dotted","ablocks"),value:"dotted"},{label:(0,z.__)("Dashed","ablocks"),value:"dashed"}]),Df=((0,z.__)("Start","ablocks"),(0,z.__)("End","ablocks"),(0,z.__)("Center","ablocks"),(0,z.__)("Between","ablocks"),(0,z.__)("Around","ablocks"),[{value:"default",label:(0,z.__)("Default","ablocks")},{value:"stacked",label:(0,z.__)("Stacked","ablocks")},{value:"framed",label:(0,z.__)("Framed","ablocks")}]),Nf=[{label:(0, | |
| 2026 | -z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Square","ablocks"),value:"square"}],If=t=>{const{markerType:e,emoji:i,iconAttributes:o,index:a,listProperties:l}=t;let n;if("disc"===e)n=(0,L.jsx)("span",{className:"ablocks-list__item-marker ablocks-list__item-disc",style:{backgroundColor:(0,gs.qD)(l?.markerColor)}});else if("square"===e)n=(0,L.jsx)("span",{className:"ablocks-list__item-marker ablocks-list__item-square",style:{backgroundColor:(0,gs.qD)(l?.markerColor)}});else if("number"===e)n=(0,L.jsxs)("span",{className:"ablocks-list__item-number",style:{color:(0,gs.qD)(l?.markerColor)},children:[a+1,"."]});else if("emoji"===e)n=(0,L.jsx)("span",{className:"emoji",children:i});else if("icon"===e){const t=o?.[a];n=(0,L.jsx)(Vd,{customIconData:t,style:{color:l?.iconColor?(0,gs.qD)(l?.iconColor):"",fill:l?.iconColor?(0,gs.qD)(l?.iconColor):""}})}return n};function Vf(t){ | |
| 2027 | -const{attributes:e,setAttributes:i}=t,{lists:o,markerType:a,emoji:n,iconSize:s,iconColor:r,padding:b,position:c,stack:d,iconType:u,iconShape:p,textColor:m,typography:h,textIndent:g,spaceBetween:f,iconBackgroundColor:y,verticalAlignment:T,horizontalAlignment:H,markerColor:M,markerSize:x,listIcons:k,listIconsClasses:v,divider:_,dividerPatternUrl:R,weight:S,width:W,borderColor:U}=e,P="stack"===u||"framed"===u,j=(t,e,i)=>{const o=Array.from(t),[a]=o.splice(e,1);return o.splice(i,0,a),o},w=(t,e,a)=>{const l=o.map(i=>i.id===t.id?{...i,[e]:a}:i);i({lists:l})};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-list-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Lists","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Marker type","ablocks"),options:Af,attributeName:"markerType",attributeValue:a,setAttributes:i | |
| 2028 | -}),"icon"===a&&(0,L.jsx)(Kt,{label:(0,z.__)("Icon Position","ablocks"),isResponsive:!0,options:[{label:(0,z.__)("editor-flex-start","ablocks"),value:"flex-start",icon:"align-top"},{label:(0,z.__)("editor-align-center","ablocks"),value:"center",icon:"align-center"},{label:(0,z.__)("editor-align-bottom","ablocks"),value:"flex-end",icon:"align-bottom",tooltipPosition:"top-left"}],setAttributes:i,attributeValue:c,attributeName:"position",isInline:!1}),"emoji"===a&&(0,L.jsx)(ql,{label:(0,z.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:n,setAttributes:i,isInline:!1}),(0,L.jsx)(vb,{isResponsive:!1,allowDeselect:!0,label:(0,z.__)("Layout","ablocks"),options:[{value:"vertical",label:(0,z.__)("Vertical","ablocks")},{value:"horizontal",label:(0,z.__)("Horizontal","ablocks")}],attributeName:"stack",attributeValue:d,setAttributes:i}),"vertical"===d?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vb,{isResponsive:!1,isInline:!0,allowDeselect:!0,label:(0,z.__)("Vertical alignment","ablocks"), | |
| 2029 | -options:[{label:(0,z.__)("Left","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--left"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--center"})},{label:(0,z.__)("Right","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--right"})}],attributeName:"verticalAlignment",attributeValue:T,setAttributes:i})}):(0,L.jsx)(Kt,{allowDeselect:!0,label:(0,z.__)("Horizontal alignment","ablocks"),options:[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],attributeName:"horizontalAlignment",attributeValue:H,setAttributes:i}),(0,L.jsx)(tf,{onDragEnd:t=>{if(!t.destination)return | |
| 2030 | -;const e=j(o,t.source.index,t.destination.index),l=j(v,t.source.index,t.destination.index);if(i({lists:e,listIconsClasses:l}),"icon"===a){const e=j(k,t.source.index,t.destination.index);i({listIcons:e})}},children:(0,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,l)=>(0,L.jsx)(Uf,{draggableId:`${t?.id}`,index:l,children:n=>(0,L.jsxs)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"ablocks-editor-list",children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>({...e,isOpen:e.id===t&&!e.isOpen}));i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,L.jsx)("span",{ | |
| 2031 | -className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,L.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t.id===e);if(-1===a)return;const l=o.filter((t,e)=>e!==a),n=v.filter((t,e)=>e!==a);i({lists:l,listIconsClasses:n})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}),(0,L.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,text:l?.text,link:l.link,iconColor:l.iconColor,textColor:l.textColor,markerColor:l.markerColor,isOpen:!1},r=[...o,s],b=[...v,v[a]||""];i({lists:r,listIconsClasses:b})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,L.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,L.jsx)(Rb,{ | |
| 2032 | -content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Text","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>((t,e,a)=>{const l=o.map(i=>i.id===t?{...i,[a]:e}:i);i({lists:l})})(t?.id,e,"text"),placeholder:(0,z.__)("Enter your text","ablocks"),disableDynamicContent:!0}),"icon"===a&&(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:e=>((t,e)=>{let a=[];switch(t.substring(2,3)){case"r":a=Wd;break;case"s":a=Pd;break;case"b":a=Ud}const l=a[t.substring(7)],n=`0 0 ${l[0]} ${l[1]}`,s=l[4],r=[...k||[]],b=[...v||[]],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=k||[],o=v||[],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})})(l), | |
| 2033 | -getIconClass:()=>v?.[l],legacySupport:!0}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,i)=>{w(t,"link",{...t.link,[e]:i})}})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"textColor",attributeValue:t.textColor,setAttributes:i,resetHandler:()=>w(t,"textColor"),onChangeHandler:(e,i)=>{w(t,e,i)}}),"icon"===a&&(0,L.jsx)(vs,{label:(0,z.__)("Icon color","ablocks"),attributeName:"iconColor",attributeValue:t.iconColor,setAttributes:i,resetHandler:()=>w(t,"iconColor"),onChangeHandler:(e,i)=>{w(t,e,i)}}),("disc"===a||"square"===a||"number"===a)&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Marker color","ablocks"),attributeName:"markerColor",attributeValue:t.markerColor,setAttributes:i,resetHandler:()=>w(t,"markerColor"),onChangeHandler:(e,i)=>{w(t,e,i)}})})]})})})]})},t?.id)),t.placeholder]})})}),(0,L.jsx)(V,{label:(0, | |
| 2034 | -z.__)("Add item","ablocks"),onClick:()=>{const t=o.length?Math.max(...o.map(t=>t.id))+1:0,e={id:t,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},a=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t),l=[...v,v[o.length-1]||""];i({lists:[...a,e],listIconsClasses:[...l]})},className:"ablocks-add-list-item-button"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:m,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),("disc"===a||"square"===a||"number"===a)&&(0,L.jsx)(vs,{label:(0,z.__)("Marker color","ablocks"),attributeName:"markerColor",attributeValue:M,setAttributes:i}),("disc"===a||"square"===a)&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Marker size","ablocks"),min:0, | |
| 2035 | -max:50,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"markerSize",attributeValue:x,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Cf.Qi})}),(0,L.jsx)(vt,{label:(0,z.__)("Space Between Horizontal","ablocks"),min:0,max:50,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"textIndent",attributeValue:g,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Cf.AF}),(0,L.jsx)(vt,{label:(0,z.__)("Space Between Vertical","ablocks"),min:0,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"spaceBetween",attributeValue:f,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Cf.p9}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Divider","ablocks"),attributeValue:_,setAttributes:i,attributeName:"divider"}),_&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),options:Lf,attributeName:"dividerPatternUrl",attributeValue:R,onChangeHandler:t=>{const e=Lf?.find(e=>e.value===t);i({dividerPatternUrl:e.value, | |
| 2036 | -dividerType:e.type})}}),(0,L.jsx)(vt,{label:(0,z.__)("Weight","ablocks"),attributeName:"weight",attributeObjectKey:"value",attributeValue:S,isResponsive:!0,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,autoSyncRange:!0,isInline:!1,attributeDefaultValue:Cf.VA,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),"vertical"===d&&(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:W,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:Cf.VL}),(0,L.jsx)(vs,{label:(0,z.__)("Divider Color","ablocks"),attributeName:"borderColor",attributeValue:U,setAttributes:i})]})]})})}),"icon"===a&&(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("View","ablocks"),options:Df,attributeName:"iconType",attributeValue:u,setAttributes:i}),P&&(0,L.jsx)(Ut,{label:(0, | |
| 2037 | -z.__)("Shape","ablocks"),options:Nf,attributeValue:p,attributeName:"iconShape",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),min:0,max:300,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSize",attributeValue:s,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Cf.RK,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:r,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Primary Color","ablocks"),attributeName:"iconBackgroundColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:b,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})})})]})})})} | |
| 2038 | -Vf.propTypes={};const Of={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", | |
| 1878 | +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 eu(t){ | |
| 1879 | +const{attributes:e,setAttributes:i,context:o}=t,{block_id:a,buttonSize:n,iconPosition:r,iconClass:b,showIcon:c,link:{linkTarget:d,noFollow:u,keyValue:p},alignment:m,iconImageID:h,iconImageUrl:g}=e;let f={};return d&&(f.target="_blank"),f.rel=u?d?"nofollow noreferrer noopener":"nofollow":"noopener",p&&(f={...f,...(0,wb.jM)(p)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:m,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:a,name:tu.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("a",{...f,className:s()("ablocks-button",`ablocks-button--${n}`,{[`ablocks-button--icon-${r}`]:b&&r||h&&g}),children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)($c,{tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-button__text",onChange:t=>i({text:t}),context:o})]})})]})}eu.propTypes={};const iu=(t,e="")=>{const{position:i}=t,o={} | |
| 1880 | +;return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},ou=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"column-gap",device:e})};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),"link"===t?.buttonType?(l.background="none",l.padding="0",l.cursor="pointer"):l.background=t?.background?(0,Hs.qD)(t?.background):t?.buttonType;const n=(0,M.Zy)(t?.padding,{unit:"px"}),s=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),r=(0,M.Zy)(t.typography,{weight:"400"}),b=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,Hs.qD)(t?.textColor),...(0,y.qD)(s,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(n,"padding",e),...(0,U.qD)(r,e,b),...(0,c.qD)(t?.padding,"padding",e)}},au=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0, | |
| 1881 | +unitDefaultValue:"s",property:"transition-duration"})},o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.textColorH),background:(0,Hs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},lu=t=>({fill:(0,Hs.qD)(t?.textColorH)}),nu=t=>({...(0,fc.qD)(t?.textShadow)});function su(t){const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,link:{href:r,linkTarget:b,noFollow:c,keyValue:d},iconImageID:u,iconImageUrl:p}=e;let m={};return r&&(m.href=r),b&&(m.target="_blank"),m.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(m={...m,...(0,wb.jM)(d)}),(0,I.jsx)(sc,{blockId:i,name:tu.UU,attributes:e,children:(0,I.jsxs)("a",{...m,className:s()("ablocks-button",`ablocks-button--${o}`,{[`ablocks-button--icon-${a}`]:l&&a||u&&p}),children:[n&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-button__text",value:e.text})]})})}su.propTypes={};function ru(t){ | |
| 1882 | +const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,link:{href:r,linkTarget:b,noFollow:c,keyValue:d},iconImageID:u,iconImageUrl:p}=e;let m={};return r&&(m.href=r),b&&(m.target="_blank"),m.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(m={...m,...(0,wb.jM)(d)}),(0,I.jsx)(hc,{blockId:i,name:"ablocks/button",attributes:e,children:(0,I.jsxs)("a",{...m,className:s()("ablocks-button",`ablocks-button--${o}`,{[`ablocks-button--icon-${a}`]:l&&a||u&&p}),children:[n&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-button__text",value:e.text})]})})}ru.propTypes={},(0,M.xV)(tu.UU)&&(0,o.registerBlockType)(tu.UU,{title:(0,L.__)("Button","ablocks"),attributes:tu.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({ | |
| 1883 | +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}}",iu(i,""),iu(i,"Tablet"),iu(i,"Mobile"),e(t=>iu(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-button",ou(i),ou(i,"Tablet"),ou(i,"Mobile"),e(t=>ou(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-button:hover",au(i,""),au(i,"Tablet"),au(i,"Mobile"),e(t=>au(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",lu(i),lu(i),lu(i),e(t=>lu(i))),t.addClassStyles("{{WRAPPER}} .ablocks-button .ablocks-button__text",nu(i),nu(i),nu(i),e(t=>nu(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))), | |
| 1884 | +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Qd,{...t}),(0,I.jsx)(eu,{...t})]})},save:su,deprecated:[{attributes:{ | |
| 1885 | +block_id:{type:"string",default:""},text:{type:"string",default:"Click here"},buttonType:{type:"string",default:"#ddd"},buttonSize:{type:"string",default:"small"},textColor:{type:"string",default:"#000000"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},iconSvgPath:{type:"string", | |
| 1886 | +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" | |
| 1887 | +},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""} | |
| 1888 | +},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"", | |
| 1889 | +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:"", | |
| 1890 | +leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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:"", | |
| 1891 | +wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},position:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},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"}},iconSpace:{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:{ | |
| 1892 | +type:"object",default:{isLinked:!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:"", | |
| 1893 | +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:"", | |
| 1894 | +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:"", | |
| 1895 | +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:"", | |
| 1896 | +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", | |
| 1897 | +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, | |
| 1898 | +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", | |
| 1899 | +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:t=>(0,I.jsx)(ru,{...t})}]});var bu=i(33206);function cu(t){const{attributes:e,setAttributes:i}=t,{alignment:o,appearance:a,buttonText:n,border:s,textStroke:r,typography:b,buttonTextColor:c,buttonTextColorH:d,buttonTextColorBgH:u,buttonTextColorBg:p,textShadow:m,progressColor:h,progressColorBg:g,strokeSize:f,position:y,positionLeft:T,positionRight:H,positionBottom:M,visibleControl:x}=e;return(0, | |
| 1900 | +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.__)("Scroll To Top","ablocks"),initialOpen:!0,children:[!("right"===y||"left"===y)&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Ut,{label:(0,L.__)("Scroll To Top","ablocks"),options:[{label:(0,L.__)("Icon","ablocks"),value:"icon"},{label:(0,L.__)("Text","ablocks"),value:"text"},{label:(0,L.__)("Progress Indicator","ablocks"),value:"progressIndicator"}],isResponsive:!1,attributeValue:a,attributeName:"appearance",setAttributes:i}),"text"===a?(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Button Text","ablocks"), | |
| 1901 | +attributeName:"buttonText",attributeValue:n,setAttributes:i,isInline:!1})}),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.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonTextColorBg",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"buttonTextColor",attributeValue:c,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonTextColorBgH",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"buttonTextColorH",attributeValue:d,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0, | |
| 1902 | +I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(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:e?.padding,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:s,setAttributes:i})]})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Icon","ablocks"),isResponsive:!1,isHeader:!0}),(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, | |
| 1903 | +L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})]})]}),"progressIndicator"===a&&(0,I.jsx)(V,{title:(0,L.__)("Progress Style","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Stroke Size","ablocks"),min:1,max:100,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"strokeSize",attributeValue:f,attributeDefaultValue:bu.mm,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Line color","ablocks"),isGradient:!0,attributeName:"progressColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Line Background","ablocks"),isGradient:!0,attributeName:"progressColorBg",attributeValue:g,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Position Control","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0, | |
| 1904 | +L.__)("Bottom Left","ablocks"),value:"left"},{label:(0,L.__)("Bottom Right","ablocks"),value:"right"}],attributeName:"position",attributeValue:y,setAttributes:i}),"left"===y&&(0,I.jsx)(_t,{label:(0,L.__)("Position Left","ablocks"),min:0,max:500,unitValue:T,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionLeft",attributeValue:T,attributeDefaultValue:bu.Nf,setAttributes:i}),"right"===y&&(0,I.jsx)(_t,{label:(0,L.__)("Position Right","ablocks"),min:0,max:500,unitValue:H,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionRight",attributeValue:H,attributeDefaultValue:bu.gB,setAttributes:i}),("right"===y||"left"===y)&&(0,I.jsx)(_t,{label:(0,L.__)("Position Bottom","ablocks"),min:0,max:500,unitValue:M,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionBottom",attributeValue:M,attributeDefaultValue:bu.fb,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Visible Control","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Wb,{allowDeselect:!1, | |
| 1905 | +isResponsive:!1,options:[{label:(0,L.__)("Visible","ablocks"),value:"visible"},{label:(0,L.__)("Hidden","ablocks"),value:"hidden"}],attributeName:"visibleControl",attributeValue:x,setAttributes:i}),(0,I.jsx)("p",{style:{border:"1px solid #EFEFF0",padding:"10px",borderRadius:"5px"},children:(0,L.__)("The Visible Control is only for the editor view. It does not affect the frontend display. Used for user convenience while designing","ablocks")})]})]})})})}cu.propTypes={};const du=t=>{const{buttonText:e,appearance:i,iconSizing:o,strokeSize:a}=t,l=o.value+20;return"progressIndicator"===i?(0,I.jsxs)("span",{className:"ablocks-scroll-progress-wrapper",style:{width:l,height:l},children:[(0,I.jsxs)("svg",{className:"ablocks-scroll-progress-ring",width:l,height:l,children:[(0,I.jsx)("circle",{cx:l/2,cy:l/2,r:l/2-4,stroke:(0,Hs.qD)(t?.progressColorBg),strokeWidth:a,fill:"transparent"}),(0,I.jsx)("circle",{className:"ablocks-scroll-progress-ring__circle",cx:l/2,cy:l/2,r:l/2-4,stroke:(0, | |
| 1906 | +Hs.qD)(t?.progressColor),strokeWidth:a,strokeLinecap:"round",fill:"transparent"})]}),(0,I.jsx)("div",{className:"ablocks-scroll-progress-content",style:{width:.66*l,height:.66*l},children:(0,I.jsx)(Fd,{attributes:t})})]}):"icon"===i?(0,I.jsx)(Fd,{attributes:t}):"text"===i?(0,I.jsx)("span",{className:"ablocks-scroll-to-top-button-text",children:e}):null},uu={UU:"ablocks/scroll-to-top",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},appearance:{type:"string",default:"icon"},buttonText:{type:"string",default:"Top"},buttonTextColor:{type:"string",default:""},buttonTextColorH:{type:"string",default:""},buttonTextColorBg:{type:"string",default:""},buttonTextColorBgH:{type:"string",default:""},progressColor:{type:"string",default:"red"},progressColorBg:{type:"string",default:"#EEEEEE"},strokeSize:{type:"number",default:"3"},positionBottom:{type:"object",default:{value:20,valueTablet:"",valueMobile:""}},positionLeft:{type:"object",default:{value:20, | |
| 1907 | +valueTablet:"",valueMobile:""}},positionRight:{type:"object",default:{value:20,valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",default:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{ | |
| 1908 | +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",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"", | |
| 1909 | +horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:40},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:40,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},position:{type:"string",default:"default"},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},typographyGlobal:{type:"string",default:""},typography:{ | |
| 1910 | +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:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"", | |
| 1911 | +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:"", | |
| 1912 | +commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},visibleControl:{type:"string",default:"visible"},_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:"", | |
| 1913 | +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, | |
| 1914 | +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:"", | |
| 1915 | +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:"", | |
| 1916 | +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:"", | |
| 1917 | +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", | |
| 1918 | +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:"", | |
| 1919 | +scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 1920 | +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"}}}},pu=class{constructor(t,e){this.element=t,this.isFrontend=e, | |
| 1921 | +this.scrollTarget=e?window:document.querySelector('[name="editor-canvas"]')?.contentWindow,this.circle=this.element?.querySelector(".ablocks-scroll-progress-ring__circle"),this.scrollButton=this.element?.querySelector(".ablocks-scroll-progress-wrapper, .ablocks-scroll-to-top-button-text, .ablocks-icon-wrap"),this.setupCircle(),this.init()}setupCircle(){this.circle&&(this.radius=this.circle.r.baseVal.value,this.circumference=2*Math.PI*this.radius,Object.assign(this.circle.style,{strokeDasharray:`${this.circumference} ${this.circumference}`,strokeDashoffset:this.circumference,transform:"rotate(-90deg)",transformOrigin:"50% 50%"}))}init(){this.element&&this.scrollTarget&&(this.scrollTarget.addEventListener("scroll",()=>this.updateProgress()),this.scrollButton?.addEventListener("click",()=>{this.scrollTarget.scrollTo({top:0,behavior:"smooth"})}),this.updateProgress())}updateProgress(){if(!this.scrollTarget?.document)return | |
| 1922 | +;const{document:t,innerHeight:e,scrollY:i}=this.scrollTarget,o=t.documentElement.scrollHeight-e,a=i??t.documentElement.scrollTop;if(this.isFrontend&&(0===a?(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.style.transition="opacity 0.3s ease"):(this.element.style.visibility="visible",this.element.style.opacity="1",this.element.style.transition="opacity 0.3s ease")),this.circle){const t=o>0?a/o:0;this.circle.style.strokeDashoffset=this.circumference*(1-t)}}};function mu(t){const{attributes:e,appearance:i}=t,{block_id:o}=e;return(0,a.useEffect)(()=>{new pu((0,M.bu)(`.ablocks-block-${o}`))},[e,i,o]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:uu.UU,attributes:e,children:du(e)})})}mu.propTypes={};const hu=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"justify-content",e)}),gu=(t,e="")=>{const{position:i,visibleControl:o}=t;let a={};return"left"!==i&&"right"!==i||(a={...a,...(0,Eb.qD)({attributeValue:t?.positionBottom,attributeObjectKey:"value", | |
| 1923 | +isResponsive:!0,hasUnit:!0,defaultValue:60,property:"bottom",unitDefaultValue:"px",device:e}),position:"fixed","z-index":"9999"},"left"===i?a={...a,...(0,Eb.qD)({attributeValue:t?.positionLeft,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"left",unitDefaultValue:"px",device:e})}:"right"===i&&(a={...a,...(0,Eb.qD)({attributeValue:t?.positionRight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:60,property:"right",unitDefaultValue:"px",device:e})})),a.visibility="visible"===o?"visible":"hidden",{...a,...(0,Zt.qD)(t?.alignment,"justify-content",e)}},fu=(t,e="")=>{const i=(0,M.Zy)(t.padding,{unit:"px"}),o=t.typographyGlobal?t.typographyGlobal:"";return{...(0,U.qD)(t?.typography,e,o),...(0,Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow),...(0,c.qD)(i,"padding",e),color:(0,Hs.qD)(t?.buttonTextColor),background:(0,Hs.qD)(t?.buttonTextColorBg),...(0,y.qD)(t?.border,e)}},yu=(t,e="")=>({color:(0,Hs.qD)(t?.buttonTextColorH),background:(0, | |
| 1924 | +Hs.qD)(t?.buttonTextColorBgH),...(0,y.a9)(t?.border,e)});function Tu(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:uu.UU,attributes:e,children:du(e)})})}function Hu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Re(t,e)}function Mu(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. "}Tu.propTypes={},(0,M.xV)(uu.UU)&&(0,o.registerBlockType)(uu.UU,{title:(0,L.__)("Scroll to Top","ablocks"),attributes:uu.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--back-to-top"}),edit:function(t){const{isSelected:e,attributes: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 | |
| 1925 | +;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}}",hu(i),hu(i,"Tablet"),hu(i,"Mobile"),e(t=>hu(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",gu(i),gu(i,"Tablet"),gu(i,"Mobile"),e(t=>gu(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-scroll-to-top-button-text",fu(i),fu(i,"Tablet"),fu(i,"Mobile"),e(t=>fu(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-scroll-to-top-button-text:hover",yu(i),yu(i,"Tablet"),yu(i,"Mobile"),e(t=>yu(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))), | |
| 1926 | +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.scroll-to-top.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(cu,{...t}),(0,I.jsx)(mu,{...t})]})},save:Tu});var xu="function"==typeof Symbol&&Symbol.observable||"@@observable",ku=function(){return Math.random().toString(36).substring(7).split("").join(".")},vu={ | |
| 1927 | +INIT:"@@redux/INIT"+ku(),REPLACE:"@@redux/REPLACE"+ku(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ku()}};function _u(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Mu(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Mu(1));return i(_u)(t,e)}if("function"!=typeof t)throw new Error(Mu(2));var a=t,l=e,n=[],s=n,r=!1;function b(){s===n&&(s=n.slice())}function c(){if(r)throw new Error(Mu(3));return l}function d(t){if("function"!=typeof t)throw new Error(Mu(4));if(r)throw new Error(Mu(5));var e=!0;return b(),s.push(t),function(){if(e){if(r)throw new Error(Mu(6));e=!1,b();var i=s.indexOf(t);s.splice(i,1),n=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Mu(7)) | |
| 1928 | +;if(void 0===t.type)throw new Error(Mu(8));if(r)throw new Error(Mu(9));try{r=!0,l=a(l,t)}finally{r=!1}for(var e=n=s,i=0;i<e.length;i++)(0,e[i])();return t}return u({type:vu.INIT}),(o={dispatch:u,subscribe:d,getState:c,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Mu(10));a=t,u({type:vu.REPLACE})}})[xu]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Mu(11));function i(){t.next&&t.next(c())}return i(),{unsubscribe:e(i)}}})[xu]=function(){return this},t},o}function Ru(t,e){return function(){return e(t.apply(this,arguments))}}function Su(t,e){if("function"==typeof t)return Ru(t,e);if("object"!=typeof t||null===t)throw new Error(Mu(16));var i={};for(var o in t){var a=t[o];"function"==typeof a&&(i[o]=Ru(a,e))}return i}function Wu(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){ | |
| 1929 | +return t(e.apply(void 0,arguments))}})}var Pu=l().createContext(null),Uu=function(t){t()},ju=function(){return Uu},wu={notify:function(){},get:function(){return[]}};function zu(t,e){var i,o=wu;function a(){n.onStateChange&&n.onStateChange()}function l(){i||(i=e?e.addNestedSub(a):t.subscribe(a),o=function(){var t=ju(),e=null,i=null;return{clear:function(){e=null,i=null},notify:function(){t(function(){for(var t=e;t;)t.callback(),t=t.next})},get:function(){for(var t=[],i=e;i;)t.push(i),i=i.next;return t},subscribe:function(t){var o=!0,a=i={callback:t,next:null,prev:i};return a.prev?a.prev.next=a:e=a,function(){o&&null!==e&&(o=!1,a.next?a.next.prev=a.prev:i=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}())}var n={addNestedSub:function(t){return l(),o.subscribe(t)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(i)},trySubscribe:l,tryUnsubscribe:function(){i&&(i(),i=void 0,o.clear(),o=wu)},getListeners:function(){return o}};return n} | |
| 1930 | +var Cu="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;const Au=function(t){var e=t.store,i=t.context,o=t.children,n=(0,a.useMemo)(function(){var t=zu(e);return{store:e,subscription:t}},[e]),s=(0,a.useMemo)(function(){return e.getState()},[e]);Cu(function(){var t=n.subscription;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}},[n,s]);var r=i||Pu;return l().createElement(r.Provider,{value:n},o)};var Lu=i(61899),Du=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Nu=["reactReduxForwardedRef"],Iu=[],Vu=[null,null];function Ou(t,e){var i=t[1];return[e.payload,i+1]}function Yu(t,e,i){Cu(function(){return t.apply(void 0,e)},i)}function Xu(t,e,i,o,a,l,n){t.current=o,e.current=a,i.current=!1,l.current&&(l.current=null,n())} | |
| 1931 | +function Bu(t,e,i,o,a,l,n,s,r,b){if(t){var c=!1,d=null,u=function(){if(!c){var t,i,u=e.getState();try{t=o(u,a.current)}catch(t){i=t,d=t}i||(d=null),t===l.current?n.current||r():(l.current=t,s.current=t,n.current=!0,b({type:"STORE_UPDATED",payload:{error:i}}))}};return i.onStateChange=u,i.trySubscribe(),u(),function(){if(c=!0,i.tryUnsubscribe(),i.onStateChange=null,d)throw d}}}var Eu=function(){return[null,0]};function Fu(t,e){void 0===e&&(e={});var i=e,o=i.getDisplayName,n=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,s=i.methodName,r=void 0===s?"connectAdvanced":s,b=i.renderCountProp,c=void 0===b?void 0:b,d=i.shouldHandleStateChanges,u=void 0===d||d,p=i.storeKey,m=void 0===p?"store":p,h=(i.withRef,i.forwardRef),g=void 0!==h&&h,f=i.context,y=void 0===f?Pu:f,T=(0,Me.A)(i,Du),H=y;return function(e){var i=e.displayName||e.name||"Component",o=n(i),s=(0,ve.A)({},T,{getDisplayName:n,methodName:r,renderCountProp:c,shouldHandleStateChanges:u,storeKey:m,displayName:o, | |
| 1932 | +wrappedComponentName:i,WrappedComponent:e}),b=T.pure,d=b?a.useMemo:function(t){return t()};function p(i){var o=(0,a.useMemo)(function(){var t=i.reactReduxForwardedRef,e=(0,Me.A)(i,Nu);return[i.context,t,e]},[i]),n=o[0],r=o[1],b=o[2],c=(0,a.useMemo)(function(){return n&&n.Consumer&&(0,Lu.isContextConsumer)(l().createElement(n.Consumer,null))?n:H},[n,H]),p=(0,a.useContext)(c),m=Boolean(i.store)&&Boolean(i.store.getState)&&Boolean(i.store.dispatch);Boolean(p)&&Boolean(p.store);var h=m?i.store:p.store,g=(0,a.useMemo)(function(){return function(e){return t(e.dispatch,s)}(h)},[h]),f=(0,a.useMemo)(function(){if(!u)return Vu;var t=zu(h,m?null:p.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]},[h,m,p]),y=f[0],T=f[1],M=(0,a.useMemo)(function(){return m?p:(0,ve.A)({},p,{subscription:y})},[m,p,y]),x=(0,a.useReducer)(Ou,Iu,Eu),k=x[0][0],v=x[1];if(k&&k.error)throw k.error;var _=(0,a.useRef)(),R=(0,a.useRef)(b),S=(0,a.useRef)(),W=(0,a.useRef)(!1),P=d(function(){ | |
| 1933 | +return S.current&&b===R.current?S.current:g(h.getState(),b)},[h,k,b]);Yu(Xu,[R,_,W,b,P,S,T]),Yu(Bu,[u,h,y,g,R,_,W,S,T,v],[h,y,g]);var U=(0,a.useMemo)(function(){return l().createElement(e,(0,ve.A)({},P,{ref:r}))},[r,e,P]);return(0,a.useMemo)(function(){return u?l().createElement(c.Provider,{value:M},U):U},[c,U,M])}var h=b?l().memo(p):p;if(h.WrappedComponent=e,h.displayName=p.displayName=o,g){var f=l().forwardRef(function(t,e){return l().createElement(h,(0,ve.A)({},t,{reactReduxForwardedRef:e}))});return f.displayName=o,f.WrappedComponent=e,oo()(f,e)}return oo()(h,e)}}function qu(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function $u(t,e){if(qu(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!Object.prototype.hasOwnProperty.call(e,i[a])||!qu(t[i[a]],e[i[a]]))return!1;return!0}function Gu(t){return function(e,i){var o=t(e,i);function a(){ | |
| 1934 | +return o}return a.dependsOnOwnProps=!1,a}}function Zu(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function Ku(t,e){return function(e,i){i.displayName;var o=function(t,e){return o.dependsOnOwnProps?o.mapToProps(t,e):o.mapToProps(t)};return o.dependsOnOwnProps=!0,o.mapToProps=function(e,i){o.mapToProps=t,o.dependsOnOwnProps=Zu(t);var a=o(e,i);return"function"==typeof a&&(o.mapToProps=a,o.dependsOnOwnProps=Zu(a),a=o(e,i)),a},o}}const Ju=[function(t){return"function"==typeof t?Ku(t):void 0},function(t){return t?void 0:Gu(function(t){return{dispatch:t}})},function(t){return t&&"object"==typeof t?Gu(function(e){return function(t,e){var i={},o=function(o){var a=t[o];"function"==typeof a&&(i[o]=function(){return e(a.apply(void 0,arguments))})};for(var a in t)o(a);return i}(t,e)}):void 0}],Qu=[function(t){return"function"==typeof t?Ku(t):void 0},function(t){return t?void 0:Gu(function(){return{}})}];function tp(t,e,i){return(0, | |
| 1935 | +ve.A)({},i,t,e)}const ep=[function(t){return"function"==typeof t?function(t){return function(e,i){i.displayName;var o,a=i.pure,l=i.areMergedPropsEqual,n=!1;return function(e,i,s){var r=t(e,i,s);return n?a&&l(r,o)||(o=r):(n=!0,o=r),o}}}(t):void 0},function(t){return t?void 0:function(){return tp}}];var ip=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function op(t,e,i,o){return function(a,l){return i(t(a,l),e(o,l),l)}}function ap(t,e,i,o,a){var l,n,s,r,b,c=a.areStatesEqual,d=a.areOwnPropsEqual,u=a.areStatePropsEqual,p=!1;return function(a,m){return p?function(a,p){var m,h,g=!d(p,n),f=!c(a,l,p,n);return l=a,n=p,g&&f?(s=t(l,n),e.dependsOnOwnProps&&(r=e(o,n)),b=i(s,r,n)):g?(t.dependsOnOwnProps&&(s=t(l,n)),e.dependsOnOwnProps&&(r=e(o,n)),b=i(s,r,n)):f?(m=t(l,n),h=!u(m,s),s=m,h&&(b=i(s,r,n)),b):b}(a,m):(s=t(l=a,n=m),r=e(o,n),b=i(s,r,n),p=!0,b)}}function lp(t,e){var i=e.initMapStateToProps,o=e.initMapDispatchToProps,a=e.initMergeProps,l=(0, | |
| 1936 | +Me.A)(e,ip),n=i(t,l),s=o(t,l),r=a(t,l);return(l.pure?ap:op)(n,s,r,t,l)}var np=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function sp(t,e,i){for(var o=e.length-1;o>=0;o--){var a=e[o](t);if(a)return a}return function(e,o){throw new Error("Invalid value of type "+typeof t+" for "+i+" argument when connecting component "+o.wrappedComponentName+".")}}function rp(t,e){return t===e}function bp(t){var e=void 0===t?{}:t,i=e.connectHOC,o=void 0===i?Fu:i,a=e.mapStateToPropsFactories,l=void 0===a?Qu:a,n=e.mapDispatchToPropsFactories,s=void 0===n?Ju:n,r=e.mergePropsFactories,b=void 0===r?ep:r,c=e.selectorFactory,d=void 0===c?lp:c;return function(t,e,i,a){void 0===a&&(a={});var n=a,r=n.pure,c=void 0===r||r,u=n.areStatesEqual,p=void 0===u?rp:u,m=n.areOwnPropsEqual,h=void 0===m?$u:m,g=n.areStatePropsEqual,f=void 0===g?$u:g,y=n.areMergedPropsEqual,T=void 0===y?$u:y,H=(0, | |
| 1937 | +Me.A)(n,np),M=sp(t,l,"mapStateToProps"),x=sp(e,s,"mapDispatchToProps"),k=sp(i,b,"mergeProps");return o(d,(0,ve.A)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:M,initMapDispatchToProps:x,initMergeProps:k,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:f,areMergedPropsEqual:T},H))}}const cp=bp();var dp;function up(t,e){var i=(0,a.useState)(function(){return{inputs:e,result:t()}})[0],o=(0,a.useRef)(!0),l=(0,a.useRef)(i),n=o.current||Boolean(e&&l.current.inputs&&function(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}(e,l.current.inputs)),s=n?l.current:{inputs:e,result:t()};return(0,a.useEffect)(function(){o.current=!1,l.current=s},[s]),s.result}dp=no.unstable_batchedUpdates,Uu=dp;var pp=up,mp=function(t,e){return up(function(){return t},e)},hp=function(t){var e=t.top,i=t.right,o=t.bottom,a=t.left;return{top:e,right:i,bottom:o,left:a,width:i-a, | |
| 1938 | +height:o-e,x:a,y:e,center:{x:(i+a)/2,y:(o+e)/2}}},gp=function(t,e){return{top:t.top-e.top,left:t.left-e.left,bottom:t.bottom+e.bottom,right:t.right+e.right}},fp=function(t,e){return{top:t.top+e.top,left:t.left+e.left,bottom:t.bottom-e.bottom,right:t.right-e.right}},yp={top:0,right:0,bottom:0,left:0},Tp=function(t){var e=t.borderBox,i=t.margin,o=void 0===i?yp:i,a=t.border,l=void 0===a?yp:a,n=t.padding,s=void 0===n?yp:n,r=hp(gp(e,o)),b=hp(fp(e,l)),c=hp(fp(b,s));return{marginBox:r,borderBox:hp(e),paddingBox:b,contentBox:c,margin:o,border:l,padding:s}},Hp=function(t){var e=t.slice(0,-2);if("px"!==t.slice(-2))return 0;var i=Number(e);return isNaN(i)&&function(){throw new Error("Invariant failed")}(),i},Mp=function(t,e){var i,o,a=t.borderBox,l=t.border,n=t.margin,s=t.padding,r=(o=e,{top:(i=a).top+o.y,left:i.left+o.x,bottom:i.bottom+o.y,right:i.right+o.x});return Tp({borderBox:r,border:l,margin:n,padding:s})},xp=function(t,e){return void 0===e&&(e={x:window.pageXOffset,y:window.pageYOffset}), | |
| 1939 | +Mp(t,e)},kp=function(t,e){var i={top:Hp(e.marginTop),right:Hp(e.marginRight),bottom:Hp(e.marginBottom),left:Hp(e.marginLeft)},o={top:Hp(e.paddingTop),right:Hp(e.paddingRight),bottom:Hp(e.paddingBottom),left:Hp(e.paddingLeft)},a={top:Hp(e.borderTopWidth),right:Hp(e.borderRightWidth),bottom:Hp(e.borderBottomWidth),left:Hp(e.borderLeftWidth)};return Tp({borderBox:t,margin:i,padding:o,border:a})},vp=function(t){var e=t.getBoundingClientRect(),i=window.getComputedStyle(t);return kp(e,i)},_p=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function Rp(t,e){return t===e||!(!_p(t)||!_p(e))}function Sp(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!Rp(t[i],e[i]))return!1;return!0}const Wp=function(t,e){var i;void 0===e&&(e=Sp);var o,a=[],l=!1;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return l&&i===this&&e(n,a)||(o=t.apply(this,n),l=!0,i=this,a=n),o}},Pp=function(t){var e=[],i=null,o=function(){ | |
| 1940 | +for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];e=a,i||(i=requestAnimationFrame(function(){i=null,t.apply(void 0,e)}))};return o.cancel=function(){i&&(cancelAnimationFrame(i),i=null)},o};function Up(t,e){}function jp(){}function zp(t,e,i){var o=e.map(function(e){var o,a,l=(o=i,a=e.options,(0,ve.A)({},o,{},a));return t.addEventListener(e.eventName,e.fn,l),function(){t.removeEventListener(e.eventName,e.fn,l)}});return function(){o.forEach(function(t){t()})}}Up.bind(null,"warn"),Up.bind(null,"error");function Cp(t){this.message=t}function Ap(t,e){if(!t)throw new Cp("Invariant failed")}Cp.prototype.toString=function(){return this.message};var Lp=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))||this).callbacks=null,e.unbind=jp,e.onWindowError=function(t){var i=e.getCallbacks();i.isDragging()&&i.tryAbort(),t.error instanceof Cp&&t.preventDefault()},e.getCallbacks=function(){ | |
| 1941 | +if(!e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return e.callbacks},e.setCallbacks=function(t){e.callbacks=t},e}Hu(e,t);var i=e.prototype;return i.componentDidMount=function(){this.unbind=zp(window,[{eventName:"error",fn:this.onWindowError}])},i.componentDidCatch=function(t){if(!(t instanceof Cp))throw t;this.setState({})},i.componentWillUnmount=function(){this.unbind()},i.render=function(){return this.props.children(this.setCallbacks)},e}(l().Component),Dp=function(t){return t+1},Np=function(t,e){var i=t.droppableId===e.droppableId,o=Dp(t.index),a=Dp(e.index);return i?"\n You have moved the item from position "+o+"\n to position "+a+"\n ":"\n You have moved the item from position "+o+"\n in list "+t.droppableId+"\n to list "+e.droppableId+"\n in position "+a+"\n "},Ip=function(t,e,i){ | |
| 1942 | +return e.droppableId===i.droppableId?"\n The item "+t+"\n has been combined with "+i.draggableId:"\n The item "+t+"\n in list "+e.droppableId+"\n has been combined with "+i.draggableId+"\n in list "+i.droppableId+"\n "},Vp=function(t){return"\n The item has returned to its starting position\n of "+Dp(t.index)+"\n"},Op=function(t){return"\n You have lifted an item in position "+Dp(t.source.index)+"\n"},Yp=function(t){var e=t.destination;if(e)return Np(t.source,e);var i=t.combine;return i?Ip(t.draggableId,t.source,i):"You are over an area that cannot be dropped on"},Xp=function(t){if("CANCEL"===t.reason)return"\n Movement cancelled.\n "+Vp(t.source)+"\n ";var e=t.destination,i=t.combine;return e?"\n You have dropped the item.\n "+Np(t.source,e)+"\n ":i?"\n You have dropped the item.\n "+Ip(t.draggableId,t.source,i)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Vp(t.source)+"\n "},Bp={ | |
| 1943 | +x:0,y:0},Ep=function(t,e){return{x:t.x+e.x,y:t.y+e.y}},Fp=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},qp=function(t,e){return t.x===e.x&&t.y===e.y},$p=function(t){return{x:0!==t.x?-t.x:0,y:0!==t.y?-t.y:0}},Gp=function(t,e,i){var o;return void 0===i&&(i=0),(o={})[t]=e,o["x"===t?"y":"x"]=i,o},Zp=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},Kp=function(t,e){return Math.min.apply(Math,e.map(function(e){return Zp(t,e)}))},Jp=function(t){return function(e){return{x:t(e.x),y:t(e.y)}}},Qp=function(t,e){return{top:t.top+e.y,left:t.left+e.x,bottom:t.bottom+e.y,right:t.right+e.x}},tm=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},em=function(t,e){return e&&e.shouldClipSubject?function(t,e){var i=hp({top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom),left:Math.max(e.left,t.left)});return i.width<=0||i.height<=0?null:i}(e.pageMarginBox,t):hp(t)},im=function(t){ | |
| 1944 | +var e=t.page,i=t.withPlaceholder,o=t.axis,a=t.frame,l=function(t,e){return e?Qp(t,e.scroll.diff.displacement):t}(e.marginBox,a),n=function(t,e,i){var o;return i&&i.increasedBy?(0,ve.A)({},t,((o={})[e.end]=t[e.end]+i.increasedBy[e.line],o)):t}(l,o,i);return{page:e,withPlaceholder:i,active:em(n,a)}},om=function(t,e){t.frame||Ap(!1);var i=t.frame,o=Fp(e,i.scroll.initial),a=$p(o),l=(0,ve.A)({},i,{scroll:{initial:i.scroll.initial,current:e,diff:{value:o,displacement:a},max:i.scroll.max}}),n=im({page:t.subject.page,withPlaceholder:t.subject.withPlaceholder,axis:t.axis,frame:l});return(0,ve.A)({},t,{frame:l,subject:n})};function am(t){return Object.values?Object.values(t):Object.keys(t).map(function(e){return t[e]})}function lm(t,e){if(t.findIndex)return t.findIndex(e);for(var i=0;i<t.length;i++)if(e(t[i]))return i;return-1}function nm(t,e){if(t.find)return t.find(e);var i=lm(t,e);return-1!==i?t[i]:void 0}function sm(t){return Array.prototype.slice.call(t)}var rm=Wp(function(t){ | |
| 1945 | +return t.reduce(function(t,e){return t[e.descriptor.id]=e,t},{})}),bm=Wp(function(t){return t.reduce(function(t,e){return t[e.descriptor.id]=e,t},{})}),cm=Wp(function(t){return am(t)}),dm=Wp(function(t){return am(t)}),um=Wp(function(t,e){var i=dm(e).filter(function(e){return t===e.descriptor.droppableId}).sort(function(t,e){return t.descriptor.index-e.descriptor.index});return i});function pm(t){return t.at&&"REORDER"===t.at.type?t.at.destination:null}function mm(t){return t.at&&"COMBINE"===t.at.type?t.at.combine:null}var hm=Wp(function(t,e){return e.filter(function(e){return e.descriptor.id!==t.descriptor.id})}),gm=function(t,e){return t.descriptor.droppableId===e.descriptor.id},fm={point:Bp,value:0},ym={invisible:{},visible:{},all:[]},Tm={displaced:ym,displacedBy:fm,at:null},Hm=function(t,e){return function(i){return t<=i&&i<=e}},Mm=function(t){var e=Hm(t.top,t.bottom),i=Hm(t.left,t.right);return function(o){if(e(o.top)&&e(o.bottom)&&i(o.left)&&i(o.right))return!0 | |
| 1946 | +;var a=e(o.top)||e(o.bottom),l=i(o.left)||i(o.right);if(a&&l)return!0;var n=o.top<t.top&&o.bottom>t.bottom,s=o.left<t.left&&o.right>t.right;return!(!n||!s)||n&&l||s&&a}},xm=function(t){var e=Hm(t.top,t.bottom),i=Hm(t.left,t.right);return function(t){return e(t.top)&&e(t.bottom)&&i(t.left)&&i(t.right)}},km={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},vm={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},_m=function(t){var e=t.target,i=t.destination,o=t.viewport,a=t.withDroppableDisplacement,l=t.isVisibleThroughFrameFn,n=a?function(t,e){var i=e.frame?e.frame.scroll.diff.displacement:Bp;return Qp(t,i)}(e,i):e;return function(t,e,i){return!!e.subject.active&&i(e.subject.active)(t)}(n,i,l)&&function(t,e,i){return i(e)(t)}(n,o,l)},Rm=function(t){return _m((0,ve.A)({},t,{ | |
| 1947 | +isVisibleThroughFrameFn:xm}))};function Sm(t){var e=t.afterDragging,i=t.destination,o=t.displacedBy,a=t.viewport,l=t.forceShouldAnimate,n=t.last;return e.reduce(function(t,e){var s,r=function(t,e){var i=t.page.marginBox,o={top:e.point.y,right:0,bottom:0,left:e.point.x};return hp(gp(i,o))}(e,o),b=e.descriptor.id;if(t.all.push(b),s={target:r,destination:i,viewport:a,withDroppableDisplacement:!0},!_m((0,ve.A)({},s,{isVisibleThroughFrameFn:Mm})))return t.invisible[e.descriptor.id]=!0,t;var c=function(t,e,i){if("boolean"==typeof i)return i;if(!e)return!0;var o=e.invisible,a=e.visible;if(o[t])return!1;var l=a[t];return!l||l.shouldAnimate}(b,n,l),d={draggableId:b,shouldAnimate:c};return t.visible[b]=d,t},{all:[],visible:{},invisible:{}})}function Wm(t){var e=t.insideDestination,i=t.inHomeList,o=t.displacedBy,a=t.destination,l=function(t,e){if(!t.length)return 0;var i=t[t.length-1].descriptor.index;return e.inHomeList?i:i+1}(e,{inHomeList:i});return{displaced:ym,displacedBy:o,at:{ | |
| 1948 | +type:"REORDER",destination:{droppableId:a.descriptor.id,index:l}}}}function Pm(t){var e=t.draggable,i=t.insideDestination,o=t.destination,a=t.viewport,l=t.displacedBy,n=t.last,s=t.index,r=t.forceShouldAnimate,b=gm(e,o);if(null==s)return Wm({insideDestination:i,inHomeList:b,displacedBy:l,destination:o});var c=nm(i,function(t){return t.descriptor.index===s});if(!c)return Wm({insideDestination:i,inHomeList:b,displacedBy:l,destination:o});var d=hm(e,i),u=i.indexOf(c);return{displaced:Sm({afterDragging:d.slice(u),destination:o,displacedBy:l,last:n,viewport:a.frame,forceShouldAnimate:r}),displacedBy:l,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:s}}}}function Um(t,e){return Boolean(e.effected[t])}var jm=function(t,e){return e.margin[t.start]+e.borderBox[t.size]/2},wm=function(t,e,i){return e[t.crossAxisStart]+i.margin[t.crossAxisStart]+i.borderBox[t.crossAxisSize]/2},zm=function(t){var e=t.axis,i=t.moveRelativeTo,o=t.isMoving | |
| 1949 | +;return Gp(e.line,i.marginBox[e.end]+jm(e,o),wm(e,i.marginBox,o))},Cm=function(t){var e=t.axis,i=t.moveRelativeTo,o=t.isMoving;return Gp(e.line,i.marginBox[e.start]-function(t,e){return e.margin[t.end]+e.borderBox[t.size]/2}(e,o),wm(e,i.marginBox,o))},Am=function(t,e){var i=t.frame;return i?Ep(e,i.scroll.diff.displacement):e},Lm=function(t){var e=function(t){var e=t.impact,i=t.draggable,o=t.droppable,a=t.draggables,l=t.afterCritical,n=i.page.borderBox.center,s=e.at;return o&&s?"REORDER"===s.type?function(t){var e=t.impact,i=t.draggable,o=t.draggables,a=t.droppable,l=t.afterCritical,n=um(a.descriptor.id,o),s=i.page,r=a.axis;if(!n.length)return function(t){var e=t.axis,i=t.moveInto,o=t.isMoving;return Gp(e.line,i.contentBox[e.start]+jm(e,o),wm(e,i.contentBox,o))}({axis:r,moveInto:a.page,isMoving:s});var b=e.displaced,c=e.displacedBy,d=b.all[0];if(d){var u=o[d];if(Um(d,l))return Cm({axis:r,moveRelativeTo:u.page,isMoving:s});var p=Mp(u.page,c.point);return Cm({axis:r,moveRelativeTo:p, | |
| 1950 | +isMoving:s})}var m=n[n.length-1];if(m.descriptor.id===i.descriptor.id)return s.borderBox.center;if(Um(m.descriptor.id,l)){var h=Mp(m.page,$p(l.displacedBy.point));return zm({axis:r,moveRelativeTo:h,isMoving:s})}return zm({axis:r,moveRelativeTo:m.page,isMoving:s})}({impact:e,draggable:i,draggables:a,droppable:o,afterCritical:l}):function(t){var e=t.afterCritical,i=t.impact,o=t.draggables,a=mm(i);a||Ap(!1);var l=a.draggableId,n=o[l].page.borderBox.center,s=function(t){var e=t.displaced,i=t.afterCritical,o=t.combineWith,a=t.displacedBy,l=Boolean(e.visible[o]||e.invisible[o]);return Um(o,i)?l?Bp:$p(a.point):l?a.point:Bp}({displaced:i.displaced,afterCritical:e,combineWith:l,displacedBy:i.displacedBy});return Ep(n,s)}({impact:e,draggables:a,afterCritical:l}):n}(t),i=t.droppable;return i?Am(i,e):e},Dm=function(t,e){var i=Fp(e,t.scroll.initial),o=$p(i);return{frame:hp({top:e.y,bottom:e.y+t.frame.height,left:e.x,right:e.x+t.frame.width}),scroll:{initial:t.scroll.initial,max:t.scroll.max, | |
| 1951 | +current:e,diff:{value:i,displacement:o}}}};function Nm(t,e){return t.map(function(t){return e[t]})}var Im=function(t){var e,i,o=t.pageBorderBoxCenter,a=t.draggable,l=(e=t.viewport,i=o,Ep(e.scroll.diff.displacement,i)),n=Fp(l,a.page.borderBox.center);return Ep(a.client.borderBox.center,n)},Vm=function(t){var e=t.draggable,i=t.destination,o=t.newPageBorderBoxCenter,a=t.viewport,l=t.withDroppableDisplacement,n=t.onlyOnMainAxis,s=void 0!==n&&n,r=Fp(o,e.page.borderBox.center),b={target:Qp(e.page.borderBox,r),destination:i,withDroppableDisplacement:l,viewport:a};return s?function(t){return _m((0,ve.A)({},t,{isVisibleThroughFrameFn:(e=t.destination.axis,function(t){var i=Hm(t.top,t.bottom),o=Hm(t.left,t.right);return function(t){return e===km?i(t.top)&&i(t.bottom):o(t.left)&&o(t.right)}})}));var e}(b):Rm(b)},Om=function(t){ | |
| 1952 | +var e=t.isMovingForward,i=t.draggable,o=t.destination,a=t.draggables,l=t.previousImpact,n=t.viewport,s=t.previousPageBorderBoxCenter,r=t.previousClientSelection,b=t.afterCritical;if(!o.isEnabled)return null;var c=um(o.descriptor.id,a),d=gm(i,o),u=function(t){var e=t.isMovingForward,i=t.draggable,o=t.destination,a=t.insideDestination,l=t.previousImpact;if(!o.isCombineEnabled)return null;if(!pm(l))return null;function n(t){var e={type:"COMBINE",combine:{draggableId:t,droppableId:o.descriptor.id}};return(0,ve.A)({},l,{at:e})}var s=l.displaced.all,r=s.length?s[0]:null;if(e)return r?n(r):null;var b=hm(i,a);if(!r)return b.length?n(b[b.length-1].descriptor.id):null;var c=lm(b,function(t){return t.descriptor.id===r});-1===c&&Ap(!1);var d=c-1;return d<0?null:n(b[d].descriptor.id)}({isMovingForward:e,draggable:i,destination:o,insideDestination:c,previousImpact:l})||function(t){ | |
| 1953 | +var e=t.isMovingForward,i=t.isInHomeList,o=t.draggable,a=t.draggables,l=t.destination,n=t.insideDestination,s=t.previousImpact,r=t.viewport,b=t.afterCritical,c=s.at;if(c||Ap(!1),"REORDER"===c.type){var d=function(t){var e=t.isMovingForward,i=t.isInHomeList,o=t.insideDestination,a=t.location;if(!o.length)return null;var l=a.index,n=e?l+1:l-1,s=o[0].descriptor.index,r=o[o.length-1].descriptor.index;return n<s||n>(i?r:r+1)?null:n}({isMovingForward:e,isInHomeList:i,location:c.destination,insideDestination:n});return null==d?null:Pm({draggable:o,insideDestination:n,destination:l,viewport:r,last:s.displaced,displacedBy:s.displacedBy,index:d})}var u=function(t){var e=t.isMovingForward,i=t.draggables,o=t.combine,a=t.afterCritical;if(!t.destination.isCombineEnabled)return null;var l=o.draggableId,n=i[l].descriptor.index;return Um(l,a)?e?n:n-1:e?n+1:n}({isMovingForward:e,destination:l,displaced:s.displaced,draggables:a,combine:c.combine,afterCritical:b});return null==u?null:Pm({draggable:o, | |
| 1954 | +insideDestination:n,destination:l,viewport:r,last:s.displaced,displacedBy:s.displacedBy,index:u})}({isMovingForward:e,isInHomeList:d,draggable:i,draggables:a,destination:o,insideDestination:c,previousImpact:l,viewport:n,afterCritical:b});if(!u)return null;var p=Lm({impact:u,draggable:i,droppable:o,draggables:a,afterCritical:b});if(Vm({draggable:i,destination:o,newPageBorderBoxCenter:p,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Im({pageBorderBoxCenter:p,draggable:i,viewport:n}),impact:u,scrollJumpRequest:null};var m=Fp(p,s),h=function(t){var e=t.impact,i=t.viewport,o=t.destination,a=t.draggables,l=t.maxScrollChange,n=Dm(i,Ep(i.scroll.current,l)),s=o.frame?om(o,Ep(o.frame.scroll.current,l)):o,r=e.displaced,b=Sm({afterDragging:Nm(r.all,a),destination:o,displacedBy:e.displacedBy,viewport:n.frame,last:r,forceShouldAnimate:!1}),c=Sm({afterDragging:Nm(r.all,a),destination:s,displacedBy:e.displacedBy,viewport:i.frame,last:r,forceShouldAnimate:!1 | |
| 1955 | +}),d={},u={},p=[r,b,c];return r.all.forEach(function(t){var e=function(t,e){for(var i=0;i<e.length;i++){var o=e[i].visible[t];if(o)return o}return null}(t,p);e?u[t]=e:d[t]=!0}),(0,ve.A)({},e,{displaced:{all:r.all,invisible:d,visible:u}})}({impact:u,viewport:n,destination:o,draggables:a,maxScrollChange:m});return{clientSelection:r,impact:h,scrollJumpRequest:m}},Ym=function(t){var e=t.subject.active;return e||Ap(!1),e},Xm=function(t,e){var i=t.page.borderBox.center;return Um(t.descriptor.id,e)?Fp(i,e.displacedBy.point):i},Bm=function(t,e){var i=t.page.borderBox;return Um(t.descriptor.id,e)?Qp(i,$p(e.displacedBy.point)):i},Em=Wp(function(t,e){var i=e[t.line];return{value:i,point:Gp(t.line,i)}}),Fm=function(t,e){return(0,ve.A)({},t,{scroll:(0,ve.A)({},t.scroll,{max:e})})},qm=function(t,e,i){var o=t.frame;gm(e,t)&&Ap(!1),t.subject.withPlaceholder&&Ap(!1);var a=Em(t.axis,e.displaceBy).point,l=function(t,e,i){var o=t.axis;if("virtual"===t.descriptor.mode)return Gp(o.line,e[o.line]) | |
| 1956 | +;var a=t.subject.page.contentBox[o.size],l=um(t.descriptor.id,i).reduce(function(t,e){return t+e.client.marginBox[o.size]},0)+e[o.line]-a;return l<=0?null:Gp(o.line,l)}(t,a,i),n={placeholderSize:a,increasedBy:l,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!o){var s=im({page:t.subject.page,withPlaceholder:n,axis:t.axis,frame:t.frame});return(0,ve.A)({},t,{subject:s})}var r=l?Ep(o.scroll.max,l):o.scroll.max,b=Fm(o,r),c=im({page:t.subject.page,withPlaceholder:n,axis:t.axis,frame:b});return(0,ve.A)({},t,{subject:c,frame:b})},$m=function(t){var e=t.at;return e?"REORDER"===e.type?e.destination.droppableId:e.combine.droppableId:null},Gm=function(t){var e=t.state,i=t.type,o=function(t,e){var i=$m(t);return i?e[i]:null}(e.impact,e.dimensions.droppables),a=Boolean(o),l=e.dimensions.droppables[e.critical.droppable.id],n=o||l,s=n.axis.direction,r="vertical"===s&&("MOVE_UP"===i||"MOVE_DOWN"===i)||"horizontal"===s&&("MOVE_LEFT"===i||"MOVE_RIGHT"===i);if(r&&!a)return null | |
| 1957 | +;var b="MOVE_DOWN"===i||"MOVE_RIGHT"===i,c=e.dimensions.draggables[e.critical.draggable.id],d=e.current.page.borderBoxCenter,u=e.dimensions,p=u.draggables,m=u.droppables;return r?Om({isMovingForward:b,previousPageBorderBoxCenter:d,draggable:c,destination:n,draggables:p,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):function(t){var e=t.isMovingForward,i=t.previousPageBorderBoxCenter,o=t.draggable,a=t.isOver,l=t.draggables,n=t.droppables,s=t.viewport,r=t.afterCritical,b=function(t){var e=t.isMovingForward,i=t.pageBorderBoxCenter,o=t.source,a=t.droppables,l=t.viewport,n=o.subject.active;if(!n)return null;var s=o.axis,r=Hm(n[s.start],n[s.end]),b=cm(a).filter(function(t){return t!==o}).filter(function(t){return t.isEnabled}).filter(function(t){return Boolean(t.subject.active)}).filter(function(t){return Mm(l.frame)(Ym(t))}).filter(function(t){var i=Ym(t) | |
| 1958 | +;return e?n[s.crossAxisEnd]<i[s.crossAxisEnd]:i[s.crossAxisStart]<n[s.crossAxisStart]}).filter(function(t){var e=Ym(t),i=Hm(e[s.start],e[s.end]);return r(e[s.start])||r(e[s.end])||i(n[s.start])||i(n[s.end])}).sort(function(t,i){var o=Ym(t)[s.crossAxisStart],a=Ym(i)[s.crossAxisStart];return e?o-a:a-o}).filter(function(t,e,i){return Ym(t)[s.crossAxisStart]===Ym(i[0])[s.crossAxisStart]});if(!b.length)return null;if(1===b.length)return b[0];var c=b.filter(function(t){return Hm(Ym(t)[s.start],Ym(t)[s.end])(i[s.line])});return 1===c.length?c[0]:c.length>1?c.sort(function(t,e){return Ym(t)[s.start]-Ym(e)[s.start]})[0]:b.sort(function(t,e){var o=Kp(i,tm(Ym(t))),a=Kp(i,tm(Ym(e)));return o!==a?o-a:Ym(t)[s.start]-Ym(e)[s.start]})[0]}({isMovingForward:e,pageBorderBoxCenter:i,source:a,droppables:n,viewport:s});if(!b)return null;var c=um(b.descriptor.id,l),d=function(t){var e=t.pageBorderBoxCenter,i=t.viewport,o=t.destination,a=t.afterCritical,l=t.insideDestination.filter(function(t){return Rm({ | |
| 1959 | +target:Bm(t,a),destination:o,viewport:i.frame,withDroppableDisplacement:!0})}).sort(function(t,i){var l=Zp(e,Am(o,Xm(t,a))),n=Zp(e,Am(o,Xm(i,a)));return l<n?-1:n<l?1:t.descriptor.index-i.descriptor.index});return l[0]||null}({pageBorderBoxCenter:i,viewport:s,destination:b,insideDestination:c,afterCritical:r}),u=function(t){var e=t.previousPageBorderBoxCenter,i=t.moveRelativeTo,o=t.insideDestination,a=t.draggable,l=t.draggables,n=t.destination,s=t.viewport,r=t.afterCritical;if(!i){if(o.length)return null;var b={displaced:ym,displacedBy:fm,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:0}}},c=Lm({impact:b,draggable:a,droppable:n,draggables:l,afterCritical:r}),d=gm(a,n)?n:qm(n,a,l);return Vm({draggable:a,destination:d,newPageBorderBoxCenter:c,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?b:null}var u,p=Boolean(e[n.axis.line]<=i.page.borderBox.center[n.axis.line]),m=(u=i.descriptor.index,i.descriptor.id===a.descriptor.id||p?u:u+1);return Pm({ | |
| 1960 | +draggable:a,insideDestination:o,destination:n,viewport:s,displacedBy:Em(n.axis,a.displaceBy),last:ym,index:m})}({previousPageBorderBoxCenter:i,destination:b,draggable:o,draggables:l,moveRelativeTo:d,insideDestination:c,viewport:s,afterCritical:r});if(!u)return null;var p=Lm({impact:u,draggable:o,droppable:b,draggables:l,afterCritical:r});return{clientSelection:Im({pageBorderBoxCenter:p,draggable:o,viewport:s}),impact:u,scrollJumpRequest:null}}({isMovingForward:b,previousPageBorderBoxCenter:d,draggable:c,isOver:n,draggables:p,droppables:m,viewport:e.viewport,afterCritical:e.afterCritical})};function Zm(t){return"DRAGGING"===t.phase||"COLLECTING"===t.phase}function Km(t){var e=Hm(t.top,t.bottom),i=Hm(t.left,t.right);return function(t){return e(t.y)&&i(t.x)}}var Jm=function(t,e){return hp(Qp(t,e))};function Qm(t){var e=t.displaced,i=t.id;return Boolean(e.visible[i]||e.invisible[i])}var th=function(t){ | |
| 1961 | +var e=t.pageOffset,i=t.draggable,o=t.draggables,a=t.droppables,l=t.previousImpact,n=t.viewport,s=t.afterCritical,r=Jm(i.page.borderBox,e),b=function(t){var e=t.pageBorderBox,i=t.draggable,o=t.droppables,a=cm(o).filter(function(t){if(!t.isEnabled)return!1;var i,o,a=t.subject.active;if(!a)return!1;if(o=a,!((i=e).left<o.right&&i.right>o.left&&i.top<o.bottom&&i.bottom>o.top))return!1;if(Km(a)(e.center))return!0;var l=t.axis,n=a.center[l.crossAxisLine],s=e[l.crossAxisStart],r=e[l.crossAxisEnd],b=Hm(a[l.crossAxisStart],a[l.crossAxisEnd]),c=b(s),d=b(r);return!c&&!d||(c?s<n:r>n)});return a.length?1===a.length?a[0].descriptor.id:function(t){var e=t.pageBorderBox,i=t.candidates,o=t.draggable.page.borderBox.center,a=i.map(function(t){var i=t.axis,a=Gp(t.axis.line,e.center[i.line],t.page.borderBox.center[i.crossAxisLine]);return{id:t.descriptor.id,distance:Zp(o,a)}}).sort(function(t,e){return e.distance-t.distance});return a[0]?a[0].id:null}({pageBorderBox:e,draggable:i,candidates:a}):null}({ | |
| 1962 | +pageBorderBox:r,draggable:i,droppables:a});if(!b)return Tm;var c=a[b],d=um(c.descriptor.id,o),u=function(t,e){var i=t.frame;return i?Jm(e,i.scroll.diff.value):e}(c,r);return function(t){var e=t.draggable,i=t.pageBorderBoxWithDroppableScroll,o=t.previousImpact,a=t.destination,l=t.insideDestination,n=t.afterCritical;if(!a.isCombineEnabled)return null;var s=a.axis,r=Em(a.axis,e.displaceBy),b=r.value,c=i[s.start],d=i[s.end],u=nm(hm(e,l),function(t){var e=t.descriptor.id,i=t.page.borderBox,a=i[s.size]/4,l=Um(e,n),r=Qm({displaced:o.displaced,id:e});return l?r?d>i[s.start]+a&&d<i[s.end]-a:c>i[s.start]-b+a&&c<i[s.end]-b-a:r?d>i[s.start]+b+a&&d<i[s.end]+b-a:c>i[s.start]+a&&c<i[s.end]-a});return u?{displacedBy:r,displaced:o.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:a.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:u,draggable:i,previousImpact:l,destination:c,insideDestination:d,afterCritical:s})||function(t){ | |
| 1963 | +var e=t.pageBorderBoxWithDroppableScroll,i=t.draggable,o=t.destination,a=t.insideDestination,l=t.last,n=t.viewport,s=t.afterCritical,r=o.axis,b=Em(o.axis,i.displaceBy),c=b.value,d=e[r.start],u=e[r.end],p=function(t){var e=t.draggable,i=t.closest;return i?t.inHomeList&&i.descriptor.index>e.descriptor.index?i.descriptor.index-1:i.descriptor.index:null}({draggable:i,closest:nm(hm(i,a),function(t){var e=t.descriptor.id,i=t.page.borderBox.center[r.line],o=Um(e,s),a=Qm({displaced:l,id:e});return o?a?u<=i:d<i-c:a?u<=i+c:d<i}),inHomeList:gm(i,o)});return Pm({draggable:i,insideDestination:a,destination:o,viewport:n,last:l,displacedBy:b,index:p})}({pageBorderBoxWithDroppableScroll:u,draggable:i,destination:c,insideDestination:d,last:l.displaced,viewport:n,afterCritical:s})},eh=function(t,e){var i;return(0,ve.A)({},t,((i={})[e.descriptor.id]=e,i))},ih=function(t){ | |
| 1964 | +var e=t.state,i=t.clientSelection,o=t.dimensions,a=t.viewport,l=t.impact,n=t.scrollJumpRequest,s=a||e.viewport,r=o||e.dimensions,b=i||e.current.client.selection,c=Fp(b,e.initial.client.selection),d={offset:c,selection:b,borderBoxCenter:Ep(e.initial.client.borderBoxCenter,c)},u={selection:Ep(d.selection,s.scroll.current),borderBoxCenter:Ep(d.borderBoxCenter,s.scroll.current),offset:Ep(d.offset,s.scroll.diff.value)},p={client:d,page:u};if("COLLECTING"===e.phase)return(0,ve.A)({phase:"COLLECTING"},e,{dimensions:r,viewport:s,current:p});var m=r.draggables[e.critical.draggable.id],h=l||th({pageOffset:u.offset,draggable:m,draggables:r.draggables,droppables:r.droppables,previousImpact:e.impact,viewport:s,afterCritical:e.afterCritical}),g=function(t){var e=t.draggable,i=t.draggables,o=t.droppables,a=t.impact,l=function(t){var e=t.previousImpact,i=t.impact,o=t.droppables,a=$m(e),l=$m(i);if(!a)return o;if(a===l)return o;var n=o[a];if(!n.subject.withPlaceholder)return o;var s=function(t){ | |
| 1965 | +var e=t.subject.withPlaceholder;e||Ap(!1);var i=t.frame;if(!i){var o=im({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return(0,ve.A)({},t,{subject:o})}var a=e.oldFrameMaxScroll;a||Ap(!1);var l=Fm(i,a),n=im({page:t.subject.page,axis:t.axis,frame:l,withPlaceholder:null});return(0,ve.A)({},t,{subject:n,frame:l})}(n);return eh(o,s)}({previousImpact:t.previousImpact,impact:a,droppables:o}),n=$m(a);if(!n)return l;var s=o[n];if(gm(e,s))return l;if(s.subject.withPlaceholder)return l;var r=qm(s,e,i);return eh(l,r)}({draggable:m,impact:h,previousImpact:e.impact,draggables:r.draggables,droppables:r.droppables});return(0,ve.A)({},e,{current:p,dimensions:{draggables:r.draggables,droppables:g},impact:h,viewport:s,scrollJumpRequest:n||null,forceShouldAnimate:!n&&null})},oh=function(t){var e=t.impact,i=t.viewport,o=t.draggables,a=t.destination,l=t.forceShouldAnimate,n=e.displaced,s=function(t,e){return t.map(function(t){return e[t]})}(n.all,o),r=Sm({afterDragging:s,destination:a, | |
| 1966 | +displacedBy:e.displacedBy,viewport:i.frame,forceShouldAnimate:l,last:n});return(0,ve.A)({},e,{displaced:r})},ah=function(t){var e=t.impact,i=t.draggable,o=t.droppable,a=t.draggables,l=t.viewport,n=t.afterCritical,s=Lm({impact:e,draggable:i,draggables:a,droppable:o,afterCritical:n});return Im({pageBorderBoxCenter:s,draggable:i,viewport:l})},lh=function(t){var e=t.state,i=t.dimensions,o=t.viewport;"SNAP"!==e.movementMode&&Ap(!1);var a=e.impact,l=o||e.viewport,n=i||e.dimensions,s=n.draggables,r=n.droppables,b=s[e.critical.draggable.id],c=$m(a);c||Ap(!1);var d=r[c],u=oh({impact:a,viewport:l,destination:d,draggables:s}),p=ah({impact:u,draggable:b,droppable:d,draggables:s,viewport:l,afterCritical:e.afterCritical});return ih({impact:u,clientSelection:p,state:e,dimensions:n,viewport:l})},nh=function(t){var e=t.draggable,i=t.home,o=t.draggables,a=t.viewport,l=Em(i.axis,e.displaceBy),n=um(i.descriptor.id,o),s=n.indexOf(e);-1===s&&Ap(!1);var r,b=n.slice(s+1),c=b.reduce(function(t,e){ | |
| 1967 | +return t[e.descriptor.id]=!0,t},{}),d={inVirtualList:"virtual"===i.descriptor.mode,displacedBy:l,effected:c};return{impact:{displaced:Sm({afterDragging:b,destination:i,displacedBy:l,last:null,viewport:a.frame,forceShouldAnimate:!1}),displacedBy:l,at:{type:"REORDER",destination:(r=e.descriptor,{index:r.index,droppableId:r.droppableId})}},afterCritical:d}},sh=function(t){return"SNAP"===t.movementMode},rh=function(t,e,i){var o=function(t,e){return{draggables:t.draggables,droppables:eh(t.droppables,e)}}(t.dimensions,e);return!sh(t)||i?ih({state:t,dimensions:o}):lh({state:t,dimensions:o})};function bh(t){return t.isDragging&&"SNAP"===t.movementMode?(0,ve.A)({phase:"DRAGGING"},t,{scrollJumpRequest:null}):t}var ch={phase:"IDLE",completed:null,shouldFlush:!1},dh=function(t,e){if(void 0===t&&(t=ch),"FLUSH"===e.type)return(0,ve.A)({},ch,{shouldFlush:!0});if("INITIAL_PUBLISH"===e.type){"IDLE"!==t.phase&&Ap(!1) | |
| 1968 | +;var i=e.payload,o=i.critical,a=i.clientSelection,l=i.viewport,n=i.dimensions,s=i.movementMode,r=n.draggables[o.draggable.id],b=n.droppables[o.droppable.id],c={selection:a,borderBoxCenter:r.client.borderBox.center,offset:Bp},d={client:c,page:{selection:Ep(c.selection,l.scroll.initial),borderBoxCenter:Ep(c.selection,l.scroll.initial),offset:Ep(c.selection,l.scroll.diff.value)}},u=cm(n.droppables).every(function(t){return!t.isFixedOnPage}),p=nh({draggable:r,home:b,draggables:n.draggables,viewport:l}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:o,movementMode:s,dimensions:n,initial:d,current:d,isWindowScrollAllowed:u,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===e.type)return"COLLECTING"===t.phase||"DROP_PENDING"===t.phase?t:("DRAGGING"!==t.phase&&Ap(!1),(0,ve.A)({phase:"COLLECTING"},t,{phase:"COLLECTING"})) | |
| 1969 | +;if("PUBLISH_WHILE_DRAGGING"===e.type)return"COLLECTING"!==t.phase&&"DROP_PENDING"!==t.phase&&Ap(!1),function(t){var e=t.state,i=t.published,o=i.modified.map(function(t){var i=e.dimensions.droppables[t.droppableId];return om(i,t.scroll)}),a=(0,ve.A)({},e.dimensions.droppables,{},rm(o)),l=bm(function(t){var e=t.additions,i=t.updatedDroppables,o=t.viewport,a=o.scroll.diff.value;return e.map(function(t){var e=t.descriptor.droppableId,l=function(t){var e=t.frame;return e||Ap(!1),e}(i[e]),n=l.scroll.diff.value,s=function(t){var e=t.draggable,i=t.offset,o=t.initialWindowScroll,a=Mp(e.client,i),l=xp(a,o);return(0,ve.A)({},e,{placeholder:(0,ve.A)({},e.placeholder,{client:a}),client:a,page:l})}({draggable:t,offset:Ep(a,n),initialWindowScroll:o.scroll.initial});return s})}({additions:i.additions,updatedDroppables:a,viewport:e.viewport})),n=(0,ve.A)({},e.dimensions.draggables,{},l);i.removals.forEach(function(t){delete n[t]});var s={droppables:a,draggables:n | |
| 1970 | +},r=$m(e.impact),b=r?s.droppables[r]:null,c=s.draggables[e.critical.draggable.id],d=s.droppables[e.critical.droppable.id],u=nh({draggable:c,home:d,draggables:n,viewport:e.viewport}),p=u.impact,m=u.afterCritical,h=b&&b.isCombineEnabled?e.impact:p,g=th({pageOffset:e.current.page.offset,draggable:s.draggables[e.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:h,viewport:e.viewport,afterCritical:m}),f=(0,ve.A)({phase:"DRAGGING"},e,{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:s,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===e.phase?f:(0,ve.A)({phase:"DROP_PENDING"},f,{phase:"DROP_PENDING",reason:e.reason,isWaiting:!1})}({state:t,published:e.payload});if("MOVE"===e.type){if("DROP_PENDING"===t.phase)return t;Zm(t)||Ap(!1);var h=e.payload.client;return qp(h,t.current.client.selection)?t:ih({state:t,clientSelection:h,impact:sh(t)?t.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===e.type){if("DROP_PENDING"===t.phase)return bh(t) | |
| 1971 | +;if("COLLECTING"===t.phase)return bh(t);Zm(t)||Ap(!1);var g=e.payload,f=g.id,y=g.newScroll,T=t.dimensions.droppables[f];if(!T)return t;var H=om(T,y);return rh(t,H,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===e.type){if("DROP_PENDING"===t.phase)return t;Zm(t)||Ap(!1);var M=e.payload,x=M.id,k=M.isEnabled,v=t.dimensions.droppables[x];v||Ap(!1),v.isEnabled===k&&Ap(!1);var _=(0,ve.A)({},v,{isEnabled:k});return rh(t,_,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===e.type){if("DROP_PENDING"===t.phase)return t;Zm(t)||Ap(!1);var R=e.payload,S=R.id,W=R.isCombineEnabled,P=t.dimensions.droppables[S];P||Ap(!1),P.isCombineEnabled===W&&Ap(!1);var U=(0,ve.A)({},P,{isCombineEnabled:W});return rh(t,U,!0)}if("MOVE_BY_WINDOW_SCROLL"===e.type){if("DROP_PENDING"===t.phase||"DROP_ANIMATING"===t.phase)return t;Zm(t)||Ap(!1),t.isWindowScrollAllowed||Ap(!1);var j=e.payload.newScroll;if(qp(t.viewport.scroll.current,j))return bh(t);var w=Dm(t.viewport,j);return sh(t)?lh({state:t,viewport:w}):ih({state:t,viewport:w})} | |
| 1972 | +if("UPDATE_VIEWPORT_MAX_SCROLL"===e.type){if(!Zm(t))return t;var z=e.payload.maxScroll;if(qp(z,t.viewport.scroll.max))return t;var C=(0,ve.A)({},t.viewport,{scroll:(0,ve.A)({},t.viewport.scroll,{max:z})});return(0,ve.A)({phase:"DRAGGING"},t,{viewport:C})}if("MOVE_UP"===e.type||"MOVE_DOWN"===e.type||"MOVE_LEFT"===e.type||"MOVE_RIGHT"===e.type){if("COLLECTING"===t.phase||"DROP_PENDING"===t.phase)return t;"DRAGGING"!==t.phase&&Ap(!1);var A=Gm({state:t,type:e.type});return A?ih({state:t,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):t}if("DROP_PENDING"===e.type){var L=e.payload.reason;return"COLLECTING"!==t.phase&&Ap(!1),(0,ve.A)({phase:"DROP_PENDING"},t,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===e.type){var D=e.payload,N=D.completed,I=D.dropDuration,V=D.newHomeClientOffset;return"DRAGGING"!==t.phase&&"DROP_PENDING"!==t.phase&&Ap(!1),{phase:"DROP_ANIMATING",completed:N,dropDuration:I,newHomeClientOffset:V, | |
| 1973 | +dimensions:t.dimensions}}return"DROP_COMPLETE"===e.type?{phase:"IDLE",completed:e.payload.completed,shouldFlush:!1}:t},uh=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},ph=function(){return{type:"COLLECTION_STARTING",payload:null}},mh=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},hh=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},gh=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},fh=function(t){return{type:"MOVE",payload:t}},yh=function(){return{type:"MOVE_UP",payload:null}},Th=function(){return{type:"MOVE_DOWN",payload:null}},Hh=function(){return{type:"MOVE_RIGHT",payload:null}},Mh=function(){return{type:"MOVE_LEFT",payload:null}},xh=function(t){return{type:"DROP_COMPLETE",payload:t}},kh=function(t){return{type:"DROP",payload:t}},vh="cubic-bezier(.2,1,.1,1)",_h=0,Rh=.7,Sh=.75,Wh="0.2s cubic-bezier(0.2, 0, 0, 1)",Ph={fluid:"opacity "+Wh,snap:"transform "+Wh+", opacity "+Wh,drop:function(t){var e=t+"s "+vh | |
| 1974 | +;return"transform "+e+", opacity "+e},outOfTheWay:"transform "+Wh,placeholder:"height "+Wh+", width "+Wh+", margin "+Wh},Uh=function(t){return qp(t,Bp)?null:"translate("+t.x+"px, "+t.y+"px)"},jh=Uh,wh=.33,zh=.55-wh,Ch=function(t){var e=t.getState,i=t.dispatch;return function(t){return function(o){if("DROP"===o.type){var a=e(),l=o.payload.reason;if("COLLECTING"!==a.phase){if("IDLE"!==a.phase){"DROP_PENDING"===a.phase&&a.isWaiting&&Ap(!1),"DRAGGING"!==a.phase&&"DROP_PENDING"!==a.phase&&Ap(!1);var n=a.critical,s=a.dimensions,r=s.draggables[a.critical.draggable.id],b=function(t){var e=t.draggables,i=t.reason,o=t.lastImpact,a=t.home,l=t.viewport,n=t.onLiftImpact;return o.at&&"DROP"===i?"REORDER"===o.at.type?{impact:o,didDropInsideDroppable:!0}:{impact:(0,ve.A)({},o,{displaced:ym}),didDropInsideDroppable:!0}:{impact:oh({draggables:e,impact:n,destination:a,viewport:l,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:l,lastImpact:a.impact,afterCritical:a.afterCritical, | |
| 1975 | +onLiftImpact:a.onLiftImpact,home:a.dimensions.droppables[a.critical.droppable.id],viewport:a.viewport,draggables:a.dimensions.draggables}),c=b.impact,d=b.didDropInsideDroppable,u=d?pm(c):null,p=d?mm(c):null,m={index:n.draggable.index,droppableId:n.droppable.id},h={draggableId:r.descriptor.id,type:r.descriptor.type,source:m,reason:l,mode:a.movementMode,destination:u,combine:p},g=function(t){var e=t.impact,i=t.draggable,o=t.dimensions,a=t.viewport,l=t.afterCritical,n=o.draggables,s=o.droppables,r=$m(e),b=r?s[r]:null,c=s[i.descriptor.droppableId],d=ah({impact:e,draggable:i,draggables:n,afterCritical:l,droppable:b||c,viewport:a});return Fp(d,i.client.borderBox.center)}({impact:c,draggable:r,dimensions:s,viewport:a.viewport,afterCritical:a.afterCritical}),f={critical:a.critical,afterCritical:a.afterCritical,result:h,impact:c};if(!qp(a.current.client.offset,g)||Boolean(h.combine)){var y=function(t){var e=t.reason,i=Zp(t.current,t.destination);if(i<=0)return wh;if(i>=1500)return.55 | |
| 1976 | +;var o=wh+zh*(i/1500);return Number(("CANCEL"===e?.6*o:o).toFixed(2))}({current:a.current.client.offset,destination:g,reason:l});i({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:y,completed:f}})}else i(xh({completed:f}))}}else i(function(t){return{type:"DROP_PENDING",payload:t}}({reason:l}))}else t(o)}}},Ah=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Lh=function(t){var e=function(t){var e=t.onWindowScroll,i=Pp(function(){e(Ah())}),o=function(t){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||t()}}}(i),a=jp;function l(){return a!==jp}return{start:function(){l()&&Ap(!1),a=zp(window,[o])},stop:function(){l()||Ap(!1),i.cancel(),a(),a=jp},isActive:l}}({onWindowScroll:function(e){t.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:e}})}});return function(t){return function(i){e.isActive()||"INITIAL_PUBLISH"!==i.type||e.start(),e.isActive()&&function(t){ | |
| 1977 | +return"DROP_COMPLETE"===t.type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type}(i)&&e.stop(),t(i)}}},Dh=function(t,e){e()},Nh=function(t,e){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:e}},Ih=function(t,e,i,o){if(t){var a=function(t){var e=!1,i=!1,o=setTimeout(function(){i=!0}),a=function(a){e||i||(e=!0,t(a),clearTimeout(o))};return a.wasCalled=function(){return e},a}(i);t(e,{announce:a}),a.wasCalled()||i(o(e))}else i(o(e))},Vh=function(t,e){var i=function(t,e){var i,o=(i=[],{add:function(t){var e=setTimeout(function(){return function(t){var e=lm(i,function(e){return e.timerId===t});-1===e&&Ap(!1),i.splice(e,1)[0].callback()}(e)}),o={timerId:e,callback:t};i.push(o)},flush:function(){if(i.length){var t=[].concat(i);i.length=0,t.forEach(function(t){clearTimeout(t.timerId),t.callback()})}}}),a=null,l=function(i){a||Ap(!1),a=null,Dh(0,function(){return Ih(t().onDragEnd,i,e,Xp)})};return{beforeCapture:function(e,i){ | |
| 1978 | +a&&Ap(!1),Dh(0,function(){var o=t().onBeforeCapture;o&&o({draggableId:e,mode:i})})},beforeStart:function(e,i){a&&Ap(!1),Dh(0,function(){var o=t().onBeforeDragStart;o&&o(Nh(e,i))})},start:function(i,l){a&&Ap(!1);var n=Nh(i,l);a={mode:l,lastCritical:i,lastLocation:n.source,lastCombine:null},o.add(function(){Dh(0,function(){return Ih(t().onDragStart,n,e,Op)})})},update:function(i,l){var n=pm(l),s=mm(l);a||Ap(!1);var r=!function(t,e){if(t===e)return!0;var i=t.draggable.id===e.draggable.id&&t.draggable.droppableId===e.draggable.droppableId&&t.draggable.type===e.draggable.type&&t.draggable.index===e.draggable.index,o=t.droppable.id===e.droppable.id&&t.droppable.type===e.droppable.type;return i&&o}(i,a.lastCritical);r&&(a.lastCritical=i);var b,c,d=(c=n,!(null==(b=a.lastLocation)&&null==c||null!=b&&null!=c&&b.droppableId===c.droppableId&&b.index===c.index));d&&(a.lastLocation=n);var u=!function(t,e){ | |
| 1979 | +return null==t&&null==e||null!=t&&null!=e&&t.draggableId===e.draggableId&&t.droppableId===e.droppableId}(a.lastCombine,s);if(u&&(a.lastCombine=s),r||d||u){var p=(0,ve.A)({},Nh(i,a.mode),{combine:s,destination:n});o.add(function(){Dh(0,function(){return Ih(t().onDragUpdate,p,e,Yp)})})}},flush:function(){a||Ap(!1),o.flush()},drop:l,abort:function(){if(a){var t=(0,ve.A)({},Nh(a.lastCritical,a.mode),{combine:null,destination:null,reason:"CANCEL"});l(t)}}}}(t,e);return function(t){return function(e){return function(o){if("BEFORE_INITIAL_CAPTURE"!==o.type){if("INITIAL_PUBLISH"===o.type){var a=o.payload.critical;return i.beforeStart(a,o.payload.movementMode),e(o),void i.start(a,o.payload.movementMode)}if("DROP_COMPLETE"===o.type){var l=o.payload.completed.result;return i.flush(),e(o),void i.drop(l)}if(e(o),"FLUSH"!==o.type){var n=t.getState();"DRAGGING"===n.phase&&i.update(n.critical,n.impact)}else i.abort()}else i.beforeCapture(o.payload.draggableId,o.payload.movementMode)}}} | |
| 1980 | +},Oh=function(t){return function(e){return function(i){if("DROP_ANIMATION_FINISHED"===i.type){var o=t.getState();"DROP_ANIMATING"!==o.phase&&Ap(!1),t.dispatch(xh({completed:o.completed}))}else e(i)}}},Yh=function(t){var e=null,i=null;return function(o){return function(a){if("FLUSH"!==a.type&&"DROP_COMPLETE"!==a.type&&"DROP_ANIMATION_FINISHED"!==a.type||(i&&(cancelAnimationFrame(i),i=null),e&&(e(),e=null)),o(a),"DROP_ANIMATE"===a.type){var l={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===t.getState().phase&&t.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};i=requestAnimationFrame(function(){i=null,e=zp(window,[l])})}}}},Xh=function(t){return function(e){return function(i){if(e(i),"PUBLISH_WHILE_DRAGGING"===i.type){var o=t.getState();"DROP_PENDING"===o.phase&&(o.isWaiting||t.dispatch(kh({reason:o.reason})))}}}},Bh=Wu,Eh=function(t){var e=t.scrollHeight,i=t.scrollWidth,o=t.height,a=t.width,l=Fp({x:i,y:e},{x:a,y:o});return{ | |
| 1981 | +x:Math.max(0,l.x),y:Math.max(0,l.y)}},Fh=function(){var t=document.documentElement;return t||Ap(!1),t},qh=function(){var t=Fh();return Eh({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,width:t.clientWidth,height:t.clientHeight})};function $h(t,e,i){return i.descriptor.id!==e.id&&i.descriptor.type===e.type&&"virtual"===t.droppable.getById(i.descriptor.droppableId).descriptor.mode}var Gh,Zh,Kh=function(t,e){var i=null,o=function(t){var e=t.registry,i=t.callbacks,o={additions:{},removals:{},modified:{}},a=null,l=function(){a||(i.collectionStarting(),a=requestAnimationFrame(function(){a=null;var t=o,l=t.additions,n=t.removals,s=t.modified,r=Object.keys(l).map(function(t){return e.draggable.getById(t).getDimension(Bp)}).sort(function(t,e){return t.descriptor.index-e.descriptor.index}),b=Object.keys(s).map(function(t){return{droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}}),c={additions:r,removals:Object.keys(n),modified:b};o={additions:{},removals:{}, | |
| 1982 | +modified:{}},i.publish(c)}))};return{add:function(t){var e=t.descriptor.id;o.additions[e]=t,o.modified[t.descriptor.droppableId]=!0,o.removals[e]&&delete o.removals[e],l()},remove:function(t){var e=t.descriptor;o.removals[e.id]=!0,o.modified[e.droppableId]=!0,o.additions[e.id]&&delete o.additions[e.id],l()},stop:function(){a&&(cancelAnimationFrame(a),a=null,o={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:e.publishWhileDragging,collectionStarting:e.collectionStarting},registry:t}),a=function(e){i||Ap(!1);var a=i.critical.draggable;"ADDITION"===e.type&&$h(t,a,e.value)&&o.add(e.value),"REMOVAL"===e.type&&$h(t,a,e.value)&&o.remove(e.value)},l={updateDroppableIsEnabled:function(o,a){t.droppable.exists(o)||Ap(!1),i&&e.updateDroppableIsEnabled({id:o,isEnabled:a})},updateDroppableIsCombineEnabled:function(o,a){i&&(t.droppable.exists(o)||Ap(!1),e.updateDroppableIsCombineEnabled({id:o,isCombineEnabled:a}))},scrollDroppable:function(e,o){ | |
| 1983 | +i&&t.droppable.getById(e).callbacks.scroll(o)},updateDroppableScroll:function(o,a){i&&(t.droppable.exists(o)||Ap(!1),e.updateDroppableScroll({id:o,newScroll:a}))},startPublishing:function(e){i&&Ap(!1);var o=t.draggable.getById(e.draggableId),l=t.droppable.getById(o.descriptor.droppableId),n={draggable:o.descriptor,droppable:l.descriptor},s=t.subscribe(a);return i={critical:n,unsubscribe:s},function(t){var e=t.critical,i=t.scrollOptions,o=t.registry,a=function(){var t=Ah(),e=qh(),i=t.y,o=t.x,a=Fh(),l=a.clientWidth,n=a.clientHeight;return{frame:hp({top:i,left:o,right:o+l,bottom:i+n}),scroll:{initial:t,current:t,max:e,diff:{value:Bp,displacement:Bp}}}}(),l=a.scroll.current,n=e.droppable,s=o.droppable.getAllByType(n.type).map(function(t){return t.callbacks.getDimensionAndWatchScroll(l,i)}),r=o.draggable.getAllByType(e.draggable.type).map(function(t){return t.getDimension(l)});return{dimensions:{draggables:bm(r),droppables:rm(s)},critical:e,viewport:a}}({critical:n,registry:t, | |
| 1984 | +scrollOptions:e.scrollOptions})},stopPublishing:function(){if(i){o.stop();var e=i.critical.droppable;t.droppable.getAllByType(e.type).forEach(function(t){return t.callbacks.dragStopped()}),i.unsubscribe(),i=null}}};return l},Jh=function(t,e){return"IDLE"===t.phase||"DROP_ANIMATING"===t.phase&&t.completed.result.draggableId!==e&&"DROP"===t.completed.result.reason},Qh=function(t){window.scrollBy(t.x,t.y)},tg=Wp(function(t){return cm(t).filter(function(t){return!!t.isEnabled&&!!t.frame})}),eg=function(t){return Math.pow(t,2)},ig=function(t){var e=t.startOfRange,i=t.endOfRange,o=t.current,a=i-e;return 0===a?0:(o-e)/a},og=360,ag=1200,lg=function(t){var e=t.distanceToEdge,i=t.thresholds,o=t.dragStartTime,a=t.shouldUseTimeDampening,l=function(t,e){if(t>e.startScrollingFrom)return 0;if(t<=e.maxScrollValueAt)return 28;if(t===e.startScrollingFrom)return 1;var i=ig({startOfRange:e.maxScrollValueAt,endOfRange:e.startScrollingFrom,current:t}),o=28*eg(1-i);return Math.ceil(o)}(e,i) | |
| 1985 | +;return 0===l?0:a?Math.max(function(t,e){var i=e,o=ag,a=Date.now()-i;if(a>=ag)return t;if(a<og)return 1;var l=ig({startOfRange:og,endOfRange:o,current:a}),n=t*eg(l);return Math.ceil(n)}(l,o),1):l},ng=function(t){var e=t.container,i=t.distanceToEdges,o=t.dragStartTime,a=t.axis,l=t.shouldUseTimeDampening,n=function(t,e){return{startScrollingFrom:.25*t[e.size],maxScrollValueAt:.05*t[e.size]}}(e,a);return i[a.end]<i[a.start]?lg({distanceToEdge:i[a.end],thresholds:n,dragStartTime:o,shouldUseTimeDampening:l}):-1*lg({distanceToEdge:i[a.start],thresholds:n,dragStartTime:o,shouldUseTimeDampening:l})},sg=Jp(function(t){return 0===t?0:t}),rg=function(t){var e=t.dragStartTime,i=t.container,o=t.subject,a=t.center,l=t.shouldUseTimeDampening,n={top:a.y-i.top,right:i.right-a.x,bottom:i.bottom-a.y,left:a.x-i.left},s=ng({container:i,distanceToEdges:n,dragStartTime:e,axis:km,shouldUseTimeDampening:l}),r=ng({container:i,distanceToEdges:n,dragStartTime:e,axis:vm,shouldUseTimeDampening:l}),b=sg({x:r,y:s}) | |
| 1986 | +;if(qp(b,Bp))return null;var c=function(t){var e=t.container,i=t.subject,o=t.proposedScroll,a=i.height>e.height,l=i.width>e.width;return l||a?l&&a?null:{x:l?0:o.x,y:a?0:o.y}:o}({container:i,subject:o,proposedScroll:b});return c?qp(c,Bp)?null:c:null},bg=Jp(function(t){return 0===t?0:t>0?1:-1}),cg=(Gh=function(t,e){return t<0?t:t>e?t-e:0},function(t){var e=t.current,i=t.max,o=t.change,a=Ep(e,o),l={x:Gh(a.x,i.x),y:Gh(a.y,i.y)};return qp(l,Bp)?null:l}),dg=function(t){var e=t.max,i=t.current,o=t.change,a={x:Math.max(i.x,e.x),y:Math.max(i.y,e.y)},l=bg(o),n=cg({max:a,current:i,change:l});return!n||0!==l.x&&0===n.x||0!==l.y&&0===n.y},ug=function(t,e){return dg({current:t.scroll.current,max:t.scroll.max,change:e})},pg=function(t,e){var i=t.frame;return!!i&&dg({current:i.scroll.current,max:i.scroll.max,change:e})},mg=function(t){ | |
| 1987 | +var e=t.state,i=t.dragStartTime,o=t.shouldUseTimeDampening,a=t.scrollWindow,l=t.scrollDroppable,n=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){var r=function(t){var e=t.viewport,i=t.subject,o=t.center,a=t.shouldUseTimeDampening,l=rg({dragStartTime:t.dragStartTime,container:e.frame,subject:i,center:o,shouldUseTimeDampening:a});return l&&ug(e,l)?l:null}({dragStartTime:i,viewport:e.viewport,subject:s,center:n,shouldUseTimeDampening:o});if(r)return void a(r)}var b=function(t){var e=t.center,i=t.destination,o=t.droppables;if(i){var a=o[i];return a.frame?a:null}var l=function(t,e){var i=nm(tg(e),function(e){return e.frame||Ap(!1),Km(e.frame.pageMarginBox)(t)});return i}(e,o);return l}({center:n,destination:$m(e.impact),droppables:e.dimensions.droppables});if(b){var c=function(t){var e=t.droppable,i=t.subject,o=t.center,a=t.dragStartTime,l=t.shouldUseTimeDampening,n=e.frame;if(!n)return null;var s=rg({ | |
| 1988 | +dragStartTime:a,container:n.pageMarginBox,subject:i,center:o,shouldUseTimeDampening:l});return s&&pg(e,s)?s:null}({dragStartTime:i,droppable:b,subject:s,center:n,shouldUseTimeDampening:o});c&&l(b.descriptor.id,c)}},hg=function(t){var e=t.move,i=t.scrollDroppable,o=t.scrollWindow;return function(t){var a=t.scrollJumpRequest;if(a){var l=$m(t.impact);l||Ap(!1);var n=function(t,e){if(!pg(t,e))return e;var o=function(t,e){var i=t.frame;return i&&pg(t,e)?cg({current:i.scroll.current,max:i.scroll.max,change:e}):null}(t,e);if(!o)return i(t.descriptor.id,e),null;var a=Fp(e,o);return i(t.descriptor.id,a),Fp(e,a)}(t.dimensions.droppables[l],a);if(n){var s=t.viewport,r=function(t,e,i){if(!t)return i;if(!ug(e,i))return i;var a=function(t,e){if(!ug(t,e))return null;var i=t.scroll.max,o=t.scroll.current;return cg({current:o,max:i,change:e})}(e,i);if(!a)return o(i),null;var l=Fp(i,a);return o(l),Fp(i,l)}(t.isWindowScrollAllowed,s,n);r&&function(t,i){var o=Ep(t.current.client.selection,i);e({client:o}) | |
| 1989 | +}(t,r)}}}},gg="data-rbd",fg={base:Zh=gg+"-drag-handle",draggableId:Zh+"-draggable-id",contextId:Zh+"-context-id"},yg=function(){var t=gg+"-draggable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),Tg=function(){var t=gg+"-droppable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),Hg={contextId:gg+"-scroll-container-context-id"},Mg=function(t,e){return t.map(function(t){var i=t.styles[e];return i?t.selector+" { "+i+" }":""}).join(" ")},xg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,kg=function(){var t=document.querySelector("head");return t||Ap(!1),t},vg=function(t){var e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.type="text/css",e};var _g=function(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:window};function Rg(t){return t instanceof _g(t).HTMLElement}function Sg(){var t={draggables:{},droppables:{}},e=[];function i(t){e.length&&e.forEach(function(e){ | |
| 1990 | +return e(t)})}function o(e){return t.draggables[e]||null}function a(e){return t.droppables[e]||null}return{draggable:{register:function(e){t.draggables[e.descriptor.id]=e,i({type:"ADDITION",value:e})},update:function(e,i){var o=t.draggables[i.descriptor.id];o&&o.uniqueId===e.uniqueId&&(delete t.draggables[i.descriptor.id],t.draggables[e.descriptor.id]=e)},unregister:function(e){var a=e.descriptor.id,l=o(a);l&&e.uniqueId===l.uniqueId&&(delete t.draggables[a],i({type:"REMOVAL",value:e}))},getById:function(t){var e=o(t);return e||Ap(!1),e},findById:o,exists:function(t){return Boolean(o(t))},getAllByType:function(e){return am(t.draggables).filter(function(t){return t.descriptor.type===e})}},droppable:{register:function(e){t.droppables[e.descriptor.id]=e},unregister:function(e){var i=a(e.descriptor.id);i&&e.uniqueId===i.uniqueId&&delete t.droppables[e.descriptor.id]},getById:function(t){var e=a(t);return e||Ap(!1),e},findById:a,exists:function(t){return Boolean(a(t))}, | |
| 1991 | +getAllByType:function(e){return am(t.droppables).filter(function(t){return t.descriptor.type===e})}},subscribe:function(t){return e.push(t),function(){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}},clean:function(){t.draggables={},t.droppables={},e.length=0}}}var Wg=l().createContext(null),Pg=function(){var t=document.body;return t||Ap(!1),t},Ug={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jg=0,wg={separator:"::"};function zg(t,e){return void 0===e&&(e=wg),pp(function(){return""+t+e.separator+jg++},[e.separator,t])}var Cg=l().createContext(null);function Ag(t){var e=(0,a.useRef)(t);return(0,a.useEffect)(function(){e.current=t}),e}var Lg,Dg,Ng=((Lg={})[13]=!0,Lg[9]=!0,Lg),Ig=function(t){Ng[t.keyCode]&&t.preventDefault()},Vg=function(){var t="visibilitychange";return"undefined"==typeof document?t:nm([t,"ms"+t,"webkit"+t,"moz"+t,"o"+t],function(t){return"on"+t in document})||t}(),Og={ | |
| 1992 | +type:"IDLE"};function Yg(){}var Xg=((Dg={})[34]=!0,Dg[33]=!0,Dg[36]=!0,Dg[35]=!0,Dg);var Bg={type:"IDLE"},Eg={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Fg(t,e){if(null==e)return!1;if(Boolean(Eg[e.tagName.toLowerCase()]))return!0;var i=e.getAttribute("contenteditable");return"true"===i||""===i||e!==t&&Fg(t,e.parentElement)}function qg(t,e){var i=e.target;return!!Rg(i)&&Fg(t,i)}var $g=function(t){return hp(t.getBoundingClientRect()).center},Gg=function(){var t="matches";return"undefined"==typeof document?t:nm([t,"msMatchesSelector","webkitMatchesSelector"],function(t){return t in Element.prototype})||t}();function Zg(t,e){return null==t?null:t[Gg](e)?t:Zg(t.parentElement,e)}function Kg(t,e){return t.closest?t.closest(e):Zg(t,e)}function Jg(t){t.preventDefault()}function Qg(t){var e=t.expected,i=t.phase,o=t.isLockActive;return t.shouldWarn,!!o()&&e===i}function tf(t){var e=t.lockAPI,i=t.store,o=t.registry,a=t.draggableId | |
| 1993 | +;if(e.isClaimed())return!1;var l=o.draggable.findById(a);return!!l&&!!l.options.isEnabled&&!!Jh(i.getState(),a)}var ef=[function(t){var e=(0,a.useRef)(Og),i=(0,a.useRef)(jp),o=pp(function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var o=t.findClosestDraggableId(e);if(o){var a=t.tryGetLock(o,s,{sourceEvent:e});if(a){e.preventDefault();var l={x:e.clientX,y:e.clientY};i.current(),c(a,l)}}}}}},[t]),l=pp(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var i=t.findClosestDraggableId(e);if(i){var o=t.findOptionsForDraggable(i);o&&(o.shouldRespectForcePress||t.canGetLock(i)&&e.preventDefault())}}}}},[t]),n=mp(function(){i.current=zp(window,[l,o],{passive:!1,capture:!0})},[l,o]),s=mp(function(){"IDLE"!==e.current.type&&(e.current=Og,i.current(),n())},[n]),r=mp(function(){var t=e.current;s(),"DRAGGING"===t.type&&t.actions.cancel({shouldBlockNextClick:!0}), | |
| 1994 | +"PENDING"===t.type&&t.actions.abort()},[s]),b=mp(function(){var t=function(t){var e=t.cancel,i=t.completed,o=t.getPhase,a=t.setPhase;return[{eventName:"mousemove",fn:function(t){var e,i,l=t.button,n=t.clientX,s=t.clientY;if(0===l){var r={x:n,y:s},b=o();if("DRAGGING"===b.type)return t.preventDefault(),void b.actions.move(r);if("PENDING"!==b.type&&Ap(!1),e=b.point,i=r,Math.abs(i.x-e.x)>=5||Math.abs(i.y-e.y)>=5){t.preventDefault();var c=b.actions.fluidLift(r);a({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(t){var a=o();"DRAGGING"===a.type?(t.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),i()):e()}},{eventName:"mousedown",fn:function(t){"DRAGGING"===o().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:function(t){if("PENDING"!==o().type)return 27===t.keyCode?(t.preventDefault(),void e()):void Ig(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===o().type&&e()}},{ | |
| 1995 | +eventName:"webkitmouseforcedown",fn:function(t){var i=o();"IDLE"===i.type&&Ap(!1),i.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:Vg,fn:e}]}({cancel:r,completed:s,getPhase:function(){return e.current},setPhase:function(t){e.current=t}});i.current=zp(window,t,{capture:!0,passive:!1})},[r,s]),c=mp(function(t,i){"IDLE"!==e.current.type&&Ap(!1),e.current={type:"PENDING",point:i,actions:t},b()},[b]);xg(function(){return n(),function(){i.current()}},[n])},function(t){var e=(0,a.useRef)(Yg),i=pp(function(){return{eventName:"keydown",fn:function(i){if(!i.defaultPrevented&&32===i.keyCode){var a=t.findClosestDraggableId(i);if(a){var l=t.tryGetLock(a,r,{sourceEvent:i});if(l){i.preventDefault();var n=!0,s=l.snapLift();e.current(),e.current=zp(window,function(t,e){function i(){e(),t.cancel()}return[{eventName:"keydown",fn:function(o){return 27===o.keyCode?(o.preventDefault(),void i()):32===o.keyCode?(o.preventDefault(),e(),void t.drop()):40===o.keyCode?(o.preventDefault(), | |
| 1996 | +void t.moveDown()):38===o.keyCode?(o.preventDefault(),void t.moveUp()):39===o.keyCode?(o.preventDefault(),void t.moveRight()):37===o.keyCode?(o.preventDefault(),void t.moveLeft()):void(Xg[o.keyCode]?o.preventDefault():Ig(o))}},{eventName:"mousedown",fn:i},{eventName:"mouseup",fn:i},{eventName:"click",fn:i},{eventName:"touchstart",fn:i},{eventName:"resize",fn:i},{eventName:"wheel",fn:i,options:{passive:!0}},{eventName:Vg,fn:i}]}(s,r),{capture:!0,passive:!1})}}}function r(){n||Ap(!1),n=!1,e.current(),o()}}}},[t]),o=mp(function(){e.current=zp(window,[i],{passive:!1,capture:!0})},[i]);xg(function(){return o(),function(){e.current()}},[o])},function(t){var e=(0,a.useRef)(Bg),i=(0,a.useRef)(jp),o=mp(function(){return e.current},[]),l=mp(function(t){e.current=t},[]),n=pp(function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var o=t.findClosestDraggableId(e);if(o){var a=t.tryGetLock(o,r,{sourceEvent:e});if(a){var l=e.touches[0],n={x:l.clientX,y:l.clientY};i.current(), | |
| 1997 | +u(a,n)}}}}}},[t]),s=mp(function(){i.current=zp(window,[n],{capture:!0,passive:!1})},[n]),r=mp(function(){var t=e.current;"IDLE"!==t.type&&("PENDING"===t.type&&clearTimeout(t.longPressTimerId),l(Bg),i.current(),s())},[s,l]),b=mp(function(){var t=e.current;r(),"DRAGGING"===t.type&&t.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===t.type&&t.actions.abort()},[r]),c=mp(function(){var t={capture:!0,passive:!1},e={cancel:b,completed:r,getPhase:o},a=zp(window,function(t){var e=t.cancel,i=t.completed,o=t.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(t){var i=o();if("DRAGGING"===i.type){i.hasMoved=!0;var a=t.touches[0],l={x:a.clientX,y:a.clientY};t.preventDefault(),i.actions.move(l)}else e()}},{eventName:"touchend",fn:function(t){var a=o();"DRAGGING"===a.type?(t.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),i()):e()}},{eventName:"touchcancel",fn:function(t){"DRAGGING"===o().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange", | |
| 1998 | +fn:function(t){var i=o();"IDLE"===i.type&&Ap(!1);var a=t.touches[0];if(a&&a.force>=.15){var l=i.actions.shouldRespectForcePress();if("PENDING"!==i.type)return l?i.hasMoved?void t.preventDefault():void e():void t.preventDefault();l&&e()}}},{eventName:Vg,fn:e}]}(e),t),l=zp(window,function(t){var e=t.cancel,i=t.getPhase;return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:function(t){t.preventDefault()}},{eventName:"keydown",fn:function(t){"DRAGGING"===i().type?(27===t.keyCode&&t.preventDefault(),e()):e()}},{eventName:Vg,fn:e}]}(e),t);i.current=function(){a(),l()}},[b,o,r]),d=mp(function(){var t=o();"PENDING"!==t.type&&Ap(!1);var e=t.actions.fluidLift(t.point);l({type:"DRAGGING",actions:e,hasMoved:!1})},[o,l]),u=mp(function(t,e){"IDLE"!==o().type&&Ap(!1);var i=setTimeout(d,120);l({type:"PENDING",point:e,actions:t,longPressTimerId:i}),c()},[c,o,l,d]);xg(function(){return s(),function(){i.current();var t=o() | |
| 1999 | +;"PENDING"===t.type&&(clearTimeout(t.longPressTimerId),l(Bg))}},[o,s,l]),xg(function(){return zp(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}];function of(t){var e=t.contextId,i=t.store,o=t.registry,l=t.customSensors,n=t.enableDefaultSensors,s=[].concat(n?ef:[],l||[]),r=(0,a.useState)(function(){return function(){var t=null;function e(){t||Ap(!1),t=null}return{isClaimed:function(){return Boolean(t)},isActive:function(e){return e===t},claim:function(e){t&&Ap(!1);var i={abandon:e};return t=i,i},release:e,tryAbandon:function(){t&&(t.abandon(),e())}}}()})[0],b=mp(function(t,e){t.isDragging&&!e.isDragging&&r.tryAbandon()},[r]);xg(function(){var t=i.getState();return i.subscribe(function(){var e=i.getState();b(t,e),t=e})},[r,i,b]),xg(function(){return r.tryAbandon},[r.tryAbandon]);for(var c=mp(function(t){return tf({lockAPI:r,registry:o,store:i,draggableId:t})},[r,o,i]),d=mp(function(t,a,l){return function(t){ | |
| 2000 | +var e=t.lockAPI,i=t.contextId,o=t.store,a=t.registry,l=t.draggableId,n=t.forceSensorStop,s=t.sourceEvent;if(!tf({lockAPI:e,store:o,registry:a,draggableId:l}))return null;var r=a.draggable.getById(l),b=function(t,e){var i="["+yg.contextId+'="'+t+'"]',o=nm(sm(document.querySelectorAll(i)),function(t){return t.getAttribute(yg.id)===e});return o&&Rg(o)?o:null}(i,r.descriptor.id);if(!b)return null;if(s&&!r.options.canDragInteractiveElements&&qg(b,s))return null;var c=e.claim(n||jp),d="PRE_DRAG";function u(){return r.options.shouldRespectForcePress}function p(){return e.isActive(c)}var m=function(t,e){Qg({expected:t,phase:d,isLockActive:p,shouldWarn:!0})&&o.dispatch(e())}.bind(null,"DRAGGING");function h(t){function i(){e.release(),d="COMPLETED"}function a(e,a){if(void 0===a&&(a={shouldBlockNextClick:!1}),t.cleanup(),a.shouldBlockNextClick){var l=zp(window,[{eventName:"click",fn:Jg,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(l)}i(),o.dispatch(kh({reason:e}))} | |
| 2001 | +return"PRE_DRAG"!==d&&(i(),"PRE_DRAG"!==d&&Ap(!1)),o.dispatch(function(t){return{type:"LIFT",payload:t}}(t.liftActionArgs)),d="DRAGGING",(0,ve.A)({isActive:function(){return Qg({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:u,drop:function(t){return a("DROP",t)},cancel:function(t){return a("CANCEL",t)}},t.actions)}var g={isActive:function(){return Qg({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:u,fluidLift:function(t){var e=Pp(function(t){m(function(){return fh({client:t})})}),i=h({liftActionArgs:{id:l,clientSelection:t,movementMode:"FLUID"},cleanup:function(){return e.cancel()},actions:{move:e}});return(0,ve.A)({},i,{move:e})},snapLift:function(){var t={moveUp:function(){return m(yh)},moveRight:function(){return m(Hh)},moveDown:function(){return m(Th)},moveLeft:function(){return m(Mh)}};return h({liftActionArgs:{id:l,clientSelection:$g(b),movementMode:"SNAP"},cleanup:jp,actions:t})},abort:function(){Qg({ | |
| 2002 | +expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&e.release()}};return g}({lockAPI:r,registry:o,contextId:e,store:i,draggableId:t,forceSensorStop:a,sourceEvent:l&&l.sourceEvent?l.sourceEvent:null})},[e,r,o,i]),u=mp(function(t){return function(t,e){var i=function(t,e){var i,o=e.target;if(!((i=o)instanceof _g(i).Element))return null;var a=function(t){return"["+fg.contextId+'="'+t+'"]'}(t),l=Kg(o,a);return l&&Rg(l)?l:null}(t,e);return i?i.getAttribute(fg.draggableId):null}(e,t)},[e]),p=mp(function(t){var e=o.draggable.findById(t);return e?e.options:null},[o.draggable]),m=mp(function(){r.isClaimed()&&(r.tryAbandon(),"IDLE"!==i.getState().phase&&i.dispatch({type:"FLUSH",payload:null}))},[r,i]),h=mp(r.isClaimed,[r]),g=pp(function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:u,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}},[c,d,u,p,m,h]),f=0;f<s.length;f++)s[f](g)}function af(t){return t.current||Ap(!1),t.current}function lf(t){ | |
| 2003 | +var e=t.contextId,i=t.setCallbacks,o=t.sensors,n=t.nonce,s=t.dragHandleUsageInstructions,r=(0,a.useRef)(null),b=Ag(t),c=mp(function(){return function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}}(b.current)},[b]),d=function(t){var e=pp(function(){return function(t){return"rbd-announcement-"+t}(t)},[t]),i=(0,a.useRef)(null);return(0,a.useEffect)(function(){var t=document.createElement("div");return i.current=t,t.id=e,t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),(0,ve.A)(t.style,Ug),Pg().appendChild(t),function(){setTimeout(function(){var e=Pg();e.contains(t)&&e.removeChild(t),t===i.current&&(i.current=null)})}},[e]),mp(function(t){var e=i.current;e&&(e.textContent=t)},[])}(e),u=function(t){var e=t.contextId,i=t.text,o=zg("hidden-text",{separator:"-"}),l=pp(function(){return function(t){return"rbd-hidden-text-"+t.contextId+"-"+t.uniqueId}({ | |
| 2004 | +contextId:e,uniqueId:o})},[o,e]);return(0,a.useEffect)(function(){var t=document.createElement("div");return t.id=l,t.textContent=i,t.style.display="none",Pg().appendChild(t),function(){var e=Pg();e.contains(t)&&e.removeChild(t)}},[l,i]),l}({contextId:e,text:s}),p=function(t,e){var i=pp(function(){return function(t){var e,i,o,a=(e=t,function(t){return"["+t+'="'+e+'"]'}),l=(i="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:a(fg.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:i,dragging:"pointer-events: none;",dropAnimating:i}}),n=[(o="\n transition: "+Ph.outOfTheWay+";\n ",{selector:a(yg.contextId),styles:{dragging:o,dropAnimating:o,userCancel:o}}),l,{selector:a(Tg.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{ | |
| 2005 | +dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Mg(n,"always"),resting:Mg(n,"resting"),dragging:Mg(n,"dragging"),dropAnimating:Mg(n,"dropAnimating"),userCancel:Mg(n,"userCancel")}}(t)},[t]),o=(0,a.useRef)(null),l=(0,a.useRef)(null),n=mp(Wp(function(t){var e=l.current;e||Ap(!1),e.textContent=t}),[]),s=mp(function(t){var e=o.current;e||Ap(!1),e.textContent=t},[]);xg(function(){(o.current||l.current)&&Ap(!1);var a=vg(e),r=vg(e);return o.current=a,l.current=r,a.setAttribute(gg+"-always",t),r.setAttribute(gg+"-dynamic",t),kg().appendChild(a),kg().appendChild(r),s(i.always),n(i.resting),function(){var t=function(t){var e=t.current;e||Ap(!1),kg().removeChild(e),t.current=null};t(o),t(l)}},[e,s,n,i.always,i.resting,t]);var r=mp(function(){return n(i.dragging) | |
| 2006 | +},[n,i.dragging]),b=mp(function(t){n("DROP"!==t?i.userCancel:i.dropAnimating)},[n,i.dropAnimating,i.userCancel]),c=mp(function(){l.current&&n(i.resting)},[n,i.resting]);return pp(function(){return{dragging:r,dropping:b,resting:c}},[r,b,c])}(e,n),m=mp(function(t){af(r).dispatch(t)},[]),h=pp(function(){return Su({publishWhileDragging:uh,updateDroppableScroll:mh,updateDroppableIsEnabled:hh,updateDroppableIsCombineEnabled:gh,collectionStarting:ph},m)},[m]),g=function(){var t=pp(Sg,[]);return(0,a.useEffect)(function(){return function(){requestAnimationFrame(t.clean)}},[t]),t}(),f=pp(function(){return Kh(g,h)},[g,h]),y=pp(function(){return function(t){var e=t.scrollDroppable,i=t.scrollWindow,o=t.move,a=function(t){var e=t.scrollDroppable,i=Pp(t.scrollWindow),o=Pp(e),a=null,l=function(t){a||Ap(!1);var e=a,l=e.shouldUseTimeDampening,n=e.dragStartTime;mg({state:t,scrollWindow:i,scrollDroppable:o,dragStartTime:n,shouldUseTimeDampening:l})};return{start:function(t){a&&Ap(!1) | |
| 2007 | +;var e=Date.now(),i=!1,o=function(){i=!0};mg({state:t,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o}),a={dragStartTime:e,shouldUseTimeDampening:i},i&&l(t)},stop:function(){a&&(i.cancel(),o.cancel(),a=null)},scroll:l}}({scrollWindow:i,scrollDroppable:e}),l=hg({move:o,scrollWindow:i,scrollDroppable:e});return{scroll:function(t){"DRAGGING"===t.phase&&("FLUID"!==t.movementMode?t.scrollJumpRequest&&l(t):a.scroll(t))},start:a.start,stop:a.stop}}((0,ve.A)({scrollWindow:Qh,scrollDroppable:f.scrollDroppable},Su({move:fh},m)))},[f.scrollDroppable,m]),T=function(t){var e=(0,a.useRef)({}),i=(0,a.useRef)(null),o=(0,a.useRef)(null),l=(0,a.useRef)(!1),n=mp(function(t,i){var o={id:t,focus:i};return e.current[t]=o,function(){var i=e.current;i[t]!==o&&delete i[t]}},[]),s=mp(function(e){var i=function(t,e){var i="["+fg.contextId+'="'+t+'"]',o=sm(document.querySelectorAll(i));if(!o.length)return null;var a=nm(o,function(t){return t.getAttribute(fg.draggableId)===e}) | |
| 2008 | +;return a&&Rg(a)?a:null}(t,e);i&&i!==document.activeElement&&i.focus()},[t]),r=mp(function(t,e){i.current===t&&(i.current=e)},[]),b=mp(function(){o.current||l.current&&(o.current=requestAnimationFrame(function(){o.current=null;var t=i.current;t&&s(t)}))},[s]),c=mp(function(t){i.current=null;var e=document.activeElement;e&&e.getAttribute(fg.draggableId)===t&&(i.current=t)},[]);return xg(function(){return l.current=!0,function(){l.current=!1;var t=o.current;t&&cancelAnimationFrame(t)}},[]),pp(function(){return{register:n,tryRecordFocus:c,tryRestoreFocusRecorded:b,tryShiftRecord:r}},[n,c,b,r])}(e),H=pp(function(){return function(t){var e,i=t.dimensionMarshal,o=t.focusMarshal,a=t.styleMarshal,l=t.getResponders,n=t.announce,s=t.autoScroller;return _u(dh,Bh(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(Mu(15))},a={getState:i.getState,dispatch:function(){ | |
| 2009 | +return o.apply(void 0,arguments)}},l=e.map(function(t){return t(a)});return o=Wu.apply(void 0,l)(i.dispatch),fe(fe({},i),{},{dispatch:o})}}}((e=a,function(){return function(t){return function(i){"INITIAL_PUBLISH"===i.type&&e.dragging(),"DROP_ANIMATE"===i.type&&e.dropping(i.payload.completed.result.reason),"FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type||e.resting(),t(i)}}}),function(t){return function(){return function(e){return function(i){"DROP_COMPLETE"!==i.type&&"FLUSH"!==i.type&&"DROP_ANIMATE"!==i.type||t.stopPublishing(),e(i)}}}}(i),function(t){return function(e){var i=e.getState,o=e.dispatch;return function(e){return function(a){if("LIFT"===a.type){var l=a.payload,n=l.id,s=l.clientSelection,r=l.movementMode,b=i();"DROP_ANIMATING"===b.phase&&o(xh({completed:b.completed})),"IDLE"!==i().phase&&Ap(!1),o({type:"FLUSH",payload:null}),o({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:n,movementMode:r}});var c={draggableId:n,scrollOptions:{shouldPublishImmediately:"SNAP"===r} | |
| 2010 | +},d=t.startPublishing(c),u=d.critical,p=d.dimensions,m=d.viewport;o({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:p,clientSelection:s,movementMode:r,viewport:m}})}else e(a)}}}}(i),Ch,Oh,Yh,Xh,function(t){return function(e){return function(i){return function(o){if(function(t){return"DROP_COMPLETE"===t.type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type}(o))return t.stop(),void i(o);if("INITIAL_PUBLISH"===o.type){i(o);var a=e.getState();return"DRAGGING"!==a.phase&&Ap(!1),void t.start(a)}i(o),t.scroll(e.getState())}}}}(s),Lh,function(t){var e=!1;return function(){return function(i){return function(o){if("INITIAL_PUBLISH"===o.type)return e=!0,t.tryRecordFocus(o.payload.critical.draggable.id),i(o),void t.tryRestoreFocusRecorded();if(i(o),e){if("FLUSH"===o.type)return e=!1,void t.tryRestoreFocusRecorded();if("DROP_COMPLETE"===o.type){e=!1;var a=o.payload.completed.result;a.combine&&t.tryShiftRecord(a.draggableId,a.combine.draggableId),t.tryRestoreFocusRecorded()}}}}}}(o),Vh(l,n))))}({ | |
| 2011 | +announce:d,autoScroller:y,dimensionMarshal:f,focusMarshal:T,getResponders:c,styleMarshal:p})},[d,y,f,T,c,p]);r.current=H;var M=mp(function(){var t=af(r);"IDLE"!==t.getState().phase&&t.dispatch({type:"FLUSH",payload:null})},[]),x=mp(function(){var t=af(r).getState();return t.isDragging||"DROP_ANIMATING"===t.phase},[]);i(pp(function(){return{isDragging:x,tryAbort:M}},[x,M]));var k=mp(function(t){return Jh(af(r).getState(),t)},[]),v=mp(function(){return Zm(af(r).getState())},[]),_=pp(function(){return{marshal:f,focus:T,contextId:e,canLift:k,isMovementAllowed:v,dragHandleUsageInstructionsId:u,registry:g}},[e,f,u,T,k,v,g]);return of({contextId:e,store:H,registry:g,customSensors:o,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,a.useEffect)(function(){return M},[M]),l().createElement(Cg.Provider,{value:_},l().createElement(Au,{context:Wg,store:H},t.children))}var nf=0;function sf(t){var e=pp(function(){return""+nf++ | |
| 2012 | +},[]),i=t.dragHandleUsageInstructions||"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";return l().createElement(Lp,null,function(o){return l().createElement(lf,{nonce:t.nonce,contextId:e,setCallbacks:o,dragHandleUsageInstructions:i,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd},t.children)})}var rf=function(t){return function(e){return t===e}},bf=rf("scroll"),cf=rf("auto"),df=(rf("visible"),function(t,e){return e(t.overflowX)||e(t.overflowY)}),uf=function t(e){return null==e||e===document.body||e===document.documentElement?null:function(t){var e=window.getComputedStyle(t),i={overflowX:e.overflowX,overflowY:e.overflowY};return df(i,bf)||df(i,cf) | |
| 2013 | +}(e)?e:t(e.parentElement)},pf=function(t){return{x:t.scrollLeft,y:t.scrollTop}},mf=function t(e){return!!e&&("fixed"===window.getComputedStyle(e).position||t(e.parentElement))},hf={passive:!1},gf={passive:!0},ff=function(t){return t.shouldPublishImmediately?hf:gf};function yf(t){var e=(0,a.useContext)(t);return e||Ap(!1),e}var Tf=function(t){return t&&t.env.closestScrollable||null};function Hf(){}var Mf={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},xf=l().memo(function(t){var e=(0,a.useRef)(null),i=mp(function(){e.current&&(clearTimeout(e.current),e.current=null)},[]),o=t.animate,n=t.onTransitionEnd,s=t.onClose,r=t.contextId,b=(0,a.useState)("open"===t.animate),c=b[0],d=b[1];(0,a.useEffect)(function(){return c?"open"!==o?(i(),d(!1),Hf):e.current?Hf:(e.current=setTimeout(function(){e.current=null,d(!1)}),i):Hf},[o,c,i]);var u=mp(function(t){"height"===t.propertyName&&(n(),"close"===o&&s())},[o,s,n]),p=function(t){ | |
| 2014 | +var e=t.isAnimatingOpenOnMount,i=t.placeholder,o=t.animate,a=function(t){var e=t.placeholder;return t.isAnimatingOpenOnMount||"close"===t.animate?Mf:{height:e.client.borderBox.height,width:e.client.borderBox.width,margin:e.client.margin}}({isAnimatingOpenOnMount:e,placeholder:i,animate:o});return{display:i.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==o?Ph.placeholder:null}}({isAnimatingOpenOnMount:c,animate:t.animate,placeholder:t.placeholder});return l().createElement(t.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":r,onTransitionEnd:u,ref:t.innerRef})}),kf=l().createContext(null),vf=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))||this).state={isVisible:Boolean(e.props.on),data:e.props.on, | |
| 2015 | +animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return Hu(e,t),e.getDerivedStateFromProps=function(t,e){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:e.isVisible?{isVisible:!0,data:e.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(t.on),data:t.on,animate:"none"}},e.prototype.render=function(){if(!this.state.isVisible)return null;var t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)},e}(l().PureComponent),_f=function(t,e){return e?Ph.drop(e.duration):t?Ph.snap:Ph.fluid},Rf=function(t,e){return t?e?_h:Rh:null};function Sf(t){return"DRAGGING"===t.type?function(t){var e=t.dimension.client,i=t.offset,o=t.combineWith,a=t.dropping,l=Boolean(o),n=function(t){return null!=t.forceShouldAnimate?t.forceShouldAnimate:"SNAP"===t.mode}(t),s=Boolean(a),r=s?function(t,e){var i=Uh(t) | |
| 2016 | +;return i?e?i+" scale("+Sh+")":i:null}(i,l):jh(i);return{position:"fixed",top:e.marginBox.top,left:e.marginBox.left,boxSizing:"border-box",width:e.borderBox.width,height:e.borderBox.height,transition:_f(n,a),transform:r,opacity:Rf(l,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(t):{transform:jh((e=t).offset),transition:e.shouldAnimateDisplacement?null:"none"};var e}function Wf(t){t.preventDefault()}var Pf=function(t,e){return t===e},Uf=function(t){var e=t.combine,i=t.destination;return i?i.droppableId:e?e.droppableId:null};function jf(t){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:t,combineWith:null}}var wf={mapped:{type:"SECONDARY",offset:Bp,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:jf(null)}},zf=cp(function(){var t,e,i,o=(t=Wp(function(t,e){return{x:t,y:e}}),e=Wp(function(t,e,i,o,a){return{isDragging:!0,isClone:e,isDropAnimating:Boolean(a),dropAnimation:a,mode:t,draggingOver:i,combineWith:o, | |
| 2017 | +combineTargetFor:null}}),i=Wp(function(t,i,o,a,l,n,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:n,mode:i,offset:t,dimension:o,forceShouldAnimate:s,snapshot:e(i,a,l,n,null)}}}),function(o,a){if(o.isDragging){if(o.critical.draggable.id!==a.draggableId)return null;var l=o.current.client.offset,n=o.dimensions.draggables[a.draggableId],s=$m(o.impact),r=(c=o.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,b=o.forceShouldAnimate;return i(t(l.x,l.y),o.movementMode,n,a.isClone,s,r,b)}var c;if("DROP_ANIMATING"===o.phase){var d=o.completed;if(d.result.draggableId!==a.draggableId)return null;var u=a.isClone,p=o.dimensions.draggables[a.draggableId],m=d.result,h=m.mode,g=Uf(m),f=function(t){return t.combine?t.combine.draggableId:null}(m),y={duration:o.dropDuration,curve:vh,moveTo:o.newHomeClientOffset,opacity:f?_h:null,scale:f?Sh:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:f,mode:h, | |
| 2018 | +forceShouldAnimate:null,snapshot:e(h,u,g,f,y)}}}return null}),a=function(){var t=Wp(function(t,e){return{x:t,y:e}}),e=Wp(jf),i=Wp(function(t,i,o){return void 0===i&&(i=null),{mapped:{type:"SECONDARY",offset:t,combineTargetFor:i,shouldAnimateDisplacement:o,snapshot:e(i)}}}),o=function(t){return t?i(Bp,t,!0):null},a=function(e,a,l,n){var s=l.displaced.visible[e],r=Boolean(n.inVirtualList&&n.effected[e]),b=mm(l),c=b&&b.draggableId===e?a:null;if(!s){if(!r)return o(c);if(l.displaced.invisible[e])return null;var d=$p(n.displacedBy.point),u=t(d.x,d.y);return i(u,c,!0)}if(r)return o(c);var p=l.displacedBy.point,m=t(p.x,p.y);return i(m,c,s.shouldAnimate)};return function(t,e){if(t.isDragging)return t.critical.draggable.id===e.draggableId?null:a(e.draggableId,t.critical.draggable.id,t.impact,t.afterCritical);if("DROP_ANIMATING"===t.phase){var i=t.completed;return i.result.draggableId===e.draggableId?null:a(e.draggableId,i.result.draggableId,i.impact,i.afterCritical)}return null}}() | |
| 2019 | +;return function(t,e){return o(t,e)||a(t,e)||wf}},{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:Wg,pure:!0,areStatePropsEqual:Pf})(function(t){var e=(0,a.useRef)(null),i=mp(function(t){e.current=t},[]),o=mp(function(){return e.current},[]),l=yf(Cg),n=l.contextId,s=l.dragHandleUsageInstructionsId,r=l.registry,b=yf(kf),c=b.type,d=b.droppableId,u=pp(function(){return{id:t.draggableId,index:t.index,type:c,droppableId:d}},[t.draggableId,t.index,c,d]),p=t.children,m=t.draggableId,h=t.isEnabled,g=t.shouldRespectForcePress,f=t.canDragInteractiveElements,y=t.isClone,T=t.mapped,H=t.dropAnimationFinished;y||function(t){var e=zg("draggable"),i=t.descriptor,o=t.registry,l=t.getDraggableRef,n=t.canDragInteractiveElements,s=t.shouldRespectForcePress,r=t.isEnabled,b=pp(function(){return{canDragInteractiveElements:n,shouldRespectForcePress:s,isEnabled:r}},[n,r,s]),c=mp(function(t){var e=l();return e||Ap(!1),function(t,e,i){void 0===i&&(i=Bp) | |
| 2020 | +;var o=window.getComputedStyle(e),a=e.getBoundingClientRect(),l=kp(a,o),n=xp(l,i);return{descriptor:t,placeholder:{client:l,tagName:e.tagName.toLowerCase(),display:o.display},displaceBy:{x:l.marginBox.width,y:l.marginBox.height},client:l,page:n}}(i,e,t)},[i,l]),d=pp(function(){return{uniqueId:e,descriptor:i,options:b,getDimension:c}},[i,c,b,e]),u=(0,a.useRef)(d),p=(0,a.useRef)(!0);xg(function(){return o.draggable.register(u.current),function(){return o.draggable.unregister(u.current)}},[o.draggable]),xg(function(){if(p.current)p.current=!1;else{var t=u.current;u.current=d,o.draggable.update(d,t)}},[d,o.draggable])}(pp(function(){return{descriptor:u,registry:r,getDraggableRef:o,canDragInteractiveElements:f,shouldRespectForcePress:g,isEnabled:h}},[u,r,o,f,g,h]));var M=pp(function(){return h?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":n,draggable:!1,onDragStart:Wf}:null},[n,s,m,h]),x=mp(function(t){ | |
| 2021 | +"DRAGGING"===T.type&&T.dropping&&"transform"===t.propertyName&&H()},[H,T]),k=pp(function(){var t=Sf(T),e="DRAGGING"===T.type&&T.dropping?x:null;return{innerRef:i,draggableProps:{"data-rbd-draggable-context-id":n,"data-rbd-draggable-id":m,style:t,onTransitionEnd:e},dragHandleProps:M}},[n,M,m,T,x,i]),v=pp(function(){return{draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}},[u.droppableId,u.id,u.index,u.type]);return p(k,T.snapshot,v)});function Cf(t){return yf(kf).isUsingCloneFor!==t.draggableId||t.isClone?l().createElement(zf,t):null}function Af(t){var e="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,i=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return l().createElement(Cf,(0,ve.A)({},t,{isClone:!1,isEnabled:e,canDragInteractiveElements:i,shouldRespectForcePress:o}))}var Lf=function(t,e){return t===e.droppable.type},Df=function(t,e){return e.draggables[t.draggable.id]},Nf={mode:"standard",type:"DEFAULT", | |
| 2022 | +direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Ap(!1),document.body}},If=cp(function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},e=(0,ve.A)({},t,{shouldAnimatePlaceholder:!1}),i=Wp(function(t){return{draggableId:t.id,type:t.type,source:{index:t.index,droppableId:t.droppableId}}}),o=Wp(function(o,a,l,n,s,r){var b=s.descriptor.id;if(s.descriptor.droppableId===o){var c=r?{render:r,dragging:i(s.descriptor)}:null,d={isDraggingOver:l,draggingOverWith:l?b:null,draggingFromThisWith:b,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:c}}if(!a)return e;if(!n)return t;var u={isDraggingOver:l,draggingOverWith:b,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder, | |
| 2023 | +shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return function(i,a){var l=a.droppableId,n=a.type,s=!a.isDropDisabled,r=a.renderClone;if(i.isDragging){var b=i.critical;if(!Lf(n,b))return e;var c=Df(b,i.dimensions),d=$m(i.impact)===l;return o(l,s,d,d,c,r)}if("DROP_ANIMATING"===i.phase){var u=i.completed;if(!Lf(n,u.critical))return e;var p=Df(u.critical,i.dimensions);return o(l,s,Uf(u.result)===l,$m(u.impact)===l,p,r)}if("IDLE"===i.phase&&i.completed&&!i.shouldFlush){var m=i.completed;if(!Lf(n,m.critical))return e;var h=$m(m.impact)===l,g=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),f=m.critical.droppable.id===l;return h?g?t:e:f?t:e}return e}},{updateViewportMaxScroll:function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}}},null,{context:Wg,pure:!0,areStatePropsEqual:Pf})(function(t){var e=(0,a.useContext)(Cg);e||Ap(!1);var i=e.contextId,o=e.isMovementAllowed,n=(0,a.useRef)(null),s=(0, | |
| 2024 | +a.useRef)(null),r=t.children,b=t.droppableId,c=t.type,d=t.mode,u=t.direction,p=t.ignoreContainerClipping,m=t.isDropDisabled,h=t.isCombineEnabled,g=t.snapshot,f=t.useClone,y=t.updateViewportMaxScroll,T=t.getContainerForClone,H=mp(function(){return n.current},[]),M=mp(function(t){n.current=t},[]),x=(mp(function(){return s.current},[]),mp(function(t){s.current=t},[])),k=mp(function(){o()&&y({maxScroll:qh()})},[o,y]);!function(t){var e=(0,a.useRef)(null),i=yf(Cg),o=zg("droppable"),l=i.registry,n=i.marshal,s=Ag(t),r=pp(function(){return{id:t.droppableId,type:t.type,mode:t.mode}},[t.droppableId,t.mode,t.type]),b=(0,a.useRef)(r),c=pp(function(){return Wp(function(t,i){e.current||Ap(!1);var o={x:t,y:i};n.updateDroppableScroll(r.id,o)})},[r.id,n]),d=mp(function(){var t=e.current;return t&&t.env.closestScrollable?pf(t.env.closestScrollable):Bp},[]),u=mp(function(){var t=d();c(t.x,t.y)},[d,c]),p=pp(function(){return Pp(u)},[u]),m=mp(function(){var t=e.current,i=Tf(t);t&&i||Ap(!1), | |
| 2025 | +t.scrollOptions.shouldPublishImmediately?u():p()},[p,u]),h=mp(function(t,o){e.current&&Ap(!1);var a=s.current,l=a.getDroppableRef();l||Ap(!1);var n=function(t){return{closestScrollable:uf(t),isFixedOnPage:mf(t)}}(l),b={ref:l,descriptor:r,env:n,scrollOptions:o};e.current=b;var c=function(t){var e=t.ref,i=t.descriptor,o=t.env,a=t.windowScroll,l=t.direction,n=t.isDropDisabled,s=t.isCombineEnabled,r=t.shouldClipSubject,b=o.closestScrollable,c=function(t,e){var i=vp(t);if(!e)return i;if(t!==e)return i;var o=i.paddingBox.top-e.scrollTop,a=i.paddingBox.left-e.scrollLeft,l=o+e.scrollHeight,n=a+e.scrollWidth,s=gp({top:o,right:n,bottom:l,left:a},i.border);return Tp({borderBox:s,margin:i.margin,border:i.border,padding:i.padding})}(e,b),d=xp(c,a),u=function(){if(!b)return null;var t=vp(b),e={scrollHeight:b.scrollHeight,scrollWidth:b.scrollWidth};return{client:t,page:xp(t,a),scroll:pf(b),scrollSize:e,shouldClipSubject:r}}(),p=function(t){ | |
| 2026 | +var e=t.descriptor,i=t.isEnabled,o=t.isCombineEnabled,a=t.isFixedOnPage,l=t.direction,n=t.client,s=t.page,r=t.closest,b=function(){if(!r)return null;var t=r.scrollSize,e=r.client,i=Eh({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,height:e.paddingBox.height,width:e.paddingBox.width});return{pageMarginBox:r.page.marginBox,frameClient:e,scrollSize:t,shouldClipSubject:r.shouldClipSubject,scroll:{initial:r.scroll,current:r.scroll,max:i,diff:{value:Bp,displacement:Bp}}}}(),c="vertical"===l?km:vm;return{descriptor:e,isCombineEnabled:o,isFixedOnPage:a,axis:c,isEnabled:i,client:n,page:s,frame:b,subject:im({page:s,withPlaceholder:null,axis:c,frame:b})}}({descriptor:i,isEnabled:!n,isCombineEnabled:s,isFixedOnPage:o.isFixedOnPage,direction:l,client:c,page:d,closest:u});return p}({ref:l,descriptor:r,env:n,windowScroll:t,direction:a.direction,isDropDisabled:a.isDropDisabled,isCombineEnabled:a.isCombineEnabled,shouldClipSubject:!a.ignoreContainerClipping}),d=n.closestScrollable | |
| 2027 | +;return d&&(d.setAttribute(Hg.contextId,i.contextId),d.addEventListener("scroll",m,ff(b.scrollOptions))),c},[i.contextId,r,m,s]),g=mp(function(){var t=e.current,i=Tf(t);return t&&i||Ap(!1),pf(i)},[]),f=mp(function(){var t=e.current;t||Ap(!1);var i=Tf(t);e.current=null,i&&(p.cancel(),i.removeAttribute(Hg.contextId),i.removeEventListener("scroll",m,ff(t.scrollOptions)))},[m,p]),y=mp(function(t){var i=e.current;i||Ap(!1);var o=Tf(i);o||Ap(!1),o.scrollTop+=t.y,o.scrollLeft+=t.x},[]),T=pp(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:f,scroll:y}},[f,h,g,y]),H=pp(function(){return{uniqueId:o,descriptor:r,callbacks:T}},[T,r,o]);xg(function(){return b.current=H.descriptor,l.droppable.register(H),function(){e.current&&f(),l.droppable.unregister(H)}},[T,r,f,H,n,l.droppable]),xg(function(){e.current&&n.updateDroppableIsEnabled(b.current.id,!t.isDropDisabled)},[t.isDropDisabled,n]),xg(function(){ | |
| 2028 | +e.current&&n.updateDroppableIsCombineEnabled(b.current.id,t.isCombineEnabled)},[t.isCombineEnabled,n])}({droppableId:b,type:c,mode:d,direction:u,isDropDisabled:m,isCombineEnabled:h,ignoreContainerClipping:p,getDroppableRef:H});var v=l().createElement(vf,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},function(t){var e=t.onClose,o=t.data,a=t.animate;return l().createElement(xf,{placeholder:o,onClose:e,innerRef:x,animate:a,contextId:i,onTransitionEnd:k})}),_=pp(function(){return{innerRef:M,placeholder:v,droppableProps:{"data-rbd-droppable-id":b,"data-rbd-droppable-context-id":i}}},[i,b,v,M]),R=f?f.dragging.draggableId:null,S=pp(function(){return{droppableId:b,type:c,isUsingCloneFor:R}},[b,R,c]);return l().createElement(kf.Provider,{value:S},r(_,g),function(){if(!f)return null;var t=f.dragging,e=f.render,i=l().createElement(Cf,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(i,o){ | |
| 2029 | +return e(i,o,t)});return so().createPortal(i,T())}())});If.defaultProps=Nf;var Vf=i(48396);const Of=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Icon","ablocks"),value:"icon"},{label:(0,L.__)("Number","ablocks"),value:"number"},{label:(0,L.__)("Disc","ablocks"),value:"disc"},{label:(0,L.__)("Square","ablocks"),value:"square"},{label:(0,L.__)("Emoji","ablocks"),value:"emoji"}],Yf=((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"),value:"dashed"}]),Xf=((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")}]),Bf=[{label:(0, | |
| 2030 | +L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}],Ef=t=>{const{markerType:e,emoji:i,iconAttributes:o,index:a,listProperties:l}=t;let n;if("disc"===e)n=(0,I.jsx)("span",{className:"ablocks-list__item-marker ablocks-list__item-disc",style:{backgroundColor:(0,Hs.qD)(l?.markerColor)}});else if("square"===e)n=(0,I.jsx)("span",{className:"ablocks-list__item-marker ablocks-list__item-square",style:{backgroundColor:(0,Hs.qD)(l?.markerColor)}});else if("number"===e)n=(0,I.jsxs)("span",{className:"ablocks-list__item-number",style:{color:(0,Hs.qD)(l?.markerColor)},children:[a+1,"."]});else if("emoji"===e)n=(0,I.jsx)("span",{className:"emoji",children:i});else if("icon"===e){const t=o?.[a];n=(0,I.jsx)(Fd,{customIconData:t,style:{color:l?.iconColor?(0,Hs.qD)(l?.iconColor):"",fill:l?.iconColor?(0,Hs.qD)(l?.iconColor):""}})}return n};function Ff(t){ | |
| 2031 | +const{attributes:e,setAttributes:i}=t,{lists:o,markerType:a,emoji:n,iconSize:s,iconColor:r,padding:b,position:c,stack:d,iconType:u,iconShape:p,textColor:m,typography:h,textIndent:g,spaceBetween:f,iconBackgroundColor:y,verticalAlignment:T,horizontalAlignment:H,markerColor:M,markerSize:x,listIcons:k,listIconsClasses:v,divider:_,dividerPatternUrl:R,weight:S,width:W,borderColor:P}=e,U="stack"===u||"framed"===u,j=(t,e,i)=>{const o=Array.from(t),[a]=o.splice(e,1);return o.splice(i,0,a),o},w=(t,e,a)=>{const l=o.map(i=>i.id===t.id?{...i,[e]:a}:i);i({lists:l})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-list-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Lists","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Marker type","ablocks"),options:Of,attributeName:"markerType",attributeValue:a,setAttributes:i | |
| 2032 | +}),"icon"===a&&(0,I.jsx)(Jt,{label:(0,L.__)("Icon Position","ablocks"),isResponsive:!0,options:[{label:(0,L.__)("editor-flex-start","ablocks"),value:"flex-start",icon:"align-top"},{label:(0,L.__)("editor-align-center","ablocks"),value:"center",icon:"align-center"},{label:(0,L.__)("editor-align-bottom","ablocks"),value:"flex-end",icon:"align-bottom",tooltipPosition:"top-left"}],setAttributes:i,attributeValue:c,attributeName:"position",isInline:!1}),"emoji"===a&&(0,I.jsx)(Kl,{label:(0,L.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:n,setAttributes:i,isInline:!1}),(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!0,label:(0,L.__)("Layout","ablocks"),options:[{value:"vertical",label:(0,L.__)("Vertical","ablocks")},{value:"horizontal",label:(0,L.__)("Horizontal","ablocks")}],attributeName:"stack",attributeValue:d,setAttributes:i}),"vertical"===d?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{isResponsive:!1,isInline:!0,allowDeselect:!0,label:(0,L.__)("Vertical alignment","ablocks"), | |
| 2033 | +options:[{label:(0,L.__)("Left","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--left"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--center"})},{label:(0,L.__)("Right","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--right"})}],attributeName:"verticalAlignment",attributeValue:T,setAttributes:i})}):(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Horizontal alignment","ablocks"),options:[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],attributeName:"horizontalAlignment",attributeValue:H,setAttributes:i}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return | |
| 2034 | +;const e=j(o,t.source.index,t.destination.index),l=j(v,t.source.index,t.destination.index);if(i({lists:e,listIconsClasses:l}),"icon"===a){const e=j(k,t.source.index,t.destination.index);i({listIcons:e})}},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,l)=>(0,I.jsx)(Af,{draggableId:`${t?.id}`,index:l,children:n=>(0,I.jsxs)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"ablocks-editor-list",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({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{ | |
| 2035 | +className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t.id===e);if(-1===a)return;const l=o.filter((t,e)=>e!==a),n=v.filter((t,e)=>e!==a);i({lists:l,listIconsClasses:n})})(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,text:l?.text,link:l.link,iconColor:l.iconColor,textColor:l.textColor,markerColor:l.markerColor,isOpen:!1},r=[...o,s],b=[...v,v[a]||""];i({lists:r,listIconsClasses:b})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{ | |
| 2036 | +content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>((t,e,a)=>{const l=o.map(i=>i.id===t?{...i,[a]:e}:i);i({lists:l})})(t?.id,e,"text"),placeholder:(0,L.__)("Enter your text","ablocks"),disableDynamicContent:!0}),"icon"===a&&(0,I.jsx)(Yd,{label:(0,L.__)("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=[...k||[]],b=[...v||[]],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=k||[],o=v||[],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})})(l), | |
| 2037 | +getIconClass:()=>v?.[l],legacySupport:!0}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,i)=>{w(t,"link",{...t.link,[e]:i})}})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text color","ablocks"),attributeName:"textColor",attributeValue:t.textColor,setAttributes:i,resetHandler:()=>w(t,"textColor"),onChangeHandler:(e,i)=>{w(t,e,i)}}),"icon"===a&&(0,I.jsx)(Ws,{label:(0,L.__)("Icon color","ablocks"),attributeName:"iconColor",attributeValue:t.iconColor,setAttributes:i,resetHandler:()=>w(t,"iconColor"),onChangeHandler:(e,i)=>{w(t,e,i)}}),("disc"===a||"square"===a||"number"===a)&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Marker color","ablocks"),attributeName:"markerColor",attributeValue:t.markerColor,setAttributes:i,resetHandler:()=>w(t,"markerColor"),onChangeHandler:(e,i)=>{w(t,e,i)}})})]})})})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0, | |
| 2038 | +L.__)("Add item","ablocks"),onClick:()=>{const t=o.length?Math.max(...o.map(t=>t.id))+1:0,e={id:t,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},a=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t),l=[...v,v[o.length-1]||""];i({lists:[...a,e],listIconsClasses:[...l]})},className:"ablocks-add-list-item-button"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),("disc"===a||"square"===a||"number"===a)&&(0,I.jsx)(Ws,{label:(0,L.__)("Marker color","ablocks"),attributeName:"markerColor",attributeValue:M,setAttributes:i}),("disc"===a||"square"===a)&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Marker size","ablocks"),min:0, | |
| 2039 | +max:50,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"markerSize",attributeValue:x,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Vf.Qi})}),(0,I.jsx)(_t,{label:(0,L.__)("Space Between Horizontal","ablocks"),min:0,max:50,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"textIndent",attributeValue:g,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Vf.AF}),(0,I.jsx)(_t,{label:(0,L.__)("Space Between Vertical","ablocks"),min:0,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"spaceBetween",attributeValue:f,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Vf.p9}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Divider","ablocks"),attributeValue:_,setAttributes:i,attributeName:"divider"}),_&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:Yf,attributeName:"dividerPatternUrl",attributeValue:R,onChangeHandler:t=>{const e=Yf?.find(e=>e.value===t);i({dividerPatternUrl:e.value, | |
| 2040 | +dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeObjectKey:"value",attributeValue:S,isResponsive:!0,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,autoSyncRange:!0,isInline:!1,attributeDefaultValue:Vf.VA,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),"vertical"===d&&(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:W,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:Vf.VL}),(0,I.jsx)(Ws,{label:(0,L.__)("Divider Color","ablocks"),attributeName:"borderColor",attributeValue:P,setAttributes:i})]})]})})}),"icon"===a&&(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:Xf,attributeName:"iconType",attributeValue:u,setAttributes:i}),U&&(0,I.jsx)(Ut,{label:(0, | |
| 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 | +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", | |
| 2039 | 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:"", |
| 2040 | 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:""}}, |
| 2041 | 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}}, |
| 2042 | 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:{ |
| @@ -2046,16 +2050,16 @@ | ||
| 2046 | 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:"", |
| 2047 | 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:"", |
| 2048 | 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:"", |
| 2049 | 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:"", |
| 2050 | -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 Yf({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" | |
| 2051 | -;return(0,a.createElement)(g,{...u?h:{},key:i?.id,className:"ablocks-list__item-content"},(0,L.jsx)(If,{markerType:n,emoji:s,index:t,iconAttributes:r,listProperties:i}),l?(0,L.jsx)(C.RichText.Content,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",style:{color:(0,gs.qD)(i?.textColor)}}):(0,L.jsx)(C.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,gs.qD)(i?.textColor)},placeholder:(0,z.__)("Enter Your Text","ablocks")}))}const Xf=({addNewListItem:t})=>(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.ToolbarButton,{icon:"plus",label:(0,z.__)("Add item","ablocks"),onClick:t})});function Bf(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=[] | |
| 2052 | -;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=Wd;break;case"s":i.data=Pd;break;case"b":i.data=Ud}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,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Xf,{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,L.jsx)(Nb.A,{blockId:o,name:Of.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsx)("div",{className:"ablocks-list",children:n?.map((t,o)=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Yf,{index:o,attributes:e,list:t,setAttributes:i},o),c&&(0, | |
| 2053 | -L.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})]})}Bf.propTypes={};const Ef=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:[];return{...(0,Gt.qD)(t?.alignment,"text-align",e),...(0,P.qD)(i,e,o)}},Ff=(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,Gt.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},$f=(t,e="")=>{ | |
| 2054 | -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,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"border-bottom-width",device:e})},r["border-bottom-color"]=(0,gs.qD)(t?.borderColor)||"black",r["border-bottom-style"]=o):"horizontal"===s&&(c={...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"border-right-width",device:e})},r["border-right-color"]=(0,gs.qD)(t?.borderColor)||"black",r["border-right-style"]=o)),"vertical"===s&&(b={...(0,Ob.qD)({attributeValue:n,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}),{...r,...c,...b}},Gf=(t,e)=>{const{markerColor:i,markerSize:o}=t,a={};if(""!==i&&void 0!==i&&(a.background=(0,gs.qD)(t?.markerColor)), | |
| 2055 | -""!==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},Zf=(t,e="")=>{const{iconSize:i,iconColor:o,markerType:a,iconType:l,iconShape:n,iconBackgroundColor:s}=t,r={};"icon"===a&&("stacked"===l?(r.background=(0,gs.qD)(t?.iconBackgroundColor)||"#ddd",r.padding=".2em",r.color=(0,gs.qD)(t?.iconColor)||"#000000","circle"===n&&(r["border-radius"]="50px")):"framed"===l&&(r.background=(0,gs.qD)(t?.iconBackgroundColor)||"transparent",r.padding=".2em",r.color=(0,gs.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,gs.qD)(t?.iconColor),r.fill=(0,gs.qD)(t?.iconColor)),""!==s&&void 0!==s&&(r.background=(0,gs.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, | |
| 2056 | -Ob.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)}},Kf=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},Jf=t=>({color:(0,gs.qD)(t?.textColor)});function Qf({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,L.jsx)(If,{markerType:o,emoji:l,index:t,iconAttributes:n,listProperties:i}),(0,L.jsx)(C.RichText.Content,{tagName:"span",value:i?.text,className:"ablocks-list__item-text",style:{color:(0,gs.qD)(i?.textColor)}}))}function ty(t){ | |
| 2057 | -const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:Of.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Qf,{index:i,attributes:e,list:t},i),a&&(0,L.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}ty.propTypes={};const ey={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:{ | |
| 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:{ | |
| 2058 | 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:"", |
| 2059 | 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:"", |
| 2060 | 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:{ |
| 2061 | 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:"", |
| @@ -2065,79 +2069,64 @@ | ||
| 2065 | 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:"", |
| 2066 | 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", |
| 2067 | 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:"", |
| 2068 | 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:"", |
| 2069 | -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 iy({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,L.jsx)(If,{markerType:o,emoji:l,index:t,iconAttributes:n,listProperties:i}),(0,L.jsx)(C.RichText.Content,{tagName:"span", | |
| 2070 | -value:i?.text,className:"ablocks-list__item-text",style:{color:(0,gs.qD)(i?.textColor)}}))}function oy(t){const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:ey.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(iy,{index:i,attributes:e,list:t},i),a&&(0,L.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}oy.propTypes={},(0,M.xV)(Of.UU)&&(0,o.registerBlockType)(Of.UU,{title:"List",attributes:Of.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 2071 | -null===t?"":(t.addClassStyles("{{WRAPPER}}",Ef(i),Ef(i,"Tablet"),Ef(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-list",Ff(i),Ff(i,"Tablet"),Ff(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content",qf(i),qf(i,"Tablet"),qf(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-list_item-content-divider",$f(i),$f(i,"Tablet"),$f(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-list__item-marker",Gf(i,""),Gf(i,"Tablet"),Gf(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-icon-wrap .ablocks-svg-icon",Zf(i),Zf(i,"Tablet"),Zf(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-icon-wrap:hover .ablocks-svg-icon",Kf(i),Kf(i,"Tablet"),Kf(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-list__item-content .ablocks-list__item-text",Jf(i),Jf(i),Jf(i)),(0,b.applyFilters)("ablocks.lists.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 2072 | -L.jsx)("style",{children:s}),e&&(0,L.jsx)(Vf,{...t}),(0,L.jsx)(Bf,{...t})]})},save:ty,deprecated:[{attributes:Of.uK,save:function(t){const{attributes:e}=t,{block_id:i,lists:o,divider:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:Of.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-list",children:o?.map((t,i)=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(iy,{index:i,attributes:e,list:t},i),a&&(0,L.jsx)("div",{className:"ablocks-list_item-content-divider"})]}))})})})}},{attributes:ey.uK,save:oy}],icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"})});var ay=i(42314);function ly(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,ay.tJ)(),e={blur:n[m], | |
| 2073 | -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)(ay.tJ,{...n,[m]:"",[h]:"",[g]:"",[f]:"",[y]:""})}),u(!1)},H=(t,e)=>o(s?{[i]:(0,M.jI)((0,ay.tJ)(),{...n,[e]:t})}:{[i]:t});return(0,L.jsxs)("div",{className:"ablocks-control ablocks-control-color-gradient-root-wrapper",children:[r&&(0,L.jsx)("div",{className:"ablocks-control-label",children:(0,L.jsx)(ot,{label:r,isResponsive:!1})}),(0,L.jsx)("div",{className:"ablocks-control-color-gradient",children:(0,L.jsxs)("div",{className:"ablocks-component-popover",children:[(0,L.jsx)("div",{className:"ablocks-component-popover__field",children:(0,L.jsx)("div",{className:"ablocks-component-popover-toggler-wrapper",ref:p,children:(0,L.jsxs)("div",{className:"ablocks-buttons-wrapper",children:[d&&(0,L.jsx)(X,{tooltipText:(0,z.__)("Back To Default","ablocks"),position:"top",children:(0,L.jsx)(V,{onClick:T,icon:(0,L.jsx)("span",{ | |
| 2074 | -className:"ablocks-icon ablocks-icon--reset"}),preset:"transparent"})}),(0,L.jsx)(V,{ref:p,onClick:()=>{c(!b)},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),preset:"transparent",className:b?"ablocks-component-popover__field--active":""})]})})}),b&&(0,L.jsx)(Yt,{isShowPrimaryLabel:!1,label:"CSS Filters",isReset:!0,handleReset:T,isVisible:b,toggleVisible:c,anchorRef:p,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{...t,min:0,max:5,step:.01,hasUnit:!1,isInline:!1,label:(0,z.__)("Blur","ablocks"),onChangeHandler:H,attributeObjectKey:m}),(0,L.jsx)(vt,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,onChangeHandler:H,label:(0,z.__)("Brightness","ablocks"),attributeObjectKey:h}),(0,L.jsx)(vt,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,z.__)("Contrast","ablocks"),onChangeHandler:H,attributeObjectKey:g}),(0,L.jsx)(vt,{...t,min:0,max:200,step:1,hasUnit:!1,isInline:!1,label:(0,z.__)("Saturate","ablocks"),onChangeHandler:H,attributeObjectKey:f | |
| 2075 | -}),(0,L.jsx)(vt,{...t,min:0,max:360,step:1,hasUnit:!1,isInline:!1,label:(0,z.__)("Hue","ablocks"),onChangeHandler:H,attributeObjectKey:y})]})})]})})]})}(0,z.__)("Thumbnail","ablocks"),(0,z.__)("Medium","ablocks"),(0,z.__)("Large","ablocks"),(0,z.__)("Full","ablocks"),(0,z.__)("Custom","ablocks"),(0,z.__)("None","ablocks"),(0,z.__)("Custom","ablocks");const ny=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Media File","ablocks"),value:"mediaFile"},{label:(0,z.__)("Custom URL","ablocks"),value:"custom"}],sy=[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Fill","ablocks"),value:"fill"},{label:(0,z.__)("Cover","ablocks"),value:"cover"},{label:(0,z.__)("Contain","ablocks"),value:"contain"}],ry=[{label:(0,z.__)("Static","ablocks"),value:"static"},{label:(0,z.__)("Zoom in","ablocks"),value:"zoomin"},{label:(0,z.__)("Slide","ablocks"),value:"slide"},{label:(0,z.__)("Gray scale","ablocks"),value:"grayscale"},{label:(0,z.__)("Blur","ablocks"), | |
| 2076 | -value:"blur"}],by=[{label:(0,z.__)("Custom","ablocks"),value:void 0},{label:(0,z.__)("Original","ablocks"),value:"original"},{label:(0,z.__)("Square - 1:1","ablocks"),value:"1/1"},{label:(0,z.__)("Standard - 4:3","ablocks"),value:"4/3"},{label:(0,z.__)("Portrait - 3:4","ablocks"),value:"3/4"},{label:(0,z.__)("Classic - 3:2","ablocks"),value:"3/2"},{label:(0,z.__)("Classic Portrait - 2:3","ablocks"),value:"2/3"},{label:(0,z.__)("Wide - 16:9","ablocks"),value:"16/9"},{label:(0,z.__)("Tall - 9:16","ablocks"),value:"9/16"}];function cy(t){ | |
| 2077 | -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:U},widthHeightWidget:P={}}=e,j=at(),w=P?.["showHeight"+j],A=P?.["width"+j],[N,I]=(0,a.useState)([]);let V;V="Tablet"===j?d||c:"Mobile"===j&&(u||d)||c;const{image:O}=(0,r.useSelect)(t=>{const{getMedia:e}=t(ge.store);return{image:V&&o?e(V):null}},[o,V]);(0,a.useEffect)(()=>{if(O){i({imageDataAttribute:O});const t=O?.media_details?.sizes;I(Cd(t)),s(O)}else if(p?.id){const t=p?.media_details?.sizes;I(Cd(t)),s(p)}},[O]);const Y=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(As,{allowedTypes:["image"],attributeValue:e,attributeName:"imgUrl",deviceType:j,onSelectImageHandler:t=>wd(t,e,i,j), | |
| 2078 | -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}),N?.length>0&&(0,L.jsx)(Ut,{label:(0,z.__)("Image sizes","ablocks"),isResponsive:!0,options:N,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, | |
| 2079 | -["value"+j]:l||e?.objectFit["value"+j]},aspectRatio:{...e?.aspectRatio,["value"+j]:n||e?.aspectRatio["value"+j]}})}}),(0,L.jsx)(Ut,{label:(0,z.__)("Aspect ratio","ablocks"),isResponsive:!0,options:by,onChangeHandler:t=>{const e={...g,["value"+j]:t},o={...P};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&&A&&(o["showHeight"+j]=!1,o["height"+j]=""),i({aspectRatio:e,widthHeightWidget:o})},attributeName:"aspectRatio",attributeValue:g,attributeObjectKey:"value",setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:f,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Image Dimensions","ablocks"),isHeader:!0}),(0,L.jsx)(ql,{label:(0, | |
| 2080 | -z.__)("Width","ablocks"),attributeName:"width",attributeValue:e?.widthHeightWidget["width"+j],onChangeHandler:t=>{const e={};if(t&&!isNaN(t)){if(e.widthHeightWidget={...P,["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={...P,["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,L.jsx)(ql,{label:(0,z.__)("Height","ablocks"),attributeName:"height",attributeValue:P["showHeight"+j]?P["height"+j]:"",placeholder:"Auto",onChangeHandler:t=>{const e={};if(t&&!isNaN(t))e.widthHeightWidget={...P, | |
| 2081 | -["height"+j]:t,["showHeight"+j]:!0},A&&(e.aspectRatio={...g,["ratio"+j]:A/t,["value"+j]:void 0});else if(e.widthHeightWidget={...P,["height"+j]:"",["showHeight"+j]:!1},A){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...g,["ratio"+j]:t/i,["value"+j]:"original"}}i(e)},isInline:!1,disableDynamicContent:!0,isResponsive:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Object fit","ablocks"),isResponsive:!0,options:sy,attributeName:"objectFit",attributeValue:e.objectFit,attributeObjectKey:"value",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ql,{label:(0,z.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1,context:b}),(0,L.jsx)(Ut,{label:(0,z.__)("Link","ablocks"),options:ny,attributeObjectKey:"linkDestination",attributeValue:e?.imgLink,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,linkDestination:t}})}}),"custom"===W&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Image link","ablocks"), | |
| 2082 | -attributeName:"imgLink",attributeValue:U,isInline:!1,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,href:t}})},disableDynamicContent:!0}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Open in new tab","ablocks"),attributeValue:e?.imgLink,setAttributes:i,attributeName:"imgLink",attributeObjectKey:"linkTarget"})]}),(0,L.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,L.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,L.jsx)("span",{children:(0,z.__)("Alt Text","ablocks")}),(0,L.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,z.__)("clear","ablocks")})]}),(0,L.jsx)(ql,{attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1,context:b})]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("On Hover image","ablocks"),options:ry,attributeName:"onHoverImg",attributeValue:e.onHoverImg,setAttributes:i})]}),X=(0,L.jsxs)(L.Fragment,{ | |
| 2083 | -children:[(0,L.jsx)(ot,{label:(0,z.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:T,attributeName:"cssFilter",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:m,setAttributes:i,attributeDefaultValue:jd.ke})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:H,attributeName:"cssHoverFilter",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:h,setAttributes:i,attributeDefaultValue:jd.md}),(0,L.jsx)(vt,{label:(0,z.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i, | |
| 2084 | -attributeName:"filterTransitionDuration",attributeValue:S,attributeDefaultValue:jd.yy})]})}),(0,L.jsx)(Nt,{margin:"20"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Nt,{margin:"20"}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:M,setAttributes:i})]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-image-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Image","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:Y,style:X})}),(0,L.jsx)(D,{title:(0,z.__)("Caption","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Captions","ablocks"), | |
| 2085 | -attributeValue:e?.imgCaption,setAttributes:i,attributeName:"imgCaption"}),e.imgCaption&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Caption text","ablocks"),attributeName:"caption",attributeValue:e.caption,setAttributes:i,isInline:!1,context:b}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"captionAlignment",attributeValue:y,setAttributes:i,isInline:!1})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"captionColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:"captionBackground",attributeValue:k,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"captionTypography",attributeValue:v,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"captionPadding",attributeValue:_,setAttributes:i}),(0,L.jsx)(Nt,{margin:"20"}),(0, | |
| 2086 | -L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"captionBorder",attributeValue:R,setAttributes:i})]})})})]})})})}function dy(t){const{toggleSelection:e}=(0,r.useDispatch)(C.store),{setAttributes:i,isSelected:o,attributes:a,context:l,containerRef:n,currentImageData:s={}}=t,{imgAltText:c,imgTitle:d,alignment:u,imgSize:p,widthHeightWidget:m}=a,h=at(),g="Mobile"===h?p.valueMobile||p.valueTablet||p.value:"large",f="Tablet"===h?p.valueTablet||p.value:g,y=h?f:p.value,T=s?.media_details?.sizes?.[y]||{},H=T.width||1,M=T.height||1,x=m["width"+h],k=m["height"+h],v=m["showHeight"+h];let _=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a[`imgUrl${h}`]}),R=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a.imgUrlMobile}),S=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a.imgUrlTablet}),W=(0, | |
| 2087 | -b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a.imgUrl});const U=_||R||S||W,{maxWidth:P}=(0,r.useSelect)(t=>{const{getSettings:e}=t(C.store),{maxWidth:i}=e();return{maxWidth:i}},[]),j=2*P,w=H/M,z=((t,e)=>{const[i,o]=(0,Ot.useState)();return(0,Ot.useEffect)(()=>{o(t.current.offsetWidth);const e=()=>{o(t.current.offsetWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(n,[u,h]),D=((t,e)=>{const[i,o]=(0,Ot.useState)();return(0,Ot.useEffect)(()=>{o(t.current.offsetHeight);const e=()=>{o(t.current.offsetHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(n,[u,h]);let N=!0,I=!1;"center"===u?.value?(N=!0,I=!0):"right"===u?.value&&(N=!1,I=!0);const V=x?parseInt(x):"auto",O=k?parseInt(k):"auto";return(0,L.jsx)(A.ResizableBox,{size:{width:V,height:O},showHandle:o,minHeight:50,minWidth:50,maxWidth:j,maxHeight:j/w,lockAspectRatio:!0,enable:{top:!1, | |
| 2088 | -bottom:!0,left:I,right:N},onResizeStop:(t,o,l,n)=>{const s=Math.max(50,Math.min(j,("auto"===V?z:V)+n.width)),r=Math.max(50,Math.min(j/w,("auto"===O?D:O)+n.height)),b={...a?.widthHeightWidget,["width"+h]:s,["height"+h]:r,["showHeight"+h]:!1};i({widthHeightWidget:b}),e(!0)},onResizeStart:function(){e(!1)},children:(0,L.jsx)("img",{src:U,alt:c,title:d,loading:"lazy",style:{width:"100%",height:v?"100%":"auto"}})})}function uy(t){const e=(0,a.useRef)(),{setAttributes:i,attributes:o,context:l,addCaptionRef:n}=t,{imgUrl:s,caption:r,imgCaption:c,imgLink:{linkDestination:d,href:u,linkTarget:p}}=o;let m=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:s});const h=(t,e)=>i({[e]:t}),g=t=>{t.preventDefault()};let f;return m&&(f=(0,L.jsx)(dy,{...t,containerRef:e})),m&&"custom"===d&&(f=(0,L.jsx)("a",{href:u,target:p,onClick:g,children:(0,L.jsx)(dy,{...t,containerRef:e})})),m&&c&&(f=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(dy,{...t,containerRef:e}),(0, | |
| 2089 | -L.jsx)(C.RichText,{tagName:"figcaption",className:"ablocks-image-caption","aria-label":(0,z.__)("Image caption text","ablocks"),placeholder:(0,z.__)("Add caption","ablocks"),value:r,ref:n,onChange:t=>h(t,"caption")})]})),m&&c&&"custom"===d&&(f=(0,L.jsxs)("a",{href:u,target:p,onClick:g,children:[(0,L.jsx)(dy,{...t,containerRef:e}),(0,L.jsx)(C.RichText,{tagName:"figcaption",className:"ablocks-image-caption","aria-label":(0,z.__)("Image caption text","ablocks"),placeholder:(0,z.__)("Add caption","ablocks"),value:r,onChange:t=>h(t,"caption")})]})),(0,L.jsx)("figure",{className:"ablocks-image-figure",ref:e,children:(s||"").startsWith("ablocks_dc:")&&!m?(0,L.jsx)("h2",{children:(0,z.__)("No Data","ablocks")}):f})}cy.propTypes={},dy.propTypes={},uy.propTypes={};const py="ablocks/image",my=(0,L.jsx)(Uc.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)(Uc.Path,{fillRule:"evenodd",clipRule:"evenodd", | |
| 2090 | -d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function hy(t){const{attributes:e,setAttributes:i,isSelected:o,block_id:a}=t,{imgId:l,imgIdTablet:n,imgIdMobile:s,imgCaption:b,imgUrl:c,imgLink:{linkDestination:d,href:u,linkTarget:p,rel:m,linkClass:h},alignment:g}=e,f=at();let y;y="Tablet"===f?n:"Mobile"===f?s:l;const{createNotice:T}=(0,r.useDispatch)("core/notices"),{image:H}=(0,r.useSelect)(t=>{const{getMedia:e}=t(ge.store);return{image:y&&o?e(y):null}},[l,n,s,o]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(C.BlockControls,{group:"block",children:[(0,L.jsx)(Fc,{attributeValue:g,setAttributes:i}),l&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.__experimentalImageURLInputUI,{url:u||"",onChangeUrl:function(t){i({imgLink:{...e?.imgLink,...t}})},linkDestination:d,mediaUrl:H&&H.source_url||c,mediaLink:H&&H.link, | |
| 2091 | -linkTarget:p,linkClass:h,rel:m}),(0,L.jsx)(A.ToolbarButton,{icon:my,label:(0,z.__)("Add caption","ablocks"),isPressed:b,onClick:()=>{i({imgCaption:!b})}})]})]}),l&&(0,L.jsx)(C.BlockControls,{group:"other",children:(0,L.jsx)(C.MediaReplaceFlow,{mediaId:["imgId"+f],mediaURL:c,allowedTypes:["image"],accept:"image/*",onSelect:t=>wd(t,e,i,f),onSelectURL:function(t){i({["imgId"+f]:a?.split("-")[0],["imgUrl"+f]:t})},onError:function(t){T("error",t,{type:"snackbar"})}})})]})}function gy(t){const{attributes:e,setAttributes:i,context:o,isSelected:n,currentImageData:s}=t,{block_id:b,imgUrl:c,imgUrlTablet:d,imgUrlMobile:u,imgId:p,imgIdTablet:m,imgIdMobile:h,showNotice:g,imgTitle:f,imgAltText:y,caption:T}=e,H=at(),M=(0,a.useRef)(null),{createErrorNotice:x}=(0,r.useDispatch)("core/notices"),{isDynamicEnabled:k,data:v}=Zc({attributeValue:f}),{isDynamicEnabled:_,data:R}=Zc({attributeValue:y}),{isDynamicEnabled:S,data:W}=Zc({attributeValue:T});(0,a.useEffect)(()=>{k&&i({imgTitle:v}),_&&i({imgAltText:R | |
| 2092 | -}),S&&i({caption:W})},[v,R,W]);const U=!!c&&(0,L.jsx)("img",{alt:(0,z.__)("Edit image","ablocks"),title:(0,z.__)("Edit image","ablocks"),className:"edit-image-preview",src:c});let P="";return P=m?(0,z.__)("You have different image for Tablet. Do you want to use this image for all devices?","ablocks"):m&&h?(0,z.__)("You have different image for Tablet & Mobile. Do you want to use this image for all devices?","ablocks"):(0,z.__)("You have different image for Mobile. Do you want to use this image for all devices?","ablocks"),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(hy,{...t,addCaptionRef:M}),(0,L.jsxs)(Nb.A,{blockId:b,name:py,attributes:e,children:[g&&(0,L.jsxs)(A.Notice,{className:"ablocks-show-image-replace-all-notice",status:"info",isDismissible:!1,children:[(0,L.jsx)("p",{children:P}),(0,L.jsx)(A.Button,{isPrimary:!0,onClick:()=>i({imgId:p,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:c,imgUrlTablet:c,imgUrlMobile:c,showNotice:!1}),children:(0, | |
| 2093 | -z.__)("Use this image for all devices","ablocks")}),(0,L.jsx)(A.Button,{isSecondary:!0,onClick:()=>i({showNotice:!1}),children:(0,z.__)("skip","ablocks")})]}),(0,L.jsx)(uy,{currentImageData:s,attributeValue:e._image,attributes:e,context:o,setAttributes:i,attributeName:"_image",isResponsive:!0,block_id:b,isSelected:n,addCaptionRef:M}),(0,L.jsx)(C.MediaPlaceholder,{labels:{title:(0,z.__)("Image","ablocks"),instructions:(0,z.__)("Upload an image file, pick one from your media library, or add one with a URL.","ablocks")},onSelect:t=>{t&&t.url?wd(t,e,i,H):i({imgUrl:"",imgUrlTablet:"",imgUrlMobile:""})},onSelectURL:t=>function(t){i({["imgId"+H]:b?.split("-")[0],["imgUrl"+H]:t})}(t),accept:"image/*",onError:t=>{i({imgUrl:"",imgUrlTablet:"",imgUrlMobile:""}),x(t.message||(0,z.__)("This file type is not supported.","ablocks"),{type:"snackbar",isDismissible:!0})},allowedTypes:["image"],value:{url:c},mediaPreview:U,disableMediaButtons:c})]})]})}gy.propTypes={};const fy=(t,e="")=>{const i=(0, | |
| 2094 | -M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},yy=(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},Ty=(t,e="")=>{const{opacity:i,onHoverImg:o}=t,a={},l={...(0,Ob.qD)({attributeValue:i,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})};if(t["imgUrl"+e]){if(a["max-width"]="100%",a.transition="0.3s ease",a["box-sizing"]="border-box",""!==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{...a,...l,...(0,y.qD)(n,e),...(0,ay.qD)(t?.cssFilter,e),...(0,H.qD)(t?.boxShadow,e)}},Hy=(t,e="")=>{const{onHoverImg:i,opacityH:o}=t,a={},l={...(0,Ob.qD)({ | |
| 2095 | -attributeValue:o,defaultValue:"",property:"opacity",unitDefaultValue:"",device:e})},n={...(0,Ob.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},s={...(0,Ob.qD)({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), | |
| 2096 | -(t.border?.transitionDuration||t.boxShadow?.transitionDuration||s.filterTransitionDuration||n.transitionDuration)&&(a.transition=`\n\t\t\t\tborder ${t.border?.transitionDuration||n.transitionDuration}s, \n\t\t\t\tbox-shadow ${t.boxShadow?.transitionDuration||n.transitionDuration}s,\n\t\t\t\topacity ${s.filterTransitionDuration}s, \n\t\t\t\tfilter ${s.filterTransitionDuration}s, \n\t\t\t\ttransform 0.3s\n\t\t\t`));const r=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...a,...l,...(0,y.a9)(r,e),...(0,ay.qD)(t?.cssHoverFilter,e),...(0,H.a9)(t?.boxShadow,e)}},My=(t,e="")=>{const{captionColor:i,captionBackground:o,captionPosition:a,captionPadding:l,captionAlignment:n,captionTypography:s,captionBorder:r}=t,b={};""!==i&&void 0!==i&&(b.color=(0,gs.qD)(t?.captionColor)),""!==o&&void 0!==o&&(b.background=(0,gs.qD)(t?.captionBackground)),""!==a&&"overlap"===a&&(b.width="100%",b.position="absolute",b.bottom=0,b.left=0);const d=(0,M.Zy)(l,{unit:"px"}),u=(0,M.Zy)(r,{unitWidth:"px", | |
| 2097 | -unitRadius:"px"}),p=(0,M.Zy)(s,{weight:"400"}),m=t.captionTypographyGlobal?t.captionTypographyGlobal:[];return{...b,...(0,c.qD)(d,"padding",e),...(0,Gt.qD)(n,"text-align",e),...(0,y.qD)(u,e),...(0,P.qD)(p,e,m),...(0,y.qD)(r,e)}},xy=(t,e="")=>{const{captionBorder:i}=t,o=(0,M.Zy)(i,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(o,e)}};function ky(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,caption:r,imgTitle:b,imgAltText:c,onHoverImg:d,imgCaption:u,captionAlignment:p,imgLink:{linkDestination:m="",href:h="",linkTarget:g="",rel:f=""},widthHeightWidget:{width:y,height:T,imgNaturalWidth:H,imgNaturalHeight:M}}=e,x=o&&(0,L.jsxs)("picture",{children:[(0,L.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,L.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,L.jsx)("img",{src:n||a||o,className:s()(`ablocks-image-mobile ablocks-image--effect ablocks-image--effect-${d}`),alt:c,width:y||H, | |
| 2098 | -height:T||M,title:b,loading:"lazy"})]}),k=(0,L.jsx)(L.Fragment,{children:!C.RichText.isEmpty(r)&&(0,L.jsx)(C.RichText.Content,{tagName:"figcaption",className:s()("ablocks-image-caption",`ablocks-image-caption--${p?.value}`),value:r})}),v=h?(0,L.jsx)("a",{className:"ablocks-image--layout-overlay-link",href:h,target:g?"_blank":"_self",rel:f||"noopener noreferrer",children:x}):x;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:py,attributes:e,children:(0,L.jsxs)("figure",{className:"ablocks-image-figure",children:[""!==m&&"custom"===m?v:x,u&&k]})})})}ky.propTypes={};function vy(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,caption:r,imgTitle:b,imgAltText:c,onHoverImg:d,imgCaption:u,captionAlignment:p,imgLink:{linkDestination:m="",href:h="",linkTarget:g="",rel:f=""},widthHeightWidget:{width:y,height:T,imgNaturalWidth:H,imgNaturalHeight:M}}=e,x=o&&(0,L.jsxs)("picture",{children:[(0,L.jsx)("source",{media:"(min-width:800px)", | |
| 2099 | -className:"ablocks-image",srcSet:o}),(0,L.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,L.jsx)("img",{src:n||a||o,className:s()(`ablocks-image-mobile ablocks-image--effect ablocks-image--effect-${d}`),alt:c,width:y||H,height:T||M,title:b,loading:"lazy"})]}),k=(0,L.jsx)(L.Fragment,{children:!C.RichText.isEmpty(r)&&(0,L.jsx)(C.RichText.Content,{tagName:"figcaption",className:s()("ablocks-image-caption",`ablocks-image-caption--${p?.value}`),value:r})}),v=h?(0,L.jsx)("a",{className:"ablocks-image--layout-overlay-link",href:h,target:g?"_blank":"_self",rel:f||"noopener noreferrer",children:x}):x;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:"ablocks/image",attributes:e,children:(0,L.jsxs)("figure",{className:"ablocks-image-figure",children:[""!==m&&"custom"===m?v:x,u&&k]})})})}vy.propTypes={},(0,M.xV)(py)&&(0,o.registerBlockType)(py,{title:"Image",attributes:{block_id:{type:"string",default:""},blockVersion:{type:"number", | |
| 2100 | -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:""}},imageDataAttribute:{type:"object",default:[]},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object",default:{value:"default", | |
| 2101 | -valueTablet:"",valueMobile:""}},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below"},caption:{type:"string",default:""},captionBackground:{type:"string",default:""},captionColor:{type:"string",default:""},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:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"", | |
| 2102 | -transitionDuration:"0"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionTypographyGlobal:{type:"string",default:""},captionTypography:{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"}},captionPosition:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},captionPadding:{type:"object",default:{isLinked:!0, | |
| 2103 | -isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},captionBorder:{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:"", | |
| 2104 | -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:"", | |
| 2105 | -unitRadiusHMobile:"",transitionDuration:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 2106 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 2107 | -bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},transitionDuration:{type:"number",default:.5},filterTransitionDuration:{type:"number",default:.5},_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:"", | |
| 2108 | -widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 2109 | -unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"", | |
| 2110 | -positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 2111 | -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:"", | |
| 2112 | -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:"", | |
| 2113 | -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:{ | |
| 2114 | -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"}}, | |
| 2115 | -_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"}}},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-image"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,[n,s]=(0,a.useState)({}),{block_id:r}=i;(0,a.useEffect)(()=>{r&&r===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[r,l]);const c=(0,a.useMemo)(()=>{let t=null | |
| 2116 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",fy(i),fy(i,"Tablet"),fy(i,"Mobile")),t.addClassStyles("{{WRAPPER}}",yy(i),yy(i,"Tablet"),yy(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure img",Ty(i),Ty(i,"Tablet"),Ty(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure img:hover",Hy(i),Hy(i,"Tablet"),Hy(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure .ablocks-image-caption",My(i),My(i,"Tablet"),My(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure .ablocks-image-caption:hover",xy(i),xy(i,"Tablet"),xy(i,"Mobile")),(0,b.applyFilters)("ablocks.image.editorInlineCSS",null,i,t)||t.generateCSS())},[i]),d={currentImageData:n,setCurrentImageData:s};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:c}),e&&(0,L.jsx)(cy,{...d,...t}),(0,L.jsx)(gy,{...d,...t})]})},save:ky, | |
| 2117 | -deprecated:[{attributes:{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:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object",default:{value:"default", | |
| 2118 | -valueTablet:"",valueMobile:""}},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below"},caption:{type:"string",default:""},captionBackground:{type:"string",default:""},captionColor:{type:"string",default:""},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:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"", | |
| 2119 | -transitionDuration:"0"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionTypography:{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"}},captionPosition:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},captionPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"", | |
| 2120 | -top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},captionBorder:{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:"", | |
| 2121 | -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:""}},border:{ | |
| 2122 | -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:"", | |
| 2123 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"", | |
| 2124 | -rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},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:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"", | |
| 2125 | -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, | |
| 2126 | -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:"", | |
| 2127 | -hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"", | |
| 2128 | -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, | |
| 2129 | -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:"", | |
| 2130 | -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, | |
| 2131 | -maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1}, | |
| 2132 | -_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:vy}]});const _y=[{label:(0,z.__)("Horizontal","ablocks"),value:"horizontal"},{label:(0,z.__)("Vertical","ablocks"),value:"vertical"}],Ry=[{label:(0,z.__)("Middle","ablocks"),value:45},{label:(0,z.__)("Top","ablocks"),value:10},{label:(0,z.__)("Bottom","ablocks"),value:90}],Sy=[{label:(0,z.__)("Center","ablocks"),value:45},{label:(0,z.__)("Left","ablocks"),value:5},{label:(0,z.__)("Right","ablocks"),value:95}];var Wy=i(60980);function Uy(t){const{attributes:e,setAttributes:i}=t,{sliderPosition:o,sliderOrientation:a,showLabels:n,beforeImageLabel:s,afterImageLabel:r,swapImages:b,showHandle:c,moveOnHover:d,labelPosition:u,labelBgColor:p,labelTextColor:m,labelWithOverlay:h,labelOnHover:g,sliderBarSize:f,sliderIconSize:y,sliderIconBorderSize:T,handleColor:H,labelBorder:M,labelOverlayColor:x}=e;return(0,L.jsx)(l().Fragment,{children:(0, | |
| 2133 | -L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/add-and-customize-image-comparison/",children:[(0,L.jsxs)(D,{title:(0,z.__)("Settings","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Orientation","ablocks"),isResponsive:!1,options:_y,attributeName:"sliderOrientation",attributeValue:a,setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Swap Imgaes","ablocks"),attributeValue:b,setAttributes:i,attributeName:"swapImages"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Move on Hover","ablocks"),attributeValue:d,setAttributes:i,attributeName:"moveOnHover"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Handle","ablocks"),attributeValue:c,setAttributes:i,attributeName:"showHandle"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Labels","ablocks"),attributeValue:n,setAttributes:i,attributeName:"showLabels"}),(0,L.jsx)(vt,{label:(0,z.__)("Slider Position","ablocks"),min:0,max:100,step:1, | |
| 2134 | -isInline:!1,isResponsive:!1,attributeName:"sliderPosition",attributeValue:o,setAttributes:i}),(0,L.jsx)("br",{})]}),n&&(0,L.jsx)(D,{title:(0,z.__)("Label","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Before Image Label","ablocks"),attributeName:"beforeImageLabel",attributeValue:s,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("After Image Label","ablocks"),attributeName:"afterImageLabel",attributeValue:r,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Label position","ablocks"),isResponsive:!1,options:"horizontal"===a?Ry:Sy,attributeName:"labelPosition",attributeValue:u,setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show only on Hover","ablocks"),attributeValue:g,setAttributes:i,attributeName:"labelOnHover"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Label with Overlay","ablocks"),attributeValue:h,setAttributes:i,attributeName:"labelWithOverlay"})]}),style:(0,L.jsxs)(L.Fragment,{ | |
| 2135 | -children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeName:"labelTextColor",attributeValue:m,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"labelBgColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Overlay Color","ablocks"),attributeName:"labelOverlayColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Label Border Options:","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"labelBorder",attributeValue:M,setAttributes:i})]})})}),(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(D,{title:(0,z.__)("Handle","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Handle Color","ablocks"),attributeName:"handleColor",attributeValue:H,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Slider Bar Size","ablocks"),min:1,max:50,step:1,isInline:!1,isResponsive:!0,attributeName:"sliderBarSize",attributeValue:f,setAttributes:i,attributeDefaultValue:Wy.gR}),c&&(0,L.jsx)(vt,{ | |
| 2136 | -label:(0,z.__)("Slider Icon Size","ablocks"),min:10,max:500,step:5,isInline:!1,isResponsive:!0,attributeName:"sliderIconSize",attributeValue:y,setAttributes:i,attributeDefaultValue:Wy.eK}),c&&(0,L.jsx)(vt,{label:(0,z.__)("Slider Icon Border Size","ablocks"),min:0,max:50,step:1,isInline:!1,isResponsive:!0,attributeName:"sliderIconBorderSize",attributeValue:T,setAttributes:i,attributeDefaultValue:Wy.cW})]})})]})})})}Uy.propTypes={};const Py={UU:"ablocks/image-comparison",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},beforeImage:{type:"string",default:""},afterImage:{type:"string",default:""},sliderOrientation:{type:"string",default:"horizontal"},showLabels:{type:"boolean",default:!1},labelPosition:{type:"number",default:45},labelBgColor:{type:"string",default:"rgba(0, 0, 0, 0.5)"},labelTextColor:{type:"string",default:"white"},labelWithOverlay:{type:"boolean",default:!1},labelOverlayColor:{type:"string",default:"rgba(0, 0, 0, 0.5)"},labelBorderType:{ | |
| 2137 | -type:"string",default:"solid"},labelOnHover:{type:"boolean",default:!1},beforeImageLabel:{type:"string",default:"Before"},afterImageLabel:{type:"string",default:"After"},showHandle:{type:"boolean",default:!0},moveOnHover:{type:"boolean",default:!1},handleColor:{type:"string",default:"white"},swapImages:{type:"boolean",default:!1},sliderPosition:{type:"number",default:50},sliderBarSize:{type:"object",default:{value:4,valueTablet:"",valueMobile:""}},sliderIconSize:{type:"object",default:{value:50,valueTablet:"",valueMobile:""}},sliderIconBorderSize:{type:"object",default:{value:2,valueTablet:"",valueMobile:""}},labelBorder:{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:"", | |
| 2138 | -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, | |
| 2139 | -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:"",rightMobile:"",bottomMobile:"",leftMobile:"", | |
| 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){ | |
| 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 | +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 | +["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 | +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", | |
| 2085 | +onChangeHandler:t=>{const e={};if(t&&!isNaN(t))e.widthHeightWidget={...U,["height"+j]:t,["showHeight"+j]:!0},z&&(e.aspectRatio={...g,["ratio"+j]:z/t,["value"+j]:void 0});else if(e.widthHeightWidget={...U,["height"+j]:"",["showHeight"+j]:!1},z){const t=n?.media_details?.width,i=n?.media_details?.height;e.aspectRatio={...g,["ratio"+j]:t/i,["value"+j]:"original"}}i(e)},isInline:!1,disableDynamicContent:!0,isResponsive:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Object fit","ablocks"),isResponsive:!0,options:py,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:b}),(0,I.jsx)(Ut,{label:(0,L.__)("Link","ablocks"),options:uy,attributeObjectKey:"linkDestination",attributeValue:e?.imgLink,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,linkDestination:t}})}}),"custom"===W&&(0, | |
| 2086 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Image link","ablocks"),attributeName:"imgLink",attributeValue:P,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,{attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1,context:b})]}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("On Hover image","ablocks"),options:my, | |
| 2087 | +attributeName:"onHoverImg",attributeValue:e.onHoverImg,setAttributes:i})]}),X=(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:T,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:m,setAttributes:i,attributeDefaultValue:Dd.ke})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:H,attributeName:"cssHoverFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:h,setAttributes:i,attributeDefaultValue:Dd.md}),(0,I.jsx)(_t,{label:(0,L.__)("Transition duration(ms)","ablocks"), | |
| 2088 | +min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:S,attributeDefaultValue:Dd.yy})]})}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{margin:"20"}),(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:M,setAttributes:i})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-image-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Image","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:Y,style:X})}),(0,I.jsx)(V,{title:(0,L.__)("Caption","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{ | |
| 2089 | +children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Captions","ablocks"),attributeValue:e?.imgCaption,setAttributes:i,attributeName:"imgCaption"}),e.imgCaption&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Caption text","ablocks"),attributeName:"caption",attributeValue:e.caption,setAttributes:i,isInline:!1,context:b}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"captionAlignment",attributeValue:y,setAttributes:i,isInline:!1})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"captionColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background color","ablocks"),attributeName:"captionBackground",attributeValue:k,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"captionTypography",attributeValue:v,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0, | |
| 2090 | +attributeName:"captionPadding",attributeValue:_,setAttributes:i}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"captionBorder",attributeValue:R,setAttributes:i})]})})})]})})})}function fy(t){const{toggleSelection:e}=(0,r.useDispatch)(D.store),{setAttributes:i,isSelected:o,attributes:a,context:l,containerRef:n,currentImageData:s={}}=t,{imgAltText:c,imgTitle:d,alignment:u,imgSize:p,widthHeightWidget:m}=a,h=lt(),g="Mobile"===h?p.valueMobile||p.valueTablet||p.value:"large",f="Tablet"===h?p.valueTablet||p.value:g,y=h?f:p.value,T=s?.media_details?.sizes?.[y]||{},H=T.width||1,M=T.height||1,x=m["width"+h],k=m["height"+h],v=m["showHeight"+h];let _=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a[`imgUrl${h}`]}),R=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a.imgUrlMobile}),S=(0, | |
| 2091 | +b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a.imgUrlTablet}),W=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:a.imgUrl});const P=_||R||S||W,{maxWidth:U}=(0,r.useSelect)(t=>{const{getSettings:e}=t(D.store),{maxWidth:i}=e();return{maxWidth:i}},[]),j=2*U,w=H/M,z=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{o(t.current.offsetWidth);const e=()=>{o(t.current.offsetWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(n,[u,h]),C=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{o(t.current.offsetHeight);const e=()=>{o(t.current.offsetHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(n,[u,h]);let A=!0,L=!1;"center"===u?.value?(A=!0,L=!0):"right"===u?.value&&(A=!1,L=!0);const V=x?parseInt(x):"auto",O=k?parseInt(k):"auto";return(0,I.jsx)(N.ResizableBox,{size:{width:V, | |
| 2092 | +height:O},showHandle:o,minHeight:50,minWidth:50,maxWidth:j,maxHeight:j/w,lockAspectRatio:!0,enable:{top:!1,bottom:!0,left:L,right:A},onResizeStop:(t,o,l,n)=>{const s=Math.max(50,Math.min(j,("auto"===V?z:V)+n.width)),r=Math.max(50,Math.min(j/w,("auto"===O?C:O)+n.height)),b={...a?.widthHeightWidget,["width"+h]:s,["height"+h]:r,["showHeight"+h]:!1};i({widthHeightWidget:b}),e(!0)},onResizeStart:function(){e(!1)},children:(0,I.jsx)("img",{src:P,alt:c,title:d,loading:"lazy",style:{width:"100%",height:v?"100%":"auto"}})})}function yy(t){const e=(0,a.useRef)(),{setAttributes:i,attributes:o,context:l,addCaptionRef:n}=t,{imgUrl:s,caption:r,imgCaption:c,imgLink:{linkDestination:d,href:u,linkTarget:p}}=o;let m=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:l,attributeValue:s});const h=(t,e)=>i({[e]:t}),g=t=>{t.preventDefault()};let f;return m&&(f=(0,I.jsx)(fy,{...t,containerRef:e})),m&&"custom"===d&&(f=(0,I.jsx)("a",{href:u,target:p,onClick:g,children:(0,I.jsx)(fy,{...t, | |
| 2093 | +containerRef:e})})),m&&c&&(f=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(fy,{...t,containerRef:e}),(0,I.jsx)(D.RichText,{tagName:"figcaption",className:"ablocks-image-caption","aria-label":(0,L.__)("Image caption text","ablocks"),placeholder:(0,L.__)("Add caption","ablocks"),value:r,ref:n,onChange:t=>h(t,"caption")})]})),m&&c&&"custom"===d&&(f=(0,I.jsxs)("a",{href:u,target:p,onClick:g,children:[(0,I.jsx)(fy,{...t,containerRef:e}),(0,I.jsx)(D.RichText,{tagName:"figcaption",className:"ablocks-image-caption","aria-label":(0,L.__)("Image caption text","ablocks"),placeholder:(0,L.__)("Add caption","ablocks"),value:r,onChange:t=>h(t,"caption")})]})),(0,I.jsx)("figure",{className:"ablocks-image-figure",ref:e,children:(s||"").startsWith("ablocks_dc:")&&!m?(0,I.jsx)("h2",{children:(0,L.__)("No Data","ablocks")}):f})}gy.propTypes={},fy.propTypes={},yy.propTypes={};const Ty="ablocks/image",Hy=(0,I.jsx)(zc.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)(zc.Path,{ | |
| 2094 | +fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function My(t){const{attributes:e,setAttributes:i,isSelected:o,block_id:a}=t,{imgId:l,imgIdTablet:n,imgIdMobile:s,imgCaption:b,imgUrl:c,imgLink:{linkDestination:d,href:u,linkTarget:p,rel:m,linkClass:h},alignment:g}=e,f=lt();let y;y="Tablet"===f?n:"Mobile"===f?s:l;const{createNotice:T}=(0,r.useDispatch)("core/notices"),{image:H}=(0,r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:y&&o?e(y):null}},[l,n,s,o]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(D.BlockControls,{group:"block",children:[(0,I.jsx)(Jc,{attributeValue:g,setAttributes:i}),l&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.__experimentalImageURLInputUI,{url:u||"",onChangeUrl:function(t){i({imgLink:{...e?.imgLink,...t}})},linkDestination:d, | |
| 2095 | +mediaUrl:H&&H.source_url||c,mediaLink:H&&H.link,linkTarget:p,linkClass:h,rel:m}),(0,I.jsx)(N.ToolbarButton,{icon:Hy,label:(0,L.__)("Add caption","ablocks"),isPressed:b,onClick:()=>{i({imgCaption:!b})}})]})]}),l&&(0,I.jsx)(D.BlockControls,{group:"other",children:(0,I.jsx)(D.MediaReplaceFlow,{mediaId:["imgId"+f],mediaURL:c,allowedTypes:["image"],accept:"image/*",onSelect:t=>Nd(t,e,i,f),onSelectURL:function(t){i({["imgId"+f]:a?.split("-")[0],["imgUrl"+f]:t})},onError:function(t){T("error",t,{type:"snackbar"})}})})]})}function xy(t){const{attributes:e,setAttributes:i,context:o,isSelected:n,currentImageData:s}=t,{block_id:b,imgUrl:c,imgUrlTablet:d,imgUrlMobile:u,imgId:p,imgIdTablet:m,imgIdMobile:h,showNotice:g,imgTitle:f,imgAltText:y,caption:T}=e,H=lt(),M=(0,a.useRef)(null),{createErrorNotice:x}=(0,r.useDispatch)("core/notices"),{isDynamicEnabled:k,data:v}=id({attributeValue:f}),{isDynamicEnabled:_,data:R}=id({attributeValue:y}),{isDynamicEnabled:S,data:W}=id({attributeValue:T});(0, | |
| 2096 | +a.useEffect)(()=>{k&&i({imgTitle:v}),_&&i({imgAltText:R}),S&&i({caption:W})},[v,R,W]);const P=!!c&&(0,I.jsx)("img",{alt:(0,L.__)("Edit image","ablocks"),title:(0,L.__)("Edit image","ablocks"),className:"edit-image-preview",src:c});let U="";return U=m?(0,L.__)("You have different image for Tablet. Do you want to use this image for all devices?","ablocks"):m&&h?(0,L.__)("You have different image for Tablet & Mobile. Do you want to use this image for all devices?","ablocks"):(0,L.__)("You have different image for Mobile. Do you want to use this image for all devices?","ablocks"),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(My,{...t,addCaptionRef:M}),(0,I.jsxs)(Yb.A,{blockId:b,name:Ty,attributes:e,children:[g&&(0,I.jsxs)(N.Notice,{className:"ablocks-show-image-replace-all-notice",status:"info",isDismissible:!1,children:[(0,I.jsx)("p",{children:U}),(0,I.jsx)(N.Button,{isPrimary:!0,onClick:()=>i({imgId:p,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:c,imgUrlTablet:c,imgUrlMobile:c, | |
| 2097 | +showNotice:!1}),children:(0,L.__)("Use this image for all devices","ablocks")}),(0,I.jsx)(N.Button,{isSecondary:!0,onClick:()=>i({showNotice:!1}),children:(0,L.__)("skip","ablocks")})]}),(0,I.jsx)(yy,{currentImageData:s,attributeValue:e._image,attributes:e,context:o,setAttributes:i,attributeName:"_image",isResponsive:!0,block_id:b,isSelected:n,addCaptionRef:M}),(0,I.jsx)(D.MediaPlaceholder,{labels:{title:(0,L.__)("Image","ablocks"),instructions:(0,L.__)("Upload an image file, pick one from your media library, or add one with a URL.","ablocks")},onSelect:t=>{t&&t.url?Nd(t,e,i,H):i({imgUrl:"",imgUrlTablet:"",imgUrlMobile:""})},onSelectURL:t=>function(t){i({["imgId"+H]:b?.split("-")[0],["imgUrl"+H]:t})}(t),accept:"image/*",onError:t=>{i({imgUrl:"",imgUrlTablet:"",imgUrlMobile:""}),x(t.message||(0,L.__)("This file type is not supported.","ablocks"),{type:"snackbar",isDismissible:!0})},allowedTypes:["image"],value:{url:c},mediaPreview:P,disableMediaButtons:c})]})]})}xy.propTypes={} | |
| 2098 | +;const ky=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},vy=(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},_y=(t,e="")=>{const{opacity:i,onHoverImg:o}=t,a={},l={...(0,Eb.qD)({attributeValue:i,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})};if(t["imgUrl"+e]){if(a["max-width"]="100%",a.transition="0.3s ease",a["box-sizing"]="border-box",""!==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{...a,...l,...(0,y.qD)(n,e),...(0,cy.qD)(t?.cssFilter,e),...(0,H.qD)(t?.boxShadow,e)}},Ry=(t,e="")=>{ | |
| 2099 | +const{onHoverImg:i,opacityH:o}=t,a={},l={...(0,Eb.qD)({attributeValue:o,defaultValue:"",property:"opacity",unitDefaultValue:"",device:e})},n={...(0,Eb.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},s={...(0,Eb.qD)({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), | |
| 2100 | +(t.border?.transitionDuration||t.boxShadow?.transitionDuration||s.filterTransitionDuration||n.transitionDuration)&&(a.transition=`\n\t\t\t\tborder ${t.border?.transitionDuration||n.transitionDuration}s, \n\t\t\t\tbox-shadow ${t.boxShadow?.transitionDuration||n.transitionDuration}s,\n\t\t\t\topacity ${s.filterTransitionDuration}s, \n\t\t\t\tfilter ${s.filterTransitionDuration}s, \n\t\t\t\ttransform 0.3s\n\t\t\t`));const r=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...a,...l,...(0,y.a9)(r,e),...(0,cy.qD)(t?.cssHoverFilter,e),...(0,H.a9)(t?.boxShadow,e)}},Sy=(t,e="")=>{const{captionColor:i,captionBackground:o,captionPosition:a,captionPadding:l,captionAlignment:n,captionTypography:s,captionBorder:r}=t,b={};""!==i&&void 0!==i&&(b.color=(0,Hs.qD)(t?.captionColor)),""!==o&&void 0!==o&&(b.background=(0,Hs.qD)(t?.captionBackground)),""!==a&&"overlap"===a&&(b.width="100%",b.position="absolute",b.bottom=0,b.left=0);const d=(0,M.Zy)(l,{unit:"px"}),u=(0,M.Zy)(r,{unitWidth:"px", | |
| 2101 | +unitRadius:"px"}),p=(0,M.Zy)(s,{weight:"400"}),m=t.captionTypographyGlobal?t.captionTypographyGlobal:[];return{...b,...(0,c.qD)(d,"padding",e),...(0,Zt.qD)(n,"text-align",e),...(0,y.qD)(u,e),...(0,U.qD)(p,e,m),...(0,y.qD)(r,e)}},Wy=(t,e="")=>{const{captionBorder:i}=t,o=(0,M.Zy)(i,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(o,e)}};function Py(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,caption:r,imgTitle:b,imgAltText:c,onHoverImg:d,imgCaption:u,captionAlignment:p,imgLink:{linkDestination:m="",href:h="",linkTarget:g="",rel:f=""},widthHeightWidget:{width:y,height:T,imgNaturalWidth:H,imgNaturalHeight:M}}=e,x=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()(`ablocks-image-mobile ablocks-image--effect ablocks-image--effect-${d}`),alt:c,width:y||H, | |
| 2102 | +height:T||M,title:b,loading:"lazy"})]}),k=(0,I.jsx)(I.Fragment,{children:!D.RichText.isEmpty(r)&&(0,I.jsx)(D.RichText.Content,{tagName:"figcaption",className:s()("ablocks-image-caption",`ablocks-image-caption--${p?.value}`),value:r})}),v=h?(0,I.jsx)("a",{className:"ablocks-image--layout-overlay-link",href:h,target:g?"_blank":"_self",rel:f||"noopener noreferrer",children:x}):x;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Ty,attributes:e,children:(0,I.jsxs)("figure",{className:"ablocks-image-figure",children:[""!==m&&"custom"===m?v:x,u&&k]})})})}Py.propTypes={};function Uy(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,caption:r,imgTitle:b,imgAltText:c,onHoverImg:d,imgCaption:u,captionAlignment:p,imgLink:{linkDestination:m="",href:h="",linkTarget:g="",rel:f=""},widthHeightWidget:{width:y,height:T,imgNaturalWidth:H,imgNaturalHeight:M}}=e,x=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)", | |
| 2103 | +className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()(`ablocks-image-mobile ablocks-image--effect ablocks-image--effect-${d}`),alt:c,width:y||H,height:T||M,title:b,loading:"lazy"})]}),k=(0,I.jsx)(I.Fragment,{children:!D.RichText.isEmpty(r)&&(0,I.jsx)(D.RichText.Content,{tagName:"figcaption",className:s()("ablocks-image-caption",`ablocks-image-caption--${p?.value}`),value:r})}),v=h?(0,I.jsx)("a",{className:"ablocks-image--layout-overlay-link",href:h,target:g?"_blank":"_self",rel:f||"noopener noreferrer",children:x}):x;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:"ablocks/image",attributes:e,children:(0,I.jsxs)("figure",{className:"ablocks-image-figure",children:[""!==m&&"custom"===m?v:x,u&&k]})})})}Uy.propTypes={},(0,M.xV)(Ty)&&(0,o.registerBlockType)(Ty,{title:(0,L.__)("Image","ablocks"),attributes:{block_id:{type:"string",default:""}, | |
| 2104 | +blockVersion:{type:"number",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:""}},imageDataAttribute:{type:"object",default:[]},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object", | |
| 2105 | +default:{value:"default",valueTablet:"",valueMobile:""}},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below"},caption:{type:"string",default:""},captionBackground:{type:"string",default:""},captionColor:{type:"string",default:""},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:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"", | |
| 2106 | +spreadH:"",colorH:"",transitionDuration:"0"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionTypographyGlobal:{type:"string",default:""},captionTypography:{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"}},captionPosition:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},captionPadding:{type:"object", | |
| 2107 | +default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},captionBorder:{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:"", | |
| 2108 | +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", | |
| 2109 | +unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0, | |
| 2110 | +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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"", | |
| 2111 | +rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},transitionDuration:{type:"number",default:.5},filterTransitionDuration:{type:"number",default:.5},_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", | |
| 2112 | +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:"", | |
| 2113 | +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", | |
| 2114 | +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:"", | |
| 2115 | +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:"", | |
| 2116 | +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, | |
| 2117 | +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:"", | |
| 2118 | +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:"", | |
| 2119 | +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"}}},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,[n,s]=(0,a.useState)({}),{block_id:r}=i;(0,a.useEffect)(()=>{r&&r===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[r,l]);const c=(0,a.useMemo)(()=>{let t=null | |
| 2120 | +;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}}",ky(i),ky(i,"Tablet"),ky(i,"Mobile"),e(t=>ky(i,t))),t.addClassStyles("{{WRAPPER}}",vy(i),vy(i,"Tablet"),vy(i,"Mobile"),e(t=>vy(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure img",_y(i),_y(i,"Tablet"),_y(i,"Mobile"),e(t=>_y(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure img:hover",Ry(i),Ry(i,"Tablet"),Ry(i,"Mobile"),e(t=>Ry(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure .ablocks-image-caption",Sy(i),Sy(i,"Tablet"),Sy(i,"Mobile"),e(t=>Sy(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-figure .ablocks-image-caption:hover",Wy(i),Wy(i,"Tablet"),Wy(i,"Mobile"),e(t=>Wy(i,t))),(0,b.applyFilters)("ablocks.image.editorInlineCSS",null,i,t)||t.generateCSS()},[i]),d={currentImageData:n, | |
| 2121 | +setCurrentImageData:s};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:c}),e&&(0,I.jsx)(gy,{...d,...t}),(0,I.jsx)(xy,{...d,...t})]})},save:Py,deprecated:[{attributes:{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:"",imgNaturalHeightMobile:"",width:"",widthTablet:"", | |
| 2122 | +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"},caption:{type:"string",default:""},captionBackground:{type:"string",default:""},captionColor:{type:"string",default:""},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:"", | |
| 2123 | +horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},captionTypography:{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"}},captionPosition:{type:"object", | |
| 2124 | +default:{value:"default",valueTablet:"",valueMobile:""}},captionPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},captionBorder:{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:"", | |
| 2125 | +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:"", | |
| 2126 | +rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 2127 | +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,isLinkedTablet:!0,isLinkedMobile:!0,common:"", | |
| 2128 | +top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},transitionDuration:{type:"number",default:.5},filterTransitionDuration:{type:"number",default:.5},_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:"", | |
| 2140 | 2129 | 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:"", |
| 2141 | 2130 | 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:""}}, |
| 2142 | 2131 | _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:"", |
| 2143 | 2132 | 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", |
| @@ -2142,100 +2131,117 @@ | ||
| 2142 | 2131 | _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:"", |
| 2143 | 2132 | 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", |
| 2144 | 2133 | 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:"", |
| 2145 | 2134 | 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:"", |
| 2146 | -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:"", | |
| 2147 | -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 jy(t){ | |
| 2148 | -const{attributes:e,setAttributes:i}=t,{block_id:o,beforeImage:n,afterImage:r,sliderPosition:b,sliderOrientation:c,showLabels:d,beforeImageLabel:u,afterImageLabel:p,swapImages:m,showHandle:h,moveOnHover:g,labelWithOverlay:f,labelOnHover:y}=e,{isDynamicEnabled:T,data:H}=Zc({attributeValue:u}),{isDynamicEnabled:M,data:x}=Zc({attributeValue:p}),[k,v]=(0,a.useState)(!1),[_,R]=(0,a.useState)(!1),[S,W]=(0,a.useState)(!1),[U,P]=(0,a.useState)(!1),[j,w]=(0,a.useState)(""),D=t=>{v(!0),t.url.includes("blob")||(i({beforeImage:t.url}),v(!1))},N=t=>{R(!0),t.url.includes("blob")||(i({afterImage:t.url}),R(!1))};(0,a.useEffect)(()=>{if(n&&r){const t=new window.Image;t.src=n;const e=new window.Image;e.src=r,t.onload=()=>{e.onload=()=>{t.width===e.width&&t.height===e.height||W(!0)}}}},[n,r]);const I=()=>{W(!1),P(!0),(async(t,e,i,o,a)=>{const l=new window.Image;l.src=t,l.onload=async()=>{const n=new window.Image;n.src=e;const s=n.width,r=n.height,b=l.height,c=l.width;if(b===r&&c===s)return | |
| 2149 | -;const d=((t,e,i)=>{const o=document.createElement("canvas");return o.width=e,o.height=i,o.getContext("2d").drawImage(t,0,0,e,i),o.toDataURL("image/jpeg")})(l,s,r),u=(t=>{const e=atob(t.split(",")[1]),i=new Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);const o=new Uint8Array(i);return new Blob([o],{type:"image/jpeg"})})(d),p=new FormData;p.append("file",u,"resized-image.jpg"),p.append("title",t.title||"Resized Image"),p.append("_wpnonce",wpApiSettings.nonce);let m=0,h=!1;for(;m<3&&!h;)try{const t=await fetch(`${wpApiSettings.root}wp/v2/media`,{method:"POST",headers:{Authorization:`Bearer ${wpApiSettings.nonce}`},body:p});if(500===t.status){m++;continue}const e=await t.json();e&&e.id&&e.source_url&&(i(e.source_url),h=!0,o("success"),a(!1))}catch(t){m++}h||(o("error"),a(!1))}})(r,n,t=>{i({afterImage:t})},w,P)},V=()=>{W(!1)};(0,a.useEffect)(()=>{i({beforeImage:r,afterImage:n})},[m]);const O=(0,a.useRef)(null),Y=(0,a.useRef)(null);return(0,a.useEffect)(()=>{ | |
| 2150 | -const t=O.current,e=Y.current;if(g&&t&&e){const o=t=>{let o;if("horizontal"===c){const i=e.getBoundingClientRect(),a=t.clientX-i.left;o=Math.round(a/i.width*100)}else{const i=e.getBoundingClientRect(),a=t.clientY-i.top;o=Math.round(a/i.height*100)}o=Math.max(0,Math.min(100,o)),i({sliderPosition:o})};return t.addEventListener("mousemove",o),()=>{t.removeEventListener("mousemove",o)}}},[c,g]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsxs)(C.BlockControls,{group:"other",children:[(0,L.jsx)(C.MediaReplaceFlow,{name:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--left-image"}),mediaURL:n,allowedTypes:["image"],accept:"image/*",onSelect:D}),(0,L.jsx)(C.MediaReplaceFlow,{name:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--right-image"}),mediaURL:r,allowedTypes:["image"],accept:"image/*",onSelect:N})]}),(0,L.jsxs)(Nb.A,{blockId:o,name:Py.UU,attributes:e,children:[S&&(0,L.jsxs)(A.Notice,{status:"info",isDismissible:!1,children:[(0,L.jsx)("p",{children:(0, | |
| 2151 | -z.__)("The images have different dimensions. Would you like to balance them?","ablocks")}),(0,L.jsx)(A.Button,{isPrimary:!0,onClick:I,children:(0,z.__)("Balance Images","ablocks")}),(0,L.jsx)(A.Button,{isSecondary:!0,onClick:V,children:(0,z.__)("Skip","ablocks")})]}),!S&&"error"===j&&(0,L.jsxs)(A.Notice,{status:"error",isDismissible:!1,children:[(0,L.jsx)("p",{children:(0,z.__)("An error occurred while balancing the images. Please try again.","ablocks")}),(0,L.jsx)(A.Button,{isPrimary:!0,onClick:I,children:(0,z.__)("Try Again","ablocks")}),(0,L.jsx)(A.Button,{isSecondary:!0,onClick:V,children:(0,z.__)("Cancel","ablocks")})]}),U?(0,L.jsx)(A.Spinner,{}):(0,L.jsxs)("div",{className:s()("horizontal"===c&&"ablocks-image-comparison__images-container","vertical"===c&&"ablocks-image-comparison__images-container-vertical"),ref:Y,children:[k?(0,L.jsx)(A.Spinner,{}):(0,L.jsx)(L.Fragment,{children:n?(0,L.jsx)("img",{className:"ablocks-image-comparison__before-image",src:n,alt:(0, | |
| 2152 | -z.__)("Before","ablocks")}):(0,L.jsx)(C.MediaPlaceholder,{icon:"format-image",labels:{title:(0,z.__)("Before Image","ablocks"),instructions:(0,z.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>D(t),accept:"image/*",allowedTypes:["image"]})}),_?(0,L.jsx)(A.Spinner,{}):(0,L.jsx)(L.Fragment,{children:r?(0,L.jsx)("img",{className:"ablocks-image-comparison__after-image",src:r,alt:(0,z.__)("After","ablocks")}):(0,L.jsx)(C.MediaPlaceholder,{icon:"format-image",labels:{title:(0,z.__)("After Image","ablocks"),instructions:(0,z.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>N(t),accept:"image/*",allowedTypes:["image"]})}),n&&r&&(0,L.jsx)("div",{className:"ablocks-image-comparison__slider-line"}),n&&r&&h&&(0,L.jsx)("div",{className:"ablocks-image-comparison__slider-icon",children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5", | |
| 2153 | -stroke:"currentColor",className:"w-6 h-6",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})}),n&&r&&(0,L.jsx)("input",{"aria-label":(0,z.__)("Image comparison slider","ablocks"),type:"range",className:s()("ablocks-image-comparison__slider","vertical"===c&&"ablocks-image-comparison__input--vertical"),min:"0",max:"100",value:b,onChange:t=>{i({sliderPosition:parseInt(t.target.value,10)})},ref:O}),d&&n&&r&&(0,L.jsxs)("div",{className:s()(y&&"ablocks-image-comparison__labels"),children:[(0,L.jsx)("div",{className:s()(!y&&f&&"ablocks-image-comparison__overlay",y&&f&&"ablocks-image-comparison__overlay--hover")}),(0,L.jsx)("div",{className:s()("ablocks-image-comparison__beforeImage-label","horizontal"===c&&"ablocks-image-comparison__beforeImage-label--horizontal","vertical"===c&&"ablocks-image-comparison__beforeImage-label--vertical"),children:T?H:u}),(0,L.jsx)("div",{ | |
| 2154 | -className:s()("ablocks-image-comparison__afterImage-label","horizontal"===c&&"ablocks-image-comparison__afterImage-label--horizontal","vertical"===c&&"ablocks-image-comparison__afterImage-label--vertical"),children:M?x:p})]})]})]})]})}jy.propTypes={};const wy=t=>({...(0,Gt.qD)(t?.alignment,"text-align","")}),zy=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"left",unitDefaultValue:"%",device:e}),...(0,Ob.qD)({attributeValue:t.sliderBarSize,attributeObjectKey:"value",defaultValue:4,isResponsive:!0,property:"width",unitDefaultValue:"px",device:e})};return i.background=(0,gs.qD)(t?.handleColor),i},Cy=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"top",unitDefaultValue:"%",device:e}),...(0,Ob.qD)({attributeValue:t.sliderBarSize,attributeObjectKey:"value",defaultValue:4,isResponsive:!0,property:"height",unitDefaultValue:"px",device:e})};return i.background=(0,gs.qD)(t?.handleColor),i},Ay=(t,e="")=>{ | |
| 2155 | -const i={...(0,Ob.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"left",unitDefaultValue:"%",device:e}),...(0,Ob.qD)({attributeValue:t.sliderIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"height",unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t.sliderIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"width",unitDefaultValue:"px",device:e})};return i.border=`${t.sliderIconBorderSize["value"+e]}px solid ${t.handleColor}`,i.color=(0,gs.qD)(t?.handleColor),i},Ly=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"top",unitDefaultValue:"%",device:e}),...(0,Ob.qD)({attributeValue:t.sliderIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"height",unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t.sliderIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"width",unitDefaultValue:"px",device:e})},o={ | |
| 2156 | -...(0,Ob.qD)({attributeValue:t.sliderIconBorderSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:2,property:"border",unitDefaultValue:"px",device:e})};return i.border=`${o.border} solid ${t.handleColor}`,i.color=(0,gs.qD)(t?.handleColor),i},Dy=t=>({background:(0,gs.qD)(t?.labelOverlayColor)}),Ny=(t,e="")=>{const i=(0,M.Zy)(t?.labelBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,gs.qD)(t?.labelTextColor),background:(0,gs.qD)(t?.labelBgColor),...(0,y.qD)(i,e),"max-width":"30%",transform:45===t.labelPosition&&"vertical"===t.sliderOrientation?"translateX(-50%)":95===t.labelPosition&&"vertical"===t.sliderOrientation?"translateX(-100%)":90===t.labelPosition&&"horizontal"===t.sliderOrientation?"translateY(-100%)":"none"}},Iy=(t,e="")=>{const i=(0,M.Zy)(t?.labelBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function Vy(t){ | |
| 2157 | -const{attributes:e}=t,{block_id:i,beforeImage:o,afterImage:a,sliderPosition:n,sliderOrientation:r,showLabels:b,beforeImageLabel:c,afterImageLabel:d,showHandle:u,moveOnHover:p,labelWithOverlay:m,labelOnHover:h}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:Py.UU,attributes:e,children:(0,L.jsxs)("div",{className:s()({"ablocks-image-comparison__images-container":"horizontal"===r,"ablocks-image-comparison__images-container-vertical":"vertical"===r}),"data-ablocks-slider-container":!0,"data-ablocks-move-on-hover":p,"data-ablocks-slider-orientation":r,children:[(0,L.jsx)("img",{className:"ablocks-image-comparison__before-image",src:o,alt:(0,z.__)("Before","ablocks")}),(0,L.jsx)("img",{className:"ablocks-image-comparison__after-image",src:a,alt:(0,z.__)("After","ablocks")}),(0,L.jsx)("div",{className:"ablocks-image-comparison__slider-line"}),o&&a&&u&&(0,L.jsx)("div",{className:"ablocks-image-comparison__slider-icon",children:(0,L.jsx)("svg",{ | |
| 2158 | -xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})}),(0,L.jsx)("input",{"aria-label":(0,z.__)("Image comparison slider","ablocks"),type:"range",className:s()("ablocks-image-comparison__slider",{"ablocks-image-comparison__input--vertical":"vertical"===r}),min:"0",max:"100",defaultValue:n,"data-ablocks-slider-input":!0}),b&&o&&a&&(0,L.jsxs)("div",{className:s()(h&&"ablocks-image-comparison__labels"),children:[(0,L.jsx)("div",{className:s()({"ablocks-image-comparison__overlay":!h&&m,"ablocks-image-comparison__overlay--hover":h&&m})}),(0,L.jsx)("div",{className:s()("ablocks-image-comparison__beforeImage-label",{"ablocks-image-comparison__beforeImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__beforeImage-label--vertical":"vertical"===r}),children:c}),(0,L.jsx)("div",{ | |
| 2159 | -className:s()("ablocks-image-comparison__afterImage-label",{"ablocks-image-comparison__afterImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__afterImage-label--vertical":"vertical"===r}),children:d})]})]})})})}Vy.propTypes={};function Oy(t){const{attributes:e}=t,{block_id:i,beforeImage:o,afterImage:a,sliderPosition:n,sliderOrientation:r,showLabels:b,beforeImageLabel:c,afterImageLabel:d,showHandle:u,moveOnHover:p,labelWithOverlay:m,labelOnHover:h}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:"ablocks/image-comparison",attributes:e,children:(0,L.jsxs)("div",{className:s()({"ablocks-image-comparison__images-container":"horizontal"===r,"ablocks-image-comparison__images-container-vertical":"vertical"===r}),"data-ablocks-slider-container":!0,"data-ablocks-move-on-hover":p,"data-ablocks-slider-orientation":r,children:[(0,L.jsx)("img",{className:"ablocks-image-comparison__before-image",src:o,alt:(0,z.__)("Before","ablocks")}),(0,L.jsx)("img",{ | |
| 2160 | -className:"ablocks-image-comparison__after-image",src:a,alt:(0,z.__)("After","ablocks")}),(0,L.jsx)("div",{className:"ablocks-image-comparison__slider-line"}),o&&a&&u&&(0,L.jsx)("div",{className:"ablocks-image-comparison__slider-icon",children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,L.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})}),(0,L.jsx)("input",{type:"range",className:s()("ablocks-image-comparison__slider",{"ablocks-image-comparison__input--vertical":"vertical"===r}),min:"0",max:"100",defaultValue:n,"data-ablocks-slider-input":!0}),b&&o&&a&&(0,L.jsxs)("div",{className:s()(h&&"ablocks-image-comparison__labels"),children:[(0,L.jsx)("div",{className:s()({"ablocks-image-comparison__overlay":!h&&m,"ablocks-image-comparison__overlay--hover":h&&m})}),(0,L.jsx)("div",{ | |
| 2161 | -className:s()("ablocks-image-comparison__beforeImage-label",{"ablocks-image-comparison__beforeImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__beforeImage-label--vertical":"vertical"===r}),children:c}),(0,L.jsx)("div",{className:s()("ablocks-image-comparison__afterImage-label",{"ablocks-image-comparison__afterImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__afterImage-label--vertical":"vertical"===r}),children:d})]})]})})})}Oy.propTypes={},(0,M.xV)(Py.UU)&&(0,o.registerBlockType)(Py.UU,{title:"Image Comparison",attributes:Py.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--image-comparison"}),edit:function(t){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]);let s=null;if(s?2!==i?.version||s instanceof w?2===i?.version||s instanceof j||(s=new j(i,l)):s=new w(i,l):s=2===i?.version?new w(i,l):new j(i,l), | |
| 2162 | -null===s)return"";s.addClassStyles("{{WRAPPER}}",wy(i),wy(i),wy(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container .ablocks-image-comparison__before-image",(t=>({...{...(0,Ob.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"width",unitDefaultValue:"%",device:""})}}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container-vertical .ablocks-image-comparison__before-image",(t=>({...{...(0,Ob.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"height",unitDefaultValue:"%",device:""})}}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container .ablocks-image-comparison__slider-line",zy(i),zy(i,"Tablet"),zy(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container-vertical .ablocks-image-comparison__slider-line",Cy(i),Cy(i,"Tablet"),Cy(i,"Mobile")), | |
| 2163 | -s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container .ablocks-image-comparison__slider-icon",Ay(i),Ay(i,"Tablet"),Ay(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container-vertical .ablocks-image-comparison__slider-icon",Ly(i),Ly(i,"Tablet"),Ly(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__overlay",Dy(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__overlay--hover",Dy(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label",Ny(i),Ny(i,"Tablet"),Ny(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label:hover",Iy(i),Iy(i,"Tablet"),Iy(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label",Ny(i),Ny(i,"Tablet"),Ny(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label:hover",Iy(i),Iy(i,"Tablet"),Iy(i,"Mobile")), | |
| 2164 | -s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label--horizontal",(t=>({top:`${t.labelPosition}%`,left:"10px"}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label--vertical",(t=>({top:"10px",left:`${t.labelPosition}%`}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label--horizontal",(t=>({top:`${t.labelPosition}%`,right:"10px"}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label--vertical",(t=>({bottom:"10px",left:`${t.labelPosition}%`}))(i));const r=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(Uy,{...t}),(0,L.jsx)(jy,{...t})]})},save:Vy,deprecated:[{attributes:{block_id:{type:"string",default:""},beforeImage:{type:"string",default:""},afterImage:{type:"string",default:""},sliderOrientation:{type:"string",default:"horizontal"},showLabels:{type:"boolean",default:!1},labelPosition:{type:"number",default:45},labelBgColor:{ | |
| 2165 | -type:"string",default:"rgba(0, 0, 0, 0.5)"},labelTextColor:{type:"string",default:"white"},labelWithOverlay:{type:"boolean",default:!1},labelOverlayColor:{type:"string",default:"rgba(0, 0, 0, 0.5)"},labelBorderType:{type:"string",default:"solid"},labelOnHover:{type:"boolean",default:!1},beforeImageLabel:{type:"string",default:"Before"},afterImageLabel:{type:"string",default:"After"},showHandle:{type:"boolean",default:!0},moveOnHover:{type:"boolean",default:!1},handleColor:{type:"string",default:"white"},swapImages:{type:"boolean",default:!1},sliderPosition:{type:"number",default:50},sliderBarSize:{type:"object",default:{value:4,valueTablet:"",valueMobile:""}},sliderIconSize:{type:"object",default:{value:50,valueTablet:"",valueMobile:""}},sliderIconBorderSize:{type:"object",default:{value:2,valueTablet:"",valueMobile:""}},labelBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 2166 | -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:"", | |
| 2167 | -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, | |
| 2168 | -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, | |
| 2169 | -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:"",topRadiusHTablet:"", | |
| 2170 | -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:"", | |
| 2171 | -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:"", | |
| 2172 | -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:"", | |
| 2173 | -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:"", | |
| 2174 | -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:{ | |
| 2175 | -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:Oy}]});const Yy=[{label:(0,z.__)("0 to 1","ablocks"),value:1},{label:(0,z.__)("0 to 5","ablocks"),value:5},{label:(0,z.__)("0 to 10","ablocks"),value:10}];var Xy=i(25314);function By(t){const{attributes:e,setAttributes:i}=t,{scale:o,ratingUnmarkedColor:a,alignment:n,showRatingNumber:s,showCount:r,ratingColor:b,spacing:c,ratingNumberColor:d,ratingNumberTypography:u,rating:p,ratingNumberGap:m,ratingNumberPosition:h}=e;return(0,L.jsx)(l().Fragment,{children:(0, | |
| 2176 | -L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advanced-star-rating-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Start Rating","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Scale","ablocks"),options:Yy,attributeName:"scale",attributeValue:o,onChangeHandler:t=>{i({scale:t,rating:e?.rating>t?t:e?.rating})}}),(0,L.jsx)(js,{label:(0,z.__)("Rating","ablocks"),attributeName:"rating",attributeValue:p,step:.1,setAttributes:i,disableDynamicContent:!0}),(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:n,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Vt,{ | |
| 2177 | -label:(0,z.__)("Show Rating number","ablocks"),attributeName:"showRatingNumber",attributeValue:s,setAttributes:i,isResponsive:!1}),s&&(0,L.jsx)(Vt,{label:(0,z.__)("Show Total Rating number","ablocks"),attributeName:"showCount",attributeValue:r,setAttributes:i,isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"spacing",attributeValue:c,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:Xy.CB,autoSyncRange:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"ratingColor",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColor",attributeValue:a,setAttributes:i})]})})}),s&&(0,L.jsx)(D,{title:(0,z.__)("Rating Number","ablocks"),initialOpen:!0,children:(0, | |
| 2178 | -L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),isResponsive:!1,attributeName:"ratingNumberPosition",attributeObjectKey:"ratingNumberPosition",attributeValue:h,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),attributeName:"ratingNumberGap",attributeObjectKey:"value",attributeValue:m,setAttributes:i,isResponsive:!0,step:1,min:1,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:Xy.ZO,autoSyncRange:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"ratingNumberColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"ratingNumberTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})})})}By.propTypes={};const Ey={UU:"ablocks/star-ratings",uK:{block_id:{type:"string", | |
| 2179 | -default:""},blockVersion:{type:"number",default:""},scale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingUnmarkedColor:{type:"string",default:"#696969"},showCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},rating:{type:"number",default:4},size:{type:"object",default:{value:24,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberTypographyGlobal:{type:"string",default:""},ratingNumberTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"", | |
| 2135 | +xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"", | |
| 2136 | +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:Uy}]});const jy=[{label:(0,L.__)("Horizontal","ablocks"),value:"horizontal"},{label:(0,L.__)("Vertical","ablocks"),value:"vertical"}],wy=[{label:(0,L.__)("Middle","ablocks"),value:45},{label:(0,L.__)("Top","ablocks"),value:10},{label:(0,L.__)("Bottom","ablocks"),value:90}],zy=[{label:(0,L.__)("Center","ablocks"),value:45},{label:(0,L.__)("Left","ablocks"),value:5},{label:(0,L.__)("Right","ablocks"),value:95}];var Cy=i(60980);function Ay(t){ | |
| 2137 | +const{attributes:e,setAttributes:i}=t,{sliderPosition:o,sliderOrientation:a,showLabels:n,beforeImageLabel:s,afterImageLabel:r,swapImages:b,showHandle:c,moveOnHover:d,labelPosition:u,labelBgColor:p,labelTextColor:m,labelWithOverlay:h,labelOnHover:g,sliderBarSize:f,sliderIconSize:y,sliderIconBorderSize:T,handleColor:H,labelBorder:M,labelOverlayColor:x}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/add-and-customize-image-comparison/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Settings","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Orientation","ablocks"),isResponsive:!1,options:jy,attributeName:"sliderOrientation",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Swap Imgaes","ablocks"),attributeValue:b,setAttributes:i,attributeName:"swapImages"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Move on Hover","ablocks"), | |
| 2138 | +attributeValue:d,setAttributes:i,attributeName:"moveOnHover"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Handle","ablocks"),attributeValue:c,setAttributes:i,attributeName:"showHandle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Labels","ablocks"),attributeValue:n,setAttributes:i,attributeName:"showLabels"}),(0,I.jsx)(_t,{label:(0,L.__)("Slider Position","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!1,attributeName:"sliderPosition",attributeValue:o,setAttributes:i}),(0,I.jsx)("br",{})]}),n&&(0,I.jsx)(V,{title:(0,L.__)("Label","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Before Image Label","ablocks"),attributeName:"beforeImageLabel",attributeValue:s,setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("After Image Label","ablocks"),attributeName:"afterImageLabel",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Label position","ablocks"),isResponsive:!1, | |
| 2139 | +options:"horizontal"===a?wy:zy,attributeName:"labelPosition",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show only on Hover","ablocks"),attributeValue:g,setAttributes:i,attributeName:"labelOnHover"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Label with Overlay","ablocks"),attributeValue:h,setAttributes:i,attributeName:"labelWithOverlay"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"labelTextColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBgColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Overlay Color","ablocks"),attributeName:"labelOverlayColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Label Border Options:","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"labelBorder",attributeValue:M,setAttributes:i})]})})}),(0,I.jsx)(I.Fragment,{ | |
| 2140 | +children:(0,I.jsxs)(V,{title:(0,L.__)("Handle","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Handle Color","ablocks"),attributeName:"handleColor",attributeValue:H,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Slider Bar Size","ablocks"),min:1,max:50,step:1,isInline:!1,isResponsive:!0,attributeName:"sliderBarSize",attributeValue:f,setAttributes:i,attributeDefaultValue:Cy.gR}),c&&(0,I.jsx)(_t,{label:(0,L.__)("Slider Icon Size","ablocks"),min:10,max:500,step:5,isInline:!1,isResponsive:!0,attributeName:"sliderIconSize",attributeValue:y,setAttributes:i,attributeDefaultValue:Cy.eK}),c&&(0,I.jsx)(_t,{label:(0,L.__)("Slider Icon Border Size","ablocks"),min:0,max:50,step:1,isInline:!1,isResponsive:!0,attributeName:"sliderIconBorderSize",attributeValue:T,setAttributes:i,attributeDefaultValue:Cy.cW})]})})]})})})}Ay.propTypes={};const Ly={UU:"ablocks/image-comparison",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},beforeImage:{type:"string", | |
| 2141 | +default:""},afterImage:{type:"string",default:""},sliderOrientation:{type:"string",default:"horizontal"},showLabels:{type:"boolean",default:!1},labelPosition:{type:"number",default:45},labelBgColor:{type:"string",default:"rgba(0, 0, 0, 0.5)"},labelTextColor:{type:"string",default:"white"},labelWithOverlay:{type:"boolean",default:!1},labelOverlayColor:{type:"string",default:"rgba(0, 0, 0, 0.5)"},labelBorderType:{type:"string",default:"solid"},labelOnHover:{type:"boolean",default:!1},beforeImageLabel:{type:"string",default:"Before"},afterImageLabel:{type:"string",default:"After"},showHandle:{type:"boolean",default:!0},moveOnHover:{type:"boolean",default:!1},handleColor:{type:"string",default:"white"},swapImages:{type:"boolean",default:!1},sliderPosition:{type:"number",default:50},sliderBarSize:{type:"object",default:{value:4,valueTablet:"",valueMobile:""}},sliderIconSize:{type:"object",default:{value:50,valueTablet:"",valueMobile:""}},sliderIconBorderSize:{type:"object",default:{value:2, | |
| 2142 | +valueTablet:"",valueMobile:""}},labelBorder:{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, | |
| 2143 | +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:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"", | |
| 2144 | +unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"", | |
| 2145 | +topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 2146 | +isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"", | |
| 2147 | +imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"", | |
| 2148 | +imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"", | |
| 2149 | +rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"", | |
| 2150 | +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", | |
| 2151 | +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:""}, | |
| 2152 | +_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Dy(t){const{attributes:e,setAttributes:i}=t,{block_id:o,beforeImage:n,afterImage:r,sliderPosition:b,sliderOrientation:c,showLabels:d,beforeImageLabel:u,afterImageLabel:p,swapImages:m,showHandle:h,moveOnHover:g,labelWithOverlay:f,labelOnHover:y}=e,{isDynamicEnabled:T,data:H}=id({attributeValue:u}),{isDynamicEnabled:M,data:x}=id({attributeValue:p}),[k,v]=(0,a.useState)(!1),[_,R]=(0,a.useState)(!1),[S,W]=(0,a.useState)(!1),[P,U]=(0,a.useState)(!1),[j,w]=(0,a.useState)(""),z=t=>{v(!0),t.url.includes("blob")||(i({beforeImage:t.url}),v(!1))},C=t=>{R(!0),t.url.includes("blob")||(i({afterImage:t.url}),R(!1))};(0,a.useEffect)(()=>{if(n&&r){const t=new window.Image;t.src=n;const e=new window.Image;e.src=r,t.onload=()=>{e.onload=()=>{t.width===e.width&&t.height===e.height||W(!0)}}}},[n,r]);const A=()=>{W(!1),U(!0),(async(t,e,i,o,a)=>{ | |
| 2153 | +const l=new window.Image;l.src=t,l.onload=async()=>{const n=new window.Image;n.src=e;const s=n.width,r=n.height,b=l.height,c=l.width;if(b===r&&c===s)return;const d=((t,e,i)=>{const o=document.createElement("canvas");return o.width=e,o.height=i,o.getContext("2d").drawImage(t,0,0,e,i),o.toDataURL("image/jpeg")})(l,s,r),u=(t=>{const e=atob(t.split(",")[1]),i=new Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);const o=new Uint8Array(i);return new Blob([o],{type:"image/jpeg"})})(d),p=new FormData;p.append("file",u,"resized-image.jpg"),p.append("title",t.title||"Resized Image"),p.append("_wpnonce",wpApiSettings.nonce);let m=0,h=!1;for(;m<3&&!h;)try{const t=await fetch(`${wpApiSettings.root}wp/v2/media`,{method:"POST",headers:{Authorization:`Bearer ${wpApiSettings.nonce}`},body:p});if(500===t.status){m++;continue}const e=await t.json();e&&e.id&&e.source_url&&(i(e.source_url),h=!0,o("success"),a(!1))}catch(t){m++}h||(o("error"),a(!1))}})(r,n,t=>{i({afterImage:t})},w,U)},V=()=>{ | |
| 2154 | +W(!1)};(0,a.useEffect)(()=>{i({beforeImage:r,afterImage:n})},[m]);const O=(0,a.useRef)(null),Y=(0,a.useRef)(null);return(0,a.useEffect)(()=>{const t=O.current,e=Y.current;if(g&&t&&e){const o=t=>{let o;if("horizontal"===c){const i=e.getBoundingClientRect(),a=t.clientX-i.left;o=Math.round(a/i.width*100)}else{const i=e.getBoundingClientRect(),a=t.clientY-i.top;o=Math.round(a/i.height*100)}o=Math.max(0,Math.min(100,o)),i({sliderPosition:o})};return t.addEventListener("mousemove",o),()=>{t.removeEventListener("mousemove",o)}}},[c,g]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsxs)(D.BlockControls,{group:"other",children:[(0,I.jsx)(D.MediaReplaceFlow,{name:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--left-image"}),mediaURL:n,allowedTypes:["image"],accept:"image/*",onSelect:z}),(0,I.jsx)(D.MediaReplaceFlow,{name:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--right-image"}),mediaURL:r,allowedTypes:["image"],accept:"image/*",onSelect:C})]}),(0,I.jsxs)(Yb.A,{blockId:o, | |
| 2155 | +name:Ly.UU,attributes:e,children:[S&&(0,I.jsxs)(N.Notice,{status:"info",isDismissible:!1,children:[(0,I.jsx)("p",{children:(0,L.__)("The images have different dimensions. Would you like to balance them?","ablocks")}),(0,I.jsx)(N.Button,{isPrimary:!0,onClick:A,children:(0,L.__)("Balance Images","ablocks")}),(0,I.jsx)(N.Button,{isSecondary:!0,onClick:V,children:(0,L.__)("Skip","ablocks")})]}),!S&&"error"===j&&(0,I.jsxs)(N.Notice,{status:"error",isDismissible:!1,children:[(0,I.jsx)("p",{children:(0,L.__)("An error occurred while balancing the images. Please try again.","ablocks")}),(0,I.jsx)(N.Button,{isPrimary:!0,onClick:A,children:(0,L.__)("Try Again","ablocks")}),(0,I.jsx)(N.Button,{isSecondary:!0,onClick:V,children:(0,L.__)("Cancel","ablocks")})]}),P?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)("div",{className:s()("horizontal"===c&&"ablocks-image-comparison__images-container","vertical"===c&&"ablocks-image-comparison__images-container-vertical"),ref:Y,children:[k?(0,I.jsx)(N.Spinner,{}):(0, | |
| 2156 | +I.jsx)(I.Fragment,{children:n?(0,I.jsx)("img",{className:"ablocks-image-comparison__before-image",src:n,alt:(0,L.__)("Before","ablocks")}):(0,I.jsx)(D.MediaPlaceholder,{icon:"format-image",labels:{title:(0,L.__)("Before Image","ablocks"),instructions:(0,L.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>z(t),accept:"image/*",allowedTypes:["image"]})}),_?(0,I.jsx)(N.Spinner,{}):(0,I.jsx)(I.Fragment,{children:r?(0,I.jsx)("img",{className:"ablocks-image-comparison__after-image",src:r,alt:(0,L.__)("After","ablocks")}):(0,I.jsx)(D.MediaPlaceholder,{icon:"format-image",labels:{title:(0,L.__)("After Image","ablocks"),instructions:(0,L.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>C(t),accept:"image/*",allowedTypes:["image"]})}),n&&r&&(0,I.jsx)("div",{className:"ablocks-image-comparison__slider-line"}),n&&r&&h&&(0,I.jsx)("div",{className:"ablocks-image-comparison__slider-icon",children:(0, | |
| 2157 | +I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,I.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})}),n&&r&&(0,I.jsx)("input",{"aria-label":(0,L.__)("Image comparison slider","ablocks"),type:"range",className:s()("ablocks-image-comparison__slider","vertical"===c&&"ablocks-image-comparison__input--vertical"),min:"0",max:"100",value:b,onChange:t=>{i({sliderPosition:parseInt(t.target.value,10)})},ref:O}),d&&n&&r&&(0,I.jsxs)("div",{className:s()(y&&"ablocks-image-comparison__labels"),children:[(0,I.jsx)("div",{className:s()(!y&&f&&"ablocks-image-comparison__overlay",y&&f&&"ablocks-image-comparison__overlay--hover")}),(0,I.jsx)("div",{ | |
| 2158 | +className:s()("ablocks-image-comparison__beforeImage-label","horizontal"===c&&"ablocks-image-comparison__beforeImage-label--horizontal","vertical"===c&&"ablocks-image-comparison__beforeImage-label--vertical"),children:T?H:u}),(0,I.jsx)("div",{className:s()("ablocks-image-comparison__afterImage-label","horizontal"===c&&"ablocks-image-comparison__afterImage-label--horizontal","vertical"===c&&"ablocks-image-comparison__afterImage-label--vertical"),children:M?x:p})]})]})]})]})}Dy.propTypes={};const Ny=t=>({...(0,Zt.qD)(t?.alignment,"text-align","")}),Iy=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"left",unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.sliderBarSize,attributeObjectKey:"value",defaultValue:4,isResponsive:!0,property:"width",unitDefaultValue:"px",device:e})};return i.background=(0,Hs.qD)(t?.handleColor),i},Vy=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"top", | |
| 2159 | +unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.sliderBarSize,attributeObjectKey:"value",defaultValue:4,isResponsive:!0,property:"height",unitDefaultValue:"px",device:e})};return i.background=(0,Hs.qD)(t?.handleColor),i},Oy=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"left",unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.sliderIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"height",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t.sliderIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"width",unitDefaultValue:"px",device:e})};return i.border=`${t.sliderIconBorderSize["value"+e]}px solid ${t.handleColor}`,i.color=(0,Hs.qD)(t?.handleColor),i},Yy=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"top",unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.sliderIconSize, | |
| 2160 | +attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"height",unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t.sliderIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,property:"width",unitDefaultValue:"px",device:e})},o={...(0,Eb.qD)({attributeValue:t.sliderIconBorderSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:2,property:"border",unitDefaultValue:"px",device:e})};return i.border=`${o.border} solid ${t.handleColor}`,i.color=(0,Hs.qD)(t?.handleColor),i},Xy=t=>({background:(0,Hs.qD)(t?.labelOverlayColor)}),By=(t,e="")=>{const i=(0,M.Zy)(t?.labelBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.labelTextColor),background:(0,Hs.qD)(t?.labelBgColor),...(0,y.qD)(i,e),"max-width":"30%", | |
| 2161 | +transform:45===t.labelPosition&&"vertical"===t.sliderOrientation?"translateX(-50%)":95===t.labelPosition&&"vertical"===t.sliderOrientation?"translateX(-100%)":90===t.labelPosition&&"horizontal"===t.sliderOrientation?"translateY(-100%)":"none"}},Ey=(t,e="")=>{const i=(0,M.Zy)(t?.labelBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function Fy(t){const{attributes:e}=t,{block_id:i,beforeImage:o,afterImage:a,sliderPosition:n,sliderOrientation:r,showLabels:b,beforeImageLabel:c,afterImageLabel:d,showHandle:u,moveOnHover:p,labelWithOverlay:m,labelOnHover:h}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Ly.UU,attributes:e,children:(0,I.jsxs)("div",{className:s()({"ablocks-image-comparison__images-container":"horizontal"===r,"ablocks-image-comparison__images-container-vertical":"vertical"===r}),"data-ablocks-slider-container":!0,"data-ablocks-move-on-hover":p,"data-ablocks-slider-orientation":r,children:[(0,I.jsx)("img",{ | |
| 2162 | +className:"ablocks-image-comparison__before-image",src:o,alt:(0,L.__)("Before","ablocks")}),(0,I.jsx)("img",{className:"ablocks-image-comparison__after-image",src:a,alt:(0,L.__)("After","ablocks")}),(0,I.jsx)("div",{className:"ablocks-image-comparison__slider-line"}),o&&a&&u&&(0,I.jsx)("div",{className:"ablocks-image-comparison__slider-icon",children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,I.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})}),(0,I.jsx)("input",{"aria-label":(0,L.__)("Image comparison slider","ablocks"),type:"range",className:s()("ablocks-image-comparison__slider",{"ablocks-image-comparison__input--vertical":"vertical"===r}),min:"0",max:"100",defaultValue:n,"data-ablocks-slider-input":!0}),b&&o&&a&&(0,I.jsxs)("div",{className:s()(h&&"ablocks-image-comparison__labels"),children:[(0, | |
| 2163 | +I.jsx)("div",{className:s()({"ablocks-image-comparison__overlay":!h&&m,"ablocks-image-comparison__overlay--hover":h&&m})}),(0,I.jsx)("div",{className:s()("ablocks-image-comparison__beforeImage-label",{"ablocks-image-comparison__beforeImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__beforeImage-label--vertical":"vertical"===r}),children:c}),(0,I.jsx)("div",{className:s()("ablocks-image-comparison__afterImage-label",{"ablocks-image-comparison__afterImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__afterImage-label--vertical":"vertical"===r}),children:d})]})]})})})}Fy.propTypes={};function qy(t){const{attributes:e}=t,{block_id:i,beforeImage:o,afterImage:a,sliderPosition:n,sliderOrientation:r,showLabels:b,beforeImageLabel:c,afterImageLabel:d,showHandle:u,moveOnHover:p,labelWithOverlay:m,labelOnHover:h}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:"ablocks/image-comparison",attributes:e,children:(0,I.jsxs)("div",{ | |
| 2164 | +className:s()({"ablocks-image-comparison__images-container":"horizontal"===r,"ablocks-image-comparison__images-container-vertical":"vertical"===r}),"data-ablocks-slider-container":!0,"data-ablocks-move-on-hover":p,"data-ablocks-slider-orientation":r,children:[(0,I.jsx)("img",{className:"ablocks-image-comparison__before-image",src:o,alt:(0,L.__)("Before","ablocks")}),(0,I.jsx)("img",{className:"ablocks-image-comparison__after-image",src:a,alt:(0,L.__)("After","ablocks")}),(0,I.jsx)("div",{className:"ablocks-image-comparison__slider-line"}),o&&a&&u&&(0,I.jsx)("div",{className:"ablocks-image-comparison__slider-icon",children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,I.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})}),(0,I.jsx)("input",{type:"range",className:s()("ablocks-image-comparison__slider",{ | |
| 2165 | +"ablocks-image-comparison__input--vertical":"vertical"===r}),min:"0",max:"100",defaultValue:n,"data-ablocks-slider-input":!0}),b&&o&&a&&(0,I.jsxs)("div",{className:s()(h&&"ablocks-image-comparison__labels"),children:[(0,I.jsx)("div",{className:s()({"ablocks-image-comparison__overlay":!h&&m,"ablocks-image-comparison__overlay--hover":h&&m})}),(0,I.jsx)("div",{className:s()("ablocks-image-comparison__beforeImage-label",{"ablocks-image-comparison__beforeImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__beforeImage-label--vertical":"vertical"===r}),children:c}),(0,I.jsx)("div",{className:s()("ablocks-image-comparison__afterImage-label",{"ablocks-image-comparison__afterImage-label--horizontal":"horizontal"===r,"ablocks-image-comparison__afterImage-label--vertical":"vertical"===r}),children:d})]})]})})})}qy.propTypes={},(0,M.xV)(Ly.UU)&&(0,o.registerBlockType)(Ly.UU,{title:(0,L.__)("Image Comparison","ablocks"),attributes:Ly.uK,icon:(0,I.jsx)("span",{ | |
| 2166 | +className:"ablocks-icon ablocks-icon--image-comparison"}),edit:function(t){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]);let s=null;if(s?2!==i?.version||s instanceof A?2===i?.version||s instanceof C||(s=new C(i,l)):s=new A(i,l):s=2===i?.version?new A(i,l):new C(i,l),null===s)return"";const r=t=>"function"==typeof s.customDeviceMap?s.customDeviceMap(t):{};s.addClassStyles("{{WRAPPER}}",Ny(i),Ny(i),Ny(i),r(t=>Ny(i))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container .ablocks-image-comparison__before-image",(t=>({...{...(0,Eb.qD)({attributeValue:t.sliderPosition,defaultValue:50,property:"width",unitDefaultValue:"%",device:""})}}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container-vertical .ablocks-image-comparison__before-image",(t=>({...{...(0,Eb.qD)({attributeValue:t.sliderPosition,defaultValue:50, | |
| 2167 | +property:"height",unitDefaultValue:"%",device:""})}}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container .ablocks-image-comparison__slider-line",Iy(i),Iy(i,"Tablet"),Iy(i,"Mobile"),r(t=>Iy(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container-vertical .ablocks-image-comparison__slider-line",Vy(i),Vy(i,"Tablet"),Vy(i,"Mobile"),r(t=>Vy(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container .ablocks-image-comparison__slider-icon",Oy(i),Oy(i,"Tablet"),Oy(i,"Mobile"),r(t=>Oy(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__images-container-vertical .ablocks-image-comparison__slider-icon",Yy(i),Yy(i,"Tablet"),Yy(i,"Mobile"),r(t=>Yy(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__overlay",Xy(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__overlay--hover",Xy(i)), | |
| 2168 | +s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label",By(i),By(i,"Tablet"),By(i,"Mobile"),r(t=>By(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label:hover",Ey(i),Ey(i,"Tablet"),Ey(i,"Mobile"),r(t=>Ey(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label",By(i),By(i,"Tablet"),By(i,"Mobile"),r(t=>By(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label:hover",Ey(i),Ey(i,"Tablet"),Ey(i,"Mobile"),r(t=>Ey(i,t))),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label--horizontal",(t=>({top:`${t.labelPosition}%`,left:"10px"}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__beforeImage-label--vertical",(t=>({top:"10px",left:`${t.labelPosition}%`}))(i)),s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label--horizontal",(t=>({top:`${t.labelPosition}%`,right:"10px"}))(i)), | |
| 2169 | +s.addClassStyles("{{WRAPPER}} .ablocks-image-comparison__afterImage-label--vertical",(t=>({bottom:"10px",left:`${t.labelPosition}%`}))(i));const b=s.generateCSS();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:b}),e&&(0,I.jsx)(Ay,{...t}),(0,I.jsx)(Dy,{...t})]})},save:Fy,deprecated:[{attributes:{block_id:{type:"string",default:""},beforeImage:{type:"string",default:""},afterImage:{type:"string",default:""},sliderOrientation:{type:"string",default:"horizontal"},showLabels:{type:"boolean",default:!1},labelPosition:{type:"number",default:45},labelBgColor:{type:"string",default:"rgba(0, 0, 0, 0.5)"},labelTextColor:{type:"string",default:"white"},labelWithOverlay:{type:"boolean",default:!1},labelOverlayColor:{type:"string",default:"rgba(0, 0, 0, 0.5)"},labelBorderType:{type:"string",default:"solid"},labelOnHover:{type:"boolean",default:!1},beforeImageLabel:{type:"string",default:"Before"},afterImageLabel:{type:"string",default:"After"},showHandle:{type:"boolean", | |
| 2170 | +default:!0},moveOnHover:{type:"boolean",default:!1},handleColor:{type:"string",default:"white"},swapImages:{type:"boolean",default:!1},sliderPosition:{type:"number",default:50},sliderBarSize:{type:"object",default:{value:4,valueTablet:"",valueMobile:""}},sliderIconSize:{type:"object",default:{value:50,valueTablet:"",valueMobile:""}},sliderIconBorderSize:{type:"object",default:{value:2,valueTablet:"",valueMobile:""}},labelBorder:{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:"", | |
| 2171 | +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:"", | |
| 2172 | +leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 2173 | +customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 2174 | +isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", | |
| 2175 | +hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 2176 | +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:"", | |
| 2177 | +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:"", | |
| 2178 | +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", | |
| 2179 | +customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean", | |
| 2180 | +default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:qy}]});const $y=[{label:(0,L.__)("0 to 1","ablocks"),value:1},{label:(0,L.__)("0 to 5","ablocks"),value:5},{label:(0,L.__)("0 to 10","ablocks"),value:10}];var Gy=i(25314);function Zy(t){const{attributes:e,setAttributes:i}=t,{scale:o,ratingUnmarkedColor:a,alignment:n,showRatingNumber:s,showCount:r,ratingColor:b,spacing:c,ratingNumberColor:d,ratingNumberTypography:u,rating:p,ratingNumberGap:m,ratingNumberPosition: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-advanced-star-rating-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Start Rating","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Scale","ablocks"),options:$y,attributeName:"scale",attributeValue:o,onChangeHandler:t=>{i({scale:t, | |
| 2181 | +rating:e?.rating>t?t:e?.rating})}}),(0,I.jsx)(As,{label:(0,L.__)("Rating","ablocks"),attributeName:"rating",attributeValue:p,step:.1,setAttributes:i,disableDynamicContent:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:n,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)(Ot,{label:(0,L.__)("Show Rating number","ablocks"),attributeName:"showRatingNumber",attributeValue:s,setAttributes:i,isResponsive:!1}),s&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Total Rating number","ablocks"),attributeName:"showCount",attributeValue:r,setAttributes:i,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0, | |
| 2182 | +L.__)("Spacing","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"spacing",attributeValue:c,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:Gy.CB,autoSyncRange:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"ratingColor",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColor",attributeValue:a,setAttributes:i})]})})}),s&&(0,I.jsx)(V,{title:(0,L.__)("Rating Number","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,attributeName:"ratingNumberPosition",attributeObjectKey:"ratingNumberPosition",attributeValue:h,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("right","ablocks"), | |
| 2183 | +value:"right",icon:"right"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"ratingNumberGap",attributeObjectKey:"value",attributeValue:m,setAttributes:i,isResponsive:!0,step:1,min:1,max:100,isInline:!1,hasUnit:!0,attributeDefaultValue:Gy.ZO,autoSyncRange:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"ratingNumberColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ratingNumberTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})})})}Zy.propTypes={};const Ky={UU:"ablocks/star-ratings",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},scale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingUnmarkedColor:{type:"string",default:"#696969"},showCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},ratingNumberColor:{type:"string", | |
| 2184 | +default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},rating:{type:"number",default:4},size:{type:"object",default:{value:24,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberTypographyGlobal:{type:"string",default:""},ratingNumberTypography:{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:"", | |
| 2185 | +letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",default:"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",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 576 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-star"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{ | |
| 2186 | +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:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"", | |
| 2187 | +topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"", | |
| 2188 | +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:"", | |
| 2189 | +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:"", | |
| 2190 | +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:"", | |
| 2191 | +imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"", | |
| 2192 | +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:"", | |
| 2193 | +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:"", | |
| 2194 | +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", | |
| 2195 | +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}, | |
| 2196 | +_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function Jy(t){const{attributes:e,setAttributes:i}=t,{block_id:o,scale:a,rating:n,showCount:s,showRatingNumber:r,alignment:b}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:b,setAttributes:i})}),(0,I.jsxs)(Yb.A,{blockId:o,name:Ky.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-star-ratings-icons",children:Array.from({length:a?Number(a):5}).map((t,i)=>{const o=i+1;let a=0;return o<=Math.floor(n)?a=100:o===Math.floor(n)+1&&(a=n%1*100),(0,I.jsxs)("div",{className:"ablocks-rating",style:{"--marked-color":(0,Hs.qD)(e?.ratingColor),"--unmarked-color":(0,Hs.qD)(e?.ratingUnmarkedColor)},children:[(0,I.jsx)("div",{className:"ablocks-rating__fill",style:{width:`${a}%`},children:(0,I.jsx)(Fd,{ | |
| 2197 | +attributes:e})}),(0,I.jsx)("div",{className:"ablocks-rating__unfill",children:(0,I.jsx)(Fd,{attributes:e})})]},i)})}),r&&(0,I.jsxs)("span",{className:"ablocks-star-rating-number",children:[(0,I.jsx)($c,{tagName:"span",value:`${n}`,onChange:t=>i({rating:t}),placeholder:(0,L.__)("Enter your rating..","ablocks")}),s?`/${a}`:""]})]})]})}Jy.propTypes={};const Qy=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.ratingNumberGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})};return i.display="flex",i["align-items"]="center",i["flex-wrap"]="wrap",{...i,...(0,Zt.qD)(t?.alignment,"justify-content",e)}},tT=(t,e="")=>{const{ratingNumberPosition:i}=t,o=(0,M.Zy)(t.ratingNumberTypography,{weight:"400"}),a=t.ratingNumberTypographyGlobal?t.ratingNumberTypographyGlobal:"",l={};return""!==i&&(l.order="left"===i?"-5":"10"),{...l,color:(0,Hs.qD)(t?.ratingNumberColor),...(0,U.qD)(o,e,a)}},eT=(t,e="")=>({...(0,Eb.qD)({ | |
| 2198 | +attributeValue:t?.spacing,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})});function iT(t){const{attributes:e}=t,{block_id:i,scale:o,rating:a,showRatingNumber:n,showCount:s}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:Ky.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-star-ratings-icons",children:Array.from({length:o?Number(o):5}).map((t,i)=>{const o=i+1;let l=0;return o<=Math.floor(a)?l=100:o===Math.floor(a)+1&&(l=a%1*100),(0,I.jsxs)("div",{className:"ablocks-rating",style:{"--marked-color":(0,Hs.qD)(e?.ratingColor),"--unmarked-color":(0,Hs.qD)(e?.ratingUnmarkedColor)},children:[(0,I.jsx)("div",{className:"ablocks-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributes:e})}),(0,I.jsx)("div",{className:"ablocks-rating__unfill",children:(0,I.jsx)(Fd,{attributes:e})})]},i)})}),n&&(0,I.jsxs)("span",{className:"ablocks-star-rating-number",children:[a,s?`/${o}`:""]})] | |
| 2199 | +})})}iT.propTypes={};const oT={UU:"ablocks/star-ratings",uK:{block_id:{type:"string",default:""},scale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingUnmarkedColor:{type:"string",default:"#696969"},showCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},rating:{type:"number",default:4},size:{type:"object",default:{value:24,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"", | |
| 2180 | 2200 | 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"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",default:"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",source:"attribute", |
| 2181 | -selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 576 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-star"},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, | |
| 2182 | -isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 2183 | -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:"",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:"", | |
| 2184 | -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, | |
| 2185 | -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:"", | |
| 2186 | -hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"", | |
| 2187 | -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, | |
| 2188 | -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:"", | |
| 2189 | -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, | |
| 2190 | -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:{ | |
| 2191 | -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 Fy(t){const{attributes:e,setAttributes:i}=t,{block_id:o,scale:a,rating:n,showCount:s,showRatingNumber:r,alignment:b}=e;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:b,setAttributes:i})}),(0,L.jsxs)(Nb.A,{blockId:o,name:Ey.UU,attributes:e,children:[(0,L.jsx)("div",{className:"ablocks-star-ratings-icons",children:Array.from({length:a?Number(a):5}).map((t,i)=>{ | |
| 2192 | -const o=i+1;let a=0;return o<=Math.floor(n)?a=100:o===Math.floor(n)+1&&(a=n%1*100),(0,L.jsxs)("div",{className:"ablocks-rating",style:{"--marked-color":(0,gs.qD)(e?.ratingColor),"--unmarked-color":(0,gs.qD)(e?.ratingUnmarkedColor)},children:[(0,L.jsx)("div",{className:"ablocks-rating__fill",style:{width:`${a}%`},children:(0,L.jsx)(Vd,{attributes:e})}),(0,L.jsx)("div",{className:"ablocks-rating__unfill",children:(0,L.jsx)(Vd,{attributes:e})})]},i)})}),r&&(0,L.jsxs)("span",{className:"ablocks-star-rating-number",children:[(0,L.jsx)(Yc,{tagName:"span",value:`${n}`,onChange:t=>i({rating:t}),placeholder:(0,z.__)("Enter your rating..","ablocks")}),s?`/${a}`:""]})]})]})}Fy.propTypes={};const qy=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.ratingNumberGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})};return i.display="flex",i["align-items"]="center",i["flex-wrap"]="wrap",{...i,...(0, | |
| 2193 | -Gt.qD)(t?.alignment,"justify-content",e)}},$y=(t,e="")=>{const{ratingNumberPosition:i}=t,o=(0,M.Zy)(t.ratingNumberTypography,{weight:"400"}),a=t.ratingNumberTypographyGlobal?t.ratingNumberTypographyGlobal:"",l={};return""!==i&&(l.order="left"===i?"-5":"10"),{...l,color:(0,gs.qD)(t?.ratingNumberColor),...(0,P.qD)(o,e,a)}},Gy=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.spacing,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})});function Zy(t){const{attributes:e}=t,{block_id:i,scale:o,rating:a,showRatingNumber:n,showCount:s}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:Ey.UU,attributes:e,children:[(0,L.jsx)("div",{className:"ablocks-star-ratings-icons",children:Array.from({length:o?Number(o):5}).map((t,i)=>{const o=i+1;let l=0;return o<=Math.floor(a)?l=100:o===Math.floor(a)+1&&(l=a%1*100),(0,L.jsxs)("div",{className:"ablocks-rating",style:{"--marked-color":(0,gs.qD)(e?.ratingColor), | |
| 2194 | -"--unmarked-color":(0,gs.qD)(e?.ratingUnmarkedColor)},children:[(0,L.jsx)("div",{className:"ablocks-rating__fill",style:{width:`${l}%`},children:(0,L.jsx)(Vd,{attributes:e})}),(0,L.jsx)("div",{className:"ablocks-rating__unfill",children:(0,L.jsx)(Vd,{attributes:e})})]},i)})}),n&&(0,L.jsxs)("span",{className:"ablocks-star-rating-number",children:[a,s?`/${o}`:""]})]})})}Zy.propTypes={};const Ky={UU:"ablocks/star-ratings",uK:{block_id:{type:"string",default:""},scale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingUnmarkedColor:{type:"string",default:"#696969"},showCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},rating:{type:"number",default:4},size:{type:"object",default:{value:24,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"", | |
| 2195 | -valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberTypography:{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"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string", | |
| 2196 | -default:"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",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 576 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-star"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"", | |
| 2197 | -left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},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:"", | |
| 2198 | -leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"", | |
| 2199 | -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, | |
| 2200 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", | |
| 2201 | -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:"", | |
| 2202 | -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:"", | |
| 2203 | -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", | |
| 2204 | -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", | |
| 2205 | -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 Jy(t){const{attributes:e}=t,{block_id:i,scale:o,rating:a,ratingColor:n,showRatingNumber:s,ratingUnmarkedColor:r}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:Ky.UU,attributes:e,children:[(0,L.jsx)("div",{className:"ablocks-star-ratings-icons", | |
| 2206 | -children:Array.from({length:o?Number(o):5}).map((t,i)=>{const o=i+1;let l=0;return o<=Math.floor(a)?l=100:o===Math.floor(a)+1&&(l=a%1*100),(0,L.jsxs)("div",{className:"ablocks-rating",style:{"--marked-color":n,"--unmarked-color":r},children:[(0,L.jsx)("div",{className:"ablocks-rating__fill",style:{width:`${l}%`},children:(0,L.jsx)(Vd,{attributes:e})}),(0,L.jsx)("div",{className:"ablocks-rating__unfill",children:(0,L.jsx)(Vd,{attributes:e})})]},i)})}),s&&(0,L.jsxs)("span",{className:"ablocks-star-rating-number",children:[a,"/",o]})]})})}Jy.propTypes={},(0,M.xV)(Ey.UU)&&(0,o.registerBlockType)(Ey.UU,{title:"Star Ratings",attributes:Ey.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-star"}),edit:function(t){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 | |
| 2207 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-container",qy(i),qy(i,"Tablet"),qy(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-rating .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-rating .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-star-ratings-icons",Gy(i),Gy(i,"Tablet"),Gy(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-star-rating-number",$y(i),$y(i,"Tablet"),$y(i,"Mobile")),(0,b.applyFilters)("ablocks.star-ratings.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(By,{...t}),(0,L.jsx)(Fy,{...t})]})},save:Zy,deprecated:[{attributes:Ky.uK,save:Jy}]});var Qy=i(2620) | |
| 2208 | -;const tT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J000Ni44LDcuOHYxMS41TDM2LDE4LjZWNy44SDQ2Ljh6IE04Mi40LDcuOEw4NCwxOC42bC0xMiwwLjdMNzAuNCw3LjhIODIuNHogTTAsNy44bDEyLDAuOXY5LjlIMS4zTDAsNy44eiBNMzAsNy44djEwLjhIMTlMMTgsNy44SDMweiBNNjMuNyw3LjhMNjYsMTguNkg1NFY5LjVMNjMuNyw3Ljh6IE04OS44LDdMMTAyLDcuOHYxMC44SDkxLjJMODkuOCw3ek0xMDgsNy44bDEyLDAuOXY4LjlsLTEyLDFWNy44eicvPjwvc3ZnPg==",eT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAyMCAxNicgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScxJyBzdHJva2UtbGluZWNhcD0nc3F1YXJlJyBzdHJva2UtbWl0ZXJsaW1pdD0nMTAnPjxnIHRyYW5zZm9ybT0ndHJhbnNsYXRlKC0xMi4wMDAwMDAsIDApJz48cGF0aCBkPSdNMjgsMEwxMCwxOCcvPjxwYXRoIGQ9J00xOCwwTDAsMTgnLz48cGF0aCBkPSdNNDgsMEwzMCwxOCcvPjxwYXRoIGQ9J00zOCwwTDIwLDE4Jy8+PC9nPjwvc3ZnPg==",iT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nYmxhY2snIHN0cm9rZT0nbm9uZSc+PHBhdGggZD0nTTE0LjIsNGMwLjMsMCwwLjUsMC4xLDAuNywwLjNsNy45LDcuMmMwLjIsMC4yLDAuMywwLjQsMC4zLDAuN3MtMC4xLDAuNS0wLjMsMC43bC03LjksNy4yYy0wLjIsMC4yLTAuNCwwLjMtMC43LDAuM3MtMC41LTAuMS0wLjctMC4zcy0wLjMtMC40LTAuMy0wLjdsMC0yLjlsLTExLjUsMGMtMC40LDAtMC43LTAuMy0wLjctMC43VjkuNEMxLDksMS4zLDguNywxLjcsOC43bDExLjUsMGwwLTMuNmMwLTAuMywwLjEtMC41LDAuMy0wLjdTMTMuOSw0LDE0LjIsNHonLz48L3N2Zz4=",oT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nYmxhY2snIHN0cm9rZT0nbm9uZSc+PHBhdGggZD0nTTIxLjQsOS42aC03LjFWMi42YzAtMC45LTAuNy0xLjYtMS42LTEuNmgtMS42Yy0wLjksMC0xLjYsMC43LTEuNiwxLjZ2Ny4xSDIuNkMxLjcsOS42LDEsMTAuMywxLDExLjJ2MS42YzAsMC45LDAuNywxLjYsMS42LDEuNmg3LjF2Ny4xYzAsMC45LDAuNywxLjYsMS42LDEuNmgxLjZjMC45LDAsMS42LTAuNywxLjYtMS42di03LjFoNy4xYzAuOSwwLDEuNi0wLjcsMS42LTEuNnYtMS42QzIzLDEwLjMsMjIuMyw5LjYsMjEuNCw5LjZ6Jy8+PC9zdmc+",aT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00zLDEwLjJjMi42LDAsMi42LDIsMi42LDMuMlM0LjQsMTYuNSwzLDE2LjVzLTMtMS40LTMtMy4yUzAuNCwxMC4yLDMsMTAuMnogTTE4LjgsMTAuMmMxLjcsMCwzLjIsMS40LDMuMiwzLjJzLTEuNCwzLjItMy4yLDMuMmMtMS43LDAtMy4yLTEuNC0zLjItMy4yUzE3LDEwLjIsMTguOCwxMC4yeiBNMzQuNiwxMC4yYzEuNSwwLDIuNiwxLjQsMi42LDMuMnMtMC41LDMuMi0xLjksMy4yYy0xLjUsMC0zLjQtMS40LTMuNC0zLjJTMzMuMSwxMC4yLDM0LjYsMTAuMnogTTUwLjUsMTAuMmMxLjcsMCwzLjIsMS40LDMuMiwzLjJzLTEuNCwzLjItMy4yLDMuMmMtMS43LDAtMy4zLTAuOS0zLjMtMi42UzQ4LjcsMTAuMiw1MC41LDEwLjJ6IE02Ni4yLDEwLjJjMS41LDAsMy40LDEuNCwzLjQsMy4ycy0xLjksMy4yLTMuNCwzLjJjLTEuNSwwLTIuNi0wLjQtMi42LTIuMVM2NC44LDEwLjIsNjYuMiwxMC4yeiBNODIuMiwxMC4yYzEuNywwLjgsMi42LDEuNCwyLjYsMy4ycy0wLjEsMy4yLTEuNiwzLjJjLTEuNSwwLTMuNy0xLjQtMy43LTMuMlM4MC41LDkuNCw4Mi4yLDEwLjJ6TTk4LjYsMTAuMmMxLjUsMCwyLjYsMC40LDIuNiwyLjFzLTEuMiw0LjItMi42LDQuMmMtMS41LDAtMy43LTAuNC0zLjctMi4xUzk3LjEsMTAuMiw5OC42LDEwLjJ6IE0xMTMuNCwxMC4yYzEuMiwwLDIuMiwwLjksMi4yLDMuMnMtMC4xLDMuMi0xLjMsMy4ycy0zLjEtMS40LTMuMS0zLjJTMTEyLjIsMTAuMiwxMTMuNCwxMC4yeicvPjwvc3ZnPg==",lT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00xMTEuOSwxOC4zdjMuNEgxMDl2LTMuNEgxMTEuOXogTTkwLjgsMTguM3YzLjRIODh2LTMuNEg5MC44eiBNNjkuOCwxOC4zdjMuNGgtMi45di0zLjRINjkuOHogTTQ4LjgsMTguM3YzLjRoLTIuOXYtMy40SDQ4Ljh6IE0yNy43LDE4LjN2My40aC0yLjl2LTMuNEgyNy43eiBNNi43LDE4LjN2My40SDMuOHYtMy40SDYuN3ogTTQ2LjQsNGw0LjMsNC44bC0xLjgsMGwzLjUsNC40bC0yLjItMC4xbDMsMy4zbC0xMSwwLjRsMy42LTMuOGwtMi45LTAuMWwzLjEtNC4ybC0xLjksMEw0Ni40LDR6IE0xMTEuNCw0bDIuNCw0LjhsLTEuOCwwbDMuNSw0LjRsLTIuNS0wLjFsMy4zLDMuM2gtMTFsMy4xLTMuNGwtMi41LTAuMWwzLjEtNC4ybC0xLjksMEwxMTEuNCw0eiBNODkuOSw0bDIuOSw0LjhsLTEuOSwwbDMuMiw0LjJsLTIuNSwwbDMuNSwzLjVsLTExLTAuNGwzLTMuMWwtMi40LDBMODgsOC44bC0xLjksMEw4OS45LDR6IE02OC42LDRsMyw0LjRsLTEuOSwwLjFsMy40LDQuMWwtMi43LDAuMWwzLjgsMy43SDYzLjhsMi45LTMuNmwtMi45LDAuMUw2Nyw4LjdsLTIsMC4xTDY4LjYsNHogTTI2LjUsNGwzLDQuNGwtMS45LDAuMWwzLjcsNC43bC0yLjUtMC4xbDMuMywzLjNIMjFsMy4xLTMuNGwtMi41LTAuMWwzLjItNC4zbC0yLDAuMUwyNi41LDR6IE00LjksNGwzLjcsNC44bC0xLjUsMGwzLjEsNC4yTDcuNiwxM2wzLjQsMy40SDBsMy0zLjNsLTIuMywwLjFsMy41LTQuNGwtMi4zLDBMNC45LDR6Jy8+PC9zdmc+",nT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjAgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00xMS45LDE1LjlMMTEuOSwxNS45TDAsMTZjLTAuMi0zLjcsMS41LTUuNyw0LjktNkMxMCw5LjYsMTIuNCwxNC4yLDExLjksMTUuOXpNMjYuOSwxNS45TDI2LjksMTUuOUwxNSwxNmMwLjUtMy43LDIuNS01LjcsNS45LTZDMjYsOS42LDI3LjQsMTQuMiwyNi45LDE1Ljl6IE0zNy4xLDEwYzMuNCwwLjMsNS4xLDIuMyw0LjksNkgzMC4xQzI5LjUsMTQuNCwzMS45LDkuNiwzNy4xLDEweiBNNTcsMTUuOUw1NywxNS45TDQ1LDE2YzAtMy40LDEuNi01LjQsNC45LTUuOUM1NC44LDkuMyw1Ny40LDE0LjIsNTcsMTUuOXogTTcxLjksMTUuOUw3MS45LDE1LjlMNjAsMTZjLTAuMi0zLjcsMS41LTUuNyw0LjktNkM3MCw5LjYsNzIuNCwxNC4yLDcxLjksMTUuOXogTTgyLjIsMTBjMy40LDAuMyw1LDIuMyw0LjgsNkg3NS4zQzc0LDEzLDc3LjEsOS42LDgyLjIsMTB6TTEwMS45LDE1LjlMMTAxLjksMTUuOUw5MCwxNmMtMC4yLTMuNywxLjUtNS43LDQuOS02QzEwMCw5LjYsMTAyLjQsMTQuMiwxMDEuOSwxNS45eiBNMTEyLjEsMTAuMWMyLjcsMC41LDQuMywyLjUsNC45LDUuOWgtMTEuOWwwLDBDMTA0LjUsMTQuNCwxMDgsOS4zLDExMi4xLDEwLjF6Jy8+PC9zdmc+",sT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMTcgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00zLDEuNUM1LDQuOSw2LDguOCw2LDEzcy0xLjcsOC4xLTUsMTEuNUMwLjMsMjEuMSwwLDE3LjIsMCwxM1MxLDQuOSwzLDEuNXogTTE2LDEuNWMyLDMuNCwzLDcuMywzLDExLjVzLTEsOC4xLTMsMTEuNWMtMi00LjEtMy04LjMtMy0xMi41UzE0LDQuMywxNiwxLjV6IE0yOSwxLjVjMiw0LjgsMyw5LjMsMywxMy41cy0xLDcuNC0zLDkuNWMtMi0zLjQtMy03LjMtMy0xMS41UzI3LDQuOSwyOSwxLjV6IE00MS4xLDEuNUM0My43LDQuOSw0NSw4LjgsNDUsMTNzLTEsOC4xLTMsMTEuNWMtMi0zLjQtMy03LjMtMy0xMS41UzM5LjcsNC45LDQxLjEsMS41ek01NSwxLjVjMiwyLjgsMyw2LjMsMywxMC41cy0xLjMsOC40LTQsMTIuNWMtMS4zLTMuNC0yLTcuMy0yLTExLjVTNTMsNC45LDU1LDEuNXogTTY4LDEuNWMyLDMuNCwzLDcuMywzLDExLjVzLTAuNyw4LjEtMiwxMS41Yy0yLjctNC44LTQtOS4zLTQtMTMuNVM2NiwzLjYsNjgsMS41eiBNODIsMS41YzEuMyw0LjgsMiw5LjMsMiwxMy41cy0xLDcuNC0zLDkuNWMtMi0zLjQtMy03LjMtMy0xMS41Uzc5LjMsNC45LDgyLDEuNXogTTk0LDEuNWMyLDMuNCwzLDcuMywzLDExLjVzLTEuMyw4LjEtNCwxMS41Yy0xLjMtMS40LTItNC4zLTItOC41UzkyLDYuOSw5NCwxLjV6IE0xMDcsMS41YzIsMi4xLDMsNS4zLDMsOS41cy0wLjcsOC43LTIsMTMuNWMtMi43LTMuNC00LTcuMy00LTExLjVTMTA1LDQuOSwxMDcsMS41eicvPjwvc3ZnPg==",rT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjAgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J001NCwxLjZWMjZoLTlWMi41TDU0LDEuNnogTTY5LDEuNnYyMy4zTDYwLDI2VjEuNkg2OXogTTI0LDEuNnYyMy41bC05LTAuNlYxLjZIMjR6IE0zMCwwbDksMC43djI0LjVoLTlWMHogTTksMi41djIySDBWMy43TDksMi41eiBNNzUsMS42bDksMC45djIyaC05VjEuNnogTTk5LDIuN3YyMS43aC05VjMuOEw5OSwyLjd6IE0xMTQsMy44djIwLjdsLTktMC41VjMuOEwxMTQsMy44eicvPjwvc3ZnPg==",bT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjMgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J002LjQsMmw0LjIsNS43SDcuN3YyLjdsMy44LDUuMmwtMy44LDB2Ny44SDQuOHYtNy44SDBsNC44LTUuMlY3LjdIMS4xTDYuNCwyeiBNMjUuNiwyTDMxLDcuN2gtMy43djIuN2w0LjgsNS4yaC00Ljh2Ny44aC0yLjh2LTcuOGwtMy44LDBsMy44LTUuMlY3LjdoLTIuOUwyNS42LDJ6IE00Ny41LDJsNC4yLDUuN2gtMy4zdjIuN2wzLjgsNS4ybC0zLjgsMGwwLjQsNy44aC0yLjh2LTcuOEg0MWw0LjgtNS4yVjcuN2gtMy43TDQ3LjUsMnogTTY2LjIsMmw1LjQsNS43aC0zLjd2Mi43bDQuOCw1LjJoLTQuOHY3LjhINjV2LTcuOGwtMy44LDBsMy44LTUuMlY3LjdoLTIuOUw2Ni4yLDJ6TTg3LjQsMmw0LjgsNS43aC0yLjl2My4xbDMuOCw0LjhsLTMuOCwwdjcuOGgtMi44di03LjhoLTQuOGw0LjgtNC44VjcuN2gtMy43TDg3LjQsMnogTTEwNy4zLDJsNS40LDUuN2gtMy43djIuN2w0LjgsNS4yaC00Ljh2Ny44SDEwNnYtNy44bC0zLjgsMGwzLjgtNS4yVjcuN2gtMi45TDEwNy4zLDJ6Jy8+PC9zdmc+",cT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjEgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00yOS42LDEwLjNsMi4xLDIuMmwtMy42LDMuM2g3djIuOWgtN2wzLjYsMy41bC0yLjEsMS43bC01LjItNS4yaC01Ljh2LTIuOWg1LjhMMjkuNiwxMC4zeiBNNzAuOSw5LjZsMi4xLDEuN2wtMy42LDMuNWg3djIuOWgtN2wzLjYsMy4zbC0yLjEsMi4ybC01LjItNS41aC01Ljh2LTIuOWg1LjhMNzAuOSw5LjZ6IE0xMTEuNSw5LjZsMi4xLDEuN2wtMy42LDMuNWg3djIuOWgtN2wzLjYsMy4zbC0yLjEsMi4ybC01LjItNS41aC01Ljh2LTIuOWg1LjhMMTExLjUsOS42eiBNNTAuMiwyLjdsMi4xLDEuN2wtMy42LDMuNWg3djIuOWgtN2wzLjYsMy4zbC0yLjEsMi4yTDQ1LDEwLjdoLTUuOFY3LjlINDVMNTAuMiwyLjd6IE0xMSwybDIuMSwxLjdMOS42LDcuMmg3VjEwaC03bDMuNiwzLjNMMTEsMTUuNUw1LjgsMTBIMFY3LjJoNS44TDExLDJ6IE05MS41LDJsMi4xLDIuMmwtMy42LDMuM2g3djIuOWgtN2wzLjYsMy41bC0yLjEsMS43bC01LjItNS4yaC01LjhWNy41aDUuOEw5MS41LDJ6Jy8+PC9zdmc+",dT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00xMC43LDZsMi41LDIuNmwtNCw0LjNsNCw1LjRsLTIuNSwxLjlsLTQuNS01LjJsLTMuOSw0LjJMMC43LDE3TDQsMTMuMUwwLDguNmwyLjMtMS4zbDMuOSwzLjlMMTAuNyw2eiBNMjMuOSw2LjZsNC4yLDQuNUwzMiw3LjJsMi4zLDEuM2wtNCw0LjVsMy4yLDMuOUwzMiwxOS4xbC0zLjktMy4zbC00LjUsNC4zbC0yLjUtMS45bDQuNC01LjFsLTQuMi0zLjlMMjMuOSw2LjZ6TTczLjUsNkw3Niw4LjZsLTQsNC4zbDQsNS40bC0yLjUsMS45bC00LjUtNS4ybC0zLjksNC4yTDYzLjUsMTdsNC4xLTQuN0w2My41LDhsMi4zLTEuM2w0LjEsMy42TDczLjUsNnogTTk0LDZsMi41LDIuNmwtNCw0LjNsNCw1LjRMOTQsMjAuMWwtMy45LTVsLTMuOSw0LjJMODQsMTdsMy4yLTMuOUw4NCw4LjZsMi4zLTEuM2wzLjIsMy45TDk0LDZ6IE0xMDYuOSw2bDQuNSw1LjFsMy45LTMuOWwyLjMsMS4zbC00LDQuNWwzLjIsMy45bC0xLjYsMi4xbC0zLjktNC4ybC00LjUsNS4ybC0yLjUtMS45bDQtNS40bC00LTQuM0wxMDYuOSw2eiBNNTMuMSw2bDIuNSwyLjZsLTQsNC4zbDQsNC42bC0yLjUsMS45bC00LjUtNC41bC0zLjUsNC41TDQzLjEsMTdsMy4yLTMuOWwtNC00LjVsMi4zLTEuM2wzLjksMy45TDUzLjEsNnonLz48L3N2Zz4=",uT=[{ | |
| 2209 | -label:(0,z.__)("solid","ablocks"),type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:(0,z.__)("dotted","ablocks"),type:"css-style",value:"dotted",optionalStyleControls:["weight","gap"]},{label:(0,z.__)("dashed","ablocks"),type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:(0,z.__)("square","ablocks"),value:tT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("slashes","ablocks"),value:eT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("arrows","ablocks"),value:iT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("pluses","ablocks"),value:oT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("dots","ablocks"),value:aT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("firTree","ablocks"),value:lT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("halfRound","ablocks"),value:nT,type:"mask-style", | |
| 2210 | -optionalStyleControls:["size","gap"]},{label:(0,z.__)("leaves","ablocks"),value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("stripes","ablocks"),value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("tress","ablocks"),value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("tribal","ablocks"),value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("x","ablocks"),value:dT,type:"mask-style",optionalStyleControls:["size","gap"]}],pT=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Text","ablocks"),value:"text"},{label:(0,z.__)("Icon","ablocks"),value:"icon"}],mT=((0,z.__)("Default","ablocks"),(0,z.__)("Stacked","ablocks"),(0,z.__)("Framed","ablocks"),t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}});function hT(t){ | |
| 2211 | -const{attributes:e,setAttributes:i}=t,{dividerPatternUrl:o,element:a,alignment:n,color:s,elementText:r,elementTextSpacing:b,elementTextColor:c,elementTextTypography:d,elementTextStroke:u,elementIconSpacing:p,elementIconPosition:m,elementTextPosition:h,weight:g,width:f,gap:y,size:T}=e,H=at(),M=b["valueUnit"+H]||"px",x=p["valueUnit"+H]||"px",k=uT?.find(t=>t.value===o),v=k?.optionalStyleControls?.map((t,e)=>"size"===t?(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:T,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:Qy.Ej}),(0,L.jsx)(Nt,{})]},e):"gap"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),attributeName:"gap",attributeObjectKey:"value",attributeValue:y,setAttributes:i,isInline:!1,min:1,max:50,step:1,attributeDefaultValue:Qy.rQ})},e):"weight"===t?(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{setAttributes:i, | |
| 2212 | -label:(0,z.__)("Weight","ablocks"),attributeName:"weight",attributeValue:g,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:Qy.VA}),(0,L.jsx)(Nt,{})]},e):null);return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-divider-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Divider","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),options:uT,attributeName:"dividerPatternUrl",attributeValue:o,onChangeHandler:t=>{const e=uT?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:f,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem", | |
| 2213 | -label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(f["valueUnit"+H]??"%")?100:1e3,attributeDefaultValue:Qy.VL,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:n,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,label:(0,z.__)("Add Element","ablocks"),options:pT,attributeName:"element",attributeValue:e.element,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[v,(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"color",attributeValue:s,setAttributes:i})]})})}),"text"===a&&(0,L.jsx)(D,{title:(0,z.__)("Divider Text","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"elementText",attributeValue:r,setAttributes:i}),(0, | |
| 2214 | -L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),isResponsive:!1,attributeName:"elementTextPosition",attributeObjectKey:"elementTextPosition",attributeValue:h,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),attributeName:"elementTextSpacing",attributeObjectKey:"value",attributeValue:b,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:mT(M),unitValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:Qy.rt})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"elementTextColor",attributeValue:c,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"elementTextTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Hc,{label:(0, | |
| 2215 | -z.__)("Text Stroke","ablocks"),attributeName:"elementTextStroke",attributeValue:u,setAttributes:i,isResponsive:!0})]})})}),"icon"===a&&(0,L.jsx)(D,{title:(0,z.__)("Divider Icon","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),attributeName:"elementIconPosition",attributeObjectKey:"elementIconPosition",attributeValue:m,setAttributes:i,isInline:!1,isResponsive:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),attributeName:"elementIconSpacing",attributeObjectKey:"value",attributeValue:p,setAttributes:i,hasUnit:!0,step:1,min:0,max:mT(x),unitValue:p,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:Qy.Vl})]}),style:(0, | |
| 2216 | -L.jsx)(Nd,{attributes:e,setAttributes:i})})})]})})})}hT.propTypes={};const gT={UU:"ablocks/divider",uK:{elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object", | |
| 2217 | -default:{value:"left",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string", | |
| 2218 | -default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"", | |
| 2219 | -bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg", | |
| 2220 | -valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},element:{type:"string",default:"none"},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"number",default:4},size:{type:"number",default:20},gap:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},elementTextSpacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},elementIconSpacing:{type:"object",default:{value:0,valueTablet:0,valueMobile:0,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},dividerPatternUrl:{type:"string",default:"solid"},dividerType:{type:"string",default:"css-style"},color:{type:"string",default:"#000000"},elementText:{type:"string",default:"Divider"},elementTextColor:{type:"string", | |
| 2221 | -default:"#000000"},elementTextPosition:{type:"string",default:"center"},elementIconPosition:{type:"string",default:"center"},_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:{ | |
| 2222 | -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:"", | |
| 2223 | -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:"", | |
| 2224 | -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:"", | |
| 2225 | -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:""}}, | |
| 2226 | -_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, | |
| 2227 | -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:"", | |
| 2228 | -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, | |
| 2229 | -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function fT(t){const{attributes:e,setAttributes:i}=t,{block_id:o,dividerPatternUrl:a,dividerType:n,element:r,elementText:b,size:c,weight:d,elementIconPosition:u,elementTextPosition:p,alignment:m}=e,{isDynamicEnabled:h,data:g}=Zc({attributeValue:b});return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:m,setAttributes:i})}),(0,L.jsx)(Nb.A,{blockId:o,name:gT.UU,attributes:e,children:"mask-style"===n?(0,L.jsxs)(L.Fragment,{children:["none"===r&&(0,L.jsx)("div",{ | |
| 2230 | -className:" ablocks-divider ablocks-divider__pattern-mask ",style:{"--ablocks-divider-pattern-url":`url(${a})`,"--ablocks-divider-pattern-height":`${c}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)}}),"text"===r&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-text--${p}`),style:{"--ablocks-divider-pattern-url":`url(${a})`,"--ablocks-divider-pattern-height":`${c}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("span",{className:"ablocks-divider__element-text",children:b})}),"icon"===r&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-icon--${u}`),style:{"--ablocks-divider-pattern-url":`url(${a})`,"--ablocks-divider-pattern-height":`${c}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,L.jsx)(Vd,{attributes:e})})})]}):(0,L.jsxs)(L.Fragment,{children:["none"===r&&(0,L.jsx)("div",{ | |
| 2231 | -className:" ablocks-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-style":a,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)}}),"text"===r&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-text--${p}`),style:{"--ablocks-divider-pattern-style":a,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("span",{className:"ablocks-divider__element-text",children:h?g:b})}),"icon"===r&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-icon--${u}`),style:{"--ablocks-divider-pattern-style":a,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,L.jsx)(Vd,{attributes:e})})})]})})]})}fT.propTypes={};const yT=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e) | |
| 2232 | -}),TT=(t,e="")=>{const{gap:i,alignment:o}=t,a={...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"padding-block-start",defaultValue:10,unitDefaultValue:"px",device:e})},l={...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"padding-block-end",defaultValue:10,unitDefaultValue:"px",device:e})};return o[`value${e}`]&&(a["justify-content"]=o[`value${e}`]),{...a,...l}},HT=(t,e="")=>{const{width:i}=t,o={...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"value",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e})},a={};return!o?.value||"100%"===o?.value+o?.valueUnit&&""===e||(a["max-width"]=`min(100%, ${o?.value}${o?.valueUnit})!important`),a},MT=(t,e="")=>{(0,Ob.qD)({attributeValue:t?.elementTextSpacing,attributeObjectKey:"value",isResponsive:!0,property:"padding-left",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e}),(0,Ob.qD)({attributeValue:t?.elementTextSpacing, | |
| 2233 | -attributeObjectKey:"value",isResponsive:!0,property:"padding-right",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e});const i=(0,M.Zy)(t.elementTextTypography,{weight:"400"}),o=t.elementTextTypographyGlobal?t.elementTextTypographyGlobal:"";return{color:(0,gs.qD)(t?.elementTextColor),...t?.elementTextTypography?(0,P.qD)(i,e,o):{},...t?.elementTextStroke?(0,fc.qD)(t.elementTextStroke,e):{}}};function xT(t){const{attributes:e}=t,{block_id:i,dividerPatternUrl:o,dividerType:a,element:n,elementText:r,size:b,weight:c,elementIconPosition:d,elementTextPosition:u}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:gT.UU,attributes:e,children:"mask-style"===a?(0,L.jsxs)(L.Fragment,{children:["none"===n&&(0,L.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-mask ",style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)}}),"text"===n&&(0,L.jsx)("div",{ | |
| 2234 | -className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-text--${u}`),style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-icon--${d}`),style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,L.jsx)(Vd,{attributes:e})})})]}):(0,L.jsxs)(L.Fragment,{children:["none"===n&&(0,L.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${c}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)}}),"text"===n&&(0,L.jsx)("div",{ | |
| 2235 | -className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-text--${u}`),style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${c}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-icon--${d}`),style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${c}px`,"--ablocks-divider-pattern-color":(0,gs.qD)(e?.color)},children:(0,L.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,L.jsx)(Vd,{attributes:e})})})]})})})}xT.propTypes={};const kT={UU:"ablocks/divider",uK:{elementTextTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", | |
| 2236 | -fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string", | |
| 2201 | +selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 576 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-star"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px", | |
| 2202 | +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:"",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:"", | |
| 2203 | +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:"", | |
| 2204 | +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:"", | |
| 2205 | +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:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"", | |
| 2206 | +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", | |
| 2207 | +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:"", | |
| 2208 | +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:"", | |
| 2209 | +xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"", | |
| 2210 | +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 aT(t){const{attributes:e}=t,{block_id:i,scale:o,rating:a,ratingColor:n,showRatingNumber:s,ratingUnmarkedColor:r}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:oT.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-star-ratings-icons",children:Array.from({length:o?Number(o):5}).map((t,i)=>{const o=i+1;let l=0;return o<=Math.floor(a)?l=100:o===Math.floor(a)+1&&(l=a%1*100),(0,I.jsxs)("div",{className:"ablocks-rating",style:{"--marked-color":n,"--unmarked-color":r},children:[(0,I.jsx)("div",{className:"ablocks-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributes:e})}),(0,I.jsx)("div",{className:"ablocks-rating__unfill", | |
| 2211 | +children:(0,I.jsx)(Fd,{attributes:e})})]},i)})}),s&&(0,I.jsxs)("span",{className:"ablocks-star-rating-number",children:[a,"/",o]})]})})}aT.propTypes={},(0,M.xV)(Ky.UU)&&(0,o.registerBlockType)(Ky.UU,{title:(0,L.__)("Star Ratings","ablocks"),attributes:Ky.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-star"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",Qy(i),Qy(i,"Tablet"),Qy(i,"Mobile"),e(t=>Qy(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-rating .ablocks-icon-wrap",(0,Ud.PT)(i),(0, | |
| 2212 | +Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-rating .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-star-ratings-icons",eT(i),eT(i,"Tablet"),eT(i,"Mobile"),e(t=>eT(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-star-rating-number",tT(i),tT(i,"Tablet"),tT(i,"Mobile"),e(t=>tT(i,t))),(0,b.applyFilters)("ablocks.star-ratings.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Zy,{...t}),(0,I.jsx)(Jy,{...t})]})},save:iT,deprecated:[{attributes:oT.uK,save:aT}]});var lT=i(2620) | |
| 2213 | +;const nT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J000Ni44LDcuOHYxMS41TDM2LDE4LjZWNy44SDQ2Ljh6IE04Mi40LDcuOEw4NCwxOC42bC0xMiwwLjdMNzAuNCw3LjhIODIuNHogTTAsNy44bDEyLDAuOXY5LjlIMS4zTDAsNy44eiBNMzAsNy44djEwLjhIMTlMMTgsNy44SDMweiBNNjMuNyw3LjhMNjYsMTguNkg1NFY5LjVMNjMuNyw3Ljh6IE04OS44LDdMMTAyLDcuOHYxMC44SDkxLjJMODkuOCw3ek0xMDgsNy44bDEyLDAuOXY4LjlsLTEyLDFWNy44eicvPjwvc3ZnPg==",sT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAyMCAxNicgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScxJyBzdHJva2UtbGluZWNhcD0nc3F1YXJlJyBzdHJva2UtbWl0ZXJsaW1pdD0nMTAnPjxnIHRyYW5zZm9ybT0ndHJhbnNsYXRlKC0xMi4wMDAwMDAsIDApJz48cGF0aCBkPSdNMjgsMEwxMCwxOCcvPjxwYXRoIGQ9J00xOCwwTDAsMTgnLz48cGF0aCBkPSdNNDgsMEwzMCwxOCcvPjxwYXRoIGQ9J00zOCwwTDIwLDE4Jy8+PC9nPjwvc3ZnPg==",rT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nYmxhY2snIHN0cm9rZT0nbm9uZSc+PHBhdGggZD0nTTE0LjIsNGMwLjMsMCwwLjUsMC4xLDAuNywwLjNsNy45LDcuMmMwLjIsMC4yLDAuMywwLjQsMC4zLDAuN3MtMC4xLDAuNS0wLjMsMC43bC03LjksNy4yYy0wLjIsMC4yLTAuNCwwLjMtMC43LDAuM3MtMC41LTAuMS0wLjctMC4zcy0wLjMtMC40LTAuMy0wLjdsMC0yLjlsLTExLjUsMGMtMC40LDAtMC43LTAuMy0wLjctMC43VjkuNEMxLDksMS4zLDguNywxLjcsOC43bDExLjUsMGwwLTMuNmMwLTAuMywwLjEtMC41LDAuMy0wLjdTMTMuOSw0LDE0LjIsNHonLz48L3N2Zz4=",bT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nYmxhY2snIHN0cm9rZT0nbm9uZSc+PHBhdGggZD0nTTIxLjQsOS42aC03LjFWMi42YzAtMC45LTAuNy0xLjYtMS42LTEuNmgtMS42Yy0wLjksMC0xLjYsMC43LTEuNiwxLjZ2Ny4xSDIuNkMxLjcsOS42LDEsMTAuMywxLDExLjJ2MS42YzAsMC45LDAuNywxLjYsMS42LDEuNmg3LjF2Ny4xYzAsMC45LDAuNywxLjYsMS42LDEuNmgxLjZjMC45LDAsMS42LTAuNywxLjYtMS42di03LjFoNy4xYzAuOSwwLDEuNi0wLjcsMS42LTEuNnYtMS42QzIzLDEwLjMsMjIuMyw5LjYsMjEuNCw5LjZ6Jy8+PC9zdmc+",cT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00zLDEwLjJjMi42LDAsMi42LDIsMi42LDMuMlM0LjQsMTYuNSwzLDE2LjVzLTMtMS40LTMtMy4yUzAuNCwxMC4yLDMsMTAuMnogTTE4LjgsMTAuMmMxLjcsMCwzLjIsMS40LDMuMiwzLjJzLTEuNCwzLjItMy4yLDMuMmMtMS43LDAtMy4yLTEuNC0zLjItMy4yUzE3LDEwLjIsMTguOCwxMC4yeiBNMzQuNiwxMC4yYzEuNSwwLDIuNiwxLjQsMi42LDMuMnMtMC41LDMuMi0xLjksMy4yYy0xLjUsMC0zLjQtMS40LTMuNC0zLjJTMzMuMSwxMC4yLDM0LjYsMTAuMnogTTUwLjUsMTAuMmMxLjcsMCwzLjIsMS40LDMuMiwzLjJzLTEuNCwzLjItMy4yLDMuMmMtMS43LDAtMy4zLTAuOS0zLjMtMi42UzQ4LjcsMTAuMiw1MC41LDEwLjJ6IE02Ni4yLDEwLjJjMS41LDAsMy40LDEuNCwzLjQsMy4ycy0xLjksMy4yLTMuNCwzLjJjLTEuNSwwLTIuNi0wLjQtMi42LTIuMVM2NC44LDEwLjIsNjYuMiwxMC4yeiBNODIuMiwxMC4yYzEuNywwLjgsMi42LDEuNCwyLjYsMy4ycy0wLjEsMy4yLTEuNiwzLjJjLTEuNSwwLTMuNy0xLjQtMy43LTMuMlM4MC41LDkuNCw4Mi4yLDEwLjJ6TTk4LjYsMTAuMmMxLjUsMCwyLjYsMC40LDIuNiwyLjFzLTEuMiw0LjItMi42LDQuMmMtMS41LDAtMy43LTAuNC0zLjctMi4xUzk3LjEsMTAuMiw5OC42LDEwLjJ6IE0xMTMuNCwxMC4yYzEuMiwwLDIuMiwwLjksMi4yLDMuMnMtMC4xLDMuMi0xLjMsMy4ycy0zLjEtMS40LTMuMS0zLjJTMTEyLjIsMTAuMiwxMTMuNCwxMC4yeicvPjwvc3ZnPg==",dT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00xMTEuOSwxOC4zdjMuNEgxMDl2LTMuNEgxMTEuOXogTTkwLjgsMTguM3YzLjRIODh2LTMuNEg5MC44eiBNNjkuOCwxOC4zdjMuNGgtMi45di0zLjRINjkuOHogTTQ4LjgsMTguM3YzLjRoLTIuOXYtMy40SDQ4Ljh6IE0yNy43LDE4LjN2My40aC0yLjl2LTMuNEgyNy43eiBNNi43LDE4LjN2My40SDMuOHYtMy40SDYuN3ogTTQ2LjQsNGw0LjMsNC44bC0xLjgsMGwzLjUsNC40bC0yLjItMC4xbDMsMy4zbC0xMSwwLjRsMy42LTMuOGwtMi45LTAuMWwzLjEtNC4ybC0xLjksMEw0Ni40LDR6IE0xMTEuNCw0bDIuNCw0LjhsLTEuOCwwbDMuNSw0LjRsLTIuNS0wLjFsMy4zLDMuM2gtMTFsMy4xLTMuNGwtMi41LTAuMWwzLjEtNC4ybC0xLjksMEwxMTEuNCw0eiBNODkuOSw0bDIuOSw0LjhsLTEuOSwwbDMuMiw0LjJsLTIuNSwwbDMuNSwzLjVsLTExLTAuNGwzLTMuMWwtMi40LDBMODgsOC44bC0xLjksMEw4OS45LDR6IE02OC42LDRsMyw0LjRsLTEuOSwwLjFsMy40LDQuMWwtMi43LDAuMWwzLjgsMy43SDYzLjhsMi45LTMuNmwtMi45LDAuMUw2Nyw4LjdsLTIsMC4xTDY4LjYsNHogTTI2LjUsNGwzLDQuNGwtMS45LDAuMWwzLjcsNC43bC0yLjUtMC4xbDMuMywzLjNIMjFsMy4xLTMuNGwtMi41LTAuMWwzLjItNC4zbC0yLDAuMUwyNi41LDR6IE00LjksNGwzLjcsNC44bC0xLjUsMGwzLjEsNC4yTDcuNiwxM2wzLjQsMy40SDBsMy0zLjNsLTIuMywwLjFsMy41LTQuNGwtMi4zLDBMNC45LDR6Jy8+PC9zdmc+",uT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjAgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00xMS45LDE1LjlMMTEuOSwxNS45TDAsMTZjLTAuMi0zLjcsMS41LTUuNyw0LjktNkMxMCw5LjYsMTIuNCwxNC4yLDExLjksMTUuOXpNMjYuOSwxNS45TDI2LjksMTUuOUwxNSwxNmMwLjUtMy43LDIuNS01LjcsNS45LTZDMjYsOS42LDI3LjQsMTQuMiwyNi45LDE1Ljl6IE0zNy4xLDEwYzMuNCwwLjMsNS4xLDIuMyw0LjksNkgzMC4xQzI5LjUsMTQuNCwzMS45LDkuNiwzNy4xLDEweiBNNTcsMTUuOUw1NywxNS45TDQ1LDE2YzAtMy40LDEuNi01LjQsNC45LTUuOUM1NC44LDkuMyw1Ny40LDE0LjIsNTcsMTUuOXogTTcxLjksMTUuOUw3MS45LDE1LjlMNjAsMTZjLTAuMi0zLjcsMS41LTUuNyw0LjktNkM3MCw5LjYsNzIuNCwxNC4yLDcxLjksMTUuOXogTTgyLjIsMTBjMy40LDAuMyw1LDIuMyw0LjgsNkg3NS4zQzc0LDEzLDc3LjEsOS42LDgyLjIsMTB6TTEwMS45LDE1LjlMMTAxLjksMTUuOUw5MCwxNmMtMC4yLTMuNywxLjUtNS43LDQuOS02QzEwMCw5LjYsMTAyLjQsMTQuMiwxMDEuOSwxNS45eiBNMTEyLjEsMTAuMWMyLjcsMC41LDQuMywyLjUsNC45LDUuOWgtMTEuOWwwLDBDMTA0LjUsMTQuNCwxMDgsOS4zLDExMi4xLDEwLjF6Jy8+PC9zdmc+",pT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMTcgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00zLDEuNUM1LDQuOSw2LDguOCw2LDEzcy0xLjcsOC4xLTUsMTEuNUMwLjMsMjEuMSwwLDE3LjIsMCwxM1MxLDQuOSwzLDEuNXogTTE2LDEuNWMyLDMuNCwzLDcuMywzLDExLjVzLTEsOC4xLTMsMTEuNWMtMi00LjEtMy04LjMtMy0xMi41UzE0LDQuMywxNiwxLjV6IE0yOSwxLjVjMiw0LjgsMyw5LjMsMywxMy41cy0xLDcuNC0zLDkuNWMtMi0zLjQtMy03LjMtMy0xMS41UzI3LDQuOSwyOSwxLjV6IE00MS4xLDEuNUM0My43LDQuOSw0NSw4LjgsNDUsMTNzLTEsOC4xLTMsMTEuNWMtMi0zLjQtMy03LjMtMy0xMS41UzM5LjcsNC45LDQxLjEsMS41ek01NSwxLjVjMiwyLjgsMyw2LjMsMywxMC41cy0xLjMsOC40LTQsMTIuNWMtMS4zLTMuNC0yLTcuMy0yLTExLjVTNTMsNC45LDU1LDEuNXogTTY4LDEuNWMyLDMuNCwzLDcuMywzLDExLjVzLTAuNyw4LjEtMiwxMS41Yy0yLjctNC44LTQtOS4zLTQtMTMuNVM2NiwzLjYsNjgsMS41eiBNODIsMS41YzEuMyw0LjgsMiw5LjMsMiwxMy41cy0xLDcuNC0zLDkuNWMtMi0zLjQtMy03LjMtMy0xMS41Uzc5LjMsNC45LDgyLDEuNXogTTk0LDEuNWMyLDMuNCwzLDcuMywzLDExLjVzLTEuMyw4LjEtNCwxMS41Yy0xLjMtMS40LTItNC4zLTItOC41UzkyLDYuOSw5NCwxLjV6IE0xMDcsMS41YzIsMi4xLDMsNS4zLDMsOS41cy0wLjcsOC43LTIsMTMuNWMtMi43LTMuNC00LTcuMy00LTExLjVTMTA1LDQuOSwxMDcsMS41eicvPjwvc3ZnPg==",mT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjAgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J001NCwxLjZWMjZoLTlWMi41TDU0LDEuNnogTTY5LDEuNnYyMy4zTDYwLDI2VjEuNkg2OXogTTI0LDEuNnYyMy41bC05LTAuNlYxLjZIMjR6IE0zMCwwbDksMC43djI0LjVoLTlWMHogTTksMi41djIySDBWMy43TDksMi41eiBNNzUsMS42bDksMC45djIyaC05VjEuNnogTTk5LDIuN3YyMS43aC05VjMuOEw5OSwyLjd6IE0xMTQsMy44djIwLjdsLTktMC41VjMuOEwxMTQsMy44eicvPjwvc3ZnPg==",hT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjMgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J002LjQsMmw0LjIsNS43SDcuN3YyLjdsMy44LDUuMmwtMy44LDB2Ny44SDQuOHYtNy44SDBsNC44LTUuMlY3LjdIMS4xTDYuNCwyeiBNMjUuNiwyTDMxLDcuN2gtMy43djIuN2w0LjgsNS4yaC00Ljh2Ny44aC0yLjh2LTcuOGwtMy44LDBsMy44LTUuMlY3LjdoLTIuOUwyNS42LDJ6IE00Ny41LDJsNC4yLDUuN2gtMy4zdjIuN2wzLjgsNS4ybC0zLjgsMGwwLjQsNy44aC0yLjh2LTcuOEg0MWw0LjgtNS4yVjcuN2gtMy43TDQ3LjUsMnogTTY2LjIsMmw1LjQsNS43aC0zLjd2Mi43bDQuOCw1LjJoLTQuOHY3LjhINjV2LTcuOGwtMy44LDBsMy44LTUuMlY3LjdoLTIuOUw2Ni4yLDJ6TTg3LjQsMmw0LjgsNS43aC0yLjl2My4xbDMuOCw0LjhsLTMuOCwwdjcuOGgtMi44di03LjhoLTQuOGw0LjgtNC44VjcuN2gtMy43TDg3LjQsMnogTTEwNy4zLDJsNS40LDUuN2gtMy43djIuN2w0LjgsNS4yaC00Ljh2Ny44SDEwNnYtNy44bC0zLjgsMGwzLjgtNS4yVjcuN2gtMi45TDEwNy4zLDJ6Jy8+PC9zdmc+",gT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjEgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00yOS42LDEwLjNsMi4xLDIuMmwtMy42LDMuM2g3djIuOWgtN2wzLjYsMy41bC0yLjEsMS43bC01LjItNS4yaC01Ljh2LTIuOWg1LjhMMjkuNiwxMC4zeiBNNzAuOSw5LjZsMi4xLDEuN2wtMy42LDMuNWg3djIuOWgtN2wzLjYsMy4zbC0yLjEsMi4ybC01LjItNS41aC01Ljh2LTIuOWg1LjhMNzAuOSw5LjZ6IE0xMTEuNSw5LjZsMi4xLDEuN2wtMy42LDMuNWg3djIuOWgtN2wzLjYsMy4zbC0yLjEsMi4ybC01LjItNS41aC01Ljh2LTIuOWg1LjhMMTExLjUsOS42eiBNNTAuMiwyLjdsMi4xLDEuN2wtMy42LDMuNWg3djIuOWgtN2wzLjYsMy4zbC0yLjEsMi4yTDQ1LDEwLjdoLTUuOFY3LjlINDVMNTAuMiwyLjd6IE0xMSwybDIuMSwxLjdMOS42LDcuMmg3VjEwaC03bDMuNiwzLjNMMTEsMTUuNUw1LjgsMTBIMFY3LjJoNS44TDExLDJ6IE05MS41LDJsMi4xLDIuMmwtMy42LDMuM2g3djIuOWgtN2wzLjYsMy41bC0yLjEsMS43bC01LjItNS4yaC01LjhWNy41aDUuOEw5MS41LDJ6Jy8+PC9zdmc+",fT="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHByZXNlcnZlQXNwZWN0UmF0aW89J3hNaWRZTWlkIG1lZXQnIG92ZXJmbG93PSd2aXNpYmxlJyBoZWlnaHQ9JzEwMCUnIHZpZXdCb3g9JzAgMCAxMjYgMjYnIGZpbGw9J2JsYWNrJyBzdHJva2U9J25vbmUnPjxwYXRoIGQ9J00xMC43LDZsMi41LDIuNmwtNCw0LjNsNCw1LjRsLTIuNSwxLjlsLTQuNS01LjJsLTMuOSw0LjJMMC43LDE3TDQsMTMuMUwwLDguNmwyLjMtMS4zbDMuOSwzLjlMMTAuNyw2eiBNMjMuOSw2LjZsNC4yLDQuNUwzMiw3LjJsMi4zLDEuM2wtNCw0LjVsMy4yLDMuOUwzMiwxOS4xbC0zLjktMy4zbC00LjUsNC4zbC0yLjUtMS45bDQuNC01LjFsLTQuMi0zLjlMMjMuOSw2LjZ6TTczLjUsNkw3Niw4LjZsLTQsNC4zbDQsNS40bC0yLjUsMS45bC00LjUtNS4ybC0zLjksNC4yTDYzLjUsMTdsNC4xLTQuN0w2My41LDhsMi4zLTEuM2w0LjEsMy42TDczLjUsNnogTTk0LDZsMi41LDIuNmwtNCw0LjNsNCw1LjRMOTQsMjAuMWwtMy45LTVsLTMuOSw0LjJMODQsMTdsMy4yLTMuOUw4NCw4LjZsMi4zLTEuM2wzLjIsMy45TDk0LDZ6IE0xMDYuOSw2bDQuNSw1LjFsMy45LTMuOWwyLjMsMS4zbC00LDQuNWwzLjIsMy45bC0xLjYsMi4xbC0zLjktNC4ybC00LjUsNS4ybC0yLjUtMS45bDQtNS40bC00LTQuM0wxMDYuOSw2eiBNNTMuMSw2bDIuNSwyLjZsLTQsNC4zbDQsNC42bC0yLjUsMS45bC00LjUtNC41bC0zLjUsNC41TDQzLjEsMTdsMy4yLTMuOWwtNC00LjVsMi4zLTEuM2wzLjksMy45TDUzLjEsNnonLz48L3N2Zz4=",yT=[{ | |
| 2214 | +label:(0,L.__)("solid","ablocks"),type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("dotted","ablocks"),type:"css-style",value:"dotted",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("dashed","ablocks"),type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("square","ablocks"),value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("slashes","ablocks"),value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("arrows","ablocks"),value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("pluses","ablocks"),value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("dots","ablocks"),value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("firTree","ablocks"),value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("halfRound","ablocks"),value:uT,type:"mask-style", | |
| 2215 | +optionalStyleControls:["size","gap"]},{label:(0,L.__)("leaves","ablocks"),value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("stripes","ablocks"),value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("tress","ablocks"),value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("tribal","ablocks"),value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("x","ablocks"),value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}],TT=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Text","ablocks"),value:"text"},{label:(0,L.__)("Icon","ablocks"),value:"icon"}],HT=((0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}});function MT(t){ | |
| 2216 | +const{attributes:e,setAttributes:i}=t,{dividerPatternUrl:o,element:a,alignment:n,color:s,elementText:r,elementTextSpacing:b,elementTextColor:c,elementTextTypography:d,elementTextStroke:u,elementIconSpacing:p,elementIconPosition:m,elementTextPosition:h,weight:g,width:f,gap:y,size:T}=e,H=lt(),M=b["valueUnit"+H]||"px",x=p["valueUnit"+H]||"px",k=yT?.find(t=>t.value===o),v=k?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:T,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:lT.Ej}),(0,I.jsx)(It,{})]},e):"gap"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"gap",attributeObjectKey:"value",attributeValue:y,setAttributes:i,isInline:!1,min:1,max:50,step:1,attributeDefaultValue:lT.rQ})},e):"weight"===t?(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{setAttributes:i, | |
| 2217 | +label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:g,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:lT.VA}),(0,I.jsx)(It,{})]},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-divider-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:yT,attributeName:"dividerPatternUrl",attributeValue:o,onChangeHandler:t=>{const e=yT?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:f,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem", | |
| 2218 | +label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(f["valueUnit"+H]??"%")?100:1e3,attributeDefaultValue:lT.VL,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:n,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)(Wb,{allowDeselect:!1,isResponsive:!1,label:(0,L.__)("Add Element","ablocks"),options:TT,attributeName:"element",attributeValue:e.element,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[v,(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:s,setAttributes:i})]})})}),"text"===a&&(0,I.jsx)(V,{title:(0,L.__)("Divider Text","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"), | |
| 2219 | +attributeName:"elementText",attributeValue:r,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,attributeName:"elementTextPosition",attributeObjectKey:"elementTextPosition",attributeValue:h,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:"elementTextSpacing",attributeObjectKey:"value",attributeValue:b,setAttributes:i,isResponsive:!0,hasUnit:!0,step:1,min:0,max:HT(M),unitValue:b,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:lT.rt})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"elementTextColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(wc,{label:(0, | |
| 2220 | +L.__)("Typography","ablocks"),attributeName:"elementTextTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"elementTextStroke",attributeValue:u,setAttributes:i,isResponsive:!0})]})})}),"icon"===a&&(0,I.jsx)(V,{title:(0,L.__)("Divider Icon","ablocks"),children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"elementIconPosition",attributeObjectKey:"elementIconPosition",attributeValue:m,setAttributes:i,isInline:!1,isResponsive:!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:"elementIconSpacing",attributeObjectKey:"value", | |
| 2221 | +attributeValue:p,setAttributes:i,hasUnit:!0,step:1,min:0,max:HT(x),unitValue:p,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:lT.Vl})]}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})})})]})})})}MT.propTypes={};const xT={UU:"ablocks/divider",uK:{elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 2222 | +wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string", | |
| 2237 | 2223 | 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" |
| 2224 | +},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", | |
| 2225 | +rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0}, | |
| 2226 | +iconImageWidth:{type:"number",default:0},element:{type:"string",default:"none"},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"number",default:4},size:{type:"number",default:20},gap:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},elementTextSpacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},elementIconSpacing:{type:"object",default:{value:0,valueTablet:0,valueMobile:0,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},dividerPatternUrl:{type:"string",default:"solid"},dividerType:{type:"string",default:"css-style"},color:{type:"string",default:"#000000"},elementText:{type:"string",default:"Divider"},elementTextColor:{type:"string",default:"#000000"},elementTextPosition:{type:"string",default:"center"},elementIconPosition:{ | |
| 2227 | +type:"string",default:"center"},_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:"",isLinkedWidth:!0, | |
| 2228 | +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:"", | |
| 2229 | +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"}},_background:{ | |
| 2230 | +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:"", | |
| 2231 | +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:{ | |
| 2232 | +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:"", | |
| 2233 | +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:"", | |
| 2234 | +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, | |
| 2235 | +startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function kT(t){const{attributes:e,setAttributes:i}=t,{block_id:o,dividerPatternUrl:a,dividerType:n,element:r,elementText:b,size:c,weight:d,elementIconPosition:u,elementTextPosition:p,alignment:m}=e,{isDynamicEnabled:h,data:g}=id({attributeValue:b});return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:m,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:xT.UU,attributes:e,children:"mask-style"===n?(0,I.jsxs)(I.Fragment,{children:["none"===r&&(0,I.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-mask ",style:{"--ablocks-divider-pattern-url":`url(${a})`, | |
| 2236 | +"--ablocks-divider-pattern-height":`${c}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)}}),"text"===r&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-text--${p}`),style:{"--ablocks-divider-pattern-url":`url(${a})`,"--ablocks-divider-pattern-height":`${c}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("span",{className:"ablocks-divider__element-text",children:b})}),"icon"===r&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-icon--${u}`),style:{"--ablocks-divider-pattern-url":`url(${a})`,"--ablocks-divider-pattern-height":`${c}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,I.jsx)(Fd,{attributes:e})})})]}):(0,I.jsxs)(I.Fragment,{children:["none"===r&&(0,I.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-style":a, | |
| 2237 | +"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)}}),"text"===r&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-text--${p}`),style:{"--ablocks-divider-pattern-style":a,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("span",{className:"ablocks-divider__element-text",children:h?g:b})}),"icon"===r&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-icon--${u}`),style:{"--ablocks-divider-pattern-style":a,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,I.jsx)(Fd,{attributes:e})})})]})})]})}kT.propTypes={};const vT=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),_T=(t,e="")=>{const{gap:i,alignment:o}=t,a={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value", | |
| 2238 | +isResponsive:!0,property:"padding-block-start",defaultValue:10,unitDefaultValue:"px",device:e})},l={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"padding-block-end",defaultValue:10,unitDefaultValue:"px",device:e})};return o[`value${e}`]&&(a["justify-content"]=o[`value${e}`]),{...a,...l}},RT=(t,e="")=>{const{width:i}=t,o={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"value",hasUnit:!0,defaultValue:100,unitDefaultValue:"%",device:e})},a={};return!o?.value||"100%"===o?.value+o?.valueUnit&&""===e||(a["max-width"]=`min(100%, ${o?.value}${o?.valueUnit})!important`),a},ST=(t,e="")=>{(0,Eb.qD)({attributeValue:t?.elementTextSpacing,attributeObjectKey:"value",isResponsive:!0,property:"padding-left",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e}),(0,Eb.qD)({attributeValue:t?.elementTextSpacing,attributeObjectKey:"value",isResponsive:!0,property:"padding-right",hasUnit:!0,defaultValue:0,unitDefaultValue:"px", | |
| 2239 | +device:e});const i=(0,M.Zy)(t.elementTextTypography,{weight:"400"}),o=t.elementTextTypographyGlobal?t.elementTextTypographyGlobal:"";return{color:(0,Hs.qD)(t?.elementTextColor),...t?.elementTextTypography?(0,U.qD)(i,e,o):{},...t?.elementTextStroke?(0,Mc.qD)(t.elementTextStroke,e):{}}};function WT(t){const{attributes:e}=t,{block_id:i,dividerPatternUrl:o,dividerType:a,element:n,elementText:r,size:b,weight:c,elementIconPosition:d,elementTextPosition:u}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:xT.UU,attributes:e,children:"mask-style"===a?(0,I.jsxs)(I.Fragment,{children:["none"===n&&(0,I.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-mask ",style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)}}),"text"===n&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-text--${u}`),style:{ | |
| 2240 | +"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-icon--${d}`),style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,I.jsx)(Fd,{attributes:e})})})]}):(0,I.jsxs)(I.Fragment,{children:["none"===n&&(0,I.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${c}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)}}),"text"===n&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-text--${u}`),style:{ | |
| 2241 | +"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${c}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-icon--${d}`),style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${c}px`,"--ablocks-divider-pattern-color":(0,Hs.qD)(e?.color)},children:(0,I.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,I.jsx)(Fd,{attributes:e})})})]})})})}WT.propTypes={};const PT={UU:"ablocks/divider",uK:{elementTextTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"", | |
| 2242 | +lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string", | |
| 2243 | +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" | |
| 2238 | 2244 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, |
| 2239 | 2245 | iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},element:{type:"string",default:"none"},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},weight:{type:"number",default:4},size:{type:"number",default:20},gap:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},elementTextSpacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},elementIconSpacing:{type:"object",default:{value:0,valueTablet:0,valueMobile:0,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},dividerPatternUrl:{type:"string",default:"solid"},dividerType:{type:"string",default:"css-style"},color:{type:"string",default:"#000000"},elementText:{type:"string", |
| 2240 | 2246 | default:"Divider"},elementTextColor:{type:"string",default:"#000000"},elementTextPosition:{type:"string",default:"center"},elementIconPosition:{type:"string",default:"center"},_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:"", |
| 2241 | 2247 | 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, |
| @@ -2244,52 +2250,52 @@ | ||
| 2244 | 2250 | 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:"", |
| 2245 | 2251 | 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:"", |
| 2246 | 2252 | 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:"", |
| 2247 | 2253 | maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{ |
| 2248 | -type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function vT(t){const{attributes:e}=t,{block_id:i,dividerPatternUrl:o,dividerType:a,element:n,elementText:r,size:b,color:c,weight:d,elementIconPosition:u,elementTextPosition:p}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:kT.UU,attributes:e,children:"mask-style"===a?(0,L.jsxs)(L.Fragment,{children:["none"===n&&(0,L.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-mask ",style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":c}}),"text"===n&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-text--${p}`),style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":c},children:(0,L.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,L.jsx)("div",{ | |
| 2249 | -className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-icon--${u}`),style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":c},children:(0,L.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,L.jsx)(Vd,{attributes:e})})})]}):(0,L.jsxs)(L.Fragment,{children:["none"===n&&(0,L.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":c}}),"text"===n&&(0,L.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-text--${p}`),style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":c},children:(0,L.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,L.jsx)("div",{ | |
| 2250 | -className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-icon--${u}`),style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":c},children:(0,L.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,L.jsx)(Vd,{attributes:e})})})]})})})}vT.propTypes={},(0,M.xV)(gT.UU)&&(0,o.registerBlockType)(gT.UU,{title:"Divider",attributes:gT.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-divider"}),edit:function(t){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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}",yT(i),yT(i,"Tablet"),yT(i,"Mobile")), | |
| 2251 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-container",TT(i),TT(i,"Tablet"),TT(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-divider",HT(i),HT(i,"Tablet"),HT(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-text",MT(i),MT(i,"Tablet"),MT(i,"Mobile"));const e={...(0,Ob.qD)({attributeValue:i?.elementIconSpacing,attributeObjectKey:"value",isResponsive:!0,property:"margin-left",hasUnit:!0,defaultValue:0,unitDefaultValue:"px"})},o={...(0,Ob.qD)({attributeValue:i?.elementIconSpacing,attributeObjectKey:"value",isResponsive:!0,property:"margin-right",hasUnit:!0,defaultValue:0,unitDefaultValue:"px"})},a={...(0,vd.PT)(i),...e,...o};t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap",a,(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile"));const n={...(0,vd.fW)(i),...e,...o};return t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap:hover",n,(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")), | |
| 2252 | -t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),(0,b.applyFilters)("ablocks.divider.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(hT,{...t}),(0,L.jsx)(fT,{...t})]})},save:xT,deprecated:[{attributes:kT.uK,save:vT}]});var _T=i(58351);const RT=[{label:"left",value:"flex-start",icon:"left"},{ | |
| 2253 | -label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],ST=[{label:(0,z.__)("Default","ablocks"),value:""},{label:(0,z.__)("Comma","ablocks"),value:","},{label:(0,z.__)("Dot","ablocks"),value:"."},{label:(0,z.__)("WhiteSpace","ablocks"),value:" "},{label:(0,z.__)("Apostrophe","ablocks"),value:"'"},{label:(0,z.__)("Underline","ablocks"),value:"_"}],WT=[{value:"number",label:(0,z.__)("Number","ablocks")},{value:"circle",label:(0,z.__)("Circle","ablocks")},{value:"bar",label:(0,z.__)("Bar","ablocks")}],UT=t=>{switch(t){case"preset-1":return[{value:"top",label:(0,z.__)("Top","ablocks")},{value:"bottom",label:(0,z.__)("Bottom","ablocks")},{value:"leftOfNumber",label:(0,z.__)("Left Of Number","ablocks")},{value:"rightOfNumber",label:(0,z.__)("Right Of Number","ablocks")}];case"preset-2":return[{value:"top",label:(0,z.__)("Top","ablocks")},{value:"bottom",label:(0,z.__)("Bottom","ablocks")}]}},PT=((0,z.__)("Default","ablocks"),(0,z.__)("Stacked","ablocks"), | |
| 2254 | -(0,z.__)("Framed","ablocks"),[{label:(0,z.__)("Top","ablocks"),value:"top"},{label:(0,z.__)("Inner","ablocks"),value:"inner"},{label:(0,z.__)("Bottom","ablocks"),value:"bottom"}]);function jT(t){const{attributes:e,setAttributes:i}=t,{counterTitle:o,startNumber:a,endNumber:n,totalNumber:s,separator:r,counterPrefix:b,counterSuffix:c,isShowIcon:d,layout:u,alignment:p,mediaPosition:m,decimalPlaces:h,duration:g,animationRepeat:f,numberColor:y,numberTypography:T,headingColor:H,headingTypography:M,barHeadingPosition:x,circleProgressColor:k,circleBackgroundColor:v,circleSize:_,circleStrokeSize:R,barProgressColor:S,barBackgroundColor:W,barSize:U}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advanced-counter-block/",children:[(0,L.jsxs)(D,{title:(0,z.__)("Counter","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"), | |
| 2255 | -attributeName:"alignment",attributeValue:p,setAttributes:i,isInline:!1,options:RT}),(0,L.jsx)(vb,{label:(0,z.__)("Layout","ablocks"),setAttributes:i,attributeName:"layout",attributeValue:u,options:WT,onChangeHandler:t=>{"circle"===t&&i({mediaPosition:"top"}),i({layout:t})},isResponsive:!1,allowDeselect:!1}),"bar"!==u&&(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:d,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(js,{label:(0,z.__)("Starting Number","ablocks"),attributeName:"startNumber",attributeValue:parseInt(a)||0,setAttributes:i}),(0,L.jsx)(js,{label:(0,z.__)("Ending Number","ablocks"),attributeName:"endNumber",attributeValue:parseInt(n)||0,setAttributes:i})]}),"number"!==u&&(0,L.jsx)(js,{label:(0,z.__)("Total Number","ablocks"),attributeName:"totalNumber",attributeValue:parseInt(s)||0,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Animation Duration(ms)","ablocks"), | |
| 2256 | -attributeName:"duration",attributeValue:g,setAttributes:i,min:0,max:1e4,step:100,isInline:!1,isResponsive:!1,attributeDefaultValue:_T.p0}),(0,L.jsx)(Vt,{label:(0,z.__)("Animation Repeat","ablocks"),attributeName:"animationRepeat",attributeValue:f,setAttributes:i,isResponsive:!1})]}),(0,L.jsx)(D,{title:(0,z.__)("Number","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Decimal places","ablocks"),attributeName:"decimalPlaces",attributeValue:h,setAttributes:i,min:0,max:10,step:1,isInline:!1,isResponsive:!1}),(0,L.jsx)(ql,{label:(0,z.__)("Number Prefix","ablocks"),attributeName:"counterPrefix",attributeValue:b,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Number Suffix","ablocks"),attributeName:"counterSuffix",attributeValue:c,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Thousand Separator","ablocks"),options:ST,attributeName:"separator",attributeValue:r,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{ | |
| 2257 | -children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"numberColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"numberTypography",attributeValue:T,setAttributes:i,attributes:e}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),attributeName:"numberMargin",attributeValue:e?.numberMargin,setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Heading","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"counterTitle",attributeValue:o,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks")})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"headingColor",attributeValue:H,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"headingTypography",attributeValue:M,setAttributes:i,attributes:e}),(0,L.jsx)(Mt,{label:(0, | |
| 2258 | -z.__)("Margin","ablocks"),attributeName:"headingMargin",attributeValue:e.headingMargin,setAttributes:i})]})})}),"circle"===u&&(0,L.jsx)(D,{title:(0,z.__)("Circle","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Circle size","ablocks"),attributeName:"circleSize",attributeValue:_,setAttributes:i,min:50,max:500,step:1,isInline:!1,isResponsive:!1,attributeDefaultValue:_T.eU}),(0,L.jsx)(vt,{label:(0,z.__)("Stroke size","ablocks"),attributeName:"circleStrokeSize",attributeValue:R,setAttributes:i,min:10,max:150,step:1,isInline:!1,isResponsive:!1,attributeDefaultValue:_T.o7})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Progress Color","ablocks"),attributeName:"circleProgressColor",attributeValue:k,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"circleBackgroundColor",attributeValue:v,setAttributes:i})]})})}),"bar"===u&&(0,L.jsx)(D,{title:(0, | |
| 2259 | -z.__)("Bar","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"barSize",attributeValue:U,setAttributes:i,min:10,max:100,step:1,isInline:!1,isResponsive:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"}],attributeDefaultValue:_T.NZ}),(0,L.jsx)(Ut,{label:(0,z.__)("Heading position","ablocks"),attributeName:"barHeadingPosition",attributeValue:x,options:PT,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Progress Color","ablocks"),attributeName:"barProgressColor",attributeValue:S,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"barBackgroundColor",attributeValue:W,setAttributes:i})]})})}),d&&"bar"!==u&&(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Position","ablocks"), | |
| 2260 | -options:UT("number"===u?"preset-1":"preset-2"),attributeName:"mediaPosition",attributeValue:m,setAttributes:i}),(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}jT.propTypes={};const wT=class{constructor(t){if(this.ablocksCounter=t,!this.ablocksCounter)return;const e=t;this.startValue=Number(e?.getAttribute("data-start"))||0,this.endValue=Number(e?.getAttribute("data-end"))||0,this.totalNumber=Number(e?.getAttribute("data-total"))||0,this.duration=Number(e?.getAttribute("data-duration")),this.separator=e?.getAttribute("data-separator"),this.decimalPlaces=Number(e?.getAttribute("data-decimalPlaces"))||0,this.circleSize=Number(e?.getAttribute("data-circleSize"))||220;const i=e?.getAttribute("data-layout");this.animationRepeat=e?.getAttribute("data-animationRepeat"),this.layout=i, | |
| 2261 | -i?("number"!==i&&this.endValue>=this.totalNumber&&(this.endValue=this.totalNumber),new window.IntersectionObserver(this.IOCallback.bind(this),{root:null,rootMargin:"0px",threshold:.5}).observe(this.ablocksCounter)):console.error(`Missing 'data-layout' attribute for '${e}'.`)}init=()=>{"number"===this.layout?this.numberCounter():"circle"===this.layout?this.circleCounter():"bar"===this.layout?this.bar():console.error(`Unsupported layout '${this.layout}' for '${this.countElement}'.`)};playOnce=!1;IOCallback(t){t.forEach(t=>{t.isIntersecting&&("false"!==this.animationRepeat||this.playOnce||(this.playOnce=!0,this.init()),"true"===this.animationRepeat&&this.init())})}numberCounter(){const t=this.ablocksCounter?.querySelector(".ablocks-counter__content-number");if(!t)return void console.error("'.ablocks-counter__content-number' element not found.");const{startValue:e,endValue:i,duration:o,separator:a,decimalPlaces:l}=this;let n=null;const s=i-e,r=i=>{n||(n=i) | |
| 2262 | -;const b=i-n,c=0===o?1:Math.min(b/o,1),d=e+c*s;t.innerHTML=this.formatNumberWithSeparator(d,a,l),b<o&&window.requestAnimationFrame(r)};window.requestAnimationFrame(r)}circleCounter(){this.numberCounter();const t=this.ablocksCounter?.querySelector(".ablocks-circle-counter__progress");if(!t)return void console.error("'.ablocks-circle-counter__progress' element not found.");const{startValue:e,endValue:i,totalNumber:o,duration:a,circleSize:l}=this,n=l/2,s=2*Math.PI*n,r=[{strokeDashoffset:s-e/o*100/100*s},{strokeDashoffset:s-i/o*100/100*s}],b={duration:a,fill:"forwards"};t.animate(r,b)}bar(){this.numberCounter();const t=this.ablocksCounter?.querySelector(".ablocks-bar-counter__progress");if(!t)return void console.error("'.ablocks-bar-counter__progress' element not found.");const{startValue:e,endValue:i,totalNumber:o,duration:a}=this,l=[{width:e/o*100+"%"},{width:i/o*100+"%"}],n={duration:a,fill:"forwards"};t.animate(l,n)}formatNumberWithSeparator(t,e,i){const o={minimumFractionDigits:i, | |
| 2263 | -maximumFractionDigits:i};return t.toLocaleString("en-US",o).replace(/,/g,e)}},zT="ablocks/counter";function CT(t){const{attributes:e,setAttributes:i}=t,{alignment:o,barHeadingPosition:a,startNumber:n,endNumber:s,duration:r,animationRepeat:b,counterPrefix:c,counterSuffix:d,decimalPlaces:u,separator:p,isShowIcon:m,layout:h,counterTitle:g,block_id:f,mediaPosition:y,totalNumber:T,circleSize:H}=e,{isDynamicEnabled:x,data:k}=Zc({attributeValue:g}),{isDynamicEnabled:v,data:_}=Zc({attributeValue:c}),{isDynamicEnabled:R,data:S}=Zc({attributeValue:d});(0,Ot.useEffect)(()=>{new wT((0,M.bu)(`.ablocks-block-${f}`))},[s,r,n,p,c,d,u,h,T,f,H,b]);const W=(0,L.jsx)(Yc,{tagName:"div",value:g,className:"ablocks-counter__text",onChange:t=>i({counterTitle:t}),placeholder:(0,z.__)("Enter your title…","ablocks")}),U=m&&(0,L.jsx)("div",{className:"ablocks-counter__icon",children:(0,L.jsx)(Vd,{attributes:e})}),P=(0,L.jsxs)("div",{className:"ablocks-counter__content",children:[(0,L.jsx)("span",{ | |
| 2264 | -className:"ablocks-counter__content-prefix",children:v?_:c}),(0,L.jsx)("span",{className:"ablocks-counter__content-number",children:n}),(0,L.jsx)("span",{className:"ablocks-counter__content-suffix",children:R?S:d})]}),j=(0,L.jsxs)(l().Fragment,{children:["top"===y&&U,P,W,"bottom"===y&&U]}),w=H/2,A=2*Math.PI*w,D=n/T*100,N={number:j,circle:(0,L.jsxs)("div",{className:"ablocks-circle-counter__outer",children:[(0,L.jsx)("div",{className:"ablocks-circle-counter__inner",children:j}),(0,L.jsxs)("svg",{className:"ablocks-circle-counter__svg",width:H,height:H,style:{rotate:"-90deg"},children:[(0,L.jsx)("circle",{className:"ablocks-circle-counter__background",cx:H/2,cy:H/2,r:w,strokeWidth:"10",fill:"none",strokeDasharray:A}),(0,L.jsx)("circle",{className:"ablocks-circle-counter__progress",cx:H/2,cy:H/2,r:w,strokeWidth:"10",fill:"none",strokeDasharray:A,strokeDashoffset:A})]})]}),bar:(0,L.jsx)("div",{className:"ablocks-bar-counter__background",children:(0,L.jsxs)("div",{ | |
| 2265 | -className:"ablocks-bar-counter__progress",style:{width:`${D}%`},children:["inner"===a&&W,P]})})},I={"data-start":n,"data-end":s,"data-total":T,"data-duration":r,"data-separator":p,"data-decimalPlaces":u,"data-circleSize":H,"data-layout":h,"data-animationRepeat":b};return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:o,setAttributes:i})}),(0,L.jsxs)(Nb.A,{blockId:f,name:zT,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],blockProps:{...I},className:`ablocks-block--counter--${h}`,children:["number"===h&&(0,L.jsxs)(L.Fragment,{children:["leftOfNumber"===y&&U,(0,L.jsxs)("div",{className:"ablocks-counter__content-text-wrapper",children:["bar"===h&&W,N[h]]}),"rightOfNumber"===y&&U]}),"circle"===h&&(0,L.jsxs)(L.Fragment,{children:["bar"===h&&W,N[h]]}),"bar"===h&&(0,L.jsxs)(L.Fragment,{children:["bar"===h&&"top"===a&&W,N[h],"bar"===h&&"bottom"===a&&W]})]})]})}CT.propTypes={};const AT=(t,e="")=>{ | |
| 2266 | -const i={};return t?.alignment["value"+e]&&(i["justify-content"]=t?.alignment["value"+e],i["align-items"]=t?.alignment["value"+e]),i},LT=(t,e="")=>{const i={},o=t?.alignment["value"+e];return o&&(i["justify-content"]=o,"center"===o?i["text-align"]="center":"flex-end"===o&&(i["text-align"]="right")),i},DT=(t,e="")=>{const i={},o=t?.alignment||{},a=o["value"+e]||o.value;return a&&(i["align-items"]=a),i},NT=(t,e="")=>{const i=(0,M.Zy)(t.numberTypography,{weight:"400"}),o=(0,M.Zy)(t?.numberMargin,{unit:"px"}),a=t.numberTypographyGlobal?t.numberTypographyGlobal:"",l={...(0,P.qD)(i,e,a),...(0,c.qD)(o,"margin",e)};return t?.numberColor&&(l.color=(0,gs.qD)(t?.numberColor)),"leftOfNumber"===t?.mediaPosition||"rightOfNumber"===t?.mediaPosition||"bar"===t?.layout?(l.display="inline-flex",l["align-items"]="center",l["justify-content"]="center"):l.display="block",l},IT=(t,e="")=>{const i=(0,M.Zy)(t.headingTypography,{weight:"400"}),o=(0,M.Zy)(t?.headingMargin,{unit:"px" | |
| 2267 | -}),a=t.headingTypographyGlobal?t.headingTypographyGlobal:"",l={...(0,P.qD)(i,e,a),...(0,c.qD)(o,"margin",e)};return t?.headingColor&&(l.color=(0,gs.qD)(t?.headingColor)),l},VT=(t,e="")=>{const{barHeadingPosition:i,barSize:o}=t,a={...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:40,unitDefaultValue:"px",property:"height",device:e})};return i&&"inner"===i&&(a["justify-content"]="space-between"),!i||"top"!==i&&"bottom"!==i||(a["justify-content"]="right"),{background:(0,gs.qD)(t?.barProgressColor),...a}},OT=(t,e="")=>{const i={};return"center"===t?.alignment["value"+e]?i["align-items"]="center":"left"===t?.alignment["value"+e]?i["align-items"]="flex-start":"right"===t?.alignment["value"+e]&&(i["align-items"]="flex-end"),i};function YT(t){ | |
| 2268 | -const{attributes:e}=t,{barHeadingPosition:i,startNumber:o,endNumber:a,duration:n,animationRepeat:s,counterPrefix:r,counterSuffix:b,decimalPlaces:c,separator:d,isShowIcon:u,layout:p,counterTitle:m,block_id:h,mediaPosition:g,totalNumber:f,circleSize:y}=e,T=(0,L.jsx)(C.RichText.Content,{tagName:"div",value:m,className:"ablocks-counter__text"}),H=u&&(0,L.jsx)("div",{className:"ablocks-counter__icon",children:(0,L.jsx)(Vd,{attributes:e})}),M=(0,L.jsxs)("div",{className:"ablocks-counter__content",children:[(0,L.jsx)("span",{className:"ablocks-counter__content-prefix",children:r}),(0,L.jsx)("span",{className:"ablocks-counter__content-number",children:o}),(0,L.jsx)("span",{className:"ablocks-counter__content-suffix",children:b})]}),x=(0,L.jsxs)(l().Fragment,{children:["top"===g&&H,M,T,"bottom"===g&&H]}),k=y/2,v=2*Math.PI*k,_=o/f*100,R={number:x,circle:(0,L.jsxs)("div",{className:"ablocks-circle-counter__outer",children:[(0,L.jsx)("div",{className:"ablocks-circle-counter__inner",children:x | |
| 2269 | -}),(0,L.jsxs)("svg",{className:"ablocks-circle-counter__svg",width:y,height:y,style:{rotate:"-90deg"},children:[(0,L.jsx)("circle",{className:"ablocks-circle-counter__background",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v}),(0,L.jsx)("circle",{className:"ablocks-circle-counter__progress",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v,strokeDashoffset:v})]})]}),bar:(0,L.jsx)("div",{className:"ablocks-bar-counter__background",children:(0,L.jsxs)("div",{className:"ablocks-bar-counter__progress",style:{width:`${_}%`},children:["inner"===i&&T,M]})})},S={"data-start":o.toString(),"data-end":a.toString(),"data-total":f.toString(),"data-duration":n,"data-separator":d,"data-decimalPlaces":c,"data-circleSize":y,"data-layout":p,"data-animationRepeat":s};return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:h,name:zT,attributes:e,blockProps:{...S},className:`ablocks-block--counter--${p}`,children:["number"===p&&(0,L.jsxs)(L.Fragment,{ | |
| 2270 | -children:["leftOfNumber"===g&&H,(0,L.jsxs)("div",{className:"ablocks-counter__content-text-wrapper",children:["bar"===p&&T,R[p]]}),"rightOfNumber"===g&&H]}),"circle"===p&&(0,L.jsxs)(L.Fragment,{children:["bar"===p&&T,R[p]]}),"bar"===p&&(0,L.jsxs)(L.Fragment,{children:["bar"===p&&"top"===i&&T,R[p],"bar"===p&&"bottom"===i&&T]})]})})}YT.propTypes={};const XT={UU:"ablocks/counter",uK:{numberMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"", | |
| 2271 | -leftMobile:"",unitMobile:""}},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},numberTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headingTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", | |
| 2272 | -fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},layout:{type:"string",default:"number"},duration:{type:"number",default:1e3},decimalPlaces:{type:"number",default:0},circleSize:{type:"number",default:220},circleStrokeSize:{type:"number",default:20},barSize:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string", | |
| 2254 | +type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function UT(t){const{attributes:e}=t,{block_id:i,dividerPatternUrl:o,dividerType:a,element:n,elementText:r,size:b,color:c,weight:d,elementIconPosition:u,elementTextPosition:p}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:PT.UU,attributes:e,children:"mask-style"===a?(0,I.jsxs)(I.Fragment,{children:["none"===n&&(0,I.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-mask ",style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":c}}),"text"===n&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-text--${p}`),style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":c},children:(0,I.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,I.jsx)("div",{ | |
| 2255 | +className:s()("ablocks-divider",`ablocks-divider__pattern-mask-element-icon--${u}`),style:{"--ablocks-divider-pattern-url":`url(${o})`,"--ablocks-divider-pattern-height":`${b}px`,"--ablocks-divider-pattern-color":c},children:(0,I.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,I.jsx)(Fd,{attributes:e})})})]}):(0,I.jsxs)(I.Fragment,{children:["none"===n&&(0,I.jsx)("div",{className:" ablocks-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":c}}),"text"===n&&(0,I.jsx)("div",{className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-text--${p}`),style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":c},children:(0,I.jsx)("span",{className:"ablocks-divider__element-text",children:r})}),"icon"===n&&(0,I.jsx)("div",{ | |
| 2256 | +className:s()("ablocks-divider",`ablocks-divider__pattern-css-element-icon--${u}`),style:{"--ablocks-divider-pattern-style":o,"--ablocks-divider-pattern-weight":`${d}px`,"--ablocks-divider-pattern-color":c},children:(0,I.jsx)("div",{className:"ablocks-divider__element-icon",children:(0,I.jsx)(Fd,{attributes:e})})})]})})})}UT.propTypes={},(0,M.xV)(xT.UU)&&(0,o.registerBlockType)(xT.UU,{title:(0,L.__)("Divider","ablocks"),attributes:xT.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-divider"}),edit:function(t){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):{} | |
| 2257 | +;t.addClassStyles("{{WRAPPER}}",vT(i),vT(i,"Tablet"),vT(i,"Mobile"),e(t=>vT(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",_T(i),_T(i,"Tablet"),_T(i,"Mobile"),e(t=>_T(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider",RT(i),RT(i,"Tablet"),RT(i,"Mobile"),e(t=>RT(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-text",ST(i),ST(i,"Tablet"),ST(i,"Mobile"),e(t=>ST(i,t)));const o={...(0,Eb.qD)({attributeValue:i?.elementIconSpacing,attributeObjectKey:"value",isResponsive:!0,property:"margin-left",hasUnit:!0,defaultValue:0,unitDefaultValue:"px"})},a={...(0,Eb.qD)({attributeValue:i?.elementIconSpacing,attributeObjectKey:"value",isResponsive:!0,property:"margin-right",hasUnit:!0,defaultValue:0,unitDefaultValue:"px"})},n={...(0,Ud.PT)(i),...o,...a};t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap",n,(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t)));const s={...(0,Ud.fW)(i),...o,...a} | |
| 2258 | +;return t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap:hover",s,(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-divider__element-icon .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.divider.editorInlineCSS",null,i,t)||t.generateCSS()},[i]) | |
| 2259 | +;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(MT,{...t}),(0,I.jsx)(kT,{...t})]})},save:WT,deprecated:[{attributes:PT.uK,save:UT}]});var jT=i(58351);const wT=[{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"}],zT=[{label:(0,L.__)("Default","ablocks"),value:""},{label:(0,L.__)("Comma","ablocks"),value:","},{label:(0,L.__)("Dot","ablocks"),value:"."},{label:(0,L.__)("WhiteSpace","ablocks"),value:" "},{label:(0,L.__)("Apostrophe","ablocks"),value:"'"},{label:(0,L.__)("Underline","ablocks"),value:"_"}],CT=[{value:"number",label:(0,L.__)("Number","ablocks")},{value:"circle",label:(0,L.__)("Circle","ablocks")},{value:"bar",label:(0,L.__)("Bar","ablocks")}],AT=t=>{switch(t){case"preset-1":return[{value:"top",label:(0,L.__)("Top","ablocks")},{value:"bottom",label:(0,L.__)("Bottom","ablocks")},{ | |
| 2260 | +value:"leftOfNumber",label:(0,L.__)("Left Of Number","ablocks")},{value:"rightOfNumber",label:(0,L.__)("Right Of Number","ablocks")}];case"preset-2":return[{value:"top",label:(0,L.__)("Top","ablocks")},{value:"bottom",label:(0,L.__)("Bottom","ablocks")}]}},LT=((0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Inner","ablocks"),value:"inner"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"}]);function DT(t){const{attributes:e,setAttributes:i}=t,{counterTitle:o,startNumber:a,endNumber:n,totalNumber:s,separator:r,counterPrefix:b,counterSuffix:c,isShowIcon:d,layout:u,alignment:p,mediaPosition:m,decimalPlaces:h,duration:g,animationRepeat:f,numberColor:y,numberTypography:T,headingColor:H,headingTypography:M,barHeadingPosition:x,circleProgressColor:k,circleBackgroundColor:v,circleSize:_,circleStrokeSize:R,barProgressColor:S,barBackgroundColor:W,barSize:P}=e;return(0,I.jsx)(l().Fragment,{ | |
| 2261 | +children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advanced-counter-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Counter","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:p,setAttributes:i,isInline:!1,options:wT}),(0,I.jsx)(Wb,{label:(0,L.__)("Layout","ablocks"),setAttributes:i,attributeName:"layout",attributeValue:u,options:CT,onChangeHandler:t=>{"circle"===t&&i({mediaPosition:"top"}),i({layout:t})},isResponsive:!1,allowDeselect:!1}),"bar"!==u&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:d,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Starting Number","ablocks"),attributeName:"startNumber",attributeValue:parseInt(a)||0,setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Ending Number","ablocks"), | |
| 2262 | +attributeName:"endNumber",attributeValue:parseInt(n)||0,setAttributes:i})]}),"number"!==u&&(0,I.jsx)(As,{label:(0,L.__)("Total Number","ablocks"),attributeName:"totalNumber",attributeValue:parseInt(s)||0,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Duration(ms)","ablocks"),attributeName:"duration",attributeValue:g,setAttributes:i,min:0,max:1e4,step:100,isInline:!1,isResponsive:!1,attributeDefaultValue:jT.p0}),(0,I.jsx)(Ot,{label:(0,L.__)("Animation Repeat","ablocks"),attributeName:"animationRepeat",attributeValue:f,setAttributes:i,isResponsive:!1})]}),(0,I.jsx)(V,{title:(0,L.__)("Number","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Decimal places","ablocks"),attributeName:"decimalPlaces",attributeValue:h,setAttributes:i,min:0,max:10,step:1,isInline:!1,isResponsive:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Number Prefix","ablocks"),attributeName:"counterPrefix",attributeValue:b,setAttributes:i}),(0, | |
| 2263 | +I.jsx)(Kl,{label:(0,L.__)("Number Suffix","ablocks"),attributeName:"counterSuffix",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Thousand Separator","ablocks"),options:zT,attributeName:"separator",attributeValue:r,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"numberColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"numberTypography",attributeValue:T,setAttributes:i,attributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"numberMargin",attributeValue:e?.numberMargin,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Heading","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"counterTitle",attributeValue:o,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")})}),style:(0,I.jsxs)(I.Fragment,{ | |
| 2264 | +children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headingColor",attributeValue:H,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headingTypography",attributeValue:M,setAttributes:i,attributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"headingMargin",attributeValue:e.headingMargin,setAttributes:i})]})})}),"circle"===u&&(0,I.jsx)(V,{title:(0,L.__)("Circle","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Circle size","ablocks"),attributeName:"circleSize",attributeValue:_,setAttributes:i,min:50,max:500,step:1,isInline:!1,isResponsive:!1,attributeDefaultValue:jT.eU}),(0,I.jsx)(_t,{label:(0,L.__)("Stroke size","ablocks"),attributeName:"circleStrokeSize",attributeValue:R,setAttributes:i,min:10,max:150,step:1,isInline:!1,isResponsive:!1,attributeDefaultValue:jT.o7})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0, | |
| 2265 | +L.__)("Progress Color","ablocks"),attributeName:"circleProgressColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"circleBackgroundColor",attributeValue:v,setAttributes:i})]})})}),"bar"===u&&(0,I.jsx)(V,{title:(0,L.__)("Bar","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"barSize",attributeValue:P,setAttributes:i,min:10,max:100,step:1,isInline:!1,isResponsive:!1,hasUnit:!0,unitOptions:[{value:"px",label:"px"}],attributeDefaultValue:jT.NZ}),(0,I.jsx)(Ut,{label:(0,L.__)("Heading position","ablocks"),attributeName:"barHeadingPosition",attributeValue:x,options:LT,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Progress Color","ablocks"),attributeName:"barProgressColor",attributeValue:S,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"), | |
| 2266 | +attributeName:"barBackgroundColor",attributeValue:W,setAttributes:i})]})})}),d&&"bar"!==u&&(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Position","ablocks"),options:AT("number"===u?"preset-1":"preset-2"),attributeName:"mediaPosition",attributeValue:m,setAttributes:i}),(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})})})})]})})})}DT.propTypes={};const NT=class{constructor(t){if(this.ablocksCounter=t,!this.ablocksCounter)return;const e=t;this.startValue=Number(e?.getAttribute("data-start"))||0,this.endValue=Number(e?.getAttribute("data-end"))||0,this.totalNumber=Number(e?.getAttribute("data-total"))||0,this.duration=Number(e?.getAttribute("data-duration")),this.separator=e?.getAttribute("data-separator"), | |
| 2267 | +this.decimalPlaces=Number(e?.getAttribute("data-decimalPlaces"))||0,this.circleSize=Number(e?.getAttribute("data-circleSize"))||220;const i=e?.getAttribute("data-layout");this.animationRepeat=e?.getAttribute("data-animationRepeat"),this.layout=i,i?("number"!==i&&this.endValue>=this.totalNumber&&(this.endValue=this.totalNumber),new window.IntersectionObserver(this.IOCallback.bind(this),{root:null,rootMargin:"0px",threshold:.5}).observe(this.ablocksCounter)):console.error(`Missing 'data-layout' attribute for '${e}'.`)}init=()=>{"number"===this.layout?this.numberCounter():"circle"===this.layout?this.circleCounter():"bar"===this.layout?this.bar():console.error(`Unsupported layout '${this.layout}' for '${this.countElement}'.`)};playOnce=!1;IOCallback(t){t.forEach(t=>{t.isIntersecting&&("false"!==this.animationRepeat||this.playOnce||(this.playOnce=!0,this.init()),"true"===this.animationRepeat&&this.init())})}numberCounter(){ | |
| 2268 | +const t=this.ablocksCounter?.querySelector(".ablocks-counter__content-number");if(!t)return void console.error("'.ablocks-counter__content-number' element not found.");const{startValue:e,endValue:i,duration:o,separator:a,decimalPlaces:l}=this;let n=null;const s=i-e,r=i=>{n||(n=i);const b=i-n,c=0===o?1:Math.min(b/o,1),d=e+c*s;t.innerHTML=this.formatNumberWithSeparator(d,a,l),b<o&&window.requestAnimationFrame(r)};window.requestAnimationFrame(r)}circleCounter(){this.numberCounter();const t=this.ablocksCounter?.querySelector(".ablocks-circle-counter__progress");if(!t)return void console.error("'.ablocks-circle-counter__progress' element not found.");const{startValue:e,endValue:i,totalNumber:o,duration:a,circleSize:l}=this,n=l/2,s=2*Math.PI*n,r=[{strokeDashoffset:s-e/o*100/100*s},{strokeDashoffset:s-i/o*100/100*s}],b={duration:a,fill:"forwards"};t.animate(r,b)}bar(){this.numberCounter();const t=this.ablocksCounter?.querySelector(".ablocks-bar-counter__progress") | |
| 2269 | +;if(!t)return void console.error("'.ablocks-bar-counter__progress' element not found.");const{startValue:e,endValue:i,totalNumber:o,duration:a}=this,l=[{width:e/o*100+"%"},{width:i/o*100+"%"}],n={duration:a,fill:"forwards"};t.animate(l,n)}formatNumberWithSeparator(t,e,i){const o={minimumFractionDigits:i,maximumFractionDigits:i};return t.toLocaleString("en-US",o).replace(/,/g,e)}},IT="ablocks/counter";function VT(t){const{attributes:e,setAttributes:i}=t,{alignment:o,barHeadingPosition:a,startNumber:n,endNumber:s,duration:r,animationRepeat:b,counterPrefix:c,counterSuffix:d,decimalPlaces:u,separator:p,isShowIcon:m,layout:h,counterTitle:g,block_id:f,mediaPosition:y,totalNumber:T,circleSize:H}=e,{isDynamicEnabled:x,data:k}=id({attributeValue:g}),{isDynamicEnabled:v,data:_}=id({attributeValue:c}),{isDynamicEnabled:R,data:S}=id({attributeValue:d});(0,Yt.useEffect)(()=>{new NT((0,M.bu)(`.ablocks-block-${f}`))},[s,r,n,p,c,d,u,h,T,f,H,b]);const W=(0,I.jsx)($c,{tagName:"div",value:g, | |
| 2270 | +className:"ablocks-counter__text",onChange:t=>i({counterTitle:t}),placeholder:(0,L.__)("Enter your title…","ablocks")}),P=m&&(0,I.jsx)("div",{className:"ablocks-counter__icon",children:(0,I.jsx)(Fd,{attributes:e})}),U=(0,I.jsxs)("div",{className:"ablocks-counter__content",children:[(0,I.jsx)("span",{className:"ablocks-counter__content-prefix",children:v?_:c}),(0,I.jsx)("span",{className:"ablocks-counter__content-number",children:n}),(0,I.jsx)("span",{className:"ablocks-counter__content-suffix",children:R?S:d})]}),j=(0,I.jsxs)(l().Fragment,{children:["top"===y&&P,U,W,"bottom"===y&&P]}),w=H/2,z=2*Math.PI*w,C=n/T*100,A={number:j,circle:(0,I.jsxs)("div",{className:"ablocks-circle-counter__outer",children:[(0,I.jsx)("div",{className:"ablocks-circle-counter__inner",children:j}),(0,I.jsxs)("svg",{className:"ablocks-circle-counter__svg",width:H,height:H,style:{rotate:"-90deg"},children:[(0,I.jsx)("circle",{className:"ablocks-circle-counter__background",cx:H/2,cy:H/2,r:w,strokeWidth:"10", | |
| 2271 | +fill:"none",strokeDasharray:z}),(0,I.jsx)("circle",{className:"ablocks-circle-counter__progress",cx:H/2,cy:H/2,r:w,strokeWidth:"10",fill:"none",strokeDasharray:z,strokeDashoffset:z})]})]}),bar:(0,I.jsx)("div",{className:"ablocks-bar-counter__background",children:(0,I.jsxs)("div",{className:"ablocks-bar-counter__progress",style:{width:`${C}%`},children:["inner"===a&&W,U]})})},N={"data-start":n,"data-end":s,"data-total":T,"data-duration":r,"data-separator":p,"data-decimalPlaces":u,"data-circleSize":H,"data-layout":h,"data-animationRepeat":b};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsxs)(Yb.A,{blockId:f,name:IT,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],blockProps:{...N},className:`ablocks-block--counter--${h}`,children:["number"===h&&(0,I.jsxs)(I.Fragment,{children:["leftOfNumber"===y&&P,(0,I.jsxs)("div",{ | |
| 2272 | +className:"ablocks-counter__content-text-wrapper",children:["bar"===h&&W,A[h]]}),"rightOfNumber"===y&&P]}),"circle"===h&&(0,I.jsxs)(I.Fragment,{children:["bar"===h&&W,A[h]]}),"bar"===h&&(0,I.jsxs)(I.Fragment,{children:["bar"===h&&"top"===a&&W,A[h],"bar"===h&&"bottom"===a&&W]})]})]})}VT.propTypes={};const OT=(t,e="")=>{const i={};return t?.alignment["value"+e]&&(i["justify-content"]=t?.alignment["value"+e],i["align-items"]=t?.alignment["value"+e]),i},YT=(t,e="")=>{const i={},o=t?.alignment["value"+e];return o&&(i["justify-content"]=o,"center"===o?i["text-align"]="center":"flex-end"===o&&(i["text-align"]="right")),i},XT=(t,e="")=>{const i={},o=t?.alignment||{},a=o["value"+e]||o.value;return a&&(i["align-items"]=a),i},BT=(t,e="")=>{const i=(0,M.Zy)(t.numberTypography,{weight:"400"}),o=(0,M.Zy)(t?.numberMargin,{unit:"px"}),a=t.numberTypographyGlobal?t.numberTypographyGlobal:"",l={...(0,U.qD)(i,e,a),...(0,c.qD)(o,"margin",e)};return t?.numberColor&&(l.color=(0,Hs.qD)(t?.numberColor)), | |
| 2273 | +"leftOfNumber"===t?.mediaPosition||"rightOfNumber"===t?.mediaPosition||"bar"===t?.layout?(l.display="inline-flex",l["align-items"]="center",l["justify-content"]="center"):l.display="block",l},ET=(t,e="")=>{const i=(0,M.Zy)(t.headingTypography,{weight:"400"}),o=(0,M.Zy)(t?.headingMargin,{unit:"px"}),a=t.headingTypographyGlobal?t.headingTypographyGlobal:"",l={...(0,U.qD)(i,e,a),...(0,c.qD)(o,"margin",e)};return t?.headingColor&&(l.color=(0,Hs.qD)(t?.headingColor)),l},FT=(t,e="")=>{const{barHeadingPosition:i,barSize:o}=t,a={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:40,unitDefaultValue:"px",property:"height",device:e})};return i&&"inner"===i&&(a["justify-content"]="space-between"),!i||"top"!==i&&"bottom"!==i||(a["justify-content"]="right"),{background:(0,Hs.qD)(t?.barProgressColor),...a}},qT=(t,e="")=>{const i={} | |
| 2274 | +;return"center"===t?.alignment["value"+e]?i["align-items"]="center":"left"===t?.alignment["value"+e]?i["align-items"]="flex-start":"right"===t?.alignment["value"+e]&&(i["align-items"]="flex-end"),i};function $T(t){const{attributes:e}=t,{barHeadingPosition:i,startNumber:o,endNumber:a,duration:n,animationRepeat:s,counterPrefix:r,counterSuffix:b,decimalPlaces:c,separator:d,isShowIcon:u,layout:p,counterTitle:m,block_id:h,mediaPosition:g,totalNumber:f,circleSize:y}=e,T=(0,I.jsx)(D.RichText.Content,{tagName:"div",value:m,className:"ablocks-counter__text"}),H=u&&(0,I.jsx)("div",{className:"ablocks-counter__icon",children:(0,I.jsx)(Fd,{attributes:e})}),M=(0,I.jsxs)("div",{className:"ablocks-counter__content",children:[(0,I.jsx)("span",{className:"ablocks-counter__content-prefix",children:r}),(0,I.jsx)("span",{className:"ablocks-counter__content-number",children:o}),(0,I.jsx)("span",{className:"ablocks-counter__content-suffix",children:b})]}),x=(0,I.jsxs)(l().Fragment,{ | |
| 2275 | +children:["top"===g&&H,M,T,"bottom"===g&&H]}),k=y/2,v=2*Math.PI*k,_=o/f*100,R={number:x,circle:(0,I.jsxs)("div",{className:"ablocks-circle-counter__outer",children:[(0,I.jsx)("div",{className:"ablocks-circle-counter__inner",children:x}),(0,I.jsxs)("svg",{className:"ablocks-circle-counter__svg",width:y,height:y,style:{rotate:"-90deg"},children:[(0,I.jsx)("circle",{className:"ablocks-circle-counter__background",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v}),(0,I.jsx)("circle",{className:"ablocks-circle-counter__progress",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v,strokeDashoffset:v})]})]}),bar:(0,I.jsx)("div",{className:"ablocks-bar-counter__background",children:(0,I.jsxs)("div",{className:"ablocks-bar-counter__progress",style:{width:`${_}%`},children:["inner"===i&&T,M]})})},S={"data-start":o.toString(),"data-end":a.toString(),"data-total":f.toString(),"data-duration":n,"data-separator":d,"data-decimalPlaces":c,"data-circleSize":y, | |
| 2276 | +"data-layout":p,"data-animationRepeat":s};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:h,name:IT,attributes:e,blockProps:{...S},className:`ablocks-block--counter--${p}`,children:["number"===p&&(0,I.jsxs)(I.Fragment,{children:["leftOfNumber"===g&&H,(0,I.jsxs)("div",{className:"ablocks-counter__content-text-wrapper",children:["bar"===p&&T,R[p]]}),"rightOfNumber"===g&&H]}),"circle"===p&&(0,I.jsxs)(I.Fragment,{children:["bar"===p&&T,R[p]]}),"bar"===p&&(0,I.jsxs)(I.Fragment,{children:["bar"===p&&"top"===i&&T,R[p],"bar"===p&&"bottom"===i&&T]})]})})}$T.propTypes={};const GT={UU:"ablocks/counter",uK:{numberMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headingMargin:{type:"object",default:{isLinked:!0, | |
| 2277 | +isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},numberTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headingTypography:{ | |
| 2278 | +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"}},layout:{type:"string",default:"number"},duration:{type:"number",default:1e3},decimalPlaces:{type:"number",default:0},circleSize:{type:"number",default:220},circleStrokeSize:{type:"number",default:20},barSize:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSize:{type:"number",default:55},iconRotate:{type:"number", | |
| 2279 | +default:0},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute", | |
| 2280 | +selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{ | |
| 2281 | +type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},block_id:{type:"string",default:""},isShowIcon:{type:"boolean",default:!0},mediaPosition:{type:"string",default:"top"},startNumber:{type:"number",default:0},endNumber:{type:"number",default:80},totalNumber:{type:"number",default:100},animationRepeat:{type:"boolean",default:!1},counterPrefix:{type:"string",default:""},counterSuffix:{type:"string",default:"%"},separator:{type:"string",default:","},counterTitle:{type:"string",default:"Enter your title"},numberColor:{type:"string",default:"black"},headingColor:{type:"string",default:"#4B4F58"},circleProgressColor:{type:"string",default:"black"},circleBackgroundColor:{type:"string",default:"#dadada"},barProgressColor:{type:"string",default:"black"},barBackgroundColor:{type:"string",default:"#dadada"},barHeadingPosition:{type:"string", | |
| 2282 | +default:"top"},_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:"",isLinkedWidth:!0, | |
| 2283 | +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:"", | |
| 2284 | +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"}},_background:{ | |
| 2285 | +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:"", | |
| 2286 | +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:{ | |
| 2287 | +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:"", | |
| 2288 | +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:"", | |
| 2289 | +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 ZT(t){ | |
| 2290 | +const{attributes:e}=t,{barHeadingPosition:i,startNumber:o,endNumber:a,duration:n,animationRepeat:s,counterPrefix:r,counterSuffix:b,decimalPlaces:c,separator:d,isShowIcon:u,layout:p,counterTitle:m,block_id:h,mediaPosition:g,totalNumber:f,circleSize:y}=e,T=(0,I.jsx)(D.RichText.Content,{tagName:"div",value:m,className:"ablocks-counter__text"}),H=u&&(0,I.jsx)("div",{className:"ablocks-counter__icon",children:(0,I.jsx)(Fd,{attributes:e})}),M=(0,I.jsxs)("div",{className:"ablocks-counter__content",children:[(0,I.jsx)("span",{className:"ablocks-counter__content-prefix",children:r}),(0,I.jsx)("span",{className:"ablocks-counter__content-number",children:o}),(0,I.jsx)("span",{className:"ablocks-counter__content-suffix",children:b})]}),x=(0,I.jsxs)(l().Fragment,{children:["top"===g&&H,M,T,"bottom"===g&&H]}),k=y/2,v=2*Math.PI*k,_=o/f*100,R={number:x,circle:(0,I.jsxs)("div",{className:"ablocks-circle-counter__outer",children:[(0,I.jsx)("div",{className:"ablocks-circle-counter__inner",children:x | |
| 2291 | +}),(0,I.jsxs)("svg",{className:"ablocks-circle-counter__svg",width:y,height:y,style:{rotate:"-90deg"},children:[(0,I.jsx)("circle",{className:"ablocks-circle-counter__background",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v}),(0,I.jsx)("circle",{className:"ablocks-circle-counter__progress",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v,strokeDashoffset:v})]})]}),bar:(0,I.jsx)("div",{className:"ablocks-bar-counter__background",children:(0,I.jsxs)("div",{className:"ablocks-bar-counter__progress",style:{width:`${_}%`},children:["inner"===i&&T,M]})})},S={"data-start":o,"data-end":a,"data-total":f,"data-duration":n,"data-separator":d,"data-decimalPlaces":c,"data-circleSize":y,"data-layout":p,"data-animationRepeat":s};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:h,name:GT.UU,attributes:e,blockProps:{...S},className:`ablocks-block--counter--${p}`,children:["number"===p&&(0,I.jsxs)(I.Fragment,{children:["leftOfNumber"===g&&H,(0, | |
| 2292 | +I.jsxs)("div",{className:"ablocks-counter__content-text-wrapper",children:["bar"===p&&T,R[p]]}),"rightOfNumber"===g&&H]}),"circle"===p&&(0,I.jsxs)(I.Fragment,{children:["bar"===p&&T,R[p]]}),"bar"===p&&(0,I.jsxs)(I.Fragment,{children:["bar"===p&&"top"===i&&T,R[p],"bar"===p&&"bottom"===i&&T]})]})})}function KT(t){const{attributes:e,setAttributes:i,context:o}=t,{alignment:a,paragraphSize:n,textShadow:s,typography:r,textColor:b,paragraph:c,textStroke:d,dropCaps:u,dropCapsTextColor:p}=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-paragraph-block/",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"),attributeName:"paragraph",attributeValue:c,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks"),context:o}),(0,I.jsx)(It,{}),(0, | |
| 2293 | +I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"}],attributeValue:n||"md",attributeName:"paragraphSize",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Drop caps","ablocks"),attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),u&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:p,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:b,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:r,setAttributes:i,isResponsive:!0, | |
| 2294 | +attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:d,setAttributes:i,isResponsive:!0})]})})})})})})}ZT.propTypes={},(0,M.xV)(IT)&&(0,o.registerBlockType)(IT,{title:(0,L.__)("Counter","ablocks"),attributes:{numberMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"", | |
| 2295 | +bottomMobile:"",leftMobile:"",unitMobile:""}},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},numberTypographyGlobal:{type:"string",default:""},numberTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headingTypographyGlobal:{type:"string",default:""},headingTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"", | |
| 2296 | +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"}},layout:{type:"string",default:"number"},duration:{type:"number",default:1e3},decimalPlaces:{type:"number",default:0},circleSize:{type:"number",default:220},circleStrokeSize:{type:"number",default:20},barSize:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string", | |
| 2273 | 2297 | 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" |
| 2274 | -},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"", | |
| 2275 | -valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},block_id:{type:"string",default:""},isShowIcon:{type:"boolean",default:!0},mediaPosition:{type:"string",default:"top"},startNumber:{type:"number",default:0},endNumber:{type:"number",default:80},totalNumber:{type:"number",default:100},animationRepeat:{type:"boolean",default:!1},counterPrefix:{type:"string",default:""},counterSuffix:{type:"string",default:"%"},separator:{type:"string",default:","},counterTitle:{type:"string",default:"Enter your title"},numberColor:{type:"string",default:"black"},headingColor:{type:"string",default:"#4B4F58"},circleProgressColor:{type:"string",default:"black"},circleBackgroundColor:{type:"string",default:"#dadada"},barProgressColor:{type:"string",default:"black"},barBackgroundColor:{type:"string",default:"#dadada"},barHeadingPosition:{type:"string",default:"top"},_margin:{type:"object",default:{ | |
| 2276 | -isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", | |
| 2277 | -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:"", | |
| 2278 | -rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none", | |
| 2279 | -backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"", | |
| 2280 | -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:"", | |
| 2281 | -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:"", | |
| 2282 | -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", | |
| 2283 | -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 BT(t){ | |
| 2284 | -const{attributes:e}=t,{barHeadingPosition:i,startNumber:o,endNumber:a,duration:n,animationRepeat:s,counterPrefix:r,counterSuffix:b,decimalPlaces:c,separator:d,isShowIcon:u,layout:p,counterTitle:m,block_id:h,mediaPosition:g,totalNumber:f,circleSize:y}=e,T=(0,L.jsx)(C.RichText.Content,{tagName:"div",value:m,className:"ablocks-counter__text"}),H=u&&(0,L.jsx)("div",{className:"ablocks-counter__icon",children:(0,L.jsx)(Vd,{attributes:e})}),M=(0,L.jsxs)("div",{className:"ablocks-counter__content",children:[(0,L.jsx)("span",{className:"ablocks-counter__content-prefix",children:r}),(0,L.jsx)("span",{className:"ablocks-counter__content-number",children:o}),(0,L.jsx)("span",{className:"ablocks-counter__content-suffix",children:b})]}),x=(0,L.jsxs)(l().Fragment,{children:["top"===g&&H,M,T,"bottom"===g&&H]}),k=y/2,v=2*Math.PI*k,_=o/f*100,R={number:x,circle:(0,L.jsxs)("div",{className:"ablocks-circle-counter__outer",children:[(0,L.jsx)("div",{className:"ablocks-circle-counter__inner",children:x | |
| 2285 | -}),(0,L.jsxs)("svg",{className:"ablocks-circle-counter__svg",width:y,height:y,style:{rotate:"-90deg"},children:[(0,L.jsx)("circle",{className:"ablocks-circle-counter__background",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v}),(0,L.jsx)("circle",{className:"ablocks-circle-counter__progress",cx:y/2,cy:y/2,r:k,strokeWidth:"10",fill:"none",strokeDasharray:v,strokeDashoffset:v})]})]}),bar:(0,L.jsx)("div",{className:"ablocks-bar-counter__background",children:(0,L.jsxs)("div",{className:"ablocks-bar-counter__progress",style:{width:`${_}%`},children:["inner"===i&&T,M]})})},S={"data-start":o,"data-end":a,"data-total":f,"data-duration":n,"data-separator":d,"data-decimalPlaces":c,"data-circleSize":y,"data-layout":p,"data-animationRepeat":s};return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:h,name:XT.UU,attributes:e,blockProps:{...S},className:`ablocks-block--counter--${p}`,children:["number"===p&&(0,L.jsxs)(L.Fragment,{children:["leftOfNumber"===g&&H,(0, | |
| 2286 | -L.jsxs)("div",{className:"ablocks-counter__content-text-wrapper",children:["bar"===p&&T,R[p]]}),"rightOfNumber"===g&&H]}),"circle"===p&&(0,L.jsxs)(L.Fragment,{children:["bar"===p&&T,R[p]]}),"bar"===p&&(0,L.jsxs)(L.Fragment,{children:["bar"===p&&"top"===i&&T,R[p],"bar"===p&&"bottom"===i&&T]})]})})}function ET(t){const{attributes:e,setAttributes:i,context:o}=t,{alignment:a,paragraphSize:n,textShadow:s,typography:r,textColor:b,paragraph:c,textStroke:d,dropCaps:u,dropCapsTextColor:p}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-paragraph-block/",children:(0,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"paragraph",attributeValue:c,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks"),context:o}),(0,L.jsx)(Nt,{}),(0, | |
| 2287 | -L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:a,setAttributes:i,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),isResponsive:!1,options:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}],attributeValue:n||"md",attributeName:"paragraphSize",setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Drop caps","ablocks"),attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),u&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:p,setAttributes:i})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:b,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0, | |
| 2288 | -z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:d,setAttributes:i,isResponsive:!0})]})})})})})})}BT.propTypes={},(0,M.xV)(zT)&&(0,o.registerBlockType)(zT,{title:"Counter",attributes:{numberMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},alignment:{type:"object", | |
| 2289 | -default:{value:"center",valueTablet:"",valueMobile:""}},numberTypographyGlobal:{type:"string",default:""},numberTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headingTypographyGlobal:{type:"string",default:""},headingTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", | |
| 2290 | -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"}},layout:{type:"string",default:"number"},duration:{type:"number",default:1e3},decimalPlaces:{type:"number",default:0},circleSize:{type:"number",default:220},circleStrokeSize:{type:"number",default:20},barSize:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string", | |
| 2291 | -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" | |
| 2292 | 2298 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", |
| 2293 | 2299 | rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},block_id:{type:"string",default:""}, |
| 2294 | 2300 | blockVersion:{type:"number",default:""},isShowIcon:{type:"boolean",default:!0},mediaPosition:{type:"string",default:"top"},startNumber:{type:"number",default:0},endNumber:{type:"number",default:80},totalNumber:{type:"number",default:100},animationRepeat:{type:"boolean",default:!1},counterPrefix:{type:"string",default:""},counterSuffix:{type:"string",default:"%"},separator:{type:"string",default:","},counterTitle:{type:"string",default:"Enter your title"},numberColor:{type:"string",default:"#08fd00ff"},headingColor:{type:"string",default:"#4B4F58"},circleProgressColor:{type:"string",default:"black"},circleBackgroundColor:{type:"string",default:"#dadada"},barProgressColor:{type:"string",default:"black"},barBackgroundColor:{type:"string",default:"#dadada"},barHeadingPosition:{type:"string",default:"top"},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", |
| 2295 | 2301 | bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"", |
| @@ -2299,177 +2305,182 @@ | ||
| 2299 | 2305 | 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:"", |
| 2300 | 2306 | 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", |
| 2301 | 2307 | 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", |
| 2302 | 2308 | 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:""}, |
| 2303 | -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-counter"}),edit:function(t){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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-container",DT(i),DT(i,"Tablet"),DT(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle .ablocks-block-container",AT(i),AT(i,"Tablet"),AT(i,"Mobile")), | |
| 2304 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--number:not(.ablocks-has-container), {{WRAPPER}}.ablocks-block--counter--number .ablocks-block-container",LT(i),LT(i,"Tablet"),LT(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-counter__content",NT(i),NT(i,"Tablet"),NT(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-counter__text",IT(i),IT(i,"Tablet"),IT(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--bar .ablocks-bar-counter__background ",(t=>({background:(0,gs.qD)(t?.barBackgroundColor)}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--bar .ablocks-bar-counter__progress",VT(i),VT(i,"Tablet"),VT(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle",OT(i),OT(i,"Tablet"),OT(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle .ablocks-circle-counter__background ",(t=>({stroke:(0,gs.qD)(t?.circleBackgroundColor),...(0,Ob.qD)({attributeValue:t?.circleStrokeSize,attributeObjectKey:"value",defaultValue:20, | |
| 2305 | -property:"stroke-width"})}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle .ablocks-circle-counter__progress",(t=>({stroke:(0,gs.qD)(t?.circleProgressColor),...(0,Ob.qD)({attributeValue:t?.circleStrokeSize,attributeObjectKey:"value",defaultValue:20,property:"stroke-width"})}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")), | |
| 2306 | -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),(0,b.applyFilters)("ablocks.counter.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(jT,{...t}),(0,L.jsx)(CT,{...t})]})},save:YT,deprecated:[{attributes:XT.uK,save:BT}]}),ET.propTypes={};const FT={UU:"ablocks/paragraph",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},paragraph:{type:"string",source:"html",selector:".ablocks-paragraph-text"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},paragraphSize:{type:"string",default:"md"},textColor:{type:"string",default:"#000000"},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"", | |
| 2307 | -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:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"", | |
| 2308 | -commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"", | |
| 2309 | -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, | |
| 2310 | -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:"", | |
| 2311 | -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", | |
| 2312 | -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:"", | |
| 2313 | -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:"", | |
| 2314 | -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", | |
| 2315 | -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", | |
| 2316 | -default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},qT=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}];function $T(t){const{attributes:e,setAttributes:i,context:o}=t,{block_id:a,paragraph:n,paragraphTag:r,dropCaps:b,paragraphSize:c,alignment:d}=e;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:d,setAttributes:i,options:qT})}),(0,L.jsx)(Nb.A,{blockId:a,name:FT.UU,attributes:e,children:(0,L.jsx)(Yc,{tagName:r||"p",value:n,className:s()("ablocks-paragraph-text",`ablocks-paragraph-text-${c}`,{"ablocks-paragraph-text-drop-caps":b}),onChange:t=>i({paragraph:t}),placeholder:(0,z.__)("Add your paragraph text","ablocks"),context:o})})]})}$T.propTypes={} | |
| 2317 | -;const GT=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e)}),ZT=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,gs.qD)(t?.textColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.textStroke,e),...(0,pc.qD)(t?.textShadow)}},KT=t=>({color:(0,gs.qD)(t?.dropCapsTextColor)});function JT(t){const{attributes:e}=t,{block_id:i,dropCaps:o,paragraphSize:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:FT.UU,attributes:e,children:(0,L.jsx)(C.RichText.Content,{tagName:"p",className:s()("ablocks-paragraph-text",`ablocks-paragraph-text-${a}`,{"ablocks-paragraph-text-drop-caps":o}),value:e.paragraph})})})}JT.propTypes={};const QT={UU:"ablocks/paragraph",uK:{block_id:{type:"string",default:""},paragraph:{type:"string",source:"html",selector:".ablocks-paragraph-text"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},paragraphSize:{type:"string",default:"md"},textColor:{ | |
| 2318 | -type:"string",default:"#000000"},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:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{ | |
| 2319 | -type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 2320 | -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:"", | |
| 2321 | -leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{ | |
| 2322 | -backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"", | |
| 2323 | -imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"", | |
| 2324 | -rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"", | |
| 2325 | -rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px", | |
| 2326 | -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 tH(t){const{attributes:e}=t,{block_id:i,dropCaps:o,paragraphSize:a}=e;return(0,L.jsx)(l().Fragment,{children:(0, | |
| 2327 | -L.jsx)(dc,{blockId:i,name:QT.UU,attributes:e,children:(0,L.jsx)(C.RichText.Content,{tagName:"p",className:s()("ablocks-paragraph-text",`ablocks-paragraph-text-${a}`,{"ablocks-paragraph-text-drop-caps":o}),value:e.paragraph})})})}tH.propTypes={},(0,M.xV)(FT.UU)&&(0,o.registerBlockType)(FT.UU,{title:"paragraph",attributes:FT.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-paragraph"}),edit:function(t){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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",GT(i),GT(i,"Tablet"),GT(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-paragraph-text",ZT(i),ZT(i,"Tablet"),ZT(i,"Mobile")), | |
| 2328 | -t.addClassStyles("{{WRAPPER}} .ablocks-paragraph-text-drop-caps::first-letter",KT(i),KT(i),KT(i)),(0,b.applyFilters)("ablocks.paragraph.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(ET,{...t}),(0,L.jsx)($T,{...t})]})},save:JT,deprecated:[{attributes:QT.uK,save:tH}]});const eH=window.wp.compose,iH="v",oH=[{key:"",label:"Normal"},{key:":hover",label:"Hover"},{key:":focus",label:"Focus"},{key:":focus-visible",label:"Focus (keyboard)"},{key:":active",label:"Active"}],aH=t=>String(t).startsWith("@"),lH=t=>{const e=t||{};if(!e.min&&!e.max)return"";const i=String(e.id||"");return"@"+i.charAt(0).toLowerCase()+i.slice(1)},nH=()=>({[iH]:3}),sH=t=>!!t&&"object"==typeof t&&3===Number(t[iH]),rH=(t,e,i)=>{if(!t||"object"!=typeof t)return{};const o=""===e?t:t[e],a=o&&"object"==typeof o?o[i]:null;return a&&"object"==typeof a?a:{}},bH=(t,e,i,o)=>{const a={...t||{},[iH]:3};return""===e?(a[i]=o,a):(a[e]={...a[e]||{}, | |
| 2329 | -[i]:o},a)},cH=(t,e,i)=>{let o={};return(e||[]).forEach(e=>{const a=rH(t,lH(e),i),l=a.typography?dH(o.typography,a.typography):o.typography;o={...o,...a},l&&(o.typography=l)}),o},dH=(t,e)=>{const i={...t||{}};return Object.keys(e||{}).forEach(t=>{const o=e[t];void 0!==o&&""!==o&&(i[t]=o,/Unit$/.test(t)||`${t}Unit`in e||delete i[`${t}Unit`])}),i},uH=(t,e,i,o,a)=>{for(const l of pH(e,a))for(const e of""===i?[""]:[i,""]){const i=rH(t,l,e)[o];if(void 0!==i&&""!==i)return i}},pH=(t,e)=>{if(!Array.isArray(e)||!e.length)return""===t?[""]:[t,""];const i=[t];return[...e].reverse().map(lH).forEach(t=>{i.includes(t)||i.push(t)}),i.includes("")||i.push(""),i},mH=t=>"isLinked"===t||"unit"===t||/Unit$/.test(t),hH=t=>null!=t&&""!==t&&!1!==t&&(Array.isArray(t)?t.length>0:"object"!=typeof t||Object.keys(t).some(e=>!mH(e)&&hH(t[e]))),gH=(t,e)=>{if(!t||"object"!=typeof t)return!1;const i=t=>!!t&&"object"==typeof t&&Object.keys(t).some(e=>hH(t[e]));return Object.keys(t).some(o=>{if(o===iH)return!1 | |
| 2330 | -;if(aH(o)){const a=t[o];return!!a&&"object"==typeof a&&i(a[e])}return o===e&&i(t[o])})},fH=(t,e)=>{if(!t||"object"!=typeof t||!e?.length)return!1;const i=t=>!!t&&"object"==typeof t&&e.some(e=>hH(t[e]));return Object.keys(t).some(e=>{if(e===iH)return!1;if(aH(e)){const o=t[e];return!!o&&"object"==typeof o&&Object.keys(o).some(t=>i(o[t]))}return i(t[e])})},yH="ablocksFlexItem",TH={"ablocks/atomic-flex":"flex","ablocks/atomic-grid":"grid"},HH=["flex","inline-flex","grid","inline-grid"],MH=["ablocks/atomic-div","ablocks/atomic-flex","ablocks/atomic-grid","ablocks/atomic-image","ablocks/atomic-svg","ablocks/atomic-text"],xH=[{label:(0,z.__)("Default","ablocks"),value:""},{label:(0,z.__)("Auto","ablocks"),value:"auto"},{label:(0,z.__)("Start","ablocks"),value:"flex-start"},{label:(0,z.__)("Center","ablocks"),value:"center"},{label:(0,z.__)("End","ablocks"),value:"flex-end"},{label:(0,z.__)("Stretch","ablocks"),value:"stretch"},{label:(0,z.__)("Baseline","ablocks"),value:"baseline" | |
| 2331 | -}],kH=t=>""!==t&&null!=t,vH=(t={})=>{const e={};return t.alignSelf&&(e.alignSelf=t.alignSelf),kH(t.order)&&(e.order=t.order),kH(t.flexGrow)&&(e.flexGrow=t.flexGrow),kH(t.flexShrink)&&(e.flexShrink=t.flexShrink),t.flexBasis&&(e.flexBasis=t.flexBasis),e};(0,b.addFilter)("blocks.registerBlockType","ablocks/flex-item/attribute",(t,e)=>(MH.includes(e)||!t.attributes||t.attributes[yH]||(t.attributes={...t.attributes,[yH]:{type:"object",default:{}}}),t));const _H=(0,eH.createHigherOrderComponent)(t=>e=>{const{name:i,attributes:o,setAttributes:a,clientId:l,isSelected:n}=e,s=(0,r.useSelect)(t=>{const e=t("core/block-editor"),i=e.getBlockRootClientId(l);if(!i)return!1;const o=e.getBlockName(i),a=e.getBlockAttributes(i)?.styles||{},n=uH(a,"","","display")||TH[o]||"";return HH.includes(n)},[l]);if(MH.includes(i)||!s)return(0,L.jsx)(t,{...e});const b=o[yH]||{},c=t=>a({[yH]:{...b,...t}}),d=(t,e,i)=>(0,L.jsx)(A.TextControl,{label:e,type:"number",value:b[t]??"",onChange:e=>c({[t]:e}),placeholder:i, | |
| 2332 | -__nextHasNoMarginBottom:!0});return(0,L.jsxs)(Ot.Fragment,{children:[(0,L.jsx)(t,{...e}),n&&(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)("div",{className:"ablocks-atomic-panel",children:(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Flex item","ablocks"),initialOpen:!1,children:[(0,L.jsx)(A.SelectControl,{label:(0,z.__)("Align self","ablocks"),value:b.alignSelf||"",options:xH,onChange:t=>c({alignSelf:t}),__nextHasNoMarginBottom:!0}),d("order",(0,z.__)("Order","ablocks"),"0"),d("flexGrow",(0,z.__)("Flex grow","ablocks"),"0"),d("flexShrink",(0,z.__)("Flex shrink","ablocks"),"1"),(0,L.jsx)(A.TextControl,{label:(0,z.__)("Flex basis","ablocks"),value:b.flexBasis||"",onChange:t=>c({flexBasis:t}),placeholder:"auto / 50% / 200px",__nextHasNoMarginBottom:!0})]})})})]})},"withFlexItemControls");(0,b.addFilter)("editor.BlockEdit","ablocks/flex-item/edit",_H);const RH=(0,eH.createHigherOrderComponent)(t=>e=>{const i=e.attributes?.[yH],o=i?vH(i):{} | |
| 2333 | -;if(MH.includes(e.name)||!Object.keys(o).length)return(0,L.jsx)(t,{...e});const a={...e.wrapperProps,style:{...e.wrapperProps?.style||{},...o}};return(0,L.jsx)(t,{...e,wrapperProps:a})},"withFlexItemWrapper");(0,b.addFilter)("editor.BlockListBlock","ablocks/flex-item/wrapper",RH),(0,b.addFilter)("blocks.getSaveContent.extraProps","ablocks/flex-item/save",(t,e,i)=>{if(MH.includes(e.name))return t;const o=vH(i[yH]);return Object.keys(o).length&&(t.style={...t.style||{},...o}),t});const SH=(0,eH.createHigherOrderComponent)(t=>e=>{if(!MH.includes(e.name))return(0,L.jsx)(t,{...e});const i=(t=>{const e=t?.styles?.[""]||{},i={};return e.alignSelf&&(i.alignSelf=e.alignSelf),kH(e.order)&&(i.order=e.order),kH(e.flexGrow)&&(i.flexGrow=e.flexGrow),kH(e.flexShrink)&&(i.flexShrink=e.flexShrink),e.flexBasis&&(i.flexBasis=e.flexBasis),i})(e.attributes);if(!Object.keys(i).length)return(0,L.jsx)(t,{...e});const o={...e.wrapperProps,style:{...e.wrapperProps?.style||{},...i}};return(0,L.jsx)(t,{...e, | |
| 2334 | -wrapperProps:o})},"withAtomicFlexItemWrapper");(0,b.addFilter)("editor.BlockListBlock","ablocks/flex-item/atomic-wrapper",SH);const WH=["Top","Right","Bottom","Left"],UH=[["TopLeft","border-top-left-radius"],["TopRight","border-top-right-radius"],["BottomRight","border-bottom-right-radius"],["BottomLeft","border-bottom-left-radius"]],PH=["borderWidth",...WH.map(t=>"borderWidth"+t),"borderStyle","borderColor","borderRadius",...UH.map(([t])=>"borderRadius"+t)],jH=[{prop:"typography",css:"",kind:"typography"},{prop:"textColor",css:"color",kind:"color"},{prop:"backgroundColor",css:"background-color",kind:"color"},{prop:"backgroundGradient",css:"background-image",kind:"scalar"},{prop:"backgroundOverlay",css:"",kind:"overlay"},{prop:"border",css:"",kind:"border"},{prop:"width",css:"width",kind:"range"},{prop:"maxWidth",css:"max-width",kind:"range"},{prop:"minWidth",css:"min-width",kind:"range"},{prop:"height",css:"height",kind:"range"},{prop:"minHeight",css:"min-height",kind:"range"},{ | |
| 2335 | -prop:"maxHeight",css:"max-height",kind:"range"},{prop:"aspectRatio",css:"aspect-ratio",kind:"scalar"},{prop:"gap",css:"gap",kind:"range"},{prop:"rowGap",css:"row-gap",kind:"range"},{prop:"columnGap",css:"column-gap",kind:"range"},{prop:"strokeWidth",css:"stroke-width",kind:"range"},{prop:"top",css:"top",kind:"range"},{prop:"right",css:"right",kind:"range"},{prop:"bottom",css:"bottom",kind:"range"},{prop:"left",css:"left",kind:"range"},{prop:"anchorOffset",css:"scroll-margin-top",kind:"range"},{prop:"display",css:"display",kind:"scalar"},{prop:"flexDirection",css:"flex-direction",kind:"scalar"},{prop:"flexWrap",css:"flex-wrap",kind:"scalar"},{prop:"justifyContent",css:"justify-content",kind:"scalar"},{prop:"alignItems",css:"align-items",kind:"scalar"},{prop:"alignContent",css:"align-content",kind:"scalar"},{prop:"gridTemplateColumns",css:"grid-template-columns",kind:"scalar"},{prop:"gridTemplateRows",css:"grid-template-rows",kind:"scalar"},{prop:"gridAutoFlow",css:"grid-auto-flow", | |
| 2336 | -kind:"scalar"},{prop:"gridAutoColumns",css:"grid-auto-columns",kind:"scalar"},{prop:"gridAutoRows",css:"grid-auto-rows",kind:"scalar"},{prop:"flexBasis",css:"flex-basis",kind:"scalar"},{prop:"flexGrow",css:"flex-grow",kind:"scalar"},{prop:"flexShrink",css:"flex-shrink",kind:"scalar"},{prop:"order",css:"order",kind:"scalar"},{prop:"alignSelf",css:"align-self",kind:"scalar"},{prop:"objectFit",css:"object-fit",kind:"scalar"},{prop:"objectPosition",css:"object-position",kind:"scalar"},{prop:"overflow",css:"overflow",kind:"scalar"},{prop:"fill",css:"fill",kind:"scalar"},{prop:"stroke",css:"stroke",kind:"scalar"},{prop:"textAlign",css:"text-align",kind:"scalar"},{prop:"position",css:"position",kind:"scalar"},{prop:"zIndex",css:"z-index",kind:"scalar"},{prop:"transform",css:"transform",kind:"effect"},{prop:"transformOrigin",css:"transform-origin",kind:"scalar"},{prop:"filter",css:"filter",kind:"effect"},{prop:"backdropFilter",css:"backdrop-filter",kind:"effect"},{prop:"mixBlendMode", | |
| 2337 | -css:"mix-blend-mode",kind:"scalar"},{prop:"isolation",css:"isolation",kind:"scalar"},{prop:"opacity",css:"opacity",kind:"scalar"},{prop:"boxShadow",css:"box-shadow",kind:"effect"},{prop:"textShadow",css:"text-shadow",kind:"effect"},{prop:"cursor",css:"cursor",kind:"scalar"},{prop:"transition",css:"transition",kind:"effect"},{prop:"backgroundRepeat",css:"background-repeat",kind:"scalar"},{prop:"backgroundSize",css:"background-size",kind:"scalar"},{prop:"backgroundPosition",css:"background-position",kind:"scalar"},{prop:"backgroundAttachment",css:"background-attachment",kind:"scalar"},{prop:"backgroundClip",css:"background-clip",kind:"clip"},{prop:"padding",css:"padding",kind:"dimensions"},{prop:"margin",css:"margin",kind:"dimensions"}],wH={boxShadow:", ",textShadow:", ",transform:" ",transition:", ",filter:" ",backdropFilter:" "},zH=(t,e=0)=>{const i=parseFloat(t);return isNaN(i)?e:i},CH=[{label:(0,z.__)("Outset","ablocks"),value:"outset"},{label:(0,z.__)("Inset","ablocks"), | |
| 2338 | -value:"inset"}],AH=[{label:(0,z.__)("Move","ablocks"),value:"move"},{label:(0,z.__)("Scale","ablocks"),value:"scale"},{label:(0,z.__)("Rotate","ablocks"),value:"rotate"},{label:(0,z.__)("Skew","ablocks"),value:"skew"},{label:(0,z.__)("Flip","ablocks"),value:"flip"}],LH=(["px","%","em","rem"].map(t=>({label:t.toUpperCase(),value:t})),["","center center","center left","center right","top center","top left","top right","bottom center","bottom left","bottom right"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t}))),DH=[{label:(0,z.__)("Horizontal","ablocks"),value:"x"},{label:(0,z.__)("Vertical","ablocks"),value:"y"},{label:(0,z.__)("Both","ablocks"),value:"xy"}],NH=t=>t.unit||"px",IH=[{label:(0,z.__)("All properties","ablocks"),value:"all"},{label:(0,z.__)("Colors","ablocks"),value:"color, background-color, border-color"},{label:(0,z.__)("Opacity","ablocks"),value:"opacity"},{label:(0,z.__)("Transform","ablocks"),value:"transform"},{label:(0,z.__)("Filter","ablocks"), | |
| 2339 | -value:"filter"},{label:(0,z.__)("Box shadow","ablocks"),value:"box-shadow"}],VH=[{label:(0,z.__)("Ease","ablocks"),value:"ease"},{label:(0,z.__)("Linear","ablocks"),value:"linear"},{label:(0,z.__)("Ease in","ablocks"),value:"ease-in"},{label:(0,z.__)("Ease out","ablocks"),value:"ease-out"},{label:(0,z.__)("Ease in out","ablocks"),value:"ease-in-out"}],OH=[{label:(0,z.__)("Blur","ablocks"),value:"blur",unit:"px",def:0,max:50},{label:(0,z.__)("Brightness","ablocks"),value:"brightness",unit:"%",def:100,max:200},{label:(0,z.__)("Contrast","ablocks"),value:"contrast",unit:"%",def:100,max:200},{label:(0,z.__)("Saturate","ablocks"),value:"saturate",unit:"%",def:100,max:200},{label:(0,z.__)("Grayscale","ablocks"),value:"grayscale",unit:"%",def:0,max:100},{label:(0,z.__)("Sepia","ablocks"),value:"sepia",unit:"%",def:0,max:100},{label:(0,z.__)("Invert","ablocks"),value:"invert",unit:"%",def:0,max:100},{label:(0,z.__)("Hue rotate","ablocks"),value:"hue-rotate",unit:"deg",def:0,max:360},{label:(0, | |
| 2340 | -z.__)("Opacity","ablocks"),value:"opacity",unit:"%",def:100,max:100}],YH=t=>OH.find(e=>e.value===t)||OH[0],XH=()=>({type:"blur",value:0}),BH=t=>{const e=YH(t.type);return`${e.value}(${zH(t.value,e.def)}${e.unit})`},EH=t=>{const e=YH(t.type);return`${e.label}: ${zH(t.value,e.def)}${e.unit}`},FH={boxShadow:{label:(0,z.__)("Box shadow","ablocks"),defaults:()=>({color:"rgba(0, 0, 0, 0.5)",position:"outset",x:0,y:0,blur:10,spread:0}),css:t=>{const e=[`${zH(t.x)}px`,`${zH(t.y)}px`,`${zH(t.blur,10)}px`,`${zH(t.spread)}px`,t.color||"rgba(0, 0, 0, 0.5)"];return("inset"===t.position?"inset ":"")+e.join(" ")},summary:t=>`${"inset"===t.position?(0,z.__)("Inset","ablocks"):(0,z.__)("Outset","ablocks")}: ${zH(t.x)}px ${zH(t.y)}px ${zH(t.blur,10)}px ${zH(t.spread)}px`},textShadow:{label:(0,z.__)("Text shadow","ablocks"),defaults:()=>({color:"rgba(0, 0, 0, 0.5)",x:0,y:0,blur:4}),css:t=>[`${zH(t.x)}px`,`${zH(t.y)}px`,`${zH(t.blur,4)}px`,t.color||"rgba(0, 0, 0, 0.5)"].join(" "), | |
| 2341 | -summary:t=>`${zH(t.x)}px ${zH(t.y)}px ${zH(t.blur,4)}px`},transform:{label:(0,z.__)("Transform","ablocks"),defaults:()=>({type:"move",x:0,y:0,z:0,unit:"px",proportional:!0,axis:"x"}),css:t=>{switch(t.type){case"scale":{const e=zH(t.x,1);return!1!==t.proportional?`scale3d(${e}, ${e}, 1)`:`scale3d(${e}, ${zH(t.y,1)}, ${zH(t.z,1)})`}case"rotate":{const e=[],i=zH(t.x),o=zH(t.y),a=zH(t.z);return i&&e.push(`rotateX(${i}deg)`),o&&e.push(`rotateY(${o}deg)`),a&&e.push(`rotateZ(${a}deg)`),e.join(" ")}case"skew":return`skew(${zH(t.x)}deg, ${zH(t.y)}deg)`;case"flip":{const e=t.axis||"x";return"xy"===e?"scaleX(-1) scaleY(-1)":"y"===e?"scaleY(-1)":"scaleX(-1)"}default:{const e=NH(t);return`translate3d(${zH(t.x)}${e}, ${zH(t.y)}${e}, ${zH(t.z)}px)`}}},summary:t=>{const e=AH.find(e=>e.value===t.type)?.label||(0,z.__)("Move","ablocks");if("scale"===t.type)return!1!==t.proportional?`${e}: ${zH(t.x,1)}`:`${e}: ${zH(t.x,1)}, ${zH(t.y,1)}, ${zH(t.z,1)}` | |
| 2342 | -;if("rotate"===t.type)return`${e}: ${zH(t.x)}°, ${zH(t.y)}°, ${zH(t.z)}°`;if("skew"===t.type)return`${e}: ${zH(t.x)}°, ${zH(t.y)}°`;if("flip"===t.type){const i=DH.find(e=>e.value===(t.axis||"x"))?.label||"";return`${e}: ${i}`}const i=NH(t);return`${e}: ${zH(t.x)}${i}, ${zH(t.y)}${i}, ${zH(t.z)}px`}},transition:{label:(0,z.__)("Transitions","ablocks"),defaults:()=>({property:"all",duration:200,delay:0,easing:"ease"}),css:t=>{const e=[t.property||"all",`${zH(t.duration,200)}ms`,t.easing||"ease"];return zH(t.delay)&&e.push(`${zH(t.delay)}ms`),e.join(" ")},summary:t=>{const e=IH.find(e=>e.value===t.property)?.label||t.property||(0,z.__)("All properties","ablocks");return`${e}: ${zH(t.duration,200)}ms`}},filter:{label:(0,z.__)("Filters","ablocks"),defaults:XH,css:BH,summary:EH},backdropFilter:{label:(0,z.__)("Backdrop filters","ablocks"),defaults:XH,css:BH,summary:EH}},qH=[{label:(0,z.__)("Image","ablocks"),value:"image"},{label:(0,z.__)("Gradient","ablocks"),value:"gradient"}],$H=[{ | |
| 2343 | -label:(0,z.__)("Linear","ablocks"),value:"linear"},{label:(0,z.__)("Radial","ablocks"),value:"radial"}],GH=["","auto","cover","contain"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),ZH=["","center center","center left","center right","top center","top left","top right","bottom center","bottom left","bottom right"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),KH=["","repeat","no-repeat","repeat-x","repeat-y"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),JH=["","scroll","fixed","local"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),QH={position:"center center",size:"auto",repeat:"repeat",attachment:"scroll"},tM=(t,e=0)=>{const i=parseFloat(t);return isNaN(i)?e:i},eM=t=>{if(!t||"object"!=typeof t)return"";if("image"===t.type)return t.url?`url("${t.url}")`:"";const e=`${t.from||"#000000"} ${tM(t.fromStop)}%`,i=`${t.to||"rgba(0, 0, 0, 0)"} ${tM(t.toStop,100)}%` | |
| 2344 | -;return"radial"===t.gradientType?`radial-gradient(circle at ${t.radialPosition||"center center"}, ${e}, ${i})`:`linear-gradient(${tM(t.angle,180)}deg, ${e}, ${i})`},iM=["solid","dashed","dotted","double","none"].map(t=>({label:t.charAt(0).toUpperCase()+t.slice(1),value:t})),oM=(["px","%","em","rem","vw","vh"].map(t=>({label:t,value:t})),["px","em","rem","%"].map(t=>({label:t,value:t})),t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")),aM=(t={},e="")=>{const i=[],o=e=>{const i=t[e];return null==i||""===i?"":i},a=e=>{const i=t[e];if(i&&"object"==typeof i){const t=i.value;return null==t||""===t?"":`${t}${i.valueUnit||"px"}`}return"string"==typeof i&&""!==i?i:""};return jH.forEach(({prop:e,css:l,kind:n})=>{switch(n){case"typography":((t={})=>{const e=e=>t[e],i=(e,i)=>t[e]||i,o=[];t.fontFamily&&o.push(["font-family",t.fontFamily]),t.weight&&o.push(["font-weight",t.weight]),t.transform&&o.push(["text-transform",t.transform]),t.style&&o.push(["font-style",t.style]), | |
| 2345 | -t.decoration&&o.push(["text-decoration",t.decoration]);const a=e("fontSize");a&&o.push(["font-size",`${a}${i("fontSizeUnit","px")}`]);const l=e("lineHeight");l&&o.push(["line-height",`${l}${i("lineHeightUnit","px")}`]);const n=e("letterSpacing");n&&o.push(["letter-spacing",`${n}${i("letterSpacingUnit","px")}`]);const s=e("wordSpacing");return s&&o.push(["word-spacing",`${s}${i("wordSpacingUnit","px")}`]),void 0!==t.columns&&""!==t.columns&&o.push(["column-count",String(t.columns)]),t.direction&&o.push(["direction",t.direction]),void 0!==t.strokeWidth&&""!==t.strokeWidth&&o.push(["-webkit-text-stroke-width",`${t.strokeWidth}${i("strokeWidthUnit","px")}`]),t.strokeColor&&o.push(["-webkit-text-stroke-color",t.strokeColor]),o})(t.typography).forEach(t=>i.push(t));break;case"color":case"scalar":{const t=o(e);""!==t&&i.push([l,t]);break}case"range":{const t=a(e);""!==t&&i.push([l,t]);break}case"effect":{const o=((t,e)=>{const i=FH[t] | |
| 2346 | -;return i?"string"==typeof e?e.trim():Array.isArray(e)&&e.length?e.filter(t=>t&&"object"==typeof t&&!t.disabled).map(t=>i.css(t)).filter(Boolean).join(wH[t]||" "):"":""})(e,t[e]);""!==o&&i.push([l,o]);break}case"overlay":(t=>{if(!Array.isArray(t)||!t.length)return[];const e=t.filter(t=>t&&"object"==typeof t&&!t.disabled).map(t=>({entry:t,image:eM(t)})).filter(t=>""!==t.image);if(!e.length)return[];const i=[["background-image",e.map(t=>t.image).join(", ")]];return[["position","background-position"],["size","background-size"],["repeat","background-repeat"],["attachment","background-attachment"]].forEach(([t,o])=>{const a=e.some(e=>!!e.entry[t]);a&&i.push([o,e.map(e=>e.entry[t]||QH[t]).join(", ")])}),i})(t[e]).forEach(t=>i.push(t));break;case"clip":{const t=o(e);""!==t&&(i.push(["-webkit-"+l,t]),i.push([l,t]));break}case"border":(()=>{ | |
| 2347 | -const t=[],e=a("borderWidth"),i=o("borderStyle"),l=o("borderColor"),n=a("borderRadius"),s=WH.map(t=>[t.toLowerCase(),a("borderWidth"+t)]),r=s.some(([,t])=>""!==t);return""!==e&&t.push(["border-width",e]),s.forEach(([e,i])=>{""!==i&&t.push([`border-${e}-width`,i])}),""!==e||r||""!==l?t.push(["border-style",""!==i?i:"solid"]):""!==i&&t.push(["border-style",i]),""!==l&&t.push(["border-color",l]),""!==n&&t.push(["border-radius",n]),UH.forEach(([e,i])=>{const o=a("borderRadius"+e);""!==o&&t.push([i,o])}),t})().forEach(t=>i.push(t));break;case"dimensions":(e=>{const i=t[e];if(!i||"object"!=typeof i||!Object.keys(i).length)return[];const o=(0,c.qD)(i,e,"");return Object.keys(o).map(t=>[t,String(o[t])])})(e).forEach(t=>i.push(t))}}),""!==a("width")&&""===o("flexGrow")&&i.push(["flex-grow","0"]),""!==a("width")&&""===o("flexBasis")&&i.push(["flex-basis","auto"]),""!==a("width")&&""===a("maxWidth")&&i.push(["max-width","100%"]),""===a("width")&&""===a("maxWidth")||(()=>{const e=t.margin | |
| 2348 | -;return!(!e||"object"!=typeof e)&&["common","left","right"].some(t=>void 0!==e[t]&&""!==e[t])})()||i.push(["margin-left","auto"],["margin-right","auto"]),e&&i.push(["text-align",e]),lM(i)},lM=t=>{const e=[],i=new Map;return(t||[]).forEach(([t,o])=>{i.has(t)||e.push(t),i.set(t,o)}),e.map(t=>[t,i.get(t)])},nM=(t={},e="")=>aM(t,e).map(([t,e])=>`${t}:${e}`).join(";"),sM=(t={},e="")=>{const i=t.flexWrap;return"wrap"!==i&&"wrap-reverse"!==i?"":`${e}>:where(.ablocks-atomic-div,.ablocks-atomic-flex,.ablocks-atomic-grid){flex-basis:auto;}`},rM=t=>""===t||null==t||Array.isArray(t)&&0===t.length||t&&"object"==typeof t&&!Array.isArray(t)&&0===Object.keys(t).length,bM=t=>{if(!t||"object"!=typeof t||Array.isArray(t))return t;const e={};return Object.keys(t).forEach(i=>{let o=t[i];o&&"object"==typeof o&&!Array.isArray(o)&&(o=bM(o)),rM(o)||(e[i]=o)}),e},cM=t=>{const e=nH();return Object.keys(t||{}).forEach(i=>{if(i===iH)return;if(aH(i)){const o=t[i];if(!o||"object"!=typeof o)return;const a={} | |
| 2349 | -;return Object.keys(o).forEach(t=>{const e=bM(o[t]);rM(e)||(a[t]=e)}),void(Object.keys(a).length&&(e[i]=a))}const o=bM(t[i]);rM(o)||(e[i]=o)}),e},dM=[{label:(0,z.__)("Page load","ablocks"),value:"load"},{label:(0,z.__)("Scroll into view","ablocks"),value:"scrollIn"},{label:(0,z.__)("While scrolling","ablocks"),value:"scrollOn"},{label:(0,z.__)("Hover","ablocks"),value:"hover"},{label:(0,z.__)("Click","ablocks"),value:"click"}],uM=[{label:(0,z.__)("Fade","ablocks"),value:"fade"},{label:(0,z.__)("Slide","ablocks"),value:"slide"},{label:(0,z.__)("Scale","ablocks"),value:"scale"}],pM={easeIn:"cubic-bezier(0.42, 0, 1, 1)",easeOut:"cubic-bezier(0, 0, 0.58, 1)",easeInOut:"cubic-bezier(0.42, 0, 0.58, 1)",backIn:"cubic-bezier(0.36, 0, 0.66, -0.56)",backOut:"cubic-bezier(0.34, 1.56, 0.64, 1)",backInOut:"cubic-bezier(0.68, -0.6, 0.32, 1.6)",linear:"linear"},mM=[{label:(0,z.__)("Ease In","ablocks"),value:"easeIn"},{label:(0,z.__)("Ease Out","ablocks"),value:"easeOut"},{label:(0, | |
| 2350 | -z.__)("Ease In Out","ablocks"),value:"easeInOut"},{label:(0,z.__)("Back In","ablocks"),value:"backIn"},{label:(0,z.__)("Back Out","ablocks"),value:"backOut"},{label:(0,z.__)("Back In Out","ablocks"),value:"backInOut"},{label:(0,z.__)("Linear","ablocks"),value:"linear"}],hM=[{label:"↖",value:"top-left",name:(0,z.__)("Top left","ablocks")},{label:"↑",value:"top",name:(0,z.__)("Top","ablocks")},{label:"↗",value:"top-right",name:(0,z.__)("Top right","ablocks")},{label:"←",value:"left",name:(0,z.__)("Left","ablocks")},{label:"→",value:"right",name:(0,z.__)("Right","ablocks")},{label:"↙",value:"bottom-left",name:(0,z.__)("Bottom left","ablocks")},{label:"↓",value:"bottom",name:(0,z.__)("Bottom","ablocks")},{label:"↘",value:"bottom-right",name:(0,z.__)("Bottom right","ablocks")}],gM=[{label:(0,z.__)("Once","ablocks"),value:""},{label:(0,z.__)("Loop","ablocks"),value:"loop"},{label:(0,z.__)("Times","ablocks"),value:"times"}],fM=t=>{const e=t.effect||"fade",i="out"===t.type?"out":"in" | |
| 2351 | -;let o=t.direction||"none";return"slide"!==e||t.direction&&""!==t.direction||(o="top"),`ablocks-a-${e}-${i}-${o}`},yM=t=>{const e=""!==t.duration&&null!=t.duration?t.duration:600,i=""!==t.delay&&null!=t.delay?t.delay:0,o=pM[t.easing]||pM.easeIn;return`${fM(t)} ${e}ms ${o} ${i}ms ${(t=>{if("loop"===t.repeat)return"infinite";if("times"===t.repeat){const e=parseInt(t.times,10);return e>0?String(e):"1"}return"1"})(t)} both`},TM=(t,e)=>!(t.off&&t.off[e]),HM=t=>{const e={load:(0,z.__)("page load","ablocks"),scrollIn:(0,z.__)("scroll in","ablocks"),scrollOn:(0,z.__)("scroll","ablocks"),hover:(0,z.__)("hover","ablocks"),click:(0,z.__)("click","ablocks")},i=e[t.trigger]||e.load,o="out"===t.type?(0,z.__)("Out","ablocks"):(0,z.__)("In","ablocks");return`${(0,z.__)("On","ablocks")} ${i}: ${(t=>t?t.charAt(0).toUpperCase()+t.slice(1):"")(t.effect||"fade")} ${o}`},MM=(t,e)=>{const i=[];return t>0&&i.push(`(min-width:${t}px)`),e>0&&i.push(`(max-width:${e}px)`),i.join(" and ")},xM=t=>{ | |
| 2352 | -const e=Array.isArray(t)?t:[],i=e.find(t=>"scrollOn"===t.trigger);return{scroll:e.some(t=>"scrollIn"===t.trigger),click:e.some(t=>"click"===t.trigger),scrollOn:!!i,scrollStart:i?i.start??85:null,scrollEnd:i?i.end??15:null}};let kM=[],vM=null;const _M=new Set,RM=()=>_M.forEach(t=>t(kM)),SM=new Set,WM=t=>{kM="function"==typeof t?t(kM):t,RM()},UM=new Map;let PM=null,jM=Promise.resolve(),wM=0;const zM=new Set,CM=new Set,AM=()=>{const t={saving:wM>0||UM.size>0,failed:[...CM]};zM.forEach(e=>e(t))},LM=t=>!!t&&t.status>=200&&t.status<300&&!1!==t.data?.success,DM=(t,e)=>{if(e.deleted)return{action:"ablocks/global_classes/delete",id:t};const i={action:"ablocks/global_classes/save",id:t,label:e.label};return e.styles?i.styles=JSON.stringify(e.styles):i.css=e.css||"",i},NM=()=>{if(PM&&(clearTimeout(PM),PM=null),!UM.size)return jM;const t=[...UM.entries()];return UM.clear(),jM=t.reduce((t,[e,i])=>t.then(()=>{if(!UM.has(e))return wM+=1,AM(),((t,e)=>(0, | |
| 2353 | -M.In)(DM(t,e)).then(i=>!!LM(i)||new Promise(t=>setTimeout(t,2e3)).then(()=>(0,M.In)(DM(t,e)).then(LM))).catch(()=>!1))(e,i).then(t=>{var o;wM-=1,t?(CM.delete(e),SM.delete(e)):(CM.add(e),o=(0,z.sprintf)(/* translators: %s: global class name. */ /* translators: %s: global class name. */ | |
| 2354 | -(0,z.__)("“%s” could not be saved — check your connection. Your changes are still here; edit it again to retry.","ablocks"),i.label||e),(0,r.dispatch)("core/notices")?.createErrorNotice?.(o,{id:"ablocks-global-classes-save",type:"snackbar"})),AM()})}),jM),AM(),jM},IM=(t,e)=>{UM.set(t,e),AM(),clearTimeout(PM),PM=setTimeout(NM,400)},VM=t=>{if(!t?.id)return;const{id:e}=t;SM.add(e),WM(i=>{const o=i.findIndex(t=>t.id===e);if(-1===o)return[...i,t];const a=i.slice();return a[o]={...a[o],...t},a}),IM(e,{label:t.label||e,styles:t.styles,css:t.css})};function OM(){const[t,e]=(0,a.useState)(kM);return(0,a.useEffect)(()=>(_M.add(e),vM||(vM=(0,M.In)({action:"ablocks/global_classes/get"}).then(t=>{const e=t?.data?.data;if(Array.isArray(e)){const t=new Set(e.map(t=>t.id));kM=[...e,...kM.filter(e=>SM.has(e.id)&&!t.has(e.id))],RM()}return kM}).catch(()=>kM)),()=>{_M.delete(e)}),[]),[t,WM]}if("undefined"!=typeof window&&window.self===window.top){let t=!1;(0,r.subscribe)(()=>{const e=!!(0, | |
| 2355 | -r.select)("core/editor")?.isSavingPost?.();e&&!t&&UM.size&&NM(),t=e});const e=()=>{UM.size&&window.navigator?.sendBeacon&&(UM.forEach((t,e)=>{const i=new FormData;i.append("security",M.Ie),Object.entries(DM(e,t)).forEach(([t,e])=>i.append(t,e)),window.navigator.sendBeacon(M.$B,i)}),UM.clear())};window.addEventListener("pagehide",e),window.addEventListener("beforeunload",e)}const YM={"ablocks/atomic-flex":"flex","ablocks/atomic-grid":"grid"},XM={},BM={name:"",styles:XM},EM=/(^|\s)ablocks-s-[0-9a-z]+(?=\s|$)/,FM=(t,e)=>{const i=t=>{const i={};return Object.keys(t||{}).forEach(o=>{const a=e.get(o);if(void 0===a)return void(i[o]=t[o]);if(null===a)return;const l=t[o];if(!l||"object"!=typeof l)return;const n={};Object.keys(l).forEach(t=>{a.has(t)||(n[t]=l[t])}),i[o]=n}),i},o={};return Object.keys(t||{}).forEach(e=>{const a=t[e];if(e!==iH&&a&&"object"==typeof a){if(aH(e)){const t={};return Object.keys(a).forEach(e=>{t[e]=i(a[e])}),void(o[e]=t)}o[e]=i(a)}else o[e]=a}),o} | |
| 2356 | -;function qM({attributes:t,setAttributes:e,clientId:i}){const{block_id:o,styles:l={},globalClasses:n=[],animations:s=[]}=t;(0,a.useLayoutEffect)(()=>{o&&o===i||e({block_id:i})},[o,i,e]);const{__unstableMarkNextChangeAsNotPersistent:b}=(0,r.useDispatch)("core/block-editor"),{className:c}=t;(0,a.useLayoutEffect)(()=>{if(!c||!EM.test(c))return;const t=c.split(/\s+/).filter(t=>t&&!EM.test(t)).join(" ");b?.(),e({className:t||void 0})},[c,e,b]);const d=t=>e({animations:t}),[u]=OM(),[p,m]=(0,a.useState)(()=>n.length?`gc:${n[0]}`:"local"),[h,g]=(0,a.useState)(""),[f,y]=(0,a.useState)(""),[T,H]=(0,a.useState)(null),[M,x]=(0,a.useState)(!1),{wpDevice:k,customDevice:v,RESPONSIVE_DEVICES:_}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||t("core/editor")?.getDeviceType?.()||"Desktop",customDevice:t(q)?.getCustomDevice()||null,RESPONSIVE_DEVICES:t(q)?.getDevices()||[]}),[]),{setCustomDevice:R}=(0,r.useDispatch)(q),S=(0,r.useSelect)(t=>{ | |
| 2357 | -const e=t("core/block-editor"),o=e.getBlockRootClientId(i);return o?{name:e.getBlockName(o),styles:e.getBlockAttributes(o)?.styles||XM}:BM},[i]),W="Desktop"!==k?k:v||"Desktop",U=_.find(t=>t.id===W)||_[0]||{suffix:"",label:"Desktop",id:"Desktop"},P=U.suffix,j=t=>(0,r.dispatch)("core/edit-post")?.__experimentalSetPreviewDeviceType?.(t),w=(0,a.useRef)(!1),z=()=>document.querySelector(".block-editor-iframe__scale-container")||document.querySelector('iframe[name="editor-canvas"]');(0,a.useEffect)(()=>{const t=z();if(!t)return;const e="Desktop"!==W&&!F.includes(W)&&U.width>0,i=setTimeout(()=>{e?(t.style.width=U.width+"px",t.style.maxWidth="100%",t.style.boxSizing="border-box",t.style.margin="0 auto",t.style.transition="width 0.2s ease",w.current=!0):w.current&&(t.style.width="",t.style.maxWidth="",t.style.boxSizing="",t.style.margin="",w.current=!1)},60);return()=>clearTimeout(i)},[W,U.width]),(0,a.useEffect)(()=>()=>{if(w.current){const t=z();t&&(t.style.width="",t.style.maxWidth="", | |
| 2358 | -t.style.boxSizing="",t.style.margin="")}},[]);const C=p.startsWith("gc:")?p.slice(3):null,A=C?u.find(t=>t.id===C):null,L=C?A?.styles:l,D=sH(L)?L:nH(),N=lH(U),I=J(K(U)),V=uH(S.styles,N,"","display",I)||YM[S.name]||"",O="flex"===V||"inline-flex"===V,Y="grid"===V||"inline-grid"===V,X=O||Y,B=rH(D,N,h),E=B.typography||{},$=((t,e,i,o)=>{const a=[];for(const l of pH(e,o))for(const o of""===i?[""]:[i,""])l===e&&o===i||a.push(rH(t,l,o).typography);return a.reverse().reduce((t,e)=>e?dH(t,e):t,{})})(D,N,h,I),G=t=>{const i={...B};return Object.keys(t||{}).forEach(e=>{const o=t[e],a=B[e],l=o&&"object"==typeof o&&!Array.isArray(o)&&a&&"object"==typeof a&&!Array.isArray(a);i[e]=l?{...a,...o}:o}),(t=>{if(C&&!A)return;const i=cM(bH(D,N,h,t));if(C){VM({id:C,label:A?.label||C,styles:i});const t=rH(i,N,h),o=(t,e)=>JSON.stringify(t)!==JSON.stringify(e),a=new Map;Z(t).forEach(({prop:e,members:i})=>{const l=B[e],n=t[e];if(null===i)return void(o(l,n)&&a.set(e,null));const s=[...i].filter(t=>o(l?.[t],n?.[t])) | |
| 2359 | -;s.length&&a.set(e,new Set(s))}),a.size&&e({styles:cM(FM(l,a))})}else e({styles:i})})(i)};(0,a.useEffect)(()=>{C&&!n.includes(C)&&(m("local"),g(""))},[C,n]);const Z=(t=rH(D,N,h))=>{if(!C)return[];const e=[];return Object.keys(t).forEach(i=>{const o=t[i],a=uH(l,N,h,i,I);if(!hH(o)||!hH(a))return;if(!o||!a||"object"!=typeof o||"object"!=typeof a||Array.isArray(o)||Array.isArray(a))return void e.push({prop:i,members:null});const n=new Set(Object.keys(o).filter(t=>!mH(t)&&hH(o[t])&&hH(a[t])));n.size&&e.push({prop:i,members:n})}),e},Q=t=>e({globalClasses:[...new Set([t,...n])]}),tt=new Set(n),et=f.trim().toLowerCase(),it=u.filter(t=>!tt.has(t.id)).filter(t=>!et||(t.label||"").toLowerCase().includes(et)||t.id.includes(et)).slice(0,8),ot=u.some(t=>(t.label||"").toLowerCase()===et||t.id===et),at=oH.find(t=>t.key===h)?.label||"Normal";return{attributes:t,setAttributes:e,styles:l,currentStyles:D,s:B,t:E,inheritedTypography:$,activeState:h,setActiveState:g,setState:G,setTypography:t=>G({ | |
| 2360 | -typography:{...E,...t}}),sd:t=>B[t],resolved:t=>uH(D,N,h,t,I),dimValue:t=>{const e=B[t];return e&&"object"==typeof e?e:{}},bucketKey:N,dev:P,stateLabel:at,shadowedProps:()=>Z().map(t=>t.prop),clearShadowed:()=>{const t=Z();if(!t.length)return;const i=new Map(t.map(t=>[t.prop,t.members]));e({styles:cM(FM(l,i))})},activeDevice:U,activeDeviceId:W,RESPONSIVE_DEVICES:_,pickDevice:t=>{F.includes(t.id)?(R(null),j(t.id)):(j("Desktop"),R(t.id))},parentIsFlex:O,parentIsGrid:Y,parentIsFlexItem:X,library:u,globalClasses:n,activeTarget:p,setActiveTarget:m,activeClassId:C,activeClass:A,newClass:f,setNewClass:y,convName:T,setConvName:H,comboFocus:M,setComboFocus:x,comboMatches:it,comboExact:ot,applyClass:Q,removeClass:t=>{e({globalClasses:n.filter(e=>e!==t)}),p===`gc:${t}`&&m("local")},addClassByName:()=>{const t=f.trim();if(!t)return;const e=oM(t);u.some(t=>t.id===e)||VM({id:e,label:t,styles:nH()}),Q(e),m(`gc:${e}`),g(""),y(""),x(!1)},doConvert:()=>{const t=(T||"").trim();if(!t)return | |
| 2361 | -;const i=oM(t),o=u.find(t=>t.id===i);if(o)return Q(i),m(`gc:${i}`),void H(null);const a={...nH(),...l};VM({id:i,label:t,styles:a}),Q(i),e({styles:nH()}),m(`gc:${i}`),H(null)},selectExisting:t=>{Q(t),m(`gc:${t}`),g(""),y(""),x(!1)},renameClass:(t,e)=>{const i=(e||"").trim(),o=u.find(e=>e.id===t);i&&o&&i!==o.label&&VM({id:t,label:i,styles:o.styles||nH()})},duplicateClass:t=>{const e=u.find(e=>e.id===t);if(!e)return;const i=`${e.label||t} copy`;let o=oM(i),a=2;for(;u.some(t=>t.id===o);)o=oM(`${i} ${a++}`);const l=e.styles?JSON.parse(JSON.stringify(e.styles)):nH();VM({id:o,label:i,styles:l}),Q(o),m(`gc:${o}`)},deleteGlobalClass:t=>{(t=>{t&&(SM.delete(t),WM(e=>e.filter(e=>e.id!==t)),IM(t,{deleted:!0}))})(t),n.includes(t)&&e({globalClasses:n.filter(e=>e!==t)}),p===`gc:${t}`&&m("local")},animations:s,setAnimations:d,addAnimation:()=>{const t={id:"a"+Math.random().toString(36).slice(2,8),trigger:"load",effect:"fade",type:"in",direction:"",duration:600,delay:0,easing:"easeIn",repeat:"",times:1, | |
| 2362 | -start:85,end:15,off:{}};return d([...s,t]),t.id},updateAnimation:(t,e)=>d(s.map(i=>i.id===t?e:i)),removeAnimation:t=>d(s.filter(e=>e.id!==t)),moveAnimation:(t,e)=>{const i=t+e;if(i<0||i>=s.length)return;const o=[...s];[o[t],o[i]]=[o[i],o[t]],d(o)}}}const $M=["px","%","em","rem","vw","vh"],GM={top:"M3.5 3.5h13",right:"M16.5 3.5v13",bottom:"M3.5 16.5h13",left:"M3.5 3.5v13"},ZM={topLeft:"M3.5 9V6a2.5 2.5 0 0 1 2.5-2.5h3",topRight:"M11 3.5h3A2.5 2.5 0 0 1 16.5 6v3",bottomRight:"M16.5 11v3a2.5 2.5 0 0 1-2.5 2.5h-3",bottomLeft:"M9 16.5H6A2.5 2.5 0 0 1 3.5 14v-3"},KM=({d:t})=>(0,L.jsxs)("svg",{className:"ablocks-mfield__glyph",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeLinecap:"round","aria-hidden":"true",focusable:"false",children:[(0,L.jsx)("path",{d:"M3.5 3.5h13v13h-13z",strokeWidth:"1",opacity:"0.3"}),t&&(0,L.jsx)("path",{d:t,strokeWidth:"2"})]}),JM=({side:t})=>(0,L.jsx)(KM,{d:GM[t]}),QM=({corner:t})=>(0,L.jsx)(KM,{d:ZM[t]}),tx=()=>(0,L.jsx)(KM,{}) | |
| 2363 | -;function ex({value:t,onChange:e}){return(0,L.jsx)(A.Dropdown,{className:"ablocks-mfield__unit",popoverProps:{placement:"bottom-end",className:"ablocks-mfield__unit-popover"},renderToggle:({isOpen:e,onToggle:i})=>(0,L.jsx)("button",{type:"button",className:"ablocks-mfield__unit-toggle","aria-expanded":e,"aria-label":(0,z.__)("Unit","ablocks"),onClick:i,children:t}),renderContent:({onClose:i})=>(0,L.jsx)("div",{className:"ablocks-mfield__unit-menu",children:$M.map(o=>(0,L.jsx)("button",{type:"button",className:o===t?"is-active":void 0,onClick:()=>{e(o),i()},children:o},o))})})}function ix({glyph:t=null,value:e,unit:i="px",onValue:o,onUnit:a,ariaLabel:l,staticUnit:n="",noUnit:s=!1,min:r,max:b,step:c,placeholder:d="0"}){return(0,L.jsxs)("div",{className:"ablocks-mfield",children:[t,(0,L.jsx)("input",{className:"ablocks-mfield__input",type:"number",value:e??"",placeholder:d,min:r,max:b,step:c,"aria-label":l,onChange:t=>o(t.target.value)}),s&&null,!s&&n&&(0,L.jsx)("em",{ | |
| 2364 | -className:"ablocks-mfield__static-unit",children:n}),!s&&!n&&(0,L.jsx)(ex,{value:i,onChange:a})]})}function ox({label:t,dot:e=!1,field:i}){return(0,L.jsxs)("div",{className:"ablocks-mcell",children:[(0,L.jsxs)("span",{className:"ablocks-mcell__label",children:[t,e&&(0,L.jsx)("i",{className:"ablocks-mcell__dot","aria-hidden":"true"})]}),(0,L.jsx)(ix,{...i,ariaLabel:t})]})}function ax({label:t,children:e}){return(0,L.jsxs)("div",{className:"ablocks-prow",children:[(0,L.jsx)("span",{className:"ablocks-prow__label",children:t}),(0,L.jsx)("div",{className:"ablocks-prow__control",children:e})]})}const lx=(t,e,i)=>{const o=t.s?.[e],a=o&&"object"==typeof o?o:{},l=t.resolved?.(e),n=l&&"object"==typeof l?l:{},s=a.valueUnit||n.valueUnit||"px";return{value:a.value,unit:s,placeholder:void 0===a.value&&void 0!==n.value?String(n.value):"0",ariaLabel:i,onValue:i=>t.setState({[e]:{...a,value:i,valueUnit:s}}),onUnit:i=>t.setState({[e]:{...a,valueUnit:i}})}} | |
| 2365 | -;function nx({atomic:t,label:e,prop:i,glyph:o=null}){return(0,L.jsx)(ax,{label:e,children:(0,L.jsx)(ix,{glyph:o,...lx(t,i,e)})})}const sx=()=>{},rx=[{value:"in",label:(0,z.__)("In","ablocks")},{value:"out",label:(0,z.__)("Out","ablocks")}],bx=["top","bottom","left","right"];function cx({value:t,onChange:e}){const i=(bx.includes(t)||!t?bx:[...bx,t]).map(t=>hM.find(e=>e.value===t)).filter(Boolean).map(t=>({value:t.value,label:t.name,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--glyphtext",children:t.label})}));return(0,L.jsx)(vb,{label:"",attributeName:"direction",attributeValue:t||"",setAttributes:sx,onChangeHandler:t=>e(t||""),options:i,isResponsive:!1,isInline:!1})}function dx({anim:t,devices:e,onChange:i}){const o=e=>i({...t,...e}),a=(t,e,i,o)=>(0,L.jsx)(ax,{label:t,children:(0,L.jsx)(Ut,{label:"",attributeValue:e,setAttributes:sx,onChangeHandler:o,options:i})}),l=(t,e,i,o)=>(0,L.jsx)(ox,{label:t,field:{value:e??i,staticUnit:"MS",min:0,step:50,onValue:o}}),n=(0, | |
| 2366 | -L.jsxs)(L.Fragment,{children:[a((0,z.__)("Trigger","ablocks"),t.trigger||"load",dM,t=>o({trigger:t})),a((0,z.__)("Effect","ablocks"),t.effect||"fade",uM,t=>o({effect:t})),(0,L.jsx)(ax,{label:(0,z.__)("Type","ablocks"),children:(0,L.jsx)(vb,{label:"",attributeName:"type",attributeValue:t.type||"in",setAttributes:sx,onChangeHandler:t=>o({type:t||"in"}),options:rx,isResponsive:!1,isInline:!1})}),(0,L.jsx)(ax,{label:(0,z.__)("Direction","ablocks"),children:(0,L.jsx)(cx,{value:t.direction||"",onChange:t=>o({direction:t})})}),"scrollOn"===t.trigger?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ablocks-mgrid",children:[(0,L.jsx)(ox,{label:(0,z.__)("Start","ablocks"),field:{value:t.start??85,staticUnit:"%",onValue:t=>o({start:t})}}),(0,L.jsx)(ox,{label:(0,z.__)("End","ablocks"),field:{value:t.end??15,staticUnit:"%",onValue:t=>o({end:t})}})]}),(0,L.jsx)("p",{className:"ablocks-anim-help",children:(0, | |
| 2367 | -z.__)("Viewport percentages where the animation begins and completes.","ablocks")})]}):(0,L.jsxs)(L.Fragment,{children:[a((0,z.__)("Repeat","ablocks"),t.repeat||"",gM,t=>o({repeat:t})),"times"===t.repeat&&(0,L.jsx)(ax,{label:(0,z.__)("Times","ablocks"),children:(0,L.jsx)(ix,{value:t.times??1,noUnit:!0,min:1,ariaLabel:(0,z.__)("Times","ablocks"),onValue:t=>o({times:t})})}),(0,L.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,z.__)("Duration","ablocks"),t.duration,600,t=>o({duration:t})),l((0,z.__)("Delay","ablocks"),t.delay,0,t=>o({delay:t}))]}),a((0,z.__)("Easing","ablocks"),t.easing||"easeIn",mM,t=>o({easing:t}))]})]}),s=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{className:"ablocks-anim-help",children:(0,z.__)("Run this animation on:","ablocks")}),e.map(e=>(0,L.jsx)(A.ToggleControl,{label:e.label,checked:TM(t,e.id),onChange:()=>(e=>{const i={...t.off||{}};i[e]?delete i[e]:i[e]=!0,o({off:i})})(e.id),__nextHasNoMarginBottom:!0},e.id))]});return(0,L.jsx)("div",{ | |
| 2368 | -className:"ablocks-anim-card",children:(0,L.jsx)(A.TabPanel,{className:"ablocks-anim-tabs ablocks-inspector-tabs",activeClass:"ablocks-inspector-tab__item--active",tabs:[{name:"details",title:(0,z.__)("Details","ablocks"),className:"ablocks-inspector-tab__item"},{name:"settings",title:(0,z.__)("Settings","ablocks"),className:"ablocks-inspector-tab__item"}],children:t=>"details"===t.name?n:s})})}const ux=[{prop:"Top",glyph:"top",label:(0,z.__)("Top","ablocks")},{prop:"Right",glyph:"right",label:(0,z.__)("Right","ablocks")},{prop:"Bottom",glyph:"bottom",label:(0,z.__)("Bottom","ablocks")},{prop:"Left",glyph:"left",label:(0,z.__)("Left","ablocks")}],px=[{prop:"TopLeft",glyph:"topLeft",label:(0,z.__)("Top left","ablocks")},{prop:"TopRight",glyph:"topRight",label:(0,z.__)("Top right","ablocks")},{prop:"BottomLeft",glyph:"bottomLeft",label:(0,z.__)("Bottom left","ablocks")},{prop:"BottomRight",glyph:"bottomRight",label:(0,z.__)("Bottom right","ablocks")}],mx=({corners:t=!1})=>(0, | |
| 2369 | -L.jsx)("svg",{viewBox:"0 0 20 20",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",focusable:"false",children:t?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("path",{d:"M3.5 7.5V5.5a2 2 0 0 1 2-2h2"}),(0,L.jsx)("path",{d:"M12.5 3.5h2a2 2 0 0 1 2 2v2"}),(0,L.jsx)("path",{d:"M16.5 12.5v2a2 2 0 0 1-2 2h-2"}),(0,L.jsx)("path",{d:"M7.5 16.5h-2a2 2 0 0 1-2-2v-2"})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("path",{d:"M6.5 3.5h10v10",opacity:"0.35"}),(0,L.jsx)("path",{d:"M3.5 6.5h10v10h-10z"})]})}),hx=t=>!!t&&void 0!==t.value&&""!==t.value;function gx({label:t,base:e,parts:i,corners:o,read:a,write:l,openFor:n,setOpen:s}){const r=i.filter(t=>hx(a(e+t.prop))),b=n===e,c=(t,e)=>{const i=a(t);return{glyph:e,value:i.value,unit:i.valueUnit||"px",onValue:e=>l(t,{...i,value:e,valueUnit:i.valueUnit||"px"}),onUnit:e=>l(t,{...i,valueUnit:e})}};return(0,L.jsxs)("div",{className:"ablocks-border__row",children:[(0,L.jsx)("span",{ | |
| 2370 | -className:"ablocks-border__label",children:t}),(0,L.jsx)(ix,{...c(e,(0,L.jsx)(tx,{})),ariaLabel:t}),(0,L.jsx)(A.Button,{className:"ablocks-border__split",isPressed:b||r.length>0,showTooltip:!0,label:o?(0,z.__)("Set corners individually","ablocks"):(0,z.__)("Set sides individually","ablocks"),onClick:()=>s(b?null:e),children:(0,L.jsx)(mx,{corners:o})}),b&&(0,L.jsx)(A.Popover,{className:"ablocks-border__popover",placement:"bottom-end",offset:8,resize:!0,flip:!0,shift:!0,onClose:()=>s(null),focusOnMount:"firstElement",children:(0,L.jsx)("div",{className:"ablocks-mgrid ablocks-border__parts",children:i.map(t=>(0,L.jsx)(ox,{label:t.label,dot:hx(a(e+t.prop)),field:c(e+t.prop,o?(0,L.jsx)(QM,{corner:t.glyph}):(0,L.jsx)(JM,{side:t.glyph}))},t.prop))})})]})}function fx({read:t,write:e,openFor:i,setOpen:o}){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(gx,{label:(0,z.__)("Border width","ablocks"),base:"borderWidth",parts:ux,corners:!1,read:t,write:e,openFor:i,setOpen:o}),(0,L.jsx)(gx,{ | |
| 2371 | -label:(0,z.__)("Border radius","ablocks"),base:"borderRadius",parts:px,corners:!0,read:t,write:e,openFor:i,setOpen:o})]})}const yx=(t,e,i)=>{const o=[...t],[a]=o.splice(e,1);return o.splice(i,0,a),o};function Tx({id:t,items:e=[],onReorder:i,renderItem:o,onDragStart:l,getId:n}){const[s,r]=(0,a.useState)(null),[b,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(null),p=()=>{r(null),c(null),u(null)},m=(t,o)=>{const a=t+o;a<0||a>=e.length||i(yx(e,t,a))},h=t=>({role:"button",tabIndex:0,"aria-label":(0,z.__)("Reorder","ablocks"),onMouseDown:()=>r(t),onMouseUp:()=>r(null),onKeyDown:e=>{"ArrowUp"===e.key?(e.preventDefault(),m(t,-1)):"ArrowDown"===e.key&&(e.preventDefault(),m(t,1))}}),g=t=>({draggable:s===t,onDragStart:e=>{e.stopPropagation(),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),c(t),l&&l()},onDragOver:e=>{null!==b&&(e.preventDefault(),e.dataTransfer.dropEffect="move",u(t))},onDrop:o=>{var a;o.preventDefault(),o.stopPropagation(),a=t, | |
| 2372 | -null!==b&&null!==a&&b!==a&&i(yx(e,b,a)),p()},onDragEnd:t=>{t.stopPropagation(),p()}});return(0,L.jsx)("div",{className:"ablocks-sortable",children:e.map((e,i)=>(0,L.jsx)("div",{className:["ablocks-sortable__item",b===i?"is-dragging":"",d===i&&b!==i?"is-over":""].filter(Boolean).join(" "),...g(i),children:o(e,i,h(i))},((e,i)=>n?`${t}-${n(e,i)}`:`${t}-${i}`)(e,i)))})}const Hx=t=>t?decodeURIComponent(String(t).split("/").pop()):"";function Mx({label:t,url:e,id:i,onSelect:o,onRemove:a,allowedTypes:l=["image"],placeholder:n=(0,z.__)("Select image","ablocks"),preview:s=!0}){return(0,L.jsxs)("div",{className:"ablocks-media-field",children:[t&&(0,L.jsx)("span",{className:"ablocks-media-field__label",children:t}),(0,L.jsx)(C.MediaUploadCheck,{children:(0,L.jsx)(C.MediaUpload,{onSelect:o,allowedTypes:l,value:i,render:({open:t})=>(0,L.jsx)("button",{type:"button",className:"ablocks-media-field__tile",onClick:t,"aria-label":e?Hx(e):n,children:e&&s?(0,L.jsx)("img",{src:e,alt:""}):(0,L.jsx)("span",{ | |
| 2373 | -className:"ablocks-media-field__empty",children:e?Hx(e):n})})})}),!!e&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"ablocks-media-field__name",title:Hx(e),children:Hx(e)}),(0,L.jsxs)("div",{className:"ablocks-media-field__actions",children:[(0,L.jsx)(C.MediaUploadCheck,{children:(0,L.jsx)(C.MediaUpload,{onSelect:o,allowedTypes:l,value:i,render:({open:t})=>(0,L.jsx)(A.Button,{variant:"secondary",onClick:t,children:(0,z.__)("Replace","ablocks")})})}),(0,L.jsx)(A.Button,{variant:"tertiary",isDestructive:!0,onClick:a,children:(0,z.__)("Remove","ablocks")})]})]})]})}const xx=()=>{},kx={...FH,backgroundOverlay:{label:(0,z.__)("Overlay","ablocks"),defaults:()=>({type:"gradient",url:"",imageId:0,size:"",position:"",repeat:"",attachment:"",gradientType:"linear",angle:180,radialPosition:"",from:"#000000",fromStop:0,to:"rgba(0, 0, 0, 0)",toStop:100}),summary:t=>{if(!t||"object"!=typeof t)return"";if("image"===t.type){if(!t.url)return(0,z.__)("Image: none selected","ablocks") | |
| 2374 | -;const e=String(t.url).split("/").pop();return`${(0,z.__)("Image","ablocks")}: ${e}`}return`${"radial"===t.gradientType?(0,z.__)("Radial","ablocks"):(0,z.__)("Linear","ablocks")}: ${t.from||"#000000"} → ${t.to||"transparent"}`}}};function vx({label:t,value:e,onChange:i,attributes:o}){return(0,L.jsx)(ax,{label:t,children:(0,L.jsx)(vs,{label:"",attributeName:"color",attributeValue:e,setAttributes:xx,onChangeHandler:(t,e)=>i(e||""),resetHandler:()=>i(""),showGlobal:!1,allowGlobalColor:!1,attributes:o})})}function Rx({label:t,value:e,options:i,onChange:o}){return(0,L.jsx)(ax,{label:t,children:(0,L.jsx)(Ut,{label:"",attributeValue:e,setAttributes:xx,onChangeHandler:o,options:i})})}function Sx({prop:t,entry:e,onChange:i,attributes:o}){const a=t=>i({...e,...t}),l=(t,i,o,l={})=>(0,L.jsx)(ox,{label:t,field:{value:e[i],staticUnit:o,onValue:t=>a({[i]:""===t?"":parseFloat(t)}),...l}},i);if("textShadow"===t)return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vx,{label:(0,z.__)("Color","ablocks"), | |
| 2375 | -value:e.color,onChange:t=>a({color:t}),attributes:o}),(0,L.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,z.__)("Horizontal","ablocks"),"x","PX"),l((0,z.__)("Vertical","ablocks"),"y","PX"),l((0,z.__)("Blur","ablocks"),"blur","PX")]})]});if("boxShadow"===t)return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vx,{label:(0,z.__)("Color","ablocks"),value:e.color,onChange:t=>a({color:t}),attributes:o}),(0,L.jsx)(Rx,{label:(0,z.__)("Position","ablocks"),value:e.position||"outset",options:CH,onChange:t=>a({position:t})}),(0,L.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,z.__)("Horizontal","ablocks"),"x","PX"),l((0,z.__)("Vertical","ablocks"),"y","PX"),l((0,z.__)("Blur","ablocks"),"blur","PX"),l((0,z.__)("Spread","ablocks"),"spread","PX")]})]});if("backgroundOverlay"===t){const t="image"===e.type;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Rx,{label:(0,z.__)("Type","ablocks"),value:e.type||"gradient",options:qH,onChange:t=>a({type:t})}),t?(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 2376 | -L.jsx)(Mx,{url:e.url,id:e.imageId,onSelect:t=>a({url:t?.url||"",imageId:t?.id||0}),onRemove:()=>a({url:"",imageId:0}),placeholder:(0,z.__)("Choose image","ablocks")}),(0,L.jsx)(Rx,{label:(0,z.__)("Size","ablocks"),value:e.size||"",options:GH,onChange:t=>a({size:t})}),(0,L.jsx)(Rx,{label:(0,z.__)("Position","ablocks"),value:e.position||"",options:ZH,onChange:t=>a({position:t})}),(0,L.jsx)(Rx,{label:(0,z.__)("Repeat","ablocks"),value:e.repeat||"",options:KH,onChange:t=>a({repeat:t})}),(0,L.jsx)(Rx,{label:(0,z.__)("Attachment","ablocks"),value:e.attachment||"",options:JH,onChange:t=>a({attachment:t})})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Rx,{label:(0,z.__)("Gradient","ablocks"),value:e.gradientType||"linear",options:$H,onChange:t=>a({gradientType:t})}),(0,L.jsx)(vx,{label:(0,z.__)("From","ablocks"),value:e.from,onChange:t=>a({from:t||"#000000"}),attributes:o}),(0,L.jsx)(vx,{label:(0,z.__)("To","ablocks"),value:e.to,onChange:t=>a({to:t||"rgba(0, 0, 0, 0)"}),attributes:o}),(0, | |
| 2377 | -L.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,z.__)("From stop","ablocks"),"fromStop","%"),l((0,z.__)("To stop","ablocks"),"toStop","%"),"radial"!==e.gradientType&&l((0,z.__)("Angle","ablocks"),"angle","DEG")]}),"radial"===e.gradientType&&(0,L.jsx)(Rx,{label:(0,z.__)("Center","ablocks"),value:e.radialPosition||"",options:ZH,onChange:t=>a({radialPosition:t})})]})]})}if("transform"===t){const t=e.type||"move",i="move"===t,o="scale"===t,n="rotate"===t,s="skew"===t,r="flip"===t,b=!1!==e.proportional,c=(t,i)=>(0,L.jsx)(ox,{label:t,field:{value:e[i],unit:e.unit||"px",onValue:t=>a({[i]:""===t?"":parseFloat(t)}),onUnit:t=>a({unit:t})}},i);let d=null;return(n||s)&&(d="DEG"),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Rx,{label:(0,z.__)("Type","ablocks"),value:t,options:AH,onChange:t=>a({type:t})}),r&&(0,L.jsx)(Rx,{label:(0,z.__)("Axis","ablocks"),value:e.axis||"x",options:DH,onChange:t=>a({axis:t})}),o&&(0,L.jsx)(ax,{label:(0,z.__)("Proportional","ablocks"),children:(0, | |
| 2378 | -L.jsx)(A.ToggleControl,{label:"",checked:b,onChange:t=>a({proportional:t}),__nextHasNoMarginBottom:!0})}),!r&&(0,L.jsxs)("div",{className:"ablocks-mgrid",children:[i&&c("X","x"),i&&c("Y","y"),i&&l("Z","z","PX",{unit:"px"}),o&&l(b?(0,z.__)("Scale","ablocks"):"X","x","",{noUnit:!0,step:.1}),o&&!b&&l("Y","y","",{noUnit:!0,step:.1}),o&&!b&&l("Z","z","",{noUnit:!0,step:.1}),(n||s)&&l("X","x",d),(n||s)&&l("Y","y",d),n&&l("Z","z",d)]})]})}if("transition"===t)return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Rx,{label:(0,z.__)("Property","ablocks"),value:e.property||"all",options:IH,onChange:t=>a({property:t})}),(0,L.jsx)(Rx,{label:(0,z.__)("Easing","ablocks"),value:e.easing||"ease",options:VH,onChange:t=>a({easing:t})}),(0,L.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,z.__)("Duration","ablocks"),"duration","MS",{step:50}),l((0,z.__)("Delay","ablocks"),"delay","MS",{step:50})]})]});const n=YH(e.type);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Rx,{label:(0, | |
| 2379 | -z.__)("Type","ablocks"),value:e.type||"blur",options:OH.map(t=>({label:t.label,value:t.value})),onChange:t=>a({type:t,value:YH(t).def})}),(0,L.jsx)(ax,{label:(0,z.__)("Amount","ablocks"),children:(0,L.jsx)(ix,{value:e.value,staticUnit:n.unit.toUpperCase(),ariaLabel:(0,z.__)("Amount","ablocks"),onValue:t=>a({value:""===t?"":parseFloat(t)})})})]})}function Wx({atomic:t,prop:e,action:i=null}){const{sd:o,setState:l,attributes:n}=t,[r,b]=(0,a.useState)(null),c=kx[e],d=o(e),u=Array.isArray(d)?d:[],p=t=>l({[e]:t.length?t:""}),m="filter"===e||"backdropFilter"===e,h=(t,e)=>p(u.map((i,o)=>o===t?e:i));return(0,L.jsxs)("div",{className:"ablocks-eff",children:[(0,L.jsxs)("div",{className:"ablocks-eff__head",children:[(0,L.jsx)("span",{className:"ablocks-eff__label",children:c.label}),u.length>0&&(0,L.jsx)("span",{className:"ablocks-eff__dot","aria-hidden":"true"}),i&&(0,L.jsx)("span",{className:"ablocks-eff__action",children:i}),(0,L.jsx)(A.Button,{className:"ablocks-eff__add",icon:"plus-alt2", | |
| 2380 | -label:(0,z.__)("Add","ablocks"),showTooltip:!0,onClick:()=>{p([...u,c.defaults()])}})]}),(0,L.jsx)(Tx,{id:`ablocks-eff-${e}`,items:u,onReorder:p,onDragStart:()=>b(null),renderItem:(t,i,o)=>(0,L.jsxs)("div",{className:s()("ablocks-eff__item",{"ablocks-eff__item--disabled":t.disabled}),children:[(0,L.jsx)("span",{className:"ablocks-eff__grip",...o,"aria-label":(0,z.__)("Reorder","ablocks"),children:(0,L.jsx)("span",{className:"dashicons dashicons-menu"})}),(0,L.jsx)("button",{type:"button",className:"ablocks-eff__summary",onClick:()=>b(r===i?null:i),children:c.summary(t)}),(0,L.jsx)(A.Button,{className:"ablocks-eff__toggle",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--"+(t.disabled?"eye-slash":"eye")}),label:t.disabled?(0,z.__)("Enable","ablocks"):(0,z.__)("Disable","ablocks"),showTooltip:!0,onClick:()=>(t=>h(t,{...u[t],disabled:!u[t].disabled}))(i)}),m&&(0,L.jsx)(A.Button,{className:"ablocks-eff__duplicate",icon:"admin-page",label:(0,z.__)("Duplicate","ablocks"), | |
| 2381 | -showTooltip:!0,onClick:()=>(t=>{p([...u.slice(0,t+1),{...u[t]},...u.slice(t+1)]),b(null)})(i)}),(0,L.jsx)(A.Button,{className:"ablocks-eff__remove",icon:"no-alt",label:(0,z.__)("Remove","ablocks"),showTooltip:!0,onClick:()=>(t=>{p(u.filter((e,i)=>i!==t)),b(null)})(i)}),r===i&&(0,L.jsx)(A.Popover,{className:"ablocks-eff__popover",placement:"left-start",offset:8,resize:!0,flip:!0,shift:!0,onClose:()=>{document.body.classList.contains("modal-open")||b(null)},focusOnMount:"firstElement",children:(0,L.jsx)("div",{className:"ablocks-eff__popover-inner",children:(0,L.jsx)(Sx,{prop:e,entry:t,attributes:n,onChange:t=>h(i,t)})})})]})})]})}const Ux=()=>{},Px=[{prop:"width",label:(0,z.__)("Width","ablocks")},{prop:"height",label:(0,z.__)("Height","ablocks")},{prop:"minWidth",label:(0,z.__)("Min width","ablocks")},{prop:"minHeight",label:(0,z.__)("Min height","ablocks")},{prop:"maxWidth",label:(0,z.__)("Max width","ablocks")},{prop:"maxHeight",label:(0,z.__)("Max height","ablocks")}],jx=[{ | |
| 2382 | -value:"visible",label:(0,z.__)("Visible","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--eye"})},{value:"hidden",label:(0,z.__)("Hidden","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--eye-slash"})},{value:"auto",label:(0,z.__)("Auto (scroll)","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--mouse-scroll"})}],wx=["","1 / 1","4 / 3","3 / 2","16 / 9","21 / 9","3 / 4","2 / 3","9 / 16"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),zx=["","fill","contain","cover","none","scale-down"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,z.__)("Default","ablocks"),value:t})),Cx=["","center center","center left","center right","top center","top left","top right","bottom center","bottom left","bottom right"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,z.__)("Default","ablocks"),value:t}));function Ax({atomic:t,height:e=!0}){const{sd:i,setState:o}=t,[l,n]=(0, | |
| 2383 | -a.useState)(!1),s=e?Px:Px.filter(t=>!t.prop.toLowerCase().includes("height")),r=(t,e,a)=>(0,L.jsx)(ax,{label:t,children:(0,L.jsx)(Ut,{label:"",attributeValue:i(e)||"",setAttributes:Ux,onChangeHandler:t=>o({[e]:t}),options:a})});return(0,L.jsxs)("div",{className:"ablocks-size",children:[(0,L.jsx)("div",{className:"ablocks-mgrid",children:s.map(e=>(0,L.jsxs)("div",{className:"ablocks-mcell",children:[(0,L.jsx)("span",{className:"ablocks-mcell__label",children:e.label}),(0,L.jsx)(ix,{...lx(t,e.prop,e.label)})]},e.prop))}),(0,L.jsx)("hr",{className:"ablocks-prule"}),(0,L.jsx)(ax,{label:(0,z.__)("Overflow","ablocks"),children:(0,L.jsx)(vb,{label:"",attributeName:"overflow",attributeValue:i("overflow")||"",setAttributes:Ux,onChangeHandler:t=>o({overflow:t||""}),options:jx,isResponsive:!1,isInline:!1})}),(0,L.jsx)(A.Button,{className:"ablocks-showmore",icon:l?"arrow-up-alt2":"arrow-down-alt2",iconPosition:"right",onClick:()=>n(!l),"aria-expanded":l,children:l?(0, | |
| 2384 | -z.__)("Show less","ablocks"):(0,z.__)("Show more","ablocks")}),l&&(0,L.jsxs)(L.Fragment,{children:[r((0,z.__)("Aspect ratio","ablocks"),"aspectRatio",wx),r((0,z.__)("Object fit","ablocks"),"objectFit",zx),r((0,z.__)("Object position","ablocks"),"objectPosition",Cx)]})]})}const Lx=()=>{},Dx=(t,e="")=>(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--glyphtext ${e}`.trim(),children:t}),Nx=Dx("—"),Ix=[{value:"",label:(0,z.__)("None","ablocks"),icon:Nx},{value:"underline",label:(0,z.__)("Underline","ablocks"),icon:Dx("A","is-underline")},{value:"overline",label:(0,z.__)("Overline","ablocks"),icon:Dx("A","is-overline")},{value:"line-through",label:(0,z.__)("Line through","ablocks"),icon:Dx("A","is-strike")}],Vx=[{value:"",label:(0,z.__)("None","ablocks"),icon:Nx},{value:"capitalize",label:(0,z.__)("Capitalize","ablocks"),icon:Dx("Aa")},{value:"uppercase",label:(0,z.__)("Uppercase","ablocks"),icon:Dx("AA")},{value:"lowercase",label:(0,z.__)("Lowercase","ablocks"),icon:Dx("aa")}],Ox=[{ | |
| 2385 | -value:"ltr",label:(0,z.__)("Left to right","ablocks"),icon:Dx("¶")},{value:"rtl",label:(0,z.__)("Right to left","ablocks"),icon:Dx("¶","is-flipped")}],Yx=[{value:"",label:(0,z.__)("Normal","ablocks"),icon:Nx},{value:"italic",label:(0,z.__)("Italic","ablocks"),icon:Dx("I","is-italic")}],Xx=[{value:"left",label:(0,z.__)("Left","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-left"})},{value:"center",label:(0,z.__)("Center","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center"})},{value:"right",label:(0,z.__)("Right","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-right"})},{value:"justify",label:(0,z.__)("Justify","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify"})}];function Bx({label:t,children:e}){return(0,L.jsxs)("div",{className:"ablocks-prow",children:[(0,L.jsx)("span",{className:"ablocks-prow__label",children:t}),(0,L.jsx)("div",{ | |
| 2386 | -className:"ablocks-prow__control",children:e})]})}function Ex({atomic:t}){const{t:e,sd:i,resolved:o,setState:l,setTypography:n,attributes:s,bucketKey:r,activeState:b}=t,[c,d]=(0,a.useState)(!1),u=""===r&&""===b?{}:t.inheritedTypography||{},p=t=>null!=t&&""!==t,m=t=>p(e[t])?e[t]:u[t],h=t=>p(i(t))?i(t):o?.(t),g=Object.keys(u).some(t=>!/Unit$/.test(t)&&p(u[t])&&!p(e[t]))||!p(i("textAlign"))&&p(h("textAlign"))||!p(i("textColor"))&&p(h("textColor")),[f,y]=(0,a.useState)([]),[T,H]=(0,a.useState)({});(0,a.useEffect)(()=>{let t=!0;return(0,xc.TE)().then(e=>{t&&e&&(y(e.families||[]),H(e.fontVariants||{}))}),()=>{t=!1}},[]);const M=m("fontFamily"),x=T[M]?.variants?.length>0?[{label:(0,z.__)("Default","ablocks"),value:""},...T[M].variants.filter(t=>/^\d+$/.test(t)).map(t=>({label:t,value:t}))]:P.Wy,k=(t,i)=>{const o=p(e[t]),a=e[i]||(o?"":u[i])||"px";return{value:e[t],unit:a,placeholder:!o&&p(u[t])?String(u[t]):"0",onValue:o=>n({[t]:o,...p(o)&&!e[i]&&"px"!==a?{[i]:a}:{}}),onUnit:t=>n({[i]:t}), | |
| 2387 | -ariaLabel:t}},v=(t,e,i,o)=>(0,L.jsx)(Bx,{label:t,children:(0,L.jsx)(vb,{label:"",attributeName:t,attributeValue:e||"",setAttributes:Lx,onChangeHandler:t=>o(t||""),options:i,isResponsive:!1,isInline:!1})}),_=p(m("strokeWidth"))||!!m("strokeColor"),[R,S]=(0,a.useState)(!1);return(0,L.jsxs)("div",{className:"ablocks-typo",children:[g&&(0,L.jsx)("p",{className:"ablocks-field-hint",children:(0,z.__)("Showing values inherited from a wider breakpoint or state. A change here applies to this one only.","ablocks")}),(0,L.jsx)(Bx,{label:(0,z.__)("Font family","ablocks"),children:(0,L.jsx)(Ut,{label:"",attributeValue:M||"",setAttributes:Lx,onChangeHandler:t=>n({fontFamily:t}),options:[{label:(0,z.__)("Default","ablocks"),value:""},...Mc,...f],isSearch:!0})}),(0,L.jsx)(Bx,{label:(0,z.__)("Font weight","ablocks"),children:(0,L.jsx)(Ut,{label:"",attributeValue:m("weight")||"",setAttributes:Lx,onChangeHandler:t=>n({weight:t}),options:x})}),(0,L.jsx)(Bx,{label:(0,z.__)("Font size","ablocks"), | |
| 2388 | -children:(0,L.jsx)(ix,{...k("fontSize","fontSizeUnit")})}),(0,L.jsx)("hr",{className:"ablocks-prule"}),v((0,z.__)("Text align","ablocks"),h("textAlign"),Xx,t=>l({textAlign:t})),(0,L.jsx)(Bx,{label:(0,z.__)("Text color","ablocks"),children:(0,L.jsx)(vs,{label:"",attributeName:"textColor",attributeValue:h("textColor"),setAttributes:Lx,onChangeHandler:(t,e)=>l({textColor:e||""}),resetHandler:()=>l({textColor:""}),showGlobal:!1,allowGlobalColor:!1,attributes:s})}),(0,L.jsx)(A.Button,{className:"ablocks-showmore",icon:c?"arrow-up-alt2":"arrow-down-alt2",iconPosition:"right",onClick:()=>d(!c),"aria-expanded":c,children:c?(0,z.__)("Show less","ablocks"):(0,z.__)("Show more","ablocks")}),c&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Bx,{label:(0,z.__)("Line height","ablocks"),children:(0,L.jsx)(ix,{...k("lineHeight","lineHeightUnit")})}),(0,L.jsx)(Bx,{label:(0,z.__)("Letter spacing","ablocks"),children:(0,L.jsx)(ix,{...k("letterSpacing","letterSpacingUnit")})}),(0,L.jsx)(Bx,{label:(0, | |
| 2389 | -z.__)("Word spacing","ablocks"),children:(0,L.jsx)(ix,{...k("wordSpacing","wordSpacingUnit")})}),(0,L.jsx)(Bx,{label:(0,z.__)("Columns","ablocks"),children:(0,L.jsx)("input",{className:"ablocks-prow__number",type:"number",min:"1",value:e.columns??"",placeholder:p(u.columns)?String(u.columns):"1","aria-label":(0,z.__)("Columns","ablocks"),onChange:t=>n({columns:t.target.value})})}),(0,L.jsx)("hr",{className:"ablocks-prule"}),v((0,z.__)("Line decoration","ablocks"),m("decoration"),Ix,t=>n({decoration:t})),v((0,z.__)("Text transform","ablocks"),m("transform"),Vx,t=>n({transform:t})),v((0,z.__)("Direction","ablocks"),m("direction"),Ox,t=>n({direction:t})),v((0,z.__)("Font style","ablocks"),m("style"),Yx,t=>n({style:t})),(0,L.jsxs)("div",{className:"ablocks-prow",children:[(0,L.jsx)("span",{className:"ablocks-prow__label",children:(0,z.__)("Text stroke","ablocks")}),(0,L.jsx)(A.Button,{className:"ablocks-prow__add",icon:_||R?"minus":"plus-alt2",label:_||R?(0, | |
| 2390 | -z.__)("Remove text stroke","ablocks"):(0,z.__)("Add text stroke","ablocks"),showTooltip:!0,onClick:()=>{if(_||R)return S(!1),void n({strokeWidth:"",strokeColor:""});S(!0)}})]}),(_||R)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Bx,{label:(0,z.__)("Stroke width","ablocks"),children:(0,L.jsx)(ix,{...k("strokeWidth","strokeWidthUnit")})}),(0,L.jsx)(Bx,{label:(0,z.__)("Stroke color","ablocks"),children:(0,L.jsx)(vs,{label:"",attributeName:"strokeColor",attributeValue:m("strokeColor"),setAttributes:Lx,onChangeHandler:(t,e)=>n({strokeColor:e||""}),resetHandler:()=>n({strokeColor:""}),showGlobal:!1,allowGlobalColor:!1,attributes:s})})]}),(0,L.jsx)(Wx,{atomic:t,prop:"textShadow"})]})]})}const Fx=[{key:"top",label:(0,z.__)("Top","ablocks")},{key:"right",label:(0,z.__)("Right","ablocks")},{key:"bottom",label:(0,z.__)("Bottom","ablocks")},{key:"left",label:(0,z.__)("Left","ablocks")}];function qx({label:t,value:e={},onChange:i}){const o=!1!==e.isLinked,a=e.unit||"px",l=t=>i({...e,...t | |
| 2391 | -}),n=t=>o?e.common:e[t];return(0,L.jsxs)("div",{className:"ablocks-spacing",children:[(0,L.jsxs)("div",{className:"ablocks-spacing__head",children:[(0,L.jsx)("span",{className:"ablocks-spacing__title",children:t}),(0,L.jsx)(A.Button,{className:"ablocks-spacing__link",icon:o?"admin-links":"editor-unlink",isPressed:o,showTooltip:!0,label:o?(0,z.__)("Edit sides separately","ablocks"):(0,z.__)("Link all sides","ablocks"),onClick:()=>{if(o){const t=e.common??"";return void l({isLinked:!1,top:t,right:t,bottom:t,left:t})}const t=Fx.map(t=>e[t.key]).find(t=>void 0!==t&&""!==t);l({isLinked:!0,common:t??""})}})]}),(0,L.jsx)("div",{className:"ablocks-mgrid",children:Fx.map(t=>{return(0,L.jsx)(ox,{label:t.label,dot:void 0!==n(t.key)&&""!==n(t.key),field:{glyph:(0,L.jsx)(JM,{side:t.key}),value:n(t.key),unit:(i=t.key,o?a:e[i+"Unit"]||a),onValue:e=>((t,e)=>l(o?{common:e}:{[t]:e}))(t.key,e),onUnit:e=>((t,e)=>l(o?{unit:e}:{[t+"Unit"]:e}))(t.key,e)}},t.key);var i})})]})} | |
| 2392 | -const $x=()=>{},Gx=t=>""===t?"normal":String(t).slice(1),Zx=(["","block","flex","inline-flex","grid","inline-grid","inline-block","inline","none"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),["","row","row-reverse","column","column-reverse"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),["","nowrap","wrap","wrap-reverse"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),["","flex-start","center","flex-end","space-between","space-around","space-evenly"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),["","stretch","flex-start","center","flex-end","baseline"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t})),["","row","column","row dense","column dense"].map(t=>({label:t||(0,z.__)("default","ablocks"),value:t}))),Kx=t=>(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--${t}`}),Jx=[{value:"row",label:(0,z.__)("Row","ablocks"),icon:Kx("direction-row-horizontal")},{value:"column",label:(0,z.__)("Column","ablocks"), | |
| 2393 | -icon:Kx("direction-column-vertical")},{value:"row-reverse",label:(0,z.__)("Row reversed","ablocks"),icon:Kx("direction-row-reversed")},{value:"column-reverse",label:(0,z.__)("Column reversed","ablocks"),icon:Kx("direction-column-reversed")}],Qx=[{value:"flex-start",label:(0,z.__)("Start","ablocks"),icon:Kx("justify-start")},{value:"center",label:(0,z.__)("Center","ablocks"),icon:Kx("justify-Center")},{value:"flex-end",label:(0,z.__)("End","ablocks"),icon:Kx("justify-end")},{value:"space-between",label:(0,z.__)("Space between","ablocks"),icon:Kx("justify-spacebetween")},{value:"space-around",label:(0,z.__)("Space around","ablocks"),icon:Kx("justify-spacearound")},{value:"space-evenly",label:(0,z.__)("Space evenly","ablocks"),icon:Kx("justify-spaceevenly")}],tk=[{value:"flex-start",label:(0,z.__)("Start","ablocks"),icon:Kx("align-start")},{value:"center",label:(0,z.__)("Center","ablocks"),icon:Kx("align-center")},{value:"flex-end",label:(0,z.__)("End","ablocks"),icon:Kx("align-end")},{ | |
| 2394 | -value:"stretch",label:(0,z.__)("Stretch","ablocks"),icon:Kx("align-stretch")}],ek=[{value:"nowrap",label:(0,z.__)("No wrap","ablocks"),icon:Kx("no-wrap")},{value:"wrap",label:(0,z.__)("Wrap","ablocks"),icon:Kx("wrap")}],ik=t=>(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--inline-svg",children:(0,L.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:t.split("|").map((t,e)=>(0,L.jsx)("path",{d:t},e))})}),ok="M3 4.5v11|M17 4.5v11",ak=ik(`${ok}|M9.5 10H5.5|M7.5 8 5.5 10l2 2|M10.5 10h4|M12.5 8 14.5 10l-2 2`),lk=ik(`${ok}|M5 10h4.5|M7.5 8 9.5 10l-2 2|M15 10h-4.5|M12.5 8 10.5 10l2 2`),nk="-99999",sk="99999",rk=[{value:"first",label:(0,z.__)("First","ablocks"),icon:Kx("arrow-up")},{value:"last",label:(0,z.__)("Last","ablocks"),icon:Kx("arrow-down")},{value:"custom",label:(0,z.__)("Custom","ablocks"),icon:Kx("edit")}],bk=[{value:"grow",label:(0, | |
| 2395 | -z.__)("Grow","ablocks"),icon:ak},{value:"shrink",label:(0,z.__)("Shrink","ablocks"),icon:lk},{value:"custom",label:(0,z.__)("Custom","ablocks"),icon:Kx("edit")}],ck=[{value:"auto",label:(0,z.__)("Auto","ablocks"),icon:Kx("justify")},{value:"flex-start",label:(0,z.__)("Start","ablocks"),icon:Kx("align-start")},{value:"center",label:(0,z.__)("Center","ablocks"),icon:Kx("align-center")},{value:"flex-end",label:(0,z.__)("End","ablocks"),icon:Kx("align-end")},{value:"stretch",label:(0,z.__)("Stretch","ablocks"),icon:Kx("align-stretch")}],dk=t=>null!=t&&""!==t&&("object"!=typeof t||Object.keys(t).some(e=>""!==t[e]&&void 0!==t[e]&&null!==t[e]));function uk({atomic:t,base:e}){const{sd:i,resolved:o,bucketKey:a,activeState:l}=t;if(""===a&&""===l)return null;if(dk(i(e)))return null;const n=o?o(e):void 0;return dk(n)?(0,L.jsxs)("span",{className:"ablocks-elc__inherited",children:[(0,z.__)("Inherited","ablocks"),"object"!=typeof n&&(0,L.jsx)("code",{children:String(n)})]}):null} | |
| 2396 | -function pk({atomic:t,label:e,base:i}){const{sd:o,setState:a,attributes:l}=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(uk,{atomic:t,base:i}),(0,L.jsx)(vs,{label:e,attributeName:i,attributeValue:o(i),setAttributes:$x,onChangeHandler:(t,e)=>a({[i]:e||""}),resetHandler:()=>a({[i]:""}),showGlobal:!1,allowGlobalColor:!1,attributes:l})]})}function mk({atomic:t,label:e,base:i,options:o}){const{sd:a,setState:l,resolved:n}=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(uk,{atomic:t,base:i}),(0,L.jsx)(Ut,{label:e,attributeValue:a(i)||n?.(i)||"",setAttributes:$x,onChangeHandler:t=>l({[i]:t}),options:o})]})}function hk({atomic:t,label:e,base:i,options:o,fallback:a=""}){const{sd:l,setState:n,resolved:s}=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(uk,{atomic:t,base:i}),(0,L.jsx)(vb,{label:e,attributeName:i,attributeValue:l(i)||s?.(i)||a,setAttributes:$x,onChangeHandler:t=>n({[i]:t||""}),options:o,isResponsive:!1,isInline:!0})]})} | |
| 2397 | -const gk=["","border-box","padding-box","content-box","text"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,z.__)("Default","ablocks"),value:t}));function fk({atomic:t,open:e=!1}){const{sd:i,setState:o}=t,a=i("backgroundGradient")||"",l=i("backgroundClip")||"";return(0,L.jsxs)(A.PanelBody,{title:Ck(t,(0,z.__)("Background","ablocks"),"background"),initialOpen:e,children:[(0,L.jsx)(Wx,{atomic:t,prop:"backgroundOverlay"}),(0,L.jsx)(pk,{atomic:t,label:(0,z.__)("Color","ablocks"),base:"backgroundColor"}),(0,L.jsx)(mk,{atomic:t,label:(0,z.__)("Clipping","ablocks"),base:"backgroundClip",options:gk}),"text"===l&&(0,L.jsx)("p",{className:"ablocks-field-hint",children:(0,z.__)("Clipping to text only shows once the text colour is transparent.","ablocks")}),""!==a&&(0,L.jsx)(A.TextControl,{label:(0,z.__)("Gradient / image (CSS)","ablocks"),value:a,onChange:t=>o({backgroundGradient:t}),placeholder:"linear-gradient(…)",help:(0, | |
| 2398 | -z.__)("Legacy raw CSS value. Any overlay layer above replaces it.","ablocks"),__nextHasNoMarginBottom:!0})]})}function yk({atomic:t,open:e=!1}){return(0,L.jsx)(A.PanelBody,{title:Ck(t,(0,z.__)("Typography","ablocks"),"typography"),initialOpen:e,children:(0,L.jsx)(Ex,{atomic:t})})}function Tk({attributes:t,setAttributes:e,open:i=!1}){const{link:o={}}=t,a=t=>e({link:{...o,...t}});return(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Link","ablocks"),initialOpen:i,children:[(0,L.jsx)(A.TextControl,{label:(0,z.__)("URL","ablocks"),value:o.url||"",onChange:t=>a({url:t}),placeholder:"https://…",__nextHasNoMarginBottom:!0}),!!o.url&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.ToggleControl,{label:(0,z.__)("Open in new tab","ablocks"),checked:!!o.newTab,onChange:t=>a({newTab:t}),__nextHasNoMarginBottom:!0}),(0,L.jsx)(A.ToggleControl,{label:(0,z.__)("Add nofollow","ablocks"),checked:!!o.noFollow,onChange:t=>a({noFollow:t}),__nextHasNoMarginBottom:!0})]})]})}function Hk({atomic:t,open:e=!1}){ | |
| 2399 | -const{sd:i,setState:o,resolved:l}=t,n=l("borderWidth"),s="double"===i("borderStyle")&&n&&"object"==typeof n&&""!==n.value&&void 0!==n.value&&"px"===(n.valueUnit||"px")&&parseFloat(n.value)<3,[r,b]=(0,a.useState)(null);return(0,L.jsxs)(A.PanelBody,{title:Ck(t,(0,z.__)("Border","ablocks"),"border"),initialOpen:e,children:[(0,L.jsx)(uk,{atomic:t,base:"borderWidth"}),(0,L.jsx)(fx,{read:t=>{const e=i(t);return e&&"object"==typeof e?e:{}},write:(t,e)=>o({[t]:e}),openFor:r,setOpen:b}),(0,L.jsx)(pk,{atomic:t,label:(0,z.__)("Border color","ablocks"),base:"borderColor"}),(0,L.jsx)(mk,{atomic:t,label:(0,z.__)("Border type","ablocks"),base:"borderStyle",options:Dk}),s&&(0,L.jsx)("p",{className:"ablocks-field-hint",children:(0,z.__)("A double border needs a width of at least 3px to draw two lines.","ablocks")})]})}function Mk({atomic:t,open:e=!1,height:i=!0}){return(0,L.jsx)(A.PanelBody,{title:Ck(t,(0,z.__)("Size","ablocks"),"size"),initialOpen:e,children:(0,L.jsx)(Ax,{atomic:t,height:i})})} | |
| 2400 | -function xk({atomic:t,open:e=!1}){const{dimValue:i,setState:o}=t,a=(e,a)=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(uk,{atomic:t,base:e}),(0,L.jsx)(qx,{label:a,value:i(e),onChange:t=>o({[e]:t})})]});return(0,L.jsxs)(A.PanelBody,{title:Ck(t,(0,z.__)("Spacing","ablocks"),"spacing"),initialOpen:e,children:[a("margin",(0,z.__)("Margin","ablocks")),a("padding",(0,z.__)("Padding","ablocks"))]})}const kk=[{value:"block",label:(0,z.__)("Block","ablocks")},{value:"flex",label:(0,z.__)("Flex","ablocks")},{value:"grid",label:(0,z.__)("Grid","ablocks")},{value:"none",label:(0,z.__)("None","ablocks")}],vk=[{value:"inline-block",label:(0,z.__)("Inline-block","ablocks")},{value:"inline-flex",label:(0,z.__)("Inline-flex","ablocks")},{value:"inline-grid",label:(0,z.__)("Inline-grid","ablocks")}];function _k({value:t,onChange:e}){const i=vk.find(e=>e.value===t),o=i?[...kk,i]:kk;return(0,L.jsxs)("div",{className:"ablocks-display-toggle",children:[(0,L.jsx)("span",{ | |
| 2401 | -className:"ablocks-display-toggle__label",children:(0,z.__)("Display","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-display-toggle__row",children:[(0,L.jsx)(vb,{label:"",attributeName:"display",attributeValue:t,setAttributes:$x,onChangeHandler:t=>e(t||""),options:o,isResponsive:!1,isInline:!1}),(0,L.jsx)(A.Dropdown,{className:"ablocks-display-toggle__more",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:e})=>(0,L.jsx)(A.Button,{icon:"arrow-down-alt2",label:(0,z.__)("More displays","ablocks"),showTooltip:!0,"aria-expanded":t,onClick:e}),renderContent:({onClose:i})=>(0,L.jsx)("div",{className:"ablocks-display-toggle__menu",children:vk.map(o=>(0,L.jsx)(A.Button,{variant:t===o.value?"primary":"tertiary",onClick:()=>{e(o.value),i()},children:o.label},o.value))})})]})]})}function Rk({atomic:t}){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(hk,{atomic:t,label:(0,z.__)("Direction","ablocks"),base:"flexDirection",options:Jx,fallback:"row"}),(0,L.jsx)(hk,{atomic:t, | |
| 2402 | -label:(0,z.__)("Justify content","ablocks"),base:"justifyContent",options:Qx}),(0,L.jsx)(hk,{atomic:t,label:(0,z.__)("Align items","ablocks"),base:"alignItems",options:tk}),(0,L.jsx)(hk,{atomic:t,label:(0,z.__)("Wrap","ablocks"),base:"flexWrap",options:ek}),(0,L.jsx)(nx,{atomic:t,label:(0,z.__)("Gap","ablocks"),prop:"gap"})]})}function Sk({atomic:t}){const{sd:e,setState:i}=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.TextControl,{label:(0,z.__)("Template columns","ablocks"),value:e("gridTemplateColumns")||"",onChange:t=>i({gridTemplateColumns:t}),placeholder:"repeat(3, minmax(0, 1fr))",__nextHasNoMarginBottom:!0}),(0,L.jsx)(A.TextControl,{label:(0,z.__)("Template rows","ablocks"),value:e("gridTemplateRows")||"",onChange:t=>i({gridTemplateRows:t}),placeholder:"auto",__nextHasNoMarginBottom:!0}),(0,L.jsx)(mk,{atomic:t,label:(0,z.__)("Auto flow","ablocks"),base:"gridAutoFlow",options:Zx}),(0,L.jsx)(nx,{atomic:t,label:(0,z.__)("Gap","ablocks"),prop:"gap"}),(0,L.jsx)(hk,{atomic:t, | |
| 2403 | -label:(0,z.__)("Justify items","ablocks"),base:"justifyContent",options:Qx}),(0,L.jsx)(hk,{atomic:t,label:(0,z.__)("Align items","ablocks"),base:"alignItems",options:tk})]})}function Wk({label:t,value:e,onChange:i,type:o="number",hint:a}){return(0,L.jsxs)("div",{className:"ablocks-inline-field",children:[(0,L.jsx)("span",{className:"ablocks-inline-field__label",children:t}),(0,L.jsx)("input",{className:"ablocks-inline-field__input",type:o,value:e??"",placeholder:a,onChange:t=>i(t.target.value),"aria-label":t})]})}const Uk=t=>null==t||""===t;function Pk({atomic:t,grid:e=!1}){const{sd:i,setState:o}=t,l=i("order"),n=i("flexGrow"),s=i("flexShrink"),r=i("flexBasis"),b=Uk(c=l)?"":String(c)===nk?"first":String(c)===sk?"last":"custom";var c;const d=((t,e,i)=>Uk(t)&&Uk(e)&&Uk(i)?"":Uk(i)&&"1"===String(t)&&"0"===String(e)?"grow":Uk(i)&&"0"===String(t)&&"1"===String(e)?"shrink":"custom")(n,s,r),[u,p]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1);return(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 2404 | -L.jsx)("p",{className:"ablocks-layout-subhead",children:(0,z.__)("Flex child","ablocks")}),(0,L.jsx)(hk,{atomic:t,label:(0,z.__)("Align self","ablocks"),base:"alignSelf",options:ck}),(0,L.jsx)(uk,{atomic:t,base:"order"}),(0,L.jsx)(vb,{label:(0,z.__)("Order","ablocks"),attributeName:"order",attributeValue:u&&""===b?"custom":b,setAttributes:$x,onChangeHandler:t=>{var e;"custom"!==(e=t||"")?(p(!1),o(e?{order:"first"===e?nk:sk}:{order:""})):p(!0)},options:rk,isResponsive:!1,isInline:!0}),("custom"===b||u)&&(0,L.jsx)(Wk,{label:(0,z.__)("Order","ablocks"),value:"custom"===b?l:"",hint:"0",onChange:t=>o({order:t})}),!e&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(uk,{atomic:t,base:"flexGrow"}),(0,L.jsx)(vb,{label:(0,z.__)("Flex size","ablocks"),attributeName:"flexSize",attributeValue:m&&""===d?"custom":d,setAttributes:$x,onChangeHandler:t=>{var e;"custom"!==(e=t||"")?(h(!1),o(e?"grow"===e?{flexGrow:"1",flexShrink:"0",flexBasis:""}:{flexGrow:"0",flexShrink:"1",flexBasis:""}:{flexGrow:"", | |
| 2405 | -flexShrink:"",flexBasis:""})):h(!0)},options:bk,isResponsive:!1,isInline:!0}),("custom"===d||m)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wk,{label:(0,z.__)("Grow","ablocks"),value:n,hint:"0",onChange:t=>o({flexGrow:t})}),(0,L.jsx)(Wk,{label:(0,z.__)("Shrink","ablocks"),value:s,hint:"1",onChange:t=>o({flexShrink:t})}),(0,L.jsx)(Wk,{label:(0,z.__)("Basis","ablocks"),type:"text",value:r,hint:"auto / 50% / 200px",onChange:t=>o({flexBasis:t})})]})]})]})}function jk({atomic:t,defaultDisplay:e="block",open:i=!1}){const{sd:o,resolved:a,setState:l}=t,n=o("display")||"",s=a("display")||e;return(0,L.jsxs)(A.PanelBody,{title:Ck(t,(0,z.__)("Layout","ablocks"),"layout"),initialOpen:i,children:[(0,L.jsx)(uk,{atomic:t,base:"display"}),(0,L.jsx)(_k,{value:n,onChange:t=>l({display:t})}),("flex"===s||"inline-flex"===s)&&(0,L.jsx)(Rk,{atomic:t}),("grid"===s||"inline-grid"===s)&&(0,L.jsx)(Sk,{atomic:t}),(0,L.jsx)(Pk,{atomic:t,grid:t.parentIsGrid})]})} | |
| 2406 | -const wk=["","relative","absolute","fixed","sticky","static"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,z.__)("Default","ablocks"),value:t})),zk={layout:["display","flexDirection","flexWrap","justifyContent","alignItems","alignContent","gridTemplateColumns","gridTemplateRows","gridAutoFlow","gridAutoColumns","gridAutoRows","gap","rowGap","columnGap","flexBasis","flexGrow","flexShrink","order","alignSelf"],spacing:["padding","margin"],size:["width","maxWidth","minWidth","height","minHeight","maxHeight","aspectRatio","overflow","objectFit","objectPosition"],position:["position","top","right","bottom","left","zIndex","anchorOffset"],typography:["typography","textColor","textAlign","textShadow"],background:["backgroundColor","backgroundGradient","backgroundOverlay","backgroundClip","backgroundRepeat","backgroundSize","backgroundPosition","backgroundAttachment"],border:PH, | |
| 2407 | -effects:["mixBlendMode","isolation","opacity","cursor","boxShadow","transform","transformOrigin","transition","filter","backdropFilter"],color:["textColor","backgroundColor","fill","stroke","strokeWidth"]},Ck=(t,e,i)=>(0,L.jsxs)("span",{className:"ablocks-ptitle",children:[e,fH(t?.currentStyles,zk[i])&&(0,L.jsx)("i",{className:"ablocks-ptitle__dot","aria-hidden":"true"})]}),Ak=[{prop:"top",label:(0,z.__)("Top","ablocks")},{prop:"right",label:(0,z.__)("Right","ablocks")},{prop:"bottom",label:(0,z.__)("Bottom","ablocks")},{prop:"left",label:(0,z.__)("Left","ablocks")}],Lk=["","normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,z.__)("Default","ablocks"),value:t})),Dk=[{label:(0,z.__)("Default","ablocks"),value:""},...iM],Nk=["","auto","isolate"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0, | |
| 2408 | -z.__)("Default","ablocks"),value:t})),Ik=[{label:(0,z.__)("default","ablocks"),value:""},{label:(0,z.__)("pointer","ablocks"),value:"pointer"},{label:(0,z.__)("arrow (default)","ablocks"),value:"default"},{label:(0,z.__)("text","ablocks"),value:"text"},{label:(0,z.__)("move","ablocks"),value:"move"},{label:(0,z.__)("grab","ablocks"),value:"grab"},{label:(0,z.__)("not-allowed","ablocks"),value:"not-allowed"},{label:(0,z.__)("wait","ablocks"),value:"wait"},{label:(0,z.__)("help","ablocks"),value:"help"},{label:(0,z.__)("zoom-in","ablocks"),value:"zoom-in"},{label:(0,z.__)("crosshair","ablocks"),value:"crosshair"}].map(t=>({...t,label:t.label.charAt(0).toUpperCase()+t.label.slice(1)}));function Vk({atomic:t,open:e=!1}){const{sd:i,setState:o}=t,a=i("position")||"",l=a&&"static"!==a;return(0,L.jsxs)(A.PanelBody,{title:Ck(t,(0,z.__)("Position","ablocks"),"position"),initialOpen:e,children:[(0,L.jsx)(uk,{atomic:t,base:"position"}),(0,L.jsx)(ax,{label:(0,z.__)("Position","ablocks"), | |
| 2409 | -children:(0,L.jsx)(Ut,{label:"",attributeValue:a,setAttributes:$x,onChangeHandler:t=>o({position:t}),options:wk})}),"sticky"===a&&(0,L.jsx)("p",{className:"ablocks-field-hint",children:(0,z.__)("Sticky needs an offset below, and it only sticks inside its own parent — a parent that is no taller than this block, or any ancestor with overflow set, gives it nothing to stick against.","ablocks")}),l&&(0,L.jsx)("div",{className:"ablocks-mgrid",children:Ak.map(e=>(0,L.jsx)(ox,{label:e.label,field:{glyph:(0,L.jsx)(JM,{side:e.prop}),...lx(t,e.prop,e.label)}},e.prop))}),(0,L.jsx)(ax,{label:(0,z.__)("Z-index","ablocks"),children:(0,L.jsx)("input",{className:"ablocks-prow__number",type:"number",value:i("zIndex")??"","aria-label":(0,z.__)("Z-index","ablocks"),onChange:t=>o({zIndex:t.target.value})})}),(0,L.jsx)("hr",{className:"ablocks-prule"}),(0,L.jsx)(nx,{atomic:t,label:(0,z.__)("Anchor offset","ablocks"),prop:"anchorOffset"})]})}function Ok({atomic:t,open:e=!1}){ | |
| 2410 | -const{sd:i,setState:o}=t,[l,n]=(0,a.useState)(!1),s=i("opacity"),r=i("mixBlendMode")||"",b=""===s||void 0===s?"":Math.round(100*parseFloat(s)),c=(t,e,a)=>(0,L.jsx)(ax,{label:t,children:(0,L.jsx)(Ut,{label:"",attributeValue:i(e)||"",setAttributes:$x,onChangeHandler:t=>o({[e]:t}),options:a})});return(0,L.jsxs)(A.PanelBody,{title:Ck(t,(0,z.__)("Effects","ablocks"),"effects"),initialOpen:e,children:[c((0,z.__)("Blend mode","ablocks"),"mixBlendMode",Lk),c((0,z.__)("Isolation","ablocks"),"isolation",Nk),""!==r&&"normal"!==r&&(0,L.jsx)("p",{className:"ablocks-field-hint",children:(0,z.__)('A blend mode mixes this element with what is painted behind it. Set Isolation to "isolate" on the parent to keep the mix inside that container.',"ablocks")}),(0,L.jsx)(ax,{label:(0,z.__)("Opacity","ablocks"),children:(0,L.jsx)(ix,{value:b,staticUnit:"%",min:0,max:100,ariaLabel:(0,z.__)("Opacity","ablocks"),onValue:t=>{if(""===t)return void o({opacity:""});const e=Math.min(100,Math.max(0,parseFloat(t)))/100 | |
| 2411 | -;o({opacity:String(parseFloat(e.toFixed(4)))})}})}),c((0,z.__)("Cursor","ablocks"),"cursor",Ik),(0,L.jsx)("hr",{className:"ablocks-prule"}),(0,L.jsx)(Wx,{atomic:t,prop:"boxShadow"}),(0,L.jsx)(Wx,{atomic:t,prop:"transform",action:(0,L.jsx)(A.Dropdown,{open:l,onToggle:n,popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:e})=>(0,L.jsx)(A.Button,{icon:"admin-generic",label:(0,z.__)("Transform origin","ablocks"),showTooltip:!0,"aria-expanded":t,onClick:e}),renderContent:()=>(0,L.jsx)("div",{className:"ablocks-eff__settings",children:(0,L.jsx)(ax,{label:(0,z.__)("Transform origin","ablocks"),children:(0,L.jsx)(Ut,{label:"",attributeValue:i("transformOrigin")||"",setAttributes:$x,onChangeHandler:t=>o({transformOrigin:t}),options:LH})})})})}),(0,L.jsx)(Wx,{atomic:t,prop:"transition"}),""!==t.activeState&&(0,L.jsx)("p",{className:"ablocks-field-hint",children:(0, | |
| 2412 | -z.__)("Transitions set here apply only while this state is active. Add them on Normal so the change eases both ways.","ablocks")}),(0,L.jsx)(Wx,{atomic:t,prop:"filter"}),(0,L.jsx)(Wx,{atomic:t,prop:"backdropFilter"})]})}const Yk=[{key:"desktop",label:(0,z.__)("Hide on desktop","ablocks")},{key:"tablet",label:(0,z.__)("Hide on tablet","ablocks")},{key:"mobile",label:(0,z.__)("Hide on mobile","ablocks")}];function Xk({atomic:t}){const{attributes:e,setAttributes:i}=t,{customCSS:o="",hideOn:a={}}=e;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Responsive visibility","ablocks"),initialOpen:!0,children:[(0,L.jsx)("p",{className:"ablocks-adv-hint",children:(0,z.__)("Hide this block on the chosen devices (front end only).","ablocks")}),Yk.map(t=>(0,L.jsx)(A.ToggleControl,{label:t.label,checked:!!a[t.key],onChange:e=>{return o=t.key,l=e,i({hideOn:{...a,[o]:l}});var o,l},__nextHasNoMarginBottom:!0},t.key))]}),(0,L.jsxs)(A.PanelBody,{title:(0, | |
| 2413 | -z.__)("Custom CSS","ablocks"),initialOpen:!1,children:[(0,L.jsx)(A.TextareaControl,{value:o,onChange:t=>i({customCSS:t}),rows:8,placeholder:"selector {\n color: #006bff;\n}\nselector:hover {\n opacity: .8;\n}",__nextHasNoMarginBottom:!0}),(0,L.jsxs)("p",{className:"ablocks-adv-hint",children:[(0,z.__)("Use","ablocks")," ",(0,L.jsx)("code",{children:"selector"})," ",(0,z.__)("to target this block (or its own class).","ablocks")]})]})]})}function Bk({atomic:t,label:e,target:i,id:o,isLocal:a}){const{activeTarget:n,setActiveTarget:r,removeClass:b,setConvName:c,renameClass:d,duplicateClass:u,activeState:p,setActiveState:m,stateLabel:h,library:g,styles:f}=t,y=a?f:g?.find(t=>t.id===o)?.styles,T=(t=>oH.some(({key:e})=>gH(t,e)))(y),[H,M]=l().useState(!1),[x,k]=l().useState(e),v=l().useRef(null),_=l().useRef(0);l().useEffect(()=>k(e),[e]);const R=()=>{_.current=Date.now(),k(e),M(!0)},S=()=>{d&&d(o,x),M(!1)};return H?(0,L.jsx)("span",{ | |
| 2414 | -className:"ablocks-elc__pill ablocks-elc__pill--editing is-active",children:(0,L.jsx)("input",{type:"text",ref:v,className:"ablocks-elc__pill-input",value:x,size:Math.max(x.length,4),autoFocus:!0,onFocus:t=>t.target.select(),onChange:t=>k(t.target.value),onBlur:()=>{Date.now()-_.current<300?v.current&&v.current.focus():S()},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),S()):"Escape"===t.key&&(t.preventDefault(),k(e),M(!1))}})}):(0,L.jsxs)("span",{className:s()("ablocks-elc__pill",{"ablocks-elc__pill--local":a,"ablocks-elc__pill--global":!a,"is-active":n===i,"has-styles":T}),children:[(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__pill-label",onClick:()=>r(i),onDoubleClick:()=>!a&&R(),children:[a&&(0,L.jsx)("span",{className:"dashicons dashicons-admin-site-alt3 ablocks-elc__pill-globe"}),e]}),n===i&&""!==p&&(0,L.jsxs)("span",{className:s()("ablocks-elc__pill-state",`is-${Gx(p)}`),children:[h,(0,L.jsx)("button",{type:"button",className:"ablocks-elc__pill-state-x", | |
| 2415 | -onClick:t=>{t.stopPropagation(),m("")},title:(0,z.__)("Back to normal","ablocks"),children:(0,L.jsx)("span",{className:"dashicons dashicons-no-alt"})})]}),(0,L.jsx)(A.Dropdown,{className:"ablocks-elc__pillmenu",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:t,onToggle:e})=>(0,L.jsx)("button",{type:"button",className:"ablocks-elc__pill-dots",onClick:e,"aria-expanded":t,title:(0,z.__)("Options","ablocks"),children:(0,L.jsx)("span",{className:"dashicons dashicons-ellipsis"})}),renderContent:({onClose:e})=>(0,L.jsxs)("div",{className:"ablocks-elc__menu",children:[(0,L.jsx)("div",{className:"ablocks-elc__menuhead",children:(0,z.__)("Class","ablocks")}),a?(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{c(""),e()},children:[(0,L.jsx)("span",{className:"dashicons dashicons-migrate ablocks-elc__menuicon"}),(0,L.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,z.__)("Convert to global","ablocks")})]}):(0,L.jsxs)(L.Fragment,{ | |
| 2416 | -children:[(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{R(),e()},children:[(0,L.jsx)("span",{className:"dashicons dashicons-edit ablocks-elc__menuicon"}),(0,L.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,z.__)("Rename","ablocks")})]}),(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{u&&u(o),e()},children:[(0,L.jsx)("span",{className:"dashicons dashicons-admin-page ablocks-elc__menuicon"}),(0,L.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,z.__)("Duplicate","ablocks")})]}),(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem ablocks-elc__menuitem--danger",onClick:()=>{b(o),e()},children:[(0,L.jsx)("span",{className:"dashicons dashicons-no-alt ablocks-elc__menuicon"}),(0,L.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,z.__)("Remove","ablocks")})]})]}),(0,L.jsx)("div",{className:"ablocks-elc__menudiv"}),(0,L.jsx)("div",{className:"ablocks-elc__menuhead", | |
| 2417 | -children:(0,z.__)("States","ablocks")}),oH.map(o=>(0,L.jsxs)("button",{type:"button",className:s()("ablocks-elc__menuitem",{"is-active":p===o.key}),onClick:()=>{r(i),m(o.key),e()},children:[(0,L.jsx)("span",{className:`ablocks-dot ablocks-dot--${Gx(o.key)}`}),(0,L.jsxs)("span",{className:"ablocks-elc__menulabel",children:[o.label,gH(t.currentStyles,o.key)&&(0,L.jsx)("i",{className:"ablocks-elc__menudot","aria-hidden":"true",title:(0,z.__)("Has styles","ablocks")})]}),p===o.key&&(0,L.jsx)("span",{className:"dashicons dashicons-yes ablocks-elc__menucheck"})]},o.key))]})})]})}function Ek({atomic:t,onClose:e}){const{library:i,renameClass:o,deleteGlobalClass:a,selectExisting:n,globalClasses:b}=t,[c,d]=l().useState(""),[u,p]=l().useState(null),[m,h]=l().useState(""),[g,f]=l().useState([]),y=(0,r.useSelect)(t=>{const e={},i=t=>(t||[]).forEach(t=>{(t.attributes?.globalClasses||[]).forEach(t=>{e[t]=(e[t]||0)+1}),i(t.innerBlocks)});return i(t("core/block-editor").getBlocks()),e | |
| 2418 | -},[]),T=c.trim().toLowerCase(),H=i.filter(t=>!T||(t.label||"").toLowerCase().includes(T)||t.id.includes(T)).slice().sort((t,e)=>(t.label||t.id).localeCompare(e.label||e.id)),M=t=>{p(t.id),h(t.label||t.id)},x=t=>{o(t,m),p(null)},k=t=>g.includes(t),v=t=>(y[t]||0)>0,_=g.filter(t=>!v(t)),R=g.filter(v);return(0,L.jsxs)(A.Modal,{title:(0,z.__)("Class manager","ablocks"),onRequestClose:e,className:"ablocks-clm",size:"medium",children:[(0,L.jsx)("p",{className:"ablocks-clm__intro",children:(0,z.__)("Global classes are shared by every block that applies them — editing one here changes all of them.","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-clm__search",children:[(0,L.jsx)("span",{className:"dashicons dashicons-search ablocks-clm__search-icon"}),(0,L.jsx)("input",{type:"text",className:"ablocks-clm__search-input",value:c,autoFocus:!0,placeholder:(0,z.__)("Search classes…","ablocks"),onChange:t=>d(t.target.value)})]}),H.length>0&&(0,L.jsx)("p",{className:"ablocks-clm__count",children:(0, | |
| 2419 | -z.sprintf)(/* translators: %d: number of global classes listed. */ /* translators: %d: number of global classes listed. */ | |
| 2420 | -(0,z._n)("%d class","%d classes",H.length,"ablocks"),H.length)}),g.length>0&&(0,L.jsxs)("div",{className:"ablocks-clm__bulk",children:[(0,L.jsx)("span",{className:"ablocks-clm__bulkcount",children:(0,z.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2421 | -(0,z._n)("%d selected","%d selected",g.length,"ablocks"),g.length)}),R.length>0&&(0,L.jsx)("span",{className:"ablocks-clm__bulknote",children:(0,z.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2422 | -(0,z._n)("%d still in use and will be kept","%d still in use and will be kept",R.length,"ablocks"),R.length)}),(0,L.jsx)("button",{type:"button",className:"ablocks-clm__bulkclear",onClick:()=>f([]),children:(0,z.__)("Clear","ablocks")}),(0,L.jsx)("button",{type:"button",className:"ablocks-clm__bulkdelete",disabled:0===_.length,onClick:()=>{_.length&&window.confirm((0,z.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2423 | -(0,z._n)("Delete %d class? This cannot be undone.","Delete %d classes? This cannot be undone.",_.length,"ablocks"),_.length))&&(_.forEach(t=>a(t)),f(R))},children:(0,z.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2424 | -(0,z._n)("Delete %d","Delete %d",_.length,"ablocks"),_.length)})]}),(0,L.jsxs)("div",{className:"ablocks-clm__list",children:[0===H.length&&(0,L.jsx)("p",{className:"ablocks-clm__empty",children:T?(0,z.__)("No classes match.","ablocks"):(0,z.__)("No global classes yet.","ablocks")}),H.map(t=>(0,L.jsxs)("div",{className:s()("ablocks-clm__row",{"is-applied":b.includes(t.id),"is-picked":k(t.id)}),children:[(0,L.jsx)("input",{type:"checkbox",className:"ablocks-clm__pick",checked:k(t.id),onChange:()=>{return e=t.id,f(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);var e},"aria-label":(0,z.sprintf)(/* translators: %s: class name. */ /* translators: %s: class name. */ | |
| 2425 | -(0,z.__)("Select %s for deletion","ablocks"),t.label||t.id)}),u===t.id?(0,L.jsx)("input",{type:"text",className:"ablocks-clm__rename",value:m,autoFocus:!0,onChange:t=>h(t.target.value),onBlur:()=>x(t.id),onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),x(t.id)):"Escape"===e.key&&p(null)}}):(0,L.jsx)("button",{type:"button",className:"ablocks-clm__name",title:(0,z.__)("Apply to the selected block","ablocks"),onClick:()=>n(t.id),onDoubleClick:()=>M(t),children:(0,L.jsxs)("span",{className:"ablocks-clm__chip",children:[".",oM(t.label||t.id)]})}),b.includes(t.id)&&(0,L.jsx)("span",{className:"ablocks-clm__applied",children:(0,z.__)("Applied","ablocks")}),v(t.id)&&(0,L.jsx)("span",{className:"ablocks-clm__usage",title:(0,z.__)("Still in use, so it cannot be deleted.","ablocks"),children:(0,z.sprintf)(/* translators: %d: number of blocks. */ /* translators: %d: number of blocks. */ | |
| 2426 | -(0,z._n)("%d block","%d blocks",y[t.id],"ablocks"),y[t.id])}),(0,L.jsx)(A.Dropdown,{className:"ablocks-clm__rowmenu",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:e})=>(0,L.jsx)("button",{type:"button",className:"ablocks-elc__pill-dots",onClick:e,"aria-expanded":t,title:(0,z.__)("Options","ablocks"),children:(0,L.jsx)("span",{className:"dashicons dashicons-ellipsis"})}),renderContent:({onClose:e})=>(0,L.jsxs)("div",{className:"ablocks-elc__menu",children:[(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{n(t.id),e()},children:[(0,L.jsx)("span",{className:"dashicons dashicons-plus-alt2 ablocks-elc__menuicon"}),(0,L.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,z.__)("Apply to selection","ablocks")})]}),(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{M(t),e()},children:[(0,L.jsx)("span",{className:"dashicons dashicons-edit ablocks-elc__menuicon"}),(0,L.jsx)("span",{ | |
| 2427 | -className:"ablocks-elc__menulabel",children:(0,z.__)("Rename","ablocks")})]}),(0,L.jsx)("div",{className:"ablocks-elc__menudiv"}),(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem ablocks-elc__menuitem--danger",disabled:v(t.id),title:v(t.id)?(0,z.__)("Still in use, so it cannot be deleted.","ablocks"):void 0,onClick:()=>{v(t.id)||(window.confirm((0,z.__)("Delete this class everywhere? This cannot be undone.","ablocks"))&&a(t.id),e())},children:[(0,L.jsx)("span",{className:"dashicons dashicons-trash ablocks-elc__menuicon"}),(0,L.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,z.__)("Delete","ablocks")})]})]})})]},t.id))]})]})}function Fk({atomic:t}){ | |
| 2428 | -const{globalClasses:e,library:i,activeClassId:o,activeClass:n,newClass:s,setNewClass:r,convName:b,setConvName:c,comboFocus:d,setComboFocus:u,comboMatches:p,comboExact:m,removeClass:h,addClassByName:g,doConvert:f,selectExisting:y,activeDevice:T,stateLabel:H}=t,M=!!s.trim().toLowerCase()&&!m,[x,k]=l().useState(!1),{saving:v}=function(){const[t,e]=(0,a.useState)({saving:wM>0||UM.size>0,failed:[...CM]});return(0,a.useEffect)(()=>(zM.add(e),()=>{zM.delete(e)}),[]),t}();return(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Classes & state","ablocks"),initialOpen:!0,children:(0,L.jsxs)("div",{className:"ablocks-elc",children:[(0,L.jsxs)("div",{className:"ablocks-elc__head",children:[(0,L.jsx)("span",{className:"ablocks-elc__head-label",children:(0,z.__)("Classes","ablocks")}),v&&(0,L.jsx)("span",{className:"ablocks-elc__saving",children:(0,z.__)("Saving…","ablocks")}),(0,L.jsx)("button",{type:"button",className:"ablocks-elc__manage",onClick:()=>k(!0),title:(0,z.__)("Class manager","ablocks"), | |
| 2429 | -children:(0,L.jsx)("span",{className:"dashicons dashicons-open-folder"})})]}),(0,L.jsxs)("div",{className:"ablocks-elc__bar",children:[(0,L.jsx)(Bk,{atomic:t,label:(0,z.__)("local","ablocks"),target:"local",isLocal:!0}),e.map(e=>{const o=i.find(t=>t.id===e);return(0,L.jsx)(Bk,{atomic:t,label:o?.label||e,target:`gc:${e}`,id:e},e)}),(0,L.jsx)("input",{type:"text",className:"ablocks-elc__input",value:s,"aria-label":(0,z.__)("Add class","ablocks"),onChange:t=>r(t.target.value),onFocus:()=>u(!0),onBlur:()=>setTimeout(()=>u(!1),150),onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),p.length?y(p[0].id):M&&g()):"Escape"===t.key?u(!1):"Backspace"===t.key&&""===s&&e.length&&h(e[e.length-1])}})]}),d&&(p.length>0||M)&&(0,L.jsxs)("div",{className:"ablocks-elc__combo",children:[p.length>0&&(0,L.jsx)("div",{className:"ablocks-elc__combohead",children:(0,z.__)("Apply a global class","ablocks")}),p.map(t=>(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__comboitem", | |
| 2430 | -onMouseDown:t=>t.preventDefault(),onClick:()=>y(t.id),children:[(0,L.jsx)("span",{className:"ablocks-elc__combodot"}),(0,L.jsx)("span",{className:"ablocks-elc__comboitemlabel",children:t.label||t.id}),(0,L.jsx)("span",{className:"ablocks-elc__combotag",children:(0,z.__)("global","ablocks")})]},t.id)),M&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ablocks-elc__combohead",children:(0,z.__)("Create a new class","ablocks")}),(0,L.jsxs)("button",{type:"button",className:"ablocks-elc__comboitem ablocks-elc__combocreate",onMouseDown:t=>t.preventDefault(),onClick:g,children:[(0,L.jsx)("span",{className:"ablocks-elc__comboplus",children:(0,L.jsx)("span",{className:"dashicons dashicons-plus-alt2"})}),(0,z.__)("Create","ablocks")," ",`"${s.trim()}"`]})]})]}),null!==b&&(0,L.jsxs)(A.Flex,{gap:2,style:{marginTop:8},children:[(0,L.jsx)(A.FlexItem,{isBlock:!0,children:(0,L.jsx)(A.TextControl,{value:b,onChange:c,placeholder:(0,z.__)("Global class name","ablocks"),onKeyDown:t=>{ | |
| 2431 | -"Enter"===t.key&&(t.preventDefault(),f())},__nextHasNoMarginBottom:!0})}),(0,L.jsx)(A.FlexItem,{children:(0,L.jsx)(A.Button,{variant:"primary",onClick:f,disabled:!(b||"").trim(),children:(0,z.__)("Save","ablocks")})})]}),(0,L.jsx)("p",{className:"ablocks-field-hint",children:o?`${(0,z.__)("Editing","ablocks")} .${n?.label||o} · ${H} · ${T.label}`:`${(0,z.__)("Editing this block","ablocks")} · ${H} · ${T.label}`}),x&&(0,L.jsx)(Ek,{atomic:t,onClose:()=>k(!1)})]})})}function qk({atomic:t}){const{animations:e,setAnimations:i,addAnimation:o,updateAnimation:l,removeAnimation:n,RESPONSIVE_DEVICES:s}=t,[r,b]=(0,a.useState)(null),c=e.length>=10;return(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Interactions","ablocks"),children:[(0,L.jsxs)("div",{className:"ablocks-eff__head",children:[(0,L.jsx)("span",{className:"ablocks-eff__label",children:(0,z.__)("Animations","ablocks")}),e.length>0&&(0,L.jsx)("span",{className:"ablocks-eff__dot","aria-hidden":"true"}),(0,L.jsx)(A.Button,{ | |
| 2432 | -className:"ablocks-eff__add",icon:"plus-alt2",label:c?(0,z.__)("Animation limit reached","ablocks"):(0,z.__)("Add animation","ablocks"),showTooltip:!0,disabled:c,onClick:()=>o()})]}),0===e.length&&(0,L.jsx)("p",{className:"ablocks-anim-empty",children:(0,z.__)("Add one or more animations. Each can run on a page-load, scroll, hover or click trigger, and per breakpoint.","ablocks")}),(0,L.jsx)(Tx,{id:"ablocks-animations",items:e,onReorder:i,getId:t=>t.id,onDragStart:()=>b(null),renderItem:(t,e,i)=>(0,L.jsxs)("div",{className:"ablocks-eff__item",children:[(0,L.jsx)("span",{className:"ablocks-eff__grip",...i,children:(0,L.jsx)("span",{className:"dashicons dashicons-menu"})}),(0,L.jsx)("button",{type:"button",className:"ablocks-eff__summary","aria-expanded":r===t.id,onClick:()=>b(r===t.id?null:t.id),children:HM(t)}),(0,L.jsx)(A.Button,{className:"ablocks-eff__remove",icon:"no-alt",label:(0,z.__)("Remove","ablocks"),showTooltip:!0,onClick:()=>{n(t.id),r===t.id&&b(null)}}),r===t.id&&(0, | |
| 2433 | -L.jsx)(A.Popover,{className:"ablocks-eff__popover",placement:"left-start",offset:8,resize:!0,flip:!0,shift:!0,onClose:()=>b(null),focusOnMount:"firstElement",children:(0,L.jsx)("div",{className:"ablocks-eff__popover-inner ablocks-anim-popover",children:(0,L.jsx)(dx,{anim:t,devices:s,onChange:e=>l(t.id,e)})})})]})})]})}function $k({atomic:t}){const{activeState:e,setActiveState:i}=t;if(""===e)return null;const o=oH.find(t=>t.key===e)?.label||e;return(0,L.jsxs)("div",{className:"ablocks-state-banner",children:[(0,L.jsx)("span",{className:`ablocks-dot ablocks-dot--${Gx(e)}`}),(0,L.jsx)("span",{className:"ablocks-state-banner__text",children:(0,z.sprintf)(/* translators: %s: interaction state name, e.g. Hover. */ /* translators: %s: interaction state name, e.g. Hover. */ | |
| 2434 | -(0,z.__)("Editing the %s state","ablocks"),o)}),(0,L.jsx)(A.Button,{variant:"link",className:"ablocks-state-banner__reset",onClick:()=>i(""),children:(0,z.__)("Back to Normal","ablocks")})]})}const Gk=t=>{const e=String(t).replace(/([A-Z])/g," $1").toLowerCase();return e.charAt(0).toUpperCase()+e.slice(1)};function Zk({atomic:t}){const{activeClass:e,activeClassId:i,shadowedProps:o,clearShadowed:a}=t;if(!i)return null;const l=o();return l.length?(0,L.jsxs)("div",{className:"ablocks-override-banner",children:[(0,L.jsx)("span",{className:"dashicons dashicons-info-outline ablocks-override-banner__icon"}),(0,L.jsx)("span",{className:"ablocks-override-banner__text",children:(0,z.sprintf)(/* translators: 1: global class name, 2: comma-separated style property names. */ /* translators: 1: global class name, 2: comma-separated style property names. */ | |
| 2435 | -(0,z.__)("This block sets %2$s itself, so “%1$s” cannot change it here.","ablocks"),e?.label||i,l.map(Gk).join(", "))}),(0,L.jsx)(A.Button,{variant:"link",className:"ablocks-override-banner__clear",onClick:a,children:(0,z._n)("Clear the block value","Clear the block values",l.length,"ablocks")})]}):null}function Kk({atomic:t,general:e=null,style:i=null,alignValue:o="",defaultDisplay:a="block"}){return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)("div",{className:"ablocks-atomic-panel",children:(0,L.jsx)(A.TabPanel,{className:"ablocks-atomic-tabs ablocks-inspector-tabs",activeClass:"ablocks-inspector-tab__item--active",tabs:[{name:"general",title:(0,z.__)("General","ablocks"),className:"ablocks-inspector-tab__item"},{name:"style",title:(0,z.__)("Style","ablocks"),className:"ablocks-inspector-tab__item"},{name:"advanced",title:(0,z.__)("Advanced","ablocks"),className:"ablocks-inspector-tab__item"}],children:l=>(0,L.jsxs)(L.Fragment,{children:["general"===l.name&&(0, | |
| 2436 | -L.jsx)(L.Fragment,{children:e}),"style"===l.name&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Fk,{atomic:t,alignValue:o}),(0,L.jsx)($k,{atomic:t}),(0,L.jsx)(Zk,{atomic:t}),(0,L.jsx)(jk,{atomic:t,defaultDisplay:a}),i,(0,L.jsx)(Vk,{atomic:t}),(0,L.jsx)(Ok,{atomic:t})]}),"advanced"===l.name&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(qk,{atomic:t}),(0,L.jsx)(Xk,{atomic:t})]})]})})})})}function Jk({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=J(K(l)),h=(t,e,i="")=>oH.map(({key:o})=>{const a=cH(e,m,o),l=nM(a,""===o?i:""),n=sM(a,`${t}${o}`);return(l?`${t}${o}{${l}}`:"")+n}).join("");let g="";if(u.length){const t=new Set(u);let e=t.size;for(const i of a)if(t.has(i.id)&&(g+=i.styles?h(`.ablocks-gc-${i.id}`,i.styles):i.css?`.ablocks-gc-${i.id}{${i.css}}`:"",e-=1,0===e))break}const f=`.ablocks-block-${c}.${i}`;if(g+=h(f,d,o), | |
| 2437 | -""!==n){const t=cH(s,m,n),e=nM(t,"");e&&(g+=`${f}{${e}}`),g+=sM(t,f)}return g+=((t,e,i)=>{if(!Array.isArray(e)||!e.length)return"";let o="";const a={};e.forEach(t=>{const e=fM(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=fM(t);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;}}` | |
| 2438 | -})(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=>TM(e,t)).map(yM).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=MM(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){const e=t=>`${fM(t)} 1000ms linear 0ms 1 both`,a=t=>n.filter(e=>TM(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){ | |
| 2439 | -const a=MM(e.min||0,e.max||0);a&&(o+=`@media screen and ${a}{${t}{animation:${i||"none"};}}`)}})}return o})(f,r,b),p&&p.trim()&&(g+=p.replace(/selector/g,f)),g}const Qk="core/block-editor";function tv(){return document.body.classList.contains("modal-open")}function ev({clientId:t,name:e,isSelected:i,isContainer:o=!1}){const[l,n]=(0,a.useState)(null),[s,r]=(0,a.useState)(!1),b=(0,a.useRef)(),c=(0,a.useMemo)(()=>({show:()=>{clearTimeout(b.current),r(!0)},hide:()=>{clearTimeout(b.current),b.current=setTimeout(()=>r(!1),150)}}),[]);return(0,a.useEffect)(()=>()=>clearTimeout(b.current),[]),{blockProps:(0,a.useMemo)(()=>({ref:n,onMouseOver:()=>c.show(),onMouseOut:()=>c.hide()}),[c]),quickActions:{clientId:t,name:e,anchor:l,isContainer:o,isVisible:!!l&&(s||!!i),onShow:c.show,onHide:c.hide}}}function iv(t){return t.isVisible&&t.anchor?(0,L.jsx)(ov,{...t}):null}function ov({clientId:t,name:e,anchor:i,isContainer:n,onShow:b,onHide:c}){const d=function(){const[t,e]=(0,a.useState)(tv);return(0, | |
| 2440 | -a.useEffect)(()=>{const t=()=>e(tv());t();const i=new window.MutationObserver(t);return i.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>i.disconnect()},[]),t}(),{rootClientId:u,index:p}=(0,r.useSelect)(e=>({rootClientId:e(Qk).getBlockRootClientId(t),index:e(Qk).getBlockIndex(t)}),[t]),{insertBlock:m,removeBlock:h,selectBlock:g,startDraggingBlocks:f,stopDraggingBlocks:y}=(0,r.useDispatch)(Qk),T=!u,H=T||n,M=H?"drag":"edit-two";if(d)return null;const x=(0,L.jsx)("button",{type:"button",className:`ablocks-editor-block-control-button ablocks-editor-block-control-button--${M}`,"aria-label":H?(0,z.__)("Drag block","ablocks"):(0,z.__)("Select block","ablocks"),onClick:()=>g(t),children:(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--${M}`})});return(0,L.jsx)(A.Popover,{anchor:i,placement:"overlay",variant:"unstyled",className:"ablocks-atomic-qa",animate:!1,focusOnMount:!1,flip:!1,resize:!1,children:(0,L.jsx)("div",{className:"ablocks-atomic-qa__host",children:(0, | |
| 2441 | -L.jsx)("div",{className:s()("ablocks-editor-block-control-wrap",{"ablocks-editor-block-control-wrap--root-block":T,"ablocks-editor-block-control-wrap--container-block":n}),children:(0,L.jsxs)("div",{className:"ablocks-editor-block-control-wrap__buttons",onMouseOver:b,onMouseOut:c,onFocus:b,onBlur:c,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,L.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--add","aria-label":(0,z.__)("Add block above","ablocks"),onClick:()=>m((0,o.createBlock)(e),p,u,!0),children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--add" | |
| 2442 | -})}),H?(0,L.jsx)(A.Draggable,{appendToOwnerDocument:!0,__experimentalTransferDataType:"wp-blocks",__experimentalDragComponent:(0,L.jsxs)("div",{className:"ablocks-atomic-qa__drag-chip",children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--drag"}),(0,o.getBlockType)(e)?.title||""]}),transferData:{type:"block",srcClientIds:[t],srcRootClientId:u},onDragStart:()=>f([t]),onDragEnd:()=>y(),children:({onDraggableStart:t,onDraggableEnd:e})=>l().cloneElement(x,{draggable:!0,onDragStart:t,onDragEnd:e})}):x,(0,L.jsx)("button",{type:"button",className:"ablocks-editor-block-control-button ablocks-editor-block-control-button--delete","aria-label":(0,z.__)("Delete block","ablocks"),onClick:()=>h(t),children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete-two"})})]})})})})}const av=()=>{},lv=[{label:"Paragraph (p)",value:"p"},{label:"Heading 1 (h1)",value:"h1"},{label:"Heading 2 (h2)",value:"h2"},{label:"Heading 3 (h3)",value:"h3"},{label:"Heading 4 (h4)",value:"h4"},{ | |
| 2443 | -label:"Heading 5 (h5)",value:"h5"},{label:"Heading 6 (h6)",value:"h6"},{label:"Span",value:"span"},{label:"Div",value:"div"}];function nv({attributes:t,setAttributes:e}){const{tag:i,htmlId:o}=t;return(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Content","ablocks"),children:[(0,L.jsx)(Ut,{label:(0,z.__)("HTML tag","ablocks"),attributeValue:i,setAttributes:av,onChangeHandler:t=>e({tag:t}),options:lv}),(0,L.jsx)(A.TextControl,{label:(0,z.__)("HTML anchor (ID)","ablocks"),value:o||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]})}const sv=(t,e={})=>{const i=((t,e={})=>{const i=[],o=G(),a=sH(t);return o.forEach(o=>{const l=(t=>{const{min:e,max:i}=Z(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 ")}`:""})(o),n=lH(o);oH.forEach(({key:s})=>{let r=[];if(a){const e=rH(t,n,s);Object.keys(e).length&&(r=((t,e)=>{if(e)return t;const i=e=>t.some(([t,i])=>t===e&&""!==i) | |
| 2444 | -;return i("background-color")&&!i("background-image")?[...t,["background-image","unset"]]:t})(aM(e),""===s&&""===n))}if(""===s){const t=((t,e)=>t&&"object"==typeof t&&t["value"+e]||"")(e,o.suffix||"");t&&(r=[...r,["text-align",t]])}const b=lM(r).filter(([,t])=>""!==t&&null!=t).map(([t,e])=>[String(t),String(e)]);b.length&&i.push([l,s,b])})}),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):""},rv={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:{type:"object",default:{type:"",duration:"0.6",delay:"0"}}, | |
| 2445 | -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)(rv.UU)&&(0,o.registerBlockType)(rv.UU,{title:"Atomic Text",attributes:rv.uK,category:rv.L1,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-paragraph"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:a}){const l=qM({attributes:t,setAttributes:e,clientId:i}),{blockProps:n,quickActions:r}=ev({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=Jk({atomic:l,attributes:t,blockClass:h,alignValue:u?.value}),f=(0,C.useBlockProps)({...n,className:s()(`ablocks-block-${b}`,h,"ablocks-in-view","ablocks-anim-active",...p.map(t=>`ablocks-gc-${t}`))});return(0, | |
| 2446 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(C.AlignmentControl,{value:u?.value,onChange:t=>e({alignment:{...u,value:t||""}})})}),(0,L.jsx)(Kk,{atomic:l,alignValue:u?.value,defaultDisplay:"block",general:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(nv,{attributes:t,setAttributes:e}),(0,L.jsx)(Tk,{attributes:t,setAttributes:e})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yk,{atomic:l,open:!0}),(0,L.jsx)(fk,{atomic:l}),(0,L.jsx)(Hk,{atomic:l}),(0,L.jsx)(Mk,{atomic:l}),(0,L.jsx)(xk,{atomic:l})]})}),(0,L.jsx)("style",{children:g}),(0,L.jsx)(iv,{...r}),(0,L.jsx)(C.RichText,{...f,tagName:m,value:d,onChange:t=>e({content:t}),placeholder:(0,z.__)("Type text…","ablocks"),allowedFormats:["core/bold","core/italic","core/link","core/underline","core/text-color"]})]})},save:function({attributes:t}){ | |
| 2447 | -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=xM(r),p=sv(b,c),m=C.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,L.jsx)(C.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,L.jsx)("a",{href:n.url,target:n.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-text__link",children:h})}return h}});const bv={UU:"ablocks/atomic-image",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3}, | |
| 2448 | -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}}}},cv="ablocks-atomic-image",dv=()=>{};(0,M.xV)(bv.UU)&&(0,o.registerBlockType)(bv.UU,{title:"Atomic Image",attributes:bv.uK,category:bv.L1,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-image"}), | |
| 2449 | -edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:a}){const l=qM({attributes:t,setAttributes:e,clientId:i}),{blockProps:n,quickActions:b}=ev({clientId:i,name:o,isSelected:a}),{block_id:c,src:d,alt:u,imageId:p,sizeSlug:m="",globalClasses:h=[]}=t,g=Jk({atomic:l,attributes:t,blockClass:cv}),f=(0,r.useSelect)(t=>p?t(ge.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)})(f)?f:null,T=y?p:0,H=Cd(y?.media_details?.sizes),M=(t,e)=>{if(!e)return"";const i=t?.media_details?.sizes?.[e]||t?.sizes?.[e];return i?.source_url||i?.url||""},x=t=>{const i=M(t,m);e({src:i||t?.url||"",imageId:t?.id||0,alt:t?.alt||u||"",sizeSlug:i?m:""})},k=(0,C.useBlockProps)({...n,className:s()(`ablocks-block-${c}`,cv,"ablocks-in-view","ablocks-anim-active",...h.map(t=>`ablocks-gc-${t}`))}),v=(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Image","ablocks"),children:[(0, | |
| 2450 | -L.jsx)(Mx,{url:d,id:T,onSelect:x,onRemove:()=>e({src:"",imageId:0,sizeSlug:""})}),H.length>0&&(0,L.jsx)(Ut,{label:(0,z.__)("Resolution","ablocks"),attributeValue:m,setAttributes:dv,onChangeHandler:t=>e({sizeSlug:t,src:M(y,t)||y?.source_url||d}),options:[{label:(0,z.__)("Full size","ablocks"),value:""},...H]}),(0,L.jsx)(A.TextControl,{label:(0,z.__)("Alt text","ablocks"),value:u||"",onChange:t=>e({alt:t}),help:(0,z.__)("Leave empty when the image is decorative.","ablocks"),__nextHasNoMarginBottom:!0}),(0,L.jsx)(A.TextControl,{label:(0,z.__)("HTML anchor (ID)","ablocks"),value:t.htmlId||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]}),_=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mk,{atomic:l}),(0,L.jsx)(Hk,{atomic:l}),(0,L.jsx)(xk,{atomic:l})]});return(0,L.jsxs)(L.Fragment,{children:[d&&(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.ToolbarGroup,{children:(0,L.jsx)(C.MediaUploadCheck,{children:(0,L.jsx)(C.MediaUpload,{onSelect:x,allowedTypes:["image"],value:T, | |
| 2451 | -render:({open:t})=>(0,L.jsx)(A.ToolbarButton,{onClick:t,children:(0,z.__)("Replace","ablocks")})})})})}),(0,L.jsx)(Kk,{atomic:l,general:(0,L.jsxs)(L.Fragment,{children:[v,(0,L.jsx)(Tk,{attributes:t,setAttributes:e})]}),style:_}),(0,L.jsx)("style",{children:g}),(0,L.jsx)(iv,{...b}),d?(0,L.jsx)("img",{...k,src:d,alt:u||""}):(0,L.jsx)("div",{...k,children:(0,L.jsx)(C.MediaPlaceholder,{icon:"format-image",labels:{title:(0,z.__)("Atomic Image","ablocks")},onSelect:x,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=xM(r),u=sv(b,c),p=C.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, | |
| 2452 | -"data-ablocks-scroll-start":d.scrollOn?String(d.scrollStart):void 0,"data-ablocks-scroll-end":d.scrollOn?String(d.scrollEnd):void 0}),m=(0,L.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,L.jsx)("a",{href:a.url,target:a.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-image__link",children:m})}return m}});const uv={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",default:[]},htmlId:{type:"string",default:""},animation:{type:"object",default:{type:"", | |
| 2453 | -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}}}},pv="ablocks-atomic-svg",mv=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)(uv.UU)&&(0,o.registerBlockType)(uv.UU,{title:"Atomic SVG",attributes:uv.uK,category:uv.L1,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function({attributes:t,setAttributes:e,clientId:i,name:o,isSelected:l}){const n=qM({attributes:t,setAttributes:e,clientId:i}),{blockProps:r,quickActions:b}=ev({clientId:i,name:o,isSelected:l | |
| 2454 | -}),{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=Jk({atomic:n,attributes:t,blockClass:pv})+(n.resolved("justifyContent")&&!M?`.ablocks-block-${c}.${pv} 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,pv,M),k=(0,C.useBlockProps)({...r,className:s()(`ablocks-block-${c}`,pv,"ablocks-in-view","ablocks-anim-active",...m.map(t=>`ablocks-gc-${t}`))}),v=(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("SVG","ablocks"),children:[(0,L.jsx)(Mx,{url:u,id:p,onSelect:async t=>{const i=t?.url||"";if(i){H(""),y(!0);try{ | |
| 2455 | -const o=await window.fetch(i),a=mv(await o.text());a?e({svgCode:a,svgUrl:i,svgId:t?.id||0}):H((0,z.__)("That file did not contain an <svg> element.","ablocks"))}catch(t){H((0,z.__)("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,z.__)("Select or upload SVG","ablocks")}),f&&(0,L.jsx)(A.Spinner,{}),!!T&&(0,L.jsx)(A.Notice,{status:"warning",isDismissible:!1,children:T}),(0,L.jsx)(A.Button,{variant:"link",onClick:()=>g(!h),"aria-expanded":h,children:h?(0,z.__)("Hide SVG code","ablocks"):(0,z.__)("Edit SVG code","ablocks")}),h&&(0,L.jsx)(A.TextareaControl,{label:(0,z.__)("SVG code","ablocks"),value:d||"",onChange:t=>e({svgCode:mv(t)||t}),rows:8,help:(0,z.__)('Use fill="currentColor" so the colours below apply.',"ablocks"),__nextHasNoMarginBottom:!0}),(0,L.jsx)(A.TextControl,{label:(0,z.__)("HTML anchor (ID)","ablocks"),value:t.htmlId||"",onChange:t=>e({htmlId:t}), | |
| 2456 | -__nextHasNoMarginBottom:!0})]}),_=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(A.PanelBody,{title:Ck(n,(0,z.__)("Color","ablocks"),"color"),initialOpen:!0,children:[(0,L.jsx)(pk,{atomic:n,label:(0,z.__)("Current color","ablocks"),base:"textColor"}),(0,L.jsx)(pk,{atomic:n,label:(0,z.__)("Fill","ablocks"),base:"fill"}),(0,L.jsx)(pk,{atomic:n,label:(0,z.__)("Stroke","ablocks"),base:"stroke"}),(0,L.jsx)(nx,{atomic:n,label:(0,z.__)("Stroke width","ablocks"),prop:"strokeWidth"})]}),(0,L.jsx)(Mk,{atomic:n}),(0,L.jsx)(xk,{atomic:n})]});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kk,{atomic:n,general:(0,L.jsxs)(L.Fragment,{children:[v,(0,L.jsx)(Tk,{attributes:t,setAttributes:e})]}),style:_}),(0,L.jsx)("style",{children:x}),(0,L.jsx)(iv,{...b}),d?(0,L.jsx)("span",{...k,dangerouslySetInnerHTML:{__html:d}}):(0,L.jsx)("span",{...k,style:{padding:20,border:"1px dashed #ccc",color:"#888"},children:(0,z.__)("Select or upload an SVG in the block settings →","ablocks")})]})}, | |
| 2457 | -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=xM(n),d=sv(r,b),u=C.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,L.jsx)("span",{...u,dangerouslySetInnerHTML:{__html:i}});if(o?.url){const t=o.noFollow?"nofollow noopener noreferrer":o.newTab?"noopener noreferrer":void 0;return(0,L.jsx)("a",{href:o.url,target:o.newTab?"_blank":void 0,rel:t,className:"ablocks-atomic-svg__link",children:p})}return p}});const hv={UU:"ablocks/atomic-div",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""}, | |
| 2458 | -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}}}},gv=()=>{},fv=["div","section","article","aside","header","footer","main","nav"].map(t=>({label:t,value:t}));function yv({attributes:t,setAttributes:e}){const{htmlTag:i,htmlId:o}=t;return(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Content","ablocks"),children:[(0,L.jsx)(Ut,{label:(0,z.__)("HTML tag","ablocks"),attributeValue:i||"div",setAttributes:gv,onChangeHandler:t=>e({htmlTag:t}),options:fv}),(0,L.jsx)(A.TextControl,{ | |
| 2459 | -label:(0,z.__)("HTML anchor (ID)","ablocks"),value:o||"",onChange:t=>e({htmlId:t}),__nextHasNoMarginBottom:!0})]})}function Tv({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,z.__)("Row","ablocks"),icon:"direction-row-horizontal",cfg:{direction:"row",children:1}},{key:"column",label:(0,z.__)("Column","ablocks"),icon:"direction-column-vertical",cfg:{direction:"column",children:1}},{key:"c2",label:(0,z.__)("2 columns","ablocks"),icon:"column-2",cfg:{direction:"row",children:2}},{key:"c3",label:(0,z.__)("3 columns","ablocks"),icon:"column-3",cfg:{direction:"row",children:3}},{key:"c4",label:(0,z.__)("4 columns","ablocks"),icon:"column-4",cfg:{direction:"row",children:4}}],d=[{key:"g2",label:(0,z.__)("2 columns","ablocks"),icon:"column-2",cfg:{cols:2,children:2}},{key:"g3",label:(0,z.__)("3 columns","ablocks"),icon:"column-3",cfg:{cols:3,children:3}},{key:"g4", | |
| 2460 | -label:(0,z.__)("4 columns","ablocks"),icon:"column-4",cfg:{cols:4,children:4}},{key:"g6",label:(0,z.__)("6 columns","ablocks"),icon:"column-6",cfg:{cols:6,children:6}}],u=b?d:c;return(0,L.jsxs)("div",{className:"ablocks-layout-picker",children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close ablocks-layout-picker__close",role:"presentation",title:(0,z.__)("Remove block","ablocks"),onClick:()=>s(t)}),(0,L.jsx)("h3",{className:"ablocks-layout-picker__title",children:b?(0,z.__)("Choose a grid to start","ablocks"):(0,z.__)("Choose a layout to start","ablocks")}),(0,L.jsx)("div",{className:"ablocks-layout-picker__grid",children:u.map(a=>(0,L.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:bH(e.styles,"","",{ | |
| 2461 | -...e.styles?.[""]||{},...r})}),s>0&&n(t,Array.from({length:s},()=>(0,o.createBlock)("ablocks/atomic-div")))})(a.cfg),children:[(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--${a.icon}`}),(0,L.jsx)("span",{className:"ablocks-layout-picker__label",children:a.label})]},a.key))}),(0,L.jsx)(A.Button,{variant:"link",className:"ablocks-layout-picker__blank",onClick:l,children:(0,z.__)("Start blank","ablocks")})]})}function Hv({clientId:t,layout:e,cols:i}){const o="grid"===e,a=o?2*Math.max(i,1):0;return(0,L.jsxs)("div",{className:s()("ablocks-atomic-empty",{"ablocks-atomic-empty--grid":o}),children:[o&&(0,L.jsx)("div",{className:"ablocks-atomic-empty__cells",style:{gridTemplateColumns:`repeat(${Math.max(i,1)}, 1fr)`},children:Array.from({length:a}).map((t,e)=>(0,L.jsx)("span",{className:"ablocks-atomic-empty__cell"},e))}),(0,L.jsx)("div",{className:"ablocks-atomic-empty__plus",children:(0,L.jsx)(C.ButtonBlockAppender,{rootClientId:t})})]})}const Mv=t=>{ | |
| 2462 | -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 xv({blockClass:t,layout:e="none"}){return function({attributes:i,setAttributes:o,clientId:l,name:n,isSelected:b}){const c=qM({attributes:i,setAttributes:o,clientId:l}),{blockProps:d,quickActions:u}=ev({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=Jk({atomic:c,attributes:i,blockClass:t,alignValue:g?.value}),k=(0,C.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,C.useInnerBlocksProps)(k,{templateLock:!1,renderAppender:y?void 0:()=>(0,L.jsx)(Hv,{clientId:l,layout:e,cols:Mv(i.styles)})});return(0,L.jsxs)(L.Fragment,{ | |
| 2463 | -children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(C.AlignmentControl,{value:g?.value,onChange:t=>o({alignment:{...g,value:t||""}})})}),(0,L.jsx)(Kk,{atomic:c,alignValue:g?.value,defaultDisplay:"none"===e?"block":e,general:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yv,{attributes:i,setAttributes:o}),(0,L.jsx)(Tk,{attributes:i,setAttributes:o})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yk,{atomic:c}),(0,L.jsx)(fk,{atomic:c}),(0,L.jsx)(Hk,{atomic:c}),(0,L.jsx)(Mk,{atomic:c}),(0,L.jsx)(xk,{atomic:c})]})}),(0,L.jsx)("style",{children:x}),(0,L.jsx)(iv,{...u}),M?(0,L.jsx)(f,{...k,children:(0,L.jsx)(Tv,{clientId:l,attributes:i,setAttributes:o,layout:e,onBlank:()=>H(!0)})}):(0,L.jsx)(f,{...v})]})}}function kv({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=xM(r),p=sv(b,c),m=[];l?.noFollow&&m.push("nofollow"), | |
| 2464 | -l?.newTab&&m.push("noopener","noreferrer");const h=m.length?m.join(" "):void 0,g=C.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=C.useInnerBlocksProps.save(g);return(0,L.jsx)(d,{...f})}}const vv="ablocks-atomic-div";(0,M.xV)(hv.UU)&&(0,o.registerBlockType)(hv.UU,{title:"Atomic Div",attributes:hv.uK,category:hv.L1,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:xv({blockClass:vv,layout:"none"}),save:kv({blockClass:vv})});const _v={UU:"ablocks/atomic-flex",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""}, | |
| 2465 | -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="ablocks-atomic-flex";(0,M.xV)(_v.UU)&&(0,o.registerBlockType)(_v.UU,{title:"Atomic Flex",attributes:_v.uK,category:_v.L1,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:xv({blockClass:Rv,layout:"flex"}),save:kv({blockClass:Rv})});const Sv={UU:"ablocks/atomic-grid",L1:"ablocks-atomic",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:3},htmlTag:{ | |
| 2466 | -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}}}},Wv="ablocks-atomic-grid";(0,M.xV)(Sv.UU)&&(0,o.registerBlockType)(Sv.UU,{title:"Atomic Grid",attributes:Sv.uK,category:Sv.L1,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-container"}),edit:xv({blockClass:Wv,layout:"grid"}),save:kv({blockClass:Wv})});const Uv=t=>{const{note:e="",style:i}=t;return(0,L.jsx)("p",{style:i,className:"ablocks-control-note",children:(0,z.__)(e,"ablocks")})};function Pv(t){ | |
| 2467 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-notification-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Notification","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"heading",attributeValue:o,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"headingTag",attributeValue:a,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:n,setAttributes:i,isInline:!1}),(0,L.jsx)(Ut,{label:(0, | |
| 2468 | -z.__)("Notice Close","ablocks"),options:[{label:(0,z.__)("One Time","ablocks"),value:"oneTime"},{label:(0,z.__)("permanent","ablocks"),value:"permanent"}],isResponsive:!1,attributeValue:m,attributeName:"noticeClose",setAttributes:i}),(0,L.jsx)(Uv,{note:(0,z.__)('Choose "Permanent" to hide the notice permanently after dismissing. Choose "One Time" to hide it only for the current session.',"ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Is Dismissible","ablocks"),attributeValue:p,setAttributes:i,attributeName:"isDismissible"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:c,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:"backgroundColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(gc,{ | |
| 2469 | -label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:r,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:b,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),attributeName:"noticeHeaderPadding",attributeValue:u,setAttributes:i})]})})}),p&&(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}Pv.propTypes={},Pv.defaultProps={};const jv={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", | |
| 2470 | -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:"",blur:"",horizontal:"", | |
| 2471 | -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", | |
| 2309 | +_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-counter"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",XT(i),XT(i,"Tablet"),XT(i,"Mobile"),e(t=>XT(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle .ablocks-block-container",OT(i),OT(i,"Tablet"),OT(i,"Mobile"),e(t=>OT(i,t))), | |
| 2310 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--number:not(.ablocks-has-container), {{WRAPPER}}.ablocks-block--counter--number .ablocks-block-container",YT(i),YT(i,"Tablet"),YT(i,"Mobile"),e(t=>YT(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-counter__content",BT(i),BT(i,"Tablet"),BT(i,"Mobile"),e(t=>BT(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-counter__text",ET(i),ET(i,"Tablet"),ET(i,"Mobile"),e(t=>ET(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--bar .ablocks-bar-counter__background ",(t=>({background:(0,Hs.qD)(t?.barBackgroundColor)}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--bar .ablocks-bar-counter__progress",FT(i),FT(i,"Tablet"),FT(i,"Mobile"),e(t=>FT(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle",qT(i),qT(i,"Tablet"),qT(i,"Mobile"),e(t=>qT(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle .ablocks-circle-counter__background ",(t=>({stroke:(0,Hs.qD)(t?.circleBackgroundColor),...(0,Eb.qD)({ | |
| 2311 | +attributeValue:t?.circleStrokeSize,attributeObjectKey:"value",defaultValue:20,property:"stroke-width"})}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--counter--circle .ablocks-circle-counter__progress",(t=>({stroke:(0,Hs.qD)(t?.circleProgressColor),...(0,Eb.qD)({attributeValue:t?.circleStrokeSize,attributeObjectKey:"value",defaultValue:20,property:"stroke-width"})}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))), | |
| 2312 | +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.counter.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(DT,{...t}),(0,I.jsx)(VT,{...t})]})},save:$T,deprecated:[{attributes:GT.uK,save:ZT}]}),KT.propTypes={};const JT={UU:"ablocks/paragraph",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},paragraph:{type:"string",source:"html",selector:".ablocks-paragraph-text"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},paragraphSize:{type:"string",default:"md"},textColor:{type:"string",default:"#000000"},alignment:{type:"object",default:{value:"left", | |
| 2313 | +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:"",blur:"",horizontal:"",vertical:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0, | |
| 2314 | +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:"", | |
| 2315 | +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:"", | |
| 2316 | +rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none", | |
| 2317 | +backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"", | |
| 2318 | +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:"", | |
| 2319 | +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:"", | |
| 2320 | +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", | |
| 2321 | +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", | |
| 2322 | +default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},QT=[{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 tH(t){const{attributes:e,setAttributes:i,context:o}=t,{block_id:a,paragraph:n,paragraphTag:r,dropCaps:b,paragraphSize:c,alignment:d}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:d,setAttributes:i,options:QT})}),(0,I.jsx)(Yb.A,{blockId:a,name:JT.UU,attributes:e,children:(0,I.jsx)($c,{tagName:r||"p",value:n, | |
| 2323 | +className:s()("ablocks-paragraph-text",`ablocks-paragraph-text-${c}`,{"ablocks-paragraph-text-drop-caps":b}),onChange:t=>i({paragraph:t}),placeholder:(0,L.__)("Add your paragraph text","ablocks"),context:o})})]})}tH.propTypes={};const eH=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),iH=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)}},oH=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)});function aH(t){const{attributes:e}=t,{block_id:i,dropCaps:o,paragraphSize:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:JT.UU,attributes:e,children:(0,I.jsx)(D.RichText.Content,{tagName:"p",className:s()("ablocks-paragraph-text",`ablocks-paragraph-text-${a}`,{"ablocks-paragraph-text-drop-caps":o}),value:e.paragraph})})})}aH.propTypes={};const lH={UU:"ablocks/paragraph",uK:{block_id:{type:"string",default:""}, | |
| 2324 | +paragraph:{type:"string",source:"html",selector:".ablocks-paragraph-text"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},paragraphSize:{type:"string",default:"md"},textColor:{type:"string",default:"#000000"},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:"", | |
| 2325 | +horizontal:"",vertical:""}},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:"",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:"%", | |
| 2326 | +customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 2327 | +isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", | |
| 2328 | +hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 2329 | +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:"", | |
| 2330 | +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:"", | |
| 2331 | +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", | |
| 2332 | +customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean", | |
| 2333 | +default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function nH(t){const{attributes:e}=t,{block_id:i,dropCaps:o,paragraphSize:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:lH.UU,attributes:e,children:(0,I.jsx)(D.RichText.Content,{tagName:"p",className:s()("ablocks-paragraph-text",`ablocks-paragraph-text-${a}`,{"ablocks-paragraph-text-drop-caps":o}),value:e.paragraph})})})}nH.propTypes={},(0,M.xV)(JT.UU)&&(0,o.registerBlockType)(JT.UU,{title:(0,L.__)("paragraph","ablocks"),attributes:JT.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-paragraph"}),edit:function(t){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 | |
| 2334 | +;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}}",eH(i),eH(i,"Tablet"),eH(i,"Mobile"),e(t=>eH(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paragraph-text",iH(i),iH(i,"Tablet"),iH(i,"Mobile"),e(t=>iH(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paragraph-text-drop-caps::first-letter",oH(i),oH(i),oH(i),e(t=>oH(i))),(0,b.applyFilters)("ablocks.paragraph.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(KT,{...t}),(0,I.jsx)(tH,{...t})]})},save:aH,deprecated:[{attributes:lH.uK,save:nH}]});const sH=window.wp.compose,rH="v",bH=[{key:"",label:(0,L.__)("Normal","ablocks")},{key:":hover",label:(0,L.__)("Hover","ablocks")},{key:":focus",label:(0,L.__)("Focus","ablocks")},{ | |
| 2335 | +key:":focus-visible",label:(0,L.__)("Focus (keyboard)","ablocks")},{key:":active",label:(0,L.__)("Active","ablocks")}],cH=t=>String(t).startsWith("@"),dH=t=>{const e=t||{};if(!e.min&&!e.max)return"";const i=String(e.id||"");return"@"+i.charAt(0).toLowerCase()+i.slice(1)},uH=()=>({[rH]:3}),pH=t=>!!t&&"object"==typeof t&&3===Number(t[rH]),mH=(t,e,i)=>{if(!t||"object"!=typeof t)return{};const o=""===e?t:t[e],a=o&&"object"==typeof o?o[i]:null;return a&&"object"==typeof a?a:{}},hH=(t,e,i,o)=>{const a={...t||{},[rH]:3};return""===e?(a[i]=o,a):(a[e]={...a[e]||{},[i]:o},a)},gH=(t,e,i)=>{let o={};return(e||[]).forEach(e=>{const a=mH(t,dH(e),i),l=a.typography?TH(o.typography,a.typography):o.typography,n=a.margin?yH(o.margin,a.margin):o.margin,s=a.padding?yH(o.padding,a.padding):o.padding;o={...o,...a},l&&(o.typography=l),n&&(o.margin=n),s&&(o.padding=s)}),o},fH=t=>{if(!t||"object"!=typeof t)return{};const e=!1!==t.isLinked,i=t.unit||"px",o={};return["top","right","bottom","left"].forEach(a=>{ | |
| 2336 | +const l=e?t.common:t[a];void 0!==l&&""!==l&&(o[a]=l,o[a+"Unit"]=e?i:t[a+"Unit"]||i)}),o},yH=(t,e)=>{const i={...fH(t),...fH(e)};if(Object.keys(i).length)return{isLinked:!1,...i}},TH=(t,e)=>{const i={...t||{}};return Object.keys(e||{}).forEach(t=>{const o=e[t];void 0!==o&&""!==o&&(i[t]=o,/Unit$/.test(t)||`${t}Unit`in e||delete i[`${t}Unit`])}),i},HH=(t,e,i,o,a)=>{for(const l of xH(e,a))for(const e of""===i?[""]:[i,""]){const i=mH(t,l,e)[o];if(void 0!==i&&""!==i)return i}},MH=(t,e,i,o,a)=>{for(const l of xH(e,a))for(const a of""===i?[""]:[i,""]){if(l===e&&a===i)continue;const n=mH(t,l,a)[o];if(vH(n))return n}},xH=(t,e)=>{if(!Array.isArray(e)||!e.length)return""===t?[""]:[t,""];const i=[t];return[...e].reverse().map(dH).forEach(t=>{i.includes(t)||i.push(t)}),i.includes("")||i.push(""),i},kH=t=>"isLinked"===t||"unit"===t||/Unit$/.test(t),vH=t=>null!=t&&""!==t&&!1!==t&&(Array.isArray(t)?t.length>0:"object"!=typeof t||Object.keys(t).some(e=>!kH(e)&&vH(t[e]))),_H=(t,e)=>{ | |
| 2337 | +if(!t||"object"!=typeof t)return!1;const i=t=>!!t&&"object"==typeof t&&Object.keys(t).some(e=>vH(t[e]));return Object.keys(t).some(o=>{if(o===rH)return!1;if(cH(o)){const a=t[o];return!!a&&"object"==typeof a&&i(a[e])}return o===e&&i(t[o])})},RH=(t,e)=>{if(!t||"object"!=typeof t||!e?.length)return!1;const i=t=>!!t&&"object"==typeof t&&e.some(e=>vH(t[e]));return Object.keys(t).some(e=>{if(e===rH)return!1;if(cH(e)){const o=t[e];return!!o&&"object"==typeof o&&Object.keys(o).some(t=>i(o[t]))}return i(t[e])})},SH="ablocksFlexItem",WH={"ablocks/atomic-flex":"flex","ablocks/atomic-grid":"grid"},PH=["flex","inline-flex","grid","inline-grid"],UH=["ablocks/atomic-div","ablocks/atomic-flex","ablocks/atomic-grid","ablocks/atomic-image","ablocks/atomic-svg","ablocks/atomic-text"],jH=[{label:(0,L.__)("Default","ablocks"),value:""},{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Start","ablocks"),value:"flex-start"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0, | |
| 2338 | +L.__)("End","ablocks"),value:"flex-end"},{label:(0,L.__)("Stretch","ablocks"),value:"stretch"},{label:(0,L.__)("Baseline","ablocks"),value:"baseline"}],wH=t=>""!==t&&null!=t,zH=(t={})=>{const e={};return t.alignSelf&&(e.alignSelf=t.alignSelf),wH(t.order)&&(e.order=t.order),wH(t.flexGrow)&&(e.flexGrow=t.flexGrow),wH(t.flexShrink)&&(e.flexShrink=t.flexShrink),t.flexBasis&&(e.flexBasis=t.flexBasis),e};(0,b.addFilter)("blocks.registerBlockType","ablocks/flex-item/attribute",(t,e)=>(UH.includes(e)||!t.attributes||t.attributes[SH]||(t.attributes={...t.attributes,[SH]:{type:"object",default:{}}}),t));const CH=(0,sH.createHigherOrderComponent)(t=>e=>{const{name:i,attributes:o,setAttributes:a,clientId:l,isSelected:n}=e,s=(0,r.useSelect)(t=>{const e=t("core/block-editor"),i=e.getBlockRootClientId(l);if(!i)return!1;const o=e.getBlockName(i),a=e.getBlockAttributes(i)?.styles||{},n=HH(a,"","","display")||WH[o]||"";return PH.includes(n)},[l]);if(UH.includes(i)||!s)return(0,I.jsx)(t,{...e}) | |
| 2339 | +;const b=o[SH]||{},c=t=>a({[SH]:{...b,...t}}),d=(t,e,i)=>(0,I.jsx)(N.TextControl,{label:e,type:"number",value:b[t]??"",onChange:e=>c({[t]:e}),placeholder:i,__nextHasNoMarginBottom:!0});return(0,I.jsxs)(Yt.Fragment,{children:[(0,I.jsx)(t,{...e}),n&&(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)("div",{className:"ablocks-atomic-panel",children:(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Flex item","ablocks"),initialOpen:!1,children:[(0,I.jsx)(N.SelectControl,{label:(0,L.__)("Align self","ablocks"),value:b.alignSelf||"",options:jH,onChange:t=>c({alignSelf:t}),__nextHasNoMarginBottom:!0}),d("order",(0,L.__)("Order","ablocks"),"0"),d("flexGrow",(0,L.__)("Flex grow","ablocks"),"0"),d("flexShrink",(0,L.__)("Flex shrink","ablocks"),"1"),(0,I.jsx)(N.TextControl,{label:(0,L.__)("Flex basis","ablocks"),value:b.flexBasis||"",onChange:t=>c({flexBasis:t}),placeholder:"auto / 50% / 200px",__nextHasNoMarginBottom:!0})]})})})]})},"withFlexItemControls");(0, | |
| 2340 | +b.addFilter)("editor.BlockEdit","ablocks/flex-item/edit",CH);const AH=(0,sH.createHigherOrderComponent)(t=>e=>{const i=e.attributes?.[SH],o=i?zH(i):{};if(UH.includes(e.name)||!Object.keys(o).length)return(0,I.jsx)(t,{...e});const a={...e.wrapperProps,style:{...e.wrapperProps?.style||{},...o}};return(0,I.jsx)(t,{...e,wrapperProps:a})},"withFlexItemWrapper");(0,b.addFilter)("editor.BlockListBlock","ablocks/flex-item/wrapper",AH),(0,b.addFilter)("blocks.getSaveContent.extraProps","ablocks/flex-item/save",(t,e,i)=>{if(UH.includes(e.name))return t;const o=zH(i[SH]);return Object.keys(o).length&&(t.style={...t.style||{},...o}),t});const LH=(0,sH.createHigherOrderComponent)(t=>e=>{if(!UH.includes(e.name))return(0,I.jsx)(t,{...e});const i=(t=>{const e=t?.styles?.[""]||{},i={};return e.alignSelf&&(i.alignSelf=e.alignSelf),wH(e.order)&&(i.order=e.order),wH(e.flexGrow)&&(i.flexGrow=e.flexGrow),wH(e.flexShrink)&&(i.flexShrink=e.flexShrink),e.flexBasis&&(i.flexBasis=e.flexBasis),i})(e.attributes) | |
| 2341 | +;if(!Object.keys(i).length)return(0,I.jsx)(t,{...e});const o={...e.wrapperProps,style:{...e.wrapperProps?.style||{},...i}};return(0,I.jsx)(t,{...e,wrapperProps:o})},"withAtomicFlexItemWrapper");(0,b.addFilter)("editor.BlockListBlock","ablocks/flex-item/atomic-wrapper",LH);const DH=["Top","Right","Bottom","Left"],NH=[["TopLeft","border-top-left-radius"],["TopRight","border-top-right-radius"],["BottomRight","border-bottom-right-radius"],["BottomLeft","border-bottom-left-radius"]],IH=["borderWidth",...DH.map(t=>"borderWidth"+t),"borderStyle","borderColor","borderRadius",...NH.map(([t])=>"borderRadius"+t)],VH=[{prop:"typography",css:"",kind:"typography"},{prop:"textColor",css:"color",kind:"color"},{prop:"backgroundColor",css:"background-color",kind:"color"},{prop:"backgroundGradient",css:"background-image",kind:"scalar"},{prop:"backgroundOverlay",css:"",kind:"overlay"},{prop:"border",css:"",kind:"border"},{prop:"width",css:"width",kind:"range"},{prop:"maxWidth",css:"max-width",kind:"range" | |
| 2342 | +},{prop:"minWidth",css:"min-width",kind:"range"},{prop:"height",css:"height",kind:"range"},{prop:"minHeight",css:"min-height",kind:"range"},{prop:"maxHeight",css:"max-height",kind:"range"},{prop:"aspectRatio",css:"aspect-ratio",kind:"scalar"},{prop:"gap",css:"gap",kind:"range"},{prop:"rowGap",css:"row-gap",kind:"range"},{prop:"columnGap",css:"column-gap",kind:"range"},{prop:"strokeWidth",css:"stroke-width",kind:"range"},{prop:"top",css:"top",kind:"range"},{prop:"right",css:"right",kind:"range"},{prop:"bottom",css:"bottom",kind:"range"},{prop:"left",css:"left",kind:"range"},{prop:"anchorOffset",css:"scroll-margin-top",kind:"range"},{prop:"display",css:"display",kind:"scalar"},{prop:"flexDirection",css:"flex-direction",kind:"scalar"},{prop:"flexWrap",css:"flex-wrap",kind:"scalar"},{prop:"justifyContent",css:"justify-content",kind:"scalar"},{prop:"alignItems",css:"align-items",kind:"scalar"},{prop:"alignContent",css:"align-content",kind:"scalar"},{prop:"gridTemplateColumns", | |
| 2343 | +css:"grid-template-columns",kind:"scalar"},{prop:"gridTemplateRows",css:"grid-template-rows",kind:"scalar"},{prop:"gridAutoFlow",css:"grid-auto-flow",kind:"scalar"},{prop:"gridAutoColumns",css:"grid-auto-columns",kind:"scalar"},{prop:"gridAutoRows",css:"grid-auto-rows",kind:"scalar"},{prop:"flexBasis",css:"flex-basis",kind:"scalar"},{prop:"flexGrow",css:"flex-grow",kind:"scalar"},{prop:"flexShrink",css:"flex-shrink",kind:"scalar"},{prop:"order",css:"order",kind:"scalar"},{prop:"alignSelf",css:"align-self",kind:"scalar"},{prop:"objectFit",css:"object-fit",kind:"scalar"},{prop:"objectPosition",css:"object-position",kind:"scalar"},{prop:"overflow",css:"overflow",kind:"scalar"},{prop:"fill",css:"fill",kind:"scalar"},{prop:"stroke",css:"stroke",kind:"scalar"},{prop:"textAlign",css:"text-align",kind:"scalar"},{prop:"position",css:"position",kind:"scalar"},{prop:"zIndex",css:"z-index",kind:"scalar"},{prop:"transform",css:"transform",kind:"effect"},{prop:"transformOrigin", | |
| 2344 | +css:"transform-origin",kind:"scalar"},{prop:"filter",css:"filter",kind:"effect"},{prop:"backdropFilter",css:"backdrop-filter",kind:"effect"},{prop:"mixBlendMode",css:"mix-blend-mode",kind:"scalar"},{prop:"isolation",css:"isolation",kind:"scalar"},{prop:"opacity",css:"opacity",kind:"scalar"},{prop:"boxShadow",css:"box-shadow",kind:"effect"},{prop:"textShadow",css:"text-shadow",kind:"effect"},{prop:"cursor",css:"cursor",kind:"scalar"},{prop:"transition",css:"transition",kind:"effect"},{prop:"backgroundRepeat",css:"background-repeat",kind:"scalar"},{prop:"backgroundSize",css:"background-size",kind:"scalar"},{prop:"backgroundPosition",css:"background-position",kind:"scalar"},{prop:"backgroundAttachment",css:"background-attachment",kind:"scalar"},{prop:"backgroundClip",css:"background-clip",kind:"clip"},{prop:"padding",css:"padding",kind:"dimensions"},{prop:"margin",css:"margin",kind:"dimensions"}],OH={boxShadow:", ",textShadow:", ",transform:" ",transition:", ",filter:" ", | |
| 2345 | +backdropFilter:" "},YH=(t,e=0)=>{const i=parseFloat(t);return isNaN(i)?e:i},XH=[{label:(0,L.__)("Outset","ablocks"),value:"outset"},{label:(0,L.__)("Inset","ablocks"),value:"inset"}],BH=[{label:(0,L.__)("Move","ablocks"),value:"move"},{label:(0,L.__)("Scale","ablocks"),value:"scale"},{label:(0,L.__)("Rotate","ablocks"),value:"rotate"},{label:(0,L.__)("Skew","ablocks"),value:"skew"},{label:(0,L.__)("Flip","ablocks"),value:"flip"}],EH=(["px","%","em","rem"].map(t=>({label:t.toUpperCase(),value:t})),["","center center","center left","center right","top center","top left","top right","bottom center","bottom left","bottom right"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t}))),FH=[{label:(0,L.__)("Horizontal","ablocks"),value:"x"},{label:(0,L.__)("Vertical","ablocks"),value:"y"},{label:(0,L.__)("Both","ablocks"),value:"xy"}],qH=t=>t.unit||"px",$H=[{label:(0,L.__)("All properties","ablocks"),value:"all"},{label:(0,L.__)("Colors","ablocks"), | |
| 2346 | +value:"color, background-color, border-color"},{label:(0,L.__)("Opacity","ablocks"),value:"opacity"},{label:(0,L.__)("Transform","ablocks"),value:"transform"},{label:(0,L.__)("Filter","ablocks"),value:"filter"},{label:(0,L.__)("Box shadow","ablocks"),value:"box-shadow"}],GH=[{label:(0,L.__)("Ease","ablocks"),value:"ease"},{label:(0,L.__)("Linear","ablocks"),value:"linear"},{label:(0,L.__)("Ease in","ablocks"),value:"ease-in"},{label:(0,L.__)("Ease out","ablocks"),value:"ease-out"},{label:(0,L.__)("Ease in out","ablocks"),value:"ease-in-out"}],ZH=[{label:(0,L.__)("Blur","ablocks"),value:"blur",unit:"px",def:0,max:50},{label:(0,L.__)("Brightness","ablocks"),value:"brightness",unit:"%",def:100,max:200},{label:(0,L.__)("Contrast","ablocks"),value:"contrast",unit:"%",def:100,max:200},{label:(0,L.__)("Saturate","ablocks"),value:"saturate",unit:"%",def:100,max:200},{label:(0,L.__)("Grayscale","ablocks"),value:"grayscale",unit:"%",def:0,max:100},{label:(0,L.__)("Sepia","ablocks"), | |
| 2347 | +value:"sepia",unit:"%",def:0,max:100},{label:(0,L.__)("Invert","ablocks"),value:"invert",unit:"%",def:0,max:100},{label:(0,L.__)("Hue rotate","ablocks"),value:"hue-rotate",unit:"deg",def:0,max:360},{label:(0,L.__)("Opacity","ablocks"),value:"opacity",unit:"%",def:100,max:100}],KH=t=>ZH.find(e=>e.value===t)||ZH[0],JH=()=>({type:"blur",value:0}),QH=t=>{const e=KH(t.type);return`${e.value}(${YH(t.value,e.def)}${e.unit})`},tM=t=>{const e=KH(t.type);return`${e.label}: ${YH(t.value,e.def)}${e.unit}`},eM={boxShadow:{label:(0,L.__)("Box shadow","ablocks"),defaults:()=>({color:"rgba(0, 0, 0, 0.5)",position:"outset",x:0,y:0,blur:10,spread:0}),css:t=>{const e=[`${YH(t.x)}px`,`${YH(t.y)}px`,`${YH(t.blur,10)}px`,`${YH(t.spread)}px`,t.color||"rgba(0, 0, 0, 0.5)"];return("inset"===t.position?"inset ":"")+e.join(" ")},summary:t=>`${"inset"===t.position?(0,L.__)("Inset","ablocks"):(0,L.__)("Outset","ablocks")}: ${YH(t.x)}px ${YH(t.y)}px ${YH(t.blur,10)}px ${YH(t.spread)}px`},textShadow:{label:(0, | |
| 2348 | +L.__)("Text shadow","ablocks"),defaults:()=>({color:"rgba(0, 0, 0, 0.5)",x:0,y:0,blur:4}),css:t=>[`${YH(t.x)}px`,`${YH(t.y)}px`,`${YH(t.blur,4)}px`,t.color||"rgba(0, 0, 0, 0.5)"].join(" "),summary:t=>`${YH(t.x)}px ${YH(t.y)}px ${YH(t.blur,4)}px`},transform:{label:(0,L.__)("Transform","ablocks"),defaults:()=>({type:"move",x:0,y:0,z:0,unit:"px",proportional:!0,axis:"x"}),css:t=>{switch(t.type){case"scale":{const e=YH(t.x,1);return!1!==t.proportional?`scale3d(${e}, ${e}, 1)`:`scale3d(${e}, ${YH(t.y,1)}, ${YH(t.z,1)})`}case"rotate":{const e=[],i=YH(t.x),o=YH(t.y),a=YH(t.z);return i&&e.push(`rotateX(${i}deg)`),o&&e.push(`rotateY(${o}deg)`),a&&e.push(`rotateZ(${a}deg)`),e.join(" ")}case"skew":return`skew(${YH(t.x)}deg, ${YH(t.y)}deg)`;case"flip":{const e=t.axis||"x";return"xy"===e?"scaleX(-1) scaleY(-1)":"y"===e?"scaleY(-1)":"scaleX(-1)"}default:{const e=qH(t);return`translate3d(${YH(t.x)}${e}, ${YH(t.y)}${e}, ${YH(t.z)}px)`}}},summary:t=>{const e=BH.find(e=>e.value===t.type)?.label||(0, | |
| 2349 | +L.__)("Move","ablocks");if("scale"===t.type)return!1!==t.proportional?`${e}: ${YH(t.x,1)}`:`${e}: ${YH(t.x,1)}, ${YH(t.y,1)}, ${YH(t.z,1)}`;if("rotate"===t.type)return`${e}: ${YH(t.x)}°, ${YH(t.y)}°, ${YH(t.z)}°`;if("skew"===t.type)return`${e}: ${YH(t.x)}°, ${YH(t.y)}°`;if("flip"===t.type){const i=FH.find(e=>e.value===(t.axis||"x"))?.label||"";return`${e}: ${i}`}const i=qH(t);return`${e}: ${YH(t.x)}${i}, ${YH(t.y)}${i}, ${YH(t.z)}px`}},transition:{label:(0,L.__)("Transitions","ablocks"),defaults:()=>({property:"all",duration:200,delay:0,easing:"ease"}),css:t=>{const e=[t.property||"all",`${YH(t.duration,200)}ms`,t.easing||"ease"];return YH(t.delay)&&e.push(`${YH(t.delay)}ms`),e.join(" ")},summary:t=>{const e=$H.find(e=>e.value===t.property)?.label||t.property||(0,L.__)("All properties","ablocks");return`${e}: ${YH(t.duration,200)}ms`}},filter:{label:(0,L.__)("Filters","ablocks"),defaults:JH,css:QH,summary:tM},backdropFilter:{label:(0,L.__)("Backdrop filters","ablocks"),defaults:JH, | |
| 2350 | +css:QH,summary:tM}},iM=[{label:(0,L.__)("Image","ablocks"),value:"image"},{label:(0,L.__)("Gradient","ablocks"),value:"gradient"}],oM=[{label:(0,L.__)("Linear","ablocks"),value:"linear"},{label:(0,L.__)("Radial","ablocks"),value:"radial"}],aM=["","auto","cover","contain"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),lM=["","center center","center left","center right","top center","top left","top right","bottom center","bottom left","bottom right"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),nM=["","repeat","no-repeat","repeat-x","repeat-y"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),sM=["","scroll","fixed","local"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),rM={position:"center center",size:"auto",repeat:"repeat",attachment:"scroll"},bM=(t,e=0)=>{const i=parseFloat(t);return isNaN(i)?e:i},cM=t=>{if(!t||"object"!=typeof t)return"";if("image"===t.type)return t.url?`url("${t.url}")`:"" | |
| 2351 | +;const e=`${t.from||"#000000"} ${bM(t.fromStop)}%`,i=`${t.to||"rgba(0, 0, 0, 0)"} ${bM(t.toStop,100)}%`;return"radial"===t.gradientType?`radial-gradient(circle at ${t.radialPosition||"center center"}, ${e}, ${i})`:`linear-gradient(${bM(t.angle,180)}deg, ${e}, ${i})`},dM=["solid","dashed","dotted","double","none"].map(t=>({label:t.charAt(0).toUpperCase()+t.slice(1),value:t})),uM=(["px","%","em","rem","vw","vh"].map(t=>({label:t,value:t})),["px","em","rem","%"].map(t=>({label:t,value:t})),t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")),pM=(t={},e="",i="")=>{const o=[],a=e=>{const i=t[e];return null==i||""===i?"":i},l=e=>{const i=t[e];if(i&&"object"==typeof i){const t=i.value;return null==t||""===t?"":`${t}${i.valueUnit||"px"}`}return"string"==typeof i&&""!==i?i:""};return VH.forEach(({prop:e,css:n,kind:s})=>{switch(s){case"typography":((t={})=>{const e=e=>t[e],i=(e,i)=>t[e]||i,o=[];t.fontFamily&&o.push(["font-family",t.fontFamily]), | |
| 2352 | +t.weight&&o.push(["font-weight",t.weight]),t.transform&&o.push(["text-transform",t.transform]),t.style&&o.push(["font-style",t.style]),t.decoration&&o.push(["text-decoration",t.decoration]);const a=e("fontSize");a&&o.push(["font-size",`${a}${i("fontSizeUnit","px")}`]);const l=e("lineHeight");l&&o.push(["line-height",`${l}${i("lineHeightUnit","px")}`]);const n=e("letterSpacing");n&&o.push(["letter-spacing",`${n}${i("letterSpacingUnit","px")}`]);const s=e("wordSpacing");return s&&o.push(["word-spacing",`${s}${i("wordSpacingUnit","px")}`]),void 0!==t.columns&&""!==t.columns&&o.push(["column-count",String(t.columns)]),t.direction&&o.push(["direction",t.direction]),void 0!==t.strokeWidth&&""!==t.strokeWidth&&o.push(["-webkit-text-stroke-width",`${t.strokeWidth}${i("strokeWidthUnit","px")}`]),t.strokeColor&&o.push(["-webkit-text-stroke-color",t.strokeColor]),o})(t.typography).forEach(t=>o.push(t));break;case"color":{const t=a(e) | |
| 2353 | +;""!==t&&("backgroundColor"===e&&(t=>"string"==typeof t&&(t.startsWith("linear-gradient(")||t.startsWith("radial-gradient(")))(t)?o.push(["background-image",t]):o.push([n,t]));break}case"scalar":{const t=a(e);""!==t&&o.push([n,t]);break}case"range":{const t=l(e);""!==t&&o.push([n,t]);break}case"effect":{const i=((t,e)=>{const i=eM[t];return i?"string"==typeof e?e.trim():Array.isArray(e)&&e.length?e.filter(t=>t&&"object"==typeof t&&!t.disabled).map(t=>i.css(t)).filter(Boolean).join(OH[t]||" "):"":""})(e,t[e]);""!==i&&o.push([n,i]);break}case"overlay":(t=>{if(!Array.isArray(t)||!t.length)return[];const e=t.filter(t=>t&&"object"==typeof t&&!t.disabled).map(t=>({entry:t,image:cM(t)})).filter(t=>""!==t.image);if(!e.length)return[];const i=[["background-image",e.map(t=>t.image).join(", ")]];return[["position","background-position"],["size","background-size"],["repeat","background-repeat"],["attachment","background-attachment"]].forEach(([t,o])=>{const a=e.some(e=>!!e.entry[t]) | |
| 2354 | +;a&&i.push([o,e.map(e=>e.entry[t]||rM[t]).join(", ")])}),i})(t[e]).forEach(t=>o.push(t));break;case"clip":{const t=a(e);""!==t&&(o.push(["-webkit-"+n,t]),o.push([n,t]));break}case"border":(()=>{const t=[],e=l("borderWidth"),o=a("borderStyle"),n=a("borderColor"),s=l("borderRadius"),r=DH.map(t=>[t.toLowerCase(),l("borderWidth"+t)]),b=r.some(([,t])=>""!==t);return""!==e&&t.push(["border-width",e]),r.forEach(([e,i])=>{""!==i&&t.push([`border-${e}-width`,i])}),""!==e||b||""!==n?t.push(["border-style",""!==o?o:i||"solid"]):""!==o&&t.push(["border-style",o]),""!==n&&t.push(["border-color",n]),""!==s&&t.push(["border-radius",s]),NH.forEach(([e,i])=>{const o=l("borderRadius"+e);""!==o&&t.push([i,o])}),t})().forEach(t=>o.push(t));break;case"dimensions":(e=>{const i=t[e];if(!i||"object"!=typeof i||!Object.keys(i).length)return[];const o=(0,c.qD)(i,e,"");return Object.keys(o).map(t=>[t,String(o[t])])})(e).forEach(t=>o.push(t))}}),""!==l("width")&&""===a("flexGrow")&&o.push(["flex-grow","0"]), | |
| 2355 | +""!==l("width")&&""===a("flexBasis")&&o.push(["flex-basis","auto"]),""!==l("width")&&""===l("maxWidth")&&o.push(["max-width","100%"]),""===l("width")&&""===l("maxWidth")||(()=>{const e=t.margin;return!(!e||"object"!=typeof e)&&["common","left","right"].some(t=>void 0!==e[t]&&""!==e[t])})()||o.push(["margin-left","auto"],["margin-right","auto"]),e&&o.push(["text-align",e]),mM(o)},mM=t=>{const e=[],i=new Map;return(t||[]).forEach(([t,o])=>{i.has(t)||e.push(t),i.set(t,o)}),e.map(t=>[t,i.get(t)])},hM=(t={},e="",i="")=>pM(t,e,i).map(([t,e])=>{return`${t}:${i=t,o=e,"auto"!==o||"margin-left"!==i&&"margin-right"!==i?o:"var(--ablocks-center-margin,auto)"}`;var i,o}).join(";"),gM=(t={},e="")=>{const i=t.flexWrap;return"wrap"!==i&&"wrap-reverse"!==i?"":`${e}>:where(.ablocks-atomic-div,.ablocks-atomic-flex,.ablocks-atomic-grid){flex-basis:auto;}`},fM=(t={},e="")=>{let i="";const{display:o,flexDirection:a}=t | |
| 2356 | +;return null!=o&&""!==o&&(i+="flex"===o||"inline-flex"===o?"--ablocks-center-margin:var(--ablocks-column-margin,0);":"--ablocks-center-margin:initial;"),null!=a&&""!==a&&(i+="column"===a||"column-reverse"===a?"--ablocks-column-margin:auto;":"--ablocks-column-margin:initial;"),i?`${e}>*{${i}}:where(${e}>*>*){--ablocks-center-margin:initial;--ablocks-column-margin:initial;}`:""},yM=t=>""===t||null==t||Array.isArray(t)&&0===t.length||t&&"object"==typeof t&&!Array.isArray(t)&&0===Object.keys(t).length,TM=t=>{if(!t||"object"!=typeof t||Array.isArray(t))return t;const e={};return Object.keys(t).forEach(i=>{let o=t[i];o&&"object"==typeof o&&!Array.isArray(o)&&(o=TM(o)),yM(o)||(e[i]=o)}),e},HM=t=>{const e=uH();return Object.keys(t||{}).forEach(i=>{if(i===rH)return;if(cH(i)){const o=t[i];if(!o||"object"!=typeof o)return;const a={};return Object.keys(o).forEach(t=>{const e=TM(o[t]);yM(e)||(a[t]=e)}),void(Object.keys(a).length&&(e[i]=a))}const o=TM(t[i]);yM(o)||(e[i]=o)}),e},MM=[{label:(0, | |
| 2357 | +L.__)("Page load","ablocks"),value:"load"},{label:(0,L.__)("Scroll into view","ablocks"),value:"scrollIn"},{label:(0,L.__)("While scrolling","ablocks"),value:"scrollOn"},{label:(0,L.__)("Hover","ablocks"),value:"hover"},{label:(0,L.__)("Click","ablocks"),value:"click"}],xM=[{label:(0,L.__)("Fade","ablocks"),value:"fade"},{label:(0,L.__)("Slide","ablocks"),value:"slide"},{label:(0,L.__)("Scale","ablocks"),value:"scale"}],kM={easeIn:"cubic-bezier(0.42, 0, 1, 1)",easeOut:"cubic-bezier(0, 0, 0.58, 1)",easeInOut:"cubic-bezier(0.42, 0, 0.58, 1)",backIn:"cubic-bezier(0.36, 0, 0.66, -0.56)",backOut:"cubic-bezier(0.34, 1.56, 0.64, 1)",backInOut:"cubic-bezier(0.68, -0.6, 0.32, 1.6)",linear:"linear"},vM=[{label:(0,L.__)("Ease In","ablocks"),value:"easeIn"},{label:(0,L.__)("Ease Out","ablocks"),value:"easeOut"},{label:(0,L.__)("Ease In Out","ablocks"),value:"easeInOut"},{label:(0,L.__)("Back In","ablocks"),value:"backIn"},{label:(0,L.__)("Back Out","ablocks"),value:"backOut"},{label:(0, | |
| 2358 | +L.__)("Back In Out","ablocks"),value:"backInOut"},{label:(0,L.__)("Linear","ablocks"),value:"linear"}],_M=[{label:"↖",value:"top-left",name:(0,L.__)("Top left","ablocks")},{label:"↑",value:"top",name:(0,L.__)("Top","ablocks")},{label:"↗",value:"top-right",name:(0,L.__)("Top right","ablocks")},{label:"←",value:"left",name:(0,L.__)("Left","ablocks")},{label:"→",value:"right",name:(0,L.__)("Right","ablocks")},{label:"↙",value:"bottom-left",name:(0,L.__)("Bottom left","ablocks")},{label:"↓",value:"bottom",name:(0,L.__)("Bottom","ablocks")},{label:"↘",value:"bottom-right",name:(0,L.__)("Bottom right","ablocks")}],RM=[{label:(0,L.__)("Once","ablocks"),value:""},{label:(0,L.__)("Loop","ablocks"),value:"loop"},{label:(0,L.__)("Times","ablocks"),value:"times"}],SM=t=>{const e=t.effect||"fade",i="out"===t.type?"out":"in";let o=t.direction||"none";return"slide"!==e||t.direction&&""!==t.direction||(o="top"),`ablocks-a-${e}-${i}-${o}`},WM=t=>{ | |
| 2359 | +const e=""!==t.duration&&null!=t.duration?t.duration:600,i=""!==t.delay&&null!=t.delay?t.delay:0,o=kM[t.easing]||kM.easeIn;return`${SM(t)} ${e}ms ${o} ${i}ms ${(t=>{if("loop"===t.repeat)return"infinite";if("times"===t.repeat){const e=parseInt(t.times,10);return e>0?String(e):"1"}return"1"})(t)} both`},PM=(t,e)=>!(t.off&&t.off[e]),UM=t=>{const e={load:(0,L.__)("page load","ablocks"),scrollIn:(0,L.__)("scroll in","ablocks"),scrollOn:(0,L.__)("scroll","ablocks"),hover:(0,L.__)("hover","ablocks"),click:(0,L.__)("click","ablocks")},i=e[t.trigger]||e.load,o="out"===t.type?(0,L.__)("Out","ablocks"):(0,L.__)("In","ablocks");return`${(0,L.__)("On","ablocks")} ${i}: ${(t=>t?t.charAt(0).toUpperCase()+t.slice(1):"")(t.effect||"fade")} ${o}`},jM=(t,e)=>{const i=[];return t>0&&i.push(`(min-width:${t}px)`),e>0&&i.push(`(max-width:${e}px)`),i.join(" and ")},wM=t=>{const e=Array.isArray(t)?t:[],i=e.find(t=>"scrollOn"===t.trigger);return{scroll:e.some(t=>"scrollIn"===t.trigger), | |
| 2360 | +click:e.some(t=>"click"===t.trigger),scrollOn:!!i,scrollStart:i?i.start??85:null,scrollEnd:i?i.end??15:null}};let zM=[],CM=null;const AM=new Set,LM=()=>AM.forEach(t=>t(zM)),DM=new Set,NM=t=>{zM="function"==typeof t?t(zM):t,LM()},IM=new Map;let VM=null,OM=Promise.resolve(),YM=0;const XM=new Set,BM=new Set,EM=()=>{const t={saving:YM>0||IM.size>0,failed:[...BM]};XM.forEach(e=>e(t))},FM=t=>!!t&&t.status>=200&&t.status<300&&!1!==t.data?.success,qM=(t,e)=>{if(e.deleted)return{action:"ablocks/global_classes/delete",id:t};const i={action:"ablocks/global_classes/save",id:t,label:e.label};return e.styles?i.styles=JSON.stringify(e.styles):i.css=e.css||"",i},$M=()=>{if(VM&&(clearTimeout(VM),VM=null),!IM.size)return OM;const t=[...IM.entries()];return IM.clear(),OM=t.reduce((t,[e,i])=>t.then(()=>{if(!IM.has(e))return YM+=1,EM(),((t,e)=>(0,M.In)(qM(t,e)).then(i=>!!FM(i)||new Promise(t=>setTimeout(t,2e3)).then(()=>(0,M.In)(qM(t,e)).then(FM))).catch(()=>!1))(e,i).then(t=>{var o;YM-=1,t?(BM.delete(e), | |
| 2361 | +DM.delete(e)):(BM.add(e),o=(0,L.sprintf)(/* translators: %s: global class name. */ /* translators: %s: global class name. */ | |
| 2362 | +(0,L.__)("“%s” could not be saved — check your connection. Your changes are still here; edit it again to retry.","ablocks"),i.label||e),(0,r.dispatch)("core/notices")?.createErrorNotice?.(o,{id:"ablocks-global-classes-save",type:"snackbar"})),EM()})}),OM),EM(),OM},GM=(t,e)=>{IM.set(t,e),EM(),clearTimeout(VM),VM=setTimeout($M,400)},ZM=t=>{if(!t?.id)return;const{id:e}=t;DM.add(e),NM(i=>{const o=i.findIndex(t=>t.id===e);if(-1===o)return[...i,t];const a=i.slice();return a[o]={...a[o],...t},a}),GM(e,{label:t.label||e,styles:t.styles,css:t.css})};function KM(){const[t,e]=(0,a.useState)(zM);return(0,a.useEffect)(()=>(AM.add(e),CM||(CM=(0,M.In)({action:"ablocks/global_classes/get"}).then(t=>{const e=t?.data?.data;if(Array.isArray(e)){const t=new Set(e.map(t=>t.id));zM=[...e,...zM.filter(e=>DM.has(e.id)&&!t.has(e.id))],LM()}return zM}).catch(()=>zM)),()=>{AM.delete(e)}),[]),[t,NM]}if("undefined"!=typeof window&&window.self===window.top){let t=!1;(0,r.subscribe)(()=>{const e=!!(0, | |
| 2363 | +r.select)("core/editor")?.isSavingPost?.();e&&!t&&IM.size&&$M(),t=e});const e=()=>{IM.size&&window.navigator?.sendBeacon&&(IM.forEach((t,e)=>{const i=new FormData;i.append("security",M.Ie),Object.entries(qM(e,t)).forEach(([t,e])=>i.append(t,e)),window.navigator.sendBeacon(M.$B,i)}),IM.clear())};window.addEventListener("pagehide",e),window.addEventListener("beforeunload",e)}const JM={"ablocks/atomic-flex":"flex","ablocks/atomic-grid":"grid"},QM={},tx={name:"",styles:QM},ex=/(^|\s)ablocks-s-[0-9a-z]+(?=\s|$)/,ix=(t,e)=>{const i=t=>{const i={};return Object.keys(t||{}).forEach(o=>{const a=e.get(o);if(void 0===a)return void(i[o]=t[o]);if(null===a)return;const l=t[o];if(!l||"object"!=typeof l)return;const n={};Object.keys(l).forEach(t=>{a.has(t)||(n[t]=l[t])}),i[o]=n}),i},o={};return Object.keys(t||{}).forEach(e=>{const a=t[e];if(e!==rH&&a&&"object"==typeof a){if(cH(e)){const t={};return Object.keys(a).forEach(e=>{t[e]=i(a[e])}),void(o[e]=t)}o[e]=i(a)}else o[e]=a}),o} | |
| 2364 | +;function ox({attributes:t,setAttributes:e,clientId:i}){const{block_id:o,styles:l={},globalClasses:n=[],animations:s=[]}=t;(0,a.useLayoutEffect)(()=>{o&&o===i||e({block_id:i})},[o,i,e]);const{__unstableMarkNextChangeAsNotPersistent:b}=(0,r.useDispatch)("core/block-editor"),{className:c}=t;(0,a.useLayoutEffect)(()=>{if(!c||!ex.test(c))return;const t=c.split(/\s+/).filter(t=>t&&!ex.test(t)).join(" ");b?.(),e({className:t||void 0})},[c,e,b]);const d=t=>e({animations:t}),[u]=KM(),[p,m]=(0,a.useState)(()=>n.length?`gc:${n[0]}`:"local"),[h,g]=(0,a.useState)(""),[f,y]=(0,a.useState)(""),[T,H]=(0,a.useState)(null),[x,k]=(0,a.useState)(!1),{wpDevice:v,customDevice:_,RESPONSIVE_DEVICES:R}=(0,r.useSelect)(t=>({wpDevice:t("core/edit-post")?.__experimentalGetPreviewDeviceType()||t("core/editor")?.getDeviceType?.()||"Desktop",customDevice:t(M.rb)?.getCustomDevice()||null,RESPONSIVE_DEVICES:t(M.rb)?.getDevices()||[]}),[]),{setCustomDevice:S}=(0,r.useDispatch)(M.rb),W=(0,r.useSelect)(t=>{ | |
| 2365 | +const e=t("core/block-editor"),o=e.getBlockRootClientId(i);return o?{name:e.getBlockName(o),styles:e.getBlockAttributes(o)?.styles||QM}:tx},[i]),P="Desktop"!==v?v:_||"Desktop",U=R.find(t=>t.id===P)||R[0]||{suffix:"",label:"Desktop",id:"Desktop"},j=U.suffix,w=t=>(0,r.dispatch)("core/edit-post")?.__experimentalSetPreviewDeviceType?.(t),z=(0,a.useRef)(!1),C=()=>document.querySelector(".block-editor-iframe__scale-container")||document.querySelector('iframe[name="editor-canvas"]');(0,a.useEffect)(()=>{const t=C();if(!t)return;const e="Desktop"!==P&&!$.includes(P)&&U.width>0,i=setTimeout(()=>{e?(t.style.width=U.width+"px",t.style.maxWidth="100%",t.style.boxSizing="border-box",t.style.margin="0 auto",t.style.transition="width 0.2s ease",z.current=!0):z.current&&(t.style.width="",t.style.maxWidth="",t.style.boxSizing="",t.style.margin="",z.current=!1)},60);return()=>clearTimeout(i)},[P,U.width]),(0,a.useEffect)(()=>()=>{if(z.current){const t=C();t&&(t.style.width="",t.style.maxWidth="", | |
| 2366 | +t.style.boxSizing="",t.style.margin="")}},[]);const A=p.startsWith("gc:")?p.slice(3):null,L=A?u.find(t=>t.id===A):null,D=A?L?.styles:l,N=pH(D)?D:uH(),I=dH(U),V=Q(J(U)),O=HH(W.styles,I,"","display",V)||JM[W.name]||"",Y="flex"===O||"inline-flex"===O,X="grid"===O||"inline-grid"===O,B=Y||X,E=mH(N,I,h),F=E.typography||{},q=((t,e,i,o)=>{const a=[];for(const l of xH(e,o))for(const o of""===i?[""]:[i,""])l===e&&o===i||a.push(mH(t,l,o).typography);return a.reverse().reduce((t,e)=>e?TH(t,e):t,{})})(N,I,h,V),G=t=>{const i={...E};return Object.keys(t||{}).forEach(e=>{const o=t[e],a=E[e],l=o&&"object"==typeof o&&!Array.isArray(o)&&a&&"object"==typeof a&&!Array.isArray(a);i[e]=l?{...a,...o}:o}),(t=>{if(A&&!L)return;const i=HM(hH(N,I,h,t));if(A){ZM({id:A,label:L?.label||A,styles:i});const t=mH(i,I,h),o=(t,e)=>JSON.stringify(t)!==JSON.stringify(e),a=new Map;Z(t).forEach(({prop:e,members:i})=>{const l=E[e],n=t[e];if(null===i)return void(o(l,n)&&a.set(e,null));const s=[...i].filter(t=>o(l?.[t],n?.[t])) | |
| 2367 | +;s.length&&a.set(e,new Set(s))}),a.size&&e({styles:HM(ix(l,a))})}else e({styles:i})})(i)};(0,a.useEffect)(()=>{A&&!n.includes(A)&&(m("local"),g(""))},[A,n]);const Z=(t=mH(N,I,h))=>{if(!A)return[];const e=[];return Object.keys(t).forEach(i=>{const o=t[i],a=HH(l,I,h,i,V);if(!vH(o)||!vH(a))return;if(!o||!a||"object"!=typeof o||"object"!=typeof a||Array.isArray(o)||Array.isArray(a))return void e.push({prop:i,members:null});const n=new Set(Object.keys(o).filter(t=>!kH(t)&&vH(o[t])&&vH(a[t])));n.size&&e.push({prop:i,members:n})}),e},K=t=>e({globalClasses:[...new Set([t,...n])]}),tt=new Set(n),et=f.trim().toLowerCase(),it=u.filter(t=>!tt.has(t.id)).filter(t=>!et||(t.label||"").toLowerCase().includes(et)||t.id.includes(et)).slice(0,8),ot=u.some(t=>(t.label||"").toLowerCase()===et||t.id===et),at=bH.find(t=>t.key===h)?.label||"Normal";return{attributes:t,setAttributes:e,styles:l,currentStyles:N,s:E,t:F,inheritedTypography:q,activeState:h,setActiveState:g,setState:G,setTypography:t=>G({ | |
| 2368 | +typography:{...F,...t}}),sd:t=>E[t],resolved:t=>HH(N,I,h,t,V),inherited:t=>MH(N,I,h,t,V),dimValue:t=>{const e=E[t];return e&&"object"==typeof e?e:{}},inheritedDim:t=>((t,e,i,o,a)=>{const l=[];for(const n of xH(e,a))for(const a of""===i?[""]:[i,""])n===e&&a===i||l.push(mH(t,n,a)[o]);return l.reverse().reduce((t,e)=>e?yH(t,e):t,void 0)||{}})(N,I,h,t,V),bucketKey:I,dev:j,stateLabel:at,shadowedProps:()=>Z().map(t=>t.prop),clearShadowed:()=>{const t=Z();if(!t.length)return;const i=new Map(t.map(t=>[t.prop,t.members]));e({styles:HM(ix(l,i))})},activeDevice:U,activeDeviceId:P,RESPONSIVE_DEVICES:R,pickDevice:t=>{$.includes(t.id)?(S(null),w(t.id)):(w("Desktop"),S(t.id))},parentIsFlex:Y,parentIsGrid:X,parentIsFlexItem:B,library:u,globalClasses:n,activeTarget:p,setActiveTarget:m,activeClassId:A,activeClass:L,newClass:f,setNewClass:y,convName:T,setConvName:H,comboFocus:x,setComboFocus:k,comboMatches:it,comboExact:ot,applyClass:K,removeClass:t=>{e({globalClasses:n.filter(e=>e!==t)}), | |
| 2369 | +p===`gc:${t}`&&m("local")},addClassByName:()=>{const t=f.trim();if(!t)return;const e=uM(t);u.some(t=>t.id===e)||ZM({id:e,label:t,styles:uH()}),K(e),m(`gc:${e}`),g(""),y(""),k(!1)},doConvert:()=>{const t=(T||"").trim();if(!t)return;const i=uM(t),o=u.find(t=>t.id===i);if(o)return K(i),m(`gc:${i}`),void H(null);const a={...uH(),...l};ZM({id:i,label:t,styles:a}),K(i),e({styles:uH()}),m(`gc:${i}`),H(null)},selectExisting:t=>{K(t),m(`gc:${t}`),g(""),y(""),k(!1)},renameClass:(t,e)=>{const i=(e||"").trim(),o=u.find(e=>e.id===t);i&&o&&i!==o.label&&ZM({id:t,label:i,styles:o.styles||uH()})},duplicateClass:t=>{const e=u.find(e=>e.id===t);if(!e)return;const i=`${e.label||t} copy`;let o=uM(i),a=2;for(;u.some(t=>t.id===o);)o=uM(`${i} ${a++}`);const l=e.styles?JSON.parse(JSON.stringify(e.styles)):uH();ZM({id:o,label:i,styles:l}),K(o),m(`gc:${o}`)},deleteGlobalClass:t=>{(t=>{t&&(DM.delete(t),NM(e=>e.filter(e=>e.id!==t)),GM(t,{deleted:!0}))})(t),n.includes(t)&&e({globalClasses:n.filter(e=>e!==t)}), | |
| 2370 | +p===`gc:${t}`&&m("local")},animations:s,setAnimations:d,addAnimation:()=>{const t={id:"a"+Math.random().toString(36).slice(2,8),trigger:"load",effect:"fade",type:"in",direction:"",duration:600,delay:0,easing:"easeIn",repeat:"",times:1,start:85,end:15,off:{}};return d([...s,t]),t.id},updateAnimation:(t,e)=>d(s.map(i=>i.id===t?e:i)),removeAnimation:t=>d(s.filter(e=>e.id!==t)),moveAnimation:(t,e)=>{const i=t+e;if(i<0||i>=s.length)return;const o=[...s];[o[t],o[i]]=[o[i],o[t]],d(o)}}}const ax=["px","%","em","rem","vw","vh"],lx={top:"M3.5 3.5h13",right:"M16.5 3.5v13",bottom:"M3.5 16.5h13",left:"M3.5 3.5v13"},nx={topLeft:"M3.5 9V6a2.5 2.5 0 0 1 2.5-2.5h3",topRight:"M11 3.5h3A2.5 2.5 0 0 1 16.5 6v3",bottomRight:"M16.5 11v3a2.5 2.5 0 0 1-2.5 2.5h-3",bottomLeft:"M9 16.5H6A2.5 2.5 0 0 1 3.5 14v-3"},sx=({d:t})=>(0,I.jsxs)("svg",{className:"ablocks-mfield__glyph",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeLinecap:"round","aria-hidden":"true",focusable:"false",children:[(0, | |
| 2371 | +I.jsx)("path",{d:"M3.5 3.5h13v13h-13z",strokeWidth:"1",opacity:"0.3"}),t&&(0,I.jsx)("path",{d:t,strokeWidth:"2"})]}),rx=({side:t})=>(0,I.jsx)(sx,{d:lx[t]}),bx=({corner:t})=>(0,I.jsx)(sx,{d:nx[t]}),cx=()=>(0,I.jsx)(sx,{});function dx({value:t,onChange:e}){return(0,I.jsx)(N.Dropdown,{className:"ablocks-mfield__unit",popoverProps:{placement:"bottom-end",className:"ablocks-mfield__unit-popover"},renderToggle:({isOpen:e,onToggle:i})=>(0,I.jsx)("button",{type:"button",className:"ablocks-mfield__unit-toggle","aria-expanded":e,"aria-label":(0,L.__)("Unit","ablocks"),onClick:i,children:t}),renderContent:({onClose:i})=>(0,I.jsx)("div",{className:"ablocks-mfield__unit-menu",children:ax.map(o=>(0,I.jsx)("button",{type:"button",className:o===t?"is-active":void 0,onClick:()=>{e(o),i()},children:o},o))})})}function ux({glyph:t=null,value:e,unit:i="px",onValue:o,onUnit:a,ariaLabel:l,staticUnit:n="",noUnit:s=!1,min:r,max:b,step:c,placeholder:d="0"}){return(0,I.jsxs)("div",{className:"ablocks-mfield", | |
| 2372 | +children:[t,(0,I.jsx)("input",{className:"ablocks-mfield__input",type:"number",value:e??"",placeholder:d,min:r,max:b,step:c,"aria-label":l,onChange:t=>o(t.target.value)}),s&&null,!s&&n&&(0,I.jsx)("em",{className:"ablocks-mfield__static-unit",children:n}),!s&&!n&&(0,I.jsx)(dx,{value:i,onChange:a})]})}function px({label:t,dot:e=!1,field:i}){return(0,I.jsxs)("div",{className:"ablocks-mcell",children:[(0,I.jsxs)("span",{className:"ablocks-mcell__label",children:[t,e&&(0,I.jsx)("i",{className:"ablocks-mcell__dot","aria-hidden":"true"})]}),(0,I.jsx)(ux,{...i,ariaLabel:t})]})}function mx({label:t,children:e}){return(0,I.jsxs)("div",{className:"ablocks-prow",children:[(0,I.jsx)("span",{className:"ablocks-prow__label",children:t}),(0,I.jsx)("div",{className:"ablocks-prow__control",children:e})]})}const hx=(t,e,i)=>{const o=t.s?.[e],a=o&&"object"==typeof o?o:{},l=t.resolved?.(e),n=l&&"object"==typeof l?l:{},s=a.valueUnit||n.valueUnit||"px";return{value:a.value,unit:s, | |
| 2373 | +placeholder:void 0===a.value&&void 0!==n.value?String(n.value):"0",ariaLabel:i,onValue:i=>t.setState({[e]:{...a,value:i,valueUnit:s}}),onUnit:i=>t.setState({[e]:{...a,valueUnit:i}})}};function gx({atomic:t,label:e,prop:i,glyph:o=null}){return(0,I.jsx)(mx,{label:e,children:(0,I.jsx)(ux,{glyph:o,...hx(t,i,e)})})}const fx=()=>{},yx=[{value:"in",label:(0,L.__)("In","ablocks")},{value:"out",label:(0,L.__)("Out","ablocks")}],Tx=["top","bottom","left","right"];function Hx({value:t,onChange:e}){const i=(Tx.includes(t)||!t?Tx:[...Tx,t]).map(t=>_M.find(e=>e.value===t)).filter(Boolean).map(t=>({value:t.value,label:t.name,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--glyphtext",children:t.label})}));return(0,I.jsx)(Wb,{label:"",attributeName:"direction",attributeValue:t||"",setAttributes:fx,onChangeHandler:t=>e(t||""),options:i,isResponsive:!1,isInline:!1})}function Mx({anim:t,devices:e,onChange:i}){const o=e=>i({...t,...e}),a=(t,e,i,o)=>(0,I.jsx)(mx,{label:t,children:(0,I.jsx)(Ut,{ | |
| 2374 | +label:"",attributeValue:e,setAttributes:fx,onChangeHandler:o,options:i})}),l=(t,e,i,o)=>(0,I.jsx)(px,{label:t,field:{value:e??i,staticUnit:"MS",min:0,step:50,onValue:o}}),n=(0,I.jsxs)(I.Fragment,{children:[a((0,L.__)("Trigger","ablocks"),t.trigger||"load",MM,t=>o({trigger:t})),a((0,L.__)("Effect","ablocks"),t.effect||"fade",xM,t=>o({effect:t})),(0,I.jsx)(mx,{label:(0,L.__)("Type","ablocks"),children:(0,I.jsx)(Wb,{label:"",attributeName:"type",attributeValue:t.type||"in",setAttributes:fx,onChangeHandler:t=>o({type:t||"in"}),options:yx,isResponsive:!1,isInline:!1})}),(0,I.jsx)(mx,{label:(0,L.__)("Direction","ablocks"),children:(0,I.jsx)(Hx,{value:t.direction||"",onChange:t=>o({direction:t})})}),"scrollOn"===t.trigger?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-mgrid",children:[(0,I.jsx)(px,{label:(0,L.__)("Start","ablocks"),field:{value:t.start??85,staticUnit:"%",onValue:t=>o({start:t})}}),(0,I.jsx)(px,{label:(0,L.__)("End","ablocks"),field:{value:t.end??15, | |
| 2375 | +staticUnit:"%",onValue:t=>o({end:t})}})]}),(0,I.jsx)("p",{className:"ablocks-anim-help",children:(0,L.__)("Viewport percentages where the animation begins and completes.","ablocks")})]}):(0,I.jsxs)(I.Fragment,{children:[a((0,L.__)("Repeat","ablocks"),t.repeat||"",RM,t=>o({repeat:t})),"times"===t.repeat&&(0,I.jsx)(mx,{label:(0,L.__)("Times","ablocks"),children:(0,I.jsx)(ux,{value:t.times??1,noUnit:!0,min:1,ariaLabel:(0,L.__)("Times","ablocks"),onValue:t=>o({times:t})})}),(0,I.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,L.__)("Duration","ablocks"),t.duration,600,t=>o({duration:t})),l((0,L.__)("Delay","ablocks"),t.delay,0,t=>o({delay:t}))]}),a((0,L.__)("Easing","ablocks"),t.easing||"easeIn",vM,t=>o({easing:t}))]})]}),s=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"ablocks-anim-help",children:(0,L.__)("Run this animation on:","ablocks")}),e.map(e=>(0,I.jsx)(N.ToggleControl,{label:e.label,checked:PM(t,e.id),onChange:()=>(e=>{const i={...t.off||{}} | |
| 2376 | +;i[e]?delete i[e]:i[e]=!0,o({off:i})})(e.id),__nextHasNoMarginBottom:!0},e.id))]});return(0,I.jsx)("div",{className:"ablocks-anim-card",children:(0,I.jsx)(N.TabPanel,{className:"ablocks-anim-tabs ablocks-inspector-tabs",activeClass:"ablocks-inspector-tab__item--active",tabs:[{name:"details",title:(0,L.__)("Details","ablocks"),className:"ablocks-inspector-tab__item"},{name:"settings",title:(0,L.__)("Settings","ablocks"),className:"ablocks-inspector-tab__item"}],children:t=>"details"===t.name?n:s})})}const xx=[{prop:"Top",glyph:"top",label:(0,L.__)("Top","ablocks")},{prop:"Right",glyph:"right",label:(0,L.__)("Right","ablocks")},{prop:"Bottom",glyph:"bottom",label:(0,L.__)("Bottom","ablocks")},{prop:"Left",glyph:"left",label:(0,L.__)("Left","ablocks")}],kx=[{prop:"TopLeft",glyph:"topLeft",label:(0,L.__)("Top left","ablocks")},{prop:"TopRight",glyph:"topRight",label:(0,L.__)("Top right","ablocks")},{prop:"BottomLeft",glyph:"bottomLeft",label:(0,L.__)("Bottom left","ablocks")},{ | |
| 2377 | +prop:"BottomRight",glyph:"bottomRight",label:(0,L.__)("Bottom right","ablocks")}],vx=({corners:t=!1})=>(0,I.jsx)("svg",{viewBox:"0 0 20 20",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",focusable:"false",children:t?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("path",{d:"M3.5 7.5V5.5a2 2 0 0 1 2-2h2"}),(0,I.jsx)("path",{d:"M12.5 3.5h2a2 2 0 0 1 2 2v2"}),(0,I.jsx)("path",{d:"M16.5 12.5v2a2 2 0 0 1-2 2h-2"}),(0,I.jsx)("path",{d:"M7.5 16.5h-2a2 2 0 0 1-2-2v-2"})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("path",{d:"M6.5 3.5h10v10",opacity:"0.35"}),(0,I.jsx)("path",{d:"M3.5 6.5h10v10h-10z"})]})}),Rx=t=>!!t&&void 0!==t.value&&""!==t.value;function Sx({label:t,base:e,parts:i,corners:o,read:a,write:l,inherited:n=()=>{},openFor:s,setOpen:r}){const b=i.filter(t=>Rx(a(e+t.prop))),c=s===e,d=(t,i)=>{const o=a(t),s=(t=>(t===e?[n(e)]:[a(e),n(t),n(e)]).find(Rx)||{})(t),r=o.valueUnit||s.valueUnit||"px";return{glyph:i, | |
| 2378 | +value:o.value,unit:r,placeholder:!Rx(o)&&Rx(s)?String(s.value):"0",onValue:e=>l(t,{...o,value:e,valueUnit:r}),onUnit:e=>l(t,{...o,valueUnit:e})}};return(0,I.jsxs)("div",{className:"ablocks-border__row",children:[(0,I.jsx)("span",{className:"ablocks-border__label",children:t}),(0,I.jsx)(ux,{...d(e,(0,I.jsx)(cx,{})),ariaLabel:t}),(0,I.jsx)(N.Button,{className:"ablocks-border__split",isPressed:c||b.length>0,showTooltip:!0,label:o?(0,L.__)("Set corners individually","ablocks"):(0,L.__)("Set sides individually","ablocks"),onClick:()=>r(c?null:e),children:(0,I.jsx)(vx,{corners:o})}),c&&(0,I.jsx)(N.Popover,{className:"ablocks-border__popover",placement:"bottom-end",offset:8,resize:!0,flip:!0,shift:!0,onClose:()=>r(null),focusOnMount:"firstElement",children:(0,I.jsx)("div",{className:"ablocks-mgrid ablocks-border__parts",children:i.map(t=>(0,I.jsx)(px,{label:t.label,dot:Rx(a(e+t.prop)),field:d(e+t.prop,o?(0,I.jsx)(bx,{corner:t.glyph}):(0,I.jsx)(rx,{side:t.glyph}))},t.prop))})})]})} | |
| 2379 | +function Wx({read:t,write:e,inherited:i,openFor:o,setOpen:a}){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Sx,{label:(0,L.__)("Border width","ablocks"),base:"borderWidth",parts:xx,corners:!1,read:t,write:e,inherited:i,openFor:o,setOpen:a}),(0,I.jsx)(Sx,{label:(0,L.__)("Border radius","ablocks"),base:"borderRadius",parts:kx,corners:!0,read:t,write:e,inherited:i,openFor:o,setOpen:a})]})}const Px=(t,e,i)=>{const o=[...t],[a]=o.splice(e,1);return o.splice(i,0,a),o};function Ux({id:t,items:e=[],onReorder:i,renderItem:o,onDragStart:l,getId:n}){const[s,r]=(0,a.useState)(null),[b,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(null),p=()=>{r(null),c(null),u(null)},m=(t,o)=>{const a=t+o;a<0||a>=e.length||i(Px(e,t,a))},h=t=>({role:"button",tabIndex:0,"aria-label":(0,L.__)("Reorder","ablocks"),onMouseDown:()=>r(t),onMouseUp:()=>r(null),onKeyDown:e=>{"ArrowUp"===e.key?(e.preventDefault(),m(t,-1)):"ArrowDown"===e.key&&(e.preventDefault(),m(t,1))}}),g=t=>({draggable:s===t,onDragStart:e=>{ | |
| 2380 | +e.stopPropagation(),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),c(t),l&&l()},onDragOver:e=>{null!==b&&(e.preventDefault(),e.dataTransfer.dropEffect="move",u(t))},onDrop:o=>{var a;o.preventDefault(),o.stopPropagation(),a=t,null!==b&&null!==a&&b!==a&&i(Px(e,b,a)),p()},onDragEnd:t=>{t.stopPropagation(),p()}});return(0,I.jsx)("div",{className:"ablocks-sortable",children:e.map((e,i)=>(0,I.jsx)("div",{className:["ablocks-sortable__item",b===i?"is-dragging":"",d===i&&b!==i?"is-over":""].filter(Boolean).join(" "),...g(i),children:o(e,i,h(i))},((e,i)=>n?`${t}-${n(e,i)}`:`${t}-${i}`)(e,i)))})}const jx=t=>t?decodeURIComponent(String(t).split("/").pop()):"";function wx({label:t,url:e,id:i,onSelect:o,onRemove:a,allowedTypes:l=["image"],placeholder:n=(0,L.__)("Select image","ablocks"),preview:s=!0}){return(0,I.jsxs)("div",{className:"ablocks-media-field",children:[t&&(0,I.jsx)("span",{className:"ablocks-media-field__label",children:t}),(0, | |
| 2381 | +I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:o,allowedTypes:l,value:i,render:({open:t})=>(0,I.jsx)("button",{type:"button",className:"ablocks-media-field__tile",onClick:t,"aria-label":e?jx(e):n,children:e&&s?(0,I.jsx)("img",{src:e,alt:""}):(0,I.jsx)("span",{className:"ablocks-media-field__empty",children:e?jx(e):n})})})}),!!e&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:"ablocks-media-field__name",title:jx(e),children:jx(e)}),(0,I.jsxs)("div",{className:"ablocks-media-field__actions",children:[(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:o,allowedTypes:l,value:i,render:({open:t})=>(0,I.jsx)(N.Button,{variant:"secondary",onClick:t,children:(0,L.__)("Replace","ablocks")})})}),(0,I.jsx)(N.Button,{variant:"tertiary",isDestructive:!0,onClick:a,children:(0,L.__)("Remove","ablocks")})]})]})]})}const zx=()=>{},Cx={...eM,backgroundOverlay:{label:(0,L.__)("Overlay","ablocks"),defaults:()=>({type:"gradient",url:"",imageId:0, | |
| 2382 | +size:"",position:"",repeat:"",attachment:"",gradientType:"linear",angle:180,radialPosition:"",from:"#000000",fromStop:0,to:"rgba(0, 0, 0, 0)",toStop:100}),summary:t=>{if(!t||"object"!=typeof t)return"";if("image"===t.type){if(!t.url)return(0,L.__)("Image: none selected","ablocks");const e=String(t.url).split("/").pop();return`${(0,L.__)("Image","ablocks")}: ${e}`}return`${"radial"===t.gradientType?(0,L.__)("Radial","ablocks"):(0,L.__)("Linear","ablocks")}: ${t.from||"#000000"} → ${t.to||"transparent"}`}}};function Ax({label:t,value:e,onChange:i,attributes:o}){return(0,I.jsx)(mx,{label:t,children:(0,I.jsx)(Ws,{label:"",attributeName:"color",attributeValue:e,setAttributes:zx,onChangeHandler:(t,e)=>i(e||""),resetHandler:()=>i(""),showGlobal:!1,allowGlobalColor:!1,attributes:o})})}function Lx({label:t,value:e,options:i,onChange:o}){return(0,I.jsx)(mx,{label:t,children:(0,I.jsx)(Ut,{label:"",attributeValue:e,setAttributes:zx,onChangeHandler:o,options:i})})} | |
| 2383 | +function Dx({prop:t,entry:e,onChange:i,attributes:o}){const a=t=>i({...e,...t}),l=(t,i,o,l={})=>(0,I.jsx)(px,{label:t,field:{value:e[i],staticUnit:o,onValue:t=>a({[i]:""===t?"":parseFloat(t)}),...l}},i);if("textShadow"===t)return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ax,{label:(0,L.__)("Color","ablocks"),value:e.color,onChange:t=>a({color:t}),attributes:o}),(0,I.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,L.__)("Horizontal","ablocks"),"x","PX"),l((0,L.__)("Vertical","ablocks"),"y","PX"),l((0,L.__)("Blur","ablocks"),"blur","PX")]})]});if("boxShadow"===t)return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ax,{label:(0,L.__)("Color","ablocks"),value:e.color,onChange:t=>a({color:t}),attributes:o}),(0,I.jsx)(Lx,{label:(0,L.__)("Position","ablocks"),value:e.position||"outset",options:XH,onChange:t=>a({position:t})}),(0,I.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,L.__)("Horizontal","ablocks"),"x","PX"),l((0,L.__)("Vertical","ablocks"),"y","PX"),l((0, | |
| 2384 | +L.__)("Blur","ablocks"),"blur","PX"),l((0,L.__)("Spread","ablocks"),"spread","PX")]})]});if("backgroundOverlay"===t){const t="image"===e.type;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Lx,{label:(0,L.__)("Type","ablocks"),value:e.type||"gradient",options:iM,onChange:t=>a({type:t})}),t?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wx,{url:e.url,id:e.imageId,onSelect:t=>a({url:t?.url||"",imageId:t?.id||0}),onRemove:()=>a({url:"",imageId:0}),placeholder:(0,L.__)("Choose image","ablocks")}),(0,I.jsx)(Lx,{label:(0,L.__)("Size","ablocks"),value:e.size||"",options:aM,onChange:t=>a({size:t})}),(0,I.jsx)(Lx,{label:(0,L.__)("Position","ablocks"),value:e.position||"",options:lM,onChange:t=>a({position:t})}),(0,I.jsx)(Lx,{label:(0,L.__)("Repeat","ablocks"),value:e.repeat||"",options:nM,onChange:t=>a({repeat:t})}),(0,I.jsx)(Lx,{label:(0,L.__)("Attachment","ablocks"),value:e.attachment||"",options:sM,onChange:t=>a({attachment:t})})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Lx,{label:(0, | |
| 2385 | +L.__)("Gradient","ablocks"),value:e.gradientType||"linear",options:oM,onChange:t=>a({gradientType:t})}),(0,I.jsx)(Ax,{label:(0,L.__)("From","ablocks"),value:e.from,onChange:t=>a({from:t||"#000000"}),attributes:o}),(0,I.jsx)(Ax,{label:(0,L.__)("To","ablocks"),value:e.to,onChange:t=>a({to:t||"rgba(0, 0, 0, 0)"}),attributes:o}),(0,I.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,L.__)("From stop","ablocks"),"fromStop","%"),l((0,L.__)("To stop","ablocks"),"toStop","%"),"radial"!==e.gradientType&&l((0,L.__)("Angle","ablocks"),"angle","DEG")]}),"radial"===e.gradientType&&(0,I.jsx)(Lx,{label:(0,L.__)("Center","ablocks"),value:e.radialPosition||"",options:lM,onChange:t=>a({radialPosition:t})})]})]})}if("transform"===t){const t=e.type||"move",i="move"===t,o="scale"===t,n="rotate"===t,s="skew"===t,r="flip"===t,b=!1!==e.proportional,c=(t,i)=>(0,I.jsx)(px,{label:t,field:{value:e[i],unit:e.unit||"px",onValue:t=>a({[i]:""===t?"":parseFloat(t)}),onUnit:t=>a({unit:t})}},i);let d=null | |
| 2386 | +;return(n||s)&&(d="DEG"),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Lx,{label:(0,L.__)("Type","ablocks"),value:t,options:BH,onChange:t=>a({type:t})}),r&&(0,I.jsx)(Lx,{label:(0,L.__)("Axis","ablocks"),value:e.axis||"x",options:FH,onChange:t=>a({axis:t})}),o&&(0,I.jsx)(mx,{label:(0,L.__)("Proportional","ablocks"),children:(0,I.jsx)(N.ToggleControl,{label:"",checked:b,onChange:t=>a({proportional:t}),__nextHasNoMarginBottom:!0})}),!r&&(0,I.jsxs)("div",{className:"ablocks-mgrid",children:[i&&c("X","x"),i&&c("Y","y"),i&&l("Z","z","PX",{unit:"px"}),o&&l(b?(0,L.__)("Scale","ablocks"):"X","x","",{noUnit:!0,step:.1}),o&&!b&&l("Y","y","",{noUnit:!0,step:.1}),o&&!b&&l("Z","z","",{noUnit:!0,step:.1}),(n||s)&&l("X","x",d),(n||s)&&l("Y","y",d),n&&l("Z","z",d)]})]})}if("transition"===t)return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Lx,{label:(0,L.__)("Property","ablocks"),value:e.property||"all",options:$H,onChange:t=>a({property:t})}),(0,I.jsx)(Lx,{label:(0,L.__)("Easing","ablocks"), | |
| 2387 | +value:e.easing||"ease",options:GH,onChange:t=>a({easing:t})}),(0,I.jsxs)("div",{className:"ablocks-mgrid",children:[l((0,L.__)("Duration","ablocks"),"duration","MS",{step:50}),l((0,L.__)("Delay","ablocks"),"delay","MS",{step:50})]})]});const n=KH(e.type);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Lx,{label:(0,L.__)("Type","ablocks"),value:e.type||"blur",options:ZH.map(t=>({label:t.label,value:t.value})),onChange:t=>a({type:t,value:KH(t).def})}),(0,I.jsx)(mx,{label:(0,L.__)("Amount","ablocks"),children:(0,I.jsx)(ux,{value:e.value,staticUnit:n.unit.toUpperCase(),ariaLabel:(0,L.__)("Amount","ablocks"),onValue:t=>a({value:""===t?"":parseFloat(t)})})})]})}function Nx({atomic:t,prop:e,action:i=null}){const{sd:o,setState:l,attributes:n}=t,[r,b]=(0,a.useState)(null),c=Cx[e],d=o(e),u=Array.isArray(d)?d:[],p=t=>l({[e]:t.length?t:""}),m="filter"===e||"backdropFilter"===e,h=(t,e)=>p(u.map((i,o)=>o===t?e:i));return(0,I.jsxs)("div",{className:"ablocks-eff",children:[(0,I.jsxs)("div",{ | |
| 2388 | +className:"ablocks-eff__head",children:[(0,I.jsx)("span",{className:"ablocks-eff__label",children:c.label}),u.length>0&&(0,I.jsx)("span",{className:"ablocks-eff__dot","aria-hidden":"true"}),i&&(0,I.jsx)("span",{className:"ablocks-eff__action",children:i}),(0,I.jsx)(N.Button,{className:"ablocks-eff__add",icon:"plus-alt2",label:(0,L.__)("Add","ablocks"),showTooltip:!0,onClick:()=>{p([...u,c.defaults()])}})]}),(0,I.jsx)(Ux,{id:`ablocks-eff-${e}`,items:u,onReorder:p,onDragStart:()=>b(null),renderItem:(t,i,o)=>(0,I.jsxs)("div",{className:s()("ablocks-eff__item",{"ablocks-eff__item--disabled":t.disabled}),children:[(0,I.jsx)("span",{className:"ablocks-eff__grip",...o,"aria-label":(0,L.__)("Reorder","ablocks"),children:(0,I.jsx)("span",{className:"dashicons dashicons-menu"})}),(0,I.jsx)("button",{type:"button",className:"ablocks-eff__summary",onClick:()=>b(r===i?null:i),children:c.summary(t)}),(0,I.jsx)(N.Button,{className:"ablocks-eff__toggle",icon:(0,I.jsx)("span",{ | |
| 2389 | +className:"ablocks-icon ablocks-icon--"+(t.disabled?"eye-slash":"eye")}),label:t.disabled?(0,L.__)("Enable","ablocks"):(0,L.__)("Disable","ablocks"),showTooltip:!0,onClick:()=>(t=>h(t,{...u[t],disabled:!u[t].disabled}))(i)}),m&&(0,I.jsx)(N.Button,{className:"ablocks-eff__duplicate",icon:"admin-page",label:(0,L.__)("Duplicate","ablocks"),showTooltip:!0,onClick:()=>(t=>{p([...u.slice(0,t+1),{...u[t]},...u.slice(t+1)]),b(null)})(i)}),(0,I.jsx)(N.Button,{className:"ablocks-eff__remove",icon:"no-alt",label:(0,L.__)("Remove","ablocks"),showTooltip:!0,onClick:()=>(t=>{p(u.filter((e,i)=>i!==t)),b(null)})(i)}),r===i&&(0,I.jsx)(N.Popover,{className:"ablocks-eff__popover",placement:"left-start",offset:8,resize:!0,flip:!0,shift:!0,onClose:()=>{document.body.classList.contains("modal-open")||b(null)},focusOnMount:"firstElement",children:(0,I.jsx)("div",{className:"ablocks-eff__popover-inner",children:(0,I.jsx)(Dx,{prop:e,entry:t,attributes:n,onChange:t=>h(i,t)})})})]})})]})}const Ix=()=>{},Vx=[{ | |
| 2390 | +prop:"width",label:(0,L.__)("Width","ablocks")},{prop:"height",label:(0,L.__)("Height","ablocks")},{prop:"minWidth",label:(0,L.__)("Min width","ablocks")},{prop:"minHeight",label:(0,L.__)("Min height","ablocks")},{prop:"maxWidth",label:(0,L.__)("Max width","ablocks")},{prop:"maxHeight",label:(0,L.__)("Max height","ablocks")}],Ox=[{value:"visible",label:(0,L.__)("Visible","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--eye"})},{value:"hidden",label:(0,L.__)("Hidden","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--eye-slash"})},{value:"auto",label:(0,L.__)("Auto (scroll)","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--mouse-scroll"})}],Yx=["","1 / 1","4 / 3","3 / 2","16 / 9","21 / 9","3 / 4","2 / 3","9 / 16"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),Xx=["","fill","contain","cover","none","scale-down"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,L.__)("Default","ablocks"),value:t | |
| 2391 | +})),Bx=["","center center","center left","center right","top center","top left","top right","bottom center","bottom left","bottom right"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,L.__)("Default","ablocks"),value:t}));function Ex({atomic:t,height:e=!0}){const{sd:i,setState:o}=t,[l,n]=(0,a.useState)(!1),s=e?Vx:Vx.filter(t=>!t.prop.toLowerCase().includes("height")),r=(t,e,a)=>(0,I.jsx)(mx,{label:t,children:(0,I.jsx)(Ut,{label:"",attributeValue:i(e)||"",setAttributes:Ix,onChangeHandler:t=>o({[e]:t}),options:a})});return(0,I.jsxs)("div",{className:"ablocks-size",children:[(0,I.jsx)("div",{className:"ablocks-mgrid",children:s.map(e=>(0,I.jsxs)("div",{className:"ablocks-mcell",children:[(0,I.jsx)("span",{className:"ablocks-mcell__label",children:e.label}),(0,I.jsx)(ux,{...hx(t,e.prop,e.label)})]},e.prop))}),(0,I.jsx)("hr",{className:"ablocks-prule"}),(0,I.jsx)(mx,{label:(0,L.__)("Overflow","ablocks"),children:(0,I.jsx)(Wb,{label:"",attributeName:"overflow", | |
| 2392 | +attributeValue:i("overflow")||"",setAttributes:Ix,onChangeHandler:t=>o({overflow:t||""}),options:Ox,isResponsive:!1,isInline:!1})}),(0,I.jsx)(N.Button,{className:"ablocks-showmore",icon:l?"arrow-up-alt2":"arrow-down-alt2",iconPosition:"right",onClick:()=>n(!l),"aria-expanded":l,children:l?(0,L.__)("Show less","ablocks"):(0,L.__)("Show more","ablocks")}),l&&(0,I.jsxs)(I.Fragment,{children:[r((0,L.__)("Aspect ratio","ablocks"),"aspectRatio",Yx),r((0,L.__)("Object fit","ablocks"),"objectFit",Xx),r((0,L.__)("Object position","ablocks"),"objectPosition",Bx)]})]})}const Fx=()=>{},qx=(t,e="")=>(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--glyphtext ${e}`.trim(),children:t}),$x=qx("—"),Gx=[{value:"",label:(0,L.__)("None","ablocks"),icon:$x},{value:"underline",label:(0,L.__)("Underline","ablocks"),icon:qx("A","is-underline")},{value:"overline",label:(0,L.__)("Overline","ablocks"),icon:qx("A","is-overline")},{value:"line-through",label:(0,L.__)("Line through","ablocks"), | |
| 2393 | +icon:qx("A","is-strike")}],Zx=[{value:"",label:(0,L.__)("None","ablocks"),icon:$x},{value:"capitalize",label:(0,L.__)("Capitalize","ablocks"),icon:qx("Aa")},{value:"uppercase",label:(0,L.__)("Uppercase","ablocks"),icon:qx("AA")},{value:"lowercase",label:(0,L.__)("Lowercase","ablocks"),icon:qx("aa")}],Kx=[{value:"ltr",label:(0,L.__)("Left to right","ablocks"),icon:qx("¶")},{value:"rtl",label:(0,L.__)("Right to left","ablocks"),icon:qx("¶","is-flipped")}],Jx=[{value:"",label:(0,L.__)("Normal","ablocks"),icon:$x},{value:"italic",label:(0,L.__)("Italic","ablocks"),icon:qx("I","is-italic")}],Qx=[{value:"left",label:(0,L.__)("Left","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-left"})},{value:"center",label:(0,L.__)("Center","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center"})},{value:"right",label:(0,L.__)("Right","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-right"})},{value:"justify", | |
| 2394 | +label:(0,L.__)("Justify","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify"})}];function tk({label:t,children:e}){return(0,I.jsxs)("div",{className:"ablocks-prow",children:[(0,I.jsx)("span",{className:"ablocks-prow__label",children:t}),(0,I.jsx)("div",{className:"ablocks-prow__control",children:e})]})}function ek({atomic:t}){const{t:e,sd:i,resolved:o,setState:l,setTypography:n,attributes:s,bucketKey:r,activeState:b}=t,[c,d]=(0,a.useState)(!1),u=""===r&&""===b?{}:t.inheritedTypography||{},p=t=>null!=t&&""!==t,m=t=>p(e[t])?e[t]:u[t],h=t=>p(i(t))?i(t):o?.(t),g=Object.keys(u).some(t=>!/Unit$/.test(t)&&p(u[t])&&!p(e[t]))||!p(i("textAlign"))&&p(h("textAlign"))||!p(i("textColor"))&&p(h("textColor")),[f,y]=(0,a.useState)([]),[T,H]=(0,a.useState)({});(0,a.useEffect)(()=>{let t=!0;return(0,Rc.TE)().then(e=>{t&&e&&(y(e.families||[]),H(e.fontVariants||{}))}),()=>{t=!1}},[]);const M=m("fontFamily"),x=T[M]?.variants?.length>0?[{label:(0,L.__)("Default","ablocks"), | |
| 2395 | +value:""},...T[M].variants.filter(t=>/^\d+$/.test(t)).map(t=>({label:t,value:t}))]:U.Wy,k=(t,i)=>{const o=p(e[t]),a=e[i]||(o?"":u[i])||"px";return{value:e[t],unit:a,placeholder:!o&&p(u[t])?String(u[t]):"0",onValue:o=>n({[t]:o,...p(o)&&!e[i]&&"px"!==a?{[i]:a}:{}}),onUnit:t=>n({[i]:t}),ariaLabel:t}},v=(t,e,i,o)=>(0,I.jsx)(tk,{label:t,children:(0,I.jsx)(Wb,{label:"",attributeName:t,attributeValue:e||"",setAttributes:Fx,onChangeHandler:t=>o(t||""),options:i,isResponsive:!1,isInline:!1})}),_=p(m("strokeWidth"))||!!m("strokeColor"),[R,S]=(0,a.useState)(!1);return(0,I.jsxs)("div",{className:"ablocks-typo",children:[g&&(0,I.jsx)("p",{className:"ablocks-field-hint",children:(0,L.__)("Showing values inherited from a wider breakpoint or state. A change here applies to this one only.","ablocks")}),(0,I.jsx)(tk,{label:(0,L.__)("Font family","ablocks"),children:(0,I.jsx)(Ut,{label:"",attributeValue:M||"",setAttributes:Fx,onChangeHandler:t=>n({fontFamily:t}),options:[{label:(0, | |
| 2396 | +L.__)("Default","ablocks"),value:""},..._c,...f],isSearch:!0})}),(0,I.jsx)(tk,{label:(0,L.__)("Font weight","ablocks"),children:(0,I.jsx)(Ut,{label:"",attributeValue:m("weight")||"",setAttributes:Fx,onChangeHandler:t=>n({weight:t}),options:x})}),(0,I.jsx)(tk,{label:(0,L.__)("Font size","ablocks"),children:(0,I.jsx)(ux,{...k("fontSize","fontSizeUnit")})}),(0,I.jsx)("hr",{className:"ablocks-prule"}),v((0,L.__)("Text align","ablocks"),h("textAlign"),Qx,t=>l({textAlign:t})),(0,I.jsx)(tk,{label:(0,L.__)("Text color","ablocks"),children:(0,I.jsx)(Ws,{label:"",attributeName:"textColor",attributeValue:h("textColor"),setAttributes:Fx,onChangeHandler:(t,e)=>l({textColor:e||""}),resetHandler:()=>l({textColor:""}),showGlobal:!1,allowGlobalColor:!1,attributes:s})}),(0,I.jsx)(N.Button,{className:"ablocks-showmore",icon:c?"arrow-up-alt2":"arrow-down-alt2",iconPosition:"right",onClick:()=>d(!c),"aria-expanded":c,children:c?(0,L.__)("Show less","ablocks"):(0,L.__)("Show more","ablocks")}),c&&(0, | |
| 2397 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(tk,{label:(0,L.__)("Line height","ablocks"),children:(0,I.jsx)(ux,{...k("lineHeight","lineHeightUnit")})}),(0,I.jsx)(tk,{label:(0,L.__)("Letter spacing","ablocks"),children:(0,I.jsx)(ux,{...k("letterSpacing","letterSpacingUnit")})}),(0,I.jsx)(tk,{label:(0,L.__)("Word spacing","ablocks"),children:(0,I.jsx)(ux,{...k("wordSpacing","wordSpacingUnit")})}),(0,I.jsx)(tk,{label:(0,L.__)("Columns","ablocks"),children:(0,I.jsx)("input",{className:"ablocks-prow__number",type:"number",min:"1",value:e.columns??"",placeholder:p(u.columns)?String(u.columns):"1","aria-label":(0,L.__)("Columns","ablocks"),onChange:t=>n({columns:t.target.value})})}),(0,I.jsx)("hr",{className:"ablocks-prule"}),v((0,L.__)("Line decoration","ablocks"),m("decoration"),Gx,t=>n({decoration:t})),v((0,L.__)("Text transform","ablocks"),m("transform"),Zx,t=>n({transform:t})),v((0,L.__)("Direction","ablocks"),m("direction"),Kx,t=>n({direction:t})),v((0, | |
| 2398 | +L.__)("Font style","ablocks"),m("style"),Jx,t=>n({style:t})),(0,I.jsxs)("div",{className:"ablocks-prow",children:[(0,I.jsx)("span",{className:"ablocks-prow__label",children:(0,L.__)("Text stroke","ablocks")}),(0,I.jsx)(N.Button,{className:"ablocks-prow__add",icon:_||R?"minus":"plus-alt2",label:_||R?(0,L.__)("Remove text stroke","ablocks"):(0,L.__)("Add text stroke","ablocks"),showTooltip:!0,onClick:()=>{if(_||R)return S(!1),void n({strokeWidth:"",strokeColor:""});S(!0)}})]}),(_||R)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(tk,{label:(0,L.__)("Stroke width","ablocks"),children:(0,I.jsx)(ux,{...k("strokeWidth","strokeWidthUnit")})}),(0,I.jsx)(tk,{label:(0,L.__)("Stroke color","ablocks"),children:(0,I.jsx)(Ws,{label:"",attributeName:"strokeColor",attributeValue:m("strokeColor"),setAttributes:Fx,onChangeHandler:(t,e)=>n({strokeColor:e||""}),resetHandler:()=>n({strokeColor:""}),showGlobal:!1,allowGlobalColor:!1,attributes:s})})]}),(0,I.jsx)(Nx,{atomic:t,prop:"textShadow"})]})]})} | |
| 2399 | +const ik=[{key:"top",label:(0,L.__)("Top","ablocks")},{key:"right",label:(0,L.__)("Right","ablocks")},{key:"bottom",label:(0,L.__)("Bottom","ablocks")},{key:"left",label:(0,L.__)("Left","ablocks")}];function ok({label:t,value:e={},inherited:i={},onChange:o}){const a=!1!==e.isLinked,l=i.topUnit||i.rightUnit||i.bottomUnit||i.leftUnit||"px",n=e.unit||l,s=t=>o({...e,...t}),r=t=>a?e.common:e[t],b=t=>{const e=i[t];return void 0!==e&&""!==e?String(e):"0"};return(0,I.jsxs)("div",{className:"ablocks-spacing",children:[(0,I.jsxs)("div",{className:"ablocks-spacing__head",children:[(0,I.jsx)("span",{className:"ablocks-spacing__title",children:t}),(0,I.jsx)(N.Button,{className:"ablocks-spacing__link",icon:a?"admin-links":"editor-unlink",isPressed:a,showTooltip:!0,label:a?(0,L.__)("Edit sides separately","ablocks"):(0,L.__)("Link all sides","ablocks"),onClick:()=>{if(a){const t=e.common??"";return void s({isLinked:!1,top:t,right:t,bottom:t,left:t})} | |
| 2400 | +const t=ik.map(t=>e[t.key]).find(t=>void 0!==t&&""!==t);s({isLinked:!0,common:t??""})}})]}),(0,I.jsx)("div",{className:"ablocks-mgrid",children:ik.map(t=>{return(0,I.jsx)(px,{label:t.label,dot:void 0!==r(t.key)&&""!==r(t.key),field:{glyph:(0,I.jsx)(rx,{side:t.key}),value:r(t.key),unit:(o=t.key,a?n:e[o+"Unit"]||i[o+"Unit"]||n),placeholder:b(t.key),onValue:e=>((t,e)=>s(a?{common:e}:{[t]:e}))(t.key,e),onUnit:e=>((t,e)=>s(a?{unit:e}:{[t+"Unit"]:e}))(t.key,e)}},t.key);var o})})]})}const ak=()=>{},lk=t=>""===t?"normal":String(t).slice(1),nk=(["","block","flex","inline-flex","grid","inline-grid","inline-block","inline","none"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),["","row","row-reverse","column","column-reverse"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),["","nowrap","wrap","wrap-reverse"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),["","flex-start","center","flex-end","space-between","space-around","space-evenly"].map(t=>({label:t||(0, | |
| 2401 | +L.__)("default","ablocks"),value:t})),["","stretch","flex-start","center","flex-end","baseline"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t})),["","row","column","row dense","column dense"].map(t=>({label:t||(0,L.__)("default","ablocks"),value:t}))),sk=t=>(0,I.jsx)("span",{className:`ablocks-icon ablocks-icon--${t}`}),rk=[{value:"row",label:(0,L.__)("Row","ablocks"),icon:sk("direction-row-horizontal")},{value:"column",label:(0,L.__)("Column","ablocks"),icon:sk("direction-column-vertical")},{value:"row-reverse",label:(0,L.__)("Row reversed","ablocks"),icon:sk("direction-row-reversed")},{value:"column-reverse",label:(0,L.__)("Column reversed","ablocks"),icon:sk("direction-column-reversed")}],bk=[{value:"flex-start",label:(0,L.__)("Start","ablocks"),icon:sk("justify-start")},{value:"center",label:(0,L.__)("Center","ablocks"),icon:sk("justify-Center")},{value:"flex-end",label:(0,L.__)("End","ablocks"),icon:sk("justify-end")},{value:"space-between",label:(0, | |
| 2402 | +L.__)("Space between","ablocks"),icon:sk("justify-spacebetween")},{value:"space-around",label:(0,L.__)("Space around","ablocks"),icon:sk("justify-spacearound")},{value:"space-evenly",label:(0,L.__)("Space evenly","ablocks"),icon:sk("justify-spaceevenly")}],ck=[{value:"flex-start",label:(0,L.__)("Start","ablocks"),icon:sk("align-start")},{value:"center",label:(0,L.__)("Center","ablocks"),icon:sk("align-center")},{value:"flex-end",label:(0,L.__)("End","ablocks"),icon:sk("align-end")},{value:"stretch",label:(0,L.__)("Stretch","ablocks"),icon:sk("align-stretch")}],dk=[{value:"nowrap",label:(0,L.__)("No wrap","ablocks"),icon:sk("no-wrap")},{value:"wrap",label:(0,L.__)("Wrap","ablocks"),icon:sk("wrap")}],uk=t=>(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--inline-svg",children:(0,I.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:t.split("|").map((t,e)=>(0, | |
| 2403 | +I.jsx)("path",{d:t},e))})}),pk="M3 4.5v11|M17 4.5v11",mk=uk(`${pk}|M9.5 10H5.5|M7.5 8 5.5 10l2 2|M10.5 10h4|M12.5 8 14.5 10l-2 2`),hk=uk(`${pk}|M5 10h4.5|M7.5 8 9.5 10l-2 2|M15 10h-4.5|M12.5 8 10.5 10l2 2`),gk="-99999",fk="99999",yk=[{value:"first",label:(0,L.__)("First","ablocks"),icon:sk("arrow-up")},{value:"last",label:(0,L.__)("Last","ablocks"),icon:sk("arrow-down")},{value:"custom",label:(0,L.__)("Custom","ablocks"),icon:sk("edit")}],Tk=[{value:"grow",label:(0,L.__)("Grow","ablocks"),icon:mk},{value:"shrink",label:(0,L.__)("Shrink","ablocks"),icon:hk},{value:"custom",label:(0,L.__)("Custom","ablocks"),icon:sk("edit")}],Hk=[{value:"auto",label:(0,L.__)("Auto","ablocks"),icon:sk("justify")},{value:"flex-start",label:(0,L.__)("Start","ablocks"),icon:sk("align-start")},{value:"center",label:(0,L.__)("Center","ablocks"),icon:sk("align-center")},{value:"flex-end",label:(0,L.__)("End","ablocks"),icon:sk("align-end")},{value:"stretch",label:(0,L.__)("Stretch","ablocks"), | |
| 2404 | +icon:sk("align-stretch")}],Mk=t=>null!=t&&""!==t&&("object"!=typeof t||Object.keys(t).some(e=>""!==t[e]&&void 0!==t[e]&&null!==t[e]));function xk({atomic:t,base:e,swatch:i=!1}){const{sd:o,resolved:a,bucketKey:l,activeState:n}=t;if(""===l&&""===n)return null;if(Mk(o(e)))return null;const s=a?a(e):void 0;return Mk(s)?(0,I.jsxs)("span",{className:"ablocks-elc__inherited",children:[(0,L.__)("Inherited","ablocks"),"object"!=typeof s&&i&&(0,I.jsx)("i",{className:"ablocks-elc__inherited-swatch",style:{background:String(s)},"aria-hidden":"true"}),"object"!=typeof s&&(0,I.jsx)("code",{children:String(s)})]}):null}function kk({atomic:t,label:e,base:i,isGradient:o=!1,inline:a=!1}){const{sd:l,setState:n,attributes:r,inherited:b}=t,c=l(i),d=a&&!Mk(c)?b?.(i):void 0,u=(0,I.jsx)(Ws,{label:e,isGradient:o,attributeName:i,attributeValue:void 0!==d?d:c,setAttributes:ak,onChangeHandler:(t,e)=>n({[i]:e||""}),resetHandler:()=>n({[i]:""}),showGlobal:!1,allowGlobalColor:!1,attributes:r});return a?(0, | |
| 2405 | +I.jsx)("div",{className:s()({"ablocks-elc__inherited-control":void 0!==d}),children:u}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xk,{atomic:t,base:i,swatch:!0}),u]})}function vk({atomic:t,label:e,base:i,options:o,inline:a=!1}){const{sd:l,setState:n,resolved:s}=t,r=l(i),b=a&&!r&&!!s?.(i);return(0,I.jsxs)(I.Fragment,{children:[!a&&(0,I.jsx)(xk,{atomic:t,base:i}),(0,I.jsx)(Ut,{label:e,className:b?"ablocks-elc__inherited-control":"",attributeValue:r||s?.(i)||"",setAttributes:ak,onChangeHandler:t=>n({[i]:t}),options:o})]})}function _k({atomic:t,label:e,base:i,options:o,fallback:a=""}){const{sd:l,setState:n,resolved:s}=t;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xk,{atomic:t,base:i}),(0,I.jsx)(Wb,{label:e,attributeName:i,attributeValue:l(i)||s?.(i)||a,setAttributes:ak,onChangeHandler:t=>n({[i]:t||""}),options:o,isResponsive:!1,isInline:!0})]})}const Rk=["","border-box","padding-box","content-box","text"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0, | |
| 2406 | +L.__)("Default","ablocks"),value:t}));function Sk({atomic:t,open:e=!1}){const{sd:i,setState:o}=t,a=i("backgroundGradient")||"",l=i("backgroundClip")||"";return(0,I.jsxs)(N.PanelBody,{title:Bk(t,(0,L.__)("Background","ablocks"),"background"),initialOpen:e,children:[(0,I.jsx)(Nx,{atomic:t,prop:"backgroundOverlay"}),(0,I.jsx)(kk,{atomic:t,label:(0,L.__)("Color","ablocks"),base:"backgroundColor",isGradient:!0}),(0,I.jsx)(vk,{atomic:t,label:(0,L.__)("Clipping","ablocks"),base:"backgroundClip",options:Rk}),"text"===l&&(0,I.jsx)("p",{className:"ablocks-field-hint",children:(0,L.__)("Clipping to text only shows once the text colour is transparent.","ablocks")}),""!==a&&(0,I.jsx)(N.TextControl,{label:(0,L.__)("Gradient / image (CSS)","ablocks"),value:a,onChange:t=>o({backgroundGradient:t}),placeholder:"linear-gradient(…)",help:(0,L.__)("Legacy raw CSS value. Any overlay layer above replaces it.","ablocks"),__nextHasNoMarginBottom:!0})]})}function Wk({atomic:t,open:e=!1}){return(0, | |
| 2407 | +I.jsx)(N.PanelBody,{title:Bk(t,(0,L.__)("Typography","ablocks"),"typography"),initialOpen:e,children:(0,I.jsx)(ek,{atomic:t})})}function Pk({attributes:t,setAttributes:e,open:i=!1}){const{link:o={}}=t,a=t=>e({link:{...o,...t}});return(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Link","ablocks"),initialOpen:i,children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("URL","ablocks"),value:o.url||"",onChange:t=>a({url:t}),placeholder:"https://…",__nextHasNoMarginBottom:!0}),!!o.url&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.ToggleControl,{label:(0,L.__)("Open in new tab","ablocks"),checked:!!o.newTab,onChange:t=>a({newTab:t}),__nextHasNoMarginBottom:!0}),(0,I.jsx)(N.ToggleControl,{label:(0,L.__)("Add nofollow","ablocks"),checked:!!o.noFollow,onChange:t=>a({noFollow:t}),__nextHasNoMarginBottom:!0})]})]})}function Uk({atomic:t,open:e=!1}){ | |
| 2408 | +const{sd:i,setState:o,resolved:l,inherited:n}=t,s=l("borderWidth"),r="double"===l("borderStyle")&&s&&"object"==typeof s&&""!==s.value&&void 0!==s.value&&"px"===(s.valueUnit||"px")&&parseFloat(s.value)<3,[b,c]=(0,a.useState)(null);return(0,I.jsxs)(N.PanelBody,{title:Bk(t,(0,L.__)("Border","ablocks"),"border"),initialOpen:e,children:[(0,I.jsx)(Wx,{read:t=>{const e=i(t);return e&&"object"==typeof e?e:{}},write:(t,e)=>o({[t]:e}),inherited:n,openFor:b,setOpen:c}),(0,I.jsx)(kk,{atomic:t,label:(0,L.__)("Border color","ablocks"),base:"borderColor",inline:!0}),(0,I.jsx)(vk,{atomic:t,label:(0,L.__)("Border type","ablocks"),base:"borderStyle",options:qk,inline:!0}),r&&(0,I.jsx)("p",{className:"ablocks-field-hint",children:(0,L.__)("A double border needs a width of at least 3px to draw two lines.","ablocks")})]})}function jk({atomic:t,open:e=!1,height:i=!0}){return(0,I.jsx)(N.PanelBody,{title:Bk(t,(0,L.__)("Size","ablocks"),"size"),initialOpen:e,children:(0,I.jsx)(Ex,{atomic:t,height:i})})} | |
| 2409 | +function wk({atomic:t,open:e=!1}){const{dimValue:i,inheritedDim:o,setState:a}=t,l=(e,l)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xk,{atomic:t,base:e}),(0,I.jsx)(ok,{label:l,value:i(e),inherited:o(e),onChange:t=>a({[e]:t})})]});return(0,I.jsxs)(N.PanelBody,{title:Bk(t,(0,L.__)("Spacing","ablocks"),"spacing"),initialOpen:e,children:[l("margin",(0,L.__)("Margin","ablocks")),l("padding",(0,L.__)("Padding","ablocks"))]})}const zk=[{value:"block",label:(0,L.__)("Block","ablocks")},{value:"flex",label:(0,L.__)("Flex","ablocks")},{value:"grid",label:(0,L.__)("Grid","ablocks")},{value:"none",label:(0,L.__)("None","ablocks")}],Ck=[{value:"inline-block",label:(0,L.__)("Inline-block","ablocks")},{value:"inline-flex",label:(0,L.__)("Inline-flex","ablocks")},{value:"inline-grid",label:(0,L.__)("Inline-grid","ablocks")}];function Ak({value:t,onChange:e}){const i=Ck.find(e=>e.value===t),o=i?[...zk,i]:zk;return(0,I.jsxs)("div",{className:"ablocks-display-toggle",children:[(0,I.jsx)("span",{ | |
| 2410 | +className:"ablocks-display-toggle__label",children:(0,L.__)("Display","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-display-toggle__row",children:[(0,I.jsx)(Wb,{label:"",attributeName:"display",attributeValue:t,setAttributes:ak,onChangeHandler:t=>e(t||""),options:o,isResponsive:!1,isInline:!1}),(0,I.jsx)(N.Dropdown,{className:"ablocks-display-toggle__more",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:e})=>(0,I.jsx)(N.Button,{icon:"arrow-down-alt2",label:(0,L.__)("More displays","ablocks"),showTooltip:!0,"aria-expanded":t,onClick:e}),renderContent:({onClose:i})=>(0,I.jsx)("div",{className:"ablocks-display-toggle__menu",children:Ck.map(o=>(0,I.jsx)(N.Button,{variant:t===o.value?"primary":"tertiary",onClick:()=>{e(o.value),i()},children:o.label},o.value))})})]})]})}function Lk({atomic:t}){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_k,{atomic:t,label:(0,L.__)("Direction","ablocks"),base:"flexDirection",options:rk,fallback:"row"}),(0,I.jsx)(_k,{atomic:t, | |
| 2411 | +label:(0,L.__)("Justify content","ablocks"),base:"justifyContent",options:bk}),(0,I.jsx)(_k,{atomic:t,label:(0,L.__)("Align items","ablocks"),base:"alignItems",options:ck}),(0,I.jsx)(_k,{atomic:t,label:(0,L.__)("Wrap","ablocks"),base:"flexWrap",options:dk}),(0,I.jsx)(gx,{atomic:t,label:(0,L.__)("Gap","ablocks"),prop:"gap"})]})}function Dk({atomic:t}){const{sd:e,setState:i}=t;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.TextControl,{label:(0,L.__)("Template columns","ablocks"),value:e("gridTemplateColumns")||"",onChange:t=>i({gridTemplateColumns:t}),placeholder:"repeat(3, minmax(0, 1fr))",__nextHasNoMarginBottom:!0}),(0,I.jsx)(N.TextControl,{label:(0,L.__)("Template rows","ablocks"),value:e("gridTemplateRows")||"",onChange:t=>i({gridTemplateRows:t}),placeholder:"auto",__nextHasNoMarginBottom:!0}),(0,I.jsx)(vk,{atomic:t,label:(0,L.__)("Auto flow","ablocks"),base:"gridAutoFlow",options:nk}),(0,I.jsx)(gx,{atomic:t,label:(0,L.__)("Gap","ablocks"),prop:"gap"}),(0,I.jsx)(_k,{atomic:t, | |
| 2412 | +label:(0,L.__)("Justify items","ablocks"),base:"justifyContent",options:bk}),(0,I.jsx)(_k,{atomic:t,label:(0,L.__)("Align items","ablocks"),base:"alignItems",options:ck})]})}function Nk({label:t,value:e,onChange:i,type:o="number",hint:a}){return(0,I.jsxs)("div",{className:"ablocks-inline-field",children:[(0,I.jsx)("span",{className:"ablocks-inline-field__label",children:t}),(0,I.jsx)("input",{className:"ablocks-inline-field__input",type:o,value:e??"",placeholder:a,onChange:t=>i(t.target.value),"aria-label":t})]})}const Ik=t=>null==t||""===t;function Vk({atomic:t,grid:e=!1}){const{sd:i,setState:o}=t,l=i("order"),n=i("flexGrow"),s=i("flexShrink"),r=i("flexBasis"),b=Ik(c=l)?"":String(c)===gk?"first":String(c)===fk?"last":"custom";var c;const d=((t,e,i)=>Ik(t)&&Ik(e)&&Ik(i)?"":Ik(i)&&"1"===String(t)&&"0"===String(e)?"grow":Ik(i)&&"0"===String(t)&&"1"===String(e)?"shrink":"custom")(n,s,r),[u,p]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1);return(0,I.jsxs)(I.Fragment,{children:[(0, | |
| 2413 | +I.jsx)("p",{className:"ablocks-layout-subhead",children:(0,L.__)("Flex child","ablocks")}),(0,I.jsx)(_k,{atomic:t,label:(0,L.__)("Align self","ablocks"),base:"alignSelf",options:Hk}),(0,I.jsx)(xk,{atomic:t,base:"order"}),(0,I.jsx)(Wb,{label:(0,L.__)("Order","ablocks"),attributeName:"order",attributeValue:u&&""===b?"custom":b,setAttributes:ak,onChangeHandler:t=>{var e;"custom"!==(e=t||"")?(p(!1),o(e?{order:"first"===e?gk:fk}:{order:""})):p(!0)},options:yk,isResponsive:!1,isInline:!0}),("custom"===b||u)&&(0,I.jsx)(Nk,{label:(0,L.__)("Order","ablocks"),value:"custom"===b?l:"",hint:"0",onChange:t=>o({order:t})}),!e&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xk,{atomic:t,base:"flexGrow"}),(0,I.jsx)(Wb,{label:(0,L.__)("Flex size","ablocks"),attributeName:"flexSize",attributeValue:m&&""===d?"custom":d,setAttributes:ak,onChangeHandler:t=>{var e;"custom"!==(e=t||"")?(h(!1),o(e?"grow"===e?{flexGrow:"1",flexShrink:"0",flexBasis:""}:{flexGrow:"0",flexShrink:"1",flexBasis:""}:{flexGrow:"", | |
| 2414 | +flexShrink:"",flexBasis:""})):h(!0)},options:Tk,isResponsive:!1,isInline:!0}),("custom"===d||m)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Nk,{label:(0,L.__)("Grow","ablocks"),value:n,hint:"0",onChange:t=>o({flexGrow:t})}),(0,I.jsx)(Nk,{label:(0,L.__)("Shrink","ablocks"),value:s,hint:"1",onChange:t=>o({flexShrink:t})}),(0,I.jsx)(Nk,{label:(0,L.__)("Basis","ablocks"),type:"text",value:r,hint:"auto / 50% / 200px",onChange:t=>o({flexBasis:t})})]})]})]})}function Ok({atomic:t,defaultDisplay:e="block",open:i=!1}){const{sd:o,resolved:a,setState:l}=t,n=o("display")||"",s=a("display")||e;return(0,I.jsxs)(N.PanelBody,{title:Bk(t,(0,L.__)("Layout","ablocks"),"layout"),initialOpen:i,children:[(0,I.jsx)(xk,{atomic:t,base:"display"}),(0,I.jsx)(Ak,{value:n,onChange:t=>l({display:t})}),("flex"===s||"inline-flex"===s)&&(0,I.jsx)(Lk,{atomic:t}),("grid"===s||"inline-grid"===s)&&(0,I.jsx)(Dk,{atomic:t}),(0,I.jsx)(Vk,{atomic:t,grid:t.parentIsGrid})]})} | |
| 2415 | +const Yk=["","relative","absolute","fixed","sticky","static"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,L.__)("Default","ablocks"),value:t})),Xk={layout:["display","flexDirection","flexWrap","justifyContent","alignItems","alignContent","gridTemplateColumns","gridTemplateRows","gridAutoFlow","gridAutoColumns","gridAutoRows","gap","rowGap","columnGap","flexBasis","flexGrow","flexShrink","order","alignSelf"],spacing:["padding","margin"],size:["width","maxWidth","minWidth","height","minHeight","maxHeight","aspectRatio","overflow","objectFit","objectPosition"],position:["position","top","right","bottom","left","zIndex","anchorOffset"],typography:["typography","textColor","textAlign","textShadow"],background:["backgroundColor","backgroundGradient","backgroundOverlay","backgroundClip","backgroundRepeat","backgroundSize","backgroundPosition","backgroundAttachment"],border:IH, | |
| 2416 | +effects:["mixBlendMode","isolation","opacity","cursor","boxShadow","transform","transformOrigin","transition","filter","backdropFilter"],color:["textColor","backgroundColor","fill","stroke","strokeWidth"]},Bk=(t,e,i)=>(0,I.jsxs)("span",{className:"ablocks-ptitle",children:[e,RH(t?.currentStyles,Xk[i])&&(0,I.jsx)("i",{className:"ablocks-ptitle__dot","aria-hidden":"true"})]}),Ek=[{prop:"top",label:(0,L.__)("Top","ablocks")},{prop:"right",label:(0,L.__)("Right","ablocks")},{prop:"bottom",label:(0,L.__)("Bottom","ablocks")},{prop:"left",label:(0,L.__)("Left","ablocks")}],Fk=["","normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0,L.__)("Default","ablocks"),value:t})),qk=[{label:(0,L.__)("Default","ablocks"),value:""},...dM],$k=["","auto","isolate"].map(t=>({label:t?t.charAt(0).toUpperCase()+t.slice(1):(0, | |
| 2417 | +L.__)("Default","ablocks"),value:t})),Gk=[{label:(0,L.__)("default","ablocks"),value:""},{label:(0,L.__)("pointer","ablocks"),value:"pointer"},{label:(0,L.__)("arrow (default)","ablocks"),value:"default"},{label:(0,L.__)("text","ablocks"),value:"text"},{label:(0,L.__)("move","ablocks"),value:"move"},{label:(0,L.__)("grab","ablocks"),value:"grab"},{label:(0,L.__)("not-allowed","ablocks"),value:"not-allowed"},{label:(0,L.__)("wait","ablocks"),value:"wait"},{label:(0,L.__)("help","ablocks"),value:"help"},{label:(0,L.__)("zoom-in","ablocks"),value:"zoom-in"},{label:(0,L.__)("crosshair","ablocks"),value:"crosshair"}].map(t=>({...t,label:t.label.charAt(0).toUpperCase()+t.label.slice(1)}));function Zk({atomic:t,open:e=!1}){const{sd:i,setState:o}=t,a=i("position")||"",l=a&&"static"!==a;return(0,I.jsxs)(N.PanelBody,{title:Bk(t,(0,L.__)("Position","ablocks"),"position"),initialOpen:e,children:[(0,I.jsx)(xk,{atomic:t,base:"position"}),(0,I.jsx)(mx,{label:(0,L.__)("Position","ablocks"), | |
| 2418 | +children:(0,I.jsx)(Ut,{label:"",attributeValue:a,setAttributes:ak,onChangeHandler:t=>o({position:t}),options:Yk})}),"sticky"===a&&(0,I.jsx)("p",{className:"ablocks-field-hint",children:(0,L.__)("Sticky needs an offset below, and it only sticks inside its own parent — a parent that is no taller than this block, or any ancestor with overflow set, gives it nothing to stick against.","ablocks")}),l&&(0,I.jsx)("div",{className:"ablocks-mgrid",children:Ek.map(e=>(0,I.jsx)(px,{label:e.label,field:{glyph:(0,I.jsx)(rx,{side:e.prop}),...hx(t,e.prop,e.label)}},e.prop))}),(0,I.jsx)(mx,{label:(0,L.__)("Z-index","ablocks"),children:(0,I.jsx)("input",{className:"ablocks-prow__number",type:"number",value:i("zIndex")??"","aria-label":(0,L.__)("Z-index","ablocks"),onChange:t=>o({zIndex:t.target.value})})}),(0,I.jsx)("hr",{className:"ablocks-prule"}),(0,I.jsx)(gx,{atomic:t,label:(0,L.__)("Anchor offset","ablocks"),prop:"anchorOffset"})]})}function Kk({atomic:t,open:e=!1}){ | |
| 2419 | +const{sd:i,setState:o}=t,[l,n]=(0,a.useState)(!1),s=i("opacity"),r=i("mixBlendMode")||"",b=""===s||void 0===s?"":Math.round(100*parseFloat(s)),c=(t,e,a)=>(0,I.jsx)(mx,{label:t,children:(0,I.jsx)(Ut,{label:"",attributeValue:i(e)||"",setAttributes:ak,onChangeHandler:t=>o({[e]:t}),options:a})});return(0,I.jsxs)(N.PanelBody,{title:Bk(t,(0,L.__)("Effects","ablocks"),"effects"),initialOpen:e,children:[c((0,L.__)("Blend mode","ablocks"),"mixBlendMode",Fk),c((0,L.__)("Isolation","ablocks"),"isolation",$k),""!==r&&"normal"!==r&&(0,I.jsx)("p",{className:"ablocks-field-hint",children:(0,L.__)('A blend mode mixes this element with what is painted behind it. Set Isolation to "isolate" on the parent to keep the mix inside that container.',"ablocks")}),(0,I.jsx)(mx,{label:(0,L.__)("Opacity","ablocks"),children:(0,I.jsx)(ux,{value:b,staticUnit:"%",min:0,max:100,ariaLabel:(0,L.__)("Opacity","ablocks"),onValue:t=>{if(""===t)return void o({opacity:""});const e=Math.min(100,Math.max(0,parseFloat(t)))/100 | |
| 2420 | +;o({opacity:String(parseFloat(e.toFixed(4)))})}})}),c((0,L.__)("Cursor","ablocks"),"cursor",Gk),(0,I.jsx)("hr",{className:"ablocks-prule"}),(0,I.jsx)(Nx,{atomic:t,prop:"boxShadow"}),(0,I.jsx)(Nx,{atomic:t,prop:"transform",action:(0,I.jsx)(N.Dropdown,{open:l,onToggle:n,popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:e})=>(0,I.jsx)(N.Button,{icon:"admin-generic",label:(0,L.__)("Transform origin","ablocks"),showTooltip:!0,"aria-expanded":t,onClick:e}),renderContent:()=>(0,I.jsx)("div",{className:"ablocks-eff__settings",children:(0,I.jsx)(mx,{label:(0,L.__)("Transform origin","ablocks"),children:(0,I.jsx)(Ut,{label:"",attributeValue:i("transformOrigin")||"",setAttributes:ak,onChangeHandler:t=>o({transformOrigin:t}),options:EH})})})})}),(0,I.jsx)(Nx,{atomic:t,prop:"transition"}),""!==t.activeState&&(0,I.jsx)("p",{className:"ablocks-field-hint",children:(0, | |
| 2421 | +L.__)("Transitions set here apply only while this state is active. Add them on Normal so the change eases both ways.","ablocks")}),(0,I.jsx)(Nx,{atomic:t,prop:"filter"}),(0,I.jsx)(Nx,{atomic:t,prop:"backdropFilter"})]})}const Jk=[{key:"desktop",label:(0,L.__)("Hide on desktop","ablocks")},{key:"tablet",label:(0,L.__)("Hide on tablet","ablocks")},{key:"mobile",label:(0,L.__)("Hide on mobile","ablocks")}];function Qk({atomic:t}){const{attributes:e,setAttributes:i}=t,{customCSS:o="",hideOn:a={}}=e;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Responsive visibility","ablocks"),initialOpen:!0,children:[(0,I.jsx)("p",{className:"ablocks-adv-hint",children:(0,L.__)("Hide this block on the chosen devices (front end only).","ablocks")}),Jk.map(t=>(0,I.jsx)(N.ToggleControl,{label:t.label,checked:!!a[t.key],onChange:e=>{return o=t.key,l=e,i({hideOn:{...a,[o]:l}});var o,l},__nextHasNoMarginBottom:!0},t.key))]}),(0,I.jsxs)(N.PanelBody,{title:(0, | |
| 2422 | +L.__)("Custom CSS","ablocks"),initialOpen:!1,children:[(0,I.jsx)(N.TextareaControl,{value:o,onChange:t=>i({customCSS:t}),rows:8,placeholder:"selector {\n color: #006bff;\n}\nselector:hover {\n opacity: .8;\n}",__nextHasNoMarginBottom:!0}),(0,I.jsxs)("p",{className:"ablocks-adv-hint",children:[(0,L.__)("Use","ablocks")," ",(0,I.jsx)("code",{children:"selector"})," ",(0,L.__)("to target this block (or its own class).","ablocks")]})]})]})}function tv({atomic:t,label:e,target:i,id:o,isLocal:a}){const{activeTarget:n,setActiveTarget:r,removeClass:b,setConvName:c,renameClass:d,duplicateClass:u,activeState:p,setActiveState:m,stateLabel:h,library:g,styles:f}=t,y=a?f:g?.find(t=>t.id===o)?.styles,T=(t=>bH.some(({key:e})=>_H(t,e)))(y),[H,M]=l().useState(!1),[x,k]=l().useState(e),v=l().useRef(null),_=l().useRef(0);l().useEffect(()=>k(e),[e]);const R=()=>{_.current=Date.now(),k(e),M(!0)},S=()=>{d&&d(o,x),M(!1)};return H?(0,I.jsx)("span",{ | |
| 2423 | +className:"ablocks-elc__pill ablocks-elc__pill--editing is-active",children:(0,I.jsx)("input",{type:"text",ref:v,className:"ablocks-elc__pill-input",value:x,size:Math.max(x.length,4),autoFocus:!0,onFocus:t=>t.target.select(),onChange:t=>k(t.target.value),onBlur:()=>{Date.now()-_.current<300?v.current&&v.current.focus():S()},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),S()):"Escape"===t.key&&(t.preventDefault(),k(e),M(!1))}})}):(0,I.jsxs)("span",{className:s()("ablocks-elc__pill",{"ablocks-elc__pill--local":a,"ablocks-elc__pill--global":!a,"is-active":n===i,"has-styles":T}),children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__pill-label",onClick:()=>r(i),onDoubleClick:()=>!a&&R(),children:[a&&(0,I.jsx)("span",{className:"dashicons dashicons-admin-site-alt3 ablocks-elc__pill-globe"}),e]}),n===i&&""!==p&&(0,I.jsxs)("span",{className:s()("ablocks-elc__pill-state",`is-${lk(p)}`),children:[h,(0,I.jsx)("button",{type:"button",className:"ablocks-elc__pill-state-x", | |
| 2424 | +onClick:t=>{t.stopPropagation(),m("")},title:(0,L.__)("Back to normal","ablocks"),children:(0,I.jsx)("span",{className:"dashicons dashicons-no-alt"})})]}),(0,I.jsx)(N.Dropdown,{className:"ablocks-elc__pillmenu",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:t,onToggle:e})=>(0,I.jsx)("button",{type:"button",className:"ablocks-elc__pill-dots",onClick:e,"aria-expanded":t,title:(0,L.__)("Options","ablocks"),children:(0,I.jsx)("span",{className:"dashicons dashicons-ellipsis"})}),renderContent:({onClose:e})=>(0,I.jsxs)("div",{className:"ablocks-elc__menu",children:[(0,I.jsx)("div",{className:"ablocks-elc__menuhead",children:(0,L.__)("Class","ablocks")}),a?(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{c(""),e()},children:[(0,I.jsx)("span",{className:"dashicons dashicons-migrate ablocks-elc__menuicon"}),(0,I.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,L.__)("Convert to global","ablocks")})]}):(0,I.jsxs)(I.Fragment,{ | |
| 2425 | +children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{R(),e()},children:[(0,I.jsx)("span",{className:"dashicons dashicons-edit ablocks-elc__menuicon"}),(0,I.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,L.__)("Rename","ablocks")})]}),(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{u&&u(o),e()},children:[(0,I.jsx)("span",{className:"dashicons dashicons-admin-page ablocks-elc__menuicon"}),(0,I.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,L.__)("Duplicate","ablocks")})]}),(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem ablocks-elc__menuitem--danger",onClick:()=>{b(o),e()},children:[(0,I.jsx)("span",{className:"dashicons dashicons-no-alt ablocks-elc__menuicon"}),(0,I.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,L.__)("Remove","ablocks")})]})]}),(0,I.jsx)("div",{className:"ablocks-elc__menudiv"}),(0,I.jsx)("div",{className:"ablocks-elc__menuhead", | |
| 2426 | +children:(0,L.__)("States","ablocks")}),bH.map(o=>(0,I.jsxs)("button",{type:"button",className:s()("ablocks-elc__menuitem",{"is-active":p===o.key}),onClick:()=>{r(i),m(o.key),e()},children:[(0,I.jsx)("span",{className:`ablocks-dot ablocks-dot--${lk(o.key)}`}),(0,I.jsxs)("span",{className:"ablocks-elc__menulabel",children:[o.label,_H(t.currentStyles,o.key)&&(0,I.jsx)("i",{className:"ablocks-elc__menudot","aria-hidden":"true",title:(0,L.__)("Has styles","ablocks")})]}),p===o.key&&(0,I.jsx)("span",{className:"dashicons dashicons-yes ablocks-elc__menucheck"})]},o.key))]})})]})}function ev({atomic:t,onClose:e}){const{library:i,renameClass:o,deleteGlobalClass:a,selectExisting:n,globalClasses:b}=t,[c,d]=l().useState(""),[u,p]=l().useState(null),[m,h]=l().useState(""),[g,f]=l().useState([]),y=(0,r.useSelect)(t=>{const e={},i=t=>(t||[]).forEach(t=>{(t.attributes?.globalClasses||[]).forEach(t=>{e[t]=(e[t]||0)+1}),i(t.innerBlocks)});return i(t("core/block-editor").getBlocks()),e | |
| 2427 | +},[]),T=c.trim().toLowerCase(),H=i.filter(t=>!T||(t.label||"").toLowerCase().includes(T)||t.id.includes(T)).slice().sort((t,e)=>(t.label||t.id).localeCompare(e.label||e.id)),M=t=>{p(t.id),h(t.label||t.id)},x=t=>{o(t,m),p(null)},k=t=>g.includes(t),v=t=>(y[t]||0)>0,_=g.filter(t=>!v(t)),R=g.filter(v);return(0,I.jsxs)(N.Modal,{title:(0,L.__)("Class manager","ablocks"),onRequestClose:e,className:"ablocks-clm",size:"medium",children:[(0,I.jsx)("p",{className:"ablocks-clm__intro",children:(0,L.__)("Global classes are shared by every block that applies them — editing one here changes all of them.","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-clm__search",children:[(0,I.jsx)("span",{className:"dashicons dashicons-search ablocks-clm__search-icon"}),(0,I.jsx)("input",{type:"text",className:"ablocks-clm__search-input",value:c,autoFocus:!0,placeholder:(0,L.__)("Search classes…","ablocks"),onChange:t=>d(t.target.value)})]}),H.length>0&&(0,I.jsx)("p",{className:"ablocks-clm__count",children:(0, | |
| 2428 | +L.sprintf)(/* translators: %d: number of global classes listed. */ /* translators: %d: number of global classes listed. */ | |
| 2429 | +(0,L._n)("%d class","%d classes",H.length,"ablocks"),H.length)}),g.length>0&&(0,I.jsxs)("div",{className:"ablocks-clm__bulk",children:[(0,I.jsx)("span",{className:"ablocks-clm__bulkcount",children:(0,L.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2430 | +(0,L._n)("%d selected","%d selected",g.length,"ablocks"),g.length)}),R.length>0&&(0,I.jsx)("span",{className:"ablocks-clm__bulknote",children:(0,L.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2431 | +(0,L._n)("%d still in use and will be kept","%d still in use and will be kept",R.length,"ablocks"),R.length)}),(0,I.jsx)("button",{type:"button",className:"ablocks-clm__bulkclear",onClick:()=>f([]),children:(0,L.__)("Clear","ablocks")}),(0,I.jsx)("button",{type:"button",className:"ablocks-clm__bulkdelete",disabled:0===_.length,onClick:()=>{_.length&&window.confirm((0,L.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2432 | +(0,L._n)("Delete %d class? This cannot be undone.","Delete %d classes? This cannot be undone.",_.length,"ablocks"),_.length))&&(_.forEach(t=>a(t)),f(R))},children:(0,L.sprintf)(/* translators: %d: number of classes. */ /* translators: %d: number of classes. */ | |
| 2433 | +(0,L._n)("Delete %d","Delete %d",_.length,"ablocks"),_.length)})]}),(0,I.jsxs)("div",{className:"ablocks-clm__list",children:[0===H.length&&(0,I.jsx)("p",{className:"ablocks-clm__empty",children:T?(0,L.__)("No classes match.","ablocks"):(0,L.__)("No global classes yet.","ablocks")}),H.map(t=>(0,I.jsxs)("div",{className:s()("ablocks-clm__row",{"is-applied":b.includes(t.id),"is-picked":k(t.id)}),children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-clm__pick",checked:k(t.id),onChange:()=>{return e=t.id,f(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);var e},"aria-label":(0,L.sprintf)(/* translators: %s: class name. */ /* translators: %s: class name. */ | |
| 2434 | +(0,L.__)("Select %s for deletion","ablocks"),t.label||t.id)}),u===t.id?(0,I.jsx)("input",{type:"text",className:"ablocks-clm__rename",value:m,autoFocus:!0,onChange:t=>h(t.target.value),onBlur:()=>x(t.id),onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),x(t.id)):"Escape"===e.key&&p(null)}}):(0,I.jsx)("button",{type:"button",className:"ablocks-clm__name",title:(0,L.__)("Apply to the selected block","ablocks"),onClick:()=>n(t.id),onDoubleClick:()=>M(t),children:(0,I.jsxs)("span",{className:"ablocks-clm__chip",children:[".",uM(t.label||t.id)]})}),b.includes(t.id)&&(0,I.jsx)("span",{className:"ablocks-clm__applied",children:(0,L.__)("Applied","ablocks")}),v(t.id)&&(0,I.jsx)("span",{className:"ablocks-clm__usage",title:(0,L.__)("Still in use, so it cannot be deleted.","ablocks"),children:(0,L.sprintf)(/* translators: %d: number of blocks. */ /* translators: %d: number of blocks. */ | |
| 2435 | +(0,L._n)("%d block","%d blocks",y[t.id],"ablocks"),y[t.id])}),(0,I.jsx)(N.Dropdown,{className:"ablocks-clm__rowmenu",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:e})=>(0,I.jsx)("button",{type:"button",className:"ablocks-elc__pill-dots",onClick:e,"aria-expanded":t,title:(0,L.__)("Options","ablocks"),children:(0,I.jsx)("span",{className:"dashicons dashicons-ellipsis"})}),renderContent:({onClose:e})=>(0,I.jsxs)("div",{className:"ablocks-elc__menu",children:[(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{n(t.id),e()},children:[(0,I.jsx)("span",{className:"dashicons dashicons-plus-alt2 ablocks-elc__menuicon"}),(0,I.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,L.__)("Apply to selection","ablocks")})]}),(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem",onClick:()=>{M(t),e()},children:[(0,I.jsx)("span",{className:"dashicons dashicons-edit ablocks-elc__menuicon"}),(0,I.jsx)("span",{ | |
| 2436 | +className:"ablocks-elc__menulabel",children:(0,L.__)("Rename","ablocks")})]}),(0,I.jsx)("div",{className:"ablocks-elc__menudiv"}),(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__menuitem ablocks-elc__menuitem--danger",disabled:v(t.id),title:v(t.id)?(0,L.__)("Still in use, so it cannot be deleted.","ablocks"):void 0,onClick:()=>{v(t.id)||(window.confirm((0,L.__)("Delete this class everywhere? This cannot be undone.","ablocks"))&&a(t.id),e())},children:[(0,I.jsx)("span",{className:"dashicons dashicons-trash ablocks-elc__menuicon"}),(0,I.jsx)("span",{className:"ablocks-elc__menulabel",children:(0,L.__)("Delete","ablocks")})]})]})})]},t.id))]})]})}function iv({atomic:t}){ | |
| 2437 | +const{globalClasses:e,library:i,activeClassId:o,activeClass:n,newClass:s,setNewClass:r,convName:b,setConvName:c,comboFocus:d,setComboFocus:u,comboMatches:p,comboExact:m,removeClass:h,addClassByName:g,doConvert:f,selectExisting:y,activeDevice:T,stateLabel:H}=t,M=!!s.trim().toLowerCase()&&!m,[x,k]=l().useState(!1),{saving:v}=function(){const[t,e]=(0,a.useState)({saving:YM>0||IM.size>0,failed:[...BM]});return(0,a.useEffect)(()=>(XM.add(e),()=>{XM.delete(e)}),[]),t}();return(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Classes & state","ablocks"),initialOpen:!0,children:(0,I.jsxs)("div",{className:"ablocks-elc",children:[(0,I.jsxs)("div",{className:"ablocks-elc__head",children:[(0,I.jsx)("span",{className:"ablocks-elc__head-label",children:(0,L.__)("Classes","ablocks")}),v&&(0,I.jsx)("span",{className:"ablocks-elc__saving",children:(0,L.__)("Saving…","ablocks")}),(0,I.jsx)("button",{type:"button",className:"ablocks-elc__manage",onClick:()=>k(!0),title:(0,L.__)("Class manager","ablocks"), | |
| 2438 | +children:(0,I.jsx)("span",{className:"dashicons dashicons-open-folder"})})]}),(0,I.jsxs)("div",{className:"ablocks-elc__bar",children:[(0,I.jsx)(tv,{atomic:t,label:(0,L.__)("local","ablocks"),target:"local",isLocal:!0}),e.map(e=>{const o=i.find(t=>t.id===e);return(0,I.jsx)(tv,{atomic:t,label:o?.label||e,target:`gc:${e}`,id:e},e)}),(0,I.jsx)("input",{type:"text",className:"ablocks-elc__input",value:s,"aria-label":(0,L.__)("Add class","ablocks"),onChange:t=>r(t.target.value),onFocus:()=>u(!0),onBlur:()=>setTimeout(()=>u(!1),150),onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),p.length?y(p[0].id):M&&g()):"Escape"===t.key?u(!1):"Backspace"===t.key&&""===s&&e.length&&h(e[e.length-1])}})]}),d&&(p.length>0||M)&&(0,I.jsxs)("div",{className:"ablocks-elc__combo",children:[p.length>0&&(0,I.jsx)("div",{className:"ablocks-elc__combohead",children:(0,L.__)("Apply a global class","ablocks")}),p.map(t=>(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__comboitem", | |
| 2439 | +onMouseDown:t=>t.preventDefault(),onClick:()=>y(t.id),children:[(0,I.jsx)("span",{className:"ablocks-elc__combodot"}),(0,I.jsx)("span",{className:"ablocks-elc__comboitemlabel",children:t.label||t.id}),(0,I.jsx)("span",{className:"ablocks-elc__combotag",children:(0,L.__)("global","ablocks")})]},t.id)),M&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"ablocks-elc__combohead",children:(0,L.__)("Create a new class","ablocks")}),(0,I.jsxs)("button",{type:"button",className:"ablocks-elc__comboitem ablocks-elc__combocreate",onMouseDown:t=>t.preventDefault(),onClick:g,children:[(0,I.jsx)("span",{className:"ablocks-elc__comboplus",children:(0,I.jsx)("span",{className:"dashicons dashicons-plus-alt2"})}),(0,L.__)("Create","ablocks")," ",`"${s.trim()}"`]})]})]}),null!==b&&(0,I.jsxs)(N.Flex,{gap:2,style:{marginTop:8},children:[(0,I.jsx)(N.FlexItem,{isBlock:!0,children:(0,I.jsx)(N.TextControl,{value:b,onChange:c,placeholder:(0,L.__)("Global class name","ablocks"),onKeyDown:t=>{ | |
| 2440 | +"Enter"===t.key&&(t.preventDefault(),f())},__nextHasNoMarginBottom:!0})}),(0,I.jsx)(N.FlexItem,{children:(0,I.jsx)(N.Button,{variant:"primary",onClick:f,disabled:!(b||"").trim(),children:(0,L.__)("Save","ablocks")})})]}),(0,I.jsx)("p",{className:"ablocks-field-hint",children:o?`${(0,L.__)("Editing","ablocks")} .${n?.label||o} · ${H} · ${T.label}`:`${(0,L.__)("Editing this block","ablocks")} · ${H} · ${T.label}`}),x&&(0,I.jsx)(ev,{atomic:t,onClose:()=>k(!1)})]})})}function ov({atomic:t}){const{animations:e,setAnimations:i,addAnimation:o,updateAnimation:l,removeAnimation:n,RESPONSIVE_DEVICES:s}=t,[r,b]=(0,a.useState)(null),c=e.length>=10;return(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Interactions","ablocks"),children:[(0,I.jsxs)("div",{className:"ablocks-eff__head",children:[(0,I.jsx)("span",{className:"ablocks-eff__label",children:(0,L.__)("Animations","ablocks")}),e.length>0&&(0,I.jsx)("span",{className:"ablocks-eff__dot","aria-hidden":"true"}),(0,I.jsx)(N.Button,{ | |
| 2441 | +className:"ablocks-eff__add",icon:"plus-alt2",label:c?(0,L.__)("Animation limit reached","ablocks"):(0,L.__)("Add animation","ablocks"),showTooltip:!0,disabled:c,onClick:()=>o()})]}),0===e.length&&(0,I.jsx)("p",{className:"ablocks-anim-empty",children:(0,L.__)("Add one or more animations. Each can run on a page-load, scroll, hover or click trigger, and per breakpoint.","ablocks")}),(0,I.jsx)(Ux,{id:"ablocks-animations",items:e,onReorder:i,getId:t=>t.id,onDragStart:()=>b(null),renderItem:(t,e,i)=>(0,I.jsxs)("div",{className:"ablocks-eff__item",children:[(0,I.jsx)("span",{className:"ablocks-eff__grip",...i,children:(0,I.jsx)("span",{className:"dashicons dashicons-menu"})}),(0,I.jsx)("button",{type:"button",className:"ablocks-eff__summary","aria-expanded":r===t.id,onClick:()=>b(r===t.id?null:t.id),children:UM(t)}),(0,I.jsx)(N.Button,{className:"ablocks-eff__remove",icon:"no-alt",label:(0,L.__)("Remove","ablocks"),showTooltip:!0,onClick:()=>{n(t.id),r===t.id&&b(null)}}),r===t.id&&(0, | |
| 2442 | +I.jsx)(N.Popover,{className:"ablocks-eff__popover",placement:"left-start",offset:8,resize:!0,flip:!0,shift:!0,onClose:()=>b(null),focusOnMount:"firstElement",children:(0,I.jsx)("div",{className:"ablocks-eff__popover-inner ablocks-anim-popover",children:(0,I.jsx)(Mx,{anim:t,devices:s,onChange:e=>l(t.id,e)})})})]})})]})}function av({atomic:t}){const{activeState:e,setActiveState:i}=t;if(""===e)return null;const o=bH.find(t=>t.key===e)?.label||e;return(0,I.jsxs)("div",{className:"ablocks-state-banner",children:[(0,I.jsx)("span",{className:`ablocks-dot ablocks-dot--${lk(e)}`}),(0,I.jsx)("span",{className:"ablocks-state-banner__text",children:(0,L.sprintf)(/* translators: %s: interaction state name, e.g. Hover. */ /* translators: %s: interaction state name, e.g. Hover. */ | |
| 2443 | +(0,L.__)("Editing the %s state","ablocks"),o)}),(0,I.jsx)(N.Button,{variant:"link",className:"ablocks-state-banner__reset",onClick:()=>i(""),children:(0,L.__)("Back to Normal","ablocks")})]})}const lv=t=>{const e=String(t).replace(/([A-Z])/g," $1").toLowerCase();return e.charAt(0).toUpperCase()+e.slice(1)};function nv({atomic:t}){const{activeClass:e,activeClassId:i,shadowedProps:o,clearShadowed:a}=t;if(!i)return null;const l=o();return l.length?(0,I.jsxs)("div",{className:"ablocks-override-banner",children:[(0,I.jsx)("span",{className:"dashicons dashicons-info-outline ablocks-override-banner__icon"}),(0,I.jsx)("span",{className:"ablocks-override-banner__text",children:(0,L.sprintf)(/* translators: 1: global class name, 2: comma-separated style property names. */ /* translators: 1: global class name, 2: comma-separated style property names. */ | |
| 2444 | +(0,L.__)("This block sets %2$s itself, so “%1$s” cannot change it here.","ablocks"),e?.label||i,l.map(lv).join(", "))}),(0,I.jsx)(N.Button,{variant:"link",className:"ablocks-override-banner__clear",onClick:a,children:(0,L._n)("Clear the block value","Clear the block values",l.length,"ablocks")})]}):null}function sv({atomic:t,general:e=null,style:i=null,alignValue:o="",defaultDisplay:a="block"}){return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)("div",{className:"ablocks-atomic-panel",children:(0,I.jsx)(N.TabPanel,{className:"ablocks-atomic-tabs ablocks-inspector-tabs",activeClass:"ablocks-inspector-tab__item--active",tabs:[{name:"general",title:(0,L.__)("General","ablocks"),className:"ablocks-inspector-tab__item"},{name:"style",title:(0,L.__)("Style","ablocks"),className:"ablocks-inspector-tab__item"},{name:"advanced",title:(0,L.__)("Advanced","ablocks"),className:"ablocks-inspector-tab__item"}],children:l=>(0,I.jsxs)(I.Fragment,{children:["general"===l.name&&(0, | |
| 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 | +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 | +;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 | +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", | |
| 2472 | 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", |
| 2473 | 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", |
| 2474 | 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:"", |
| 2475 | 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:"", |
| @@ -2479,10 +2490,10 @@ | ||
| 2479 | 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:"", |
| 2480 | 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", |
| 2481 | 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", |
| 2482 | 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:{ |
| 2483 | -type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function wv(t){const{attributes:e,setAttributes:i}=t,{block_id:o,headingTag:n,isDismissible:s}=e,[r,b]=(0,a.useState)(!0);return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:o,name:jv.UU,attributes:{...e,className:"ablocks-prevent-select-notice"},children:r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ablocks-notice-header",children:[(0,L.jsx)(Yc,{tagName:n,value:e.heading,withoutInteractiveFormatting:!0,className:"ablocks-notice-title",onChange:t=>i({heading:t}),placeholder:(0,z.__)("Notice Title","ablocks")}),s&&(0,L.jsx)(Vd,{onClick:()=>{b(!1)},attributes:e})]}),(0,L.jsx)("div",{className:"ablocks-notice-content",children:(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/paragraph",{paragraph:"Stay up-to-date with our latest updates and offers. Don’t miss out on important announcements!"}]],templateLock:!1})})]})})})}wv.propTypes={};const zv=(t,e="")=>({background:(0, | |
| 2484 | -gs.qD)(t?.backgroundColor),...(0,c.qD)(t?.noticeHeaderPadding,"padding",e)}),Cv=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"";return{color:(0,gs.qD)(t?.textColor),...(0,Gt.qD)(t?.alignment,"justify-content",e),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.textStroke,e),...(0,pc.qD)(t?.textShadow)}};function Av(t){const{attributes:e}=t,{block_id:i,headingTag:o,heading:a,isDismissible:l,noticeClose:n}=e;return(0,L.jsxs)(oc,{blockId:i,name:jv.UU,attributes:e,children:[(0,L.jsxs)("div",{"data-notice-close":n,className:"ablocks-notice-header",children:[(0,L.jsx)(C.RichText.Content,{tagName:o,value:a,className:"ablocks-notice-title"}),l&&(0,L.jsx)(Vd,{attributes:e})]}),(0,L.jsx)("div",{className:"ablocks-notice-content",children:(0,L.jsx)(C.InnerBlocks.Content,{})})]})}Av.propTypes={},Av.defaultProps={};const Lv={UU:"ablocks/notice",uK:{block_id:{type:"string",default:""},heading:{type:"string",source:"html",selector:".ablocks-notice-title", | |
| 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", | |
| 2485 | 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:"", |
| 2486 | 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", |
| 2487 | 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", |
| 2488 | 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, |
| @@ -2492,71 +2503,72 @@ | ||
| 2492 | 2503 | backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"", |
| 2493 | 2504 | 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:"", |
| 2494 | 2505 | 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:"", |
| 2495 | 2506 | 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", |
| 2496 | -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 Dv(t){const{attributes:e}=t,{block_id:i,headingTag:o,heading:a,isDismissible:l,noticeClose:n}=e;return(0,L.jsxs)(dc,{blockId:i,name:Lv.UU, | |
| 2497 | -attributes:e,children:[(0,L.jsxs)("div",{"data-notice-close":n,className:"ablocks-notice-header",children:[(0,L.jsx)(C.RichText.Content,{tagName:o,value:a,className:"ablocks-notice-title"}),l&&(0,L.jsx)(Vd,{attributes:e})]}),(0,L.jsx)("div",{className:"ablocks-notice-content",children:(0,L.jsx)(C.InnerBlocks.Content,{})})]})}Dv.propTypes={},Dv.defaultProps={},(0,M.xV)(jv.UU)&&(0,o.registerBlockType)(jv.UU,{title:"Notification",attributes:jv.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--notification"}),edit:function(t){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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 2498 | -null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-notice-header",zv(i),zv(i,"Tablet"),zv(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-notice-title",Cv(i),Cv(i,"Tablet"),Cv(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")), | |
| 2499 | -t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Pv,{...t}),(0,L.jsx)(wv,{...t})]})},save:Av,deprecated:[{attributes:Lv.uK,save:t=>(0,L.jsx)(Dv,{...t})}]});var Nv=i(70399);const Iv=t=>{switch(t){case"px":default:return 500;case"em":return 30;case"rem":return 20}};function Vv(t){const{attributes:e,setAttributes:i}=t,{spacerHeight:o}=e,a=at(),n=(0,M.Ic)(o,"valueUnit",a);return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-spacer-blocks/",children:(0,L.jsx)(D,{title:(0,z.__)("Spacer","ablocks"),initialOpen:!0,children:(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"spacerHeight",attributeObjectKey:"value",attributeValue:o,setAttributes:i,hasUnit:!0, | |
| 2500 | -min:0,max:Iv(n),unitOptions:[{value:"px",label:"px"}],isInline:!1,attributeDefaultValue:Nv.i})})})})})}const Ov={UU:"ablocks/spacer",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},spacerHeight:{type:"object",default:{value:50,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:{ | |
| 2501 | -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:"", | |
| 2502 | -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:{ | |
| 2503 | -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:"", | |
| 2504 | -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:"", | |
| 2505 | -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:"", | |
| 2506 | -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:"", | |
| 2507 | -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:"", | |
| 2508 | -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 Yv(t){const{attributes:e,setAttributes:i}=t,{block_id:o,spacerHeight:a}=e,l=at(),n=`${s=(0,M.Ic)(a,"value",l)||0,Math.max(1,Math.min(s,1e3))}px`;var s;return(0,L.jsx)(Nb.A,{blockId:o,name:Ov.UU,attributes:e,children:(0,L.jsx)(A.ResizableBox,{size:{height:n,width:"100%"},minHeight:1,enable:{bottom:!0}, | |
| 2509 | -className:"ablocks-spacer__box",onResizeStop:(t,e,o)=>{const n=o.clientHeight;i({spacerHeight:(0,M.jI)(Nv.i.spacerHeight.default,{...a,[`value${l}`]:n})})}})})}const Xv={UU:"ablocks/spacer",uK:{block_id:{type:"string",default:""},spacerHeight:{type:"object",default:{value:50,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:{ | |
| 2510 | -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:"", | |
| 2511 | -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", | |
| 2512 | -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:"", | |
| 2513 | -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:"", | |
| 2514 | -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:"", | |
| 2515 | -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:"", | |
| 2516 | -yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default", | |
| 2517 | -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 Bv({attributes:t}){const{block_id:e,spacerHeight:i}=t,o=i?.value||0;return(0,L.jsx)(dc,{blockId:e,name:Xv.UU,attributes:t,children:(0,L.jsx)("div",{className:"ablocks-spacer__box",style:{height:`${o}px`,width:"100%"}})})}function Ev(t){const{attributes:e,setAttributes:i}=t,{videoSource:o,videoStartTime:a,videoEndTime:n,youtubeURL:s="",vimeoURL:r="",externalLink:b="",selfHostedURL:c="",autoplay:d,mute:u,loop:p,playerControl:m,downloadButton:h,privacyMode:g,introTitle:f,introPortrait:y,introByline:T,preload:H,aspectRatio:M,cssFilter:x}=e,k=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i, | |
| 2518 | -docs_url:"https://ablocks.pro/docs/ablocks-advanced-video-block/",children:(0,L.jsx)(D,{title:(0,z.__)("Video","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Source","ablocks"),options:[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Vimeo","ablocks"),value:"vimeo"},{label:(0,z.__)("Youtube","ablocks"),value:"youtube"},{label:(0,z.__)("Self hosted","ablocks"),value:"selfHosted"}],isResponsive:!1,attributeValue:o,attributeName:"videoSource",setAttributes:i,disableDynamicContent:!0}),"youtube"===o&&(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:s,attributeName:"youtubeURL",setAttributes:i,disableDynamicContent:!0}),"vimeo"===o&&(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:r,attributeName:"vimeoURL",setAttributes:i}),"selfHosted"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("External link","ablocks"),attributeValue:b, | |
| 2519 | -isResponsive:!1,attributeName:"externalLink",setAttributes:i,disableDynamicContent:!0}),b?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:c,attributeName:"selfHostedURL",setAttributes:i,disableDynamicContent:!0})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{children:(0,z.__)("Video","ablocks")}),(0,L.jsx)(qs,{allowedTypes:["video"],attributeValue:e,deviceType:k,onSelectImageHandler:t=>{i({videoUrl:t?.url})},onRemoveImageHandler:()=>{i({videoUrl:void 0})},attributeName:"videoUrl",disableDynamicContent:!0})]})]}),(0,L.jsx)(Nt,{}),(0,L.jsxs)("div",{className:"ablocks-video--times-wrapper",children:[(0,L.jsx)(js,{label:(0,z.__)("Start","ablocks"),attributeName:"videoStartTime",attributeValue:parseInt(a)||0,setAttributes:i}),(0,L.jsx)("span",{className:"ablocks-control-field-description",children:(0,z.__)("Specify a start time (in seconds)","ablocks")}),"vimeo"!==o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(js,{label:(0, | |
| 2520 | -z.__)("End","ablocks"),attributeName:"videoEndTime",attributeValue:parseInt(n)||0,setAttributes:i}),(0,L.jsx)("span",{className:"ablocks-control-field-description",children:(0,z.__)("Specify a end time (in seconds)","ablocks")})]})]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Video options","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Autoplay","ablocks"),attributeValue:d,isResponsive:!1,attributeName:"autoplay",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Mute","ablocks"),attributeValue:u,isResponsive:!1,attributeName:"mute",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Loop","ablocks"),attributeValue:p,isResponsive:!1,attributeName:"loop",setAttributes:i}),("selfHosted"===o||"youtube"===o)&&(0,L.jsx)(Vt,{label:(0,z.__)("Player controls","ablocks"),attributeValue:m,isResponsive:!1,attributeName:"playerControl",setAttributes:i}),"selfHosted"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0, | |
| 2521 | -z.__)("Download button","ablocks"),attributeValue:h,isResponsive:!1,attributeName:"downloadButton",setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Preload","ablocks"),options:[{label:(0,z.__)("Metadata","ablocks"),value:"metadata"},{label:(0,z.__)("Auto","ablocks"),value:"auto"},{label:(0,z.__)("None","ablocks"),value:"none"}],isResponsive:!1,attributeValue:H,attributeName:"preload",setAttributes:i}),(0,L.jsxs)("div",{className:"ablocks-control-field-description",children:[(0,z.__)("Preload attribute lets you specify how the video should be loaded when the page loads.","ablocks")," ",(0,L.jsx)("a",{target:"_blank",href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#attr-preload",rel:"noreferrer",children:(0,z.__)("Learn more","ablocks")})]})]}),("youtube"===o||"vimeo"===o)&&(0,L.jsxs)("div",{className:"ablocks-control",children:[(0,L.jsx)(Vt,{label:(0,z.__)("Privacy mode","ablocks"),attributeValue:g,isResponsive:!1,attributeName:"privacyMode",setAttributes:i}),(0, | |
| 2522 | -L.jsx)("span",{className:"ablocks-control-field-description",children:(0,z.__)('When you turn on privacy mode YouTube Vimeo won"t store information about visitors on your website unless they play the video.',"ablocks")})]}),"vimeo"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Intro title","ablocks"),attributeValue:f,isResponsive:!1,attributeName:"introTitle",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Intro portrait","ablocks"),attributeValue:y,isResponsive:!1,attributeName:"introPortrait",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Intro byline","ablocks"),attributeValue:T,isResponsive:!1,attributeName:"introByline",setAttributes:i})]})]}),"selfHosted"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)("p",{children:(0,z.__)("Poster","ablocks")}),(0,L.jsx)(As,{setAttributes:i,allowedTypes:["image"],attributeValue:e,deviceType:k,attributeName:"poster",onSelectImageHandler:t=>{i({poster:t?.url})},onRemoveImageHandler:()=>{i({poster:void 0})} | |
| 2523 | -})]})]}),style:(0,L.jsxs)("div",{className:"ablocks-control",children:[(0,L.jsx)(Ut,{label:(0,z.__)("Aspect ratio","ablocks"),options:[{label:"1:1",value:"1"},{label:"3:2",value:"1.5"},{label:"4:3",value:"1.33333"},{label:"16:9",value:"1.77777"},{label:"21:9",value:"2.33333"},{label:"9:16",value:"0.5625"}],isResponsive:!1,attributeValue:M,attributeName:"aspectRatio",setAttributes:i}),(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:x,attributeName:"cssFilter",setAttributes:i})]})})})})})})}(0,M.xV)(Ov.UU)&&(0,o.registerBlockType)(Ov.UU,{title:"Spacer",attributes:Ov.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-spacer"}),edit:function(t){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 | |
| 2524 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(0,b.applyFilters)("ablocks.spacer.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Vv,{...t}),(0,L.jsx)(Yv,{...t})]})},save:function({attributes:t}){const{block_id:e,spacerHeight:i}=t,o=i?.value||0;return(0,L.jsx)(oc,{blockId:e,name:Ov.UU,attributes:t,children:(0,L.jsx)("div",{className:"ablocks-spacer__box",style:{height:`${o}px`,width:"100%"}})})},deprecated:[{attributes:Xv.uK,save:t=>(0,L.jsx)(Bv,{...t})}]}),Ev.propTypes={};const Fv={UU:"ablocks/video",uK:{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:""}, | |
| 2525 | -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},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"},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"", | |
| 2526 | -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:"",rightWidthTablet:"", | |
| 2527 | -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, | |
| 2528 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", | |
| 2529 | -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:"", | |
| 2530 | -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:"", | |
| 2531 | -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", | |
| 2532 | -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", | |
| 2533 | -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:""}, | |
| 2534 | -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},qv={autoplay:I().bool,mute:I().bool,loop:I().bool,poster:I().string,preload:I().string,videoUrl:I().string,videoStartTime:I().string,videoEndTime:I().string,externalLink:I().bool,selfHostedURL:I().string,playerControl:I().bool,downloadButton:I().bool};function $v(t){const{autoplay:e=!1,mute:i=!1,loop:o=!1,poster:a="",preload:l="",videoUrl:n="",videoStartTime:s="",videoEndTime:r="",externalLink:b=!1,selfHostedURL:c="",playerControl:d=!1,downloadButton:u=!1}=t,p=((t,e)=>{const i=t||0,o=e||"";let a;return a=i&&o?`#t=${i},${o}`:i?`#t=${i}`:"",a})(s,r);return(0,L.jsx)("video",{src:(b?c:n)+p,autoPlay:e,muted:i,loop:o,poster:a||"",preload:l,controls:d,controlsList:u?"nodownload":"",className:"ablocks-video-player"})}function Gv(t){ | |
| 2535 | -const{attributes:e}=t,{block_id:i,videoSource:o,loop:a,mute:n,autoplay:s,videoUrl:r,selfHostedURL:b,externalLink:c,playerControl:d,downloadButton:u,vimeoURL:p,youtubeURL:m,privacyMode:h,introPortrait:g,introTitle:f,introByline:y,videoStartTime:T,videoEndTime:H,poster:M,preload:x}=e;let k;if("none"!==o)switch(o){case"youtube":k=(0,L.jsx)(tc.A,{block_id:i,autoplay:s,mute:n,loop:a,youtubeURL:m,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u,privacyMode:h});break;case"selfHosted":k=(0,L.jsx)($v,{block_id:i,autoplay:s,mute:n,loop:a,poster:M,preload:x,videoUrl:r,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u});break;case"vimeo":k=(0,L.jsx)(ec.A,{block_id:i,autoplay:s,mute:n,loop:a,vimeoURL:p,privacyMode:h,videoStartTime:T,introPortrait:g,introTitle:f,introByline:y,isBackground:!1});break;default:k=void 0}return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:Fv.UU,attributes:{ | |
| 2536 | -...e,className:"ablocks-prevent-select"},children:k})})}$v.propTypes=qv,Gv.propTypes={};const Zv=(t,e="")=>{const i={};return""!==t?.aspectRatio&&void 0!==t?.aspectRatio&&(i["aspect-ratio"]=t?.aspectRatio),{...i,...(0,ay.qD)(t?.cssFilter,e)}};function Kv(t){const{attributes:e}=t,{block_id:i,videoSource:o,loop:a,mute:n,autoplay:s,videoUrl:r,selfHostedURL:b,externalLink:c,playerControl:d,downloadButton:u,vimeoURL:p,youtubeURL:m,privacyMode:h,introPortrait:g,introTitle:f,introByline:y,videoStartTime:T,videoEndTime:H,poster:M,preload:x}=e;let k;if("none"!==o)switch(o){case"youtube":k=(0,L.jsx)(tc.A,{block_id:i,autoplay:s,mute:n,loop:a,youtubeURL:m,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u,privacyMode:h});break;case"selfHosted":k=(0,L.jsx)($v,{block_id:i,autoplay:s,mute:n,loop:a,poster:M,preload:x,videoUrl:r,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u});break;case"vimeo":k=(0, | |
| 2537 | -L.jsx)(ec.A,{block_id:i,autoplay:s,mute:n,loop:a,vimeoURL:p,privacyMode:h,videoStartTime:T,introPortrait:g,introTitle:f,introByline:y,isBackground:!1});break;default:k=void 0}return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:Fv.UU,attributes:e,children:k})})}Kv.propTypes={};const Jv={UU:"ablocks/video",uK:{block_id:{type:"string",default:""},videoSource:{type:"string",default:"youtube"},videoStartTime:{type:"string",default:""},videoEndTime:{type:"string",default:""},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},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}, | |
| 2538 | -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"},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},_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:"", | |
| 2539 | -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:"", | |
| 2540 | -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:""}}, | |
| 2541 | -_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:"", | |
| 2542 | -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", | |
| 2543 | -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:"", | |
| 2544 | -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:"", | |
| 2545 | -xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"", | |
| 2546 | -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 Qv(t){const{attributes:e}=t,{block_id:i,videoSource:o,loop:a,mute:n,autoplay:s,videoUrl:r,selfHostedURL:b,externalLink:c,playerControl:d,downloadButton:u,vimeoURL:p,youtubeURL:m,privacyMode:h,introPortrait:g,introTitle:f,introByline:y,videoStartTime:T,videoEndTime:H,poster:M,preload:x}=e;let k;if("none"!==o)switch(o){case"youtube":k=(0,L.jsx)(tc.A,{block_id:i,autoplay:s,mute:n,loop:a,youtubeURL:m,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u,privacyMode:h});break;case"selfHosted":k=(0,L.jsx)($v,{block_id:i,autoplay:s,mute:n,loop:a,poster:M,preload:x,videoUrl:r,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b, | |
| 2547 | -playerControl:d,downloadButton:!u});break;case"vimeo":k=(0,L.jsx)(ec.A,{block_id:i,autoplay:s,mute:n,loop:a,vimeoURL:p,privacyMode:h,videoStartTime:T,introPortrait:g,introTitle:f,introByline:y,isBackground:!1});break;default:k=void 0}return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:Jv.UU,attributes:e,children:k})})}Qv.propTypes={},(0,M.xV)(Fv.UU)&&(0,o.registerBlockType)(Fv.UU,{title:"Video",attributes:Fv.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-video"}),edit:function(t){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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",Zv(i),Zv(i,"Tablet"),Zv(i,"Mobile")),(0, | |
| 2548 | -b.applyFilters)("ablocks.video.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Ev,{...t}),(0,L.jsx)(Gv,{...t})]})},save:Kv,deprecated:[{attributes:Jv.uK,save:Qv}]});var t_=i(98479);const e_=[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Absolute","ablocks"),value:"absolute"},{label:(0,z.__)("Fixed","ablocks"),value:"fixed"}],i_=[{label:"arrow-left-alt",value:"left",icon:"left"},{label:"arrow-right-alt",value:"right",icon:"right"}],o_=[{label:"arrow-up-alt",value:"top",icon:"align-top"},{label:"arrow-down-alt",value:"bottom",icon:"align-bottom"}];function a_(t){ | |
| 2549 | -const{attributes:e,setAttributes:i}=t,{source:o,gap:a,placeholder:n,isIcon:s,iconWidth:r,searchBtnWidth:b,listWidth:c,allowCollapse:d,variant:u,buttonText:p,buttonAlignment:m,buttonTextColor:h,buttonBgColor:g,buttonBgColorH:f,buttonTextShadow:y,buttonTextStroke:T,buttonTypography:H,buttonTextColorH:x,buttonTextShadowH:k,buttonTextStrokeH:v,buttonTypographyH:_,inputTextColor:R,inputBgColor:S,inputTextShadow:W,inputTextStroke:U,inputTypography:P,listPadding:j,searchResTColor:w,searchResTypography:A,loadingSpinnerColor:N,searchBoxBorder:I,listGap:V}=e,O="absolute"===e.position||"fixed"===e.position;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-search-block/",children:[(0,L.jsxs)(D,{title:(0,z.__)("Search","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Variant","ablocks"),options:[{label:(0,z.__)("Classic","ablocks"),value:"classic"},{label:(0, | |
| 2550 | -z.__)("Minimal","ablocks"),value:"minimal"}],attributeName:"variant",attributeValue:u,setAttributes:i}),"minimal"===u?(0,L.jsx)(Kt,{label:(0,z.__)("Button Alignment","ablocks"),isInline:!0,options:[{label:(0,z.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,z.__)("Right","ablocks"),value:"right",icon:"right"}],attributeName:"buttonAlignment",attributeValue:m,setAttributes:i}):null,"classic"===u?(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"gap",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.rQ,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}):null,(0,L.jsx)(Ut,{label:(0,z.__)("Search source","ablocks"),options:[{label:(0,z.__)("Any","ablocks"),value:"any"},...M.fX],attributeName:"source",attributeValue:o,setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Allow collapse","ablocks"),attributeName:"allowCollapse", | |
| 2551 | -attributeValue:d,setAttributes:i,isResponsive:!1}),(0,L.jsx)(ot,{label:(0,z.__)("Search Box Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{label:(0,z.__)("Search Box Border","ablocks"),attributeName:"searchBoxBorder",attributeValue:I,setAttributes:i,isResponsive:!0})]}),(0,L.jsx)(D,{title:(0,z.__)("Search Field","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ae,{label:(0,z.__)("Placeholder","ablocks"),attributeName:"placeholder",attributeValue:n,setAttributes:i,placeholder:(0,z.__)("Enter your placeholder","ablocks")})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"inputTextColor",attributeValue:R,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"inputBgColor",attributeValue:S,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"inputTypography",attributeValue:P,setAttributes:i, | |
| 2552 | -isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"inputTextShadow",attributeValue:W,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"inputTextStroke",attributeValue:U,setAttributes:i,isResponsive:!0})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Search Button","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Button type","ablocks"),options:[{label:(0,z.__)("Text","ablocks"),value:"text"},{label:(0,z.__)("Icon","ablocks"),value:"icon"},{label:(0,z.__)("Both","ablocks"),value:"both"}],attributeName:"isIcon",attributeValue:s,setAttributes:i}),"icon"!==s?(0,L.jsx)(ae,{label:(0,z.__)("Text","ablocks"),attributeName:"buttonText",attributeValue:p,setAttributes:i,placeholder:(0,z.__)("Enter your text","ablocks")}):null,"text"!==s?(0,L.jsx)(vt,{label:(0,z.__)("Icon size","ablocks"),min:16,max:100,hasUnit:!0,isInline:!1, | |
| 2553 | -isResponsive:!0,attributeName:"iconWidth",attributeValue:r,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.kN,autoSyncRange:!0}):null,(0,L.jsx)(vt,{label:(0,z.__)("Button Size","ablocks"),min:30,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"searchBtnWidth",attributeValue:b,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.tc})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"buttonTextColor",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"buttonBgColor",attributeValue:g,setAttributes:i}),"icon"!==s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"buttonTextShadow", | |
| 2554 | -attributeValue:y,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"buttonTextStroke",attributeValue:T,setAttributes:i,isResponsive:!0})]})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"buttonTextColorH",attributeValue:x,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"buttonBgColorH",attributeValue:f,setAttributes:i}),"icon"!==s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypographyH",attributeValue:_,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"buttonTextShadowH",attributeValue:k,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"buttonTextStrokeH",attributeValue:v,setAttributes:i,isResponsive:!0})]})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0, | |
| 2555 | -z.__)("Loading Spinner","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"loadingSpinnerColor",attributeValue:N,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Search Result Container","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Position","ablocks"),options:e_,attributeName:"position",attributeValue:e?.position,setAttributes:i}),O&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Horizontal","ablocks"),isInline:!0,options:i_,isResponsive:!0,attributeName:"horizontalAlignment",attributeValue:e?.horizontalAlignment,attributeObjectKey:"horizontalAlignment",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Offset X","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"horizontalOffset",attributeValue:e?.horizontalOffset,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.gc,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Vertical","ablocks"),isInline:!0, | |
| 2556 | -isResponsive:!0,options:o_,attributeName:"verticalAlignment",attributeValue:e?.verticalAlignment,attributeObjectKey:"verticalAlignment",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Offset Y","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"verticalOffset",attributeValue:e?.verticalOffset,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.kf,autoSyncRange:!0})]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vt,{label:(0,z.__)("List width","ablocks"),min:10,max:1e3,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:c,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.JT,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"listGap",attributeValue:V,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.rW,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0, | |
| 2557 | -L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",attributeValue:j,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"listBorder",attributeValue:e?.listBorder,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Search Result Item","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vt,{label:(0,z.__)("Item width","ablocks"),min:10,max:400,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"itemWidth",attributeValue:e?.itemWidth,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.SN,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Item Height","ablocks"),min:10,max:400,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"searchItemHeight",attributeValue:e?.searchItemHeight,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.RS,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1, | |
| 2558 | -isResponsive:!0,attributeName:"itemGap",attributeValue:e?.itemGap,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:t_.Qk,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"itemPadding",attributeValue:e?.itemPadding,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Search Item Title","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"searchResTypography",attributeValue:A,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"searchResTColor",attributeValue:w,setAttributes:i})]})]})})})}a_.propTypes={};const l_={ | |
| 2507 | +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 qv(t){const{attributes:e}=t,{block_id:i,headingTag:o,heading:a,isDismissible:l,noticeClose:n}=e;return(0,I.jsxs)(hc,{blockId:i,name:Fv.UU, | |
| 2508 | +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,{})})]})}qv.propTypes={},qv.defaultProps={},(0,M.xV)(Ov.UU)&&(0,o.registerBlockType)(Ov.UU,{title:(0,L.__)("Notification","ablocks"),attributes:Ov.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--notification"}),edit:function(t){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"" | |
| 2509 | +;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-notice-header",Xv(i),Xv(i,"Tablet"),Xv(i,"Mobile"),e(t=>Xv(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-notice-title",Bv(i),Bv(i,"Tablet"),Bv(i,"Mobile"),e(t=>Bv(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))), | |
| 2510 | +t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-notice-header .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Vv,{...t}),(0,I.jsx)(Yv,{...t})]})},save:Ev,deprecated:[{attributes:Fv.uK,save:t=>(0,I.jsx)(qv,{...t})}]});var $v=i(70399);const Gv=t=>{switch(t){case"px":default:return 500;case"em":return 30;case"rem":return 20}};function Zv(t){const{attributes:e,setAttributes:i}=t,{spacerHeight:o}=e,a=lt(),n=(0,M.Ic)(o,"valueUnit",a);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-spacer-blocks/",children:(0,I.jsx)(V,{title:(0, | |
| 2511 | +L.__)("Spacer","ablocks"),initialOpen:!0,children:(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"spacerHeight",attributeObjectKey:"value",attributeValue:o,setAttributes:i,hasUnit:!0,min:0,max:Gv(n),unitOptions:[{value:"px",label:"px"}],isInline:!1,attributeDefaultValue:$v.i})})})})})}const Kv={UU:"ablocks/spacer",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},spacerHeight:{type:"object",default:{value:50,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", | |
| 2512 | +commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"", | |
| 2513 | +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:"", | |
| 2514 | +topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px", | |
| 2515 | +imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"", | |
| 2516 | +imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px", | |
| 2517 | +offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"", | |
| 2518 | +scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 2519 | +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 Jv(t){ | |
| 2520 | +const{attributes:e,setAttributes:i}=t,{block_id:o,spacerHeight:a}=e,l=lt(),n=`${s=(0,M.Ic)(a,"value",l)||0,Math.max(1,Math.min(s,1e3))}px`;var s;return(0,I.jsx)(Yb.A,{blockId:o,name:Kv.UU,attributes:e,children:(0,I.jsx)(N.ResizableBox,{size:{height:n,width:"100%"},minHeight:1,enable:{bottom:!0},className:"ablocks-spacer__box",onResizeStop:(t,e,o)=>{const n=o.clientHeight;i({spacerHeight:(0,M.jI)($v.i.spacerHeight.default,{...a,[`value${l}`]:n})})}})})}const Qv={UU:"ablocks/spacer",uK:{block_id:{type:"string",default:""},spacerHeight:{type:"object",default:{value:50,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", | |
| 2521 | +default:{isLinked:!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:"", | |
| 2522 | +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:"", | |
| 2523 | +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:"", | |
| 2524 | +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:"", | |
| 2525 | +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:"", | |
| 2526 | +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:"", | |
| 2527 | +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:{ | |
| 2528 | +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 t_({attributes:t}){const{block_id:e,spacerHeight:i}=t,o=i?.value||0;return(0,I.jsx)(hc,{blockId:e,name:Qv.UU,attributes:t,children:(0,I.jsx)("div",{className:"ablocks-spacer__box",style:{height:`${o}px`,width:"100%"}})})}function e_(t){ | |
| 2529 | +const{attributes:e,setAttributes:i}=t,{videoSource:o,videoStartTime:a,videoEndTime:n,youtubeURL:s="",vimeoURL:r="",externalLink:b="",selfHostedURL:c="",autoplay:d,mute:u,loop:p,playerControl:m,downloadButton:h,privacyMode:g,introTitle:f,introPortrait:y,introByline:T,preload:H,aspectRatio:M,cssFilter:x}=e,k=lt();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-advanced-video-block/",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:[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Vimeo","ablocks"),value:"vimeo"},{label:(0,L.__)("Youtube","ablocks"),value:"youtube"},{label:(0,L.__)("Self hosted","ablocks"),value:"selfHosted"}],isResponsive:!1,attributeValue:o,attributeName:"videoSource",setAttributes:i, | |
| 2530 | +disableDynamicContent:!0}),"youtube"===o&&(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:s,attributeName:"youtubeURL",setAttributes:i,disableDynamicContent:!0}),"vimeo"===o&&(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:r,attributeName:"vimeoURL",setAttributes:i}),"selfHosted"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("External link","ablocks"),attributeValue:b,isResponsive:!1,attributeName:"externalLink",setAttributes:i,disableDynamicContent:!0}),b?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Link","ablocks"),placeholder:"",attributeValue:c,attributeName:"selfHostedURL",setAttributes:i,disableDynamicContent:!0})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{children:(0,L.__)("Video","ablocks")}),(0,I.jsx)(Ks,{allowedTypes:["video"],attributeValue:e,deviceType:k,onSelectImageHandler:t=>{i({videoUrl:t?.url})},onRemoveImageHandler:()=>{i({videoUrl:void 0})}, | |
| 2531 | +attributeName:"videoUrl",disableDynamicContent:!0})]})]}),(0,I.jsx)(It,{}),(0,I.jsxs)("div",{className:"ablocks-video--times-wrapper",children:[(0,I.jsx)(As,{label:(0,L.__)("Start","ablocks"),attributeName:"videoStartTime",attributeValue:parseInt(a)||0,setAttributes:i}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("Specify a start time (in seconds)","ablocks")}),"vimeo"!==o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("End","ablocks"),attributeName:"videoEndTime",attributeValue:parseInt(n)||0,setAttributes:i}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("Specify a end time (in seconds)","ablocks")})]})]}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Video options","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Autoplay","ablocks"),attributeValue:d,isResponsive:!1,attributeName:"autoplay",setAttributes:i}),(0,I.jsx)(Ot,{label:(0, | |
| 2532 | +L.__)("Mute","ablocks"),attributeValue:u,isResponsive:!1,attributeName:"mute",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop","ablocks"),attributeValue:p,isResponsive:!1,attributeName:"loop",setAttributes:i}),("selfHosted"===o||"youtube"===o)&&(0,I.jsx)(Ot,{label:(0,L.__)("Player controls","ablocks"),attributeValue:m,isResponsive:!1,attributeName:"playerControl",setAttributes:i}),"selfHosted"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Download button","ablocks"),attributeValue:h,isResponsive:!1,attributeName:"downloadButton",setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Preload","ablocks"),options:[{label:(0,L.__)("Metadata","ablocks"),value:"metadata"},{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("None","ablocks"),value:"none"}],isResponsive:!1,attributeValue:H,attributeName:"preload",setAttributes:i}),(0,I.jsxs)("div",{className:"ablocks-control-field-description",children:[(0, | |
| 2533 | +L.__)("Preload attribute lets you specify how the video should be loaded when the page loads.","ablocks")," ",(0,I.jsx)("a",{target:"_blank",href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#attr-preload",rel:"noreferrer",children:(0,L.__)("Learn more","ablocks")})]})]}),("youtube"===o||"vimeo"===o)&&(0,I.jsxs)("div",{className:"ablocks-control",children:[(0,I.jsx)(Ot,{label:(0,L.__)("Privacy mode","ablocks"),attributeValue:g,isResponsive:!1,attributeName:"privacyMode",setAttributes:i}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)('When you turn on privacy mode YouTube Vimeo won"t store information about visitors on your website unless they play the video.',"ablocks")})]}),"vimeo"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Intro title","ablocks"),attributeValue:f,isResponsive:!1,attributeName:"introTitle",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Intro portrait","ablocks"),attributeValue:y, | |
| 2534 | +isResponsive:!1,attributeName:"introPortrait",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Intro byline","ablocks"),attributeValue:T,isResponsive:!1,attributeName:"introByline",setAttributes:i})]})]}),"selfHosted"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)("p",{children:(0,L.__)("Poster","ablocks")}),(0,I.jsx)(Is,{setAttributes:i,allowedTypes:["image"],attributeValue:e,deviceType:k,attributeName:"poster",onSelectImageHandler:t=>{i({poster:t?.url})},onRemoveImageHandler:()=>{i({poster:void 0})}})]})]}),style:(0,I.jsxs)("div",{className:"ablocks-control",children:[(0,I.jsx)(Ut,{label:(0,L.__)("Aspect ratio","ablocks"),options:[{label:"1:1",value:"1"},{label:"3:2",value:"1.5"},{label:"4:3",value:"1.33333"},{label:"16:9",value:"1.77777"},{label:"21:9",value:"2.33333"},{label:"9:16",value:"0.5625"}],isResponsive:!1,attributeValue:M,attributeName:"aspectRatio",setAttributes:i}),(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:x, | |
| 2535 | +attributeName:"cssFilter",setAttributes:i})]})})})})})})}(0,M.xV)(Kv.UU)&&(0,o.registerBlockType)(Kv.UU,{title:(0,L.__)("Spacer","ablocks"),attributes:Kv.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-spacer"}),edit:function(t){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?"":(0,b.applyFilters)("ablocks.spacer.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Zv,{...t}),(0,I.jsx)(Jv,{...t})]})},save:function({attributes:t}){const{block_id:e,spacerHeight:i}=t,o=i?.value||0;return(0,I.jsx)(sc,{blockId:e,name:Kv.UU,attributes:t,children:(0,I.jsx)("div",{ | |
| 2536 | +className:"ablocks-spacer__box",style:{height:`${o}px`,width:"100%"}})})},deprecated:[{attributes:Qv.uK,save:t=>(0,I.jsx)(t_,{...t})}]}),e_.propTypes={};const i_={UU:"ablocks/video",uK:{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},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:{ | |
| 2537 | +type:"boolean",default:!0},poster:{type:"string",default:""},preload:{type:"string",default:"metadata"},aspectRatio:{type:"string",default:"1.77777"},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},_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:"", | |
| 2538 | +widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 2539 | +unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"", | |
| 2540 | +positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 2541 | +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:"", | |
| 2542 | +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:"", | |
| 2543 | +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:{ | |
| 2544 | +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"}}, | |
| 2545 | +_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"}}}},o_={autoplay:Y().bool,mute:Y().bool,loop:Y().bool,poster:Y().string,preload:Y().string,videoUrl:Y().string,videoStartTime:Y().string,videoEndTime:Y().string,externalLink:Y().bool,selfHostedURL:Y().string,playerControl:Y().bool,downloadButton:Y().bool};function a_(t){ | |
| 2546 | +const{autoplay:e=!1,mute:i=!1,loop:o=!1,poster:a="",preload:l="",videoUrl:n="",videoStartTime:s="",videoEndTime:r="",externalLink:b=!1,selfHostedURL:c="",playerControl:d=!1,downloadButton:u=!1}=t,p=((t,e)=>{const i=t||0,o=e||"";let a;return a=i&&o?`#t=${i},${o}`:i?`#t=${i}`:"",a})(s,r);return(0,I.jsx)("video",{src:(b?c:n)+p,autoPlay:e,muted:i,loop:o,poster:a||"",preload:l,controls:d,controlsList:u?"nodownload":"",className:"ablocks-video-player"})}function l_(t){const{attributes:e}=t,{block_id:i,videoSource:o,loop:a,mute:n,autoplay:s,videoUrl:r,selfHostedURL:b,externalLink:c,playerControl:d,downloadButton:u,vimeoURL:p,youtubeURL:m,privacyMode:h,introPortrait:g,introTitle:f,introByline:y,videoStartTime:T,videoEndTime:H,poster:M,preload:x}=e;let k;if("none"!==o)switch(o){case"youtube":k=(0,I.jsx)(ac.A,{block_id:i,autoplay:s,mute:n,loop:a,youtubeURL:m,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u,privacyMode:h});break;case"selfHosted": | |
| 2547 | +k=(0,I.jsx)(a_,{block_id:i,autoplay:s,mute:n,loop:a,poster:M,preload:x,videoUrl:r,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u});break;case"vimeo":k=(0,I.jsx)(lc.A,{block_id:i,autoplay:s,mute:n,loop:a,vimeoURL:p,privacyMode:h,videoStartTime:T,introPortrait:g,introTitle:f,introByline:y,isBackground:!1});break;default:k=void 0}return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:i,name:i_.UU,attributes:{...e,className:"ablocks-prevent-select"},children:k})})}a_.propTypes=o_,l_.propTypes={};const n_=(t,e="")=>{const i={};return""!==t?.aspectRatio&&void 0!==t?.aspectRatio&&(i["aspect-ratio"]=t?.aspectRatio),{...i,...(0,cy.qD)(t?.cssFilter,e)}};function s_(t){ | |
| 2548 | +const{attributes:e}=t,{block_id:i,videoSource:o,loop:a,mute:n,autoplay:s,videoUrl:r,selfHostedURL:b,externalLink:c,playerControl:d,downloadButton:u,vimeoURL:p,youtubeURL:m,privacyMode:h,introPortrait:g,introTitle:f,introByline:y,videoStartTime:T,videoEndTime:H,poster:M,preload:x}=e;let k;if("none"!==o)switch(o){case"youtube":k=(0,I.jsx)(ac.A,{block_id:i,autoplay:s,mute:n,loop:a,youtubeURL:m,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u,privacyMode:h});break;case"selfHosted":k=(0,I.jsx)(a_,{block_id:i,autoplay:s,mute:n,loop:a,poster:M,preload:x,videoUrl:r,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u});break;case"vimeo":k=(0,I.jsx)(lc.A,{block_id:i,autoplay:s,mute:n,loop:a,vimeoURL:p,privacyMode:h,videoStartTime:T,introPortrait:g,introTitle:f,introByline:y,isBackground:!1});break;default:k=void 0}return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:i_.UU,attributes:e, | |
| 2549 | +children:k})})}s_.propTypes={};const r_={UU:"ablocks/video",uK:{block_id:{type:"string",default:""},videoSource:{type:"string",default:"youtube"},videoStartTime:{type:"string",default:""},videoEndTime:{type:"string",default:""},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},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"},cssFilter:{ | |
| 2550 | +type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},_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:{ | |
| 2551 | +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:"", | |
| 2552 | +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:"", | |
| 2553 | +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:"", | |
| 2554 | +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:"", | |
| 2555 | +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:"", | |
| 2556 | +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:"", | |
| 2557 | +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:{ | |
| 2558 | +type:"string",default:""}}};function b_(t){const{attributes:e}=t,{block_id:i,videoSource:o,loop:a,mute:n,autoplay:s,videoUrl:r,selfHostedURL:b,externalLink:c,playerControl:d,downloadButton:u,vimeoURL:p,youtubeURL:m,privacyMode:h,introPortrait:g,introTitle:f,introByline:y,videoStartTime:T,videoEndTime:H,poster:M,preload:x}=e;let k;if("none"!==o)switch(o){case"youtube":k=(0,I.jsx)(ac.A,{block_id:i,autoplay:s,mute:n,loop:a,youtubeURL:m,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u,privacyMode:h});break;case"selfHosted":k=(0,I.jsx)(a_,{block_id:i,autoplay:s,mute:n,loop:a,poster:M,preload:x,videoUrl:r,videoStartTime:T,videoEndTime:H,externalLink:c,selfHostedURL:b,playerControl:d,downloadButton:!u});break;case"vimeo":k=(0,I.jsx)(lc.A,{block_id:i,autoplay:s,mute:n,loop:a,vimeoURL:p,privacyMode:h,videoStartTime:T,introPortrait:g,introTitle:f,introByline:y,isBackground:!1});break;default:k=void 0}return(0,I.jsx)(l().Fragment,{children:(0, | |
| 2559 | +I.jsx)(hc,{blockId:i,name:r_.UU,attributes:e,children:k})})}b_.propTypes={},(0,M.xV)(i_.UU)&&(0,o.registerBlockType)(i_.UU,{title:(0,L.__)("Video","ablocks"),attributes:i_.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-video"}),edit:function(t){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}}",n_(i),n_(i,"Tablet"),n_(i,"Mobile"),(e=t=>n_(i,t),"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{})),(0,b.applyFilters)("ablocks.video.editorInlineCSS",null,i,t)||t.generateCSS());var e},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(e_,{...t}),(0,I.jsx)(l_,{...t})]})}, | |
| 2560 | +save:s_,deprecated:[{attributes:r_.uK,save:b_}]});var c_=i(98479);const d_=[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Absolute","ablocks"),value:"absolute"},{label:(0,L.__)("Fixed","ablocks"),value:"fixed"}],u_=[{label:"arrow-left-alt",value:"left",icon:"left"},{label:"arrow-right-alt",value:"right",icon:"right"}],p_=[{label:"arrow-up-alt",value:"top",icon:"align-top"},{label:"arrow-down-alt",value:"bottom",icon:"align-bottom"}];function m_(t){ | |
| 2561 | +const{attributes:e,setAttributes:i}=t,{source:o,gap:a,placeholder:n,isIcon:s,iconWidth:r,searchBtnWidth:b,listWidth:c,allowCollapse:d,variant:u,buttonText:p,buttonAlignment:m,buttonTextColor:h,buttonBgColor:g,buttonBgColorH:f,buttonTextShadow:y,buttonTextStroke:T,buttonTypography:H,buttonTextColorH:x,buttonTextShadowH:k,buttonTextStrokeH:v,buttonTypographyH:_,inputTextColor:R,inputBgColor:S,inputTextShadow:W,inputTextStroke:P,inputTypography:U,listPadding:j,searchResTColor:w,searchResTypography:z,loadingSpinnerColor:C,searchBoxBorder:A,listGap:N}=e,O="absolute"===e.position||"fixed"===e.position;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-search-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Search","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Variant","ablocks"),options:[{label:(0,L.__)("Classic","ablocks"),value:"classic"},{label:(0, | |
| 2562 | +L.__)("Minimal","ablocks"),value:"minimal"}],attributeName:"variant",attributeValue:u,setAttributes:i}),"minimal"===u?(0,I.jsx)(Jt,{label:(0,L.__)("Button Alignment","ablocks"),isInline:!0,options:[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}],attributeName:"buttonAlignment",attributeValue:m,setAttributes:i}):null,"classic"===u?(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"gap",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.rQ,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}):null,(0,I.jsx)(Ut,{label:(0,L.__)("Search source","ablocks"),options:[{label:(0,L.__)("Any","ablocks"),value:"any"},...M.fX],attributeName:"source",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Allow collapse","ablocks"),attributeName:"allowCollapse", | |
| 2563 | +attributeValue:d,setAttributes:i,isResponsive:!1}),(0,I.jsx)(at,{label:(0,L.__)("Search Box Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Search Box Border","ablocks"),attributeName:"searchBoxBorder",attributeValue:A,setAttributes:i,isResponsive:!0})]}),(0,I.jsx)(V,{title:(0,L.__)("Search Field","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(le,{label:(0,L.__)("Placeholder","ablocks"),attributeName:"placeholder",attributeValue:n,setAttributes:i,placeholder:(0,L.__)("Enter your placeholder","ablocks")})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"inputTextColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"inputBgColor",attributeValue:S,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"inputTypography",attributeValue:U,setAttributes:i, | |
| 2564 | +isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"inputTextShadow",attributeValue:W,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"inputTextStroke",attributeValue:P,setAttributes:i,isResponsive:!0})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Search Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Button type","ablocks"),options:[{label:(0,L.__)("Text","ablocks"),value:"text"},{label:(0,L.__)("Icon","ablocks"),value:"icon"},{label:(0,L.__)("Both","ablocks"),value:"both"}],attributeName:"isIcon",attributeValue:s,setAttributes:i}),"icon"!==s?(0,I.jsx)(le,{label:(0,L.__)("Text","ablocks"),attributeName:"buttonText",attributeValue:p,setAttributes:i,placeholder:(0,L.__)("Enter your text","ablocks")}):null,"text"!==s?(0,I.jsx)(_t,{label:(0,L.__)("Icon size","ablocks"),min:16,max:100,hasUnit:!0,isInline:!1, | |
| 2565 | +isResponsive:!0,attributeName:"iconWidth",attributeValue:r,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.kN,autoSyncRange:!0}):null,(0,I.jsx)(_t,{label:(0,L.__)("Button Size","ablocks"),min:30,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"searchBtnWidth",attributeValue:b,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.tc})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"buttonTextColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"buttonBgColor",attributeValue:g,setAttributes:i}),"icon"!==s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"buttonTextShadow", | |
| 2566 | +attributeValue:y,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"buttonTextStroke",attributeValue:T,setAttributes:i,isResponsive:!0})]})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"buttonTextColorH",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"buttonBgColorH",attributeValue:f,setAttributes:i}),"icon"!==s&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypographyH",attributeValue:_,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"buttonTextShadowH",attributeValue:k,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"buttonTextStrokeH",attributeValue:v,setAttributes:i,isResponsive:!0})]})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0, | |
| 2567 | +L.__)("Loading Spinner","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"loadingSpinnerColor",attributeValue:C,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Search Result Container","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Position","ablocks"),options:d_,attributeName:"position",attributeValue:e?.position,setAttributes:i}),O&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Horizontal","ablocks"),isInline:!0,options:u_,isResponsive:!0,attributeName:"horizontalAlignment",attributeValue:e?.horizontalAlignment,attributeObjectKey:"horizontalAlignment",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Offset X","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"horizontalOffset",attributeValue:e?.horizontalOffset,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.gc,autoSyncRange:!0}),(0,I.jsx)(Jt,{label:(0,L.__)("Vertical","ablocks"),isInline:!0, | |
| 2568 | +isResponsive:!0,options:p_,attributeName:"verticalAlignment",attributeValue:e?.verticalAlignment,attributeObjectKey:"verticalAlignment",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Offset Y","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"verticalOffset",attributeValue:e?.verticalOffset,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.kf,autoSyncRange:!0})]}),(0,I.jsx)(It,{}),(0,I.jsx)(_t,{label:(0,L.__)("List width","ablocks"),min:10,max:1e3,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:c,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.JT,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"listGap",attributeValue:N,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.rW,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0, | |
| 2569 | +I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",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:"listBorder",attributeValue:e?.listBorder,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Search Result Item","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Item width","ablocks"),min:10,max:400,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"itemWidth",attributeValue:e?.itemWidth,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.SN,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Item Height","ablocks"),min:10,max:400,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"searchItemHeight",attributeValue:e?.searchItemHeight,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.RS,autoSyncRange:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1, | |
| 2570 | +isResponsive:!0,attributeName:"itemGap",attributeValue:e?.itemGap,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:c_.Qk,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],autoSyncRange:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"itemPadding",attributeValue:e?.itemPadding,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Search Item Title","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"searchResTypography",attributeValue:z,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"searchResTColor",attributeValue:w,setAttributes:i})]})]})})})}m_.propTypes={};const h_={ | |
| 2559 | 2571 | UU:"ablocks/search",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},currentPostID:{type:"integer",default:""},searchTerm:{type:"string",default:""},source:{type:"string",default:"any"},isIcon:{type:"string",default:"icon"},variant:{type:"string",default:"classic"},allowCollapse:{type:"boolean",default:!1},position:{type:"string",default:"default"},buttonText:{type:"string",default:"Search"},buttonBgColor:{type:"string",default:""},buttonBgColorH:{type:"string",default:""},buttonTextColor:{type:"string",default:""},buttonTextColorH:{type:"string",default:""},placeholder:{type:"string",default:"Write anything..."},placeholderColor:{type:"string",default:"gray"},inputTextColor:{type:"string",default:"#949494"},inputBgColor:{type:"string",default:"#FFFFFF"},searchResTColor:{type:"string",default:"#000000"},loadingSpinnerColor:{type:"string",default:"#fff"},buttonAlignment:{type:"object",default:{value:"left"}},searchResTypographyGlobal:{type:"string", |
| 2560 | 2572 | default:""},searchResTypography:{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:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px", |
| 2561 | 2573 | fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},buttonTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},buttonTypographyHGlobal:{type:"string",default:""},buttonTypographyH:{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:"", |
| 2562 | 2574 | lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonTextShadowH:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},buttonTextStrokeH:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},inputTypographyGlobal:{type:"string",default:""},inputTypography:{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", |
| @@ -2575,43 +2587,43 @@ | ||
| 2575 | 2587 | 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:""}}, |
| 2576 | 2588 | _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, |
| 2577 | 2589 | 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:"", |
| 2578 | 2590 | 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, |
| 2579 | -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},n_=i.p+"images/search.0c047b5e.png";function s_(t){const{attributes:e,setAttributes:i}=t,[o,n]=(0,a.useState)(!1),[s,b]=(0,a.useState)([]),[c,d]=(0,a.useState)(!1),[u,p]=(0,a.useState)(""),[m,h]=(0,a.useState)(!1),{block_id:g,currentPostID:f,isIcon:y,allowCollapse:T,placeholder:H,variant:x,buttonText:k,buttonAlignment:v,source:_}=e,R=(0,r.useSelect)(t=>t("core/editor").getCurrentPostId(),[]);(0,a.useEffect)(()=>{i({currentPostID:R})},[R]);const S=()=>(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none", | |
| 2580 | -stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-search",children:[(0,L.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,L.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),W=()=>(0,L.jsx)("svg",{viewBox:"0 0 800 800",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)("circle",{className:"ablocks-search-block__spin",cx:"400",cy:"400",fill:"none",r:"200",strokeWidth:"50",stroke:"currentColor",strokeDasharray:"700 1400",strokeLinecap:"round"})}),U=(0,a.useCallback)(t=>{if(!t.trim())return b([]),void n(!0);d(!0),(0,M.In)({action:"ablocks/search_block_ajax_action",searchQuery:t,source:_,current_page_id:f}).then(t=>{t.data.success?(b(Object.values(t?.data.data.data)),n(!0)):(b([]),n(!0)),d(!1)})},[_,f]),P=(0,a.useCallback)(ie(t=>U(t),1e3),[U]),j=t=>{t.preventDefault(),h(t=>!t),U(u)},w="left"===v.value||"left"===v,A="right"===v.value||"right"===v,D="classic"===x,{isDynamicEnabled:N,data:I}=Zc({attributeValue:H});return(0, | |
| 2581 | -L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{}),(0,L.jsx)(Nb.A,{blockId:g,name:l_.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsxs)("div",{className:`ablocks-block--search-bar ${x} `,children:[(0,L.jsxs)("form",{className:`ablocks-block--search-form searchbar ${"both"===y||"text"===y?y:""}`,children:[w&&!D&&(0,L.jsxs)("button",{className:`ablocks-block--search-button ${["both","text"].includes(y)?y:""} searchbar-submit-left`,onClick:j,children:["text"!==y&&(0,L.jsx)("span",{children:c?W():S()}),"icon"!==y&&(c?(0,L.jsx)("span",{children:W()}):(0,L.jsx)(Yc,{tagName:"span",identifier:"text",value:k,placeholder:(0,z.__)("write","ablocks"),className:"ablocks-button__text",onChange:t=>i({value:t}),"aria-label":(0,z.__)("Text","ablocks"),withoutInteractiveFormatting:!0}))]}),(0,L.jsx)("input",{ | |
| 2582 | -className:`ablocks-block--search-input searchbar-input ${T?"ablocks-block--search-input-collapse":""} ${m?"searchbar-input-open":""} ${"both"===y||"text"===y?y:""} searchbar-input-${v.value}`,type:"text",placeholder:N?I:H,value:u,onChange:t=>{const e=t.target.value;p(e),e.trim()?P(e):(n(!1),b([]))}}),(A||D)&&(0,L.jsxs)("button",{className:`ablocks-block--search-button searchbar-submit ${["both","text"].includes(y)?y:""} searchbar-submit-right`,onClick:j,children:[(0,L.jsx)("span",{children:c?W():S()}),"icon"!==y&&(0,L.jsx)(Yc,{"aria-label":(0,z.__)("Text","ablocks"),tagName:"span",identifier:"text",withoutInteractiveFormatting:!0,value:k,placeholder:(0,z.__)("write","ablocks"),className:"ablocks-button__text",onChange:t=>i({value:t})})]})]}),o&&(0,L.jsx)("ul",{className:"ablocks-block--search-result",children:Array.isArray(s)&&s.length>0?s.map((t,e)=>(0,L.jsxs)("li",{className:"ablocks-block--search-result__list",children:[t.thumbnail?(0,L.jsx)("a",{href:t.link,children:(0, | |
| 2583 | -L.jsx)("img",{className:"ablocks-block--search-result__list-thumbnail",src:t.thumbnail,alt:t.title})}):(0,L.jsx)("a",{href:t.link,children:(0,L.jsx)("img",{className:"ablocks-block--search-result__list-thumbnail",src:n_,alt:"placeholder"})}),(0,L.jsx)("a",{className:"ablocks-block--search-result__list-title",href:t.link,children:t.title})]},e)):(0,L.jsxs)("p",{className:"ablocks-block--search-result__list-no-data",children:["No results available for your search"," "]})})]})})]})}s_.propTypes={},s_.defaultProps={};const r_=(t,e="")=>({...(0,Ob.qD)({attributeValue:t.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e}),...(0,Gt.qD)(t?.fullscreenButtonAlignment,"justify-content",e),...(0,y.qD)((0,M.Zy)(t?.searchBoxBorder,{unitWidth:"px",unitRadius:"px"}),e)}),b_=(t,e="")=>({...(0,y.a9)((0,M.Zy)(t?.searchBoxBorder,{unitWidthH:"px",unitRadiusH:"px"}),e)}),c_=(t,e="")=>{const i={overflow:"auto"} | |
| 2584 | -;t?.position&&(i.position=t.position);const o={...(0,Ob.qD)({attributeValue:t.horizontalOffset,attributeObjectKey:"value",isResponsive:!0,property:"left",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})},a={...(0,Ob.qD)({attributeValue:t.horizontalOffset,attributeObjectKey:"value",isResponsive:!0,property:"right",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})},l={...(0,Ob.qD)({attributeValue:t.verticalOffset,attributeObjectKey:"value",isResponsive:!0,property:"bottom",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})},n={...(0,Ob.qD)({attributeValue:t.verticalOffset,attributeObjectKey:"value",isResponsive:!0,property:"top",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})};"default"===t?.position&&(delete o.left,delete o.right,delete n.top,delete l.bottom);const s=(0,M.Zy)(t?.listBorder,{unitWidth:"px",unitRadius:"px"}),r=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...(0,Ob.qD)({attributeValue:t.listWidth,attributeObjectKey:"value", | |
| 2585 | -isResponsive:!0,property:"width",defaultValue:"",hasUnit:!0,unitDefaultValue:"%",device:e}),...(0,Ob.qD)({attributeValue:t.listGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t.searchItemHeight,attributeObjectKey:"value",isResponsive:!0,property:"height",defaultValue:300,hasUnit:!0,unitDefaultValue:"px",device:e}),...o,...a,...l,...n,...i,...(0,c.qD)(r,"padding",e),...(0,y.qD)(s,e)}},d_=(t,e="")=>{const i=(0,M.Zy)(t?.listBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},u_=(t,e="")=>{const i=(0,M.Zy)(t?.itemBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.itemPadding,{unit:"px"});return{...(0,Ob.qD)({attributeValue:t.itemWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:"",hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:"", | |
| 2586 | -hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,c.qD)(o,"padding",e),...(0,y.qD)(i,e)}},p_=(t,e="")=>{const i=(0,M.Zy)(t?.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},m_=(t,e="")=>{const i=(0,M.Zy)(t.searchResTypography,{weight:"400"}),o=t.searchResTypographyGlobal?t.searchResTypographyGlobal:"";return{color:(0,gs.qD)(t?.searchResTColor),...(0,P.qD)(i,e,o)}},h_=(t,e="")=>({...(0,Ob.qD)({attributeValue:t.thumbnailWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:"",hasUnit:!0,unitDefaultValue:"%",device:e}),...(0,Ob.qD)({attributeValue:t.thumbnailHeight,attributeObjectKey:"value",isResponsive:!0,property:"height",defaultValue:"",hasUnit:!0,unitDefaultValue:"px",device:e})}),g_=(t,e="")=>{const i=(0,M.Zy)(t.inputTypography,{weight:"400"}),o=t.inputTypographyGlobal?t.inputTypographyGlobal:"";return{color:(0,gs.qD)(t?.inputTextColor),background:(0,gs.qD)(t?.inputBgColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.inputTextStroke,e),...(0, | |
| 2587 | -pc.qD)(t?.inputTextShadow)}},f_=t=>({color:(0,gs.qD)(t?.loadingSpinnerColor)}),y_=(t,e="")=>({background:(0,gs.qD)(t?.buttonBgColor)}),T_=(t,e="")=>({background:(0,gs.qD)(t?.buttonBgColorH)}),H_=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"";return{color:(0,gs.qD)(t?.buttonTextColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.buttonTextStroke,e),...(0,pc.qD)(t?.buttonTextShadow),...(0,Ob.qD)({attributeValue:t.searchBtnWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e})}},M_=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypographyH,{weight:"400"}),o=t.buttonTypographyHGlobal?t.buttonTypographyHGlobal:"";return{color:(0,gs.qD)(t?.buttonTextColorH),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.buttonTextStrokeH,e),...(0,pc.qD)(t?.buttonTextShadowH)}},x_=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.iconWidth,attributeObjectKey:"value",isResponsive:!0,property:"width", | |
| 2588 | -defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e})});(0,M.xV)(l_.UU)&&(0,o.registerBlockType)(l_.UU,{attributes:l_.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--search"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block--search-form",r_(i),r_(i,"Tablet"),r_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-form:hover",b_(i),b_(i,"Tablet"),b_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-input",g_(i),g_(i,"Tablet"),g_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-input::placeholder",g_(i)), | |
| 2589 | -t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button",y_(i),y_(i,"Tablet"),y_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button:hover",T_(i),T_(i,"Tablet"),T_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button > span",H_(i),H_(i,"Tablet"),H_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button:hover > span",M_(i),M_(i,"Tablet"),M_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button > span > svg",x_(i),x_(i,"Tablet"),x_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result",c_(i),c_(i,"Tablet"),c_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result:hover",d_(i),d_(i,"Tablet"),d_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list",u_(i),u_(i,"Tablet"),u_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list:hover",p_(i),p_(i,"Tablet"),p_(i,"Mobile")), | |
| 2590 | -t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list-thumbnail",h_(i),h_(i,"Tablet"),h_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} a.ablocks-block--search-result__list-title",m_(i),m_(i,"Tablet"),m_(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-search-block__spin",f_(i),f_(i),f_(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(a_,{...t}),(0,L.jsx)(s_,{...t})]})},save:()=>null});var k_=i(58509);const v_=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}},R_=t=>"px"===t?900:"%"===t?150:700;function S_(t){ | |
| 2591 | -const{attributes:e,setAttributes:i}=t,{verticalAlign:o,autoplayDelay:a,autoplay:n,reverseDirection:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,carouselHeight:p,slidesPerView:m,speed:h,effect:g,paginationType:f,paginationPositionY:y,paginationPositionX:T,paginationColor:H,paginationHoverColor:x,paginationActiveColor:k,paginationActiveHoverColor:v,paginationSize:_,paginationHoverSize:R,paginationActiveSize:S,paginationActiveHoverSize:W,navigationIconSize:U,navigationIconPositionY:P,navigationIconPositionNextX:j,navigationIconPositionPrevX:w,navigationIconColor:A,navigationIconBgColor:N,gap:I}=e,V=at(),O=(0,M.Ic)(U,"valueUnit",V);return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-carousel-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Carousel","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(l().Fragment,{children:[(0, | |
| 2592 | -L.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,L.jsx)("i",{children:"These feature will only works in frontend"})}),(0,L.jsx)(Ut,{label:(0,z.__)("Choose Effect","ablocks"),options:[{label:(0,z.__)("Slide","ablocks"),value:"slide"},{label:(0,z.__)("Fade","ablocks"),value:"fade"},{label:(0,z.__)("Cube","ablocks"),value:"cube"},{label:(0,z.__)("Flip","ablocks"),value:"flip"}],attributeName:"effect",attributeValue:g,setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Reverse Direction","ablocks"),attributeValue:s,setAttributes:i,attributeName:"reverseDirection"}),"slide"===g&&(0,L.jsx)(vt,{label:(0,z.__)("Slides Per View","ablocks"),attributeValue:m,setAttributes:i,attributeName:"slidesPerView",min:1,step:1,max:10,isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Po}),"slide"===g&&m["value"+V]>1&&(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),attributeValue:I,setAttributes:i,attributeName:"gap",min:0,step:1,max:100,isInline:!1,isResponsive:!0, | |
| 2593 | -attributeDefaultValue:k_.rQ}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Loop","ablocks"),attributeValue:e?.isLoop,setAttributes:i,attributeName:"isLoop"}),(0,L.jsx)(vt,{label:(0,z.__)("Speed (ms)","ablocks"),attributeValue:h,setAttributes:i,attributeName:"speed",step:50,min:0,max:5e3,isInline:!1,isResponsive:!1}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Grab Cursor","ablocks"),attributeValue:c,setAttributes:i,attributeName:"grabCursor"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Mousewheel","ablocks"),attributeValue:d,setAttributes:i,attributeName:"mousewheel"})]}),style:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Carousel Height","ablocks"),attributeName:"carouselHeight",attributeValue:p,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"}],min:0,max:["vh"].includes(p["valueUnit"+V])?100:1e3,isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Qh}),(0,L.jsx)(vb,{label:(0,z.__)("Vertical Alignment","ablocks"), | |
| 2594 | -setAttributes:i,attributeName:"verticalAlign",attributeValue:o,options:[{label:(0,z.__)("Top","ablocks"),value:"start"},{label:(0,z.__)("Center","ablocks"),value:"center"},{label:(0,z.__)("Bottom","ablocks"),value:"end"}],isResponsive:!0,allowDeselect:!1})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Pagination","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Pagination","ablocks"),attributeValue:e?.pagination,setAttributes:i,attributeName:"pagination"}),e.pagination&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Pagination Type","ablocks"),options:[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Border 1","ablocks"),value:"border1"},{label:(0,z.__)("Border 2","ablocks"),value:"border2"},{label:(0,z.__)("Border 3","ablocks"),value:"border3"}],attributeName:"paginationType",attributeValue:f,setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0, | |
| 2595 | -z.__)("Pagination Clickable","ablocks"),attributeValue:e?.paginationClickable,setAttributes:i,attributeName:"paginationClickable"}),(0,L.jsx)(vt,{label:(0,z.__)("Position Y","ablocks"),attributeName:"paginationPositionY",attributeValue:y,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===y?.valueUnit?-250:-50,max:R_(y?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Vq,autoSyncRange:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Position X","ablocks"),attributeName:"paginationPositionX",attributeValue:T,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===T?.valueUnit?-250:-50,max:R_(T?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:k_.a5,autoSyncRange:!1})]})]}),style:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"paginationColor",attributeValue:H,setAttributes:i | |
| 2596 | -}),(0,L.jsx)(vs,{label:(0,z.__)("Active Color","ablocks"),attributeName:"paginationActiveColor",attributeValue:k,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"paginationSize",attributeValue:_,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:k_.g7}),(0,L.jsx)(vt,{label:(0,z.__)("Active Size","ablocks"),attributeName:"paginationActiveSize",attributeValue:S,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Is})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"paginationHoverColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Active Color","ablocks"),attributeName:"paginationActiveHoverColor",attributeValue:v,setAttributes:i | |
| 2597 | -}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"paginationHoverSize",attributeValue:R,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Ud}),(0,L.jsx)(vt,{label:(0,z.__)("Active Size","ablocks"),attributeName:"paginationActiveHoverSize",attributeValue:W,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Qg})]})}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"paginationBorder",attributeValue:e?.paginationBorder,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Active Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"activePaginationBorder",attributeValue:e?.activePaginationBorder,setAttributes:i})]})})}),(0,L.jsxs)(D,{ | |
| 2598 | -title:(0,z.__)("Autoplay","ablocks"),initialOpen:!1,children:[(0,L.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,L.jsx)("i",{children:(0,z.__)("These feature will only works in frontend","ablocks")})}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Autoplay","ablocks"),attributeValue:n,setAttributes:i,attributeName:"autoplay"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Autoplay Reverse","ablocks"),attributeValue:b,setAttributes:i,attributeName:"autoPlayReverse"}),n&&(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Autoplay Delay (ms)","ablocks"),attributeValue:a,setAttributes:i,attributeName:"autoplayDelay",min:0,step:100,max:25e3,isInline:!1,isResponsive:!1}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Autoplay Pause On Hover","ablocks"),attributeValue:r,setAttributes:i,attributeName:"autoplayPauseOnHover"})]})]}),(0,L.jsxs)(D,{title:(0,z.__)("Navigation","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0, | |
| 2599 | -z.__)("Navigation","ablocks"),attributeValue:u,setAttributes:i,attributeName:"navigation"}),u&&(0,L.jsx)(Rb,{content:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Left Icon","ablocks"),attributes:e,attributePrefix:"leftIcon",setAttributes:i,legacySupport:!0}),(0,L.jsx)(Ld,{label:(0,z.__)("Right Icon","ablocks"),attributePrefix:"rightIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"navigationIconSize",attributeValue:U,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:v_(O),isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Pu}),(0,L.jsx)(vt,{label:(0,z.__)("Position Y","ablocks"),attributeName:"navigationIconPositionY",attributeValue:P,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===P?.valueUnit?-250:-50,max:R_(P?.valueUnit||"%"),isInline:!1,isResponsive:!0, | |
| 2600 | -attributeDefaultValue:k_.Yd,autoSyncRange:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Nav Next X","ablocks"),attributeName:"navigationIconPositionNextX",attributeValue:j,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===j?.valueUnit?-250:-50,max:R_(j?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:k_.Wu,autoSyncRange:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Nav Prev X","ablocks"),attributeName:"navigationIconPositionPrevX",attributeValue:w,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===w?.valueUnit?-250:-50,max:R_(w?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:k_.qO,autoSyncRange:!1})]}),style:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"navigationIconColor",attributeValue:A,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"), | |
| 2601 | -attributeName:"navigationIconBgColor",attributeValue:N,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"navigationIconColorH",attributeValue:e?.navigationIconColorH,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"navigationIconBgColorH",attributeValue:e?.navigationIconBgColorH,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.navigationIconTransition||0,attributeName:"navigationIconTransition",setAttributes:i})]})}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"navigationIconPadding",attributeValue:e?.navigationIconPadding,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"navigationIconBorder",attributeValue:e?.navigationIconBorder,setAttributes:i | |
| 2602 | -}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"navigationIconBoxShadow",attributeValue:e?.navigationIconBoxShadow,setAttributes:i})]})})]})]})})})}S_.propTypes={},S_.defaultProps={};const W_={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean",default:!0},carouselSlideLength:{type:"number",default:1},isLoop:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!0},autoPlayReverse:{type:"boolean",default:!1},autoplayDelay:{type:"number",default:3e3},autoplayProgress:{type:"boolean",default:!0},autoplayPauseOnHover:{type:"boolean",default:!0},speed:{type:"number",default:800},paginationType:{type:"string",default:"default"},pagination:{type:"boolean",default:!0},paginationClickable:{type:"boolean",default:!0},navigation:{type:"boolean",default:!0}, | |
| 2603 | -navigationIconColor:{type:"string",default:"#686868"},navigationIconColorH:{type:"string",default:""},navigationIconBgColor:{type:"string",default:"#e4e4e4"},navigationIconBgColorH:{type:"string",default:""},navigationIconTransition:{type:"number",default:""},paginationColor:{type:"string",default:"black"},paginationHoverColor:{type:"string",default:"black"},paginationActiveColor:{type:"string",default:"black"},paginationActiveHoverColor:{type:"string",default:"black"},grabCursor:{type:"boolean",default:!0},mousewheel:{type:"boolean",default:!0},verticalAlignment:{type:"string",default:"center"},verticalAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},navigationIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"", | |
| 2604 | -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:"", | |
| 2605 | -unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},paginationBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0, | |
| 2606 | -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:"", | |
| 2607 | -topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activePaginationBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"", | |
| 2608 | -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:"", | |
| 2609 | -unitRadiusHMobile:"",transitionDuration:""}},navigationIconPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigationIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},carouselHeight:{type:"object",default:{value:300,valueTablet:300,valueMobile:300,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionX:{type:"object",default:{value:47,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionY:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"", | |
| 2610 | -valueUnitMobile:""}},paginationSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationHoverSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveHoverSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconSize:{type:"object",default:{value:35,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},slidesPerView:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},gap:{type:"object",default:{value:0,valueTablet:0,valueMobile:0}},navigationIconPositionY:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 2611 | -navigationIconPositionNextX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionPrevX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},leftIconSvgPath:{type:"string",default:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"},leftIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftIconClass:{type:"string",default:"far fa-arrow-alt-circle-left"},leftIconImageUrl:{type:"string",default:""},leftIconImageID:{type:"number",default:0},leftIconImageSize:{type:"string",default:""},leftIconColor:{type:"string",default:"#69727d"},leftIconBgColor:{type:"string",default:""},leftIconHoverColor:{ | |
| 2612 | -type:"string",default:""},leftIconHoverBgColor:{type:"string",default:""},leftIconType:{type:"string",default:"default"},leftIconShape:{type:"string",default:"circle"},leftIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},leftIconBoxShadow:{type:"object",default:{ | |
| 2613 | -preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftIconSize:{type:"number",default:55},leftIconRotate:{type:"number",default:0},leftIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIcontransitionDuration:{type:"number",default:0},leftIconImageWidth:{type:"number",default:0},rightIconSvgPath:{type:"string", | |
| 2591 | +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},g_=i.p+"images/search.0c047b5e.png";function f_(t){const{attributes:e,setAttributes:i}=t,[o,n]=(0,a.useState)(!1),[s,b]=(0,a.useState)([]),[c,d]=(0,a.useState)(!1),[u,p]=(0,a.useState)(""),[m,h]=(0,a.useState)(!1),{block_id:g,currentPostID:f,isIcon:y,allowCollapse:T,placeholder:H,variant:x,buttonText:k,buttonAlignment:v,source:_}=e,R=(0,r.useSelect)(t=>t("core/editor").getCurrentPostId(),[]);(0,a.useEffect)(()=>{i({currentPostID:R})},[R]);const S=()=>(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none", | |
| 2592 | +stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-search",children:[(0,I.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,I.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),W=()=>(0,I.jsx)("svg",{viewBox:"0 0 800 800",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("circle",{className:"ablocks-search-block__spin",cx:"400",cy:"400",fill:"none",r:"200",strokeWidth:"50",stroke:"currentColor",strokeDasharray:"700 1400",strokeLinecap:"round"})}),P=(0,a.useCallback)(t=>{if(!t.trim())return b([]),void n(!0);d(!0),(0,M.In)({action:"ablocks/search_block_ajax_action",searchQuery:t,source:_,current_page_id:f}).then(t=>{t.data.success?(b(Object.values(t?.data.data.data)),n(!0)):(b([]),n(!0)),d(!1)})},[_,f]),U=(0,a.useCallback)(oe(t=>P(t),1e3),[P]),j=t=>{t.preventDefault(),h(t=>!t),P(u)},w="left"===v.value||"left"===v,z="right"===v.value||"right"===v,C="classic"===x,{isDynamicEnabled:A,data:N}=id({attributeValue:H});return(0, | |
| 2593 | +I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsx)(Yb.A,{blockId:g,name:h_.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:`ablocks-block--search-bar ${x} `,children:[(0,I.jsxs)("form",{className:`ablocks-block--search-form searchbar ${"both"===y||"text"===y?y:""}`,children:[w&&!C&&(0,I.jsxs)("button",{className:`ablocks-block--search-button ${["both","text"].includes(y)?y:""} searchbar-submit-left`,onClick:j,children:["text"!==y&&(0,I.jsx)("span",{children:c?W():S()}),"icon"!==y&&(c?(0,I.jsx)("span",{children:W()}):(0,I.jsx)($c,{tagName:"span",identifier:"text",value:k,placeholder:(0,L.__)("write","ablocks"),className:"ablocks-button__text",onChange:t=>i({value:t}),"aria-label":(0,L.__)("Text","ablocks"),withoutInteractiveFormatting:!0}))]}),(0,I.jsx)("input",{ | |
| 2594 | +className:`ablocks-block--search-input searchbar-input ${T?"ablocks-block--search-input-collapse":""} ${m?"searchbar-input-open":""} ${"both"===y||"text"===y?y:""} searchbar-input-${v.value}`,type:"text",placeholder:A?N:H,value:u,onChange:t=>{const e=t.target.value;p(e),e.trim()?U(e):(n(!1),b([]))}}),(z||C)&&(0,I.jsxs)("button",{className:`ablocks-block--search-button searchbar-submit ${["both","text"].includes(y)?y:""} searchbar-submit-right`,onClick:j,children:[(0,I.jsx)("span",{children:c?W():S()}),"icon"!==y&&(0,I.jsx)($c,{"aria-label":(0,L.__)("Text","ablocks"),tagName:"span",identifier:"text",withoutInteractiveFormatting:!0,value:k,placeholder:(0,L.__)("write","ablocks"),className:"ablocks-button__text",onChange:t=>i({value:t})})]})]}),o&&(0,I.jsx)("ul",{className:"ablocks-block--search-result",children:Array.isArray(s)&&s.length>0?s.map((t,e)=>(0,I.jsxs)("li",{className:"ablocks-block--search-result__list",children:[t.thumbnail?(0,I.jsx)("a",{href:t.link,children:(0, | |
| 2595 | +I.jsx)("img",{className:"ablocks-block--search-result__list-thumbnail",src:t.thumbnail,alt:t.title})}):(0,I.jsx)("a",{href:t.link,children:(0,I.jsx)("img",{className:"ablocks-block--search-result__list-thumbnail",src:g_,alt:"placeholder"})}),(0,I.jsx)("a",{className:"ablocks-block--search-result__list-title",href:t.link,children:t.title})]},e)):(0,I.jsxs)("p",{className:"ablocks-block--search-result__list-no-data",children:["No results available for your search"," "]})})]})})]})}f_.propTypes={},f_.defaultProps={};const y_=(t,e="")=>({...(0,Eb.qD)({attributeValue:t.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e}),...(0,Zt.qD)(t?.fullscreenButtonAlignment,"justify-content",e),...(0,y.qD)((0,M.Zy)(t?.searchBoxBorder,{unitWidth:"px",unitRadius:"px"}),e)}),T_=(t,e="")=>({...(0,y.a9)((0,M.Zy)(t?.searchBoxBorder,{unitWidthH:"px",unitRadiusH:"px"}),e)}),H_=(t,e="")=>{const i={overflow:"auto"} | |
| 2596 | +;t?.position&&(i.position=t.position);const o={...(0,Eb.qD)({attributeValue:t.horizontalOffset,attributeObjectKey:"value",isResponsive:!0,property:"left",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})},a={...(0,Eb.qD)({attributeValue:t.horizontalOffset,attributeObjectKey:"value",isResponsive:!0,property:"right",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})},l={...(0,Eb.qD)({attributeValue:t.verticalOffset,attributeObjectKey:"value",isResponsive:!0,property:"bottom",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})},n={...(0,Eb.qD)({attributeValue:t.verticalOffset,attributeObjectKey:"value",isResponsive:!0,property:"top",defaultValue:230,hasUnit:!0,unitDefaultValue:"px",device:e})};"default"===t?.position&&(delete o.left,delete o.right,delete n.top,delete l.bottom);const s=(0,M.Zy)(t?.listBorder,{unitWidth:"px",unitRadius:"px"}),r=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...(0,Eb.qD)({attributeValue:t.listWidth,attributeObjectKey:"value", | |
| 2597 | +isResponsive:!0,property:"width",defaultValue:"",hasUnit:!0,unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.listGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t.searchItemHeight,attributeObjectKey:"value",isResponsive:!0,property:"height",defaultValue:300,hasUnit:!0,unitDefaultValue:"px",device:e}),...o,...a,...l,...n,...i,...(0,c.qD)(r,"padding",e),...(0,y.qD)(s,e)}},M_=(t,e="")=>{const i=(0,M.Zy)(t?.listBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},x_=(t,e="")=>{const i=(0,M.Zy)(t?.itemBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.itemPadding,{unit:"px"});return{...(0,Eb.qD)({attributeValue:t.itemWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:"",hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:"", | |
| 2598 | +hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,c.qD)(o,"padding",e),...(0,y.qD)(i,e)}},k_=(t,e="")=>{const i=(0,M.Zy)(t?.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},v_=(t,e="")=>{const i=(0,M.Zy)(t.searchResTypography,{weight:"400"}),o=t.searchResTypographyGlobal?t.searchResTypographyGlobal:"";return{color:(0,Hs.qD)(t?.searchResTColor),...(0,U.qD)(i,e,o)}},R_=(t,e="")=>({...(0,Eb.qD)({attributeValue:t.thumbnailWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:"",hasUnit:!0,unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.thumbnailHeight,attributeObjectKey:"value",isResponsive:!0,property:"height",defaultValue:"",hasUnit:!0,unitDefaultValue:"px",device:e})}),S_=(t,e="")=>{const i=(0,M.Zy)(t.inputTypography,{weight:"400"}),o=t.inputTypographyGlobal?t.inputTypographyGlobal:"";return{color:(0,Hs.qD)(t?.inputTextColor),background:(0,Hs.qD)(t?.inputBgColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.inputTextStroke,e),...(0, | |
| 2599 | +fc.qD)(t?.inputTextShadow)}},W_=t=>({color:(0,Hs.qD)(t?.loadingSpinnerColor)}),P_=(t,e="")=>({background:(0,Hs.qD)(t?.buttonBgColor)}),U_=(t,e="")=>({background:(0,Hs.qD)(t?.buttonBgColorH)}),j_=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.buttonTextColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.buttonTextStroke,e),...(0,fc.qD)(t?.buttonTextShadow),...(0,Eb.qD)({attributeValue:t.searchBtnWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:0,unitDefaultValue:"px",device:e})}},w_=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypographyH,{weight:"400"}),o=t.buttonTypographyHGlobal?t.buttonTypographyHGlobal:"";return{color:(0,Hs.qD)(t?.buttonTextColorH),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.buttonTextStrokeH,e),...(0,fc.qD)(t?.buttonTextShadowH)}},z_=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.iconWidth,attributeObjectKey:"value",isResponsive:!0,property:"width", | |
| 2600 | +defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e})});(0,M.xV)(h_.UU)&&(0,o.registerBlockType)(h_.UU,{attributes:h_.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--search"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block--search-form",y_(i),y_(i,"Tablet"),y_(i,"Mobile"),e(t=>y_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-form:hover",T_(i),T_(i,"Tablet"),T_(i,"Mobile"),e(t=>T_(i,t))), | |
| 2601 | +t.addClassStyles("{{WRAPPER}} .ablocks-block--search-input",S_(i),S_(i,"Tablet"),S_(i,"Mobile"),e(t=>S_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-input::placeholder",S_(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button",P_(i),P_(i,"Tablet"),P_(i,"Mobile"),e(t=>P_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button:hover",U_(i),U_(i,"Tablet"),U_(i,"Mobile"),e(t=>U_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button > span",j_(i),j_(i,"Tablet"),j_(i,"Mobile"),e(t=>j_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button:hover > span",w_(i),w_(i,"Tablet"),w_(i,"Mobile"),e(t=>w_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-button > span > svg",z_(i),z_(i,"Tablet"),z_(i,"Mobile"),e(t=>z_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result",H_(i),H_(i,"Tablet"),H_(i,"Mobile"),e(t=>H_(i,t))), | |
| 2602 | +t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result:hover",M_(i),M_(i,"Tablet"),M_(i,"Mobile"),e(t=>M_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list",x_(i),x_(i,"Tablet"),x_(i,"Mobile"),e(t=>x_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list:hover",k_(i),k_(i,"Tablet"),k_(i,"Mobile"),e(t=>k_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--search-result__list-thumbnail",R_(i),R_(i,"Tablet"),R_(i,"Mobile"),e(t=>R_(i,t))),t.addClassStyles("{{WRAPPER}} a.ablocks-block--search-result__list-title",v_(i),v_(i,"Tablet"),v_(i,"Mobile"),e(t=>v_(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-search-block__spin",W_(i),W_(i),W_(i),e(t=>W_(i))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(m_,{...t}),(0,I.jsx)(f_,{...t})]})},save:()=>null});var C_=i(58509);const A_=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}},L_=t=>"px"===t?900:"%"===t?150:700 | |
| 2603 | +;function D_(t){const{attributes:e,setAttributes:i}=t,{verticalAlign:o,autoplayDelay:a,autoplay:n,reverseDirection:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,carouselHeight:p,slidesPerView:m,speed:h,effect:g,paginationType:f,paginationPositionY:y,paginationPositionX:T,paginationColor:H,paginationHoverColor:x,paginationActiveColor:k,paginationActiveHoverColor:v,paginationSize:_,paginationHoverSize:R,paginationActiveSize:S,paginationActiveHoverSize:W,navigationIconSize:P,navigationIconPositionY:U,navigationIconPositionNextX:j,navigationIconPositionPrevX:w,navigationIconColor:z,navigationIconBgColor:C,gap:A}=e,N=lt(),O=(0,M.Ic)(P,"valueUnit",N);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-carousel-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Carousel","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0, | |
| 2604 | +I.jsxs)(l().Fragment,{children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:"These feature will only works in frontend"})}),(0,I.jsx)(Ut,{label:(0,L.__)("Choose Effect","ablocks"),options:[{label:(0,L.__)("Slide","ablocks"),value:"slide"},{label:(0,L.__)("Fade","ablocks"),value:"fade"},{label:(0,L.__)("Cube","ablocks"),value:"cube"},{label:(0,L.__)("Flip","ablocks"),value:"flip"}],attributeName:"effect",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Reverse Direction","ablocks"),attributeValue:s,setAttributes:i,attributeName:"reverseDirection"}),"slide"===g&&(0,I.jsx)(_t,{label:(0,L.__)("Slides Per View","ablocks"),attributeValue:m,setAttributes:i,attributeName:"slidesPerView",min:1,step:1,max:10,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Po}),"slide"===g&&m["value"+N]>1&&(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeValue:A,setAttributes:i,attributeName:"gap",min:0,step:1,max:100, | |
| 2605 | +isInline:!1,isResponsive:!0,attributeDefaultValue:C_.rQ}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Loop","ablocks"),attributeValue:e?.isLoop,setAttributes:i,attributeName:"isLoop"}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (ms)","ablocks"),attributeValue:h,setAttributes:i,attributeName:"speed",step:50,min:0,max:5e3,isInline:!1,isResponsive:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Grab Cursor","ablocks"),attributeValue:c,setAttributes:i,attributeName:"grabCursor"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Mousewheel","ablocks"),attributeValue:d,setAttributes:i,attributeName:"mousewheel"})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Carousel Height","ablocks"),attributeName:"carouselHeight",attributeValue:p,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"vh",label:"vh"}],min:0,max:["vh"].includes(p["valueUnit"+N])?100:1e3,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Qh}),(0,I.jsx)(Wb,{label:(0, | |
| 2606 | +L.__)("Vertical Alignment","ablocks"),setAttributes:i,attributeName:"verticalAlign",attributeValue:o,options:[{label:(0,L.__)("Top","ablocks"),value:"start"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Bottom","ablocks"),value:"end"}],isResponsive:!0,allowDeselect:!1})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Pagination","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Pagination","ablocks"),attributeValue:e?.pagination,setAttributes:i,attributeName:"pagination"}),e.pagination&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Pagination Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Border 1","ablocks"),value:"border1"},{label:(0,L.__)("Border 2","ablocks"),value:"border2"},{label:(0,L.__)("Border 3","ablocks"),value:"border3"}],attributeName:"paginationType",attributeValue:f,setAttributes:i}),(0,I.jsx)(Ot,{ | |
| 2607 | +isResponsive:!1,label:(0,L.__)("Pagination Clickable","ablocks"),attributeValue:e?.paginationClickable,setAttributes:i,attributeName:"paginationClickable"}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),attributeName:"paginationPositionY",attributeValue:y,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===y?.valueUnit?-250:-50,max:L_(y?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Vq,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Position X","ablocks"),attributeName:"paginationPositionX",attributeValue:T,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===T?.valueUnit?-250:-50,max:L_(T?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.a5,autoSyncRange:!1})]})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"paginationColor", | |
| 2608 | +attributeValue:H,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"paginationActiveColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"paginationSize",attributeValue:_,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.g7}),(0,I.jsx)(_t,{label:(0,L.__)("Active Size","ablocks"),attributeName:"paginationActiveSize",attributeValue:S,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Is})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"paginationHoverColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"paginationActiveHoverColor", | |
| 2609 | +attributeValue:v,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"paginationHoverSize",attributeValue:R,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Ud}),(0,I.jsx)(_t,{label:(0,L.__)("Active Size","ablocks"),attributeName:"paginationActiveHoverSize",attributeValue:W,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Qg})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"paginationBorder",attributeValue:e?.paginationBorder,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Active Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activePaginationBorder",attributeValue:e?.activePaginationBorder, | |
| 2610 | +setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Autoplay","ablocks"),initialOpen:!1,children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("These feature will only works in frontend","ablocks")})}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay","ablocks"),attributeValue:n,setAttributes:i,attributeName:"autoplay"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay Reverse","ablocks"),attributeValue:b,setAttributes:i,attributeName:"autoPlayReverse"}),n&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Autoplay Delay (ms)","ablocks"),attributeValue:a,setAttributes:i,attributeName:"autoplayDelay",min:0,step:100,max:25e3,isInline:!1,isResponsive:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Autoplay Pause On Hover","ablocks"),attributeValue:r,setAttributes:i,attributeName:"autoplayPauseOnHover"})]})]}),(0,I.jsxs)(V,{title:(0,L.__)("Navigation","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{ | |
| 2611 | +isResponsive:!1,label:(0,L.__)("Navigation","ablocks"),attributeValue:u,setAttributes:i,attributeName:"navigation"}),u&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Left Icon","ablocks"),attributes:e,attributePrefix:"leftIcon",setAttributes:i,legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Right Icon","ablocks"),attributePrefix:"rightIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"navigationIconSize",attributeValue:P,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:A_(O),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Pu}),(0,I.jsx)(_t,{label:(0,L.__)("Position Y","ablocks"),attributeName:"navigationIconPositionY",attributeValue:U,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===U?.valueUnit?-250:-50,max:L_(U?.valueUnit||"%"),isInline:!1, | |
| 2612 | +isResponsive:!0,attributeDefaultValue:C_.Yd,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Nav Next X","ablocks"),attributeName:"navigationIconPositionNextX",attributeValue:j,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===j?.valueUnit?-250:-50,max:L_(j?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.Wu,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Nav Prev X","ablocks"),attributeName:"navigationIconPositionPrevX",attributeValue:w,setAttributes:i,hasUnit:!0,unitOptions:[{value:"%",label:"%"},{value:"px",label:"px"}],min:"px"===w?.valueUnit?-250:-50,max:L_(w?.valueUnit||"%"),isInline:!1,isResponsive:!0,attributeDefaultValue:C_.qO,autoSyncRange:!1})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigationIconColor",attributeValue:z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0, | |
| 2613 | +L.__)("Background Color","ablocks"),attributeName:"navigationIconBgColor",attributeValue:C,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigationIconColorH",attributeValue:e?.navigationIconColorH,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"navigationIconBgColorH",attributeValue:e?.navigationIconBgColorH,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.navigationIconTransition||0,attributeName:"navigationIconTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"navigationIconPadding",attributeValue:e?.navigationIconPadding,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"navigationIconBorder", | |
| 2614 | +attributeValue:e?.navigationIconBorder,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"navigationIconBoxShadow",attributeValue:e?.navigationIconBoxShadow,setAttributes:i})]})})]})]})})})}D_.propTypes={},D_.defaultProps={};const N_={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean",default:!0},carouselSlideLength:{type:"number",default:1},isLoop:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!0},autoPlayReverse:{type:"boolean",default:!1},autoplayDelay:{type:"number",default:3e3},autoplayProgress:{type:"boolean",default:!0},autoplayPauseOnHover:{type:"boolean",default:!0},speed:{type:"number",default:800},paginationType:{type:"string",default:"default"},pagination:{type:"boolean",default:!0},paginationClickable:{type:"boolean", | |
| 2615 | +default:!0},navigation:{type:"boolean",default:!0},navigationIconColor:{type:"string",default:"#686868"},navigationIconColorH:{type:"string",default:""},navigationIconBgColor:{type:"string",default:"#e4e4e4"},navigationIconBgColorH:{type:"string",default:""},navigationIconTransition:{type:"number",default:""},paginationColor:{type:"string",default:"black"},paginationHoverColor:{type:"string",default:"black"},paginationActiveColor:{type:"string",default:"black"},paginationActiveHoverColor:{type:"string",default:"black"},grabCursor:{type:"boolean",default:!0},mousewheel:{type:"boolean",default:!0},verticalAlignment:{type:"string",default:"center"},verticalAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},navigationIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"", | |
| 2616 | +rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"", | |
| 2617 | +leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},paginationBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px", | |
| 2618 | +unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"", | |
| 2619 | +rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activePaginationBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"", | |
| 2620 | +topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"", | |
| 2621 | +unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},navigationIconPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigationIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},carouselHeight:{type:"object",default:{value:300,valueTablet:300,valueMobile:300,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionX:{type:"object",default:{value:47,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},paginationPositionY:{type:"object",default:{value:100,valueTablet:"", | |
| 2622 | +valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},paginationSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationHoverSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},paginationActiveHoverSize:{type:"object",default:{value:8,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconSize:{type:"object",default:{value:35,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},slidesPerView:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},gap:{type:"object",default:{value:0,valueTablet:0,valueMobile:0}},navigationIconPositionY:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%", | |
| 2623 | +valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionNextX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionPrevX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},leftIconSvgPath:{type:"string",default:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"},leftIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftIconClass:{type:"string",default:"far fa-arrow-alt-circle-left"},leftIconImageUrl:{type:"string",default:""},leftIconImageID:{type:"number",default:0},leftIconImageSize:{type:"string",default:""},leftIconColor:{type:"string",default:"#69727d"},leftIconBgColor:{ | |
| 2624 | +type:"string",default:""},leftIconHoverColor:{type:"string",default:""},leftIconHoverBgColor:{type:"string",default:""},leftIconType:{type:"string",default:"default"},leftIconShape:{type:"string",default:"circle"},leftIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px", | |
| 2625 | +transitionDuration:""}},leftIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftIconSize:{type:"number",default:55},leftIconRotate:{type:"number",default:0},leftIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftIcontransitionDuration:{type:"number",default:0},leftIconImageWidth:{type:"number",default:0},rightIconSvgPath:{type:"string", | |
| 2614 | 2626 | default:"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z"},rightIconSvgViewBox:{type:"string",default:"0 0 512 512"},rightIconClass:{type:"string",default:"far fa-arrow-alt-circle-right"},rightIconImageUrl:{type:"string",default:""},rightIconImageID:{type:"number",default:0},rightIconImageSize:{type:"string",default:""},rightIconColor:{type:"string",default:"#69727d"},rightIconBgColor:{type:"string",default:""},rightIconHoverColor:{type:"string",default:""},rightIconHoverBgColor:{type:"string",default:""},rightIconType:{type:"string",default:"default"},rightIconShape:{type:"string",default:"circle"},rightIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightIconBorder:{ |
| 2615 | 2627 | type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},rightIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},rightIconSize:{type:"number",default:55},rightIconRotate:{ |
| 2616 | 2628 | type:"number",default:0},rightIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},rightIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightIcontransitionDuration:{type:"number",default:0},rightIconImageWidth:{type:"number",default:0},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"", |
| 2617 | 2629 | 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:"", |
| @@ -2620,21 +2632,21 @@ | ||
| 2620 | 2632 | 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:"", |
| 2621 | 2633 | 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, |
| 2622 | 2634 | 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:"", |
| 2623 | 2635 | 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:"", |
| 2624 | -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 U_(t={},e={}){const i=t=>null!=t&&""!==t,o=window.ABlocksGlobal||{},a=[{suffix:"Tablet", | |
| 2625 | -max:parseInt(o.breakpoints?.tablet,10)||800},{suffix:"Mobile",max:parseInt(o.breakpoints?.mobile,10)||480},...(o.responsive_devices||[]).filter(t=>t?.suffix&&"Tablet"!==t.id&&"Mobile"!==t.id&&!(parseInt(t.min,10)>0)&&parseInt(t.max,10)>0).map(t=>({suffix:t.suffix,max:parseInt(t.max,10)}))].sort((t,e)=>e.max-t.max);let l=i(t?.value)?t.value:1,n=i(e?.value)?e.value:0;const s={[a[0].max+1]:{slidesPerView:l,spaceBetween:n}};return a.forEach((o,r)=>{const b=t?.["value"+o.suffix],c=e?.["value"+o.suffix];l=i(b)?b:l,n=i(c)?c:n;const d=a[r+1];s[d?d.max+1:0]={slidesPerView:l,spaceBetween:n}}),s}function P_(t){const{attributes:e,setAttributes:i,clientId:n}=t,s=(0,r.useDispatch)(),{block_id:b,alignment:c,navigation:d,carouselSlideLength:u,pagination:p,paginationClickable:m,paginationType:h}=e,{insertBlock:g}=wp.blockEditor?s("core/block-editor"):s("core/editor"),{children:f,...y}=(0,C.useInnerBlocksProps)({className:"swiper-wrapper"},{template:[["ablocks/carousel-child"]],renderAppender:!1}),T={ | |
| 2636 | +animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function I_(t={},e={}){const i=t=>null!=t&&""!==t,o=window.ABlocksGlobal||{},a=[{suffix:"Tablet", | |
| 2637 | +max:parseInt(o.breakpoints?.tablet,10)||800},{suffix:"Mobile",max:parseInt(o.breakpoints?.mobile,10)||480},...(o.responsive_devices||[]).filter(t=>t?.suffix&&"Tablet"!==t.id&&"Mobile"!==t.id&&!(parseInt(t.min,10)>0)&&parseInt(t.max,10)>0).map(t=>({suffix:t.suffix,max:parseInt(t.max,10)}))].sort((t,e)=>e.max-t.max);let l=i(t?.value)?t.value:1,n=i(e?.value)?e.value:0;const s={[a[0].max+1]:{slidesPerView:l,spaceBetween:n}};return a.forEach((o,r)=>{const b=t?.["value"+o.suffix],c=e?.["value"+o.suffix];l=i(b)?b:l,n=i(c)?c:n;const d=a[r+1];s[d?d.max+1:0]={slidesPerView:l,spaceBetween:n}}),s}function V_(t){const{attributes:e,setAttributes:i,clientId:n}=t,s=(0,r.useDispatch)(),{block_id:b,alignment:c,navigation:d,carouselSlideLength:u,pagination:p,paginationClickable:m,paginationType:h}=e,{insertBlock:g}=wp.blockEditor?s("core/block-editor"):s("core/editor"),{children:f,...y}=(0,D.useInnerBlocksProps)({className:"swiper-wrapper"},{template:[["ablocks/carousel-child"]],renderAppender:!1}),T={ | |
| 2626 | 2638 | pagination:p,navigation:d,paginationClickable:m};(0,a.useEffect)(()=>{const t=function(t,e){if(!t)return null;const i=t?.querySelector(".ablocks-carousel-swiper"),o=t?.querySelector(".ablocks-carousel-navigation__button--prev"),a=t?.querySelector(".ablocks-carousel-navigation__button--next"),l=t?.querySelector(".ablocks-carousel-pagination"),n=i?.getAttribute("data-swiper-options"),s=i?.getAttribute("data-swiper-frontend-options"),r=JSON.parse(i?.getAttribute("data-swiper-slides-per-view")),b=JSON.parse(i?.getAttribute("data-swiper-gap")),c=t?.querySelector(".ablocks-carousel-autoplay-progress svg"),d=t?.querySelector(".ablocks-carousel-autoplay-progress span"),u=JSON.parse(n),p=JSON.parse(s),m={navigation:{nextEl:a,prevEl:o,disabledClass:"ablocks-carousel-navigation__button--disabled"},pagination:{el:l,clickable:!!u.paginationClickable}};return i?new Swiper(i,{observer:!0,observeParents:!0,...e?{}:{allowTouchMove:!1,simulateTouch:!1},...m,...p, |
| 2627 | -breakpoints:e&&"slide"===p?.effect?U_(r,b):{},on:{autoplayTimeLeft(t,e,i){c&&c.style.setProperty("--progress",1-i),d&&(d.textContent=`${Math.ceil(e/1e3)}s`)}}}):null}((0,M.bu)(`.ablocks-block-${b}`));return()=>{t&&!t.destroyed&&t.destroy(!0,!1)}},[p,m,d]);const H=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{H.current?"default"===h?i({paginationColor:"gray",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"",borderStyle:""}}):("border1"===h||"border2"===h||"border3"===h)&&i({paginationColor:"#000000",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"2",borderStyle:"solid"}}):H.current=!0},[h]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:c,setAttributes:i})}),(0,L.jsxs)(Nb.A,{blockId:b,name:W_.UU,attributes:e,children:[(0,L.jsx)("div",{className:"swiper ablocks-carousel-swiper ","data-swiper-options":JSON.stringify(T),children:(0,L.jsxs)("div",{...y, | |
| 2628 | -children:[f,(0,L.jsx)("div",{role:"presentation",onClick:()=>{const t=(0,o.createBlock)("ablocks/carousel-child");g(t,u,n),i({carouselSlideLength:u+1})},className:"swiper-slide ablocks-carousel-swiper-slide--custom",children:(0,L.jsx)("button",{className:"ablocks-carousel-swiper-slide--custom__btn",children:"Add new"})})]})}),p&&(0,L.jsx)("div",{className:"ablocks-carousel-pagination"}),d&&(0,L.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,L.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,L.jsx)(Vd,{attributePrefix:"leftIcon",attributes:e})}),(0,L.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,L.jsx)(Vd,{attributePrefix:"rightIcon",attributes:e})})]})]})]})}P_.propTypes={},P_.defaultProps={};const j_=(t,e="")=>{const{carouselHeight:i,verticalAlign:o}=t,a={...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value", | |
| 2629 | -isResponsive:!0,defaultValue:300,hasUnit:!0,unitDefaultValue:"px",property:"min-height",device:e})};return o["value"+e]&&(a["align-items"]=o["value"+e]),a},w_=(t,e="")=>{const{navigationIconPositionY:i}=t;return{...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:50,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",device:e})}},z_=(t,e="")=>{const{navigationIconPositionNextX:i}=t;return{...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"right",device:e})}},C_=(t,e="")=>{const{navigationIconPositionPrevX:i}=t;return{...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"left",device:e})}},A_=(t,e="")=>{const{navigationIconSize:i}=t;return{...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:35,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e})} | |
| 2630 | -},L_=(t,e="")=>{const{navigationIconColor:i,navigationIconBgColor:o}=t,a={};i&&(a.fill=(0,gs.qD)(i)),o&&(a["background-color"]=(0,gs.qD)(o));const l=(0,M.Zy)(t?.navigationIconPadding,{unit:"px"}),n=(0,M.Zy)(t.navigationIconBorder,{unitWidth:"px",unitRadius:"px"});return{...a,...(0,c.qD)(l,"navigationIconPadding",e),...(0,c.qD)(t?.navigationIconPadding,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t.navigationIconBoxShadow,e)}},D_=(t,e="")=>{const{navigationIconColorH:i,navigationIconBgColorH:o}=t,a={...(0,Ob.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})},l={};i&&(l.fill=(0,gs.qD)(o)),o&&(l["background-color"]=(0,gs.qD)(o));const n=(0,M.Zy)(t.navigationIconBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...a,...l,...(0,y.a9)(n,e),...(0,H.a9)(t.navigationIconBoxShadow,e)}},N_=(t,e="")=>{const{paginationPositionY:i,paginationPositionX:o}=t,a=(0,M.Zy)(i,{value:100}),l=(0,M.Zy)(o,{value:47});return{...(0, | |
| 2631 | -Ob.qD)({attributeValue:a,attributeObjectKey:"value",defaultValue:100,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",device:e}),...(0,Ob.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:47,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"left",device:e})}},I_=(t,e="")=>{const{paginationColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,gs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,gs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,gs.qD)(i),a["border-color"]=(0,gs.qD)(i))),"border3"===o){const{width:i,height:o}=X_(t.paginationSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Ob.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0, | |
| 2632 | -Ob.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(l,e)}},V_=(t,e="")=>{const{paginationHoverColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,gs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,gs.qD)(i),a["background-color"]=(0,gs.qD)(i)):"border2"===o&&(a["background-color"]="transparent",a["border-color"]=(0,gs.qD)(i))),"border3"===o){const{width:i,height:o}=X_(t.paginationHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationHoverBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Ob.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Ob.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8, | |
| 2633 | -isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e)}},O_=(t,e="")=>{const{paginationActiveColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,gs.qD)(i):"border1"===o||"border3"===o?(a["background-color"]=(0,gs.qD)(i),a["border-color"]=(0,gs.qD)(i)):"border2"===o&&(a["border-color"]=(0,gs.qD)(i),a["background-color"]="transparent")),"border3"===o){const{width:i,height:o}=X_(t.paginationActiveSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Ob.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Ob.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0, | |
| 2634 | -y.qD)(l,e)}},Y_=(t,e="")=>{const{paginationActiveHoverColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,gs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,gs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,gs.qD)(i),a["border-color"]=(0,gs.qD)(i))),"border3"===o){const{width:i,height:o}=X_(t.paginationActiveHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Ob.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Ob.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e)}};function X_(t,e=""){const i=(0,M.Zy)(t,{value:8, | |
| 2635 | -valueUnit:"px"}),o="valueUnit"+e,a=Number(i["value"+e]??i.value??8),l=(i[o]??i.valueUnit??"px")||"px";return{height:`${a}${l}`,width:`${1.8*a}${l}`}}function B_(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,carouselSlideLength:T}=e,H={pagination:m,navigation:u,paginationClickable:h},x={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p};n&&(x.initialSlide=T-1),s&&(x.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?x.fadeEffect={crossFade:!0}:"cube"===g&&(x.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const k=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),v=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:W_.UU,attributes:e,children:[(0,L.jsx)("div",{ | |
| 2636 | -className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(H),"data-swiper-frontend-options":JSON.stringify(x),"data-swiper-slides-per-view":JSON.stringify(k),"data-swiper-gap":JSON.stringify(v),children:(0,L.jsx)("div",{className:"swiper-wrapper",children:(0,L.jsx)(C.InnerBlocks.Content,{})})}),m&&(0,L.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,L.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,L.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,L.jsx)(Vd,{attributePrefix:"leftIcon",attributes:e})}),(0,L.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,L.jsx)(Vd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}B_.propTypes={},B_.defaultProps={};const E_={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean", | |
| 2639 | +breakpoints:e&&"slide"===p?.effect?I_(r,b):{},on:{autoplayTimeLeft(t,e,i){c&&c.style.setProperty("--progress",1-i),d&&(d.textContent=`${Math.ceil(e/1e3)}s`)}}}):null}((0,M.bu)(`.ablocks-block-${b}`));return()=>{t&&!t.destroyed&&t.destroy(!0,!1)}},[p,m,d]);const H=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{H.current?"default"===h?i({paginationColor:"gray",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"",borderStyle:""}}):("border1"===h||"border2"===h||"border3"===h)&&i({paginationColor:"#000000",paginationActiveColor:"#000000",paginationBorder:{...e.paginationBorder||{},commonWidth:"2",borderStyle:"solid"}}):H.current=!0},[h]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i})}),(0,I.jsxs)(Yb.A,{blockId:b,name:N_.UU,attributes:e,children:[(0,I.jsx)("div",{className:"swiper ablocks-carousel-swiper ","data-swiper-options":JSON.stringify(T),children:(0,I.jsxs)("div",{...y, | |
| 2640 | +children:[f,(0,I.jsx)("div",{role:"presentation",onClick:()=>{const t=(0,o.createBlock)("ablocks/carousel-child");g(t,u,n),i({carouselSlideLength:u+1})},className:"swiper-slide ablocks-carousel-swiper-slide--custom",children:(0,I.jsx)("button",{className:"ablocks-carousel-swiper-slide--custom__btn",children:"Add new"})})]})}),p&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),d&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})]})}V_.propTypes={},V_.defaultProps={};const O_=(t,e="")=>{const{carouselHeight:i,verticalAlign:o}=t,a={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value", | |
| 2641 | +isResponsive:!0,defaultValue:300,hasUnit:!0,unitDefaultValue:"px",property:"min-height",device:e})};return o["value"+e]&&(a["align-items"]=o["value"+e]),a},Y_=(t,e="")=>{const{navigationIconPositionY:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:50,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",device:e})}},X_=(t,e="")=>{const{navigationIconPositionNextX:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"right",device:e})}},B_=(t,e="")=>{const{navigationIconPositionPrevX:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:-3,hasUnit:!0,isResponsive:!0,unitDefaultValue:"%",property:"left",device:e})}},E_=(t,e="")=>{const{navigationIconSize:i}=t;return{...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",defaultValue:35,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"font-size",device:e})} | |
| 2642 | +},F_=(t,e="")=>{const{navigationIconColor:i,navigationIconBgColor:o}=t,a={};i&&(a.fill=(0,Hs.qD)(i)),o&&(a["background-color"]=(0,Hs.qD)(o));const l=(0,M.Zy)(t?.navigationIconPadding,{unit:"px"}),n=(0,M.Zy)(t.navigationIconBorder,{unitWidth:"px",unitRadius:"px"});return{...a,...(0,c.qD)(l,"navigationIconPadding",e),...(0,c.qD)(t?.navigationIconPadding,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t.navigationIconBoxShadow,e)}},q_=(t,e="")=>{const{navigationIconColorH:i,navigationIconBgColorH:o}=t,a={...(0,Eb.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})},l={};i&&(l.fill=(0,Hs.qD)(o)),o&&(l["background-color"]=(0,Hs.qD)(o));const n=(0,M.Zy)(t.navigationIconBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...a,...l,...(0,y.a9)(n,e),...(0,H.a9)(t.navigationIconBoxShadow,e)}},$_=(t,e="")=>{const{paginationPositionY:i,paginationPositionX:o}=t,a=(0,M.Zy)(i,{value:100}),l=(0,M.Zy)(o,{value:47});return{...(0, | |
| 2643 | +Eb.qD)({attributeValue:a,attributeObjectKey:"value",defaultValue:100,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"top",device:e}),...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:47,isResponsive:!0,hasUnit:!0,unitDefaultValue:"%",property:"left",device:e})}},G_=(t,e="")=>{const{paginationColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=Q_(t.paginationSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0, | |
| 2644 | +Eb.qD)({attributeValue:t.paginationSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(l,e)}},Z_=(t,e="")=>{const{paginationHoverColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]=(0,Hs.qD)(i)):"border2"===o&&(a["background-color"]="transparent",a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=Q_(t.paginationHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.paginationHoverBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationHoverSize,attributeObjectKey:"value",defaultValue:8, | |
| 2645 | +isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e)}},K_=(t,e="")=>{const{paginationActiveColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i)):"border2"===o&&(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent")),"border3"===o){const{width:i,height:o}=Q_(t.paginationActiveSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0, | |
| 2646 | +y.qD)(l,e)}},J_=(t,e="")=>{const{paginationActiveHoverColor:i,paginationType:o}=t,a={};if(i&&("default"===o?a["background-color"]=(0,Hs.qD)(i):"border1"===o||"border3"===o?(a["border-color"]=(0,Hs.qD)(i),a["background-color"]="transparent"):"border2"===o&&(a["background-color"]=(0,Hs.qD)(i),a["border-color"]=(0,Hs.qD)(i))),"border3"===o){const{width:i,height:o}=Q_(t.paginationActiveHoverSize,e);a.width=i,a.height=o,a["border-radius"]="9999px"}const l=(0,M.Zy)(t.activePaginationBorder,{unitWidth:"px",unitRadius:"px"});return{...a,..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),..."border3"===o?{}:(0,Eb.qD)({attributeValue:t.paginationActiveHoverSize,attributeObjectKey:"value",defaultValue:8,isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,y.a9)(l,e)}};function Q_(t,e=""){const i=(0,M.Zy)(t,{value:8, | |
| 2647 | +valueUnit:"px"}),o="valueUnit"+e,a=Number(i["value"+e]??i.value??8),l=(i[o]??i.valueUnit??"px")||"px";return{height:`${a}${l}`,width:`${1.8*a}${l}`}}function tR(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,carouselSlideLength:T}=e,H={pagination:m,navigation:u,paginationClickable:h},x={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p};n&&(x.initialSlide=T-1),s&&(x.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?x.fadeEffect={crossFade:!0}:"cube"===g&&(x.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const k=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),v=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:N_.UU,attributes:e,children:[(0,I.jsx)("div",{ | |
| 2648 | +className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(H),"data-swiper-frontend-options":JSON.stringify(x),"data-swiper-slides-per-view":JSON.stringify(k),"data-swiper-gap":JSON.stringify(v),children:(0,I.jsx)("div",{className:"swiper-wrapper",children:(0,I.jsx)(D.InnerBlocks.Content,{})})}),m&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}tR.propTypes={},tR.defaultProps={};const eR={UU:"ablocks/carousel",uK:{block_id:{type:"string",default:""},effect:{type:"string",default:"slide"},reverseDirection:{type:"boolean", | |
| 2637 | 2649 | default:!0},carouselSlideLength:{type:"number",default:1},isLoop:{type:"boolean",default:!1},autoplay:{type:"boolean",default:!0},autoPlayReverse:{type:"boolean",default:!1},autoplayDelay:{type:"number",default:3e3},autoplayProgress:{type:"boolean",default:!0},autoplayPauseOnHover:{type:"boolean",default:!0},speed:{type:"number",default:800},pagination:{type:"boolean",default:!0},paginationClickable:{type:"boolean",default:!0},navigation:{type:"boolean",default:!0},navigationIconColor:{type:"string",default:"#686868"},navigationIconColorH:{type:"string",default:""},navigationIconBgColor:{type:"string",default:"#e4e4e4"},navigationIconBgColorH:{type:"string",default:""},navigationIconTransition:{type:"number",default:""},paginationColor:{type:"string",default:"black"},paginationActiveColor:{type:"string",default:"black"},grabCursor:{type:"boolean",default:!0},mousewheel:{type:"boolean",default:!0},verticalAlignment:{type:"string",default:"center"},navigationIconBorder:{type:"object", |
| 2638 | 2650 | default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"", |
| 2639 | 2651 | topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},navigationIconPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"", |
| 2640 | 2652 | rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},carouselHeight:{type:"object",default:{value:300,valueTablet:300,valueMobile:300,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},navigationIconSize:{type:"object",default:{value:35,valueTablet:35,valueMobile:35,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},slidesPerView:{type:"object",default:{value:1,valueTablet:1,valueMobile:1}},gap:{type:"object",default:{value:0,valueTablet:0,valueMobile:0}},navigationIconPositionY:{type:"object",default:{value:50,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionNextX:{type:"object",default:{value:-3,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},navigationIconPositionPrevX:{type:"object",default:{value:-3,valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},leftIconSvgPath:{type:"string", |
| @@ -2648,14 +2660,14 @@ | ||
| 2648 | 2660 | 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:"", |
| 2649 | 2661 | 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", |
| 2650 | 2662 | 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", |
| 2651 | 2663 | 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", |
| 2652 | -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 F_(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,carouselSlideLength:T}=e,H={pagination:m,navigation:u,paginationClickable:h},x={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p} | |
| 2653 | -;n&&(x.initialSlide=T-1),s&&(x.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?x.fadeEffect={crossFade:!0}:"cube"===g&&(x.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const k=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),v=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:E_.UU,attributes:e,children:[(0,L.jsx)("div",{className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(H),"data-swiper-frontend-options":JSON.stringify(x),"data-swiper-slides-per-view":JSON.stringify(k),"data-swiper-gap":JSON.stringify(v),children:(0,L.jsx)("div",{className:"swiper-wrapper",children:(0,L.jsx)(C.InnerBlocks.Content,{})})}),m&&(0,L.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,L.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,L.jsx)("div",{ | |
| 2654 | -className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,L.jsx)(Vd,{attributePrefix:"leftIcon",attributes:e})}),(0,L.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,L.jsx)(Vd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}F_.propTypes={},F_.defaultProps={},(0,M.xV)(W_.UU)&&(0,o.registerBlockType)(W_.UU,{title:"Carousel",attributes:W_.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{attributes:e,setAttributes:i,clientId:o,isSelected:l}=t,{block_id:n}=e;(0,a.useEffect)(()=>{n&&n===o||i({block_id:o}),e?.blockVersion||i({blockVersion:2})},[n,o]),(0,a.useEffect)(()=>{(!e?.verticalAlign||""!==e?.verticalAlignment&&e?.verticalAlign?.value!==e?.verticalAlignment)&&i({verticalAlign:{value:e?.verticalAlignment||"",valueTablet:"",valueMobile:""},verticalAlignment:""})},[]);const s=(0,a.useMemo)(()=>{ | |
| 2655 | -if(!e?.verticalAlign)return"";let t=null;if(t?2!==e?.blockVersion||t instanceof w?2===e?.blockVersion||t instanceof j||(t=new j(e,o)):t=new w(e,o):t=2===e?.blockVersion?new w(e,o):new j(e,o),null===t)return"";const i=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-carousel-swiper .swiper-wrapper ",j_(e),j_(e,"Tablet"),j_(e,"Mobile"),i(t=>j_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button",w_(e),w_(e,"Tablet"),w_(e,"Mobile"),i(t=>w_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--next",z_(e),z_(e,"Tablet"),z_(e,"Mobile"),i(t=>z_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--prev",C_(e),C_(e,"Tablet"),C_(e,"Mobile"),i(t=>C_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-icon-wrap",A_(e),A_(e,"Tablet"),A_(e,"Mobile"),i(t=>A_(e,t))), | |
| 2656 | -t.addClassStyles("{{WRAPPER}} .ablocks-carousel-pagination",N_(e),N_(e,"Tablet"),N_(e,"Mobile"),i(t=>N_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active",O_(e),O_(e,"Tablet"),O_(e,"Mobile"),i(t=>O_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active:hover",Y_(e),Y_(e,"Tablet"),Y_(e,"Mobile"),i(t=>Y_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet",I_(e),I_(e,"Tablet"),I_(e,"Mobile"),i(t=>I_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet:hover",V_(e),V_(e,"Tablet"),V_(e,"Mobile"),i(t=>V_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon",L_(e),L_(e,"Tablet"),L_(e,"Mobile"),i(t=>L_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon:hover",D_(e),D_(e,"Tablet"),D_(e,"Mobile"),i(t=>D_(e,t))),t.generateCSS()},[e]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),l&&(0, | |
| 2657 | -L.jsx)(S_,{...t}),(0,L.jsx)(P_,{...t})]})},save:B_,deprecated:[{attributes:E_.uK,save:F_}]});const q_={UU:"ablocks/carousel-child",$t:["ablocks/carousel"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 2664 | +yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function iR(t){const{attributes:e}=t,{block_id:i,isLoop:o,autoplayDelay:a,reverseDirection:n,autoplay:s,autoplayPauseOnHover:r,autoPlayReverse:b,grabCursor:c,mousewheel:d,navigation:u,speed:p,pagination:m,paginationClickable:h,effect:g,slidesPerView:f,gap:y,carouselSlideLength:T}=e,H={pagination:m,navigation:u,paginationClickable:h},x={effect:g,loop:o,grabCursor:c,mousewheel:d,speed:p} | |
| 2665 | +;n&&(x.initialSlide=T-1),s&&(x.autoplay={delay:a,pauseOnMouseEnter:r,reverseDirection:b}),"fade"===g?x.fadeEffect={crossFade:!0}:"cube"===g&&(x.cubeEffect={shadow:!1,slideShadows:!0,shadowOffset:20,shadowScale:.94});const k=(0,M.Zy)(f,{value:1,valueMobile:1,valueTablet:1}),v=(0,M.Zy)(y,{value:0,valueMobile:0,valueTablet:0});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:eR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"swiper ablocks-carousel-swiper","data-swiper-options":JSON.stringify(H),"data-swiper-frontend-options":JSON.stringify(x),"data-swiper-slides-per-view":JSON.stringify(k),"data-swiper-gap":JSON.stringify(v),children:(0,I.jsx)("div",{className:"swiper-wrapper",children:(0,I.jsx)(D.InnerBlocks.Content,{})})}),m&&(0,I.jsx)("div",{className:"ablocks-carousel-pagination"}),u&&(0,I.jsxs)("div",{className:"ablocks-carousel-navigation__buttons",children:[(0,I.jsx)("div",{ | |
| 2666 | +className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--prev",children:(0,I.jsx)(Fd,{attributePrefix:"leftIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-carousel-navigation__button ablocks-carousel-navigation__button--next",children:(0,I.jsx)(Fd,{attributePrefix:"rightIcon",attributes:e})})]})]})})}iR.propTypes={},iR.defaultProps={},(0,M.xV)(N_.UU)&&(0,o.registerBlockType)(N_.UU,{title:(0,L.__)("Carousel","ablocks"),attributes:N_.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{attributes:e,setAttributes:i,clientId:o,isSelected:l}=t,{block_id:n}=e;(0,a.useEffect)(()=>{n&&n===o||i({block_id:o}),e?.blockVersion||i({blockVersion:2})},[n,o]),(0,a.useEffect)(()=>{(!e?.verticalAlign||""!==e?.verticalAlignment&&e?.verticalAlign?.value!==e?.verticalAlignment)&&i({verticalAlign:{value:e?.verticalAlignment||"",valueTablet:"",valueMobile:""},verticalAlignment:""})},[]);const s=(0,a.useMemo)(()=>{ | |
| 2667 | +if(!e?.verticalAlign)return"";let t=null;if(t?2!==e?.blockVersion||t instanceof A?2===e?.blockVersion||t instanceof C||(t=new C(e,o)):t=new A(e,o):t=2===e?.blockVersion?new A(e,o):new C(e,o),null===t)return"";const i=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-carousel-swiper .swiper-wrapper ",O_(e),O_(e,"Tablet"),O_(e,"Mobile"),i(t=>O_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button",Y_(e),Y_(e,"Tablet"),Y_(e,"Mobile"),i(t=>Y_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--next",X_(e),X_(e,"Tablet"),X_(e,"Mobile"),i(t=>X_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button--prev",B_(e),B_(e,"Tablet"),B_(e,"Mobile"),i(t=>B_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-icon-wrap",E_(e),E_(e,"Tablet"),E_(e,"Mobile"),i(t=>E_(e,t))), | |
| 2668 | +t.addClassStyles("{{WRAPPER}} .ablocks-carousel-pagination",$_(e),$_(e,"Tablet"),$_(e,"Mobile"),i(t=>$_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active",K_(e),K_(e,"Tablet"),K_(e,"Mobile"),i(t=>K_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active:hover",J_(e),J_(e,"Tablet"),J_(e,"Mobile"),i(t=>J_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet",G_(e),G_(e,"Tablet"),G_(e,"Mobile"),i(t=>G_(e,t))),t.addClassStyles("{{WRAPPER}} .swiper-pagination-bullet:hover",Z_(e),Z_(e,"Tablet"),Z_(e,"Mobile"),i(t=>Z_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon",F_(e),F_(e,"Tablet"),F_(e,"Mobile"),i(t=>F_(e,t))),t.addClassStyles("{{WRAPPER}} .ablocks-carousel-navigation__button .ablocks-svg-icon:hover",q_(e),q_(e,"Tablet"),q_(e,"Mobile"),i(t=>q_(e,t))),t.generateCSS()},[e]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),l&&(0, | |
| 2669 | +I.jsx)(D_,{...t}),(0,I.jsx)(V_,{...t})]})},save:tR,deprecated:[{attributes:eR.uK,save:iR}]});const oR={UU:"ablocks/carousel-child",$t:["ablocks/carousel"],uK:{block_id:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 2658 | 2670 | customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, |
| 2659 | 2671 | isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", |
| 2660 | 2672 | hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", |
| 2661 | 2673 | imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"", |
| @@ -2661,34 +2673,35 @@ | ||
| 2661 | 2673 | imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"", |
| 2662 | 2674 | videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"", |
| 2663 | 2675 | yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle", |
| 2664 | 2676 | customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1, |
| 2665 | -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var $_=i(17618),G_=i(50506);const Z_={name:I().string,blockId:I().string,typography:I().array,innerBlocksProps:I().object,tagName:I().string,setTagInTop:I().bool,className:I().string,allowQuickEdit:I().bool,blockProps:I().object};function K_({blockId:t="",children:e,attributes:i={},tagName:o="div",className:a="",name:l="",allowQuickEdit:n=!1,blockProps:r={}}){const{overflow:b}=i,c={className:(0,Qb.Z)({name:l,blockId:t, | |
| 2666 | -className:s()(a,`ablocks-block--child-${t} ablocks-block--child`,i?.className)}),...r},d=(0,C.useBlockProps)(c),u=o||"div";return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(G_.A,{}),(0,L.jsxs)(u,{...d,children:[n&&(0,L.jsx)($_.A,{blockId:t,name:l,overflow:b}),e]})]})}function J_(t){const{attributes:e,clientId:i}=t,{block_id:a}=e,l=(0,C.useBlockProps)(),n={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(i).length>0?void 0:C.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},s=(0,C.useInnerBlocksProps)(l,{...n});return(0,L.jsx)("div",{className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,L.jsx)(K_,{blockId:a,name:q_.UU,attributes:e,children:(0,L.jsx)("div",{...s})})})}function Q_(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0, | |
| 2667 | -L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Carousel Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Carousel blocks settings for customizing slides effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})}K_.propTypes=Z_,J_.propTypes={},J_.defaultProps={},Q_.propTypes={};const tR={name:I().string,blockId:I().string,tagName:I().string,blockProps:I().object};function eR({blockId:t,name:e,children:i,attributes:o,className:a,tagName:n="div",blockProps:r={}}){const b={...C.useBlockProps.save({...r}),className:(0,Qb.Z)({name:e,blockId:t,className:s()(a,o?.className)})};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(n,{...b,children:i})})}function iR(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)("div",{className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,L.jsx)(eR,{blockId:i,name:q_.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})} | |
| 2668 | -eR.propTypes=tR,iR.propTypes={},iR.defaultProps={},(0,M.xV)(q_.UU,q_.$t[0])&&(0,o.registerBlockType)(q_.UU,{title:"Carousel Child",attributes:q_.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;return(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)(Q_,{...t}),(0,L.jsx)(J_,{...t})]})},save:iR});var oR=i(62055);function aR(t){const{attributes:e,setAttributes:i,context:o}=t,{leftLabel:a,rightLabel:n,alignment:s,toggleDirection:r,space:b,gap:c,toggleWidth:d,toggleHeight:u,toggleColorState:p,toggleActiveColor:m,toggleActiveBgColor:h,toggleNormalColor:g,toggleNormalBgColor:f,labelTypography:y,labelColorState:T,labelNormalColor:H,labelActiveColor:M,toggleBarBgColor:x,toggleBarPadding:k,toggleBarBorder:v}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e, | |
| 2669 | -setAttributes:i,docs_url:"https://ablocks.pro/docs/add-and-customize-ablocks-toggle-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Toggle","ablocks"),initialOpen:!0,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(vb,{label:(0,z.__)("Direction","ablocks"),options:[{label:(0,z.__)("Horizontal","ablocks"),value:"row"},{label:(0,z.__)("Vertical","ablocks"),value:"column"}],attributeName:"toggleDirection",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Space","ablocks"),attributeName:"space",attributeValue:b,setAttributes:i,min:0,max:500,step:1,isInline:!1,attributeDefaultValue:oR.xe}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),attributeName:"gap",attributeValue:c, | |
| 2670 | -setAttributes:i,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:oR.rQ})]})}),(0,L.jsx)(D,{title:(0,z.__)("Toggle Label","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Left Label","ablocks"),attributeName:"leftLabel",attributeValue:a,setAttributes:i,context:o}),(0,L.jsx)(ql,{label:(0,z.__)("Right Label","ablocks"),attributeName:"rightLabel",attributeValue:n,setAttributes:i,context:o})]}),style:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vb,{setAttributes:i,attributeName:"labelColorState",attributeValue:T,options:[{label:(0,z.__)("Normal","ablocks"),value:"normal"},{label:(0,z.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===T&&(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"labelNormalColor",attributeValue:H,setAttributes:i}),"active"===T&&(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"labelActiveColor",attributeValue:M,setAttributes:i | |
| 2671 | -}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Toggle Control","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Toggle Width","ablocks"),attributeName:"toggleWidth",attributeValue:d,setAttributes:i,isResponsive:!1,min:0,max:200,step:1,isInline:!1,attributeDefaultValue:oR.vS}),(0,L.jsx)(vt,{label:(0,z.__)("Toggle Height","ablocks"),attributeName:"toggleHeight",attributeValue:u,setAttributes:i,isResponsive:!1,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:oR.A6})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{setAttributes:i,attributeName:"toggleColorState",attributeValue:p,options:[{label:(0,z.__)("Normal","ablocks"),value:"normal"},{label:(0,z.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===p&&(0, | |
| 2672 | -L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"toggleNormalColor",attributeValue:g,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"toggleNormalBgColor",attributeValue:f,setAttributes:i})]}),"active"===p&&(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"toggleActiveColor",attributeValue:m,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"toggleActiveBgColor",attributeValue:h,setAttributes:i})]})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Toggle Bar","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"toggleBarBgColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"toggleBarBorder",attributeValue:v,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0, | |
| 2673 | -z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"toggleBarPadding",attributeValue:k,setAttributes:i})]})]})})})}aR.propTypes={};const lR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"", | |
| 2674 | -lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},toggleBarPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},toggleBarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", | |
| 2675 | -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:"", | |
| 2676 | -rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},toggleDirection:{type:"string",default:"row"},labelColorState:{type:"string",default:"normal"},toggleColorState:{type:"string",default:"normal"},space:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},gap:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},toggleWidth:{type:"number",default:60},toggleHeight:{type:"number",default:28},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 2677 | -isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 2678 | -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:"", | |
| 2679 | -bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"", | |
| 2680 | -backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 2681 | -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, | |
| 2682 | -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:"", | |
| 2683 | -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", | |
| 2684 | -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:{ | |
| 2685 | -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nR(t){const{attributes:e,setAttributes:i,clientId:o,isSelected:n}=t,{block_id:b,isSwitch:c,leftLabel:d,rightLabel:u,toggleWidth:p,toggleHeight:m}=e,{isDynamicEnabled:h,data:g}=Zc({attributeValue:d}),{isDynamicEnabled:f,data:y}=Zc({attributeValue:u}),T=(0,C.useBlockProps)(),H=[["ablocks/toggle-child"],["ablocks/toggle-child"]],{innerBlocksProps:x,children:k}=(0,C.useInnerBlocksProps)(T,{template:H,allowedBlocks:H,renderAppender:!1}),v=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${b}`);if(2===v.length&&null!==t){const e=t.querySelectorAll(".ablocks-toggle__child");c?(e[1].style.display="block",e[0].style.display="none"):(e[0].style.display="block", | |
| 2686 | -e[1].style.display="none")}},[v,n,c,b]),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(Nb.A,{blockId:b,name:lR.UU,attributes:e,children:[(0,L.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${p}px`,"--ablocks-toggle-switch-height":`${m}px`},children:(0,L.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,L.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left",{"ablocks-toggle__label--active":!c}),children:(0,L.jsxs)("span",{children:[" ",h?g:d," "]})}),(0,L.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${b}`,children:[(0,L.jsx)("input",{id:`switch-toggle-${b}`,checked:c,type:"checkbox",className:"ablocks-toggle__checkbox",onChange:t=>i({isSwitch:t.target.checked}),"aria-label":(0,z.sprintf)(/* translators: 1: left toggle label, 2: right toggle label */ /* translators: 1: left toggle label, 2: right toggle label */ | |
| 2687 | -(0,z.__)("Toggle switch between %1$s and %2$s","ablocks"),d,u)}),(0,L.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,L.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--right",{"ablocks-toggle__label--active":c}),children:(0,L.jsx)("span",{children:f?y:u})})]})}),(0,L.jsxs)("div",{...x,children:[" ",k," "]})]})})}nR.propTypes={};const sR=(t,e="")=>{const{toggleDirection:i,gap:o}=t,a={...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"gap",unitDefaultValue:"px",device:e})};return i&&(a["flex-direction"]=i),a},rR=(t,e="")=>{const{toggleBarBgColor:i,toggleBarPadding:o,toggleBarBorder:a,space:l}=t,n=(0,M.Zy)(a,{unitWidth:"px",unitRadius:"px"}),s=(0,M.Zy)(o,{unit:"px"}),r={...(0,Ob.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"margin-bottom",unitDefaultValue:"px",device:e}),...(0,Gt.qD)(t?.alignment,"text-align",e),...(0, | |
| 2688 | -c.qD)(s,"padding",e),...(0,y.qD)(n,e)};return i&&(r["background-color"]=(0,gs.qD)(i)),r},bR=(t,e="")=>{const i=(0,M.Zy)(t?.toggleBarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},cR=(t,e="")=>{const{labelTypography:i}=t,o=(0,M.Zy)(i,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"",l={...(0,P.qD)(o,e,a)};return{color:(0,gs.qD)(t?.labelNormalColor),...l}};function dR(t){const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:lR.UU,attributes:e,children:[(0,L.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,L.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,L.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,L.jsxs)("span",{children:[" ",a," "]})}),(0,L.jsxs)("label",{ | |
| 2689 | -className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${i}`,children:[(0,L.jsx)("input",{id:`switch-toggle-${i}`,checked:o,type:"checkbox",className:"ablocks-toggle__checkbox","aria-label":(0,z.sprintf)(/* translators: 1: left toggle label, 2: right toggle label */ /* translators: 1: left toggle label, 2: right toggle label */ | |
| 2690 | -(0,z.__)("Toggle switch between %1$s and %2$s","ablocks"),a,n)}),(0,L.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,L.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,L.jsx)("span",{children:n})})]})}),(0,L.jsx)(C.InnerBlocks.Content,{})]})})}dR.propTypes={};const uR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypography:{type:"object", | |
| 2677 | +delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var aR=i(17618),lR=i(50506);const nR={name:Y().string,blockId:Y().string,typography:Y().array,innerBlocksProps:Y().object,tagName:Y().string,setTagInTop:Y().bool,className:Y().string,allowQuickEdit:Y().bool,blockProps:Y().object};function sR({blockId:t="",children:e,attributes:i={},tagName:o="div",className:a="",name:l="",allowQuickEdit:n=!1,blockProps:r={}}){const{overflow:b}=i,c={className:(0,oc.Z)({name:l,blockId:t, | |
| 2678 | +className:s()(a,`ablocks-block--child-${t} ablocks-block--child`,i?.className)}),...r},d=(0,D.useBlockProps)(c),u=o||"div";return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(lR.A,{}),(0,I.jsxs)(u,{...d,children:[n&&(0,I.jsx)(aR.A,{blockId:t,name:l,overflow:b}),e]})]})}function rR(t){const{attributes:e,clientId:i}=t,{block_id:a}=e,l=(0,D.useBlockProps)(),n={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(i).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},s=(0,D.useInnerBlocksProps)(l,{...n});return(0,I.jsx)("div",{className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,I.jsx)(sR,{blockId:a,name:oR.UU,attributes:e,children:(0,I.jsx)("div",{...s})})})}function bR(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0, | |
| 2679 | +I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Carousel Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Carousel blocks settings for customizing slides effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}sR.propTypes=nR,rR.propTypes={},rR.defaultProps={},bR.propTypes={};const cR={name:Y().string,blockId:Y().string,tagName:Y().string,blockProps:Y().object};function dR({blockId:t,name:e,children:i,attributes:o,className:a,tagName:n="div",blockProps:r={}}){const b={...D.useBlockProps.save({...r}),className:(0,oc.Z)({name:e,blockId:t,className:s()(a,o?.className)})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(n,{...b,children:i})})}function uR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)("div",{className:"swiper-slide ablocks-carousel-swiper-slide",children:(0,I.jsx)(dR,{blockId:i,name:oR.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})} | |
| 2680 | +dR.propTypes=cR,uR.propTypes={},uR.defaultProps={},(0,M.xV)(oR.UU,oR.$t[0])&&(0,o.registerBlockType)(oR.UU,{title:(0,L.__)("Carousel Child","ablocks"),attributes:oR.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-carousel"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;return(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]),(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(bR,{...t}),(0,I.jsx)(rR,{...t})]})},save:uR});var pR=i(62055);function mR(t){const{attributes:e,setAttributes:i,context:o}=t,{leftLabel:a,rightLabel:n,alignment:s,toggleDirection:r,space:b,gap:c,toggleWidth:d,toggleHeight:u,toggleColorState:p,toggleActiveColor:m,toggleActiveBgColor:h,toggleNormalColor:g,toggleNormalBgColor:f,labelTypography:y,labelColorState:T,labelNormalColor:H,labelActiveColor:M,toggleBarBgColor:x,toggleBarPadding:k,toggleBarBorder:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0, | |
| 2681 | +I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/add-and-customize-ablocks-toggle-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Toggle","ablocks"),initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Wb,{label:(0,L.__)("Direction","ablocks"),options:[{label:(0,L.__)("Horizontal","ablocks"),value:"row"},{label:(0,L.__)("Vertical","ablocks"),value:"column"}],attributeName:"toggleDirection",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Space","ablocks"),attributeName:"space",attributeValue:b,setAttributes:i,min:0,max:500,step:1,isInline:!1,attributeDefaultValue:pR.xe}),(0, | |
| 2682 | +I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"gap",attributeValue:c,setAttributes:i,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:pR.rQ})]})}),(0,I.jsx)(V,{title:(0,L.__)("Toggle Label","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Left Label","ablocks"),attributeName:"leftLabel",attributeValue:a,setAttributes:i,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Right Label","ablocks"),attributeName:"rightLabel",attributeValue:n,setAttributes:i,context:o})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Wb,{setAttributes:i,attributeName:"labelColorState",attributeValue:T,options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===T&&(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelNormalColor",attributeValue:H,setAttributes:i}),"active"===T&&(0,I.jsx)(Ws,{label:(0, | |
| 2683 | +L.__)("Color","ablocks"),attributeName:"labelActiveColor",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Toggle Control","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Toggle Width","ablocks"),attributeName:"toggleWidth",attributeValue:d,setAttributes:i,isResponsive:!1,min:0,max:200,step:1,isInline:!1,attributeDefaultValue:pR.vS}),(0,I.jsx)(_t,{label:(0,L.__)("Toggle Height","ablocks"),attributeName:"toggleHeight",attributeValue:u,setAttributes:i,isResponsive:!1,min:0,max:100,step:1,isInline:!1,attributeDefaultValue:pR.A6})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{setAttributes:i,attributeName:"toggleColorState",attributeValue:p,options:[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0, | |
| 2684 | +L.__)("Active","ablocks"),value:"active"}],isResponsive:!1,allowDeselect:!1}),"normal"===p&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"toggleNormalColor",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleNormalBgColor",attributeValue:f,setAttributes:i})]}),"active"===p&&(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"toggleActiveColor",attributeValue:m,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleActiveBgColor",attributeValue:h,setAttributes:i})]})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Toggle Bar","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"toggleBarBgColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{ | |
| 2685 | +attributeName:"toggleBarBorder",attributeValue:v,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"toggleBarPadding",attributeValue:k,setAttributes:i})]})]})})})}mR.propTypes={};const hR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object", | |
| 2686 | +default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},toggleBarPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},toggleBarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default", | |
| 2687 | +borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"", | |
| 2688 | +leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},toggleDirection:{type:"string",default:"row"},labelColorState:{type:"string",default:"normal"},toggleColorState:{type:"string",default:"normal"},space:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},gap:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},toggleWidth:{type:"number", | |
| 2689 | +default:60},toggleHeight:{type:"number",default:28},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"", | |
| 2690 | +borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"", | |
| 2691 | +topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px", | |
| 2692 | +vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"", | |
| 2693 | +imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"", | |
| 2694 | +zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"", | |
| 2695 | +rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"", | |
| 2696 | +maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none", | |
| 2697 | +loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function gR(t){const{attributes:e,setAttributes:i,clientId:o,isSelected:n}=t,{block_id:b,isSwitch:c,leftLabel:d,rightLabel:u,toggleWidth:p,toggleHeight:m}=e,{isDynamicEnabled:h,data:g}=id({attributeValue:d}),{isDynamicEnabled:f,data:y}=id({attributeValue:u}),T=(0,D.useBlockProps)(),H=[["ablocks/toggle-child"],["ablocks/toggle-child"]],{innerBlocksProps:x,children:k}=(0,D.useInnerBlocksProps)(T,{template:H,allowedBlocks:H,renderAppender:!1}),v=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${b}`);if(2===v.length&&null!==t){ | |
| 2698 | +const e=t.querySelectorAll(".ablocks-toggle__child");c?(e[1].style.display="block",e[0].style.display="none"):(e[0].style.display="block",e[1].style.display="none")}},[v,n,c,b]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:b,name:hR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${p}px`,"--ablocks-toggle-switch-height":`${m}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left",{"ablocks-toggle__label--active":!c}),children:(0,I.jsxs)("span",{children:[" ",h?g:d," "]})}),(0,I.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${b}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${b}`,checked:c,type:"checkbox",className:"ablocks-toggle__checkbox",onChange:t=>i({isSwitch:t.target.checked}),"aria-label":(0, | |
| 2699 | +L.sprintf)(/* translators: 1: left toggle label, 2: right toggle label */ /* translators: 1: left toggle label, 2: right toggle label */ | |
| 2700 | +(0,L.__)("Toggle switch between %1$s and %2$s","ablocks"),d,u)}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--right",{"ablocks-toggle__label--active":c}),children:(0,I.jsx)("span",{children:f?y:u})})]})}),(0,I.jsxs)("div",{...x,children:[" ",k," "]})]})})}gR.propTypes={};const fR=(t,e="")=>{const{toggleDirection:i,gap:o}=t,a={...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"gap",unitDefaultValue:"px",device:e})};return i&&(a["flex-direction"]=i),a},yR=(t,e="")=>{const{toggleBarBgColor:i,toggleBarPadding:o,toggleBarBorder:a,space:l}=t,n=(0,M.Zy)(a,{unitWidth:"px",unitRadius:"px"}),s=(0,M.Zy)(o,{unit:"px"}),r={...(0,Eb.qD)({attributeValue:l,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,property:"margin-bottom",unitDefaultValue:"px",device:e}),...(0,Zt.qD)(t?.alignment,"text-align",e),...(0, | |
| 2701 | +c.qD)(s,"padding",e),...(0,y.qD)(n,e)};return i&&(r["background-color"]=(0,Hs.qD)(i)),r},TR=(t,e="")=>{const i=(0,M.Zy)(t?.toggleBarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},HR=(t,e="")=>{const{labelTypography:i}=t,o=(0,M.Zy)(i,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"",l={...(0,U.qD)(o,e,a)};return{color:(0,Hs.qD)(t?.labelNormalColor),...l}};function MR(t){const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:hR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,I.jsxs)("span",{children:[" ",a," "]})}),(0,I.jsxs)("label",{ | |
| 2702 | +className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${i}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${i}`,checked:o,type:"checkbox",className:"ablocks-toggle__checkbox","aria-label":(0,L.sprintf)(/* translators: 1: left toggle label, 2: right toggle label */ /* translators: 1: left toggle label, 2: right toggle label */ | |
| 2703 | +(0,L.__)("Toggle switch between %1$s and %2$s","ablocks"),a,n)}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,I.jsx)("span",{children:n})})]})}),(0,I.jsx)(D.InnerBlocks.Content,{})]})})}MR.propTypes={};const xR={UU:"ablocks/toggle",uK:{block_id:{type:"string",default:""},isSwitch:{type:"boolean",default:!1},leftLabel:{type:"string",default:"Monthly"},rightLabel:{type:"string",default:"Yearly"},toggleBarBgColor:{type:"string",default:""},labelNormalColor:{type:"string",default:"black"},labelActiveColor:{type:"string",default:"#562DD4"},toggleNormalColor:{type:"string",default:"white"},toggleNormalBgColor:{type:"string",default:"#562DD4"},toggleActiveColor:{type:"string",default:"white"},toggleActiveBgColor:{type:"string",default:"#d4552d"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},labelTypography:{type:"object", | |
| 2691 | 2704 | default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},toggleBarPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},toggleBarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default", |
| 2692 | 2705 | 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:"", |
| 2693 | 2706 | leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},toggleDirection:{type:"string",default:"row"},labelColorState:{type:"string",default:"normal"},toggleColorState:{type:"string",default:"normal"},space:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},gap:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},toggleWidth:{type:"number", |
| 2694 | 2707 | default:60},toggleHeight:{type:"number",default:28},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"", |
| @@ -2697,21 +2710,21 @@ | ||
| 2697 | 2710 | 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:"", |
| 2698 | 2711 | 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:"", |
| 2699 | 2712 | 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:"", |
| 2700 | 2713 | 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:"", |
| 2701 | -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 pR(t){ | |
| 2702 | -const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:uR.UU,attributes:e,children:[(0,L.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,L.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,L.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,L.jsxs)("span",{children:[" ",a," "]})}),(0,L.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${i}`,children:[(0,L.jsx)("input",{id:`switch-toggle-${i}`,checked:o,type:"checkbox",className:"ablocks-toggle__checkbox"}),(0,L.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,L.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,L.jsx)("span",{children:n})})]})}),(0, | |
| 2703 | -L.jsx)(C.InnerBlocks.Content,{})]})})}function mR(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Toggle Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the toggle settings to customize collapsible content easily.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})}pR.propTypes={},(0,M.xV)(lR.UU)&&(0,o.registerBlockType)(lR.UU,{title:"Toggle",attributes:lR.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{ | |
| 2704 | -let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar",rR(i),rR(i,"Tablet"),rR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar:hover",bR(i),bR(i,"Tablet",bR(i,"Mobile"))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar-wrapper",sR(i),sR(i,"Tablet"),sR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label",cR(i),cR(i,"Tablet"),cR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label--active",(t=>({color:(0,gs.qD)(t?.labelActiveColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider",(t=>({background:(0,gs.qD)(t?.toggleNormalBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider:before",(t=>({background:(0,gs.qD)(t?.toggleNormalColor)}))(i)), | |
| 2705 | -t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider",(t=>({background:(0,gs.qD)(t?.toggleActiveBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider:before",(t=>({background:(0,gs.qD)(t?.toggleActiveColor)}))(i)),(0,b.applyFilters)("ablocks.toggle.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(aR,{...t}),(0,L.jsx)(nR,{...t})]})},save:dR,deprecated:[{attributes:uR.uK,save:pR}]}),mR.propTypes={};const hR={UU:"ablocks/toggle-child",$t:["ablocks/toggle"],uK:{block_id:{type:"string",default:""}}};function gR(t){const{attributes:e}=t,{block_id:i}=e,o=(0,C.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"],renderAppender:!1});return(0,L.jsx)("div",{className:"ablocks-toggle__child ablocks-toggle__child--editor",children:(0,L.jsx)(K_,{blockId:i,name:hR.UU, | |
| 2706 | -attributes:e,children:(0,L.jsx)("div",{...o})})})}function fR(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(eR,{blockId:i,name:hR.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})}gR.propTypes={},fR.propTypes={};const yR={UU:"ablocks/toggle-child",uK:{block_id:{type:"string",default:""}}};function TR(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(eR,{blockId:i,name:yR.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})}TR.propTypes={},(0,M.xV)(hR.UU,hR.$t[0])&&(0,o.registerBlockType)(hR.UU,{title:"Toggle child",attributes:hR.uK,edit:function(t){const{isSelected:e}=t;return(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)(mR,{...t}),(0,L.jsx)(gR,{...t})]})},save:fR,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),deprecated:[{attributes:yR.uK,save:TR}]});var HR=i(69701);function MR(t){ | |
| 2707 | -const{attributes:e,setAttributes:i}=t,{headingTag:o,allowMultiple:a,iconPosition:n,iconColor:s,iconColorH:r,iconActiveColor:b,headerTextColor:c,headerTextColorH:d,headerTextActiveColor:u,headerTypography:p,headerTextShadow:m,headerTextStroke:h,showIcon:g,headerPadding:f,headerBackgroundColor:y,headerBackgroundColorH:T,headerBackgroundActiveColor:H,bodyBackground:M,bodyBackgroundH:x,bodyPadding:k}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-accordion-block/",children:[(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Accordion","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Allow multiple open at a time","ablocks"),attributeValue:a,setAttributes:i,attributeName:"allowMultiple"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable FAQ Schema (SEO)","ablocks"), | |
| 2708 | -attributeValue:e?.enableFaqSchema,setAttributes:i,attributeName:"enableFaqSchema"}),(0,L.jsx)(js,{label:(0,z.__)("Initial Open","ablocks"),attributeName:"initialOpen",attributeValue:e?.initialOpen,setAttributes:i,isInline:!0}),(0,L.jsx)("span",{className:"ablocks-control-field-description",children:(0,z.__)("This feature works on the frontend only.","ablocks")})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",attributeValue:e.itemSpace,hasUnit:!1,setAttributes:i,attributeDefaultValue:HR.eY}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]})})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Accordion Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ut,{label:(0,z.__)("Heading Tag","ablocks"),options:Rt, | |
| 2709 | -isSearch:!0,attributeName:"headingTag",attributeValue:o,setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"headerTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"headerTextShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"headerTextStroke",attributeValue:h,setAttributes:i,isResponsive:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"headerTextColor",attributeValue:c,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"headerBackgroundColor",attributeValue:y,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0, | |
| 2710 | -z.__)("Color","ablocks"),attributeName:"headerTextColorH",attributeValue:d,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"headerBackgroundColorH",attributeValue:T,setAttributes:i})]})}),(0,L.jsx)(Nt,{margin:"30px"}),(0,L.jsx)(vs,{label:(0,z.__)("Active Color","ablocks"),attributeName:"headerTextActiveColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Active Background","ablocks"),attributeName:"headerBackgroundActiveColor",attributeValue:H,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"headerPadding",attributeValue:f,setAttributes:i}),(0,L.jsx)(Nt,{margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,L.jsx)(Nt,{})]})})}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Toggle Icon","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Vt,{ | |
| 2711 | -isResponsive:!1,label:(0,z.__)("Show Icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"showIcon"}),g&&(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Icon Position","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Left","ablocks"),value:"left"},{label:(0,z.__)("Right","ablocks"),value:"right"},{label:(0,z.__)("Both Of Side","ablocks"),value:"both"}],attributeValue:n||"right",attributeName:"iconPosition",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:HR.RK}),("left"===n||"both"===n)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Icon spacing","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconSpace",attributeValue:e.iconSpace,setAttributes:i,attributeDefaultValue:HR.eT}),(0,L.jsx)(Ld,{label:(0,z.__)("Left Active Icon","ablocks"), | |
| 2712 | -attributePrefix:"leftActiveIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,L.jsx)(Ld,{label:(0,z.__)("Left Close Icon","ablocks"),attributePrefix:"leftCloseIcon",attributes:e,setAttributes:i,legacySupport:!0})]}),("both"===n||"right"===n)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Right Active Icon","ablocks"),attributePrefix:"rightActiveIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,L.jsx)(Ld,{label:(0,z.__)("Right Close Icon","ablocks"),attributePrefix:"rightCloseIcon",attributes:e,setAttributes:i,legacySupport:!0})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:s,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"iconColorH",attributeValue:r,setAttributes:i})}) | |
| 2713 | -}),(0,L.jsx)(Nt,{margin:"30px"}),(0,L.jsx)(vs,{label:(0,z.__)("Active Color","ablocks"),attributeName:"iconActiveColor",attributeValue:b,setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Accordion Content","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:k,setAttributes:i}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:M,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:x,setAttributes:i})})})]})]})})})}MR.propTypes={};const xR={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},allowMultiple:{type:"boolean",default:!1},enableFaqSchema:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{ | |
| 2714 | +maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function kR(t){ | |
| 2715 | +const{attributes:e}=t,{block_id:i,isSwitch:o,leftLabel:a,rightLabel:n,toggleWidth:r,toggleHeight:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:xR.UU,attributes:e,children:[(0,I.jsx)("div",{className:"ablocks-toggle__topbar",style:{"--ablocks-toggle-switch-width":`${r}px`,"--ablocks-toggle-switch-height":`${b}px`},children:(0,I.jsxs)("div",{className:"ablocks-toggle__topbar-wrapper",children:[(0,I.jsx)("div",{className:s()("ablocks-toggle__label","ablocks-toggle__label--left"),children:(0,I.jsxs)("span",{children:[" ",a," "]})}),(0,I.jsxs)("label",{className:"ablocks-toggle__switch",htmlFor:`switch-toggle-${i}`,children:[(0,I.jsx)("input",{id:`switch-toggle-${i}`,checked:o,type:"checkbox",className:"ablocks-toggle__checkbox"}),(0,I.jsx)("span",{className:"ablocks-toggle__slider ablocks-toggle__slider--round"})]}),(0,I.jsx)("div",{className:"ablocks-toggle__label ablocks-toggle__label--right",children:(0,I.jsx)("span",{children:n})})]})}),(0, | |
| 2716 | +I.jsx)(D.InnerBlocks.Content,{})]})})}function vR(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Toggle Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the toggle settings to customize collapsible content easily.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}kR.propTypes={},(0,M.xV)(hR.UU)&&(0,o.registerBlockType)(hR.UU,{title:(0,L.__)("Toggle","ablocks"),attributes:hR.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0, | |
| 2717 | +a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar",yR(i),yR(i,"Tablet"),yR(i,"Mobile"),e(t=>yR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar:hover",TR(i),TR(i,"Tablet",TR(i,"Mobile"))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__topbar-wrapper",fR(i),fR(i,"Tablet"),fR(i,"Mobile"),e(t=>fR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label",HR(i),HR(i,"Tablet"),HR(i,"Mobile"),e(t=>HR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__label--active",(t=>({color:(0,Hs.qD)(t?.labelActiveColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider",(t=>({background:(0,Hs.qD)(t?.toggleNormalBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toggle__slider:before",(t=>({ | |
| 2718 | +background:(0,Hs.qD)(t?.toggleNormalColor)}))(i)),t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider",(t=>({background:(0,Hs.qD)(t?.toggleActiveBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} input.ablocks-toggle__checkbox:checked + .ablocks-toggle__slider:before",(t=>({background:(0,Hs.qD)(t?.toggleActiveColor)}))(i)),(0,b.applyFilters)("ablocks.toggle.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(mR,{...t}),(0,I.jsx)(gR,{...t})]})},save:MR,deprecated:[{attributes:xR.uK,save:kR}]}),vR.propTypes={};const _R={UU:"ablocks/toggle-child",$t:["ablocks/toggle"],uK:{block_id:{type:"string",default:""}}};function RR(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"],renderAppender:!1});return(0,I.jsx)("div",{className:"ablocks-toggle__child ablocks-toggle__child--editor", | |
| 2719 | +children:(0,I.jsx)(sR,{blockId:i,name:_R.UU,attributes:e,children:(0,I.jsx)("div",{...o})})})}function SR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(dR,{blockId:i,name:_R.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}RR.propTypes={},SR.propTypes={};const WR={UU:"ablocks/toggle-child",uK:{block_id:{type:"string",default:""}}};function PR(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(dR,{blockId:i,name:WR.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})}PR.propTypes={},(0,M.xV)(_R.UU,_R.$t[0])&&(0,o.registerBlockType)(_R.UU,{title:(0,L.__)("Toggle child","ablocks"),attributes:_R.uK,edit:function(t){const{isSelected:e}=t;return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(vR,{...t}),(0,I.jsx)(RR,{...t})]})},save:SR,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-toggle"}),deprecated:[{attributes:WR.uK,save:PR}]});var UR=i(69701);function jR(t){ | |
| 2720 | +const{attributes:e,setAttributes:i}=t,{headingTag:o,allowMultiple:a,iconPosition:n,iconColor:s,iconColorH:r,iconActiveColor:b,headerTextColor:c,headerTextColorH:d,headerTextActiveColor:u,headerTypography:p,headerTextShadow:m,headerTextStroke:h,showIcon:g,headerPadding:f,headerBackgroundColor:y,headerBackgroundColorH:T,headerBackgroundActiveColor:H,bodyBackground:M,bodyBackgroundH:x,bodyPadding:k}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-accordion-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Accordion","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow multiple open at a time","ablocks"),attributeValue:a,setAttributes:i,attributeName:"allowMultiple"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable FAQ Schema (SEO)","ablocks"), | |
| 2721 | +attributeValue:e?.enableFaqSchema,setAttributes:i,attributeName:"enableFaqSchema"}),(0,I.jsx)(As,{label:(0,L.__)("Initial Open","ablocks"),attributeName:"initialOpen",attributeValue:e?.initialOpen,setAttributes:i,isInline:!0}),(0,I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("This feature works on the frontend only.","ablocks")})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",attributeValue:e.itemSpace,hasUnit:!1,setAttributes:i,attributeDefaultValue:UR.eY}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Accordion Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Heading Tag","ablocks"),options:St, | |
| 2722 | +isSearch:!0,attributeName:"headingTag",attributeValue:o,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headerTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"headerTextShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"headerTextStroke",attributeValue:h,setAttributes:i,isResponsive:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headerTextColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColor",attributeValue:y,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0, | |
| 2723 | +L.__)("Color","ablocks"),attributeName:"headerTextColorH",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColorH",attributeValue:T,setAttributes:i})]})}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"headerTextActiveColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Background","ablocks"),attributeName:"headerBackgroundActiveColor",attributeValue:H,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"headerPadding",attributeValue:f,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(It,{})]})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Toggle Icon","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{ | |
| 2724 | +isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"showIcon"}),g&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Icon Position","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Both Of Side","ablocks"),value:"both"}],attributeValue:n||"right",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:UR.RK}),("left"===n||"both"===n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconSpace",attributeValue:e.iconSpace,setAttributes:i,attributeDefaultValue:UR.eT}),(0,I.jsx)(Yd,{label:(0,L.__)("Left Active Icon","ablocks"), | |
| 2725 | +attributePrefix:"leftActiveIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Left Close Icon","ablocks"),attributePrefix:"leftCloseIcon",attributes:e,setAttributes:i,legacySupport:!0})]}),("both"===n||"right"===n)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Right Active Icon","ablocks"),attributePrefix:"rightActiveIcon",attributes:e,setAttributes:i,legacySupport:!0}),(0,I.jsx)(Yd,{label:(0,L.__)("Right Close Icon","ablocks"),attributePrefix:"rightCloseIcon",attributes:e,setAttributes:i,legacySupport:!0})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:s,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColorH",attributeValue:r,setAttributes:i})}) | |
| 2726 | +}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"iconActiveColor",attributeValue:b,setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Accordion Content","ablocks"),initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:k,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:M,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:x,setAttributes:i})})})]})]})})})}jR.propTypes={};const wR={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},allowMultiple:{type:"boolean",default:!1},enableFaqSchema:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{ | |
| 2714 | 2727 | type:"string",default:"#000000"},iconColorH:{type:"string",default:""},iconActiveColor:{type:"string",default:""},headerTextColor:{type:"string",default:"#000000"},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},bodyBackgroundH:{type:"string",default:""},bodyBackground:{type:"string",default:"#F9F9F9"},headingTag:{type:"string",default:"p"},iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},headerBackgroundActiveColor:{type:"string",default:""},headerBackgroundColorH:{type:"string",default:""},headerBackgroundColor:{type:"string",default:"#F9F9F9"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},headerTypographyGlobal:{type:"string",default:""},headerTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", |
| 2715 | 2728 | wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"", |
| 2716 | 2729 | 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, |
| 2717 | 2730 | isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},headerPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},bodyPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"", |
| @@ -2734,17 +2747,17 @@ | ||
| 2734 | 2747 | imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"", |
| 2735 | 2748 | 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", |
| 2736 | 2749 | 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:"", |
| 2737 | 2750 | scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", |
| 2738 | -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"}}}},kR=({insertButtonBlock:t})=>(0,L.jsx)(C.BlockControls,{group:"block", | |
| 2739 | -children:(0,L.jsx)(A.Toolbar,{children:(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"}),label:(0,z.__)("Add Accordion","ablocks"),onClick:t})})}),vR=class{constructor(t,e=!0,i={}){this.accordion=t,this.editor=e;const o=this.getDataSettings();this.settings={...this.getDefaultSettings(),...o,...i},this.elements=this.getElements(),this.eventListeners=[],this.isAnimating=!1,this.bindEvents(),this.defaultActiveTab()}getDefaultSettings(){return{selectors:{tabTitle:".ablocks-block--single-accordion",tabContent:".ablocks-block--single-accordion__body"},classes:{activeItem:"ablocks-block--single-accordion-is-selected"},toggleSelf:!0,hidePrevious:!0,autoExpand:!0,allowMultiple:!1,initialOpen:0}}getDataSettings(){return{allowMultiple:"true"===this.accordion.getAttribute("data-multiple"),initialOpen:parseInt(this.accordion.getAttribute("data-initial-open"))||0}}getElements(){const{tabTitle:t,tabContent:e}=this.settings.selectors | |
| 2751 | +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},zR=({insertButtonBlock:t})=>(0,I.jsx)(D.BlockControls,{group:"block", | |
| 2752 | +children:(0,I.jsx)(N.Toolbar,{children:(0,I.jsx)(N.ToolbarButton,{icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"}),label:(0,L.__)("Add Accordion","ablocks"),onClick:t})})}),CR=class{constructor(t,e=!0,i={}){this.accordion=t,this.editor=e;const o=this.getDataSettings();this.settings={...this.getDefaultSettings(),...o,...i},this.elements=this.getElements(),this.eventListeners=[],this.isAnimating=!1,this.bindEvents(),this.defaultActiveTab()}getDefaultSettings(){return{selectors:{tabTitle:".ablocks-block--single-accordion",tabContent:".ablocks-block--single-accordion__body"},classes:{activeItem:"ablocks-block--single-accordion-is-selected"},toggleSelf:!0,hidePrevious:!0,autoExpand:!0,allowMultiple:!1,initialOpen:0}}getDataSettings(){return{allowMultiple:"true"===this.accordion.getAttribute("data-multiple"),initialOpen:parseInt(this.accordion.getAttribute("data-initial-open"))||0}}getElements(){const{tabTitle:t,tabContent:e}=this.settings.selectors | |
| 2740 | 2753 | ;return{tabTitles:this.queryElements(t),tabContents:this.queryElements(e)}}queryElements(t){return Array.from(this.accordion.querySelectorAll(t))}bindEvents(){this.elements.tabTitles.forEach(t=>{const e=t.querySelector(".ablocks-block--single-accordion__heading"),i=e=>{e.preventDefault(),this.isAnimating||this.changeActiveTab(t.getAttribute("data-id-acc"))};e.addEventListener("click",i),this.eventListeners.push({element:e,handler:i})})}isActiveTab(t){const{activeItem:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-id-acc")===t);return i&&i.classList.contains(e)}changeActiveTab(t){const e=this.isActiveTab(t),{toggleSelf:i,allowMultiple:o}=this.settings;o?e?this.deactivateTab(t):this.activateTab(t):((!1===this.editor&&!0===i||!e)&&this.deactivateAllTabs(),e||this.activateTab(t))}deactivateAllTabs(){const{activeItem:t}=this.settings.classes;this.elements.tabTitles.forEach(e=>{if(e.classList.contains(t)){const t=e.getAttribute("data-id-acc") |
| 2741 | 2754 | ;this.deactivateTab(t)}})}deactivateTab(t){const{activeItem:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-id-acc")===t);i&&(i.classList.remove(e),this.slideUp(t))}activateTab(t){const{activeItem:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-id-acc")===t);i&&(i.classList.add(e),this.slideDown(t))}removeListeners(){this.eventListeners.forEach(({element:t,handler:e})=>{t.removeEventListener("click",e)}),this.eventListeners=[]}defaultActiveTab(){const{initialOpen:t}=this.settings;t>0&&this.activateTab((t-1).toString())}slideDown(t){const e=this.elements.tabContents.find(e=>e.parentElement.getAttribute("data-id-acc")===t),i=e.scrollHeight;this.isAnimating=!0,e.style.height="0px",e.style.display="block",e.style.transition="height 0.4s ease, visibility 0.4s ease",setTimeout(()=>{e.style.height=`${i}px`},10),setTimeout(()=>{e.style.height="auto",e.style.transition="",this.isAnimating=!1},400)}slideUp(t){ |
| 2742 | -const e=this.elements.tabContents.find(e=>e.parentElement.getAttribute("data-id-acc")===t);this.isAnimating=!0,e.style.height=`${e.scrollHeight}px`,e.style.transition="height 0.4s ease, visibility 0.4s ease",setTimeout(()=>{e.style.height="0px"},10),setTimeout(()=>{e.style.display="none",e.style.transition="",this.isAnimating=!1},400)}};function _R(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s}=e,b=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(i),[i]),c=(0,C.useBlockProps)();(0,a.useEffect)(()=>{let t;if(b.length>0){const e=(0,M.bu)(`.ablocks-block-${s}.ablocks-block--accordion`);null!==e&&(t=new vR(e))}return()=>{t&&t.removeListeners()}},[b,s]);const{updateBlockAttributes:d}=(0,r.useDispatch)("core/block-editor");function u(){const t=b.length,e=(0,o.createBlock)("ablocks/single-accordion",{},[(0,o.createBlock)("ablocks/paragraph",{ | |
| 2743 | -paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."})]);(0,r.dispatch)("core/block-editor").insertBlock(e,t,i)}(0,a.useEffect)(()=>{n&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;d(i,{parentAttributes:e})})})()},[e]);const p=(0,C.useInnerBlocksProps)(c,{template:[["ablocks/single-accordion",{},[["ablocks/paragraph",{paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]],["ablocks/single-accordion",{},[["ablocks/paragraph",{paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]],["ablocks/single-accordion",{},[["ablocks/paragraph",{ | |
| 2744 | -paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]]],allowedBlocks:["ablocks/single-accordion"],templateLock:!1,renderAppender:()=>(0,L.jsxs)("button",{className:"ablocks-block-accordion-appender-button",type:"button",onClick:u,children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,L.jsx)("span",{children:(0,z.__)("Add Accordion","ablocks")})]})});return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(kR,{insertButtonBlock:u}),(0,L.jsx)(Nb.A,{blockId:s,name:xR.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsx)("div",{...p})})]})}_R.propTypes={};const RR=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-bottom",hasUnit:!1,unitDefaultValue:"px",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i, | |
| 2745 | -...(0,y.qD)(o,e)}},SR=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},WR=(t,e="")=>{const i=t.headerTypographyGlobal?t.headerTypographyGlobal:"",o={...(0,Ob.qD)({attributeValue:t.iconSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-left",device:e})},a=(0,M.Zy)(t.headerTypography,{weight:"400"});return{color:(0,gs.qD)(t?.headerTextColor),...o,...(0,P.qD)(a,e,i),...(0,fc.qD)(t?.headerTextStroke,e),...(0,pc.qD)(t?.headerTextShadow)}},UR=t=>({color:(0,gs.qD)(t?.headerTextColorH)}),PR=t=>({color:(0,gs.qD)(t?.headerTextActiveColor)}),jR=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px"}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},wR=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,gs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)} | |
| 2746 | -},zR=t=>({background:(0,gs.qD)(t?.headerBackgroundActiveColor)}),CR=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,gs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},AR=t=>({background:(0,gs.qD)(t?.bodyBackgroundH)});function LR(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:xR.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}LR.propTypes={};const DR={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},allowMultiple:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{type:"string",default:"#000000"},iconColorH:{type:"string",default:""},iconActiveColor:{type:"string",default:""},headerTextColor:{type:"string",default:"#000000"},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},bodyBackgroundH:{type:"string",default:"" | |
| 2755 | +const e=this.elements.tabContents.find(e=>e.parentElement.getAttribute("data-id-acc")===t);this.isAnimating=!0,e.style.height=`${e.scrollHeight}px`,e.style.transition="height 0.4s ease, visibility 0.4s ease",setTimeout(()=>{e.style.height="0px"},10),setTimeout(()=>{e.style.display="none",e.style.transition="",this.isAnimating=!1},400)}};function AR(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s}=e,b=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(i),[i]),c=(0,D.useBlockProps)();(0,a.useEffect)(()=>{let t;if(b.length>0){const e=(0,M.bu)(`.ablocks-block-${s}.ablocks-block--accordion`);null!==e&&(t=new CR(e))}return()=>{t&&t.removeListeners()}},[b,s]);const{updateBlockAttributes:d}=(0,r.useDispatch)("core/block-editor");function u(){const t=b.length,e=(0,o.createBlock)("ablocks/single-accordion",{},[(0,o.createBlock)("ablocks/paragraph",{ | |
| 2756 | +paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."})]);(0,r.dispatch)("core/block-editor").insertBlock(e,t,i)}(0,a.useEffect)(()=>{n&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;d(i,{parentAttributes:e})})})()},[e]);const p=(0,D.useInnerBlocksProps)(c,{template:[["ablocks/single-accordion",{},[["ablocks/paragraph",{paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]],["ablocks/single-accordion",{},[["ablocks/paragraph",{paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]],["ablocks/single-accordion",{},[["ablocks/paragraph",{ | |
| 2757 | +paragraph:"Lorem ipsum dolor sinonet amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]]]],allowedBlocks:["ablocks/single-accordion"],templateLock:!1,renderAppender:()=>(0,I.jsxs)("button",{className:"ablocks-block-accordion-appender-button",type:"button",onClick:u,children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,I.jsx)("span",{children:(0,L.__)("Add Accordion","ablocks")})]})});return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(zR,{insertButtonBlock:u}),(0,I.jsx)(Yb.A,{blockId:s,name:wR.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)("div",{...p})})]})}AR.propTypes={};const LR=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-bottom",hasUnit:!1,unitDefaultValue:"px",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i, | |
| 2758 | +...(0,y.qD)(o,e)}},DR=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},NR=(t,e="")=>{const i=t.headerTypographyGlobal?t.headerTypographyGlobal:"",o={...(0,Eb.qD)({attributeValue:t.iconSpace,attributeObjectKey:"value",isResponsive:!1,defaultValue:10,property:"margin-left",device:e})},a=(0,M.Zy)(t.headerTypography,{weight:"400"});return{color:(0,Hs.qD)(t?.headerTextColor),...o,...(0,U.qD)(a,e,i),...(0,Mc.qD)(t?.headerTextStroke,e),...(0,fc.qD)(t?.headerTextShadow)}},IR=t=>({color:(0,Hs.qD)(t?.headerTextColorH)}),VR=t=>({color:(0,Hs.qD)(t?.headerTextActiveColor)}),OR=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px"}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},YR=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)} | |
| 2759 | +},XR=t=>({background:(0,Hs.qD)(t?.headerBackgroundActiveColor)}),BR=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,Hs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},ER=t=>({background:(0,Hs.qD)(t?.bodyBackgroundH)});function FR(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:wR.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}FR.propTypes={};const qR={UU:"ablocks/accordion",uK:{block_id:{type:"string",default:""},allowMultiple:{type:"boolean",default:!1},initialOpen:{type:"number",default:1},iconColor:{type:"string",default:"#000000"},iconColorH:{type:"string",default:""},iconActiveColor:{type:"string",default:""},headerTextColor:{type:"string",default:"#000000"},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},bodyBackgroundH:{type:"string",default:"" | |
| 2747 | 2760 | },bodyBackground:{type:"string",default:"#F9F9F9"},headingTag:{type:"string",default:"p"},iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},headerBackgroundActiveColor:{type:"string",default:""},headerBackgroundColorH:{type:"string",default:""},headerBackgroundColor:{type:"string",default:"#F9F9F9"},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},headerTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"", |
| 2748 | 2761 | wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"", |
| 2749 | 2762 | 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:"", |
| 2750 | 2763 | leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},headerPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},bodyPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"", |
| @@ -2763,64 +2776,65 @@ | ||
| 2763 | 2776 | 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:"", |
| 2764 | 2777 | 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:"", |
| 2765 | 2778 | 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", |
| 2766 | 2779 | 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", |
| 2767 | -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 NR(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:DR.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}NR.propTypes={},(0,M.xV)(xR.UU)&&(0,o.registerBlockType)(xR.UU,{title:"Accordion",attributes:xR.uK, | |
| 2768 | -edit:function(t){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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion",RR(i),RR(i,"Tablet"),RR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion:hover",SR(i),SR(i,"Tablet"),SR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",WR(i),WR(i,"Tablet"),WR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",UR(i),UR(i),UR(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",PR(i),PR(i),PR(i)), | |
| 2769 | -t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",jR(i),jR(i,"Tablet"),jR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",wR(i),wR(i,"Tablet"),wR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",zR(i),zR(i),zR(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,defaultValue:30,property:"font-size",device:e})};return{fill:(0,gs.qD)(t?.iconColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>({fill:(0,gs.qD)(t?.iconColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected svg.ablocks-svg-icon",(t=>({fill:(0,gs.qD)(t?.iconActiveColor)}))(i)), | |
| 2770 | -t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",CR(i),CR(i,"Tablet"),CR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",AR(i),AR(i),AR(i)),(0,b.applyFilters)("ablocks.accordion.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(MR,{...t}),(0,L.jsx)(_R,{...t})]})},save:LR,deprecated:[{attributes:DR.uK,save:NR}],icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion"})});var IR=i(80518);function VR(t){const{attributes:e,setAttributes:i}=t,{headerTextColor:o,headerTextColorH:a,headerBackgroundColor:n,headerBackgroundColorH:s,headerPadding:r,headerTypography:b,headerTextShadow:c,headerTextStroke:d,iconColor:u,iconColorH:p,bodyBackgroundH:m,bodyBackground:h,bodyPadding:g,accordionTitle:f,headerBackgroundActiveColor:y,headerTextActiveColor:T}=e;return(0,L.jsx)(l().Fragment,{children:(0, | |
| 2771 | -L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Accordion Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Customize accordion block settings to your design and content needs.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-accordion-block/",children:[(0,L.jsxs)(D,{title:(0,z.__)("Single Accordion","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",hasUnit:!1,attributeValue:e.itemSpace,setAttributes:i,attributeDefaultValue:IR.eY}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"), | |
| 2772 | -isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Accordion Title","ablocks"),attributeName:"accordionTitle",attributeValue:f,setAttributes:i,isInline:!1})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"headerTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"headerTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"headerTextStroke",attributeValue:d,setAttributes:i,isResponsive:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 2773 | -L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"headerTextColor",attributeValue:o,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"headerBackgroundColor",attributeValue:n,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"headerTextColorH",attributeValue:a,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"headerBackgroundColorH",attributeValue:s,setAttributes:i})]})}),(0,L.jsx)(Nt,{margin:"30px"}),(0,L.jsx)(vs,{label:(0,z.__)("Active Color","ablocks"),attributeName:"headerTextActiveColor",attributeValue:T,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Active Background","ablocks"),attributeName:"headerBackgroundActiveColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"headerPadding",attributeValue:r,setAttributes:i}),(0,L.jsx)(Nt,{margin:"30px" | |
| 2774 | -}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,L.jsx)(Nt,{margin:"30px"})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:IR.RK}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:u,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"iconColorH",attributeValue:p,setAttributes:i})})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Content","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Mt,{label:(0, | |
| 2775 | -z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:g,setAttributes:i}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:h,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:m,setAttributes:i})})})]})]})]})})}VR.propTypes={};const OR={UU:"ablocks/single-accordion",$t:["ablocks/accordion"],uK:{block_id:{type:"string",default:""},accordionId:{type:"number",default:0},accordionTitle:{type:"string",default:""},headerTextColor:{type:"string",default:""},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},headerBackgroundActiveColor:{type:"string",default:""},headerBackgroundColorH:{type:"string",default:""},headerBackgroundColor:{type:"string",default:""},iconColor:{type:"string",default:""}, | |
| 2776 | -iconColorH:{type:"string",default:""},bodyBackgroundH:{type:"string",default:""},bodyBackground:{type:"string",default:""},parentAttributes:{type:"object",default:{iconPosition:"right",headingTag:"p",showIcon:!0,leftCloseIconClass:"far fa-arrow-alt-circle-up",leftActiveIconClass:"far fa-arrow-alt-circle-down",rightActiveIconClass:"fas fa-minus",rightCloseIconClass:"fas fa-plus"}},iconSize:{type:"number",default:""},itemSpace:{type:"number",default:""},leftCloseIconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z"},leftCloseIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftCloseIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},leftCloseIconImageUrl:{type:"string",default:""}, | |
| 2777 | -leftCloseIconImageID:{type:"number",default:0},leftCloseIconImageSize:{type:"string",default:""},leftCloseIconColor:{type:"string",default:"#69727d"},leftCloseIconBgColor:{type:"string",default:""},leftCloseIconHoverColor:{type:"string",default:""},leftCloseIconHoverBgColor:{type:"string",default:""},leftCloseIconType:{type:"string",default:"default"},leftCloseIconShape:{type:"string",default:"circle"},leftCloseIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftCloseIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", | |
| 2778 | -rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},leftCloseIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftCloseIconSize:{type:"number",default:55},leftCloseIconRotate:{type:"number",default:0},leftCloseIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 2779 | -leftCloseIcontransitionDuration:{type:"number",default:0},leftCloseIconImageWidth:{type:"number",default:0},leftActiveIconSvgPath:{type:"string",default:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z"},leftActiveIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftActiveIconClass:{type:"string",default:"far fa-arrow-alt-circle-down"},leftActiveIconImageUrl:{type:"string",default:""},leftActiveIconImageID:{type:"number",default:0},leftActiveIconImageSize:{type:"string",default:""},leftActiveIconColor:{type:"string",default:"#69727d"},leftActiveIconBgColor:{type:"string",default:""},leftActiveIconHoverColor:{type:"string",default:""},leftActiveIconHoverBgColor:{type:"string",default:""},leftActiveIconType:{type:"string", | |
| 2780 | -default:"default"},leftActiveIconShape:{type:"string",default:"circle"},leftActiveIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftActiveIconBorder:{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:""}},leftActiveIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"", | |
| 2781 | -spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftActiveIconSize:{type:"number",default:55},leftActiveIconRotate:{type:"number",default:0},leftActiveIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftActiveIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftActiveIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftActiveIcontransitionDuration:{type:"number",default:0},leftActiveIconImageWidth:{type:"number",default:0},rightCloseIconSvgPath:{type:"string", | |
| 2782 | -default:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},rightCloseIconSvgViewBox:{type:"string",default:"0 0 448 512"},rightCloseIconClass:{type:"string",default:"fas fa-plus"},rightCloseIconImageUrl:{type:"string",default:""},rightCloseIconImageID:{type:"number",default:0},rightCloseIconImageSize:{type:"string",default:""},rightCloseIconColor:{type:"string",default:"#69727d"},rightCloseIconBgColor:{type:"string",default:""},rightCloseIconHoverColor:{type:"string",default:""},rightCloseIconHoverBgColor:{type:"string",default:""},rightCloseIconType:{type:"string",default:"default"},rightCloseIconShape:{type:"string",default:"circle"},rightCloseIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightCloseIconBorder:{type:"object",default:{ | |
| 2783 | -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:""}},rightCloseIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},rightCloseIconSize:{type:"number",default:55},rightCloseIconRotate:{type:"number", | |
| 2784 | -default:0},rightCloseIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},rightCloseIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightCloseIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightCloseIcontransitionDuration:{type:"number",default:0},rightCloseIconImageWidth:{type:"number",default:0},rightActiveIconSvgPath:{type:"string",default:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},rightActiveIconSvgViewBox:{type:"string",default:"0 0 448 512"},rightActiveIconClass:{type:"string",default:"fas fa-minus"},rightActiveIconImageUrl:{type:"string",default:""},rightActiveIconImageID:{type:"number",default:0},rightActiveIconImageSize:{type:"string",default:""}, | |
| 2785 | -rightActiveIconColor:{type:"string",default:"#69727d"},rightActiveIconBgColor:{type:"string",default:""},rightActiveIconHoverColor:{type:"string",default:""},rightActiveIconHoverBgColor:{type:"string",default:""},rightActiveIconType:{type:"string",default:"default"},rightActiveIconShape:{type:"string",default:"circle"},rightActiveIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightActiveIconBorder:{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, | |
| 2786 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},rightActiveIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},rightActiveIconSize:{type:"number",default:55},rightActiveIconRotate:{type:"number",default:0},rightActiveIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},rightActiveIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightActiveIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightActiveIcontransitionDuration:{type:"number",default:0}, | |
| 2787 | -rightActiveIconImageWidth:{type:"number",default:0},headerTypographyGlobal:{type:"string",default:""},headerTypography:{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"}},headerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}}, | |
| 2788 | -itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"", | |
| 2789 | -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:""}},headerPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"", | |
| 2790 | -commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},bodyPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"", | |
| 2780 | +yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function $R(t){const{attributes:e}=t,{block_id:i,allowMultiple:o,initialOpen:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:qR.UU,attributes:e,blockProps:{"data-multiple":o,"data-initial-open":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}$R.propTypes={},(0,M.xV)(wR.UU)&&(0,o.registerBlockType)(wR.UU,{title:(0,L.__)("Accordion","ablocks"), | |
| 2781 | +attributes:wR.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion",LR(i),LR(i,"Tablet"),LR(i,"Mobile"),e(t=>LR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion:hover",DR(i),DR(i,"Tablet"),DR(i,"Mobile"),e(t=>DR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",NR(i),NR(i,"Tablet"),NR(i,"Mobile"),e(t=>NR(i,t))), | |
| 2782 | +t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",IR(i),IR(i),IR(i),e(t=>IR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",VR(i),VR(i),VR(i),e(t=>VR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",OR(i),OR(i,"Tablet"),OR(i,"Mobile"),e(t=>OR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",YR(i),YR(i,"Tablet"),YR(i,"Mobile"),e(t=>YR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",XR(i),XR(i),XR(i),e(t=>XR(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,defaultValue:30,property:"font-size",device:e})};return{fill:(0,Hs.qD)(t?.iconColor),...i}})(i)), | |
| 2783 | +t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>({fill:(0,Hs.qD)(t?.iconColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion-is-selected svg.ablocks-svg-icon",(t=>({fill:(0,Hs.qD)(t?.iconActiveColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",BR(i),BR(i,"Tablet"),BR(i,"Mobile"),e(t=>BR(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",ER(i),ER(i),ER(i),e(t=>ER(i))),(0,b.applyFilters)("ablocks.accordion.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(jR,{...t}),(0,I.jsx)(AR,{...t})]})},save:FR,deprecated:[{attributes:qR.uK,save:$R}],icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion"})});var GR=i(80518);function ZR(t){ | |
| 2784 | +const{attributes:e,setAttributes:i}=t,{headerTextColor:o,headerTextColorH:a,headerBackgroundColor:n,headerBackgroundColorH:s,headerPadding:r,headerTypography:b,headerTextShadow:c,headerTextStroke:d,iconColor:u,iconColorH:p,bodyBackgroundH:m,bodyBackground:h,bodyPadding:g,accordionTitle:f,headerBackgroundActiveColor:y,headerTextActiveColor:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Accordion Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Customize accordion block settings to your design and content needs.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i, | |
| 2785 | +docs_url:"https://ablocks.pro/docs/ablocks-accordion-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Single Accordion","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Item Space","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"itemSpace",hasUnit:!1,attributeValue:e.itemSpace,setAttributes:i,attributeDefaultValue:GR.eY}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i})]}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Accordion Title","ablocks"),attributeName:"accordionTitle",attributeValue:f,setAttributes:i,isInline:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headerTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0, | |
| 2786 | +I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"headerTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"headerTextStroke",attributeValue:d,setAttributes:i,isResponsive:!0}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headerTextColor",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColor",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headerTextColorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"headerBackgroundColorH",attributeValue:s,setAttributes:i})]})}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ws,{ | |
| 2787 | +label:(0,L.__)("Active Color","ablocks"),attributeName:"headerTextActiveColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Background","ablocks"),attributeName:"headerBackgroundActiveColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"headerPadding",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:GR.RK}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0, | |
| 2788 | +I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:u,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconColorH",attributeValue:p,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Content","ablocks"),initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"bodyPadding",attributeValue:g,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackground",attributeValue:h,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"bodyBackgroundH",attributeValue:m,setAttributes:i})})})]})]})]})})}ZR.propTypes={};const KR={UU:"ablocks/single-accordion",$t:["ablocks/accordion"],uK:{block_id:{type:"string",default:""},accordionId:{ | |
| 2789 | +type:"number",default:0},accordionTitle:{type:"string",default:""},headerTextColor:{type:"string",default:""},headerTextColorH:{type:"string",default:""},headerTextActiveColor:{type:"string",default:""},headerBackgroundActiveColor:{type:"string",default:""},headerBackgroundColorH:{type:"string",default:""},headerBackgroundColor:{type:"string",default:""},iconColor:{type:"string",default:""},iconColorH:{type:"string",default:""},bodyBackgroundH:{type:"string",default:""},bodyBackground:{type:"string",default:""},parentAttributes:{type:"object",default:{iconPosition:"right",headingTag:"p",showIcon:!0,leftCloseIconClass:"far fa-arrow-alt-circle-up",leftActiveIconClass:"far fa-arrow-alt-circle-down",rightActiveIconClass:"fas fa-minus",rightCloseIconClass:"fas fa-plus"}},iconSize:{type:"number",default:""},itemSpace:{type:"number",default:""},leftCloseIconSvgPath:{type:"string", | |
| 2790 | +default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z"},leftCloseIconSvgViewBox:{type:"string",default:"0 0 512 512"},leftCloseIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},leftCloseIconImageUrl:{type:"string",default:""},leftCloseIconImageID:{type:"number",default:0},leftCloseIconImageSize:{type:"string",default:""},leftCloseIconColor:{type:"string",default:"#69727d"},leftCloseIconBgColor:{type:"string",default:""},leftCloseIconHoverColor:{type:"string",default:""},leftCloseIconHoverBgColor:{type:"string",default:""},leftCloseIconType:{type:"string",default:"default"},leftCloseIconShape:{type:"string",default:"circle"},leftCloseIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"", | |
| 2791 | +left:"",unit:"px"}},leftCloseIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},leftCloseIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftCloseIconSize:{ | |
| 2792 | +type:"number",default:55},leftCloseIconRotate:{type:"number",default:0},leftCloseIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftCloseIcontransitionDuration:{type:"number",default:0},leftCloseIconImageWidth:{type:"number",default:0},leftActiveIconSvgPath:{type:"string",default:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z"},leftActiveIconSvgViewBox:{type:"string", | |
| 2793 | +default:"0 0 512 512"},leftActiveIconClass:{type:"string",default:"far fa-arrow-alt-circle-down"},leftActiveIconImageUrl:{type:"string",default:""},leftActiveIconImageID:{type:"number",default:0},leftActiveIconImageSize:{type:"string",default:""},leftActiveIconColor:{type:"string",default:"#69727d"},leftActiveIconBgColor:{type:"string",default:""},leftActiveIconHoverColor:{type:"string",default:""},leftActiveIconHoverBgColor:{type:"string",default:""},leftActiveIconType:{type:"string",default:"default"},leftActiveIconShape:{type:"string",default:"circle"},leftActiveIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},leftActiveIconBorder:{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, | |
| 2794 | +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:""}},leftActiveIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},leftActiveIconSize:{type:"number",default:55},leftActiveIconRotate:{type:"number",default:0},leftActiveIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},leftActiveIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"", | |
| 2795 | +valueUnitMobile:""}},leftActiveIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},leftActiveIcontransitionDuration:{type:"number",default:0},leftActiveIconImageWidth:{type:"number",default:0},rightCloseIconSvgPath:{type:"string",default:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},rightCloseIconSvgViewBox:{type:"string",default:"0 0 448 512"},rightCloseIconClass:{type:"string",default:"fas fa-plus"},rightCloseIconImageUrl:{type:"string",default:""},rightCloseIconImageID:{type:"number",default:0},rightCloseIconImageSize:{type:"string",default:""},rightCloseIconColor:{type:"string",default:"#69727d"},rightCloseIconBgColor:{type:"string",default:""},rightCloseIconHoverColor:{type:"string",default:""}, | |
| 2796 | +rightCloseIconHoverBgColor:{type:"string",default:""},rightCloseIconType:{type:"string",default:"default"},rightCloseIconShape:{type:"string",default:"circle"},rightCloseIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightCloseIconBorder:{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:""}},rightCloseIconBoxShadow:{ | |
| 2797 | +type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},rightCloseIconSize:{type:"number",default:55},rightCloseIconRotate:{type:"number",default:0},rightCloseIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},rightCloseIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightCloseIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightCloseIcontransitionDuration:{type:"number",default:0},rightCloseIconImageWidth:{type:"number",default:0},rightActiveIconSvgPath:{type:"string", | |
| 2798 | +default:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},rightActiveIconSvgViewBox:{type:"string",default:"0 0 448 512"},rightActiveIconClass:{type:"string",default:"fas fa-minus"},rightActiveIconImageUrl:{type:"string",default:""},rightActiveIconImageID:{type:"number",default:0},rightActiveIconImageSize:{type:"string",default:""},rightActiveIconColor:{type:"string",default:"#69727d"},rightActiveIconBgColor:{type:"string",default:""},rightActiveIconHoverColor:{type:"string",default:""},rightActiveIconHoverBgColor:{type:"string",default:""},rightActiveIconType:{type:"string",default:"default"},rightActiveIconShape:{type:"string",default:"circle"},rightActiveIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},rightActiveIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 2799 | +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:""}},rightActiveIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},rightActiveIconSize:{type:"number",default:55},rightActiveIconRotate:{type:"number",default:0},rightActiveIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"", | |
| 2800 | +valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},rightActiveIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightActiveIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},rightActiveIcontransitionDuration:{type:"number",default:0},rightActiveIconImageWidth:{type:"number",default:0},headerTypographyGlobal:{type:"string",default:""},headerTypography:{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", | |
| 2801 | +letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},itemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"", | |
| 2802 | +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:"", | |
| 2803 | +topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},headerPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},bodyPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", | |
| 2804 | +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:"", | |
| 2805 | +rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"", | |
| 2806 | +left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"", | |
| 2791 | 2807 | 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:"", |
| 2792 | -leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 2793 | -customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 2794 | -isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", | |
| 2795 | -hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 2796 | -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:"", | |
| 2797 | -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:"", | |
| 2798 | -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", | |
| 2799 | -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, | |
| 2800 | -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 YR(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,accordionTitle:s,accordionId:b,parentAttributes:c}=e,d=(0,C.useBlockProps)({className:"ablocks-block ablocks-block--single-accordion__body-content"}),u=(0,C.useInnerBlocksProps)(d,{templateLock:!1}),{iconPosition:p,headingTag:m,showIcon:h,leftCloseIconClass:g,leftActiveIconClass:f,rightActiveIconClass:y,rightCloseIconClass:T}=c||{},H=(0, | |
| 2801 | -r.select)("core/block-editor").getBlockRootClientId(o),M=(0,r.select)("core/block-editor").getBlockIndex(o,H),x=(c?Object.keys(c).length:0)>7?c:e;(0,a.useEffect)(()=>{const t={};if(-1!==M&&M!==b&&(t.accordionId=M),!s){const e=-1!==M?M:b;t.accordionTitle=`Accordion Title ${e+1}`}Object.keys(t).length>0&&i(t)},[M]);const k=h&&("left"===p||"both"===p)&&f,v=h&&("left"===p||"both"===p)&&g,_=h&&("right"===p||"both"===p)&&y,R=h&&("right"===p||"both"===p)&&T;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(K_,{blockId:n,name:OR.UU,attributes:e,blockProps:{"data-id-acc":b},children:[(0,L.jsxs)("div",{className:"ablocks-block--single-accordion__heading",children:[(0,L.jsxs)("div",{className:"ablocks-block--single-accordion__heading-rightSide",children:[k&&(0,L.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,L.jsx)(Vd,{attributePrefix:"leftActiveIcon",attributes:x})}),v&&(0,L.jsx)("div",{ | |
| 2802 | -className:"ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,L.jsx)(Vd,{attributePrefix:"leftCloseIcon",attributes:x})}),(0,L.jsx)(Yc,{tagName:m,identifier:"accordionTitle",value:e.accordionTitle,withoutInteractiveFormatting:!0,placeholder:e.accordionTitle,className:"ablocks-block-accordion-title",onChange:t=>i({accordionTitle:t})})]}),_&&(0,L.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,L.jsx)(Vd,{attributePrefix:"rightActiveIcon",attributes:x})}),R&&(0,L.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,L.jsx)(Vd,{attributePrefix:"rightCloseIcon",attributes:x})})]}),(0,L.jsx)("div",{className:"ablocks-block--single-accordion__body",children:(0,L.jsx)("div",{...u})})]})})}YR.propTypes={};const XR=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value", | |
| 2803 | -isResponsive:!1,hasUnit:!1,unitDefaultValue:"px",property:"margin-bottom",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},BR=(t,e="")=>{const i=(0,M.Zy)(t.headerTypography,{weight:"400"}),o=t.headerTypographyGlobal?t.headerTypographyGlobal:"";return{color:(0,gs.qD)(t?.headerTextColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.headerTextStroke,e),...(0,pc.qD)(t?.headerTextShadow)}},ER=t=>({color:(0,gs.qD)(t?.headerTextColorH)}),FR=t=>({color:(0,gs.qD)(t?.headerTextActiveColor)}),qR=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px"}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},$R=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,gs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)}},GR=t=>({background:(0,gs.qD)(t?.headerBackgroundActiveColor)}),ZR=(t,e="")=>{const i=(0, | |
| 2804 | -M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},KR=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,gs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},JR=t=>({background:(0,gs.qD)(t?.bodyBackgroundH)});function QR(t){const{attributes:e}=t,{block_id:i,accordionTitle:o,accordionId:a,parentAttributes:n}=e,{headingTag:s,iconPosition:r,showIcon:b,rightActiveIconClass:c,rightCloseIconClass:d,leftCloseIconClass:u,leftActiveIconClass:p}=n||{},m=C.useBlockProps.save({className:"ablocks-block--single-accordion__body-content"}),h=C.useInnerBlocksProps.save(m),g=(n?Object.keys(n).length:0)>7?n:e,f=b&&("left"===r||"both"===r)&&p,y=b&&("left"===r||"both"===r)&&u,T=b&&("right"===r||"both"===r)&&c,H=b&&("right"===r||"both"===r)&&d;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(eR,{blockId:i,name:OR.UU,attributes:e,blockProps:{"data-id-acc":a},children:[(0,L.jsxs)("div",{className:"ablocks-block--single-accordion__heading",children:[(0, | |
| 2805 | -L.jsxs)("div",{className:"ablocks-block--single-accordion__heading-rightSide",children:[f&&(0,L.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,L.jsx)(Vd,{attributePrefix:"leftActiveIcon",attributes:g})}),y&&(0,L.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,L.jsx)(Vd,{attributePrefix:"leftCloseIcon",attributes:g})}),(0,L.jsx)(C.RichText.Content,{tagName:s,className:"ablocks-block-accordion-title",withoutInteractiveFormatting:!0,value:o})]}),T&&(0,L.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,L.jsx)(Vd,{attributePrefix:"rightActiveIcon",attributes:g})}),H&&(0,L.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,L.jsx)(Vd,{attributePrefix:"rightCloseIcon",attributes:g})})]}),(0,L.jsx)("div",{ | |
| 2806 | -className:"ablocks-block--single-accordion__body",children:(0,L.jsx)("div",{...h})})]})})}QR.propTypes={},(0,M.xV)(OR.UU,OR.$t[0])&&(0,o.registerBlockType)(OR.UU,{title:"Single Accordion",attributes:OR.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion",XR(i),XR(i,"Tablet"),XR(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion:hover",ZR(i),ZR(i,"Tablet"),ZR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",BR(i),BR(i,"Tablet"),BR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",ER(i),ER(i),ER(i)), | |
| 2807 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",FR(i),FR(i),FR(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",qR(i),qR(i,"Tablet"),qR(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",GR(i),GR(i),GR(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",$R(i),$R(i,"Tablet"),$R(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",device:e})};return t?.iconColor&&(i.fill=`${(0,gs.qD)(t?.iconColor)} !important`),{...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>{const e={};return t?.iconColorH&&(e.fill=`${(0,gs.qD)(t?.iconColorH)} !important`),{...e} | |
| 2808 | -})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",KR(i),KR(i,"Tablet"),KR(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",JR(i),JR(i),JR(i)),(0,b.applyFilters)("ablocks.single-accordion.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(VR,{...t}),(0,L.jsx)(YR,{...t})]})},save:QR,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"})});const tS={normal:I().node.isRequired,active:I().node.isRequired};function eS(t){const{normal:e="",active:i=""}=t,o=[{name:"normal",render:e,title:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("span",{className:"ablocks-text",children:(0,z.__)("Normal","ablocks")})}),className:"ablocks-normal-active-tab__item"},{name:"active",render:i,title:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("span",{className:"ablocks-text",children:(0,z.__)("Active","ablocks")})}), | |
| 2809 | -className:"ablocks-normal-active-tab__item"}];return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(A.TabPanel,{className:"ablocks-normal-active-tabs",activeClass:"ablocks-normal-active-tab__item--active",tabs:o,children:t=>t.render})})}eS.propTypes=tS;var iS=i(41111);const oS=[{label:(0,z.__)("Top","ablocks"),value:"top"},{label:(0,z.__)("Bottom","ablocks"),value:"bottom"},{label:(0,z.__)("Left","ablocks"),value:"left"},{label:(0,z.__)("Right","ablocks"),value:"right"}],aS=[{label:(0,z.__)("Start","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,z.__)("End","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],lS=[{label:(0,z.__)("Start","ablocks"),value:"start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{ | |
| 2810 | -label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,z.__)("End","ablocks"),value:"end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],nS=((0,z.__)("Circle","ablocks"),(0,z.__)("Square","ablocks"),(0,z.__)("Default","ablocks"),(0,z.__)("Stacked","ablocks"),(0,z.__)("Framed","ablocks"),[{label:(0,z.__)("Left","ablocks"),value:"left"},{label:(0,z.__)("Right","ablocks"),value:"right"},{label:(0,z.__)("Top","ablocks"),value:"top"},{label:(0,z.__)("Bottom","ablocks"),value:"bottom"}]);function sS(t){ | |
| 2811 | -const{attributes:e,setAttributes:i}=t,{subTitleTypography:o,subTitleTextColor:a,subTitleTextActiveColor:n,showTitle:s,showSubTitle:r,iconPosition:b,tabsMenuPositioning:c,tabsMenuDirection:d,showIcon:u,titleTypography:p,titleTextColor:m,tabBackgroundColor:h,contentBackgroundColor:g,titleTextActiveColor:f,tabActiveBackgroundColor:y,menuContentPadding:T,spacing:H,tabsGap:x,tabsWidth:k,tabsWidthType:v,tabWrap:_,tabsContentWidthType:R,contentGap:S,contentWidth:W,progressBarColor:U,tabsChangingEffect:P,activeColorOptions:j,tabIcons:w,tabIconsClasses:N,clickedTabIndex:I,enableHoverSwitch:V}=e,O=at(),Y=(0,M.Ic)(e?.tabsMenuPositioning,"value",O);return(0,M.Ic)(e?.tabsWidthType,"value",O),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-tabs-block/",children:[(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Tab Menu","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{ | |
| 2812 | -children:[(0,L.jsx)(vb,{allowDeselect:!1,label:(0,z.__)("Menu Position","ablocks"),options:oS,attributeName:"tabsMenuPositioning",attributeValue:c,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vb,{allowDeselect:!1,label:(0,z.__)("Menu Direction","ablocks"),options:[{label:(0,z.__)("Row","ablocks"),value:"row"},{label:(0,z.__)("Column","ablocks"),value:"column"}],attributeName:"tabsMenuDirection",attributeValue:d,setAttributes:i})}),("top"===Y||"bottom"===Y)&&(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Menu Alignment","ablocks"),options:aS,attributeName:"tabMenuAlignment",attributeValue:e.tabMenuAlignment,setAttributes:i}),(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Menu Content Alignment","ablocks"),options:lS,attributeName:"menuContentAlignment",attributeValue:e.menuContentAlignment,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Wrap","ablocks"),options:[{label:(0,z.__)("Wrap","ablocks"),value:"wrap",icon:(0, | |
| 2813 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,z.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,z.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}],attributeName:"tabWrap",attributeValue:_,setAttributes:i}),(0,L.jsx)(js,{label:(0,z.__)("Initial Open","ablocks"),attributeName:"initialOpen",attributeValue:e?.initialOpen,setAttributes:i,isInline:!0}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Hover Switch","ablocks"),attributeValue:V,setAttributes:i,attributeName:"enableHoverSwitch"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Title","ablocks"),attributeValue:e?.showTitle,setAttributes:i,attributeName:"showTitle"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Sub Title","ablocks"),attributeValue:e?.showSubTitle,setAttributes:i, | |
| 2814 | -attributeName:"showSubTitle"}),r&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Only Active Sub Title","ablocks"),attributeValue:e?.showActiveSubTitle,setAttributes:i,attributeName:"showActiveSubTitle"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Icon","ablocks"),attributeValue:u,setAttributes:i,attributeName:"showIcon"}),(0,L.jsx)(Ut,{label:(0,z.__)("Active Color Options","ablocks"),options:[{label:(0,z.__)("Background","ablocks"),value:"background"},{label:(0,z.__)("Border","ablocks"),value:"border"}],isSearch:!0,attributeName:"activeColorOptions",attributeValue:j,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Tabs Change Effect","ablocks"),options:[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Enable Auto Change","ablocks"),value:"enableAutoChange"}],isSearch:!0,attributeName:"tabsChangingEffect",attributeValue:P,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"), | |
| 2815 | -attributeName:"tabMenusBackgroundColor",attributeValue:e?.tabMenusBackgroundColor,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"tabMenusPadding",attributeValue:e?.tabMenusPadding,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),attributeName:"tabMenusMargin",attributeValue:e?.tabMenusMargin,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"tabMenusBorder",attributeValue:e?.tabMenusBorder,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsGap",attributeValue:x,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:iS.Pf}),r&&(0,L.jsx)(vt,{label:(0,z.__)("Content Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentGap",attributeValue:S, | |
| 2816 | -setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:iS.ij}),"left"===Y||"right"===Y?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Tabs Menu Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsWidth",attributeValue:k,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:iS.Ld}),(0,L.jsx)(vt,{label:(0,z.__)("Content Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentWidth",attributeValue:W,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:iS.MS})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{allowDeselect:!1,label:(0,z.__)("Tab Parent Width","ablocks"),options:[{label:(0,z.__)("Auto","ablocks"),value:"auto"},{label:(0,z.__)("Full","ablocks"), | |
| 2817 | -value:"100%"}],attributeName:"tabsWidthType",attributeValue:v,setAttributes:i}),(0,L.jsx)(vb,{allowDeselect:!1,label:(0,z.__)("Tab Child Width","ablocks"),options:[{label:(0,z.__)("Auto","ablocks"),value:"auto"},{label:(0,z.__)("Full","ablocks"),value:"100%"}],attributeName:"tabsContentWidthType",attributeValue:R,setAttributes:i})]}),(0,L.jsx)(ot,{label:(0,z.__)("Each Tab Menu","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Menu Padding","ablocks"),isResponsive:!0,attributeName:"menuContentPadding",attributeValue:T,setAttributes:i}),(0,L.jsx)(eS,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"tabBackgroundColor",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Content Background Color","ablocks"),attributeName:"contentBackgroundColor",attributeValue:g,setAttributes:i})]})}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0 | |
| 2818 | -}),(0,L.jsx)(Rs,{attributeName:"menuContentBorder",attributeValue:e?.menuContentBorder,setAttributes:i}),"border"===j?(0,L.jsx)(vs,{label:(0,z.__)("Active Border Color","ablocks"),attributeName:"activeBorderColor",attributeValue:e?.activeBorderColor,setAttributes:i}):(0,L.jsx)(vs,{label:(0,z.__)("Active Background Color","ablocks"),attributeName:"tabActiveBackgroundColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),s&&(0,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!1,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(ot,{label:(0,z.__)("Title Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(eS,{normal:(0, | |
| 2819 | -L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleTextColor",attributeValue:m,setAttributes:i})}),active:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleTextActiveColor",attributeValue:f,setAttributes:i})})})]})}),r&&(0,L.jsx)(D,{title:(0,z.__)("Subtitle","ablocks"),initialOpen:!1,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"subTitleTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(ot,{label:(0,z.__)("Subtitle Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(eS,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"subTitleTextColor",attributeValue:a,setAttributes:i})}),active:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"subTitleTextActiveColor",attributeValue:n,setAttributes:i})})})]}) | |
| 2820 | -}),u&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:t=>((t,e)=>{let o=[];switch(t.substring(2,3)){case"r":o=Wd;break;case"s":o=Pd;break;case"b":o=Ud}const a=o[t.substring(7)],l=`0 0 ${a[0]} ${a[1]}`,n=a[4],s=w||[],r=N||[],b=[...s.slice(0,e)||[],{path:n,viewBox:l},...s.slice(e+1)||[]],c=[...r.slice(0,e)||[],t,...r.slice(e+1)||[]];i({tabIcons:b,tabIconsClasses:c})})(t,I),deleteHandler:()=>(t=>{const e=w||[],o=N||[],a=[...e.slice(0,t)||[],{path:"",viewBox:""},...e.slice(t+1)||[]],l=[...o.slice(0,t)||[],"",...o.slice(t+1)||[]];i({tabIcons:a,tabIconsClasses:l})})(I),getIconClass:()=>N?.[I],legacySupport:!0,legacyIconSizeSupport:!0,viewSupport:!0}),(0,L.jsx)(vb,{allowDeselect:!1,label:(0,z.__)("Icon Position","ablocks"),options:nS,attributeName:"iconPosition",attributeValue:b,setAttributes:i})]}),style:(0, | |
| 2821 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nd,{attributes:e,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),attributeName:"iconPositionMargin",attributeValue:e?.iconPositionMargin,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),isResponsive:!1,hasUnit:!0,attributeName:"spacing",attributeValue:H,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:iS.CB})]})})}),"enableAutoChange"===P&&(0,L.jsx)(D,{title:(0,z.__)("Auto Change Style","ablocks"),initialOpen:!1,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(js,{label:(0,z.__)("Active Duration","ablocks"),attributeName:"activeDuration",attributeValue:e?.activeDuration,setAttributes:i,isInline:!0}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"progressBarColor",attributeValue:U,setAttributes:i})]})}),(0,L.jsxs)(D,{title:(0,z.__)("Tab Content","ablocks"), | |
| 2822 | -initialOpen:!1,children:[(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:e?.contentPadding,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),attributeName:"contentMargin",attributeValue:e?.contentMargin,setAttributes:i}),(0,L.jsx)(Rs,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})})})}sS.propTypes={};const rS={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabMenusBackgroundColor:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array", | |
| 2808 | +leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"", | |
| 2809 | +imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"", | |
| 2810 | +imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px", | |
| 2811 | +offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"", | |
| 2812 | +scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 2813 | +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function JR(t){ | |
| 2814 | +const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,accordionTitle:s,accordionId:b,parentAttributes:c}=e,d=(0,D.useBlockProps)({className:"ablocks-block ablocks-block--single-accordion__body-content"}),u=(0,D.useInnerBlocksProps)(d,{templateLock:!1}),{iconPosition:p,headingTag:m,showIcon:h,leftCloseIconClass:g,leftActiveIconClass:f,rightActiveIconClass:y,rightCloseIconClass:T}=c||{},H=(0,r.select)("core/block-editor").getBlockRootClientId(o),M=(0,r.select)("core/block-editor").getBlockIndex(o,H),x=(c?Object.keys(c).length:0)>7?c:e;(0,a.useEffect)(()=>{const t={};if(-1!==M&&M!==b&&(t.accordionId=M),!s){const e=-1!==M?M:b;t.accordionTitle=`Accordion Title ${e+1}`}Object.keys(t).length>0&&i(t)},[M]);const k=h&&("left"===p||"both"===p)&&f,v=h&&("left"===p||"both"===p)&&g,_=h&&("right"===p||"both"===p)&&y,R=h&&("right"===p||"both"===p)&&T;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sR,{blockId:n,name:KR.UU,attributes:e,blockProps:{"data-id-acc":b},children:[(0,I.jsxs)("div",{ | |
| 2815 | +className:"ablocks-block--single-accordion__heading",children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading-rightSide",children:[k&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"leftActiveIcon",attributes:x})}),v&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"leftCloseIcon",attributes:x})}),(0,I.jsx)($c,{tagName:m,identifier:"accordionTitle",value:e.accordionTitle,withoutInteractiveFormatting:!0,placeholder:e.accordionTitle,className:"ablocks-block-accordion-title",onChange:t=>i({accordionTitle:t})})]}),_&&(0,I.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"rightActiveIcon",attributes:x})}),R&&(0,I.jsx)("div",{ | |
| 2816 | +className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"rightCloseIcon",attributes:x})})]}),(0,I.jsx)("div",{className:"ablocks-block--single-accordion__body",children:(0,I.jsx)("div",{...u})})]})})}JR.propTypes={};const QR=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemSpace,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,unitDefaultValue:"px",property:"margin-bottom",device:e})},o=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},tS=(t,e="")=>{const i=(0,M.Zy)(t.headerTypography,{weight:"400"}),o=t.headerTypographyGlobal?t.headerTypographyGlobal:"";return{color:(0,Hs.qD)(t?.headerTextColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.headerTextStroke,e),...(0,fc.qD)(t?.headerTextShadow)}},eS=t=>({color:(0,Hs.qD)(t?.headerTextColorH)}),iS=t=>({color:(0,Hs.qD)(t?.headerTextActiveColor)}),oS=(t,e="")=>{const i=(0,M.Zy)(t.headerPadding,{unit:"px" | |
| 2817 | +}),o=(0,M.Zy)(t.headerBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},aS=(t,e="")=>{const i=(0,M.Zy)(t.headerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.headerBackgroundColorH),...(0,y.a9)(i,e)}},lS=t=>({background:(0,Hs.qD)(t?.headerBackgroundActiveColor)}),nS=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},sS=(t,e="")=>{const i=(0,M.Zy)(t.bodyPadding,{unit:"px"});return{background:(0,Hs.qD)(t?.bodyBackground),...(0,c.qD)(i,"padding",e)}},rS=t=>({background:(0,Hs.qD)(t?.bodyBackgroundH)});function bS(t){const{attributes:e}=t,{block_id:i,accordionTitle:o,accordionId:a,parentAttributes:n}=e,{headingTag:s,iconPosition:r,showIcon:b,rightActiveIconClass:c,rightCloseIconClass:d,leftCloseIconClass:u,leftActiveIconClass:p}=n||{},m=D.useBlockProps.save({className:"ablocks-block--single-accordion__body-content" | |
| 2818 | +}),h=D.useInnerBlocksProps.save(m),g=(n?Object.keys(n).length:0)>7?n:e,f=b&&("left"===r||"both"===r)&&p,y=b&&("left"===r||"both"===r)&&u,T=b&&("right"===r||"both"===r)&&c,H=b&&("right"===r||"both"===r)&&d;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(dR,{blockId:i,name:KR.UU,attributes:e,blockProps:{"data-id-acc":a},children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading",children:[(0,I.jsxs)("div",{className:"ablocks-block--single-accordion__heading-rightSide",children:[f&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"leftActiveIcon",attributes:g})}),y&&(0,I.jsx)("div",{className:"ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"leftCloseIcon",attributes:g})}),(0,I.jsx)(D.RichText.Content,{tagName:s,className:"ablocks-block-accordion-title",withoutInteractiveFormatting:!0,value:o})]}),T&&(0,I.jsx)("div",{ | |
| 2819 | +className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-open",children:(0,I.jsx)(Fd,{attributePrefix:"rightActiveIcon",attributes:g})}),H&&(0,I.jsx)("div",{className:"ablocks-single-accordion-right-side-icon ablocks-block--single-accordion__heading-collapse-icon-off",children:(0,I.jsx)(Fd,{attributePrefix:"rightCloseIcon",attributes:g})})]}),(0,I.jsx)("div",{className:"ablocks-block--single-accordion__body",children:(0,I.jsx)("div",{...h})})]})})}bS.propTypes={},(0,M.xV)(KR.UU,KR.$t[0])&&(0,o.registerBlockType)(KR.UU,{title:(0,L.__)("Single Accordion","ablocks"),attributes:KR.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion",QR(i),QR(i,"Tablet"),QR(i,"Mobile"),t.customDeviceMap(t=>QR(i,t))), | |
| 2820 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion:hover",nS(i),nS(i,"Tablet"),nS(i,"Mobile"),t.customDeviceMap(t=>nS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading .ablocks-block-accordion-title",tS(i),tS(i,"Tablet"),tS(i,"Mobile"),t.customDeviceMap(t=>tS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover .ablocks-block-accordion-title",eS(i),eS(i),eS(i),t.customDeviceMap(t=>eS(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block-accordion-title",iS(i),iS(i),iS(i),t.customDeviceMap(t=>iS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading",oS(i),oS(i,"Tablet"),oS(i,"Mobile"),t.customDeviceMap(t=>oS(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--single-accordion-is-selected .ablocks-block--single-accordion__heading",lS(i),lS(i),lS(i),t.customDeviceMap(t=>lS(i))), | |
| 2821 | +t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover",aS(i),aS(i,"Tablet"),aS(i,"Mobile"),t.customDeviceMap(t=>aS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",device:e})};return t?.iconColor&&(i.fill=`${(0,Hs.qD)(t?.iconColor)} !important`),{...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__heading:hover svg.ablocks-svg-icon",(t=>{const e={};return t?.iconColorH&&(e.fill=`${(0,Hs.qD)(t?.iconColorH)} !important`),{...e}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content",sS(i),sS(i,"Tablet"),sS(i,"Mobile"),t.customDeviceMap(t=>sS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--single-accordion__body-content:hover",rS(i),rS(i),rS(i),t.customDeviceMap(t=>rS(i))),(0, | |
| 2822 | +b.applyFilters)("ablocks.single-accordion.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ZR,{...t}),(0,I.jsx)(JR,{...t})]})},save:bS,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-accordion-child"})});const cS={normal:Y().node.isRequired,active:Y().node.isRequired};function dS(t){const{normal:e="",active:i=""}=t,o=[{name:"normal",render:e,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Normal","ablocks")})}),className:"ablocks-normal-active-tab__item"},{name:"active",render:i,title:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"ablocks-text",children:(0,L.__)("Active","ablocks")})}),className:"ablocks-normal-active-tab__item"}];return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(N.TabPanel,{className:"ablocks-normal-active-tabs",activeClass:"ablocks-normal-active-tab__item--active",tabs:o,children:t=>t.render})})} | |
| 2823 | +dS.propTypes=cS;var uS=i(41111);const pS=[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],mS=[{label:(0,L.__)("Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],hS=[{label:(0,L.__)("Start","ablocks"),value:"start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"end",icon:(0,I.jsx)("span",{ | |
| 2824 | +className:"ablocks-icon ablocks-icon--align-end"})}],gS=((0,L.__)("Circle","ablocks"),(0,L.__)("Square","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"}]);function fS(t){ | |
| 2825 | +const{attributes:e,setAttributes:i}=t,{subTitleTypography:o,subTitleTextColor:a,subTitleTextActiveColor:n,showTitle:s,showSubTitle:r,iconPosition:b,tabsMenuPositioning:c,tabsMenuDirection:d,showIcon:u,titleTypography:p,titleTextColor:m,tabBackgroundColor:h,contentBackgroundColor:g,titleTextActiveColor:f,tabActiveBackgroundColor:y,menuContentPadding:T,spacing:H,tabsGap:x,tabsWidth:k,tabsWidthType:v,tabWrap:_,tabsContentWidthType:R,contentGap:S,contentWidth:W,progressBarColor:P,tabsChangingEffect:U,activeColorOptions:j,tabIcons:w,tabIconsClasses:z,clickedTabIndex:C,enableHoverSwitch:A}=e,O=lt(),Y=(0,M.Ic)(e?.tabsMenuPositioning,"value",O);return(0,M.Ic)(e?.tabsWidthType,"value",O),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-tabs-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Tab Menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{ | |
| 2826 | +children:[(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Menu Position","ablocks"),options:pS,attributeName:"tabsMenuPositioning",attributeValue:c,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Menu Direction","ablocks"),options:[{label:(0,L.__)("Row","ablocks"),value:"row"},{label:(0,L.__)("Column","ablocks"),value:"column"}],attributeName:"tabsMenuDirection",attributeValue:d,setAttributes:i})}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Menu Alignment","ablocks"),options:mS,attributeName:"tabMenuAlignment",attributeValue:e.tabMenuAlignment,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Menu Content Alignment","ablocks"),options:hS,attributeName:"menuContentAlignment",attributeValue:e.menuContentAlignment,setAttributes:i}),("top"===Y||"bottom"===Y)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Wrap","ablocks"),options:[{label:(0,L.__)("Wrap","ablocks"),value:"wrap",icon:(0, | |
| 2827 | +I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,L.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,L.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}],attributeName:"tabWrap",attributeValue:_,setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Initial Open","ablocks"),attributeName:"initialOpen",attributeValue:e?.initialOpen,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Hover Switch","ablocks"),attributeValue:A,setAttributes:i,attributeName:"enableHoverSwitch"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Title","ablocks"),attributeValue:e?.showTitle,setAttributes:i,attributeName:"showTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Sub Title","ablocks"),attributeValue:e?.showSubTitle,setAttributes:i, | |
| 2828 | +attributeName:"showSubTitle"}),r&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Only Active Sub Title","ablocks"),attributeValue:e?.showActiveSubTitle,setAttributes:i,attributeName:"showActiveSubTitle"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:u,setAttributes:i,attributeName:"showIcon"}),(0,I.jsx)(Ut,{label:(0,L.__)("Active Color Options","ablocks"),options:[{label:(0,L.__)("Background","ablocks"),value:"background"},{label:(0,L.__)("Border","ablocks"),value:"border"}],isSearch:!0,attributeName:"activeColorOptions",attributeValue:j,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Tabs Change Effect","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"default"},{label:(0,L.__)("Enable Auto Change","ablocks"),value:"enableAutoChange"}],isSearch:!0,attributeName:"tabsChangingEffect",attributeValue:U,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"), | |
| 2829 | +attributeName:"tabMenusBackgroundColor",attributeValue:e?.tabMenusBackgroundColor,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"tabMenusPadding",attributeValue:e?.tabMenusPadding,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"tabMenusMargin",attributeValue:e?.tabMenusMargin,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"tabMenusBorder",attributeValue:e?.tabMenusBorder,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsGap",attributeValue:x,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:uS.Pf}),r&&(0,I.jsx)(_t,{label:(0,L.__)("Content Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentGap",attributeValue:S, | |
| 2830 | +setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:0,max:100,isInline:!1,attributeDefaultValue:uS.ij}),"left"===Y||"right"===Y?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Tabs Menu Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"tabsWidth",attributeValue:k,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:uS.Ld}),(0,I.jsx)(_t,{label:(0,L.__)("Content Width","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"contentWidth",attributeValue:W,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"%",label:"%"}],step:1,min:30,max:70,isInline:!1,attributeDefaultValue:uS.MS})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Tab Parent Width","ablocks"),options:[{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Full","ablocks"), | |
| 2831 | +value:"100%"}],attributeName:"tabsWidthType",attributeValue:v,setAttributes:i}),(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Tab Child Width","ablocks"),options:[{label:(0,L.__)("Auto","ablocks"),value:"auto"},{label:(0,L.__)("Full","ablocks"),value:"100%"}],attributeName:"tabsContentWidthType",attributeValue:R,setAttributes:i})]}),(0,I.jsx)(at,{label:(0,L.__)("Each Tab Menu","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(xt,{label:(0,L.__)("Menu Padding","ablocks"),isResponsive:!0,attributeName:"menuContentPadding",attributeValue:T,setAttributes:i}),(0,I.jsx)(dS,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tabBackgroundColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Content Background Color","ablocks"),attributeName:"contentBackgroundColor",attributeValue:g,setAttributes:i})]})}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0 | |
| 2832 | +}),(0,I.jsx)(Us,{attributeName:"menuContentBorder",attributeValue:e?.menuContentBorder,setAttributes:i}),"border"===j?(0,I.jsx)(Ws,{label:(0,L.__)("Active Border Color","ablocks"),attributeName:"activeBorderColor",attributeValue:e?.activeBorderColor,setAttributes:i}):(0,I.jsx)(Ws,{label:(0,L.__)("Active Background Color","ablocks"),attributeName:"tabActiveBackgroundColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),s&&(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Title Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(dS,{normal:(0, | |
| 2833 | +I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleTextColor",attributeValue:m,setAttributes:i})}),active:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleTextActiveColor",attributeValue:f,setAttributes:i})})})]})}),r&&(0,I.jsx)(V,{title:(0,L.__)("Subtitle","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"subTitleTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Subtitle Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(dS,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subTitleTextColor",attributeValue:a,setAttributes:i})}),active:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subTitleTextActiveColor",attributeValue:n,setAttributes:i})})})]}) | |
| 2834 | +}),u&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:t=>((t,e)=>{let o=[];switch(t.substring(2,3)){case"r":o=Cd;break;case"s":o=Ld;break;case"b":o=Ad}const a=o[t.substring(7)],l=`0 0 ${a[0]} ${a[1]}`,n=a[4],s=w||[],r=z||[],b=[...s.slice(0,e)||[],{path:n,viewBox:l},...s.slice(e+1)||[]],c=[...r.slice(0,e)||[],t,...r.slice(e+1)||[]];i({tabIcons:b,tabIconsClasses:c})})(t,C),deleteHandler:()=>(t=>{const e=w||[],o=z||[],a=[...e.slice(0,t)||[],{path:"",viewBox:""},...e.slice(t+1)||[]],l=[...o.slice(0,t)||[],"",...o.slice(t+1)||[]];i({tabIcons:a,tabIconsClasses:l})})(C),getIconClass:()=>z?.[C],legacySupport:!0,legacyIconSizeSupport:!0,viewSupport:!0}),(0,I.jsx)(Wb,{allowDeselect:!1,label:(0,L.__)("Icon Position","ablocks"),options:gS,attributeName:"iconPosition",attributeValue:b,setAttributes:i})]}),style:(0, | |
| 2835 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Bd,{attributes:e,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"iconPositionMargin",attributeValue:e?.iconPositionMargin,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),isResponsive:!1,hasUnit:!0,attributeName:"spacing",attributeValue:H,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:uS.CB})]})})}),"enableAutoChange"===U&&(0,I.jsx)(V,{title:(0,L.__)("Auto Change Style","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Active Duration","ablocks"),attributeName:"activeDuration",attributeValue:e?.activeDuration,setAttributes:i,isInline:!0}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"progressBarColor",attributeValue:P,setAttributes:i})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Tab Content","ablocks"), | |
| 2836 | +initialOpen:!1,children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:e?.contentPadding,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),attributeName:"contentMargin",attributeValue:e?.contentMargin,setAttributes:i}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})})})}fS.propTypes={};const yS={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabMenusBackgroundColor:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array", | |
| 2823 | 2837 | default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:""},tabsMenuPositionMobile:{type:"string",default:""},initialOpen:{type:"number",default:1},activeDuration:{type:"number",default:5e3},activeColorOptions:{type:"string",default:"background"},enableHoverSwitch:{type:"boolean",default:!1},tabMenuAlign:{type:"string",default:""},tabMenuAlignTablet:{type:"string",default:""},tabMenuAlignMobile:{type:"string",default:""},menuContentAlign:{type:"string",default:"center"},menuContentAlignTablet:{type:"string",default:""},menuContentAlignMobile:{type:"string",default:""},tabBackgroundColor:{type:"string",default:"#F9F9F9"}, |
| 2824 | 2838 | contentBackgroundColor:{type:"string",default:""},tabActiveBackgroundColor:{type:"string",default:"#61CE70"},titleTextColor:{type:"string",default:"#13191B"},titleTextActiveColor:{type:"string",default:"#0A0909"},subTitleTextColor:{type:"string",default:"#3A3A3A "},subTitleTextActiveColor:{type:"string",default:"#3A3A3A"},activeBorderColor:{type:"string",default:"#61CE70"},showTitle:{type:"boolean",default:!0},showSubTitle:{type:"boolean",default:!1},showActiveSubTitle:{type:"boolean",default:!1},tabsChangingEffect:{type:"string",default:"default"},showIcon:{type:"boolean",default:!1},progressBarColor:{type:"string",default:"#13191B"},iconColor:{type:"string",default:"#69727d"},iconActiveColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{type:"string",default:"#FFFFFF"},iconActiveBackground:{type:"string",default:"#E5E5EC"},size:{type:"object",default:{value:18,valueTablet:"",valueMobile:"", |
| 2825 | 2839 | valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},tabsWidth:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},contentWidth:{type:"object",default:{value:70,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},tabsGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string", |
| 2826 | 2840 | 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" |
| @@ -2842,28 +2856,28 @@ | ||
| 2842 | 2856 | 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:"", |
| 2843 | 2857 | 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:"", |
| 2844 | 2858 | 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:"", |
| 2845 | 2859 | 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:"", |
| 2846 | -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"}}}},bS=class{constructor(t,e=!0,i={}){this.tabs=t,this.tabsHeight=this.tabs.getBoundingClientRect().height,this.tabsTopHeight=this.tabs.getBoundingClientRect().top+window.scrollY | |
| 2860 | +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},TS=class{constructor(t,e=!0,i={}){this.tabs=t,this.tabsHeight=this.tabs.getBoundingClientRect().height,this.tabsTopHeight=this.tabs.getBoundingClientRect().top+window.scrollY | |
| 2847 | 2861 | ;const o=this.getDataSettings();this.autoChangeInterval=null,this.editor=e,this.progressInterval=null,this.settings={...this.getDefaultSettings(),...o,...i},this.elements=this.getElements(),this.eventListeners=[],this.bindEvents(),this.defaultActiveTab(),!1===this.editor&&this.settings.autoChange&&this.startAutoChange(),!1===this.editor&&this.settings.scrollChange&&"top"!==this.settings.tabMenuPosition&&"bottom"!==this.settings.tabMenuPosition&&this.startScrollChange(),window.addEventListener("beforeunload",()=>{this.stopAutoChange()}),document.addEventListener("visibilitychange",this.handleVisibilityChange.bind(this))}getDefaultSettings(){return{selectors:{tabTitle:".ablocks-block-tabs__tab",tabContent:".ablocks-block--tabs-child",progressBar:".ablocks-block-tabs__progressbar"},classes:{activeTitle:"ablocks-block-tabs__tab--active",activeContent:"has-child-selected"},toggleSelf:!0,hidePrevious:!0,autoExpand:!0,initialOpen:0,autoChange:!1,activeDuration:1e4,enableHoverSwitch:!1}} |
| 2848 | 2862 | getDataSettings(){return{initialOpen:parseInt(this.tabs.getAttribute("data-initial-open"))||0,autoChange:"true"===this.tabs.getAttribute("data-enable-auto-change"),scrollChange:"true"===this.tabs.getAttribute("data-enable-scroll-change"),enableHoverSwitch:"true"===this.tabs.getAttribute("data-enable-hover-switch"),tabMenuPosition:this.tabs.getAttribute("data-tab-menu-position"),activeDuration:parseInt(this.tabs.getAttribute("data-tab-active-duration"))||1e4}}getElements(){const{tabTitle:t,tabContent:e}=this.settings.selectors;return{tabTitles:this.queryElements(t),tabContents:this.queryElements(e)}}queryElements(t){return Array.from(this.tabs.querySelectorAll(t))}bindEvents(){this.elements.tabTitles.forEach(t=>{const e=t.getAttribute("data-tab");if(this.settings.enableHoverSwitch){const i=()=>{this.changeActiveTab(e)};t.addEventListener("mouseenter",i),this.eventListeners.push({element:t,handler:i})}else{const i=t=>{t.preventDefault(),this.changeActiveTab(e)} |
| 2849 | 2863 | ;t.addEventListener("click",i),this.eventListeners.push({element:t,handler:i})}})}changeActiveTab(t){this.isActiveTab(t)||(this.deactivateAllTabs(),this.activateTab(t),!1===this.editor&&this.settings.autoChange&&(clearInterval(this.autoChangeInterval),this.startAutoChange()))}isActiveTab(t){const{activeTitle:e}=this.settings.classes,i=this.elements.tabTitles.find(e=>e.getAttribute("data-tab")===t);return i&&i.classList.contains(e)}deactivateAllTabs(){this.elements.tabTitles.forEach(t=>{const e=t.getAttribute("data-tab");this.deactivateTab(e)})}deactivateTab(t){const{activeTitle:e,activeContent:i}=this.settings.classes,o=this.elements.tabTitles.find(e=>e.getAttribute("data-tab")===t),a=this.elements.tabContents.find(e=>e.getAttribute("data-tab-id")===t);o&&o.classList.remove(e),a&&(a.classList.remove(i),a.style.display="none")}activateTab(t){if(null===t)return;const{activeTitle:e,activeContent:i}=this.settings.classes,o=this.elements.tabTitles.find(e=>e.getAttribute("data-tab")===t) |
| 2850 | 2864 | ;this.deactivateAllTabs();const a=this.elements.tabContents[t],l=this.elements.tabTitles[t].querySelector(this.settings.selectors.progressBar);o&&o.classList.add(e),o&&(a.classList.add(i),a.style.display="block"),this.startProgressBar(l)}removeListeners(){this.eventListeners.forEach(({element:t,handler:e})=>{t.removeEventListener("click",e),t.removeEventListener("mouseenter",e)}),this.eventListeners=[]}defaultActiveTab(){const{initialOpen:t}=this.settings,{activeTitle:e,activeContent:i}=this.settings.classes,o=this.elements.tabTitles.findIndex(t=>t.classList.contains(e)),a=this.elements.tabContents.findIndex(t=>t.classList.contains(i));(t>0&&-1===o||t>0&&-1===a)&&this.activateTab((t-1).toString())}startProgressBar(t){if(!t)return;clearInterval(this.progressInterval),t.style.width="0%";let e=0;this.progressInterval=setInterval(()=>{e+=1,t.style.width=`${e}%`,e>=100&&clearInterval(this.progressInterval)},this.settings.activeDuration/100)}startAutoChange(){ |
| 2851 | -this.autoChangeInterval=setInterval(()=>{const t=(this.getActiveTabIndex()+1)%this.elements.tabTitles.length;this.changeActiveTab(t.toString())},this.settings.activeDuration)}startScrollChange(){const t=()=>{const t=window.scrollY+window.innerHeight;let e=null;this.elements.tabTitles.forEach((i,o)=>{const a=i.getBoundingClientRect().top+window.scrollY;t>a&&(e=o)}),null!==e&&this.changeActiveTab(e.toString())};window.addEventListener("scroll",t),this.eventListeners.push({element:window,handler:t})}getActiveTabIndex(){const{activeTitle:t}=this.settings.classes,e=this.elements.tabTitles.findIndex(e=>e.classList.contains(t));return-1!==e?e:0}stopAutoChange(){this.autoChangeInterval&&(clearInterval(this.autoChangeInterval),this.autoChangeInterval=null)}handleVisibilityChange(){document.hidden?this.stopAutoChange():!1===this.editor&&this.settings.autoChange&&this.startAutoChange()}},cS=({index:t,onRemove:e,onMoveUp:i,onMoveDown:o,tabHeaders:a})=>(0,L.jsxs)(A.ToolbarGroup,{ | |
| 2852 | -children:[0!==t&&(0,L.jsx)(A.Tooltip,{text:(0,z.__)("Move tab up","ablocks"),children:(0,L.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-reversed",onClick:()=>i(t,a.length),disabled:0===t})}),t!==a.length-1&&(0,L.jsx)(A.Tooltip,{text:(0,z.__)("Move tab down","ablocks"),children:(0,L.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-horizontal",onClick:()=>o(t,a.length),disabled:t===a.length-1})}),(0,L.jsx)(A.Tooltip,{text:(0,z.__)("Remove tab","ablocks"),children:(0,L.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--close",onClick:()=>e(t)})})]}),dS=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{insertBlock:s,removeBlock:b}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:c}=wp.blockEditor?(0,r.select)("core/block-editor"):(0, | |
| 2853 | -r.select)("core/editor"),{block_id:d,tabHeaders:u,tabSubTitles:p,tabActive:m,previousTotalBlock:h,initialOpen:g,showTitle:f,showSubTitle:y,showIcon:T,iconPosition:H,tabPositionChange:x,enableAutoChange:k,tabIcons:v,clickedTabIndex:_,enableHoverSwitch:R}=e,[S,W]=(0,a.useState)(null),U=at(),P=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(n),[n]),{moveBlockToPosition:j}=(0,r.useDispatch)("core/block-editor");(0,a.useEffect)(()=>{if(P.length>0){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new bS(t);return h!==P.length&&(i({previousTotalBlock:P.length}),e.changeActiveTab(m.toString())),()=>{e.removeListeners()}}}},[P,m,d,R]),(0,a.useEffect)(()=>{if(!0===x){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new bS(t);return i({tabPositionChange:!1}),e.changeActiveTab(m.toString()),()=>{e.removeListeners()}}}},[x]);const w=t=>{((t,e,i,o,a,l,n)=>{if(a<0||a>=l.length)return;t(i(o)[a],!1);const s=[...l],r=[...n] | |
| 2854 | -;s.splice(a,1),r.splice(a,1),e({tabHeaders:s,tabSubTitles:r,tabActive:0})})(b,i,c,n,t,u,p)},D=(t,e)=>{t!==e-1&&V(t,t+1)},N=t=>{t<0||V(t,t-1)},I=(t,e)=>{j(t,n,n,parseInt(e))},V=async(t,e)=>{await(async(t,e,i,o,a,l,n)=>{if(t===e||e<0||e>=i.length)return;const{getBlock:s}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor"),b=s(n),c=[...i],d=c[t];c[t]=c[e],c[e]=d;const u=[...o],p=u[t];u[t]=u[e],u[e]=p,l(b.innerBlocks[t].clientId,e),a({tabHeaders:c,tabSubTitles:u,tabActive:e,tabPositionChange:!0})})(t,e,u,p,i,I,n)};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:d,name:rS.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsxs)("div",{className:"ablocks-block-tabs","data-initial-open":g,"data-enable-hover-switch":R,children:[(0,L.jsxs)("ul",{className:"ablocks-block-tabs__tab-panel",children:[u.map((t,e)=>(0,L.jsxs)("li",{ | |
| 2855 | -className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${T&&`ablocks-block-tabs__tab-menu-${H["value"+U]}`}`,"data-tab":e,onClick:()=>i({clickedTabIndex:e}),onMouseEnter:()=>W(e),onMouseLeave:()=>W(null),children:[(0,L.jsx)("div",{className:"ablocks-block-tabs__tab-controls",children:S===e&&(0,L.jsx)(cS,{index:e,onRemove:w,onMoveUp:N,onMoveDown:D,tabHeaders:u})}),T&&(0,L.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,L.jsx)(Vd,{customIconData:v?.[e]})}),(0,L.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[f&&(0,L.jsx)(C.RichText,{tagName:"h2",value:t,onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabHeaders:a})})(i,u,t,e)})(t,e),placeholder:(0,z.__)("Title…","ablocks"),allowedFormats:["core/bold","core/italic"],className:"ablocks-block-tabs__tab-menu-title"}),y&&(0,L.jsx)(C.RichText,{tagName:"p",value:p[e],onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabSubTitles:a})})(i,p,t,e)})(t,e),placeholder:(0, | |
| 2856 | -z.__)("Subtitle…","ablocks"),allowedFormats:["core/bold","core/italic"],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),k&&(0,L.jsx)("div",{className:"ablocks-block-tabs__progressbar ablocks-block-tabs__progressbar-editor"})]},e)),(0,L.jsx)("li",{className:"ablocks-block-tabs__tab ablocks-block-tabs__add-tab",role:"presentation",tabIndex:"0",onClick:()=>{((t,e,i,a,l)=>{t((0,o.createBlock)("ablocks/tabs-child"),i.length,l),e({tabHeaders:[...i,(0,z.__)("New Tab","ablocks")],tabSubTitles:[...a,(0,z.__)("New Subtitle Content: This tab provides general information about our company","ablocks")],tabActive:i.length})})(s,i,u,p,n)},children:(0,L.jsx)(A.Tooltip,{text:(0,z.__)("Add tab","ablocks"),children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})]}),(0,L.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/tabs-child"],["ablocks/tabs-child"],["ablocks/tabs-child"]],templateLock:!1, | |
| 2857 | -allowedBlocks:["ablocks/tabs-child"],renderAppender:!1})})]})})})},uS=(t,e="")=>{const i={},o=t?.tabsMenuPositioning["value"+e];return"top"===o?i["flex-direction"]="column":"bottom"===o?i["flex-direction"]="column-reverse":"left"===o?i["flex-direction"]="row":"right"===o&&(i["flex-direction"]="row-reverse"),i},pS=(t,e="")=>{const i={},o=t?.tabMenuAlignment["value"+e],a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||("row"===t?.tabsMenuDirection["value"+e]?i["justify-content"]=o:"column"===t?.tabsMenuDirection["value"+e]&&(i["align-items"]=o),o&&"auto"===t?.tabsWidthType["value"+e]&&("flex-start"===o?i["margin-right"]="auto":"center"===o&&(i["margin-inline"]="auto"),"flex-end"===o&&(i["margin-left"]="auto"))),"left"===a||"right"===a?i["flex-direction"]="column":"top"!==a&&"bottom"!==a||(i["flex-direction"]=(0,M.Ic)(t?.tabsMenuDirection,"value",e),t?.tabWrap["value"+e]&&(i["flex-wrap"]=t.tabWrap["value"+e]));const l=(0,M.Zy)(t?.tabMenusPadding,{unit:"px"}),n=(0, | |
| 2858 | -M.Zy)(t?.tabMenusMargin,{unit:"px"}),s=(0,M.Zy)(t?.tabMenusBorder,{unitWidth:"px",unitRadius:"px"});return{...i,background:(0,gs.qD)(t?.tabMenusBackgroundColor),...(0,c.qD)(n,"margin",e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(s,e),...(0,Ob.qD)({attributeValue:t.tabsGap,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})}},mS=(t,e="")=>{const i=(0,M.Zy)(t?.tabMenusBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},hS=(t,e="")=>{const i={display:"flex"},o=(0,M.Ic)(t?.iconPosition,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||"100%"!==t?.tabsContentWidthType["value"+e]||(i.width="100%"),"top"===o&&(i["flex-direction"]="column !important",t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"bottom"===o&&(i["flex-direction"]="column-reverse !important", | |
| 2859 | -t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"left"===o&&(i["flex-direction"]="row !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e])),"right"===o&&(i["flex-direction"]="row-reverse !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e]));const l=(0,M.Zy)(t?.menuContentPadding,{unit:"px"}),n=(0,M.Zy)(t?.menuContentBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.tabBackgroundColor),...i,...(0,y.qD)(t?.menuContentBorder,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e)}},gS=(t,e="")=>{const i={};return"background"===t?.activeColorOptions?i["background-color"]=`${(0,gs.qD)(t?.tabActiveBackgroundColor)} !important`:"border"===t?.activeColorOptions&&(i["border-color"]=`${(0,gs.qD)(t?.activeBorderColor)} !important`),i},fS=(t,e="")=>{ | |
| 2860 | -const i=(0,M.Zy)(t?.menuContentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},yS=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,gs.qD)(t?.titleTextColor),...(0,P.qD)(i,e,o)}},TS=t=>{const e={};return t?.titleTextActiveColor&&(e.color=`${(0,gs.qD)(t?.titleTextActiveColor)} !important`),{...e}},HS=(t,e="")=>{const i={};!0===t?.showActiveSubTitle&&(i.display="none");const o=(0,M.Ic)(t?.tabsContentWidthType,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"Mobile"===e?i.width="100%":"top"!==a&&"bottom"!==a||"auto"!==o||(i["max-width"]="160px");const l=(0,M.Zy)(t.subTitleTypography,{weight:"400"}),n=t.subTitleTypographyGlobal?t.subTitleTypographyGlobal:"";return l&&Object.assign(i,(0,P.qD)(l,e,n)),t?.subTitleTextColor&&(i.color=(0,gs.qD)(t?.subTitleTextColor)),i},MS=t=>{const e={};return!0===t?.showActiveSubTitle&&(e.display="block"), | |
| 2861 | -t?.subTitleTextActiveColor&&(e.color=`${(0,gs.qD)(t?.subTitleTextActiveColor)} !important`),e},xS=(t,e="")=>{const i=(0,M.Zy)(t?.contentPadding,{unit:"px"}),o=(0,M.Zy)(t?.contentMargin,{unit:"px"}),a=(0,M.Zy)(t?.contentBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"margin",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(a,e)};return"Mobile"===e?l["max-width"]="100%":"top"===t?.tabsMenuPositioning["value"+e]||"bottom"===t?.tabsMenuPositioning["value"+e]?l["max-width"]="100% !important":"left"!==t?.tabsMenuPositioning["value"+e]&&"right"!==t?.tabsMenuPositioning["value"+e]||(l["flex-grow"]=3),l},kS=(t,e="")=>{const i=(0,M.Zy)(t?.contentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},vS=(t,e="")=>{const i=(0,M.Zy)(t?.iconPositionMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},_S=t=>({background:(0,gs.qD)(t?.progressBarColor)}),RS=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.contentGap,attributeObjectKey:"value",defaultValue:2,isResponsive:!0, | |
| 2862 | -hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})};return t?.menuContentAlignment["value"+e]&&(i["text-align"]=t?.menuContentAlignment["value"+e]),i},SS=(t,e="")=>{const i=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);if("top"===i||"bottom"===i){const i={};return i.width=(0,M.Ic)(t?.tabsWidthType,"value",e),i}if("left"===i||"right"===i)return{...(0,Ob.qD)({attributeValue:t.tabsWidth,attributeObjectKey:"value",defaultValue:30,isResponsive:!0,hasUnit:!0,property:"width",unitDefaultValue:"%",device:e})}},WS=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",defaultValue:70,isResponsive:!0,hasUnit:!0,property:"max-width",unitDefaultValue:"%",device:e})};return"top"!==t?.tabsMenuPositioning["value"+e]&&"bottom"!==t?.tabsMenuPositioning["value"+e]||(i["max-width"]="100% !important"),{background:(0,gs.qD)(t?.contentBackgroundColor),...i}},US=(t,e="")=>{let i={};return"left"===t?.iconPosition["value"+e]?i={...(0,Ob.qD)({attributeValue:t.spacing, | |
| 2863 | -attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-right",unitDefaultValue:"px"})}:"right"===t?.iconPosition["value"+e]?i={...(0,Ob.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-left",unitDefaultValue:"px"})}:"bottom"===t?.iconPosition["value"+e]?i={...(0,Ob.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-top",unitDefaultValue:"px"})}:"top"===t?.iconPosition["value"+e]&&(i={...(0,Ob.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-bottom",unitDefaultValue:"px"})}),i};function PS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m,enableHoverSwitch:h}=e;return(0,L.jsx)(oc,{blockId:i,name:rS.UU, | |
| 2864 | -attributes:e,children:(0,L.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===p,"data-enable-scroll-change":"enableScrollChange"===p,"data-tab-active-duration":b,"data-tab-menu-position":u?.value,"data-enable-hover-switch":h,children:[(0,L.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,e)=>(0,L.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":e,children:[c&&(0,L.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,L.jsx)(Vd,{customIconData:m?.[e]})}),(0,L.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,L.jsx)(C.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,L.jsx)(C.RichText.Content,{tagName:"p",value:d[e],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===p&&(0,L.jsx)("div",{ | |
| 2865 | -className:"ablocks-block-tabs__progressbar"})]},e))}),(0,L.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,L.jsx)(C.InnerBlocks.Content,{})})]})})}PS.propTypes={};const jS={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:""},tabsMenuPositionMobile:{type:"string", | |
| 2865 | +this.autoChangeInterval=setInterval(()=>{const t=(this.getActiveTabIndex()+1)%this.elements.tabTitles.length;this.changeActiveTab(t.toString())},this.settings.activeDuration)}startScrollChange(){const t=()=>{const t=window.scrollY+window.innerHeight;let e=null;this.elements.tabTitles.forEach((i,o)=>{const a=i.getBoundingClientRect().top+window.scrollY;t>a&&(e=o)}),null!==e&&this.changeActiveTab(e.toString())};window.addEventListener("scroll",t),this.eventListeners.push({element:window,handler:t})}getActiveTabIndex(){const{activeTitle:t}=this.settings.classes,e=this.elements.tabTitles.findIndex(e=>e.classList.contains(t));return-1!==e?e:0}stopAutoChange(){this.autoChangeInterval&&(clearInterval(this.autoChangeInterval),this.autoChangeInterval=null)}handleVisibilityChange(){document.hidden?this.stopAutoChange():!1===this.editor&&this.settings.autoChange&&this.startAutoChange()}},HS=({index:t,onRemove:e,onMoveUp:i,onMoveDown:o,tabHeaders:a})=>(0,I.jsxs)(N.ToolbarGroup,{ | |
| 2866 | +children:[0!==t&&(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Move tab up","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-reversed",onClick:()=>i(t,a.length),disabled:0===t})}),t!==a.length-1&&(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Move tab down","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--direction-row-horizontal",onClick:()=>o(t,a.length),disabled:t===a.length-1})}),(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Remove tab","ablocks"),children:(0,I.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--close",onClick:()=>e(t)})})]}),MS=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{insertBlock:s,removeBlock:b}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:c}=wp.blockEditor?(0,r.select)("core/block-editor"):(0, | |
| 2867 | +r.select)("core/editor"),{block_id:d,tabHeaders:u,tabSubTitles:p,tabActive:m,previousTotalBlock:h,initialOpen:g,showTitle:f,showSubTitle:y,showIcon:T,iconPosition:H,tabPositionChange:x,enableAutoChange:k,tabIcons:v,clickedTabIndex:_,enableHoverSwitch:R}=e,[S,W]=(0,a.useState)(null),P=lt(),U=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(n),[n]),{moveBlockToPosition:j}=(0,r.useDispatch)("core/block-editor");(0,a.useEffect)(()=>{if(U.length>0){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new TS(t);return h!==U.length&&(i({previousTotalBlock:U.length}),e.changeActiveTab(m.toString())),()=>{e.removeListeners()}}}},[U,m,d,R]),(0,a.useEffect)(()=>{if(!0===x){const t=(0,M.bu)(`.ablocks-block-${d} .ablocks-block-tabs`);if(null!==t){const e=new TS(t);return i({tabPositionChange:!1}),e.changeActiveTab(m.toString()),()=>{e.removeListeners()}}}},[x]);const w=t=>{((t,e,i,o,a,l,n)=>{if(a<0||a>=l.length)return;t(i(o)[a],!1);const s=[...l],r=[...n] | |
| 2868 | +;s.splice(a,1),r.splice(a,1),e({tabHeaders:s,tabSubTitles:r,tabActive:0})})(b,i,c,n,t,u,p)},z=(t,e)=>{t!==e-1&&V(t,t+1)},C=t=>{t<0||V(t,t-1)},A=(t,e)=>{j(t,n,n,parseInt(e))},V=async(t,e)=>{await(async(t,e,i,o,a,l,n)=>{if(t===e||e<0||e>=i.length)return;const{getBlock:s}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor"),b=s(n),c=[...i],d=c[t];c[t]=c[e],c[e]=d;const u=[...o],p=u[t];u[t]=u[e],u[e]=p,l(b.innerBlocks[t].clientId,e),a({tabHeaders:c,tabSubTitles:u,tabActive:e,tabPositionChange:!0})})(t,e,u,p,i,A,n)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:d,name:yS.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:"ablocks-block-tabs","data-initial-open":g,"data-enable-hover-switch":R,children:[(0,I.jsxs)("ul",{className:"ablocks-block-tabs__tab-panel",children:[u.map((t,e)=>(0,I.jsxs)("li",{ | |
| 2869 | +className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${T&&`ablocks-block-tabs__tab-menu-${H["value"+P]}`}`,"data-tab":e,onClick:()=>i({clickedTabIndex:e}),onMouseEnter:()=>W(e),onMouseLeave:()=>W(null),children:[(0,I.jsx)("div",{className:"ablocks-block-tabs__tab-controls",children:S===e&&(0,I.jsx)(HS,{index:e,onRemove:w,onMoveUp:C,onMoveDown:z,tabHeaders:u})}),T&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:v?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[f&&(0,I.jsx)(D.RichText,{tagName:"h2",value:t,onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabHeaders:a})})(i,u,t,e)})(t,e),placeholder:(0,L.__)("Title…","ablocks"),allowedFormats:["core/bold","core/italic"],className:"ablocks-block-tabs__tab-menu-title"}),y&&(0,I.jsx)(D.RichText,{tagName:"p",value:p[e],onChange:t=>((t,e)=>{((t,e,i,o)=>{const a=[...e];a[o]=i,t({tabSubTitles:a})})(i,p,t,e)})(t,e),placeholder:(0, | |
| 2870 | +L.__)("Subtitle…","ablocks"),allowedFormats:["core/bold","core/italic"],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),k&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar ablocks-block-tabs__progressbar-editor"})]},e)),(0,I.jsx)("li",{className:"ablocks-block-tabs__tab ablocks-block-tabs__add-tab",role:"presentation",tabIndex:"0",onClick:()=>{((t,e,i,a,l)=>{t((0,o.createBlock)("ablocks/tabs-child"),i.length,l),e({tabHeaders:[...i,(0,L.__)("New Tab","ablocks")],tabSubTitles:[...a,(0,L.__)("New Subtitle Content: This tab provides general information about our company","ablocks")],tabActive:i.length})})(s,i,u,p,n)},children:(0,I.jsx)(N.Tooltip,{text:(0,L.__)("Add tab","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})]}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/tabs-child"],["ablocks/tabs-child"],["ablocks/tabs-child"]],templateLock:!1, | |
| 2871 | +allowedBlocks:["ablocks/tabs-child"],renderAppender:!1})})]})})})},xS=(t,e="")=>{const i={},o=t?.tabsMenuPositioning["value"+e];return"top"===o?i["flex-direction"]="column":"bottom"===o?i["flex-direction"]="column-reverse":"left"===o?i["flex-direction"]="row":"right"===o&&(i["flex-direction"]="row-reverse"),i},kS=(t,e="")=>{const i={},o=t?.tabMenuAlignment["value"+e],a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||("row"===t?.tabsMenuDirection["value"+e]?i["justify-content"]=o:"column"===t?.tabsMenuDirection["value"+e]&&(i["align-items"]=o),o&&"auto"===t?.tabsWidthType["value"+e]&&("flex-start"===o?i["margin-right"]="auto":"center"===o&&(i["margin-inline"]="auto"),"flex-end"===o&&(i["margin-left"]="auto"))),"left"===a||"right"===a?i["flex-direction"]="column":"top"!==a&&"bottom"!==a||(i["flex-direction"]=(0,M.Ic)(t?.tabsMenuDirection,"value",e),t?.tabWrap["value"+e]&&(i["flex-wrap"]=t.tabWrap["value"+e]));const l=(0,M.Zy)(t?.tabMenusPadding,{unit:"px"}),n=(0, | |
| 2872 | +M.Zy)(t?.tabMenusMargin,{unit:"px"}),s=(0,M.Zy)(t?.tabMenusBorder,{unitWidth:"px",unitRadius:"px"});return{...i,background:(0,Hs.qD)(t?.tabMenusBackgroundColor),...(0,c.qD)(n,"margin",e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(s,e),...(0,Eb.qD)({attributeValue:t.tabsGap,attributeObjectKey:"value",defaultValue:10,isResponsive:!0,hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})}},vS=(t,e="")=>{const i=(0,M.Zy)(t?.tabMenusBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},_S=(t,e="")=>{const i={display:"flex"},o=(0,M.Ic)(t?.iconPosition,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"top"!==a&&"bottom"!==a||"100%"!==t?.tabsContentWidthType["value"+e]||(i.width="100%"),"top"===o&&(i["flex-direction"]="column !important",t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"bottom"===o&&(i["flex-direction"]="column-reverse !important", | |
| 2873 | +t?.menuContentAlignment["value"+e]&&(i["align-items"]=t?.menuContentAlignment["value"+e])),"left"===o&&(i["flex-direction"]="row !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e])),"right"===o&&(i["flex-direction"]="row-reverse !important",i["align-items"]="center",t?.menuContentAlignment["value"+e]&&(i["justify-content"]=t?.menuContentAlignment["value"+e]));const l=(0,M.Zy)(t?.menuContentPadding,{unit:"px"}),n=(0,M.Zy)(t?.menuContentBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.tabBackgroundColor),...i,...(0,y.qD)(t?.menuContentBorder,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e)}},RS=(t,e="")=>{const i={};return"background"===t?.activeColorOptions?i["background-color"]=`${(0,Hs.qD)(t?.tabActiveBackgroundColor)} !important`:"border"===t?.activeColorOptions&&(i["border-color"]=`${(0,Hs.qD)(t?.activeBorderColor)} !important`),i},SS=(t,e="")=>{ | |
| 2874 | +const i=(0,M.Zy)(t?.menuContentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},WS=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleTextColor),...(0,U.qD)(i,e,o)}},PS=t=>{const e={};return t?.titleTextActiveColor&&(e.color=`${(0,Hs.qD)(t?.titleTextActiveColor)} !important`),{...e}},US=(t,e="")=>{const i={};!0===t?.showActiveSubTitle&&(i.display="none");const o=(0,M.Ic)(t?.tabsContentWidthType,"value",e),a=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);"Mobile"===e?i.width="100%":"top"!==a&&"bottom"!==a||"auto"!==o||(i["max-width"]="160px");const l=(0,M.Zy)(t.subTitleTypography,{weight:"400"}),n=t.subTitleTypographyGlobal?t.subTitleTypographyGlobal:"";return l&&Object.assign(i,(0,U.qD)(l,e,n)),t?.subTitleTextColor&&(i.color=(0,Hs.qD)(t?.subTitleTextColor)),i},jS=t=>{const e={};return!0===t?.showActiveSubTitle&&(e.display="block"), | |
| 2875 | +t?.subTitleTextActiveColor&&(e.color=`${(0,Hs.qD)(t?.subTitleTextActiveColor)} !important`),e},wS=(t,e="")=>{const i=(0,M.Zy)(t?.contentPadding,{unit:"px"}),o=(0,M.Zy)(t?.contentMargin,{unit:"px"}),a=(0,M.Zy)(t?.contentBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"margin",e),...(0,c.qD)(i,"padding",e),...(0,y.qD)(a,e)};return"Mobile"===e?l["max-width"]="100%":"top"===t?.tabsMenuPositioning["value"+e]||"bottom"===t?.tabsMenuPositioning["value"+e]?l["max-width"]="100% !important":"left"!==t?.tabsMenuPositioning["value"+e]&&"right"!==t?.tabsMenuPositioning["value"+e]||(l["flex-grow"]=3),l},zS=(t,e="")=>{const i=(0,M.Zy)(t?.contentBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},CS=(t,e="")=>{const i=(0,M.Zy)(t?.iconPositionMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},AS=t=>({background:(0,Hs.qD)(t?.progressBarColor)}),LS=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.contentGap,attributeObjectKey:"value",defaultValue:2,isResponsive:!0, | |
| 2876 | +hasUnit:!0,property:"gap",unitDefaultValue:"px",device:e})};return t?.menuContentAlignment["value"+e]&&(i["text-align"]=t?.menuContentAlignment["value"+e]),i},DS=(t,e="")=>{const i=(0,M.Ic)(t?.tabsMenuPositioning,"value",e);if("top"===i||"bottom"===i){const i={};return i.width=(0,M.Ic)(t?.tabsWidthType,"value",e),i}if("left"===i||"right"===i)return{...(0,Eb.qD)({attributeValue:t.tabsWidth,attributeObjectKey:"value",defaultValue:30,isResponsive:!0,hasUnit:!0,property:"width",unitDefaultValue:"%",device:e})}},NS=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",defaultValue:70,isResponsive:!0,hasUnit:!0,property:"max-width",unitDefaultValue:"%",device:e})};return"top"!==t?.tabsMenuPositioning["value"+e]&&"bottom"!==t?.tabsMenuPositioning["value"+e]||(i["max-width"]="100% !important"),{background:(0,Hs.qD)(t?.contentBackgroundColor),...i}},IS=(t,e="")=>{let i={};return"left"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing, | |
| 2877 | +attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-right",unitDefaultValue:"px"})}:"right"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-left",unitDefaultValue:"px"})}:"bottom"===t?.iconPosition["value"+e]?i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-top",unitDefaultValue:"px"})}:"top"===t?.iconPosition["value"+e]&&(i={...(0,Eb.qD)({attributeValue:t.spacing,attributeObjectKey:"value",defaultValue:0,isResponsive:!0,hasUnit:!0,property:"margin-bottom",unitDefaultValue:"px"})}),i};function VS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m,enableHoverSwitch:h}=e;return(0,I.jsx)(sc,{blockId:i,name:yS.UU, | |
| 2878 | +attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===p,"data-enable-scroll-change":"enableScrollChange"===p,"data-tab-active-duration":b,"data-tab-menu-position":u?.value,"data-enable-hover-switch":h,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,e)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":e,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:m?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[e],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===p&&(0,I.jsx)("div",{ | |
| 2879 | +className:"ablocks-block-tabs__progressbar"})]},e))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}VS.propTypes={};const OS={UU:"ablocks/tabs",uK:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabIcons:{type:"array",default:[]},tabIconsClasses:{type:"array",default:[]},clickedTabIndex:{type:"number",default:0},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:""},tabsMenuPositionMobile:{type:"string", | |
| 2866 | 2880 | default:""},initialOpen:{type:"number",default:1},activeDuration:{type:"number",default:5e3},activeColorOptions:{type:"string",default:"background"},tabMenuAlign:{type:"string",default:""},tabMenuAlignTablet:{type:"string",default:""},tabMenuAlignMobile:{type:"string",default:""},menuContentAlign:{type:"string",default:"center"},menuContentAlignTablet:{type:"string",default:""},menuContentAlignMobile:{type:"string",default:""},tabBackgroundColor:{type:"string",default:"#F9F9F9"},tabActiveBackgroundColor:{type:"string",default:"#61CE70"},titleTextColor:{type:"string",default:"#13191B"},titleTextActiveColor:{type:"string",default:"#0A0909"},subTitleTextColor:{type:"string",default:"#74777C"},subTitleTextActiveColor:{type:"string",default:"#74777C"},contentBackgroundColor:{type:"string",default:"#ffffff00"},activeBorderColor:{type:"string",default:"#61CE70"},showTitle:{type:"boolean",default:!0},showSubTitle:{type:"boolean",default:!1},showActiveSubTitle:{type:"boolean",default:!1}, |
| 2867 | 2881 | tabsChangingEffect:{type:"string",default:"default"},showIcon:{type:"boolean",default:!1},progressBarColor:{type:"string",default:"#13191B"},iconColor:{type:"string",default:"#69727d"},iconActiveColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{type:"string",default:"#FFFFFF"},iconActiveBackground:{type:"string",default:"#E5E5EC"},size:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},tabsWidth:{type:"object",default:{value:30,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},contentWidth:{type:"object",default:{value:70,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},tabsGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"", |
| 2868 | 2882 | valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string", |
| 2869 | 2883 | 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" |
| @@ -2881,20 +2895,21 @@ | ||
| 2881 | 2895 | 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:"", |
| 2882 | 2896 | 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:"", |
| 2883 | 2897 | 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", |
| 2884 | 2898 | 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", |
| 2885 | -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:""}}},wS=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o})=>{const a=i?i.path||"":e[t+"SvgPath"],l=i?i.viewBox||"":e[t+"SvgViewBox"],n=e[t+"ImageUrl"];return!!(n||l||a)&&(0,L.jsx)("div",{className:"ablocks-icon-wrap",children:n?(0,L.jsx)("img",{className:"ablocks-image-icon",src:n,alt:""}):(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l, | |
| 2886 | -className:"ablocks-svg-icon"+(l||a?"":" empty-svg"),style:o,children:(0,L.jsx)("path",{d:a})})})};function zS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,enableAutoChange:u,enableScrollChange:p,tabsMenuPosition:m,tabsChangingEffect:h}=e;return(0,L.jsx)(sc,{blockId:i,name:jS.UU,attributes:e,children:(0,L.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===h,"data-enable-scroll-change":"enableScrollChange"===h,"data-tab-active-duration":b,"data-tab-menu-position":m,children:[(0,L.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,i)=>(0,L.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":i,children:[c&&(0,L.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,L.jsx)(wS,{attributes:e})}),(0,L.jsxs)("div",{ | |
| 2887 | -className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,L.jsx)(C.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,L.jsx)(C.RichText.Content,{tagName:"p",value:d[i],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===h&&(0,L.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},i))}),(0,L.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,L.jsx)(C.InnerBlocks.Content,{})})]})})}zS.propTypes={};function CS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m}=e;return(0,L.jsx)(dc,{blockId:i,name:jS.UU,attributes:e,children:(0,L.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===p,"data-enable-scroll-change":"enableScrollChange"===p,"data-tab-active-duration":b, | |
| 2888 | -"data-tab-menu-position":u?.value,children:[(0,L.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,e)=>(0,L.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":e,children:[c&&(0,L.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,L.jsx)(Vd,{customIconData:m?.[e]})}),(0,L.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,L.jsx)(C.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,L.jsx)(C.RichText.Content,{tagName:"p",value:d[e],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===p&&(0,L.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},e))}),(0,L.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,L.jsx)(C.InnerBlocks.Content,{})})]})})}function AS(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{ | |
| 2889 | -className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Tabs Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the tabs settings to organize and customize content easily.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})}CS.propTypes={},(0,M.xV)(rS.UU)&&(0,o.registerBlockType)(rS.UU,{title:"Tabs",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab"}),attributes:rS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(i.tabsMenuDirection||o({tabsMenuDirection:{value:"row",valueTablet:"",valueMobile:""}}),i.tabsWidthType||o({tabsWidthType:{value:"auto",valueTablet:"",valueMobile:""}}), | |
| 2890 | -!i.tabMenusPadding||!i.tabMenusMargin){const t=i._padding;Object.keys(t).forEach(e=>{t[e]=""}),i.tabMenusPadding||o({tabMenusPadding:t}),i.tabMenusMargin||o({tabMenusMargin:t})}if(!i.tabMenusBorder){const t=i._border;Object.keys(t).forEach(e=>{t[e]=""}),o({tabMenusBorder:t})}},[]);const s=!(i.tabsMenuDirection&&i.tabsWidthType&&i.tabMenusPadding&&i.tabMenusMargin&&i.tabMenusBorder),r=(0,a.useMemo)(()=>{if(s)return"";let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs",uS(i),uS(i,"Tablet"),uS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",pS(i),pS(i,"Tablet"),pS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel:hover",mS(i),mS(i,"Tablet"),mS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab",hS(i),hS(i,"Tablet"),hS(i,"Mobile")), | |
| 2891 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active",gS(i),gS(i,"Tablet"),gS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab:hover",fS(i),fS(i,"Tablet"),fS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-title",yS(i),yS(i,"Tablet"),yS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-title",TS(i),TS(i),TS(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-subtitle",HS(i),HS(i,"Tablet"),HS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-subtitle",MS(i),MS(i),MS(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",SS(i),SS(i,"Tablet"),SS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",WS(i),WS(i,"Tablet"),WS(i,"Mobile")), | |
| 2892 | -!1===i?.showActiveSubTitle?t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon",vS(i),vS(i,"Tablet"),vS(i,"Mobile")):t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__icon",vS(i),vS(i,"Tablet"),vS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__progressbar",_S(i),_S(i),_S(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",US(i),US(i,"Tablet"),US(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")), | |
| 2893 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",xS(i),xS(i,"Tablet"),xS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body:hover",kS(i),kS(i,"Tablet"),kS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-content",RS(i),RS(i,"Tablet"),RS(i,"Mobile")),(0,b.applyFilters)("ablocks.tabs.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(sS,{...t}),(0,L.jsx)(dS,{...t})]})},save:PS, | |
| 2894 | -deprecated:[{attributes:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array",default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:"left"},tabsMenuPositionMobile:{type:"string",default:"left"},initialOpen:{type:"number",default:1},activeDuration:{type:"number",default:5e3},tabMenuAlign:{type:"string",default:""},tabMenuAlignTablet:{type:"string",default:""},tabMenuAlignMobile:{type:"string",default:""},menuContentAlign:{type:"string",default:"center"},menuContentAlignTablet:{ | |
| 2895 | -type:"string",default:""},menuContentAlignMobile:{type:"string",default:""},tabBackgroundColor:{type:"string",default:"#F9F9F9"},tabActiveBackgroundColor:{type:"string",default:"#61CE70"},titleTextColor:{type:"string",default:"#13191B"},titleTextActiveColor:{type:"string",default:"#0A0909"},subTitleTextColor:{type:"string",default:"#74777C"},subTitleTextActiveColor:{type:"string",default:"#74777C"},contentBackgroundColor:{type:"string",default:"#FFFFFF"},activeBorderColor:{type:"string",default:"transparent"},showTitle:{type:"boolean",default:!0},showSubTitle:{type:"boolean",default:!1},showActiveSubTitle:{type:"boolean",default:!1},tabsChangingEffect:{type:"string",default:"default"},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},progressBarColor:{type:"string",default:"#13191B"},iconColor:{type:"string",default:"#69727d"},iconActiveColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"}, | |
| 2896 | -iconBackground:{type:"string",default:"#FFFFFF"},iconActiveBackground:{type:"string",default:"#E5E5EC"},size:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},tabsGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string", | |
| 2899 | +yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}},YS=({attributePrefix:t="icon",attributes:e={},customIconData:i,style:o})=>{const a=i?i.path||"":e[t+"SvgPath"],l=i?i.viewBox||"":e[t+"SvgViewBox"],n=e[t+"ImageUrl"];return!!(n||l||a)&&(0,I.jsx)("div",{className:"ablocks-icon-wrap",children:n?(0,I.jsx)("img",{className:"ablocks-image-icon",src:n,alt:""}):(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l, | |
| 2900 | +className:"ablocks-svg-icon"+(l||a?"":" empty-svg"),style:o,children:(0,I.jsx)("path",{d:a})})})};function XS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,enableAutoChange:u,enableScrollChange:p,tabsMenuPosition:m,tabsChangingEffect:h}=e;return(0,I.jsx)(dc,{blockId:i,name:OS.UU,attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===h,"data-enable-scroll-change":"enableScrollChange"===h,"data-tab-active-duration":b,"data-tab-menu-position":m,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,i)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":i,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(YS,{attributes:e})}),(0,I.jsxs)("div",{ | |
| 2901 | +className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[i],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===h&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},i))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}XS.propTypes={};function BS(t){const{attributes:e}=t,{block_id:i,tabHeaders:o,initialOpen:a,iconPosition:l,showTitle:n,showSubTitle:r,activeDuration:b,showIcon:c,tabSubTitles:d,tabsMenuPositioning:u,tabsChangingEffect:p,tabIcons:m}=e;return(0,I.jsx)(hc,{blockId:i,name:OS.UU,attributes:e,children:(0,I.jsxs)("div",{className:s()("ablocks-block-tabs"),"data-initial-open":a,"data-enable-auto-change":"enableAutoChange"===p,"data-enable-scroll-change":"enableScrollChange"===p,"data-tab-active-duration":b, | |
| 2902 | +"data-tab-menu-position":u?.value,children:[(0,I.jsx)("ul",{className:"ablocks-block-tabs__tab-panel",children:o.map((t,e)=>(0,I.jsxs)("li",{className:`ablocks-block-tabs__tab ablocks-block-tabs__tab-menu ${c&&`ablocks-block-tabs__tab-menu-${l}`}`,"data-tab":e,children:[c&&(0,I.jsx)("div",{className:"ablocks-block-tabs__icon",children:(0,I.jsx)(Fd,{customIconData:m?.[e]})}),(0,I.jsxs)("div",{className:"ablocks-block-tabs__tab-menu-content",children:[n&&(0,I.jsx)(D.RichText.Content,{tagName:"h2",value:t,className:"ablocks-block-tabs__tab-menu-title"}),r&&(0,I.jsx)(D.RichText.Content,{tagName:"p",value:d[e],className:"ablocks-block-tabs__tab-menu-subtitle"})]}),"enableAutoChange"===p&&(0,I.jsx)("div",{className:"ablocks-block-tabs__progressbar"})]},e))}),(0,I.jsx)("div",{className:"ablocks-block-tabs__body",children:(0,I.jsx)(D.InnerBlocks.Content,{})})]})})}function ES(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{ | |
| 2903 | +className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Tabs Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the tabs settings to organize and customize content easily.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}BS.propTypes={},(0,M.xV)(yS.UU)&&(0,o.registerBlockType)(yS.UU,{title:(0,L.__)("Tabs","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab"}),attributes:yS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(i.tabsMenuDirection||o({tabsMenuDirection:{value:"row",valueTablet:"",valueMobile:""}}),i.tabsWidthType||o({tabsWidthType:{value:"auto",valueTablet:"", | |
| 2904 | +valueMobile:""}}),!i.tabMenusPadding||!i.tabMenusMargin){const t=i._padding;Object.keys(t).forEach(e=>{t[e]=""}),i.tabMenusPadding||o({tabMenusPadding:t}),i.tabMenusMargin||o({tabMenusMargin:t})}if(!i.tabMenusBorder){const t=i._border;Object.keys(t).forEach(e=>{t[e]=""}),o({tabMenusBorder:t})}},[]);const s=!(i.tabsMenuDirection&&i.tabsWidthType&&i.tabMenusPadding&&i.tabMenusMargin&&i.tabMenusBorder),r=(0,a.useMemo)(()=>{if(s)return"";let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs",xS(i),xS(i,"Tablet"),xS(i,"Mobile"),e(t=>xS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",kS(i),kS(i,"Tablet"),kS(i,"Mobile"),e(t=>kS(i,t))), | |
| 2905 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel:hover",vS(i),vS(i,"Tablet"),vS(i,"Mobile"),e(t=>vS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab",_S(i),_S(i,"Tablet"),_S(i,"Mobile"),e(t=>_S(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active",RS(i),RS(i,"Tablet"),RS(i,"Mobile"),e(t=>RS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab:hover",SS(i),SS(i,"Tablet"),SS(i,"Mobile"),e(t=>SS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-title",WS(i),WS(i,"Tablet"),WS(i,"Mobile"),e(t=>WS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-title",PS(i),PS(i),PS(i),e(t=>PS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-subtitle",US(i),US(i,"Tablet"),US(i,"Mobile"),e(t=>US(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__tab-menu-subtitle",jS(i),jS(i),jS(i),e(t=>jS(i))), | |
| 2906 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-panel",DS(i),DS(i,"Tablet"),DS(i,"Mobile"),e(t=>DS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",NS(i),NS(i,"Tablet"),NS(i,"Mobile"),e(t=>NS(i,t))),!1===i?.showActiveSubTitle?t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon",CS(i),CS(i,"Tablet"),CS(i,"Mobile"),e(t=>CS(i,t))):t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__icon",CS(i),CS(i,"Tablet"),CS(i,"Mobile"),e(t=>CS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__progressbar",AS(i),AS(i),AS(i),e(t=>AS(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))), | |
| 2907 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap",IS(i),IS(i,"Tablet"),IS(i,"Mobile"),e(t=>IS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab--active .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon",(t=>{const e={};return t?.titleTextActiveColor&&(e.fill=(0,Hs.qD)(t?.titleTextActiveColor)),e})(i)), | |
| 2908 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__icon .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body",wS(i),wS(i,"Tablet"),wS(i,"Mobile"),e(t=>wS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__body:hover",zS(i),zS(i,"Tablet"),zS(i,"Mobile"),e(t=>zS(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-tabs__tab-menu-content",LS(i),LS(i,"Tablet"),LS(i,"Mobile"),e(t=>LS(i,t))),(0,b.applyFilters)("ablocks.tabs.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(fS,{...t}),(0,I.jsx)(MS,{...t})]})},save:VS,deprecated:[{attributes:{block_id:{type:"string",default:""},className:{type:"string",default:""},tabPositionChange:{type:"boolean",default:!1},tabHeaders:{type:"array",default:["Tab 1","Tab 2","Tab 3"]},tabSubTitles:{type:"array", | |
| 2909 | +default:["Subtitle 1 Content: This tab provides general information about our company","Subtitle 2 Content: This tab provides general information about our company","Subtitle 3 Content: This tab provides general information about our company"]},tabActive:{type:"number",default:0},previousTotalBlock:{type:"number",default:3},tabsMenuPosition:{type:"string",default:"left"},tabsMenuPositionTablet:{type:"string",default:"left"},tabsMenuPositionMobile:{type:"string",default:"left"},initialOpen:{type:"number",default:1},activeDuration:{type:"number",default:5e3},tabMenuAlign:{type:"string",default:""},tabMenuAlignTablet:{type:"string",default:""},tabMenuAlignMobile:{type:"string",default:""},menuContentAlign:{type:"string",default:"center"},menuContentAlignTablet:{type:"string",default:""},menuContentAlignMobile:{type:"string",default:""},tabBackgroundColor:{type:"string",default:"#F9F9F9"},tabActiveBackgroundColor:{type:"string",default:"#61CE70"},titleTextColor:{type:"string", | |
| 2910 | +default:"#13191B"},titleTextActiveColor:{type:"string",default:"#0A0909"},subTitleTextColor:{type:"string",default:"#74777C"},subTitleTextActiveColor:{type:"string",default:"#74777C"},contentBackgroundColor:{type:"string",default:"#FFFFFF"},activeBorderColor:{type:"string",default:"transparent"},showTitle:{type:"boolean",default:!0},showSubTitle:{type:"boolean",default:!1},showActiveSubTitle:{type:"boolean",default:!1},tabsChangingEffect:{type:"string",default:"default"},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:"left"},progressBarColor:{type:"string",default:"#13191B"},iconColor:{type:"string",default:"#69727d"},iconActiveColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconBackground:{type:"string",default:"#FFFFFF"},iconActiveBackground:{type:"string",default:"#E5E5EC"},size:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"", | |
| 2911 | +valueUnitMobile:""}},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},tabsGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string", | |
| 2897 | 2912 | 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" |
| 2898 | 2913 | },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:""},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconImageWidth:{type:"number",default:0},contentMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},iconPositionMargin:{ |
| 2899 | 2914 | type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},subTitleTypography:{type:"object",default:{fontFamily:"",weight:"400", |
| 2900 | 2915 | 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"}},menuContentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"", |
| @@ -2908,61 +2923,61 @@ | ||
| 2908 | 2923 | 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:"", |
| 2909 | 2924 | 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:{ |
| 2910 | 2925 | 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:"", |
| 2911 | 2926 | 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:"", |
| 2912 | -scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1}},save:zS},{attributes:jS.uK,save:t=>(0,L.jsx)(CS,{...t})}]}),AS.propTypes={};const LS={UU:"ablocks/tabs-child", | |
| 2913 | -$t:["ablocks/tabs"],uK:{block_id:{type:"string",default:""},tabId:{type:"number",default:0}}};function DS(t){const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tabId:b}=e,c=(0,r.useSelect)(t=>t("core/block-editor").getBlockIndex(n));(0,a.useEffect)(()=>{b!==c&&i({tabId:c})},[c,n]);const d={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:C.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:s,name:LS.UU,attributes:e,blockProps:{"data-tab-id":b},children:(0,L.jsx)(C.InnerBlocks,{...d})})})}DS.propTypes={};const NS=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e)});function IS(t){const{attributes:e}=t,{block_id:i,tabId:o}=e;return(0,L.jsx)(eR,{blockId:i,name:LS.UU,attributes:e,blockProps:{"data-tab-id":o},children:(0,L.jsx)(C.InnerBlocks.Content,{})})}IS.propTypes={},(0,M.xV)(LS.UU,LS.$t[0])&&(0,o.registerBlockType)(LS.UU,{ | |
| 2914 | -title:"Tabs Child",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab-child"}),attributes:LS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}",NS(i),NS(i,"Tablet"),NS(i,"Mobile")),(0,b.applyFilters)("ablocks.tabs-child.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(AS,{...t}),(0,L.jsx)(DS,{...t})]})},save:IS});const VS=[{label:(0,z.__)("New","ablocks"),value:"new"},{label:(0,z.__)("Legacy","ablocks"),value:"legacy"}],OS=(0,Ob.D$)({attributeName:"modalWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});(0,Ob.D$)({attributeName:"bg_transition",attributeObjectKey:"value",isResponsive:!0,defaultValue:150, | |
| 2915 | -defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});function YS(t){const{attributes:e,setAttributes:i}=t,{course_id:o,start_btn_typography:a,start_btn_color:n,enroll_btn_color:s,start_btn_bg_color:b,enroll_btn_bg_color:c,start_btn_color_hover:d,enroll_btn_color_hover:u,start_btn_bg_hover_color:p,enroll_btn_bg_hover_color:m,start_btn_padding:h,enroll_btn_padding:g,start_btn_border:f,enroll_btn_border:y,enroll_btn_typography:T,layout:H,modalWidth:M,massage_title_bg:x,massage_title_color:k,massage_title_hover_bg:v,massage_title_hover_color:_,list_color:R,list_hover_color:S,price_hover_color:W,price_color:U,massage_title_typography:P,list_typography:j,price_typography:w,price_title_typography:A,price_title_hover_color:N,price_title_color:I,info_bg:V,info_bg_hover:O,info_color:Y,info_color_hover:X,bgTransition:B,info_typography:E}=e,F=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),q=F?F.filter(t=>{ | |
| 2916 | -const e=t.meta?.academy_course_type;return"free"===e||"paid"===e||"rcp_membership"===e}):[],$=q?q.map(t=>({label:t.title?.rendered,value:t.id})):[];return $.unshift({label:(0,z.__)("Select a Course","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Enroll Form Option","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{options:VS,label:(0,z.__)("Select Layout","ablocks"),attributeValue:H,attributeName:"layout",setAttributes:i}),(0,L.jsx)(Ut,{options:$,label:(0,z.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Enroll Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"enroll_btn_typography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0, | |
| 2917 | -z.__)("Color Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"enroll_btn_color",attributeValue:s,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"enroll_btn_bg_color",attributeValue:c,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"enroll_btn_color_hover",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"enroll_btn_bg_hover_color",attributeValue:m,setAttributes:i})]})}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"enroll_btn_padding",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0, | |
| 2918 | -L.jsx)(Rs,{attributeName:"enroll_btn_border",attributeValue:y,setAttributes:i})]}),(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Price Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"price_typography",attributeValue:w,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"price_color",attributeValue:U,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"price_hover_color",attributeValue:W,setAttributes:i})})}),(0,L.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,z.__)("Price Title","ablocks")}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"price_title_typography",attributeValue:A,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 2919 | -attributeName:"price_title_color",attributeValue:I,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"price_title_hover_color",attributeValue:N,setAttributes:i})})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Enroll Info Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"info_typography",attributeValue:E,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"info_color",attributeValue:Y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"info_bg",attributeValue:V,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"info_color_hover",attributeValue:X,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"info_bg_hover", | |
| 2920 | -attributeValue:O,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:B,attributeName:"bgTransition",setAttributes:i})]})})]}),"new"===H?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(D,{title:(0,z.__)("Prerequisites Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("Modal Width","ablocks"),min:0,max:500,step:1,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:M,attributeName:"modalWidth",setAttributes:i,attributeDefaultValue:OS}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"massage_title_typography",attributeValue:P,setAttributes:i,isResponsive:!1,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeName:"massage_title_bg",attributeValue:x,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"massage_title_color",attributeValue:k, | |
| 2921 | -setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeName:"massage_title_hover_bg",attributeValue:v,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"massage_title_hover_color",attributeValue:_,setAttributes:i})]})})]}),(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Prerequisites List Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"list_typography",attributeValue:j,setAttributes:i,isResponsive:!1,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"list_color",attributeValue:R,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"list_hover_color",attributeValue:S,setAttributes:i})})})]})]}):(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(D,{title:(0,z.__)("Start Button Style","ablocks"),initialOpen:!1, | |
| 2922 | -children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"start_btn_typography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"start_btn_color",attributeValue:n,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"start_btn_bg_color",attributeValue:b,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"start_btn_color_hover",attributeValue:d,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"start_btn_bg_hover_color",attributeValue:p,setAttributes:i})]})}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"start_btn_padding",attributeValue:h, | |
| 2923 | -setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"start_btn_border",attributeValue:f,setAttributes:i})]})})]})})})}(0,P.D$)("start_btn_typography",!0),(0,P.D$)("price_title_typography",!0),(0,P.D$)("massage_title_typography",!0),(0,P.D$)("list_typography",!0),(0,P.D$)("price_typography",!0),(0,P.D$)("info_typography",!0),(0,y.D$)("start_btn_border",!0),(0,y.D$)("enroll_btn_border",!0),(0,c.D$)("start_btn_padding",!0),(0,c.D$)("enroll_btn_padding",!0),Mr.Ay,YS.propTypes={};const XS=window.wp.serverSideRender;var BS=i.n(XS);const ES=({children:t,disabled:e=!0})=>(0,L.jsx)("div",{"aria-disabled":e,style:{position:"relative"},onClick:t=>{e&&(t.preventDefault(),t.stopPropagation())},onSubmit:t=>{e&&(t.preventDefault(),t.stopPropagation())},children:t}),FS={UU:"ablocks/academy-enroll-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},course_id:{ | |
| 2924 | -type:"number",default:0},layout:{type:"string",default:"legacy"},start_btn_color:{type:"string",default:"#fff"},enroll_btn_color:{type:"string",default:"#fff"},start_btn_color_hover:{type:"string",default:"#fff"},enroll_btn_color_hover:{type:"string",default:"#fff"},start_btn_bg_color:{type:"string",default:"#7B68EE"},enroll_btn_bg_color:{type:"string",default:"#7B68EE"},start_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},enroll_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},massage_title_bg:{type:"string",default:""},massage_title_color:{type:"string",default:""},massage_title_hover_bg:{type:"string",default:""},massage_title_hover_color:{type:"string",default:""},list_color:{type:"string",default:""},list_hover_color:{type:"string",default:""},price_hover_color:{type:"string",default:"#111"},price_color:{type:"string",default:"#111"},price_title_hover_color:{type:"string",default:"#111"},price_title_color:{type:"string",default:"#111"},info_color_hover:{type:"string", | |
| 2925 | -default:"#7b68ee"},info_color:{type:"string",default:"#7b68ee"},info_bg_hover:{type:"string",default:"#eae8fa"},info_bg:{type:"string",default:"#eae8fa"},start_btn_typographyGlobal:{type:"string",default:""},start_btn_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},price_typographyGlobal:{type:"string",default:""},price_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"", | |
| 2926 | -fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},price_title_typographyGlobal:{type:"string",default:""},price_title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px", | |
| 2927 | -letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},list_typographyGlobal:{type:"string",default:""},list_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},massage_title_typographyGlobal:{type:"string",default:""},massage_title_typography:{type:"object",default:{fontFamily:"",weight:"", | |
| 2928 | -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"}},info_typographyGlobal:{type:"string",default:""},info_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", | |
| 2929 | -lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},start_btn_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:""}},enroll_btn_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:""}},enroll_btn_typographyGlobal:{type:"string",default:""},enroll_btn_typography:{type:"object",default:{fontFamily:"",weight:"", | |
| 2930 | -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"}},start_btn_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:"", | |
| 2931 | -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:"", | |
| 2932 | -commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},enroll_btn_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:"", | |
| 2933 | -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:"", | |
| 2934 | -leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},modalWidth:{type:"object",default:{value:150,valueTablet:100,valueMobile:80,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},bg_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:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"", | |
| 2935 | -customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px", | |
| 2936 | -unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"", | |
| 2937 | -hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 2938 | -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:"", | |
| 2939 | -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:"", | |
| 2940 | -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:{ | |
| 2941 | -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"}}, | |
| 2942 | -_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 qS(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:o,name:FS.UU,attributes:e,typography:[{fontFamily:e.start_btn_typography?.fontFamily,weight:e.start_btn_typography?.weight},{fontFamily:e.enroll_btn_typography?.fontFamily,weight:e.enroll_btn_typography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{ | |
| 2943 | -block:"ablocks/academy-enroll-form",httpMethod:"POST",attributes:{...e,postId:i.postId,course_id:e.product_id?e.product_id:i.postId}})})})})}qS.propTypes={};const $S=(t,e="")=>{const i=(0,M.Zy)(t.start_btn_typography,{weight:"400"}),o=t.start_btn_typographyGlobal?t.start_btn_typographyGlobal:"";return{color:(0,gs.qD)(t?.start_btn_color),background:(0,gs.qD)(t?.start_btn_bg_color),...(0,P.qD)(i,e,o),...(0,c.qD)(t?.start_btn_padding,"padding",e),...(0,y.qD)(t?.start_btn_border,e)}},GS=(t,e="")=>({color:(0,gs.qD)(t?.start_btn_color_hover),background:(0,gs.qD)(t?.start_btn_bg_hover_color),...(0,y.a9)(t?.start_btn_border,e)}),ZS=(t,e="")=>{const i=(0,M.Zy)(t.enroll_btn_typography,{weight:"400"}),o=t.enroll_btn_typographyGlobal?t.enroll_btn_typographyGlobal:"";return{color:(0,gs.qD)(t?.enroll_btn_color),background:(0,gs.qD)(t?.enroll_btn_bg_color),...(0,P.qD)(i,e,o),...(0,c.qD)(t?.enroll_btn_padding,"padding",e),...(0,y.qD)(t?.enroll_btn_border,e)}},KS=(t,e="")=>({color:(0, | |
| 2944 | -gs.qD)(t?.enroll_btn_color_hover),background:(0,gs.qD)(t?.enroll_btn_bg_hover_color),...(0,y.a9)(t?.enroll_btn_border,e)}),JS=(t,e="")=>{const i=(0,M.Zy)(t?.massage_title_typography??"",{weight:"400"}),o=t.massage_title_typographyGlobal?t.massage_title_typographyGlobal:"";return{color:(0,gs.qD)(t?.massage_title_color),background:(0,gs.qD)(t?.massage_title_bg),...(0,P.qD)(i,e,o)}},QS=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.modalWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:150,unitDefaultValue:"px",property:"width",device:e})}),tW=(t,e="")=>{const i=(0,M.Zy)(t?.list_typography,"",{weight:"400"}),o=t.list_typographyGlobal?t.list_typographyGlobal:"";return{"text-decoration":"none",color:(0,gs.qD)(t?.list_color),...(0,P.qD)(i,e,o)}},eW=(t,e="")=>({color:(0,gs.qD)(t?.list_hover_color)}),iW=(t,e="")=>{const i=(0,M.Zy)(t?.price_typography,"",{weight:"400"}),o=t.price_typographyGlobal?t.price_typographyGlobal:"";return{color:(0,gs.qD)(t?.price_color),...(0, | |
| 2945 | -P.qD)(i,e,o)}},oW=(t,e="")=>{const i={};return i.color=t?.price_title_hover_color??"",i},aW=(t,e="")=>{const i={};i.color=t?.price_title_color??"";const o=(0,M.Zy)(t?.price_title_typography,"",{weight:"400"});return{...i,...(0,P.qD)(o,e)}},lW=(t,e="")=>{const i={};i.color=t?.info_color??"#7b68ee",i.background=t?.info_bg??"#eae8fa";const o=(0,M.Zy)(t?.info_typography,"",{weight:"400"});return{...i,...(0,P.qD)(o,e)}},nW=(t,e="")=>{const i={};return i.background=t?.info_bg_hover??"#eae8fa",i.color=t?.info_color_hover??"#7b68ee",{...i,...(0,Ob.qD)({attributeValue:t?.bgTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}};(0,M.xV)(FS.UU,"","academy_lms")&&(0,o.registerBlockType)(FS.UU,{title:"Enroll Form",attributes:FS.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){ | |
| 2946 | -const{isSelected:e,attributes: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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a",$S(i),$S(i,"Tablet"),$S(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a:hover",GS(i),GS(i,"Tablet"),GS(i,"Mobile")), | |
| 2947 | -t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn",ZS(i),ZS(i,"Tablet"),ZS(i,"Mobile")), | |
| 2948 | -t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn:hover",KS(i,""),KS(i,"Tablet"),KS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-message",JS(i),JS(i,"Tablet"),JS(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite",QS(i),QS(i,"Tablet"),QS(i,"Mobile")), | |
| 2949 | -t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-lists a",tW(i),tW(i,"Tablet"),tW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__prerequisites .academy-prerequisites-lists li a:hover",eW(i,""),eW(i,"Tablet"),eW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__price,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-type,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price del,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price ins",iW(i,""),iW(i,"Tablet"),iW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title",aW(i,""),aW(i,"Tablet"),aW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title:hover",oW(i,""),oW(i,"Tablet"),oW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info",lW(i,""),lW(i,"Tablet"),lW(i,"Mobile")), | |
| 2950 | -t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info:hover",nW(i,""),nW(i,"Tablet"),nW(i,"Mobile")),(0,b.applyFilters)("ablocks.academy-enroll-form.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(YS,{...t}),(0,L.jsx)(qS,{...t})]})},save:()=>null});const sW={label:I().string,isGradient:I().bool,attributeName:I().string,attributeValue:I().string,setAttributes:I().func,onChangeHandler:I().func,resetHandler:I().func},rW=t=>{const{label:e="",attributeName:i="",attributeValue:o,setAttributes:l={},onChangeHandler:n,is12Hour:s=!0}=t,[r,b]=(0,a.useState)(!1);return(0,L.jsxs)("div",{className:"ablocks-controls ablocks-control-date-time-picker",children:[(0,L.jsxs)("div",{className:" ablocks-date-time-picker",style:{display:"flex"},children:[(0,L.jsx)(ot,{label:e,isResponsive:!1}),(0,L.jsx)("div",{className:"ablocks-date-time-picker__btn",children:(0,L.jsx)("button",{onClick:()=>{b(!0)}, | |
| 2951 | -disabled:r,children:new Date(o).toLocaleString()})})]}),(0,L.jsx)(Yt,{label:e,isShowPrimaryLabel:!1,isVisible:r,toggleVisible:t=>{b(t)},children:(0,L.jsx)(A.DateTimePicker,{onChange:t=>{n?n(t):(t=>{l({[i]:t})})(t)},currentDate:o,is12Hour:s,__nextRemoveResetButton:!0,__nextRemoveHelpButton:!0})})]})};rW.propTypes=sW;const bW=rW,cW=((0,z.__)("None","ablocks"),(0,z.__)("Hide","ablocks"),(0,z.__)("Show Message","ablocks"),(0,z.__)("Show Message & Hide Countdown","ablocks"),(0,z.__)("Redirect","ablocks"),[{label:(0,z.__)(":","ablocks"),value:":"},{label:(0,z.__)("/","ablocks"),value:"/"},{label:(0,z.__)("?","ablocks"),value:"?"},{label:(0,z.__)("|","ablocks"),value:"|"}]),dW=((0,z.__)("Transparent","ablocks"),(0,z.__)("Color","ablocks"),[{label:(0,z.__)("Top","ablocks"),value:"column-reverse"},{label:(0,z.__)("Right","ablocks"),value:"row"},{label:(0,z.__)("Bottom","ablocks"),value:"column"},{label:(0,z.__)("Left","ablocks"),value:"row-reverse"}]),uW=[{label:(0,z.__)("Row","ablocks"), | |
| 2952 | -value:"row",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,z.__)("Column","ablocks"),value:"column",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,z.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,z.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],pW=[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:(0, | |
| 2953 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,z.__)("Space Around","ablocks"),value:"space-around",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,z.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],mW=[{label:(0,z.__)("Start","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,z.__)("End","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})},{label:(0,z.__)("Stretch","ablocks"),value:"stretch",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"}],hW=[{label:(0,z.__)("Wrap","ablocks"), | |
| 2954 | -value:"wrap",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,z.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,z.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}];var gW=i(60766);function fW(t){ | |
| 2955 | -const{attributes:e,setAttributes:i,context:o}=t,{targetTime:a,showDay:n,showHour:s,showMinute:r,showSecond:b,dayLabel:c,hourLabel:d,minuteLabel:u,secondLabel:p,orient:m,alignment:h,justificationAlign:g,wrapping:f,labelPosition:y,labelColor:T,labelBgColor:H,labelTypography:M,showLabels:x,separator:k,showSeparator:v,separatorColor:_,separatorTypography:R,numberColor:S,numberBgColor:W,numberTypography:U,boxSize:P,boxRowGap:j,boxColumnGap:w,numberAndLabelGap:A,boxBackgroundColor:N,padding:I,evergreen:V,evergreenDays:O,evergreenHours:Y,evergreenMinutes:X,evergreenRestart:B}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-countdown-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Countdown","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Direction","ablocks"),options:uW,attributeName:"orient", | |
| 2956 | -attributeValue:m,setAttributes:i}),("row"===m?.value||"row-reverse"===m?.value)&&(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Justify","ablocks"),options:pW,attributeName:"justificationAlign",attributeValue:g,setAttributes:i}),(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Align Items","ablocks"),options:mW,attributeName:"alignment",attributeValue:h,setAttributes:i}),(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Wrap","ablocks"),options:hW,attributeName:"wrapping",attributeValue:f,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Rows Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxRowGap",attributeValue:j,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:gW.Gt}),(0,L.jsx)(vt,{label:(0,z.__)("Columns Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxColumnGap",attributeValue:w,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em", | |
| 2957 | -label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:gW.Q8}),(0,L.jsx)(Vt,{label:(0,z.__)("Evergreen Timer","ablocks"),attributeValue:V,setAttributes:i,attributeName:"evergreen",isResponsive:!1}),V?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Days","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenDays",attributeValue:O,setAttributes:i,min:0,max:365,step:1,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Hours","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenHours",attributeValue:Y,setAttributes:i,min:0,max:23,step:1,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Minutes","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenMinutes",attributeValue:X,setAttributes:i,min:0,max:59,step:1,isInline:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Restart After Expiry","ablocks"),attributeValue:B,setAttributes:i,attributeName:"evergreenRestart",isResponsive:!1})]}):(0,L.jsx)(bW,{label:(0,z.__)("Select Date","ablocks"),setAttributes:i, | |
| 2958 | -attributeValue:a,attributeName:"targetTime"}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Day","ablocks"),attributeValue:n,setAttributes:i,attributeName:"showDay",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Hour","ablocks"),attributeValue:s,setAttributes:i,attributeName:"showHour",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Minute","ablocks"),attributeValue:r,setAttributes:i,attributeName:"showMinute",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Second","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showSecond",isResponsive:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Separator","ablocks"),attributeValue:v,setAttributes:i,attributeName:"showSeparator",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Labels","ablocks"),attributeValue:x,setAttributes:i,attributeName:"showLabels",isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Box Size","ablocks"),isResponsive:!0,hasUnit:!0, | |
| 2959 | -attributeName:"boxSize",attributeValue:P,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:1e3,isInline:!1,attributeDefaultValue:gW.Vo,autoSyncRange:!0}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("Label Position","ablocks"),options:dW,attributeName:"labelPosition",attributeValue:y,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Number and Label Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"numberAndLabelGap",attributeValue:A,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:gW.Vg}),(0,L.jsx)(Nt,{margin:"30"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"boxBorder",attributeValue:e?.boxBorder,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"), | |
| 2960 | -isResponsive:!0,attributeName:"padding",attributeValue:I,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"boxBackgroundColor",attributeValue:N,setAttributes:i,isGradient:!0}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeValue:e.boxShadow,setAttributes:i,attributeName:"boxShadow"})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Label","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Days","ablocks"),attributeValue:c,setAttributes:i,attributeName:"dayLabel",isResponsive:!1,context:o}),(0,L.jsx)(ql,{label:(0,z.__)("Hours","ablocks"),attributeValue:d,setAttributes:i,attributeName:"hourLabel",isResponsive:!1,context:o}),(0,L.jsx)(ql,{label:(0,z.__)("Minute","ablocks"),attributeValue:u,setAttributes:i,attributeName:"minuteLabel",isResponsive:!1,context:o}),(0,L.jsx)(ql,{label:(0,z.__)("Second","ablocks"),attributeValue:p,setAttributes:i, | |
| 2961 | -attributeName:"secondLabel",isResponsive:!1,context:o})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:T,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"labelBgColor",attributeValue:H,setAttributes:i,isGradient:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Number","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"numberColor",attributeValue:S,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"numberBgColor",attributeValue:W,setAttributes:i,isGradient:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"numberTypography",attributeValue:U,setAttributes:i,isResponsive:!0,attributes:e})]}),v&&(0,L.jsx)(D,{ | |
| 2962 | -title:(0,z.__)("Separator","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vb,{isInline:!1,label:(0,z.__)("Separator","ablocks"),options:cW,attributeName:"separator",attributeValue:k,setAttributes:i,isResponsive:!1})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"separatorColor",attributeValue:_,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"separatorTypography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})})})}fW.propTypes={};const yW=new Map,TW=function(t){if(!t)return;const e=t.getAttribute("data-block-id")||t.className;yW.has(e)&&(clearInterval(yW.get(e)),yW.delete(e)) | |
| 2927 | +scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1}},save:XS},{attributes:OS.uK,save:t=>(0,I.jsx)(BS,{...t})}]}),ES.propTypes={};const FS={UU:"ablocks/tabs-child", | |
| 2928 | +$t:["ablocks/tabs"],uK:{block_id:{type:"string",default:""},tabId:{type:"number",default:0}}};function qS(t){const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tabId:b}=e,c=(0,r.useSelect)(t=>t("core/block-editor").getBlockIndex(n));(0,a.useEffect)(()=>{b!==c&&i({tabId:c})},[c,n]);const d={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:s,name:FS.UU,attributes:e,blockProps:{"data-tab-id":b},children:(0,I.jsx)(D.InnerBlocks,{...d})})})}qS.propTypes={};const $S=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)});function GS(t){const{attributes:e}=t,{block_id:i,tabId:o}=e;return(0,I.jsx)(dR,{blockId:i,name:FS.UU,attributes:e,blockProps:{"data-tab-id":o},children:(0,I.jsx)(D.InnerBlocks.Content,{})})}GS.propTypes={},(0,M.xV)(FS.UU,FS.$t[0])&&(0,o.registerBlockType)(FS.UU,{ | |
| 2929 | +title:(0,L.__)("Tabs Child","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-tab-child"}),attributes:FS.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",$S(i),$S(i,"Tablet"),$S(i,"Mobile"),t.customDeviceMap(t=>$S(i,t))),(0,b.applyFilters)("ablocks.tabs-child.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(ES,{...t}),(0,I.jsx)(qS,{...t})]})},save:GS});const ZS=[{label:(0,L.__)("New","ablocks"),value:"new"},{label:(0,L.__)("Legacy","ablocks"),value:"legacy"}],KS=(0,Eb.D$)({attributeName:"modalWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});(0,Eb.D$)({attributeName:"bg_transition", | |
| 2930 | +attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:100,defaultValueMobile:80,hasUnit:!0,unitDefaultValue:"px"});function JS(t){const{attributes:e,setAttributes:i}=t,{course_id:o,start_btn_typography:a,start_btn_color:n,enroll_btn_color:s,start_btn_bg_color:b,enroll_btn_bg_color:c,start_btn_color_hover:d,enroll_btn_color_hover:u,start_btn_bg_hover_color:p,enroll_btn_bg_hover_color:m,start_btn_padding:h,enroll_btn_padding:g,start_btn_border:f,enroll_btn_border:y,enroll_btn_typography:T,layout:H,modalWidth:M,massage_title_bg:x,massage_title_color:k,massage_title_hover_bg:v,massage_title_hover_color:_,list_color:R,list_hover_color:S,price_hover_color:W,price_color:P,massage_title_typography:U,list_typography:j,price_typography:w,price_title_typography:z,price_title_hover_color:C,price_title_color:A,info_bg:N,info_bg_hover:O,info_color:Y,info_color_hover:X,bgTransition:B,info_typography:E}=e,F=(0, | |
| 2931 | +r.useSelect)(t=>t("core").getEntityRecords("postType","academy_courses",{per_page:-1}),[]),q=F?F.filter(t=>{const e=t.meta?.academy_course_type;return"free"===e||"paid"===e||"rcp_membership"===e}):[],$=q?q.map(t=>({label:t.title?.rendered,value:t.id})):[];return $.unshift({label:(0,L.__)("Select a Course","ablocks"),value:0}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Enroll Form Option","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ut,{options:ZS,label:(0,L.__)("Select Layout","ablocks"),attributeValue:H,attributeName:"layout",setAttributes:i}),(0,I.jsx)(Ut,{options:$,label:(0,L.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Enroll Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"enroll_btn_typography",attributeValue:T, | |
| 2932 | +setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"enroll_btn_color",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"enroll_btn_bg_color",attributeValue:c,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"enroll_btn_color_hover",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"enroll_btn_bg_hover_color",attributeValue:m,setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"enroll_btn_padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0, | |
| 2933 | +I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"enroll_btn_border",attributeValue:y,setAttributes:i})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Price Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"price_typography",attributeValue:w,setAttributes:i,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_color",attributeValue:P,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_hover_color",attributeValue:W,setAttributes:i})})}),(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Price Title","ablocks")}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"price_title_typography",attributeValue:z,setAttributes:i,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{ | |
| 2934 | +children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_title_color",attributeValue:A,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"price_title_hover_color",attributeValue:C,setAttributes:i})})})]}),(0,I.jsxs)(V,{title:(0,L.__)("Enroll Info Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"info_typography",attributeValue:E,setAttributes:i,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"info_color",attributeValue:Y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"info_bg",attributeValue:N,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"info_color_hover",attributeValue:X,setAttributes:i}),(0,I.jsx)(Ws,{label:(0, | |
| 2935 | +L.__)("Background Color","ablocks"),attributeName:"info_bg_hover",attributeValue:O,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:B,attributeName:"bgTransition",setAttributes:i})]})})]}),"new"===H?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(V,{title:(0,L.__)("Prerequisites Style","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Modal Width","ablocks"),min:0,max:500,step:1,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:M,attributeName:"modalWidth",setAttributes:i,attributeDefaultValue:KS}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"massage_title_typography",attributeValue:U,setAttributes:i,isResponsive:!1,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"massage_title_bg",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0, | |
| 2936 | +L.__)("Color","ablocks"),attributeName:"massage_title_color",attributeValue:k,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"massage_title_hover_bg",attributeValue:v,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"massage_title_hover_color",attributeValue:_,setAttributes:i})]})})]}),(0,I.jsxs)(V,{initialOpen:!0,title:(0,L.__)("Prerequisites List Style","ablocks"),children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"list_typography",attributeValue:j,setAttributes:i,isResponsive:!1,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"list_color",attributeValue:R,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"list_hover_color",attributeValue:S,setAttributes:i})})})]})]}):(0,I.jsx)(I.Fragment,{children:(0, | |
| 2937 | +I.jsxs)(V,{title:(0,L.__)("Start Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"start_btn_typography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"start_btn_color",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"start_btn_bg_color",attributeValue:b,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"start_btn_color_hover",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"start_btn_bg_hover_color",attributeValue:p,setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"), | |
| 2938 | +isResponsive:!0,attributeName:"start_btn_padding",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"start_btn_border",attributeValue:f,setAttributes:i})]})})]})})})}(0,U.D$)("start_btn_typography",!0),(0,U.D$)("price_title_typography",!0),(0,U.D$)("massage_title_typography",!0),(0,U.D$)("list_typography",!0),(0,U.D$)("price_typography",!0),(0,U.D$)("info_typography",!0),(0,y.D$)("start_btn_border",!0),(0,y.D$)("enroll_btn_border",!0),(0,c.D$)("start_btn_padding",!0),(0,c.D$)("enroll_btn_padding",!0),_r.Ay,JS.propTypes={};const QS=window.wp.serverSideRender;var tW=i.n(QS);const eW=({children:t,disabled:e=!0})=>(0,I.jsx)("div",{"aria-disabled":e,style:{position:"relative"},onClick:t=>{e&&(t.preventDefault(),t.stopPropagation())},onSubmit:t=>{e&&(t.preventDefault(),t.stopPropagation())},children:t}),iW={UU:"ablocks/academy-enroll-form",uK:{block_id:{type:"string", | |
| 2939 | +default:""},blockVersion:{type:"number",default:2},course_id:{type:"number",default:0},layout:{type:"string",default:"legacy"},start_btn_color:{type:"string",default:"#fff"},enroll_btn_color:{type:"string",default:"#fff"},start_btn_color_hover:{type:"string",default:"#fff"},enroll_btn_color_hover:{type:"string",default:"#fff"},start_btn_bg_color:{type:"string",default:"#7B68EE"},enroll_btn_bg_color:{type:"string",default:"#7B68EE"},start_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},enroll_btn_bg_hover_color:{type:"string",default:"#6F5DD6"},massage_title_bg:{type:"string",default:""},massage_title_color:{type:"string",default:""},massage_title_hover_bg:{type:"string",default:""},massage_title_hover_color:{type:"string",default:""},list_color:{type:"string",default:""},list_hover_color:{type:"string",default:""},price_hover_color:{type:"string",default:"#111"},price_color:{type:"string",default:"#111"},price_title_hover_color:{type:"string",default:"#111"},price_title_color:{ | |
| 2940 | +type:"string",default:"#111"},info_color_hover:{type:"string",default:"#7b68ee"},info_color:{type:"string",default:"#7b68ee"},info_bg_hover:{type:"string",default:"#eae8fa"},info_bg:{type:"string",default:"#eae8fa"},start_btn_typographyGlobal:{type:"string",default:""},start_btn_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},price_typographyGlobal:{type:"string",default:""},price_typography:{type:"object",default:{fontFamily:"", | |
| 2941 | +weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},price_title_typographyGlobal:{type:"string",default:""},price_title_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"", | |
| 2942 | +lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},list_typographyGlobal:{type:"string",default:""},list_typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},massage_title_typographyGlobal:{type:"string",default:""}, | |
| 2943 | +massage_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"}},info_typographyGlobal:{type:"string",default:""},info_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", | |
| 2944 | +lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},start_btn_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:""}},enroll_btn_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:""}},enroll_btn_typographyGlobal:{type:"string",default:""}, | |
| 2945 | +enroll_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"}},start_btn_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:"", | |
| 2946 | +topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 2947 | +isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},enroll_btn_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:"", | |
| 2948 | +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:"", | |
| 2949 | +leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},modalWidth:{type:"object",default:{value:150,valueTablet:100,valueMobile:80,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},bg_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:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{ | |
| 2950 | +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:"", | |
| 2951 | +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", | |
| 2952 | +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:"", | |
| 2953 | +imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"", | |
| 2954 | +imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"", | |
| 2955 | +skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"", | |
| 2956 | +yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default", | |
| 2957 | +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function oW(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:iW.UU,attributes:e,typography:[{fontFamily:e.start_btn_typography?.fontFamily,weight:e.start_btn_typography?.weight},{fontFamily:e.enroll_btn_typography?.fontFamily, | |
| 2958 | +weight:e.enroll_btn_typography?.weight}],children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/academy-enroll-form",httpMethod:"POST",attributes:{...e,postId:i.postId,course_id:e.product_id?e.product_id:i.postId}})})})})}oW.propTypes={};const aW=(t,e="")=>{const i=(0,M.Zy)(t.start_btn_typography,{weight:"400"}),o=t.start_btn_typographyGlobal?t.start_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.start_btn_color),background:(0,Hs.qD)(t?.start_btn_bg_color),...(0,U.qD)(i,e,o),...(0,c.qD)(t?.start_btn_padding,"padding",e),...(0,y.qD)(t?.start_btn_border,e)}},lW=(t,e="")=>({color:(0,Hs.qD)(t?.start_btn_color_hover),background:(0,Hs.qD)(t?.start_btn_bg_hover_color),...(0,y.a9)(t?.start_btn_border,e)}),nW=(t,e="")=>{const i=(0,M.Zy)(t.enroll_btn_typography,{weight:"400"}),o=t.enroll_btn_typographyGlobal?t.enroll_btn_typographyGlobal:"";return{color:(0,Hs.qD)(t?.enroll_btn_color),background:(0,Hs.qD)(t?.enroll_btn_bg_color),...(0,U.qD)(i,e,o),...(0, | |
| 2959 | +c.qD)(t?.enroll_btn_padding,"padding",e),...(0,y.qD)(t?.enroll_btn_border,e)}},sW=(t,e="")=>({color:(0,Hs.qD)(t?.enroll_btn_color_hover),background:(0,Hs.qD)(t?.enroll_btn_bg_hover_color),...(0,y.a9)(t?.enroll_btn_border,e)}),rW=(t,e="")=>{const i=(0,M.Zy)(t?.massage_title_typography??"",{weight:"400"}),o=t.massage_title_typographyGlobal?t.massage_title_typographyGlobal:"";return{color:(0,Hs.qD)(t?.massage_title_color),background:(0,Hs.qD)(t?.massage_title_bg),...(0,U.qD)(i,e,o)}},bW=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.modalWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:150,unitDefaultValue:"px",property:"width",device:e})}),cW=(t,e="")=>{const i=(0,M.Zy)(t?.list_typography,"",{weight:"400"}),o=t.list_typographyGlobal?t.list_typographyGlobal:"";return{"text-decoration":"none",color:(0,Hs.qD)(t?.list_color),...(0,U.qD)(i,e,o)}},dW=(t,e="")=>({color:(0,Hs.qD)(t?.list_hover_color)}),uW=(t,e="")=>{const i=(0,M.Zy)(t?.price_typography,"",{weight:"400" | |
| 2960 | +}),o=t.price_typographyGlobal?t.price_typographyGlobal:"";return{color:(0,Hs.qD)(t?.price_color),...(0,U.qD)(i,e,o)}},pW=(t,e="")=>{const i={};return i.color=t?.price_title_hover_color??"",i},mW=(t,e="")=>{const i={};i.color=t?.price_title_color??"";const o=(0,M.Zy)(t?.price_title_typography,"",{weight:"400"});return{...i,...(0,U.qD)(o,e)}},hW=(t,e="")=>{const i={};i.color=t?.info_color??"#7b68ee",i.background=t?.info_bg??"#eae8fa";const o=(0,M.Zy)(t?.info_typography,"",{weight:"400"});return{...i,...(0,U.qD)(o,e)}},gW=(t,e="")=>{const i={};return i.background=t?.info_bg_hover??"#eae8fa",i.color=t?.info_color_hover??"#7b68ee",{...i,...(0,Eb.qD)({attributeValue:t?.bgTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}};(0,M.xV)(iW.UU,"","academy_lms")&&(0,o.registerBlockType)(iW.UU,{title:(0,L.__)("Enroll Form","ablocks"),attributes:iW.uK,icon:(0,I.jsx)("img",{className:"ablocks-img-icon", | |
| 2961 | +src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a",aW(i),aW(i,"Tablet"),aW(i,"Mobile"),e(t=>aW(i,t))), | |
| 2962 | +t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__continue a:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__continue .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__continue a:hover",lW(i),lW(i,"Tablet"),lW(i,"Mobile"),e(t=>lW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn",nW(i),nW(i,"Tablet"),nW(i,"Mobile"),e(t=>nW(i,t))), | |
| 2963 | +t.addClassStyles("{{WRAPPER}} .academy-enroll-form .academy-widget-enroll__enroll-form button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite-button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode__button:hover,\n\t\t\t{{WRAPPER}} .academy-enroll-form-shortcode .academy-course-enroll-form .academy-btn--bg-purple:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__enroll-form .academy-btn:hover,\n\t\t\t{{WRAPPER}} .academy-add-to-cart-button button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__add-to-cart form button:hover,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__complete-form .academy-btn:hover",sW(i,""),sW(i,"Tablet"),sW(i,"Mobile"),e(t=>sW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-message",rW(i),rW(i,"Tablet"),rW(i,"Mobile"),e(t=>rW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite",bW(i),bW(i,"Tablet"),bW(i,"Mobile"),e(t=>bW(i,t))), | |
| 2964 | +t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__prerequisite .academy-shortcode-prerequisites-lists a",cW(i),cW(i,"Tablet"),cW(i,"Mobile"),e(t=>cW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__prerequisites .academy-prerequisites-lists li a:hover",dW(i,""),dW(i,"Tablet"),dW(i,"Mobile"),e(t=>dW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-enroll-form-shortcode__price,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-type,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price del,\n\t\t\t{{WRAPPER}} .academy-widget-enroll__head .academy-course-price ins",uW(i,""),uW(i,"Tablet"),uW(i,"Mobile"),e(t=>uW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title",mW(i,""),mW(i,"Tablet"),mW(i,"Mobile"),e(t=>mW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__head .title:hover",pW(i,""),pW(i,"Tablet"),pW(i,"Mobile"),e(t=>pW(i,t))), | |
| 2965 | +t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info",hW(i,""),hW(i,"Tablet"),hW(i,"Mobile"),e(t=>hW(i,t))),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__enrolled-info:hover",gW(i,""),gW(i,"Tablet"),gW(i,"Mobile"),e(t=>gW(i,t))),(0,b.applyFilters)("ablocks.academy-enroll-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(JS,{...t}),(0,I.jsx)(oW,{...t})]})},save:()=>null});const fW={label:Y().string,isGradient:Y().bool,attributeName:Y().string,attributeValue:Y().string,setAttributes:Y().func,onChangeHandler:Y().func,resetHandler:Y().func},yW=t=>{const{label:e="",attributeName:i="",attributeValue:o,setAttributes:l={},onChangeHandler:n,is12Hour:s=!0}=t,[r,b]=(0,a.useState)(!1);return(0,I.jsxs)("div",{className:"ablocks-controls ablocks-control-date-time-picker",children:[(0,I.jsxs)("div",{className:" ablocks-date-time-picker",style:{display:"flex"},children:[(0,I.jsx)(at,{ | |
| 2966 | +label:e,isResponsive:!1}),(0,I.jsx)("div",{className:"ablocks-date-time-picker__btn",children:(0,I.jsx)("button",{onClick:()=>{b(!0)},disabled:r,children:new Date(o).toLocaleString()})})]}),(0,I.jsx)(Xt,{label:e,isShowPrimaryLabel:!1,isVisible:r,toggleVisible:t=>{b(t)},children:(0,I.jsx)(N.DateTimePicker,{onChange:t=>{n?n(t):(t=>{l({[i]:t})})(t)},currentDate:o,is12Hour:s,__nextRemoveResetButton:!0,__nextRemoveHelpButton:!0})})]})};yW.propTypes=fW;const TW=yW,HW=((0,L.__)("None","ablocks"),(0,L.__)("Hide","ablocks"),(0,L.__)("Show Message","ablocks"),(0,L.__)("Show Message & Hide Countdown","ablocks"),(0,L.__)("Redirect","ablocks"),[{label:(0,L.__)(":","ablocks"),value:":"},{label:(0,L.__)("/","ablocks"),value:"/"},{label:(0,L.__)("?","ablocks"),value:"?"},{label:(0,L.__)("|","ablocks"),value:"|"}]),MW=((0,L.__)("Transparent","ablocks"),(0,L.__)("Color","ablocks"),[{label:(0,L.__)("Top","ablocks"),value:"column-reverse"},{label:(0,L.__)("Right","ablocks"),value:"row"},{label:(0, | |
| 2967 | +L.__)("Bottom","ablocks"),value:"column"},{label:(0,L.__)("Left","ablocks"),value:"row-reverse"}]),xW=[{label:(0,L.__)("Row","ablocks"),value:"row",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,L.__)("Column","ablocks"),value:"column",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,L.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,L.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],kW=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:(0, | |
| 2968 | +I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,L.__)("Space Around","ablocks"),value:"space-around",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,L.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],vW=[{label:(0,L.__)("Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0, | |
| 2969 | +I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"}],_W=[{label:(0,L.__)("Wrap","ablocks"),value:"wrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap"})},{label:(0,L.__)("No Wrap","ablocks"),value:"nowrap",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--no-wrap"})},{label:(0,L.__)("Wrap Reverse","ablocks"),value:"wrap-reverse",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--wrap ablocks-icon-rotate-180-deg"}),tooltipPosition:"top-left"}];var RW=i(60766);function SW(t){ | |
| 2970 | +const{attributes:e,setAttributes:i,context:o}=t,{targetTime:a,showDay:n,showHour:s,showMinute:r,showSecond:b,dayLabel:c,hourLabel:d,minuteLabel:u,secondLabel:p,orient:m,alignment:h,justificationAlign:g,wrapping:f,labelPosition:y,labelColor:T,labelBgColor:H,labelTypography:M,showLabels:x,separator:k,showSeparator:v,separatorColor:_,separatorTypography:R,numberColor:S,numberBgColor:W,numberTypography:P,boxSize:U,boxRowGap:j,boxColumnGap:w,numberAndLabelGap:z,boxBackgroundColor:C,padding:A,evergreen:N,evergreenDays:O,evergreenHours:Y,evergreenMinutes:X,evergreenRestart:B}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-countdown-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Countdown","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Direction","ablocks"),options:xW,attributeName:"orient", | |
| 2971 | +attributeValue:m,setAttributes:i}),("row"===m?.value||"row-reverse"===m?.value)&&(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Justify","ablocks"),options:kW,attributeName:"justificationAlign",attributeValue:g,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Align Items","ablocks"),options:vW,attributeName:"alignment",attributeValue:h,setAttributes:i}),(0,I.jsx)(Wb,{isInline:!0,label:(0,L.__)("Wrap","ablocks"),options:_W,attributeName:"wrapping",attributeValue:f,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Rows Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxRowGap",attributeValue:j,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:RW.Gt}),(0,I.jsx)(_t,{label:(0,L.__)("Columns Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"boxColumnGap",attributeValue:w,setAttributes:i,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em", | |
| 2972 | +label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:RW.Q8}),(0,I.jsx)(Ot,{label:(0,L.__)("Evergreen Timer","ablocks"),attributeValue:N,setAttributes:i,attributeName:"evergreen",isResponsive:!1}),N?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Days","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenDays",attributeValue:O,setAttributes:i,min:0,max:365,step:1,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Hours","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenHours",attributeValue:Y,setAttributes:i,min:0,max:23,step:1,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Minutes","ablocks"),isResponsive:!1,hasUnit:!1,attributeName:"evergreenMinutes",attributeValue:X,setAttributes:i,min:0,max:59,step:1,isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Restart After Expiry","ablocks"),attributeValue:B,setAttributes:i,attributeName:"evergreenRestart",isResponsive:!1})]}):(0,I.jsx)(TW,{label:(0,L.__)("Select Date","ablocks"),setAttributes:i, | |
| 2973 | +attributeValue:a,attributeName:"targetTime"}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Day","ablocks"),attributeValue:n,setAttributes:i,attributeName:"showDay",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Hour","ablocks"),attributeValue:s,setAttributes:i,attributeName:"showHour",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Minute","ablocks"),attributeValue:r,setAttributes:i,attributeName:"showMinute",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Second","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showSecond",isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Separator","ablocks"),attributeValue:v,setAttributes:i,attributeName:"showSeparator",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Labels","ablocks"),attributeValue:x,setAttributes:i,attributeName:"showLabels",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Box Size","ablocks"),isResponsive:!0,hasUnit:!0, | |
| 2974 | +attributeName:"boxSize",attributeValue:U,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:1e3,isInline:!1,attributeDefaultValue:RW.Vo,autoSyncRange:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Position","ablocks"),options:MW,attributeName:"labelPosition",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Number and Label Gap","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"numberAndLabelGap",attributeValue:z,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:0,max:50,step:1,isInline:!1,attributeDefaultValue:RW.Vg}),(0,I.jsx)(It,{margin:"30"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"boxBorder",attributeValue:e?.boxBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"), | |
| 2975 | +isResponsive:!0,attributeName:"padding",attributeValue:A,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"boxBackgroundColor",attributeValue:C,setAttributes:i,isGradient:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:e.boxShadow,setAttributes:i,attributeName:"boxShadow"})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Label","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Days","ablocks"),attributeValue:c,setAttributes:i,attributeName:"dayLabel",isResponsive:!1,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Hours","ablocks"),attributeValue:d,setAttributes:i,attributeName:"hourLabel",isResponsive:!1,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Minute","ablocks"),attributeValue:u,setAttributes:i,attributeName:"minuteLabel",isResponsive:!1,context:o}),(0,I.jsx)(Kl,{label:(0,L.__)("Second","ablocks"),attributeValue:p,setAttributes:i, | |
| 2976 | +attributeName:"secondLabel",isResponsive:!1,context:o})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBgColor",attributeValue:H,setAttributes:i,isGradient:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Number","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"numberColor",attributeValue:S,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"numberBgColor",attributeValue:W,setAttributes:i,isGradient:!0}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"numberTypography",attributeValue:P,setAttributes:i,isResponsive:!0,attributes:e})]}),v&&(0,I.jsx)(V,{ | |
| 2977 | +title:(0,L.__)("Separator","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{isInline:!1,label:(0,L.__)("Separator","ablocks"),options:HW,attributeName:"separator",attributeValue:k,setAttributes:i,isResponsive:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"separatorColor",attributeValue:_,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"separatorTypography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})})})}SW.propTypes={};const WW=new Map,PW=function(t){if(!t)return;const e=t.getAttribute("data-block-id")||t.className;WW.has(e)&&(clearInterval(WW.get(e)),WW.delete(e)) | |
| 2963 | 2978 | ;const i="true"===t.getAttribute("data-evergreen"),o=parseInt(t.getAttribute("data-evergreen-days")||"0",10),a=parseInt(t.getAttribute("data-evergreen-hours")||"0",10),l=parseInt(t.getAttribute("data-evergreen-minutes")||"0",10),n="true"===t.getAttribute("data-evergreen-restart"),s=t.getAttribute("data-evergreen-version")||"",r="ablocks_evergreen_"+e,b="ablocks_evergreen_version_"+e,c=(e,i,o,a)=>{const l={day:t.querySelector(".ablocks-countdown__item--day .ablocks-countdown-value"),hour:t.querySelector(".ablocks-countdown__item--hour .ablocks-countdown-value"),minute:t.querySelector(".ablocks-countdown__item--minute .ablocks-countdown-value"),second:t.querySelector(".ablocks-countdown__item--second .ablocks-countdown-value")};l.day&&(l.day.innerHTML=e),l.hour&&(l.hour.innerHTML=i),l.minute&&(l.minute.innerHTML=o),l.second&&(l.second.innerHTML=a)},d=()=>{try{const u=(i?(()=>{localStorage.getItem(b)!==s&&(localStorage.removeItem(r),localStorage.setItem(b,s)) |
| 2964 | -;const t=localStorage.getItem(r);if(t){const e=parseInt(t,10);if(!isNaN(e)){if(e>Date.now())return e;if(!n)return e}}const e=1e3*(24*o*60*60+60*a*60+60*l),i=Date.now()+e;return localStorage.setItem(r,i.toString()),localStorage.setItem(b,s),i})():new Date(t.getAttribute("data-target-time")).getTime())-Date.now();if(u<=0){if(clearInterval(yW.get(e)),yW.delete(e),c("00","00","00","00"),i&&n){localStorage.removeItem(r);const t=setInterval(d,1e3);yW.set(e,t)}return}const p=Math.floor(u/1e3%60).toString().padStart(2,"0"),m=Math.floor(u/6e4%60).toString().padStart(2,"0"),h=Math.floor(u/36e5%24).toString().padStart(2,"0"),g=Math.floor(u/864e5).toString().padStart(2,"0");c(g,h,m,p)}catch(t){console.error(t)}};d();const u=setInterval(d,1e3);yW.set(e,u)},HW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"", | |
| 2979 | +;const t=localStorage.getItem(r);if(t){const e=parseInt(t,10);if(!isNaN(e)){if(e>Date.now())return e;if(!n)return e}}const e=1e3*(24*o*60*60+60*a*60+60*l),i=Date.now()+e;return localStorage.setItem(r,i.toString()),localStorage.setItem(b,s),i})():new Date(t.getAttribute("data-target-time")).getTime())-Date.now();if(u<=0){if(clearInterval(WW.get(e)),WW.delete(e),c("00","00","00","00"),i&&n){localStorage.removeItem(r);const t=setInterval(d,1e3);WW.set(e,t)}return}const p=Math.floor(u/1e3%60).toString().padStart(2,"0"),m=Math.floor(u/6e4%60).toString().padStart(2,"0"),h=Math.floor(u/36e5%24).toString().padStart(2,"0"),g=Math.floor(u/864e5).toString().padStart(2,"0");c(g,h,m,p)}catch(t){console.error(t)}};d();const u=setInterval(d,1e3);WW.set(e,u)},UW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"", | |
| 2965 | 2980 | presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},boxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px", |
| 2966 | 2981 | unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},actionMessageTypographyGlobal:{type:"string",default:""},actionMessageTypography:{type:"object",default:{ |
| 2967 | 2982 | fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"", |
| 2968 | 2983 | lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},numberTypographyGlobal:{type:"string",default:""},numberTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},separatorTypographyGlobal:{type:"string",default:""},separatorTypography:{ |
| @@ -2976,51 +2991,52 @@ | ||
| 2976 | 2991 | imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"", |
| 2977 | 2992 | 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", |
| 2978 | 2993 | 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:"", |
| 2979 | 2994 | scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", |
| 2980 | -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"}}}},MW=({label:t,value:e,children:i,showLabel:o})=>(0,L.jsxs)("div",{ | |
| 2981 | -className:s()("ablocks-countdown__item",`ablocks-countdown__item--${t}`),children:[(0,L.jsxs)("div",{className:"ablocks-countdown-value",children:[" ",e," "]}),o&&(0,L.jsxs)("div",{className:"ablocks-countdown-label",children:[" ",i," "]})]}),xW=({children:t})=>(0,L.jsxs)("div",{className:"ablocks-countdown__separator",children:[" ",t," "]});function kW(t){const{attributes:e,setAttributes:i}=t,{alignment:o,targetTime:n,dayLabel:s,hourLabel:r,minuteLabel:b,secondLabel:c,block_id:d,action:u,actionMessage:p,actionRedirectURL:m,showSeparator:h,separator:g,showDay:f,showHour:y,showMinute:T,showSecond:H,showLabels:x,evergreen:k,evergreenDays:v,evergreenHours:_,evergreenMinutes:R,evergreenRestart:S}=e,{isDynamicEnabled:W,data:U}=Zc({attributeValue:s}),{isDynamicEnabled:P,data:j}=Zc({attributeValue:r}),{isDynamicEnabled:w,data:z}=Zc({attributeValue:b}),{isDynamicEnabled:A,data:D}=Zc({attributeValue:c});let N;(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${d} `);TW(t) | |
| 2982 | -},[d,n,u,f,y,T,H,k,v,_,R,S]),N=k?1e3*(24*(v||0)*60*60+60*(_||0)*60+60*(R||0)):new Date(n).getTime()-Date.now();const I=Math.max(Math.floor(N/1e3%60),0),V=Math.max(Math.floor(N/6e4%60),0),O=Math.max(Math.floor(N/36e5%24),0),Y=Math.max(Math.floor(N/864e5),0),X=t=>{switch(t){case"day":return y||T||H;case"hour":return T||H;case"minute":return H;default:return!1}};return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:o,setAttributes:i})}),(0,L.jsxs)(Nb.A,{blockId:d,name:HW.UU,attributes:e,blockProps:{"data-target-time":n,"data-action":u,"data-action-message":p,"data-action-redirect-url":m,"data-evergreen":k?"true":"false","data-evergreen-days":v||0,"data-evergreen-hours":_||0,"data-evergreen-minutes":R||0,"data-evergreen-restart":S?"true":"false","data-block-id":d,"data-evergreen-version":`${v}-${_}-${R}`},children:[f&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"day",value:Y,showLabel:x,children:W?U:s}),h&&X("day")&&(0, | |
| 2983 | -L.jsx)(xW,{children:g})]}),y&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"hour",value:O,showLabel:x,children:P?j:r}),h&&X("hour")&&(0,L.jsx)(xW,{children:g})]}),T&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"minute",value:V,showLabel:x,children:w?z:b}),h&&X("minute")&&(0,L.jsx)(xW,{children:g})]}),H&&(0,L.jsx)(MW,{label:"second",value:I,showLabel:x,children:A?D:c})]})]})}kW.propTypes={};const vW=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e)}),_W=(t,e="")=>{const{boxSize:i,boxRowGap:o,boxColumnGap:a}=t,l=(0,M.Zy)(t.mapHeight,{value:130,valueUnit:"px"}),n={...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"min-height",device:e}),...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px",property:"row-gap",device:e}),...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px", | |
| 2984 | -property:"column-gap",device:e})};return t?.orient?.["value"+e]&&(n["flex-direction"]=t.orient["value"+e]),t?.justificationAlign?.["value"+e]&&(n["justify-content"]=t.justificationAlign["value"+e]),t?.alignment?.["value"+e]&&(n["align-items"]=t.alignment["value"+e]),t?.wrapping?.["value"+e]&&(n["flex-wrap"]=t?.wrapping?.["value"+e]),n},RW=(t,e="")=>{const{orient:i,boxSize:o,numberAndLabelGap:a,boxBackgroundColor:l,labelPosition:n}=t,s=(0,gs.qD)(l),r=n||"",b=(0,M.Zy)(t?.boxBorder,{unitWidth:"px",unitRadius:"px"}),d=(0,M.Zy)(t?.padding,{unit:"px"}),u="Tablet"===e?"valueTablet":"Mobile"===e?"valueMobile":"value",p=i?.[u]??i?.value;let m={};m="column"===p||"column-reverse"===p?(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:130,unitDefaultValue:"px",property:"width",device:e}):{width:"130px"};const h={...m,...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:5,unitDefaultValue:"px",property:"gap",device:e}),...(0, | |
| 2985 | -H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(b,e),...(0,c.qD)(d,"padding",e)};return s&&(h.background=s),r&&(h["flex-direction"]=r),h},SW=(t,e="")=>{const i=(0,M.Zy)(t?.boxBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},WW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 30%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.labelTypography,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,gs.qD)(t?.labelColor),background:(0,gs.qD)(t?.labelBgColor),...(0,P.qD)(o,e,a),...i}},UW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 70%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.numberTypography,{weight:"400"}),a=t.numberTypographyGlobal?t.numberTypographyGlobal:"";return{color:(0, | |
| 2986 | -gs.qD)(t?.numberColor),background:(0,gs.qD)(t?.numberBgColor),...(0,P.qD)(o,e,a),...i}},PW=(t,e)=>{const{separatorColor:i,separatorTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.separatorTypographyGlobal?t.separatorTypographyGlobal:"",n={...(0,P.qD)(a,e,l)};return i&&(n.color=(0,gs.qD)(i)),n};function jW(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y,evergreen:T,evergreenDays:H,evergreenHours:M,evergreenMinutes:x,evergreenRestart:k}=e,v=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default:return!1}};return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:r,name:HW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d,"data-evergreen":T?"true":"false","data-evergreen-days":H||0, | |
| 2987 | -"data-evergreen-hours":M||0,"data-evergreen-minutes":x||0,"data-evergreen-restart":k?"true":"false","data-block-id":r,"data-evergreen-version":`${H}-${M}-${x}`},children:[m&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"day",value:"00",showLabel:y,children:o}),u&&v("day")&&(0,L.jsx)(xW,{children:p})]}),h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"hour",value:"00",showLabel:y,children:a}),u&&v("hour")&&(0,L.jsx)(xW,{children:p})]}),g&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"minute",value:"00",showLabel:y,children:n}),u&&v("minute")&&(0,L.jsx)(xW,{children:p})]}),f&&(0,L.jsx)(MW,{label:"second",value:"00",showLabel:y,children:s})]})})}jW.propTypes={};const wW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"", | |
| 2988 | -verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},boxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0, | |
| 2989 | -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:""}},actionMessageTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"", | |
| 2990 | -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"}},labelTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px", | |
| 2991 | -wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},numberTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},separatorTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", | |
| 2992 | -fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},separator:{type:"string",default:":"},orient:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},justifyDep:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},wrapping:{type:"object",default:{value:"wrap",valueTablet:"",valueMobile:""}},boxSize:{type:"object",default:{value:130,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},boxRowGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},boxColumnGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"", | |
| 2993 | -valueUnitMobile:""}},numberAndLabelGap:{type:"object",default:{value:5,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},targetTime:{type:"string",default:""},direction:{type:"string",default:"row"},directionTablet:{type:"string",default:"row"},directionMobile:{type:"string",default:"row"},justify:{type:"string",default:"center"},justifyTablet:{type:"string",default:"center"},justifyMobile:{type:"string",default:"center"},align:{type:"string",default:"stretch"},alignTablet:{type:"string",default:"stretch"},alignMobile:{type:"string",default:"stretch"},wrap:{type:"string",default:"wrap"},wrapTablet:{type:"string",default:"wrap"},wrapMobile:{type:"string",default:"wrap"},showDay:{type:"boolean",default:!0},showHour:{type:"boolean",default:!0},showMinute:{type:"boolean",default:!0},showSecond:{type:"boolean",default:!0},dayLabel:{type:"string",default:"Days"},hourLabel:{type:"string",default:"Hours"},minuteLabel:{ | |
| 2994 | -type:"string",default:"Minute"},secondLabel:{type:"string",default:"Second"},isAction:{type:"boolean",default:!0},action:{type:"string",default:"none"},actionMessage:{type:"string",default:"Time Expire"},actionMessageColor:{type:"string",default:"black"},actionRedirectURL:{type:"string",default:""},labelPosition:{type:"string",default:"column"},showLabels:{type:"boolean",default:!0},boxBackgroundType:{type:"string",default:"transparent"},boxBackgroundColor:{type:"string",default:""},labelColor:{type:"string",default:""},labelBgColor:{type:"string",default:""},numberColor:{type:"string",default:""},numberBgColor:{type:"string",default:""},showSeparator:{type:"boolean",default:!0},separatorColor:{type:"string",default:"black"},_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:"", | |
| 2995 | -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:"", | |
| 2996 | -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:"", | |
| 2997 | -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:"", | |
| 2998 | -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:"", | |
| 2999 | -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:"", | |
| 3000 | -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", | |
| 3001 | -offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px", | |
| 3002 | -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 zW(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y}=e,T=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default: | |
| 3003 | -return!1}};return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:r,name:wW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d},children:[m&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"day",value:"00",showLabel:y,children:o}),u&&T("day")&&(0,L.jsx)(xW,{children:p})]}),h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"hour",value:"00",showLabel:y,children:a}),u&&T("hour")&&(0,L.jsx)(xW,{children:p})]}),g&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(MW,{label:"minute",value:"00",showLabel:y,children:n}),u&&T("minute")&&(0,L.jsx)(xW,{children:p})]}),f&&(0,L.jsx)(MW,{label:"second",value:"00",showLabel:y,children:s})]})})}zW.propTypes={},(0,M.xV)(HW.UU)&&(0,o.registerBlockType)(HW.UU,{title:"Countdown",attributes:HW.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-countdown"}),edit:function(t){ | |
| 3004 | -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{targetTime:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",vW(i),vW(i,"Tablet"),vW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",_W(i),_W(i,"Tablet"),_W(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item",RW(i),RW(i,"Tablet"),RW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item:hover",SW(i),SW(i,"Tablet"),SW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-label",WW(i),WW(i,"Tablet"),WW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-value",UW(i),UW(i,"Tablet"),UW(i,"Mobile")), | |
| 3005 | -t.addClassStyles("{{WRAPPER}} .ablocks-countdown__separator",PW(i),PW(i,"Tablet"),PW(i,"Mobile")),(0,b.applyFilters)("ablocks.countdown.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,a.useEffect)(()=>{const t=new Date;t.setDate(t.getDate()+2),n||o({targetTime:t.toISOString()})},[l,n]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(fW,{...t}),(0,L.jsx)(kW,{...t})]})},save:jW,deprecated:[{attributes:wW.uK,save:zW}]});var CW=i(81905);const AW=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:tT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:eT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:iT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:oT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:aT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid", | |
| 3006 | -type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:lT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]}],LW=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Icon","ablocks"),value:"Icon"},{label:(0,z.__)("Shapes","ablocks"),value:"Shapes"},{label:(0,z.__)("Emoji","ablocks"),value:"Emoji"}],DW=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Square","ablocks"),value:"solid"},{label:(0,z.__)("Circle","ablocks"),value:"dotted"},{ | |
| 3007 | -label:(0,z.__)("Double","ablocks"),value:"double"},{label:(0,z.__)("Ridge","ablocks"),value:"ridge"},{label:(0,z.__)("Inset","ablocks"),value:"inset"},{label:(0,z.__)("Outset","ablocks"),value:"outset"}],NW=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}};function IW(t){const{attributes:e,setAttributes:i,clientId:a}=t,{block_id:n,listsDirection:s,emoji:b,shapeType:c,shapeColor:d,shapeSize:u,markerType:p,iconAlignment:m,columnGap:h,innerGap:g,alignment:f,advanceListItemTextSize:y,listTextShadow:T,listTypography:H,textColor:x,advanceListItemTextTag:k,listTextStroke:v,dropCaps:_,dropCapsTextColor:R,allowDivider:S,dividerType:W,dividerPatternUrl:U,color:P,weight:j,width:w,size:A}=e,{updateBlockAttributes:N}=(0,r.useDispatch)("core/block-editor"),I=at(),V=(0,M.Ic)(g,"valueUnit",I),O=AW?.find(t=>t.value===U),Y=O?.optionalStyleControls?.map((t,e)=>"size"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"size", | |
| 3008 | -attributeObjectKey:"value",attributeValue:A,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:CW.Ej})},e):"weight"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{setAttributes:i,label:(0,z.__)("Weight","ablocks"),attributeName:"weight",attributeValue:j,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:CW.VA})},e):null);return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advance-lists-block/",children:[(0,L.jsxs)(D,{title:(0,z.__)("Advance lists","ablocks"),initialOpen:!0,children:[(0,L.jsx)(md,{label:(0,z.__)("Layout","ablocks"),options:[{label:(0,z.__)("Vertical","ablocks"),value:"row"},{label:(0,z.__)("Horizontal","ablocks"),value:"column"}],isResponsive:!0,attributeName:"listsDirection",attributeValue:s,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),options:[{label:"flex-start", | |
| 3009 | -value:"start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"flex-end",value:"end",icon:"right"}],attributeName:"alignment",attributeValue:f,setAttributes:i,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Marker type","ablocks"),options:LW,attributeName:"markerType",attributeValue:p,setAttributes:i}),"column"===s["value"+I]&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Allow divider","ablocks"),attributeValue:S,setAttributes:i,attributeName:"allowDivider"}),(0,L.jsx)(vt,{label:"row"===s["value"+I]?(0,z.__)("Column gap","ablocks"):(0,z.__)("Row Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:h,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:CW.Dv}),(0,L.jsx)(vt,{label:(0,z.__)("Inner Gap","ablocks"),min:0,max:NW(V),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em", | |
| 3010 | -label:"em"}],isInline:!1,isResponsive:!0,attributeName:"innerGap",attributeValue:g,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:CW.WS}),(0,L.jsxs)("button",{className:"ablocks-advance-list-add-button",onClick:()=>{const t=(0,r.select)("core/block-editor").getBlocks(a),i=(0,o.createBlock)("ablocks/advance-list-item");(0,r.dispatch)("core/block-editor").insertBlock(i,t.length,n),(()=>{const t=(0,r.select)("core/block-editor").getBlocks(a);t.length>0&&t.forEach(t=>{let i={markerType:p,allowDivider:S,alignment:f,listsDirection:s,innerGap:g,advanceListItemTextSize:y,textColor:x,advanceListItemTextTag:k,dropCaps:_,dropCapsTextColor:R,dividerType:W};i=((t,i)=>(["iconAlignment","emoji","shapeType","shapeColor","shapeSize"].forEach(o=>{!1===t.includes(o)&&(i[o]=e[o])}),i))(t.attributes.changedAttributes,i);const o=t.clientId;N(o,i)})})()},children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,z.__)("Create new item","ablocks")]})]}),(()=>{ | |
| 3011 | -if("Emoji"===p)return(0,L.jsx)(D,{title:(0,z.__)("Emoji","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:["Emoji"===p&&(0,L.jsx)(ql,{label:(0,z.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:b,setAttributes:i,isInline:!1}),"none"!==p&&(0,L.jsx)(Kt,{label:(0,z.sprintf)( | |
| 2995 | +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},jW=({label:t,value:e,children:i,showLabel:o})=>(0,I.jsxs)("div",{ | |
| 2996 | +className:s()("ablocks-countdown__item",`ablocks-countdown__item--${t}`),children:[(0,I.jsxs)("div",{className:"ablocks-countdown-value",children:[" ",e," "]}),o&&(0,I.jsxs)("div",{className:"ablocks-countdown-label",children:[" ",i," "]})]}),wW=({children:t})=>(0,I.jsxs)("div",{className:"ablocks-countdown__separator",children:[" ",t," "]});function zW(t){const{attributes:e,setAttributes:i}=t,{alignment:o,targetTime:n,dayLabel:s,hourLabel:r,minuteLabel:b,secondLabel:c,block_id:d,action:u,actionMessage:p,actionRedirectURL:m,showSeparator:h,separator:g,showDay:f,showHour:y,showMinute:T,showSecond:H,showLabels:x,evergreen:k,evergreenDays:v,evergreenHours:_,evergreenMinutes:R,evergreenRestart:S}=e,{isDynamicEnabled:W,data:P}=id({attributeValue:s}),{isDynamicEnabled:U,data:j}=id({attributeValue:r}),{isDynamicEnabled:w,data:z}=id({attributeValue:b}),{isDynamicEnabled:C,data:A}=id({attributeValue:c});let L;(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${d} `);PW(t) | |
| 2997 | +},[d,n,u,f,y,T,H,k,v,_,R,S]),L=k?1e3*(24*(v||0)*60*60+60*(_||0)*60+60*(R||0)):new Date(n).getTime()-Date.now();const N=Math.max(Math.floor(L/1e3%60),0),V=Math.max(Math.floor(L/6e4%60),0),O=Math.max(Math.floor(L/36e5%24),0),Y=Math.max(Math.floor(L/864e5),0),X=t=>{switch(t){case"day":return y||T||H;case"hour":return T||H;case"minute":return H;default:return!1}};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsxs)(Yb.A,{blockId:d,name:UW.UU,attributes:e,blockProps:{"data-target-time":n,"data-action":u,"data-action-message":p,"data-action-redirect-url":m,"data-evergreen":k?"true":"false","data-evergreen-days":v||0,"data-evergreen-hours":_||0,"data-evergreen-minutes":R||0,"data-evergreen-restart":S?"true":"false","data-block-id":d,"data-evergreen-version":`${v}-${_}-${R}`},children:[f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"day",value:Y,showLabel:x,children:W?P:s}),h&&X("day")&&(0, | |
| 2998 | +I.jsx)(wW,{children:g})]}),y&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"hour",value:O,showLabel:x,children:U?j:r}),h&&X("hour")&&(0,I.jsx)(wW,{children:g})]}),T&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"minute",value:V,showLabel:x,children:w?z:b}),h&&X("minute")&&(0,I.jsx)(wW,{children:g})]}),H&&(0,I.jsx)(jW,{label:"second",value:N,showLabel:x,children:C?A:c})]})]})}zW.propTypes={};const CW=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),AW=(t,e="")=>{const{boxSize:i,boxRowGap:o,boxColumnGap:a}=t,l=(0,M.Zy)(t.mapHeight,{value:130,valueUnit:"px"}),n={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"min-height",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px",property:"row-gap",device:e}),...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:0,unitDefaultValue:"px", | |
| 2999 | +property:"column-gap",device:e})};return t?.orient?.["value"+e]&&(n["flex-direction"]=t.orient["value"+e]),t?.justificationAlign?.["value"+e]&&(n["justify-content"]=t.justificationAlign["value"+e]),t?.alignment?.["value"+e]&&(n["align-items"]=t.alignment["value"+e]),t?.wrapping?.["value"+e]&&(n["flex-wrap"]=t?.wrapping?.["value"+e]),n},LW=(t,e="")=>{const{orient:i,boxSize:o,numberAndLabelGap:a,boxBackgroundColor:l,labelPosition:n}=t,s=(0,Hs.qD)(l),r=n||"",b=(0,M.Zy)(t?.boxBorder,{unitWidth:"px",unitRadius:"px"}),d=(0,M.Zy)(t?.padding,{unit:"px"}),u="value"+e,p=i?.[u]??i?.value;let m={};m="column"===p||"column-reverse"===p?(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:130,unitDefaultValue:"px",property:"width",device:e}):{width:"130px"};const h={...m,...(0,Eb.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:5,unitDefaultValue:"px",property:"gap",device:e}),...(0,H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(b,e),...(0, | |
| 3000 | +c.qD)(d,"padding",e)};return s&&(h.background=s),r&&(h["flex-direction"]=r),h},DW=(t,e="")=>{const i=(0,M.Zy)(t?.boxBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},NW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 30%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.labelTypography,{weight:"400"}),a=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),background:(0,Hs.qD)(t?.labelBgColor),...(0,U.qD)(o,e,a),...i}},IW=(t,e="")=>{const i={};"column"!==t?.labelPosition&&"column-reverse"!==t?.labelPosition||(i.width="100%",i.flex="1 1 70%",i.display="flex",i["justify-content"]="center",i["align-items"]="center");const o=(0,M.Zy)(t.numberTypography,{weight:"400"}),a=t.numberTypographyGlobal?t.numberTypographyGlobal:"";return{color:(0,Hs.qD)(t?.numberColor),background:(0,Hs.qD)(t?.numberBgColor), | |
| 3001 | +...(0,U.qD)(o,e,a),...i}},VW=(t,e)=>{const{separatorColor:i,separatorTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.separatorTypographyGlobal?t.separatorTypographyGlobal:"",n={...(0,U.qD)(a,e,l)};return i&&(n.color=(0,Hs.qD)(i)),n};function OW(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y,evergreen:T,evergreenDays:H,evergreenHours:M,evergreenMinutes:x,evergreenRestart:k}=e,v=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default:return!1}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:r,name:UW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d,"data-evergreen":T?"true":"false","data-evergreen-days":H||0,"data-evergreen-hours":M||0,"data-evergreen-minutes":x||0, | |
| 3002 | +"data-evergreen-restart":k?"true":"false","data-block-id":r,"data-evergreen-version":`${H}-${M}-${x}`},children:[m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"day",value:"00",showLabel:y,children:o}),u&&v("day")&&(0,I.jsx)(wW,{children:p})]}),h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"hour",value:"00",showLabel:y,children:a}),u&&v("hour")&&(0,I.jsx)(wW,{children:p})]}),g&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"minute",value:"00",showLabel:y,children:n}),u&&v("minute")&&(0,I.jsx)(wW,{children:p})]}),f&&(0,I.jsx)(jW,{label:"second",value:"00",showLabel:y,children:s})]})})}OW.propTypes={};const YW={UU:"ablocks/countdown",uK:{alignment:{type:"object",default:{value:"stretch",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"", | |
| 3003 | +transitionDuration:"0"}},boxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0, | |
| 3004 | +commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},actionMessageTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"", | |
| 3005 | +letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"", | |
| 3006 | +wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},numberTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},separatorTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"", | |
| 3007 | +fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},separator:{type:"string",default:":"},orient:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},justifyDep:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},wrapping:{type:"object",default:{value:"wrap",valueTablet:"",valueMobile:""}},boxSize:{type:"object",default:{value:130,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},boxRowGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},boxColumnGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 3008 | +numberAndLabelGap:{type:"object",default:{value:5,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},targetTime:{type:"string",default:""},direction:{type:"string",default:"row"},directionTablet:{type:"string",default:"row"},directionMobile:{type:"string",default:"row"},justify:{type:"string",default:"center"},justifyTablet:{type:"string",default:"center"},justifyMobile:{type:"string",default:"center"},align:{type:"string",default:"stretch"},alignTablet:{type:"string",default:"stretch"},alignMobile:{type:"string",default:"stretch"},wrap:{type:"string",default:"wrap"},wrapTablet:{type:"string",default:"wrap"},wrapMobile:{type:"string",default:"wrap"},showDay:{type:"boolean",default:!0},showHour:{type:"boolean",default:!0},showMinute:{type:"boolean",default:!0},showSecond:{type:"boolean",default:!0},dayLabel:{type:"string",default:"Days"},hourLabel:{type:"string",default:"Hours"},minuteLabel:{type:"string", | |
| 3009 | +default:"Minute"},secondLabel:{type:"string",default:"Second"},isAction:{type:"boolean",default:!0},action:{type:"string",default:"none"},actionMessage:{type:"string",default:"Time Expire"},actionMessageColor:{type:"string",default:"black"},actionRedirectURL:{type:"string",default:""},labelPosition:{type:"string",default:"column"},showLabels:{type:"boolean",default:!0},boxBackgroundType:{type:"string",default:"transparent"},boxBackgroundColor:{type:"string",default:""},labelColor:{type:"string",default:""},labelBgColor:{type:"string",default:""},numberColor:{type:"string",default:""},numberBgColor:{type:"string",default:""},showSeparator:{type:"boolean",default:!0},separatorColor:{type:"string",default:"black"},_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:"", | |
| 3010 | +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:"", | |
| 3011 | +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:"", | |
| 3012 | +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:"", | |
| 3013 | +imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"", | |
| 3014 | +imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"", | |
| 3015 | +offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px", | |
| 3016 | +offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px", | |
| 3017 | +yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function XW(t){const{attributes:e}=t,{targetTime:i,dayLabel:o,hourLabel:a,minuteLabel:n,secondLabel:s,block_id:r,action:b,actionMessage:c,actionRedirectURL:d,showSeparator:u,separator:p,showDay:m,showHour:h,showMinute:g,showSecond:f,showLabels:y}=e,T=t=>{switch(t){case"day":return h||g||f;case"hour":return g||f;case"minute":return f;default:return!1}};return(0, | |
| 3018 | +I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:r,name:YW.UU,attributes:e,blockProps:{"data-target-time":i,"data-action":b,"data-action-message":c,"data-action-redirect-url":d},children:[m&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"day",value:"00",showLabel:y,children:o}),u&&T("day")&&(0,I.jsx)(wW,{children:p})]}),h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"hour",value:"00",showLabel:y,children:a}),u&&T("hour")&&(0,I.jsx)(wW,{children:p})]}),g&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(jW,{label:"minute",value:"00",showLabel:y,children:n}),u&&T("minute")&&(0,I.jsx)(wW,{children:p})]}),f&&(0,I.jsx)(jW,{label:"second",value:"00",showLabel:y,children:s})]})})}XW.propTypes={},(0,M.xV)(UW.UU)&&(0,o.registerBlockType)(UW.UU,{title:(0,L.__)("Countdown","ablocks"),attributes:UW.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-countdown"}),edit:function(t){ | |
| 3019 | +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{targetTime:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",CW(i),CW(i,"Tablet"),CW(i,"Mobile"),e(t=>CW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",AW(i),AW(i,"Tablet"),AW(i,"Mobile"),e(t=>AW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item",LW(i),LW(i,"Tablet"),LW(i,"Mobile"),e(t=>LW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item:hover",DW(i),DW(i,"Tablet"),DW(i,"Mobile"),e(t=>DW(i,t))), | |
| 3020 | +t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-label",NW(i),NW(i,"Tablet"),NW(i,"Mobile"),e(t=>NW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__item .ablocks-countdown-value",IW(i),IW(i,"Tablet"),IW(i,"Mobile"),e(t=>IW(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-countdown__separator",VW(i),VW(i,"Tablet"),VW(i,"Mobile"),e(t=>VW(i,t))),(0,b.applyFilters)("ablocks.countdown.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,a.useEffect)(()=>{const t=new Date;t.setDate(t.getDate()+2),n||o({targetTime:t.toISOString()})},[l,n]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(SW,{...t}),(0,I.jsx)(zW,{...t})]})},save:OW,deprecated:[{attributes:YW.uK,save:XW}]});var BW=i(81905);const EW=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style", | |
| 3021 | +optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}],FW=((0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0, | |
| 3022 | +L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Icon","ablocks"),value:"Icon"},{label:(0,L.__)("Shapes","ablocks"),value:"Shapes"},{label:(0,L.__)("Emoji","ablocks"),value:"Emoji"}]),qW=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Square","ablocks"),value:"solid"},{label:(0,L.__)("Circle","ablocks"),value:"dotted"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Ridge","ablocks"),value:"ridge"},{label:(0,L.__)("Inset","ablocks"),value:"inset"},{label:(0,L.__)("Outset","ablocks"),value:"outset"}],$W=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}};function GW(t){ | |
| 3023 | +const{attributes:e,setAttributes:i,clientId:a}=t,{block_id:n,listsDirection:s,emoji:b,shapeType:c,shapeColor:d,shapeSize:u,markerType:p,iconAlignment:m,columnGap:h,innerGap:g,alignment:f,advanceListItemTextSize:y,listTextShadow:T,listTypography:H,textColor:x,advanceListItemTextTag:k,listTextStroke:v,dropCaps:_,dropCapsTextColor:R,allowDivider:S,dividerType:W,dividerPatternUrl:P,color:U,weight:j,width:w,size:z}=e,{updateBlockAttributes:C}=(0,r.useDispatch)("core/block-editor"),A=lt(),N=(0,M.Ic)(g,"valueUnit",A),O=EW?.find(t=>t.value===P),Y=O?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:z,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:BW.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:j,isInline:!1, | |
| 3024 | +min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:BW.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advance-lists-block/",children:[(0,I.jsxs)(V,{title:(0,L.__)("Advance lists","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Hd,{label:(0,L.__)("Layout","ablocks"),options:[{label:(0,L.__)("Vertical","ablocks"),value:"row"},{label:(0,L.__)("Horizontal","ablocks"),value:"column"}],isResponsive:!0,attributeName:"listsDirection",attributeValue:s,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:[{label:"flex-start",value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"end",icon:"right"}],attributeName:"alignment",attributeValue:f,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Marker type","ablocks"),options:FW,attributeName:"markerType", | |
| 3025 | +attributeValue:p,setAttributes:i}),"column"===s["value"+A]&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow divider","ablocks"),attributeValue:S,setAttributes:i,attributeName:"allowDivider"}),(0,I.jsx)(_t,{label:"row"===s["value"+A]?(0,L.__)("Column gap","ablocks"):(0,L.__)("Row Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:h,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:BW.Dv}),(0,I.jsx)(_t,{label:(0,L.__)("Inner Gap","ablocks"),min:0,max:$W(N),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"innerGap",attributeValue:g,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:BW.WS}),(0,I.jsxs)("button",{className:"ablocks-advance-list-add-button",onClick:()=>{const t=(0, | |
| 3026 | +r.select)("core/block-editor").getBlocks(a),i=(0,o.createBlock)("ablocks/advance-list-item");(0,r.dispatch)("core/block-editor").insertBlock(i,t.length,n),(()=>{const t=(0,r.select)("core/block-editor").getBlocks(a);t.length>0&&t.forEach(t=>{let i={markerType:p,allowDivider:S,alignment:f,listsDirection:s,innerGap:g,advanceListItemTextSize:y,textColor:x,advanceListItemTextTag:k,dropCaps:_,dropCapsTextColor:R,dividerType:W};i=((t,i)=>(["iconAlignment","emoji","shapeType","shapeColor","shapeSize"].forEach(o=>{!1===t.includes(o)&&(i[o]=e[o])}),i))(t.attributes.changedAttributes,i);const o=t.clientId;C(o,i)})})()},children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,L.__)("Create new item","ablocks")]})]}),(()=>{if("Emoji"===p)return(0,I.jsx)(V,{title:(0,L.__)("Emoji","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["Emoji"===p&&(0,I.jsx)(Kl,{label:(0,L.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:b, | |
| 3027 | +setAttributes:i,isInline:!1}),"none"!==p&&(0,I.jsx)(Jt,{label:(0,L.sprintf)( | |
| 3012 | 3028 | // translators: %s marker type |
| 3013 | 3029 | // translators: %s marker type |
| 3014 | -(0,z.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:"left",value:"row",icon:"left"},{label:"right",value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:CW.LO})})})});if("none"===p);else if("Shapes"===p)return(0,L.jsx)(D,{title:p,initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Select Shape","ablocks"),options:DW,attributeName:"shapeType",attributeValue:c,setAttributes:i}),"none"!==p&&(0,L.jsx)(Kt,{label:(0,z.sprintf)( | |
| 3030 | +(0,L.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:BW.LO})})})});if("none"===p);else if("Shapes"===p)return(0,I.jsx)(V,{title:p,initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Shape","ablocks"),options:qW,attributeName:"shapeType",attributeValue:c,setAttributes:i}),"none"!==p&&(0,I.jsx)(Jt,{label:(0,L.sprintf)( | |
| 3015 | 3031 | // translators: %s marker type |
| 3016 | 3032 | // translators: %s marker type |
| 3017 | -(0,z.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:"left",value:"row",icon:"left"},{label:"right",value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:CW.LO})]})})})})(),(0,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"advanceListItemTextTag",attributeValue:k,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),isResponsive:!1,options:[{label:(0, | |
| 3018 | -z.__)("Small","ablocks"),value:"sm"},{label:(0,z.__)("Medium","ablocks"),value:"md"},{label:(0,z.__)("Large","ablocks"),value:"lg"},{label:(0,z.__)("Extra Large","ablocks"),value:"xl"}],attributeValue:y||"md",attributeName:"advanceListItemTextSize",setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:"Drop caps",attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),_&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:R,setAttributes:i})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"listTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0, | |
| 3019 | -L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:v,setAttributes:i,isResponsive:!0})]})})}),S&&"column"===s["value"+I]?(0,L.jsx)(D,{title:(0,z.__)("Divider","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),options:AW,attributeName:"dividerPatternUrl",attributeValue:U,onChangeHandler:t=>{const e=AW?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:w,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:CW.VL})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"color",attributeValue:P,setAttributes:i}),(0,L.jsx)(Nt,{}),Y]})})}):null]})})})}IW.propTypes={};var VW=i(80777);const OW={name:I().string,blockId:I().string,typography:I().array, | |
| 3020 | -blockProps:I().object},YW={},XW=t=>{const e=t?.fontFamily,i=t?.weight||"400",o=YW[e];e&&!o?.includes(i)&&(o?i&&o.push(i):YW[e]=i?[i]:[])};function BW({name:t,blockId:e,children:i,attributes:o={},typography:l,className:n="",blockProps:r={},context:c={}}){const d=(0,a.useRef)(null),u=d?.current,{_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h,_animation:g,overflow:f}=o;let y=(0,b.applyFilters)("ablocks.global.render_container_classes",{},o),T=(0,b.applyFilters)("ablocks.global.render_container_attributes",{},o),H=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:c,attributeValue:o?.className});const x=g?.animationType&&"none"!==g?.animationType||g?.animationTypeTablet&&"none"!==g?.animationTypeTablet||g?.animationTypeMobile&&"none"!==g?.animationTypeMobile,k={className:(0,Qb.Z)({name:t,blockId:e,className:s()(n,H,{"ablocks-invisible":x,...y}),_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h}),...r},v={...x?g:{},...T} | |
| 3021 | -;Lt().isEmpty(v)||(k["data-settings"]=JSON.stringify(v));const _=(0,C.useBlockProps)(k);if(Array.isArray(l))for(const t of l)XW(t);else for(const t in o)/typography/i.test(t)&&XW(o[t]);(0,a.useEffect)(()=>{Object.keys(YW).length>0&&(0,P.Kx)(YW,u)},Object.keys(YW).concat(Object.values(YW).reduce((t,e)=>t.concat(e),[])).concat(u)),(0,a.useEffect)(()=>{new VW.A((0,M.bu)(`.ablocks-block-${e}`))},[g?.animationType,g?.animationTypeTablet,g?.animationTypeMobile]);const{videoSource:R,vimeoURL:S,youtubeURL:W,introPortrait:U,introTitle:j,introByline:w,videoPlayOnce:z=!1,fallbackImageUrl:A="",preload:D="",videoUrl:N="",videoStartTime:I="",videoEndTime:V="",externalLink:O=!1,selfHostedURL:Y="",videoPrivacyMode:X}=o?._background||{};let B;const E=(0,Qb.U)(I,V),F="color"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundColorH||"image"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundImageH;if("none"!==R)switch(R){case"selfHosted":B=(0,L.jsx)("video",{src:(O?Y:N)+E, | |
| 3022 | -autoPlay:!0,muted:!0,loop:!z,preload:D,controls:!1,controlsList:"",className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;case"youtube":B=(0,L.jsx)(tc.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,youtubeURL:W,videoStartTime:I,videoEndTime:V,externalLink:O,selfHostedURL:Y,playerControl:!1,privacyMode:X,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F}),isBackground:!0});break;case"vimeo":B=(0,L.jsx)(ec.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,vimeoURL:S,privacyMode:X,videoStartTime:I,introPortrait:U,introTitle:j,introByline:w,isBackground:!0,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;default:B=void 0}return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(G_.A,{}),(0,L.jsxs)("div",{..._,children:[(0,L.jsx)($_.A,{blockId:e,name:t,overflow:f}),"video"===o?._background?.backgroundType&&B,(0,L.jsx)("div",{className:"ablocks-block-container",ref:d,children:i})]})]})}BW.propTypes=OW;const EW={ | |
| 3033 | +(0,L.__)("%s Position","ablocks"),p),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:m,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:BW.LO})]})})})})(),(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"advanceListItemTextTag",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1, | |
| 3034 | +options:[{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra Large","ablocks"),value:"xl"}],attributeValue:y||"md",attributeName:"advanceListItemTextSize",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:"Drop caps",attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),_&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:R,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"listTextShadow",attributeValue:T,setAttributes:i, | |
| 3035 | +isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:v,setAttributes:i,isResponsive:!0})]})})}),S&&"column"===s["value"+A]?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:EW,attributeName:"dividerPatternUrl",attributeValue:P,onChangeHandler:t=>{const e=EW?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:w,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:BW.VL})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:U,setAttributes:i}),(0,I.jsx)(It,{}),Y]})})}):null]})})})}GW.propTypes={};var ZW=i(80777);const KW={name:Y().string,blockId:Y().string, | |
| 3036 | +typography:Y().array,blockProps:Y().object},JW={},QW=t=>{const e=t?.fontFamily,i=t?.weight||"400",o=JW[e];e&&!o?.includes(i)&&(o?i&&o.push(i):JW[e]=i?[i]:[])};function tP({name:t,blockId:e,children:i,attributes:o={},typography:l,className:n="",blockProps:r={},context:c={}}){const d=(0,a.useRef)(null),u=d?.current,{_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h,_animation:g,overflow:f}=o;let y=(0,b.applyFilters)("ablocks.global.render_container_classes",{},o),T=(0,b.applyFilters)("ablocks.global.render_container_attributes",{},o),H=(0,b.applyFilters)("ablocks.dynamic_content.get_dynamic_value",{context:c,attributeValue:o?.className});const x=g?.animationType&&"none"!==g?.animationType||g?.animationTypeTablet&&"none"!==g?.animationTypeTablet||g?.animationTypeMobile&&"none"!==g?.animationTypeMobile,k={className:(0,oc.Z)({name:t,blockId:e,className:s()(n,H,{"ablocks-invisible":x,...y}),_hide_on_desktop:p,_hide_on_tablet:m,_hide_on_mobile:h}),...r},v={...x?g:{},...T} | |
| 3037 | +;Dt().isEmpty(v)||(k["data-settings"]=JSON.stringify(v));const _=(0,D.useBlockProps)(k);if(Array.isArray(l))for(const t of l)QW(t);else for(const t in o)/typography/i.test(t)&&QW(o[t]);(0,a.useEffect)(()=>{Object.keys(JW).length>0&&(0,U.Kx)(JW,u)},Object.keys(JW).concat(Object.values(JW).reduce((t,e)=>t.concat(e),[])).concat(u)),(0,a.useEffect)(()=>{new ZW.A((0,M.bu)(`.ablocks-block-${e}`))},[g?.animationType,g?.animationTypeTablet,g?.animationTypeMobile]);const{videoSource:R,vimeoURL:S,youtubeURL:W,introPortrait:P,introTitle:j,introByline:w,videoPlayOnce:z=!1,fallbackImageUrl:C="",preload:A="",videoUrl:L="",videoStartTime:N="",videoEndTime:V="",externalLink:O=!1,selfHostedURL:Y="",videoPrivacyMode:X}=o?._background||{};let B;const E=(0,oc.U)(N,V),F="color"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundColorH||"image"===o?._background?.backgroundTypeH&&""!==o?._background?.backgroundImageH;if("none"!==R)switch(R){case"selfHosted":B=(0,I.jsx)("video",{src:(O?Y:L)+E, | |
| 3038 | +autoPlay:!0,muted:!0,loop:!z,preload:A,controls:!1,controlsList:"",className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;case"youtube":B=(0,I.jsx)(ac.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,youtubeURL:W,videoStartTime:N,videoEndTime:V,externalLink:O,selfHostedURL:Y,playerControl:!1,privacyMode:X,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F}),isBackground:!0});break;case"vimeo":B=(0,I.jsx)(lc.A,{block_id:e,autoplay:!0,mute:!0,loop:!z,vimeoURL:S,privacyMode:X,videoStartTime:N,introPortrait:P,introTitle:j,introByline:w,isBackground:!0,className:s()("ablocks-background--video",{"ablocks-bg-video--hover":F})});break;default:B=void 0}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(lR.A,{}),(0,I.jsxs)("div",{..._,children:[(0,I.jsx)(aR.A,{blockId:e,name:t,overflow:f}),"video"===o?._background?.backgroundType&&B,(0,I.jsx)("div",{className:"ablocks-block-container",ref:d,children:i})]})]})}tP.propTypes=KW;const eP={ | |
| 3023 | 3039 | UU:"ablocks/advance-lists",uK:{block_id:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},emoji:{type:"string",default:"👍"},allowDivider:{type:"boolean",default:!1},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:"#000000"},dividerPatternUrl:{type:"string",default:"solid"},dividerType:{type:"string",default:"css-style"},color:{type:"string",default:"black"},alignment:{type:"object",default:{value:"start",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string", |
| 3024 | 3040 | default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"", |
| 3025 | 3041 | unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{ |
| 3026 | 3042 | type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", |
| @@ -3032,12 +3048,12 @@ | ||
| 3032 | 3048 | 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:{ |
| 3033 | 3049 | 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, |
| 3034 | 3050 | 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:"", |
| 3035 | 3051 | 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, |
| 3036 | -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},FW=({handleNewMenuItem:t})=>(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.ToolbarButton,{icon:"plus",label:(0,z.__)("Add item","ablocks"),onClick:t})});function qW(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s,iconAlignment:b,emoji:c,shapeType:d,shapeColor:u,shapeSize:p,alignment:m,markerType:h,allowDivider:g,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v}=e,{updateBlockAttributes:_}=(0,r.useDispatch)("core/block-editor"),R=()=>{const t=(0,r.select)("core/block-editor").getBlocks(i) | |
| 3037 | -;t.length>0&&t.forEach(t=>{let i={markerType:h,allowDivider:g,alignment:m,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v};i=((t,i)=>(["iconAlignment","emoji","shapeType","shapeColor","shapeSize"].forEach(o=>{!1===t.includes(o)&&(i[o]=e[o])}),i))(t.attributes.changedAttributes,i);const o=t.clientId;_(o,i)})};return(0,a.useEffect)(()=>{n&&R()},[b,c,d,u,p,h,g,m,f,y,T,H,M,x,k,v]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(FW,{handleNewMenuItem:()=>{const t=(0,r.select)("core/block-editor").getBlocks(i),e=(0,o.createBlock)("ablocks/advance-list-item");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,s),R()}}),(0,L.jsx)(BW,{blockId:s,name:EW.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}]], | |
| 3038 | -allowedBlocks:["ablocks/advance-list-item"]})})]})}qW.propTypes={};const $W=(t,e="")=>{const i=[];return t.listsDirection["value"+e]&&(i["flex-direction"]=t.listsDirection["value"+e]),{...i,...(0,Gt.qD)(t?.alignment,"text-align",e),...(0,Gt.qD)(t?.alignment,"row"===t.listsDirection["value"+e]?"justify-content":"align-items",e),...(0,Ob.qD)({attributeValue:t?.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}},GW=(t,e="")=>{const i=(0,M.Zy)(t.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,gs.qD)(t?.textColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.listTextStroke,e),...(0,pc.qD)(t?.listTextShadow)}},ZW=t=>({color:(0,gs.qD)(t?.dropCapsTextColor)}),KW=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,gs.qD)(t?.color)), | |
| 3039 | -t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Ob.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:100,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Ob.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Ob.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}};function JW(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:EW.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}JW.propTypes={};const QW={UU:"ablocks/advance-lists",uK:{block_id:{ | |
| 3052 | +easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},iP=({handleNewMenuItem:t})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"plus",label:(0,L.__)("Add item","ablocks"),onClick:t})});function oP(t){const{attributes:e,clientId:i,isSelected:n}=t,{block_id:s,iconAlignment:b,emoji:c,shapeType:d,shapeColor:u,shapeSize:p,alignment:m,markerType:h,allowDivider:g,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v}=e,{updateBlockAttributes:_}=(0,r.useDispatch)("core/block-editor"),R=()=>{const t=(0,r.select)("core/block-editor").getBlocks(i) | |
| 3053 | +;t.length>0&&t.forEach(t=>{let i={markerType:h,allowDivider:g,alignment:m,listsDirection:f,innerGap:y,advanceListItemTextSize:T,textColor:H,advanceListItemTextTag:M,dropCaps:x,dropCapsTextColor:k,dividerType:v};i=((t,i)=>(["iconAlignment","emoji","shapeType","shapeColor","shapeSize"].forEach(o=>{!1===t.includes(o)&&(i[o]=e[o])}),i))(t.attributes.changedAttributes,i);const o=t.clientId;_(o,i)})};return(0,a.useEffect)(()=>{n&&R()},[b,c,d,u,p,h,g,m,f,y,T,H,M,x,k,v]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(iP,{handleNewMenuItem:()=>{const t=(0,r.select)("core/block-editor").getBlocks(i),e=(0,o.createBlock)("ablocks/advance-list-item");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,s),R()}}),(0,I.jsx)(tP,{blockId:s,name:eP.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}],["ablocks/advance-list-item",{}]], | |
| 3054 | +allowedBlocks:["ablocks/advance-list-item"]})})]})}oP.propTypes={};const aP=(t,e="")=>{const i=[];return t.listsDirection["value"+e]&&(i["flex-direction"]=t.listsDirection["value"+e]),{...i,...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,Zt.qD)(t?.alignment,"row"===t.listsDirection["value"+e]?"justify-content":"align-items",e),...(0,Eb.qD)({attributeValue:t?.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}},lP=(t,e="")=>{const i=(0,M.Zy)(t.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.listTextStroke,e),...(0,fc.qD)(t?.listTextShadow)}},nP=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),sP=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)), | |
| 3055 | +t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Eb.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:100,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}};function rP(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:eP.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}rP.propTypes={};const bP={UU:"ablocks/advance-lists",uK:{block_id:{ | |
| 3040 | 3056 | type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},emoji:{type:"string",default:"👍"},allowDivider:{type:"boolean",default:!1},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:"#0f2aff"},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:"#000000"},dividerPatternUrl:{type:"string",default:"solid"},dividerType:{type:"string",default:"css-style"},color:{type:"string",default:"black"},alignment:{type:"object",default:{value:"start",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z", |
| 3041 | 3057 | source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0, |
| 3042 | 3058 | isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, |
| 3043 | 3059 | iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"", |
| @@ -3049,30 +3065,30 @@ | ||
| 3049 | 3065 | 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:"", |
| 3050 | 3066 | 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", |
| 3051 | 3067 | 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", |
| 3052 | 3068 | xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}, |
| 3053 | -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function tU(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:QW.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}tU.propTypes={},(0,M.xV)(EW.UU)&&(0,o.registerBlockType)(EW.UU,{title:"Advance lists",attributes:EW.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-lists .ablocks-block-container .block-editor-inner-blocks .block-editor-block-list__layout",$W(i),$W(i,"Tablet"),$W(i,"Mobile")), | |
| 3054 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text",GW(i),GW(i,"Tablet"),GW(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",ZW(i),ZW(i),ZW(i)),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),KW(i),KW(i,"Tablet"),KW(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(IW,{...t}),(0,L.jsx)(qW,{...t})]})},save:JW,deprecated:[{attributes:QW.uK,save:tU}]});const eU=[{label:(0,z.__)("dashed","ablocks"),type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:(0,z.__)("square","ablocks"),value:tT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("slashes","ablocks"),value:eT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("arrows","ablocks"),value:iT,type:"mask-style", | |
| 3055 | -optionalStyleControls:["size","gap"]},{label:(0,z.__)("pluses","ablocks"),value:oT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("dots","ablocks"),value:aT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("solid","ablocks"),type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:(0,z.__)("firTree","ablocks"),value:lT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("halfRound","ablocks"),value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("leaves","ablocks"),value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("stripes","ablocks"),value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("tress","ablocks"),value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("tribal","ablocks"),value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,z.__)("x","ablocks"),value:dT, | |
| 3056 | -type:"mask-style",optionalStyleControls:["size","gap"]}];(0,z.__)("None","ablocks"),(0,z.__)("Text","ablocks"),(0,z.__)("Icon","ablocks"),(0,z.__)("Default","ablocks"),(0,z.__)("Stacked","ablocks"),(0,z.__)("Framed","ablocks");var iU=i(22478);(0,z.__)("None","ablocks"),(0,z.__)("Icon","ablocks"),(0,z.__)("Shapes","ablocks"),(0,z.__)("Emoji","ablocks");const oU=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Square","ablocks"),value:"solid"},{label:(0,z.__)("Circle","ablocks"),value:"dotted"},{label:(0,z.__)("Double","ablocks"),value:"double"},{label:(0,z.__)("Ridge","ablocks"),value:"ridge"},{label:(0,z.__)("Inset","ablocks"),value:"inset"},{label:(0,z.__)("Outset","ablocks"),value:"outset"}];function aU(t){ | |
| 3057 | -const{attributes:e,setAttributes:i}=t,{markerType:o,shapeType:a,shapeColor:n,shapeSize:s,listsDirection:r,allowDivider:b,isLastChild:c,emoji:d,iconAlignment:u,advanceListItemTextSize:p,listTextShadow:m,listTypography:h,textColor:g,advanceListItemText:f,advanceListItemTextTag:y,listTextStroke:T,dropCaps:H,dropCapsTextColor:M,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,link:S}=e,W=at(),U=eU?.find(t=>t.value===x),P=U?.optionalStyleControls?.map((t,e)=>"size"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:iU.Ej})},e):"weight"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{setAttributes:i,label:(0,z.__)("Weight","ablocks"),attributeName:"weight",attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:iU.VA})},e):null);return(0,L.jsx)(l().Fragment,{children:(0, | |
| 3058 | -L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Advance list Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the advance list settings to customize its styles effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advance-lists-block/",children:["Icon"===o?(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i}),"none"!==o&&(0,L.jsx)(Kt,{label:(0,z.sprintf)( | |
| 3069 | +_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function cP(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:bP.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}cP.propTypes={},(0,M.xV)(eP.UU)&&(0,o.registerBlockType)(eP.UU,{title:(0,L.__)("Advance lists","ablocks"),attributes:eP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-lists .ablocks-block-container .block-editor-inner-blocks .block-editor-block-list__layout",aP(i),aP(i,"Tablet"),aP(i,"Mobile"),t.customDeviceMap(t=>aP(i,t))), | |
| 3070 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text",lP(i),lP(i,"Tablet"),lP(i,"Mobile"),t.customDeviceMap(t=>lP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",nP(i),nP(i),nP(i),t.customDeviceMap(t=>nP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),sP(i),sP(i,"Tablet"),sP(i,"Mobile"),t.customDeviceMap(t=>sP(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(GW,{...t}),(0,I.jsx)(oP,{...t})]})},save:rP,deprecated:[{attributes:bP.uK,save:cP}]});const dP=[{label:(0,L.__)("dashed","ablocks"),type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("square","ablocks"),value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("slashes","ablocks"),value:sT,type:"mask-style", | |
| 3071 | +optionalStyleControls:["size","gap"]},{label:(0,L.__)("arrows","ablocks"),value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("pluses","ablocks"),value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("dots","ablocks"),value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("solid","ablocks"),type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:(0,L.__)("firTree","ablocks"),value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("halfRound","ablocks"),value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("leaves","ablocks"),value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("stripes","ablocks"),value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("tress","ablocks"),value:hT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("tribal","ablocks"),value:gT, | |
| 3072 | +type:"mask-style",optionalStyleControls:["size","gap"]},{label:(0,L.__)("x","ablocks"),value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}];(0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");var uP=i(22478);(0,L.__)("None","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Shapes","ablocks"),(0,L.__)("Emoji","ablocks");const pP=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Square","ablocks"),value:"solid"},{label:(0,L.__)("Circle","ablocks"),value:"dotted"},{label:(0,L.__)("Double","ablocks"),value:"double"},{label:(0,L.__)("Ridge","ablocks"),value:"ridge"},{label:(0,L.__)("Inset","ablocks"),value:"inset"},{label:(0,L.__)("Outset","ablocks"),value:"outset"}];function mP(t){ | |
| 3073 | +const{attributes:e,setAttributes:i}=t,{markerType:o,shapeType:a,shapeColor:n,shapeSize:s,listsDirection:r,allowDivider:b,isLastChild:c,emoji:d,iconAlignment:u,advanceListItemTextSize:p,listTextShadow:m,listTypography:h,textColor:g,advanceListItemText:f,advanceListItemTextTag:y,listTextStroke:T,dropCaps:H,dropCapsTextColor:M,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,link:S}=e,W=lt(),P=dP?.find(t=>t.value===x),U=P?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:uP.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:uP.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0, | |
| 3074 | +I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Advance list Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the advance list settings to customize its styles effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-advance-lists-block/",children:["Icon"===o?(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)( | |
| 3059 | 3075 | // translators: %s marker type |
| 3060 | 3076 | // translators: %s marker type |
| 3061 | -(0,z.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:"left",value:"row",icon:"left"},{label:"right",value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,L.jsx)(Nd,{attributes:e,setAttributes:i})})}):"Emoji"===o?(0,L.jsx)(D,{title:(0,z.__)("Emoji","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:["Emoji"===o&&(0,L.jsx)(ql,{label:(0,z.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:d,setAttributes:i,isInline:!1}),"none"!==o&&(0,L.jsx)(Kt,{label:(0,z.sprintf)( | |
| 3077 | +(0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})})}):"Emoji"===o?(0,I.jsx)(V,{title:(0,L.__)("Emoji","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["Emoji"===o&&(0,I.jsx)(Kl,{label:(0,L.__)("Emoji","ablocks"),attributeName:"emoji",attributeValue:d,setAttributes:i,isInline:!1}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)( | |
| 3062 | 3078 | // translators: %s marker type |
| 3063 | 3079 | // translators: %s marker type |
| 3064 | -(0,z.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:"left",value:"row",icon:"left"},{label:"right",value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:iU.LO})})})}):"none"!==o?(0,L.jsx)(D,{title:o,initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Select Shape","ablocks"),options:oU,attributeName:"shapeType",attributeValue:a,setAttributes:i}),"none"!==o&&(0,L.jsx)(Kt,{label:(0,z.sprintf)( | |
| 3080 | +(0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:uP.LO})})})}):"none"!==o?(0,I.jsx)(V,{title:o,initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Select Shape","ablocks"),options:pP,attributeName:"shapeType",attributeValue:a,setAttributes:i}),"none"!==o&&(0,I.jsx)(Jt,{label:(0,L.sprintf)( | |
| 3065 | 3081 | // translators: %s marker type |
| 3066 | 3082 | // translators: %s marker type |
| 3067 | -(0,z.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:"left",value:"row",icon:"left"},{label:"right",value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:n,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:iU.LO})]})})}):void 0,(0,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{attributeName:"advanceListItemText",attributeValue:f,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks")}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:S,setAttributes:i}),(0,L.jsx)(Ut,{label:(0, | |
| 3068 | -z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"advanceListItemTextTag",attributeValue:y,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Small","ablocks"),value:"sm"},{label:(0,z.__)("Medium","ablocks"),value:"md"},{label:(0,z.__)("Large","ablocks"),value:"lg"},{label:(0,z.__)("Extra Large","ablocks"),value:"xl"}],attributeValue:p||"md",attributeName:"advanceListItemTextSize",setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Drop caps","ablocks"),attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),H&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:M,setAttributes:i})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:g,setAttributes:i}),(0,L.jsx)(Wc,{label:(0, | |
| 3069 | -z.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"listTextShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:T,setAttributes:i,isResponsive:!0})]})})}),b&&!c&&"column"===r["value"+W]?(0,L.jsx)(D,{title:(0,z.__)("Divider","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),options:eU,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=eU?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:iU.VL})]}),style:(0, | |
| 3070 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,L.jsx)(Nt,{}),P]})})}):null]})]})})}aU.propTypes={};const lU=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}],nU={UU:"ablocks/advance-list-item",$t:["ablocks/advance-lists"],uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},markerColor:{type:"string",default:""},allowDivider:{type:"boolean",default:!1},isLastChild:{type:"boolean",default:!1},emoji:{type:"string",default:"👍"},advanceListItemText:{type:"string",source:"html", | |
| 3071 | -selector:".ablocks-advance-list-item-text",default:"Task Checklist"},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:""},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:""},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string", | |
| 3072 | -default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0, | |
| 3073 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{ | |
| 3074 | -linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 3083 | +(0,L.__)("%s Position","ablocks"),o),isResponsive:!0,options:[{label:(0,L.__)("left","ablocks"),value:"row",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"row-reverse",icon:"right"}],setAttributes:i,attributeValue:u,attributeName:"iconAlignment",isInline:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"shapeColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"shapeSize",attributeObjectKey:"value",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!0,attributeDefaultValue:uP.LO})]})})}):void 0,(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{attributeName:"advanceListItemText",attributeValue:f,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:S, | |
| 3084 | +setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"advanceListItemTextTag",attributeValue:y,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),isResponsive:!1,options:[{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra Large","ablocks"),value:"xl"}],attributeValue:p||"md",attributeName:"advanceListItemTextSize",setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Drop caps","ablocks"),attributeValue:e.dropCaps,setAttributes:i,attributeName:"dropCaps"}),H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"dropCapsTextColor",attributeValue:M,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:g,setAttributes:i}),(0, | |
| 3085 | +I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"listTextShadow",attributeValue:m,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"listTextStroke",attributeValue:T,setAttributes:i,isResponsive:!0})]})})}),b&&!c&&"column"===r["value"+W]?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:dP,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=dP?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!1,step:1,min:1,max:100,isInline:!1,attributeDefaultValue:uP.VL | |
| 3086 | +})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),U]})})}):null]})]})})}mP.propTypes={};const hP=[{icon:Cc,title:(0,L.__)("Align text left","ablocks"),align:"left"},{icon:Ac,title:(0,L.__)("Align text center","ablocks"),align:"center"},{icon:Lc,title:(0,L.__)("Align text right","ablocks"),align:"right"},{icon:Dc,title:(0,L.__)("Align text justify","ablocks"),align:"justify"}],gP={UU:"ablocks/advance-list-item",$t:["ablocks/advance-lists"],uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},markerColor:{type:"string",default:""},allowDivider:{type:"boolean",default:!1},isLastChild:{type:"boolean",default:!1},emoji:{type:"string",default:"👍"},advanceListItemText:{type:"string", | |
| 3087 | +source:"html",selector:".ablocks-advance-list-item-text",default:"Task Checklist"},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:""},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:""},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{ | |
| 3088 | +type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px", | |
| 3089 | +isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object", | |
| 3090 | +default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 3075 | 3091 | wordSpacingUnitMobile:"px"}},listTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},listTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},markerSize:{type:"number",default:10},innerGap:{type:"object",default:{value:6,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},width:{type:"object",default:{value:null,valueTablet:"",valueMobile:""}},weight:{type:"number",default:null},size:{type:"number",default:null},shapeSize:{type:"object",default:{value:14,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:{ |
| 3076 | 3092 | type:"object",default:{isLinked:!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:"", |
| 3077 | 3093 | 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:"", |
| 3078 | 3094 | 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:"", |
| @@ -3080,44 +3096,46 @@ | ||
| 3080 | 3096 | 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", |
| 3081 | 3097 | 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, |
| 3082 | 3098 | scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0", |
| 3083 | 3099 | yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[], |
| 3084 | -items:{type:"object"}}}},sU=({allowDivider:t,dividerType:e,listsDirection:i,deviceType:o})=>{if(t&&"column"===i["value"+o])return"mask-style"===e?(0,L.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,L.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function rU(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,listsDirection:b,alignment:c,iconAlignment:d,emoji:u,shapeType:p,shapeColor:m,shapeSize:h,advanceListItemText:g,markerType:f,isLastChild:y,allowDivider:T,advanceListItemTextTag:H,dropCaps:M,advanceListItemTextSize:x,dividerType:k,dividerPatternUrl:v,color:_,size:R,weight:S,link:W={}}=e,{href:U="",linkTarget:P,noFollow:j,keyValue:w}=W;let A={className:"ablocks-advance-list-item-link"};U&&(A.href=U),P&&(A.target="_blank"),A.rel=j?P?"nofollow noreferrer noopener":"nofollow":"noopener",w&&(A={...A,...(0,Wb.jM)(w)});const D=at();(0,a.useEffect)(()=>{i({device:D})},[D]);const N=(0, | |
| 3085 | -r.useSelect)(t=>{const{getBlockIndex:e,getBlockCount:i,getBlockRootClientId:a}=t("core/block-editor"),l=a(o);return e(o,l)===i(l)-1},[o]);(0,a.useEffect)(()=>{i({isLastChild:N})},[N]);const I=(0,r.useSelect)(t=>{const{getBlockParents:e}=t("core/block-editor"),i=e(o).length;if(i>1){const a=e(o)?.[i-1];return t("core/block-editor").getBlockAttributes(a)}const a=e(o)?.[0];return t("core/block-editor").getBlockAttributes(a)},[o]);(0,a.useEffect)(()=>{const t=Array.isArray(e.changedAttributes)?[...e.changedAttributes]:[];["emoji","shapeType","shapeColor"].forEach(i=>{""!==e[i]&&e[i]!==I?.[i]&&(t.includes(i)||t.push(i))}),i({changedAttributes:t})},[u,p,m]),(0,a.useEffect)(()=>{const t=Array.isArray(e.changedAttributes)?[...e.changedAttributes]:[],o=["value","valueMobile","valueTablet"];["shapeSize","iconAlignment"].forEach(i=>{o.forEach(o=>{e[i]?.[o]&&I?.[i]?.[o]&&e[i][o]!==I[i][o]&&!t.includes(i)&&t.push(i)})}),i({changedAttributes:t})},[h,d]),(0,a.useEffect)(()=>{v&&""===_&&i({ | |
| 3086 | -color:I.color}),"mask-style"===k?v&&null===R&&i({size:I.size}):v&&null===S&&i({weight:I.weight})},[v]);const V=at();return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:c,setAttributes:i,options:lU})}),(0,L.jsxs)(BW,{blockId:n,name:nU.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,L.jsxs)("a",{...A,children:["Icon"===f?(0,L.jsx)(Vd,{attributes:e}):"Emoji"===f?(0,L.jsx)(C.RichText,{tagName:"span",value:u,className:"emoji advance-list-item-marker"}):"none"!==f?(0,L.jsx)("span",{className:`advance-list-item-${p} advance-list-item-marker`}):void 0,(0,L.jsx)(Yc,{tagName:H,value:g,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${x}`,{"ablocks-advance-list-item-text-drop-caps":M}),onChange:t=>i({advanceListItemText:t}),placeholder:(0,z.__)("Add your paragraph text","ablocks")})]}),!y&&(0,L.jsx)(sU,{allowDivider:T,dividerType:k,listsDirection:b, | |
| 3087 | -deviceType:V})]})]})}rU.propTypes={};const bU=(t,e="")=>({...[],...(0,Gt.qD)(t?.alignment,"justify-items",e),...(0,Ob.qD)({attributeValue:t?.innerGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}),cU=(t,e="")=>{const i=[];i.margin="auto";const o=(0,M.Ic)(t?.iconAlignment,"value",e);return"row"===o?i.order=1:"row-reverse"===o&&(i.order=2),i},dU=(t,e="")=>{const i=[];return t.shapeColor&&"Shapes"===t.markerType&&(i["border-color"]=`${(0,gs.qD)(t?.shapeColor)} !important`),t.shapeSize["value"+e]&&("Emoji"===t.markerType?i["font-size"]=t.shapeSize["value"+e]+"px":"inset"===t.shapeType||"outset"===t.shapeType||"ridge"===t.shapeType?i.border=`${t.shapeSize["value"+e]}px ${t.shapeType}`:(i["border-bottom"]=`${t.shapeSize["value"+e]}px ${t.shapeType}`,i.width=t.shapeSize["value"+e]+"px")),i},uU=(t,e="")=>{const i={},o=(0,M.Ic)(t?.iconAlignment,"value",e);"row"===o?i.order=2:"row-reverse"===o&&(i.order=1);const a=(0, | |
| 3088 | -M.Zy)(t.listTypography,{weight:"400"}),l=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...i,color:(0,gs.qD)(t?.textColor),...(0,P.qD)(a,e,l),...(0,fc.qD)(t?.listTextStroke,e),...(0,pc.qD)(t?.listTextShadow)}},pU=t=>({color:(0,gs.qD)(t?.dropCapsTextColor)}),mU=(t,e="")=>{const i={order:3};return"row"===t.listsDirection["value"+e]?i.display="none":i.display="block",t.color&&(i["--ablocks-divider-pattern-color"]=(0,gs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Gt.qD)(t?.alignment,"justify-self",e),...(0,Ob.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:null,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Ob.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height", | |
| 3089 | -defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Ob.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},hU=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,L.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,L.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function gU(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m,link:h={}}=e,{href:g="",linkTarget:f,noFollow:y,keyValue:T}=h;let H={className:"ablocks-advance-list-item-link"};return g&&(H.href=g),f&&(H.target="_blank"),H.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(H={...H,...(0,Wb.jM)(T)}),(0,L.jsx)(l().Fragment,{ | |
| 3090 | -children:(0,L.jsxs)(dc,{blockId:i,name:nU.UU,attributes:e,children:[(0,L.jsxs)("a",{...H,children:["Icon"===n?(0,L.jsx)(Vd,{attributes:e}):"Emoji"===n?(0,L.jsx)(C.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,L.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,L.jsx)(C.RichText.Content,{tagName:d,value:a,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})})]}),!c&&(0,L.jsx)(hU,{allowDivider:b,dividerType:m})]})})}gU.propTypes={};const fU={UU:"ablocks/advance-list-item",uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string",default:"black"},markerColor:{type:"string",default:""},allowDivider:{type:"boolean",default:!1},isLastChild:{type:"boolean", | |
| 3091 | -default:!1},emoji:{type:"string",default:"👍"},advanceListItemText:{type:"string",source:"html",selector:".ablocks-advance-list-item-text",default:"Task Checklist"},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:""},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:""},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon", | |
| 3092 | -attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"", | |
| 3093 | -topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number", | |
| 3094 | -default:0},iconImageWidth:{type:"number",default:0},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},listTextShadow:{type:"object",default:{ | |
| 3095 | -color:"",blur:"",horizontal:"",vertical:""}},listTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},markerSize:{type:"number",default:10},innerGap:{type:"object",default:{value:6,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},width:{type:"object",default:{value:null,valueTablet:"",valueMobile:""}},weight:{type:"number",default:null},size:{type:"number",default:null},shapeSize:{type:"object",default:{value:14,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, | |
| 3096 | -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, | |
| 3097 | -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:"", | |
| 3098 | -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:"", | |
| 3099 | -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:"", | |
| 3100 | -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:"", | |
| 3101 | -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:"", | |
| 3102 | -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:{ | |
| 3103 | -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"}}} | |
| 3104 | -},yU=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,L.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,L.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function TU(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:fU.UU,attributes:e,children:["Icon"===n?(0,L.jsx)(Vd,{attributes:e}):"Emoji"===n?(0,L.jsx)(C.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,L.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,L.jsx)(C.RichText.Content,{tagName:d,value:a,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u}) | |
| 3105 | -}),!c&&(0,L.jsx)(yU,{allowDivider:b,dividerType:m})]})})}TU.propTypes={},(0,M.xV)(nU.UU,nU.$t[0])&&(0,o.registerBlockType)(nU.UU,{title:"Advance list item",attributes:nU.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-block-container .ablocks-advance-list-item-link",bU(i),bU(i,"Tablet"),bU(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker",dU(i),dU(i,"Tablet"),dU(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker,{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-icon-wrap",cU(i),cU(i,"Tablet"),cU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0, | |
| 3106 | -vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text, {{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text a",uU(i),uU(i,"Tablet"),uU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",pU(i),pU(i),pU(i)),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),mU(i),mU(i,"Tablet"),mU(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0, | |
| 3107 | -L.jsx)(aU,{...t}),(0,L.jsx)(rU,{...t})]})},save:gU,deprecated:[{attributes:fU.uK,save:TU}]});var HU=i(11276);const MU=(t,e,i,o)=>{const a=xU(t,e,o),{title:l,imgUrl:n,imgUrlTablet:s,imgUrlMobile:r,imgId:b}=a,c=e?.imgUrl,{imgId:d,imgIdTablet:u,imgIdMobile:p}=e||{};let m;const h={};let g;"Tablet"===o?(m={imgUrl:c||n,imgUrlTablet:s||n},p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}):"Mobile"===o?(m={imgUrl:c||n,imgUrlMobile:r||s||n},g={...e?.widthHeightWidget}):(m={imgUrl:n},u||(m.imgUrlTablet=s||n),p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}),d?h["imgId"+o]=b:h.imgId=b,o||!u&&!p||(h.showNotice=!0),i({...h,imgTitle:l,...m,widthHeightWidget:(0,M.jI)(HU.aY,{...HU.aY,...g})})},xU=t=>{const{id:e,url:i,width:o,height:a,title:l}=t;let n;n=t?.sizes?t?.sizes:t?.media_details?.sizes;const s=n?.large?.width,r=n?.large?.height;return{imgId:e,title:l,imgNaturalWidth:s||o,imgNaturalHeight:r||a,width:s||o,height:r||a,imgUrl:n?.large?.url||i,widthTablet:s||o,heightTablet:r||a, | |
| 3108 | -imgUrlTablet:i,widthMobile:s||o,heightMobile:r||a,imgUrlMobile:i}},kU=t=>{const e=[];for(const i in t)if(Object.hasOwnProperty.call(t,i)){const t=i.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");e.push({label:t,value:i})}return e},vU=((0,z.__)("Thumbnail","ablocks"),(0,z.__)("Medium","ablocks"),(0,z.__)("Large","ablocks"),(0,z.__)("Full","ablocks"),(0,z.__)("Custom","ablocks"),(0,z.__)("None","ablocks"),(0,z.__)("Media File","ablocks"),(0,z.__)("Custom URL","ablocks"),(0,z.__)("Default","ablocks"),(0,z.__)("Fill","ablocks"),(0,z.__)("Cover","ablocks"),(0,z.__)("Contain","ablocks"),[{label:(0,z.__)("Mouse Scroll","ablocks"),value:"mouse-scroll"},{label:(0,z.__)("Top to Bottom","ablocks"),value:"top-to-bottom"},{label:(0,z.__)("Bottom to Top","ablocks"),value:"bottom-to-top"},{label:(0,z.__)("Horizontal Scroll","ablocks"),value:"horizontal-scroll"},{label:(0,z.__)("Left To Right","ablocks"),value:"left-to-right"},{label:(0,z.__)("Right To Left","ablocks"), | |
| 3109 | -value:"right-to-left"}]);function _U(t){const{attributes:e,setAttributes:i,isSelected:o,setCurrentImageData:n}=t,{imgId:s,imgIdTablet:b,imgIdMobile:c,imageDataAttribute:d,opacity:u,opacityH:p,cssFilter:m,cssHoverFilter:h,filterTransitionDuration:g,scrollHeight:f,scrollWidth:y,overlayColor:T,showOverlay:H,showIcon:M,iconFontSize:x,iconColor:k,link:v}=e,_=at(),[R,S]=(0,a.useState)([]);let W;W="Tablet"===_?b||s:"Mobile"===_&&(c||b)||s;const{image:U}=(0,r.useSelect)(t=>{const{getMedia:e}=t(ge.store);return{image:W&&o?e(W):null}},[o,W]);(0,a.useEffect)(()=>{if(null!==U){i({imageDataAttribute:U});const t=U?.media_details?.sizes,e=kU(t);S(e),n(U)}else{const t=d?.media_details?.sizes,e=kU(t);S(e),n(d)}},[U]);const P=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(As,{setAttributes:i,allowedTypes:["image"],attributeValue:e,attributeName:"imgUrl",deviceType:_,onSelectImageHandler:t=>MU(t,e,i,_),onRemoveImageHandler:()=>{i({imgId:void 0,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:void 0, | |
| 3110 | -imgUrlTablet:void 0,imgUrlMobile:void 0,widthHeightWidget:{...e?.widthHeightWidget,imgNaturalWidth:void 0,imgNaturalHeight:void 0,width:void 0,widthTablet:void 0,widthMobile:void 0,height:void 0,heightTablet:void 0,heightMobile:void 0}})}}),R?.length>0&&(0,L.jsx)(Ut,{label:(0,z.__)("Images Sizes","ablocks"),isResponsive:!0,options:R,attributeName:"imgSize",attributeObjectKey:"value",attributeValue:e?.imgSize,setAttributes:i,onChangeHandler:t=>{let o;o=((t,e)=>{const{media_details:{sizes:i}}=t;if("custom"===e)return{width:i.large?.width,height:i.large?.height,url:i.large?.source_url,objectFit:"cover"};const o=i[e],{width:a,height:l,source_url:n}=o;return{width:a,height:l,url:n}})(null===U?d:U,t);const{url:a,objectFit:l,aspectRatio:n}=o;return i({["imgUrl"+_]:a,imgSize:{...e?.imgSize,["value"+_]:t},widthHeightWidget:{...e?.widthHeightWidget},objectFit:{...e?.objectFit,["value"+_]:l||e?.objectFit["value"+_]},aspectRatio:{...e?.aspectRatio,["value"+_]:n||e?.aspectRatio["value"+_]}})}}),(0, | |
| 3111 | -L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),min:0,max:1600,step:1,isInline:!1,isResponsive:!0,attributeName:"scrollHeight",attributeValue:f,setAttributes:i,attributeDefaultValue:HU.zE}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,unitOptions:[{label:"%",value:"%"}],attributeName:"scrollWidth",attributeValue:y,setAttributes:i,attributeDefaultValue:HU.oF}),(0,L.jsx)(Ut,{label:(0,z.__)("Image Scroll Option","ablocks"),isResponsive:!1,options:vU,attributeName:"imageScrollOption",attributeValue:e.imageScrollOption,attributeObjectKey:"value",setAttributes:i}),(0,L.jsx)(js,{label:(0,z.__)("Speed (s)","ablocks"),attributeName:"transitionTime",attributeValue:e?.transitionTime,setAttributes:i,isInline:!0}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Overlay","ablocks"),attributeValue:e?.showOverlay,setAttributes:i,attributeName:"showOverlay"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Icon","ablocks"), | |
| 3112 | -attributeValue:e?.showIcon,setAttributes:i,attributeName:"showIcon"}),M&&(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconFontSize",attributeValue:x,setAttributes:i,attributeDefaultValue:HU.IV}),(0,L.jsx)(ql,{label:(0,z.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1}),(0,L.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,L.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,L.jsx)("span",{children:(0,z.__)("Alt Text","ablocks")}),(0,L.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,z.__)("clear","ablocks")})]}),(0,L.jsx)(ql,{attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1})]}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:v,setAttributes:i})]}),j=(0, | |
| 3113 | -L.jsxs)(L.Fragment,{children:[H&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Overlay Color","ablocks"),attributeName:"overlayColor",attributeValue:T,setAttributes:i})}),M&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:k,setAttributes:i})}),(0,L.jsx)(ot,{label:(0,z.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:m,attributeName:"cssFilter",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:u,setAttributes:i,attributeDefaultValue:HU.ke})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:h,attributeName:"cssHoverFilter",setAttributes:i}),(0,L.jsx)(vt,{label:(0, | |
| 3114 | -z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p,setAttributes:i,attributeDefaultValue:HU.md}),(0,L.jsx)(vt,{label:(0,z.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:g,attributeDefaultValue:HU.yy})]})}),(0,L.jsx)(Nt,{margin:"20"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Nt,{margin:"20"})]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{title:(0,z.__)("Image","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:P,style:j})})})})})}function RU(t){const{toggleSelection:e}=(0, | |
| 3115 | -r.useDispatch)(C.store),{setAttributes:i,isSelected:o,attributes:a,containerRef:l,currentImageData:n={}}=t,{imgAltText:s,imgTitle:b,alignment:c,imgSize:d,widthHeightWidget:u,imageScrollOption:p}=a,m=at(),h="Mobile"===m?d.valueMobile||d.valueTablet||d.value:"large",g="Tablet"===m?d.valueTablet||d.value:h,f=m?g:d.value,y=n?.media_details?.sizes?.[f]||{},T=y.width,H=y.height,M=u["width"+m],x=u["height"+m],k=a[`imgUrl${m}`]||a.imgUrlMobile||a.imgUrlTablet||a.imgUrl,{maxWidth:v}=(0,r.useSelect)(t=>{const{getSettings:e}=t(C.store),{maxWidth:i}=e();return{maxWidth:i}},[]),_=2*v,R=T/H,S=((t,e)=>{const[i,o]=(0,Ot.useState)();return(0,Ot.useEffect)(()=>{o(t.current.offsetWidth);const e=()=>{o(t.current.offsetWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]),W=((t,e)=>{const[i,o]=(0,Ot.useState)();return(0,Ot.useEffect)(()=>{o(t.current.offsetHeight);const e=()=>{o(t.current.offsetHeight)};return window.addEventListener("resize",e), | |
| 3116 | -()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]);let U=!0,P=!1;"center"===c?.value?(U=!0,P=!0):"right"===c?.value&&(U=!1,P=!0);const j=u["width"+m]||"auto",w=u["height"+m]||"auto",z="horizontal-scroll"===p.value||"left-to-right"===p.value||"right-to-left"===p.value;return(0,L.jsx)(A.ResizableBox,{size:{width:j,height:w},showHandle:o,minHeight:50,minWidth:50,maxWidth:_,maxHeight:_/R,lockAspectRatio:!0,enable:{top:!1,bottom:!0,left:P,right:U},onResizeStop:(t,o,l,n)=>{(t=>{const o=Math.abs(M?parseInt(M)+t.width:S+t.width),l=Math.abs(x?parseInt(x)+t.height:W+t.height),n={...a?.widthHeightWidget,["width"+m]:o,["height"+m]:l,["showHeight"+m]:!1};i({widthHeightWidget:n}),e(!0)})(t)},onResizeStart:function(){e(!1)},children:(0,L.jsx)("img",{src:k,alt:s,title:b,loading:"lazy",style:{width:z?"none":"100%",height:"100%"}})})}function SU(t){const e=(0, | |
| 3117 | -a.useRef)(),{attributes:i}=t,{imgUrl:o,imageScrollOption:l,scrollHeight:n,transitionTime:s,showOverlay:r,showIcon:b,link:c}=i,{href:d,linkTarget:u,noFollow:p,keyValue:m}=c||{};let h={};u&&(h.target="_blank"),h.rel=p?u?"nofollow noreferrer noopener":"nofollow":"noopener",m&&(h={...h,...(0,Wb.jM)(m)});const g=at();let f;return o&&(f=d?(0,L.jsx)("a",{...h,children:(0,L.jsx)(RU,{...t,containerRef:e})}):(0,L.jsx)(RU,{...t,containerRef:e})),(0,L.jsxs)(L.Fragment,{children:[r&&(0,L.jsx)("div",{className:"ablocks-block-image-overlay"}),b&&(0,L.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,L.jsx)(Vd,{customIconData:{ | |
| 3100 | +items:{type:"object"}}}},fP=({allowDivider:t,dividerType:e,listsDirection:i,deviceType:o})=>{if(t&&"column"===i["value"+o])return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function yP(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,listsDirection:b,alignment:c,iconAlignment:d,emoji:u,shapeType:p,shapeColor:m,shapeSize:h,advanceListItemText:g,markerType:f,isLastChild:y,allowDivider:T,advanceListItemTextTag:H,dropCaps:M,advanceListItemTextSize:x,dividerType:k,dividerPatternUrl:v,color:_,size:R,weight:S,link:W={}}=e,{href:P="",linkTarget:U,noFollow:j,keyValue:w}=W;let z={className:"ablocks-advance-list-item-link"};P&&(z.href=P),U&&(z.target="_blank"),z.rel=j?U?"nofollow noreferrer noopener":"nofollow":"noopener",w&&(z={...z,...(0,wb.jM)(w)});const C=lt();(0,a.useEffect)(()=>{i({device:C})},[C]);const A=(0, | |
| 3101 | +r.useSelect)(t=>{const{getBlockIndex:e,getBlockCount:i,getBlockRootClientId:a}=t("core/block-editor"),l=a(o);return e(o,l)===i(l)-1},[o]);(0,a.useEffect)(()=>{i({isLastChild:A})},[A]);const N=(0,r.useSelect)(t=>{const{getBlockParents:e}=t("core/block-editor"),i=e(o).length;if(i>1){const a=e(o)?.[i-1];return t("core/block-editor").getBlockAttributes(a)}const a=e(o)?.[0];return t("core/block-editor").getBlockAttributes(a)},[o]);(0,a.useEffect)(()=>{const t=Array.isArray(e.changedAttributes)?[...e.changedAttributes]:[];["emoji","shapeType","shapeColor"].forEach(i=>{""!==e[i]&&e[i]!==N?.[i]&&(t.includes(i)||t.push(i))}),i({changedAttributes:t})},[u,p,m]),(0,a.useEffect)(()=>{const t=Array.isArray(e.changedAttributes)?[...e.changedAttributes]:[],o=["value","valueMobile","valueTablet"];["shapeSize","iconAlignment"].forEach(i=>{o.forEach(o=>{e[i]?.[o]&&N?.[i]?.[o]&&e[i][o]!==N[i][o]&&!t.includes(i)&&t.push(i)})}),i({changedAttributes:t})},[h,d]),(0,a.useEffect)(()=>{v&&""===_&&i({ | |
| 3102 | +color:N.color}),"mask-style"===k?v&&null===R&&i({size:N.size}):v&&null===S&&i({weight:N.weight})},[v]);const V=lt();return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i,options:hP})}),(0,I.jsxs)(tP,{blockId:n,name:gP.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,I.jsxs)("a",{...z,children:["Icon"===f?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===f?(0,I.jsx)(D.RichText,{tagName:"span",value:u,className:"emoji advance-list-item-marker"}):"none"!==f?(0,I.jsx)("span",{className:`advance-list-item-${p} advance-list-item-marker`}):void 0,(0,I.jsx)($c,{tagName:H,value:g,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${x}`,{"ablocks-advance-list-item-text-drop-caps":M}),onChange:t=>i({advanceListItemText:t}),placeholder:(0,L.__)("Add your paragraph text","ablocks")})]}),!y&&(0,I.jsx)(fP,{allowDivider:T,dividerType:k,listsDirection:b, | |
| 3103 | +deviceType:V})]})]})}yP.propTypes={};const TP=(t,e="")=>({...[],...(0,Zt.qD)(t?.alignment,"justify-items",e),...(0,Eb.qD)({attributeValue:t?.innerGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:null,hasUnit:!0,unitDefaultValue:"px",device:e})}),HP=(t,e="")=>{const i=[];i.margin="auto";const o=(0,M.Ic)(t?.iconAlignment,"value",e);return"row"===o?i.order=1:"row-reverse"===o&&(i.order=2),i},MP=(t,e="")=>{const i=[];return t.shapeColor&&"Shapes"===t.markerType&&(i["border-color"]=`${(0,Hs.qD)(t?.shapeColor)} !important`),t.shapeSize["value"+e]&&("Emoji"===t.markerType?i["font-size"]=t.shapeSize["value"+e]+"px":"inset"===t.shapeType||"outset"===t.shapeType||"ridge"===t.shapeType?i.border=`${t.shapeSize["value"+e]}px ${t.shapeType}`:(i["border-bottom"]=`${t.shapeSize["value"+e]}px ${t.shapeType}`,i.width=t.shapeSize["value"+e]+"px")),i},xP=(t,e="")=>{const i={},o=(0,M.Ic)(t?.iconAlignment,"value",e);"row"===o?i.order=2:"row-reverse"===o&&(i.order=1);const a=(0, | |
| 3104 | +M.Zy)(t.listTypography,{weight:"400"}),l=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...i,color:(0,Hs.qD)(t?.textColor),...(0,U.qD)(a,e,l),...(0,Mc.qD)(t?.listTextStroke,e),...(0,fc.qD)(t?.listTextShadow)}},kP=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),vP=(t,e="")=>{const i={order:3};return"row"===t.listsDirection["value"+e]?i.display="none":i.display="block",t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Zt.qD)(t?.alignment,"justify-self",e),...(0,Eb.qD)({attributeValue:t?.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:null,hasUnit:!1,unitDefaultValue:"%",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height", | |
| 3105 | +defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},_P=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function RP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m,link:h={}}=e,{href:g="",linkTarget:f,noFollow:y,keyValue:T}=h;let H={className:"ablocks-advance-list-item-link"};g&&(H.href=g),f&&(H.target="_blank"),H.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(H={...H,...(0,wb.jM)(T)}) | |
| 3106 | +;const M=/<a[\s>]/i.test(a||""),x=M?"div":"a",k=M?{className:"ablocks-advance-list-item-link"}:H;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:gP.UU,attributes:e,children:[(0,I.jsxs)(x,{...k,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:a,className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})})]}),!c&&(0,I.jsx)(_P,{allowDivider:b,dividerType:m})]})})}RP.propTypes={};const SP={UU:"ablocks/advance-list-item",uK:{block_id:{type:"string",default:""},changedAttributes:{type:"array",default:[]},device:{type:"string",default:""},markerType:{type:"string",default:"Icon"},shapeType:{type:"string",default:"dotted"},shapeColor:{type:"string", | |
| 3107 | +default:"black"},markerColor:{type:"string",default:""},allowDivider:{type:"boolean",default:!1},isLastChild:{type:"boolean",default:!1},emoji:{type:"string",default:"👍"},advanceListItemText:{type:"string",source:"html",selector:".ablocks-advance-list-item-text",default:"Task Checklist"},advanceListItemTextTag:{type:"string",default:"p"},dropCaps:{type:"boolean",default:!1},dropCapsTextColor:{type:"string",default:""},advanceListItemTextSize:{type:"string",default:"md"},textColor:{type:"string",default:""},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},iconSvgPath:{type:"string",default:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path", | |
| 3108 | +attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fas fa-check"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0, | |
| 3109 | +commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0, | |
| 3110 | +valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconAlignment:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},listsDirection:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},listTypographyGlobal:{type:"string",default:""},listTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px", | |
| 3111 | +wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},listTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},listTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},markerSize:{type:"number",default:10},innerGap:{type:"object",default:{value:6,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},width:{type:"object",default:{value:null,valueTablet:"",valueMobile:""}},weight:{type:"number",default:null},size:{type:"number",default:null},shapeSize:{type:"object",default:{value:14,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:"", | |
| 3112 | +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:"", | |
| 3113 | +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:"", | |
| 3114 | +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:"", | |
| 3115 | +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:"", | |
| 3116 | +imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"", | |
| 3117 | +offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px", | |
| 3118 | +offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px", | |
| 3119 | +yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{ | |
| 3120 | +type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},WP=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function PP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:SP.UU,attributes:e,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:a, | |
| 3121 | +className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})}),!c&&(0,I.jsx)(WP,{allowDivider:b,dividerType:m})]})})}PP.propTypes={};const UP='<a class="ablocks-advance-list-item-link"[^>]*>([\\s\\S]*?)<\\/a>',jP=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-advance-list-item-divider__pattern-css "})};function wP(t){const{attributes:e}=t,{block_id:i,emoji:o,advanceListItemText:a,markerType:n,shapeType:r,allowDivider:b,isLastChild:c,advanceListItemTextTag:d,dropCaps:u,advanceListItemTextSize:p,dividerType:m,link:h={}}=e,{href:g="",linkTarget:f,noFollow:y,keyValue:T}=h;let H={className:"ablocks-advance-list-item-link"};return g&&(H.href=g),f&&(H.target="_blank"),H.rel=y?f?"nofollow noreferrer noopener":"nofollow":"noopener",T&&(H={...H,...(0,wb.jM)(T) | |
| 3122 | +}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:gP.UU,attributes:e,children:[(0,I.jsxs)("a",{...H,children:["Icon"===n?(0,I.jsx)(Fd,{attributes:e}):"Emoji"===n?(0,I.jsx)(D.RichText.Content,{tagName:"span",value:o,className:"emoji advance-list-item-marker"}):"none"!==n?(0,I.jsx)("span",{className:`advance-list-item-${r} advance-list-item-marker`}):void 0,(0,I.jsx)(D.RichText.Content,{tagName:d,value:(M=a,"string"!=typeof M?M:M.replace(new RegExp("^"+UP),"$1")),className:s()("ablocks-advance-list-item-text",`ablocks-advance-list-item-text-${p}`,{"ablocks-advance-list-item-text-drop-caps":u})})]}),!c&&(0,I.jsx)(jP,{allowDivider:b,dividerType:m})]})});var M}wP.propTypes={},(0,M.xV)(gP.UU,gP.$t[0])&&(0,o.registerBlockType)(gP.UU,{title:(0,L.__)("Advance list item","ablocks"),attributes:gP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-list"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0, | |
| 3123 | +a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-block-container .ablocks-advance-list-item-link",TP(i),TP(i,"Tablet"),TP(i,"Mobile"),t.customDeviceMap(t=>TP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker",MP(i),MP(i,"Tablet"),MP(i,"Mobile"),t.customDeviceMap(t=>MP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--advance-list-item .advance-list-item-marker,{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-icon-wrap",HP(i),HP(i,"Tablet"),HP(i,"Mobile"),t.customDeviceMap(t=>HP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.fW)(i,t))), | |
| 3124 | +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text, {{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text a",xP(i),xP(i,"Tablet"),xP(i,"Mobile"),t.customDeviceMap(t=>xP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-advance-list-item-text-drop-caps::first-letter",kP(i),kP(i),kP(i),t.customDeviceMap(t=>kP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-advance-list-item-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),vP(i),vP(i,"Tablet"),vP(i,"Mobile"),t.customDeviceMap(t=>vP(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s | |
| 3125 | +}),e&&(0,I.jsx)(mP,{...t}),(0,I.jsx)(yP,{...t})]})},save:RP,deprecated:[{attributes:gP.uK,save:wP,migrate:t=>{return{...t,advanceListItemText:(e=t.advanceListItemText,"string"!=typeof e?e:e.replace(new RegExp(UP,"g"),"$1"))};var e}},{attributes:SP.uK,save:PP}]});var zP=i(11276);const CP=(t,e,i,o)=>{const a=AP(t,e,o),{title:l,imgUrl:n,imgUrlTablet:s,imgUrlMobile:r,imgId:b}=a,c=e?.imgUrl,{imgId:d,imgIdTablet:u,imgIdMobile:p}=e||{};let m;const h={};let g;"Tablet"===o?(m={imgUrl:c||n,imgUrlTablet:s||n},p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}):"Mobile"===o?(m={imgUrl:c||n,imgUrlMobile:r||s||n},g={...e?.widthHeightWidget}):(m={imgUrl:n},u||(m.imgUrlTablet=s||n),p||(m.imgUrlMobile=r||n),g={...e?.widthHeightWidget}),d?h["imgId"+o]=b:h.imgId=b,o||!u&&!p||(h.showNotice=!0),i({...h,imgTitle:l,...m,widthHeightWidget:(0,M.jI)(zP.aY,{...zP.aY,...g})})},AP=t=>{const{id:e,url:i,width:o,height:a,title:l}=t;let n;n=t?.sizes?t?.sizes:t?.media_details?.sizes | |
| 3126 | +;const s=n?.large?.width,r=n?.large?.height;return{imgId:e,title:l,imgNaturalWidth:s||o,imgNaturalHeight:r||a,width:s||o,height:r||a,imgUrl:n?.large?.url||i,widthTablet:s||o,heightTablet:r||a,imgUrlTablet:i,widthMobile:s||o,heightMobile:r||a,imgUrlMobile:i}},LP=t=>{const e=[];for(const i in t)if(Object.hasOwnProperty.call(t,i)){const t=i.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");e.push({label:t,value:i})}return e},DP=((0,L.__)("Thumbnail","ablocks"),(0,L.__)("Medium","ablocks"),(0,L.__)("Large","ablocks"),(0,L.__)("Full","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("None","ablocks"),(0,L.__)("Media File","ablocks"),(0,L.__)("Custom URL","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Fill","ablocks"),(0,L.__)("Cover","ablocks"),(0,L.__)("Contain","ablocks"),[{label:(0,L.__)("Mouse Scroll","ablocks"),value:"mouse-scroll"},{label:(0,L.__)("Top to Bottom","ablocks"),value:"top-to-bottom"},{label:(0,L.__)("Bottom to Top","ablocks"),value:"bottom-to-top"},{ | |
| 3127 | +label:(0,L.__)("Horizontal Scroll","ablocks"),value:"horizontal-scroll"},{label:(0,L.__)("Left To Right","ablocks"),value:"left-to-right"},{label:(0,L.__)("Right To Left","ablocks"),value:"right-to-left"}]);function NP(t){const{attributes:e,setAttributes:i,isSelected:o,setCurrentImageData:n}=t,{imgId:s,imgIdTablet:b,imgIdMobile:c,imageDataAttribute:d,opacity:u,opacityH:p,cssFilter:m,cssHoverFilter:h,filterTransitionDuration:g,scrollHeight:f,scrollWidth:y,overlayColor:T,showOverlay:H,showIcon:M,iconFontSize:x,iconColor:k,link:v}=e,_=lt(),[R,S]=(0,a.useState)([]);let W;W="Tablet"===_?b||s:"Mobile"===_&&(c||b)||s;const{image:P}=(0,r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:W&&o?e(W):null}},[o,W]);(0,a.useEffect)(()=>{if(null!==P){i({imageDataAttribute:P});const t=P?.media_details?.sizes,e=LP(t);S(e),n(P)}else{const t=d?.media_details?.sizes,e=LP(t);S(e),n(d)}},[P]);const U=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Is,{setAttributes:i,allowedTypes:["image"], | |
| 3128 | +attributeValue:e,attributeName:"imgUrl",deviceType:_,onSelectImageHandler:t=>CP(t,e,i,_),onRemoveImageHandler:()=>{i({imgId:void 0,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:void 0,imgUrlTablet:void 0,imgUrlMobile:void 0,widthHeightWidget:{...e?.widthHeightWidget,imgNaturalWidth:void 0,imgNaturalHeight:void 0,width:void 0,widthTablet:void 0,widthMobile:void 0,height:void 0,heightTablet:void 0,heightMobile:void 0}})}}),R?.length>0&&(0,I.jsx)(Ut,{label:(0,L.__)("Images Sizes","ablocks"),isResponsive:!0,options:R,attributeName:"imgSize",attributeObjectKey:"value",attributeValue:e?.imgSize,setAttributes:i,onChangeHandler:t=>{let o;o=((t,e)=>{const{media_details:{sizes:i}}=t;if("custom"===e)return{width:i.large?.width,height:i.large?.height,url:i.large?.source_url,objectFit:"cover"};const o=i[e],{width:a,height:l,source_url:n}=o;return{width:a,height:l,url:n}})(null===P?d:P,t);const{url:a,objectFit:l,aspectRatio:n}=o;return i({["imgUrl"+_]:a,imgSize:{...e?.imgSize,["value"+_]:t}, | |
| 3129 | +widthHeightWidget:{...e?.widthHeightWidget},objectFit:{...e?.objectFit,["value"+_]:l||e?.objectFit["value"+_]},aspectRatio:{...e?.aspectRatio,["value"+_]:n||e?.aspectRatio["value"+_]}})}}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),min:0,max:1600,step:1,isInline:!1,isResponsive:!0,attributeName:"scrollHeight",attributeValue:f,setAttributes:i,attributeDefaultValue:zP.zE}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,unitOptions:[{label:"%",value:"%"}],attributeName:"scrollWidth",attributeValue:y,setAttributes:i,attributeDefaultValue:zP.oF}),(0,I.jsx)(Ut,{label:(0,L.__)("Image Scroll Option","ablocks"),isResponsive:!1,options:DP,attributeName:"imageScrollOption",attributeValue:e.imageScrollOption,attributeObjectKey:"value",setAttributes:i}),(0,I.jsx)(As,{label:(0,L.__)("Speed (s)","ablocks"),attributeName:"transitionTime",attributeValue:e?.transitionTime,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{isResponsive:!1, | |
| 3130 | +label:(0,L.__)("Show Overlay","ablocks"),attributeValue:e?.showOverlay,setAttributes:i,attributeName:"showOverlay"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Icon","ablocks"),attributeValue:e?.showIcon,setAttributes:i,attributeName:"showIcon"}),M&&(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconFontSize",attributeValue:x,setAttributes:i,attributeDefaultValue:zP.IV}),(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1}),(0,I.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,I.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,I.jsx)("span",{children:(0,L.__)("Alt Text","ablocks")}),(0,I.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,L.__)("clear","ablocks")})]}),(0,I.jsx)(Kl,{ | |
| 3131 | +attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i,isInline:!1})]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:v,setAttributes:i})]}),j=(0,I.jsxs)(I.Fragment,{children:[H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Overlay Color","ablocks"),attributeName:"overlayColor",attributeValue:T,setAttributes:i})}),M&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:k,setAttributes:i})}),(0,I.jsx)(at,{label:(0,L.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:m,attributeName:"cssFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:u,setAttributes:i,attributeDefaultValue:zP.ke})]}), | |
| 3132 | +hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dy,{label:(0,L.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:h,attributeName:"cssHoverFilter",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p,setAttributes:i,attributeDefaultValue:zP.md}),(0,I.jsx)(_t,{label:(0,L.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:g,attributeDefaultValue:zP.yy})]})}),(0,I.jsx)(It,{margin:"20"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{margin:"20"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Image","ablocks"),initialOpen:!0, | |
| 3133 | +children:(0,I.jsx)(Ub,{content:U,style:j})})})})})}function IP(t){const{toggleSelection:e}=(0,r.useDispatch)(D.store),{setAttributes:i,isSelected:o,attributes:a,containerRef:l,currentImageData:n={}}=t,{imgAltText:s,imgTitle:b,alignment:c,imgSize:d,widthHeightWidget:u,imageScrollOption:p}=a,m=lt(),h="Mobile"===m?d.valueMobile||d.valueTablet||d.value:"large",g="Tablet"===m?d.valueTablet||d.value:h,f=m?g:d.value,y=n?.media_details?.sizes?.[f]||{},T=y.width,H=y.height,M=u["width"+m],x=u["height"+m],k=a[`imgUrl${m}`]||a.imgUrlMobile||a.imgUrlTablet||a.imgUrl,{maxWidth:v}=(0,r.useSelect)(t=>{const{getSettings:e}=t(D.store),{maxWidth:i}=e();return{maxWidth:i}},[]),_=2*v,R=T/H,S=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{o(t.current.offsetWidth);const e=()=>{o(t.current.offsetWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]),W=((t,e)=>{const[i,o]=(0,Yt.useState)();return(0,Yt.useEffect)(()=>{ | |
| 3134 | +o(t.current.offsetHeight);const e=()=>{o(t.current.offsetHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e,t]),i})(l,[c,m]);let P=!0,U=!1;"center"===c?.value?(P=!0,U=!0):"right"===c?.value&&(P=!1,U=!0);const j=u["width"+m]||"auto",w=u["height"+m]||"auto",z="horizontal-scroll"===p.value||"left-to-right"===p.value||"right-to-left"===p.value;return(0,I.jsx)(N.ResizableBox,{size:{width:j,height:w},showHandle:o,minHeight:50,minWidth:50,maxWidth:_,maxHeight:_/R,lockAspectRatio:!0,enable:{top:!1,bottom:!0,left:U,right:P},onResizeStop:(t,o,l,n)=>{(t=>{const o=Math.abs(M?parseInt(M)+t.width:S+t.width),l=Math.abs(x?parseInt(x)+t.height:W+t.height),n={...a?.widthHeightWidget,["width"+m]:o,["height"+m]:l,["showHeight"+m]:!1};i({widthHeightWidget:n}),e(!0)})(t)},onResizeStart:function(){e(!1)},children:(0,I.jsx)("img",{src:k,alt:s,title:b,loading:"lazy",style:{width:z?"none":"100%",height:"100%"}})})}function VP(t){const e=(0, | |
| 3135 | +a.useRef)(),{attributes:i}=t,{imgUrl:o,imageScrollOption:l,scrollHeight:n,transitionTime:s,showOverlay:r,showIcon:b,link:c}=i,{href:d,linkTarget:u,noFollow:p,keyValue:m}=c||{};let h={};u&&(h.target="_blank"),h.rel=p?u?"nofollow noreferrer noopener":"nofollow":"noopener",m&&(h={...h,...(0,wb.jM)(m)});const g=lt();let f;return o&&(f=d?(0,I.jsx)("a",{...h,children:(0,I.jsx)(IP,{...t,containerRef:e})}):(0,I.jsx)(IP,{...t,containerRef:e})),(0,I.jsxs)(I.Fragment,{children:[r&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),b&&(0,I.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{ | |
| 3118 | 3136 | path:"M7.67993 9.84002V14.16C7.67993 16.536 9.62393 18.48 11.9999 18.48C14.3759 18.48 16.3199 16.536 16.3199 14.16V9.84002C16.3199 7.46402 14.3759 5.52002 11.9999 5.52002C9.62393 5.52002 7.67993 7.46402 7.67993 9.84002ZM11.9999 6.48002C13.8479 6.48002 15.3599 7.99202 15.3599 9.84002V14.16C15.3599 16.008 13.8479 17.52 11.9999 17.52C10.1519 17.52 8.63993 16.008 8.63993 14.16V9.84002C8.63993 7.99202 10.1519 6.48002 11.9999 6.48002Z M12 10.5602C12.264 10.5602 12.48 10.3442 12.48 10.0802V8.64016C12.48 8.37616 12.264 8.16016 12 8.16016C11.736 8.16016 11.52 8.37616 11.52 8.64016V10.0802C11.52 10.3442 11.736 10.5602 12 10.5602Z M11.6638 22.1762C11.7598 22.2722 11.8798 22.3202 11.9998 22.3202C12.1198 22.3202 12.2398 22.2722 12.3358 22.1762L13.5358 20.9762C13.7278 20.7842 13.7278 20.4962 13.5358 20.3042C13.3438 20.1122 13.0558 20.1122 12.8638 20.3042L11.9998 21.1682L11.1358 20.3042C10.9438 20.1122 10.6558 20.1122 10.4638 20.3042C10.2718 20.4962 10.2718 20.7842 10.4638 20.9762L11.6638 22.1762Z M11.6638 1.82418L10.4638 3.02418C10.2718 3.21618 10.2718 3.50418 10.4638 3.69618C10.5598 3.79218 10.6798 3.84018 10.7998 3.84018C10.9198 3.84018 11.0398 3.79218 11.1358 3.69618L11.9998 2.83218L12.8638 3.69618C12.9598 3.79218 13.0798 3.84018 13.1998 3.84018C13.3198 3.84018 13.4398 3.79218 13.5358 3.69618C13.7278 3.50418 13.7278 3.21618 13.5358 3.02418L12.3358 1.82418C12.1438 1.63218 11.8558 1.63218 11.6638 1.82418Z", |
| 3119 | -viewBox:"0 0 24 24"},style:{fill:(0,gs.qD)(i?.iconColor)||"black"}})}),(0,L.jsx)("figure",{className:"ablocks-image-scroll__figure",ref:e,"data-scroll-option":l.value,"data-scroll-height":n?.["value"+g]??n?.value??0,"data-transition-time":s,children:f})]})}(0,z.__)("Static","ablocks"),(0,z.__)("Zoom in","ablocks"),(0,z.__)("Slide","ablocks"),(0,z.__)("Gray scale","ablocks"),(0,z.__)("Blur","ablocks"),(0,z.__)("Custom","ablocks"),(0,z.__)("Original","ablocks"),(0,z.__)("Square - 1:1","ablocks"),(0,z.__)("Standard - 4:3","ablocks"),(0,z.__)("Portrait - 3:4","ablocks"),(0,z.__)("Classic - 3:2","ablocks"),(0,z.__)("Classic Portrait - 2:3","ablocks"),(0,z.__)("Wide - 16:9","ablocks"),(0,z.__)("Tall - 9:16","ablocks"),_U.propTypes={},RU.propTypes={},SU.propTypes={};const WU={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute", | |
| 3137 | +viewBox:"0 0 24 24"},style:{fill:(0,Hs.qD)(i?.iconColor)||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure",ref:e,"data-scroll-option":l.value,"data-scroll-height":n?.["value"+g]??n?.value??0,"data-transition-time":s,children:f})]})}(0,L.__)("Static","ablocks"),(0,L.__)("Zoom in","ablocks"),(0,L.__)("Slide","ablocks"),(0,L.__)("Gray scale","ablocks"),(0,L.__)("Blur","ablocks"),(0,L.__)("Custom","ablocks"),(0,L.__)("Original","ablocks"),(0,L.__)("Square - 1:1","ablocks"),(0,L.__)("Standard - 4:3","ablocks"),(0,L.__)("Portrait - 3:4","ablocks"),(0,L.__)("Classic - 3:2","ablocks"),(0,L.__)("Classic Portrait - 2:3","ablocks"),(0,L.__)("Wide - 16:9","ablocks"),(0,L.__)("Tall - 9:16","ablocks"),NP.propTypes={},IP.propTypes={},VP.propTypes={};const OP={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute", | |
| 3120 | 3138 | selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},imageDataAttribute:{type:"object"},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},position:{type:"string",default:"below"},imgAltText:{type:"string",default:""}, |
| 3121 | 3139 | imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},transitionTime:{type:"number",default:3},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},cssHoverFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"", |
| 3122 | 3140 | 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, |
| 3123 | 3141 | isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},transitionDuration:{type:"number",default:.5}, |
| @@ -3128,23 +3146,23 @@ | ||
| 3128 | 3146 | 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", |
| 3129 | 3147 | 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:"", |
| 3130 | 3148 | 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:"", |
| 3131 | 3149 | 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:"", |
| 3132 | -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 UU(t){const{attributes:e,setAttributes:i,isSelected:o,block_id:a}=t,{imgId:l,imgIdTablet:n,imgIdMobile:s,imgUrl:b,alignment:c}=e,d=at();let u;u="Tablet"===d?n:"Mobile"===d?s:l;const{createNotice:p}=(0,r.useDispatch)("core/notices"),{image:m}=(0, | |
| 3133 | -r.useSelect)(t=>{const{getMedia:e}=t(ge.store);return{image:u&&o?e(u):null}},[l,n,s,o]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(C.BlockControls,{group:"block",children:[(0,L.jsx)(Fc,{attributeValue:c,setAttributes:i}),l&&(0,L.jsx)(L.Fragment,{})]}),l&&(0,L.jsx)(C.BlockControls,{group:"other",children:(0,L.jsx)(C.MediaReplaceFlow,{mediaId:["imgId"+d],mediaURL:b,allowedTypes:["image"],accept:"image/*",onSelect:t=>MU(t,e,i,d),onSelectURL:function(t){i({["imgId"+d]:a?.split("-")[0],["imgUrl"+d]:t})},onError:function(t){p("error",t,{type:"snackbar"})}})})]})}class PU{constructor(t){this.imageScroll=t,this.imageContainer=this.imageScroll.querySelector(".ablocks-block-container"),this.imageContainerWidth=this.imageContainer.getBoundingClientRect().width,this.imageFigure=this.imageScroll.querySelector(".ablocks-image-scroll__figure"),this.scrollOption=this.imageFigure.getAttribute("data-scroll-option");const e=this.imageFigure.getAttribute("data-scroll-height");try{ | |
| 3150 | +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function YP(t){const{attributes:e,setAttributes:i,isSelected:o,block_id:a}=t,{imgId:l,imgIdTablet:n,imgIdMobile:s,imgUrl:b,alignment:c}=e,d=lt();let u;u="Tablet"===d?n:"Mobile"===d?s:l;const{createNotice:p}=(0,r.useDispatch)("core/notices"),{image:m}=(0, | |
| 3151 | +r.useSelect)(t=>{const{getMedia:e}=t(zl.store);return{image:u&&o?e(u):null}},[l,n,s,o]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(D.BlockControls,{group:"block",children:[(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i}),l&&(0,I.jsx)(I.Fragment,{})]}),l&&(0,I.jsx)(D.BlockControls,{group:"other",children:(0,I.jsx)(D.MediaReplaceFlow,{mediaId:["imgId"+d],mediaURL:b,allowedTypes:["image"],accept:"image/*",onSelect:t=>CP(t,e,i,d),onSelectURL:function(t){i({["imgId"+d]:a?.split("-")[0],["imgUrl"+d]:t})},onError:function(t){p("error",t,{type:"snackbar"})}})})]})}class XP{constructor(t){this.imageScroll=t,this.imageContainer=this.imageScroll.querySelector(".ablocks-block-container"),this.imageContainerWidth=this.imageContainer.getBoundingClientRect().width,this.imageFigure=this.imageScroll.querySelector(".ablocks-image-scroll__figure"),this.scrollOption=this.imageFigure.getAttribute("data-scroll-option");const e=this.imageFigure.getAttribute("data-scroll-height");try{ | |
| 3134 | 3152 | const t=JSON.parse(e);this.scrollHeight="object"==typeof t?t.value:t}catch(t){this.scrollHeight=parseInt(e)||0}this.transitionTime=parseInt(this.imageFigure.getAttribute("data-transition-time")),this.image=this.imageScroll.querySelector(".ablocks-image-scroll__figure img"),this.image&&(this.imageSize=null,this.imageWidth=null,this.image.onload=()=>this.onImageLoad(),this.image.complete&&this.onImageLoad(),this.imageFigure.style.transitionDuration=`${this.transitionTime}s`,this.imageScroll.addEventListener("mouseenter",()=>this.handleMouseEnter()),this.imageScroll.addEventListener("mouseleave",()=>this.handleMouseLeave()))}onImageLoad(){this.imageSize=this.image.offsetHeight,this.imageWidth=this.image.offsetWidth,this.applyTransformations()}applyTransformations(){switch(this.scrollOption){case"mouse-scroll":case"horizontal-scroll":this.imageFigure.style.transform="translateX(0) translateY(0)";break;case"bottom-to-top":const t=this.imageSize-this.scrollHeight |
| 3135 | 3153 | ;this.imageFigure.style.transform=`translateY(${-Math.max(t,0)}px)`;break;case"right-to-left":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`}}handleMouseEnter(){switch(this.scrollOption){case"mouse-scroll":case"horizontal-scroll":this.imageFigure.style.transform="translateX(0) translateY(0)";break;case"top-to-bottom":const t=Math.max(this.imageSize-this.scrollHeight,0);this.imageFigure.style.transform=`translateY(${-t}px)`;break;case"bottom-to-top":this.imageFigure.style.transform="translateY(0)";break;case"left-to-right":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`;break;case"right-to-left":this.imageFigure.style.transform="translateX(0)"}}handleMouseLeave(){switch(this.scrollOption){case"mouse-scroll":case"horizontal-scroll":this.imageFigure.style.transform="translateX(0) translateY(0)";break;case"top-to-bottom":this.imageFigure.style.transform="translateY(0)";break |
| 3136 | -;case"bottom-to-top":const t=this.imageSize-this.scrollHeight;this.imageFigure.style.transform=`translateY(${-Math.max(t,0)}px)`;break;case"left-to-right":this.imageFigure.style.transform="translateX(0)";break;case"right-to-left":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`}}imageLoaded(){return new Promise(t=>{this.imageSize?t(this.imageSize):this.image.onload=()=>{t(this.image.offsetHeight)}})}}function jU(t){const{attributes:e,setAttributes:i,isSelected:o,currentImageData:n}=t,{block_id:s,imgUrl:r,imgId:b,imgIdTablet:c,imgIdMobile:d,showNotice:u,imageScrollOption:p,transitionTime:m,scrollHeight:h}=e,g=at(),f=!!r&&(0,L.jsx)("img",{alt:(0,z.__)("Edit image","ablocks"),title:(0,z.__)("Edit image","ablocks"),className:"edit-image-preview",src:r});(0,a.useEffect)(()=>{ | |
| 3137 | -if("top-to-bottom"===p.value||"bottom-to-top"===p.value||"left-to-right"===p.value||"right-to-left"===p.value||"mouse-scroll"===p.value||"horizontal-scroll"===p.value){const t=(0,M.bu)(".ablocks-block--image-scroll");null!==t&&new PU(t)}},[p,m,h]);const y=c&&d?"Tablet & Mobile":c?"Tablet":"Mobile";return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(UU,{...t}),(0,L.jsxs)(BW,{blockId:s,name:WU.UU,attributes:e,children:[u&&(0,L.jsxs)(A.Notice,{className:"ablocks-show-image-replace-all-notice",status:"info",isDismissible:!1,children:[(0,L.jsx)("p",{children:(0,z.sprintf)(/* translators: %s represents the device type option */ /* translators: %s represents the device type option */ | |
| 3138 | -(0,z.__)("You have different image for %s. Do you want to use this image for all devices?","ablocks"),y)}),(0,L.jsx)(A.Button,{isPrimary:!0,onClick:()=>i({imgId:b,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:r,imgUrlTablet:r,imgUrlMobile:r,showNotice:!1}),children:(0,z.__)("Use this image for all devices","ablocks")}),(0,L.jsx)(A.Button,{isSecondary:!0,onClick:()=>i({showNotice:!1}),children:(0,z.__)("skip","ablocks")})]}),(0,L.jsx)(SU,{currentImageData:n,attributeValue:e._image,attributes:e,setAttributes:i,attributeName:"_image",isResponsive:!0,block_id:s,isSelected:o}),(0,L.jsx)(C.MediaPlaceholder,{labels:{title:(0,z.__)("Image Scroll","ablocks"),instructions:(0,z.__)("Upload an image file, pick one from your media library, or add one with a URL.","ablocks")},onSelect:t=>MU(t,e,i,g),onSelectURL:t=>function(t){i({["imgId"+g]:s?.split("-")[0],["imgUrl"+g]:t})}(t),accept:"image/*",allowedTypes:["image"],value:{url:r},mediaPreview:f,disableMediaButtons:r})]})]})}jU.propTypes={} | |
| 3139 | -;const wU=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},zU=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},CU=t=>parseInt(t)||0,AU=(t,e="")=>{const{alignment:i}=t,o={},a=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),l=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),n=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),s=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),r=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),b=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),c=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),d=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return o["border-top-left-radius"]=r-a+"px", | |
| 3140 | -o["border-top-right-radius"]=c-s+"px",o["border-bottom-left-radius"]=d-l+"px",o["border-bottom-right-radius"]=b-n+"px",""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o["justify-content"]=i["value"+e]),o},LU=(t,e="")=>{const{opacity:i}=t,{imageScrollOption:o}=t,a="horizontal-scroll"===o.value||"left-to-right"===o.value||"right-to-left"===o.value,l={},n={...(0,Ob.qD)({attributeValue:i,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})};if(t["imgUrl"+e]&&(l["max-width"]="100%",a&&(l["max-width"]="none",l.height="100%"),l.transition="0.3s ease",l["box-sizing"]="border-box",""!==t?.objectFit["value"+e]&&"default"!==t?.objectFit["value"+e]&&(l["object-fit"]=t?.objectFit["value"+e]),t.aspectRatio&&"object"==typeof t.aspectRatio)){const i=t.aspectRatio["value"+e];i&&"original"!==i&&(l["aspect-ratio"]=i)}return{...l,...n,...(0,ay.qD)(t?.cssFilter,e)}},DU=(t,e="")=>{const{opacityH:i}=t,o={},a={...(0,Ob.qD)({attributeValue:i,defaultValue:"",property:"opacity", | |
| 3141 | -unitDefaultValue:"",device:e})},l={...(0,Ob.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},n={...(0,Ob.qD)({attributeValue:t.filterTransitionDuration,defaultValue:.5,property:"filterTransitionDuration",unitDefaultValue:"",device:e})};return t["imgUrl"+e]&&(""!==i&&void 0!==i&&(o.opacity=i),(t.border?.transitionDuration||t.boxShadow?.transitionDuration||n.filterTransitionDuration||l.transitionDuration)&&(o.transition=`\n\t\t\t\tborder ${t.border?.transitionDuration||l.transitionDuration}s, \n\t\t\t\tbox-shadow ${t.boxShadow?.transitionDuration||l.transitionDuration}s,\n\t\t\t\topacity ${n.filterTransitionDuration}s, \n\t\t\t\tfilter ${n.filterTransitionDuration}s, \n\t\t\t\ttransform 0.3s\n\t\t\t`)),{...o,...a,...(0,ay.qD)(t?.cssHoverFilter,e)}},NU=(t,e="")=>{const{scrollHeight:i,scrollWidth:o}=t;return{...{...(0,Ob.qD)({attributeValue:i,isResponsive:!0,property:"height",defaultValue:200,device:e})},...{...(0, | |
| 3142 | -Ob.qD)({attributeValue:o,isResponsive:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})}}},IU=t=>{const{imageScrollOption:e}=t,i={};return"mouse-scroll"===e.value?(i.position="static",i["overflow-y"]="scroll",i["overflow-x"]="hidden"):"top-to-bottom"===e.value||"bottom-to-top"===e.value?(i.position="static",i.overflow="hidden"):"horizontal-scroll"===e.value?(i.position="static",i["overflow-y"]="hidden",i["overflow-x"]="scroll"):("left-to-right"===e.value||"right-to-left"===e.value)&&(i.position="static",i.overflow="hidden"),i},VU=(t,e="")=>({color:(0,gs.qD)(t?.iconColor)||"black",position:"absolute",top:"45%",left:"50%","z-index":"5",opacity:"1",...(0,Ob.qD)({attributeValue:t?.iconFontSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:36,unitDefaultValue:"px",property:"font-size",device:e})});function OU(t){ | |
| 3143 | -const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y,link:T}=e,{href:H,linkTarget:M,noFollow:x,keyValue:k}=T||{};let v={};H&&(v.href=H),M&&(v.target="_blank"),v.rel=x?M?"nofollow noreferrer noopener":"nofollow":"noopener",k&&(v={...v,...(0,Wb.jM)(k)});const _=o&&(0,L.jsxs)("picture",{children:[(0,L.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,L.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,L.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u,height:d||p,title:r,loading:"lazy"})]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:WU.UU,attributes:e,children:[f&&(0,L.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,L.jsx)("div",{ | |
| 3144 | -className:"ablocks-icon ablocks-icon-wrap",children:(0,L.jsx)(Vd,{customIconData:{ | |
| 3154 | +;case"bottom-to-top":const t=this.imageSize-this.scrollHeight;this.imageFigure.style.transform=`translateY(${-Math.max(t,0)}px)`;break;case"left-to-right":this.imageFigure.style.transform="translateX(0)";break;case"right-to-left":const e=this.imageContainerWidth-this.imageWidth;this.imageFigure.style.transform=`translateX(${e}px)`}}imageLoaded(){return new Promise(t=>{this.imageSize?t(this.imageSize):this.image.onload=()=>{t(this.image.offsetHeight)}})}}function BP(t){const{attributes:e,setAttributes:i,isSelected:o,currentImageData:n}=t,{block_id:s,imgUrl:r,imgId:b,imgIdTablet:c,imgIdMobile:d,showNotice:u,imageScrollOption:p,transitionTime:m,scrollHeight:h}=e,g=lt(),f=!!r&&(0,I.jsx)("img",{alt:(0,L.__)("Edit image","ablocks"),title:(0,L.__)("Edit image","ablocks"),className:"edit-image-preview",src:r});(0,a.useEffect)(()=>{ | |
| 3155 | +if("top-to-bottom"===p.value||"bottom-to-top"===p.value||"left-to-right"===p.value||"right-to-left"===p.value||"mouse-scroll"===p.value||"horizontal-scroll"===p.value){const t=(0,M.bu)(".ablocks-block--image-scroll");null!==t&&new XP(t)}},[p,m,h]);const y=c&&d?"Tablet & Mobile":c?"Tablet":"Mobile";return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(YP,{...t}),(0,I.jsxs)(tP,{blockId:s,name:OP.UU,attributes:e,children:[u&&(0,I.jsxs)(N.Notice,{className:"ablocks-show-image-replace-all-notice",status:"info",isDismissible:!1,children:[(0,I.jsx)("p",{children:(0,L.sprintf)(/* translators: %s represents the device type option */ /* translators: %s represents the device type option */ | |
| 3156 | +(0,L.__)("You have different image for %s. Do you want to use this image for all devices?","ablocks"),y)}),(0,I.jsx)(N.Button,{isPrimary:!0,onClick:()=>i({imgId:b,imgIdTablet:void 0,imgIdMobile:void 0,imgUrl:r,imgUrlTablet:r,imgUrlMobile:r,showNotice:!1}),children:(0,L.__)("Use this image for all devices","ablocks")}),(0,I.jsx)(N.Button,{isSecondary:!0,onClick:()=>i({showNotice:!1}),children:(0,L.__)("skip","ablocks")})]}),(0,I.jsx)(VP,{currentImageData:n,attributeValue:e._image,attributes:e,setAttributes:i,attributeName:"_image",isResponsive:!0,block_id:s,isSelected:o}),(0,I.jsx)(D.MediaPlaceholder,{labels:{title:(0,L.__)("Image Scroll","ablocks"),instructions:(0,L.__)("Upload an image file, pick one from your media library, or add one with a URL.","ablocks")},onSelect:t=>CP(t,e,i,g),onSelectURL:t=>function(t){i({["imgId"+g]:s?.split("-")[0],["imgUrl"+g]:t})}(t),accept:"image/*",allowedTypes:["image"],value:{url:r},mediaPreview:f,disableMediaButtons:r})]})]})}BP.propTypes={} | |
| 3157 | +;const EP=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e)}},FP=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},qP=t=>parseInt(t)||0,$P=(t,e="")=>{const{alignment:i}=t,o={},a=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),l=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),n=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),s=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),r=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),b=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),c=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),d=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return o["border-top-left-radius"]=r-a+"px", | |
| 3158 | +o["border-top-right-radius"]=c-s+"px",o["border-bottom-left-radius"]=d-l+"px",o["border-bottom-right-radius"]=b-n+"px",""!==i["value"+e]&&void 0!==i["value"+e]&&(o.display="flex",o["justify-content"]=i["value"+e]),o},GP=(t,e="")=>{const{opacity:i}=t,{imageScrollOption:o}=t,a="horizontal-scroll"===o.value||"left-to-right"===o.value||"right-to-left"===o.value,l={},n={...(0,Eb.qD)({attributeValue:i,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})};if(t["imgUrl"+e]&&(l["max-width"]="100%",a&&(l["max-width"]="none",l.height="100%"),l.transition="0.3s ease",l["box-sizing"]="border-box",""!==t?.objectFit["value"+e]&&"default"!==t?.objectFit["value"+e]&&(l["object-fit"]=t?.objectFit["value"+e]),t.aspectRatio&&"object"==typeof t.aspectRatio)){const i=t.aspectRatio["value"+e];i&&"original"!==i&&(l["aspect-ratio"]=i)}return{...l,...n,...(0,cy.qD)(t?.cssFilter,e)}},ZP=(t,e="")=>{const{opacityH:i}=t,o={},a={...(0,Eb.qD)({attributeValue:i,defaultValue:"",property:"opacity", | |
| 3159 | +unitDefaultValue:"",device:e})},l={...(0,Eb.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},n={...(0,Eb.qD)({attributeValue:t.filterTransitionDuration,defaultValue:.5,property:"filterTransitionDuration",unitDefaultValue:"",device:e})};return t["imgUrl"+e]&&(""!==i&&void 0!==i&&(o.opacity=i),(t.border?.transitionDuration||t.boxShadow?.transitionDuration||n.filterTransitionDuration||l.transitionDuration)&&(o.transition=`\n\t\t\t\tborder ${t.border?.transitionDuration||l.transitionDuration}s, \n\t\t\t\tbox-shadow ${t.boxShadow?.transitionDuration||l.transitionDuration}s,\n\t\t\t\topacity ${n.filterTransitionDuration}s, \n\t\t\t\tfilter ${n.filterTransitionDuration}s, \n\t\t\t\ttransform 0.3s\n\t\t\t`)),{...o,...a,...(0,cy.qD)(t?.cssHoverFilter,e)}},KP=(t,e="")=>{const{scrollHeight:i,scrollWidth:o}=t;return{...{...(0,Eb.qD)({attributeValue:i,isResponsive:!0,property:"height",defaultValue:200,device:e})},...{...(0, | |
| 3160 | +Eb.qD)({attributeValue:o,isResponsive:!0,property:"width",defaultValue:100,unitDefaultValue:"%",device:e})}}},JP=t=>{const{imageScrollOption:e}=t,i={};return"mouse-scroll"===e.value?(i.position="static",i["overflow-y"]="scroll",i["overflow-x"]="hidden"):"top-to-bottom"===e.value||"bottom-to-top"===e.value?(i.position="static",i.overflow="hidden"):"horizontal-scroll"===e.value?(i.position="static",i["overflow-y"]="hidden",i["overflow-x"]="scroll"):("left-to-right"===e.value||"right-to-left"===e.value)&&(i.position="static",i.overflow="hidden"),i},QP=(t,e="")=>({color:(0,Hs.qD)(t?.iconColor)||"black",position:"absolute",top:"45%",left:"50%","z-index":"5",opacity:"1",...(0,Eb.qD)({attributeValue:t?.iconFontSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:36,unitDefaultValue:"px",property:"font-size",device:e})});function tU(t){ | |
| 3161 | +const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y,link:T}=e,{href:H,linkTarget:M,noFollow:x,keyValue:k}=T||{};let v={};H&&(v.href=H),M&&(v.target="_blank"),v.rel=x?M?"nofollow noreferrer noopener":"nofollow":"noopener",k&&(v={...v,...(0,wb.jM)(k)});const _=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u,height:d||p,title:r,loading:"lazy"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:OP.UU,attributes:e,children:[f&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,I.jsx)("div",{ | |
| 3162 | +className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{ | |
| 3145 | 3163 | path:"M7.67993 9.84002V14.16C7.67993 16.536 9.62393 18.48 11.9999 18.48C14.3759 18.48 16.3199 16.536 16.3199 14.16V9.84002C16.3199 7.46402 14.3759 5.52002 11.9999 5.52002C9.62393 5.52002 7.67993 7.46402 7.67993 9.84002ZM11.9999 6.48002C13.8479 6.48002 15.3599 7.99202 15.3599 9.84002V14.16C15.3599 16.008 13.8479 17.52 11.9999 17.52C10.1519 17.52 8.63993 16.008 8.63993 14.16V9.84002C8.63993 7.99202 10.1519 6.48002 11.9999 6.48002Z M12 10.5602C12.264 10.5602 12.48 10.3442 12.48 10.0802V8.64016C12.48 8.37616 12.264 8.16016 12 8.16016C11.736 8.16016 11.52 8.37616 11.52 8.64016V10.0802C11.52 10.3442 11.736 10.5602 12 10.5602Z M11.6638 22.1762C11.7598 22.2722 11.8798 22.3202 11.9998 22.3202C12.1198 22.3202 12.2398 22.2722 12.3358 22.1762L13.5358 20.9762C13.7278 20.7842 13.7278 20.4962 13.5358 20.3042C13.3438 20.1122 13.0558 20.1122 12.8638 20.3042L11.9998 21.1682L11.1358 20.3042C10.9438 20.1122 10.6558 20.1122 10.4638 20.3042C10.2718 20.4962 10.2718 20.7842 10.4638 20.9762L11.6638 22.1762Z M11.6638 1.82418L10.4638 3.02418C10.2718 3.21618 10.2718 3.50418 10.4638 3.69618C10.5598 3.79218 10.6798 3.84018 10.7998 3.84018C10.9198 3.84018 11.0398 3.79218 11.1358 3.69618L11.9998 2.83218L12.8638 3.69618C12.9598 3.79218 13.0798 3.84018 13.1998 3.84018C13.3198 3.84018 13.4398 3.79218 13.5358 3.69618C13.7278 3.50418 13.7278 3.21618 13.5358 3.02418L12.3358 1.82418C12.1438 1.63218 11.8558 1.63218 11.6638 1.82418Z", |
| 3146 | -viewBox:"0 0 24 24"},style:{fill:(0,gs.qD)(e?.iconColor)||"black"}})}),(0,L.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h.value,"data-transition-time":g,children:H?(0,L.jsx)("a",{...v,children:_}):_})]})})}OU.propTypes={};const YU={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}}, | |
| 3164 | +viewBox:"0 0 24 24"},style:{fill:(0,Hs.qD)(e?.iconColor)||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h.value,"data-transition-time":g,children:H?(0,I.jsx)("a",{...v,children:_}):_})]})})}tU.propTypes={};const eU={UU:"ablocks/image-scroll",uK:{block_id:{type:"string",default:""},imgId:{type:"string",default:""},imgIdTablet:{type:"string",default:""},imgIdMobile:{type:"string",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""}},aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""}},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}}, | |
| 3147 | 3165 | imageDataAttribute:{type:"object"},widthHeightWidget:{type:"object",default:{imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1}},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},position:{type:"string",default:"below"},imgAltText:{type:"string",default:""},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},transitionTime:{type:"number",default:3},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},cssHoverFilter:{type:"object",default:{blur:"", |
| 3148 | 3166 | brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"", |
| 3149 | 3167 | 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, |
| 3150 | 3168 | isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},opacity:{type:"number",default:1},opacityH:{type:"number",default:""},transitionDuration:{type:"number",default:.5},filterTransitionDuration:{type:"number",default:.5},iconFontSize:{type:"number",default:35},scrollHeight:{type:"number",default:300},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"", |
| @@ -3154,33 +3172,33 @@ | ||
| 3154 | 3172 | 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:"", |
| 3155 | 3173 | 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:"", |
| 3156 | 3174 | 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:"", |
| 3157 | 3175 | skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object", |
| 3158 | -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 XU(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y}=e,T=o&&(0,L.jsxs)("picture",{children:[(0,L.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,L.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,L.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u, | |
| 3159 | -height:d||p,title:r,loading:"lazy"})]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:YU.UU,attributes:e,children:[f&&(0,L.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,L.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,L.jsx)(Vd,{customIconData:{ | |
| 3176 | +default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function iU(t){const{attributes:e}=t,{block_id:i,imgUrl:o,imgUrlTablet:a,imgUrlMobile:n,imgTitle:r,imgAltText:b,widthHeightWidget:{width:c,height:d,imgNaturalWidth:u,imgNaturalHeight:p},imageScrollOption:m,scrollHeight:h,transitionTime:g,showOverlay:f,showIcon:y}=e,T=o&&(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width:800px)",className:"ablocks-image",srcSet:o}),(0,I.jsx)("source",{media:"(min-width:480px)",className:"ablocks-image-tablet",srcSet:a||o}),(0,I.jsx)("img",{src:n||a||o,className:s()("ablocks-image-mobile ablocks-image--effect"),alt:b,width:c||u, | |
| 3177 | +height:d||p,title:r,loading:"lazy"})]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:eU.UU,attributes:e,children:[f&&(0,I.jsx)("div",{className:"ablocks-block-image-overlay"}),y&&(0,I.jsx)("div",{className:"ablocks-icon ablocks-icon-wrap",children:(0,I.jsx)(Fd,{customIconData:{ | |
| 3160 | 3178 | path:"M7.67993 9.84002V14.16C7.67993 16.536 9.62393 18.48 11.9999 18.48C14.3759 18.48 16.3199 16.536 16.3199 14.16V9.84002C16.3199 7.46402 14.3759 5.52002 11.9999 5.52002C9.62393 5.52002 7.67993 7.46402 7.67993 9.84002ZM11.9999 6.48002C13.8479 6.48002 15.3599 7.99202 15.3599 9.84002V14.16C15.3599 16.008 13.8479 17.52 11.9999 17.52C10.1519 17.52 8.63993 16.008 8.63993 14.16V9.84002C8.63993 7.99202 10.1519 6.48002 11.9999 6.48002Z M12 10.5602C12.264 10.5602 12.48 10.3442 12.48 10.0802V8.64016C12.48 8.37616 12.264 8.16016 12 8.16016C11.736 8.16016 11.52 8.37616 11.52 8.64016V10.0802C11.52 10.3442 11.736 10.5602 12 10.5602Z M11.6638 22.1762C11.7598 22.2722 11.8798 22.3202 11.9998 22.3202C12.1198 22.3202 12.2398 22.2722 12.3358 22.1762L13.5358 20.9762C13.7278 20.7842 13.7278 20.4962 13.5358 20.3042C13.3438 20.1122 13.0558 20.1122 12.8638 20.3042L11.9998 21.1682L11.1358 20.3042C10.9438 20.1122 10.6558 20.1122 10.4638 20.3042C10.2718 20.4962 10.2718 20.7842 10.4638 20.9762L11.6638 22.1762Z M11.6638 1.82418L10.4638 3.02418C10.2718 3.21618 10.2718 3.50418 10.4638 3.69618C10.5598 3.79218 10.6798 3.84018 10.7998 3.84018C10.9198 3.84018 11.0398 3.79218 11.1358 3.69618L11.9998 2.83218L12.8638 3.69618C12.9598 3.79218 13.0798 3.84018 13.1998 3.84018C13.3198 3.84018 13.4398 3.79218 13.5358 3.69618C13.7278 3.50418 13.7278 3.21618 13.5358 3.02418L12.3358 1.82418C12.1438 1.63218 11.8558 1.63218 11.6638 1.82418Z", |
| 3161 | -viewBox:"0 0 24 24"},style:{fill:e?.iconColor||"black"}})}),(0,L.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h,"data-transition-time":g,children:T})]})})}XU.propTypes={},(0,M.xV)(WU.UU)&&(0,o.registerBlockType)(WU.UU,{title:"Image Scroll",attributes:WU.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--image-scroll"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{imgUrl:n,block_id:s}=i,[r,c]=(0,a.useState)({});(0,a.useEffect)(()=>{s&&s===l||o({block_id:l})},[s,l]);const d=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}",wU(i),wU(i,"Tablet"),wU(i,"Mobile")),t.addClassStyles("{{WRAPPER}}:hover",zU(i),zU(i,"Tablet"),zU(i,"Mobile")),t.addClassStyles("\n\t\t\t{{WRAPPER}} .ablocks-block-container\n\t\t\t",NU(i),NU(i,"Tablet"),NU(i,"Mobile")),n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container",IU(i),IU(i),IU(i)), | |
| 3162 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-image-overlay",(t=>{const e={},i=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),o=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),a=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),l=CU(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),n=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),s=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),r=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),b=CU(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return e["border-top-left-radius"]=n-i+"px",e["border-top-right-radius"]=r-l+"px",e["border-bottom-left-radius"]=b-o+"px",e["border-bottom-right-radius"]=s-a+"px",e["background-color"]=(0,gs.qD)(t?.overlayColor),e.position="absolute",e.top="0",e.left="0",e.right="0",e.bottom="0",e["z-index"]=4,e.display="block",e})(i)), | |
| 3163 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-block-image-overlay",{display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",AU(i),AU(i,"Tablet"),AU(i,"Mobile")),n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure",{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"}),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img",LU(i),LU(i,"Tablet"),LU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img:hover",DU(i),DU(i,"Tablet"),DU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",VU(i),VU(i,"Tablet"),VU(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-icon-wrap",{opacity:"0"}),(0,b.applyFilters)("ablocks.image.editorInlineCSS",null,i,t)||t.generateCSS()},[i]),u={currentImageData:r, | |
| 3164 | -setCurrentImageData:c};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:d}),e&&(0,L.jsx)(_U,{...u,...t}),(0,L.jsx)(jU,{...u,...t})]})},save:OU,deprecated:[{attributes:YU.uK,save:XU}]});var BU=i(86781);function EU(t){ | |
| 3165 | -const{attributes:e,setAttributes:i}=t,{alignment:a,taxonomyTitleTypography:l,taxonomyTitlecolor:n,postTitleHoverColor:s,selectedPostType:b,selectedTerms:c={},activeTaxonomy:d=[],postOrder:u,postOrderBy:p,numberOfPosts:m,enableReloadButton:h,allowIcon:g,showTermCount:f,postCountBorder:y,postCountBgColor:T,postCountColor:H,taxonomyTitlePadding:M,taxonomyTitletBgColor:x,taxonomyTitleDirection:k,taxonomyTitlePosition:v,taxonomyTitleBorder:_,postTitleColor:R,postTitleTypography:S,buttonPadding:W,buttonBorder:U,buttonBgColor:P,buttonHoverBgColor:j,buttonColor:w,buttonHoverColor:N,buttonTypography:I,buttonPosition:V,cardBgColor:O,cardPadding:Y,cardBorder:X,cardBoxShadow:B,buttonText:E,showTab:F,postPadding:q,activePostBackgroundColor:$,hoverPostBackgroundColor:G,postTitleActiveColor:Z,activePostBorder:K,postBorder:J,postBackgroundColor:Q,showPost:tt,cardBgHoverColor:et,showPostLink:it,showInherit:at,postCountTypography:lt,showTermCountPrefix:nt,countPrefixText:st,iconColor:rt,iconBorderRadius:bt,iconBgColor:ct,iconPadding:dt,showIconDffent:ut,pageLinks:pt,showTabScrolling:mt,taxonomyLayout:ht=!0}=e,gt=(0, | |
| 3166 | -r.useSelect)(t=>(t(ge.store).getPostTypes({per_page:-1})||[]).filter(t=>t.viewable&&"attachment"!==t.slug),[]),ft=(0,r.useSelect)(t=>b?(t(ge.store).getTaxonomies({type:b})||[]).map(e=>{const i=t(ge.store).getEntityRecords("taxonomy",e.slug,{per_page:-1})||[];return{...e,terms:i}}):[],[b]),yt=(t,e)=>{i({selectedTerms:{...c,[t]:e}})},Tt=Array.isArray(gt)&&b?gt.find(t=>t.slug===b):null,Ht=!!Tt?.supports?.["page-attributes"]||!!Tt?.hierarchical,xt=[{label:(0,z.__)("Date","ablocks"),value:"date"},{label:(0,z.__)("Title","ablocks"),value:"title"}];!Ht&&b||xt.push({label:(0,z.__)("Menu Order","ablocks"),value:"menu_order"}),ft.map(t=>({label:t.name,value:t.slug}));const kt=ft.filter(t=>d.includes(t.slug)),_t=Boolean((e?.query&&e.query.inherit)??e?.initial??e?.showInherit),Rt=(0,r.useSelect)(t=>t("core/edit-site"),[]),St=(0,r.useSelect)(()=>Rt?.getEditedPostId?.()||"",[Rt]),Wt=(0,r.useSelect)(()=>Rt?.getEditedPostType?.()||"wp_template",[Rt]),Pt=(0, | |
| 3167 | -r.useSelect)(t=>St&&Wt?t(ge.store).getEntityRecord("postType",Wt,St):null,[St,Wt]),jt="string"==typeof St?St.split("/").filter(Boolean).pop():"",wt=(()=>{try{const t=new URLSearchParams(window.location.search).get("p");return t&&decodeURIComponent(t).split("/").filter(Boolean).pop()||""}catch{return""}})(),zt=jt||wt,At=/^archive(?:-|$)/i.test(zt),Lt=(0,Ot.useMemo)(()=>{const t=Pt?.content?.raw||Pt?.content?.rendered||"";if(!t)return"";try{const e=(0,o.parse)(t);let i="";const a=(t=[])=>{for(const e of t){if("core/query"===e?.name){const t=e?.attributes?.query;if(t?.postType&&(i=Array.isArray(t.postType)?t.postType[0]||"":t.postType,i))return!0}if(e?.innerBlocks?.length&&a(e.innerBlocks))return!0}return!1};return a(e),i||""}catch{return""}},[Pt]),Dt=(()=>{const t=zt?.match(/^archive-([a-z0-9_-]+)$/i);return t&&t[1]?t[1]:""})(),It=(0,Ot.useMemo)(()=>{const t=Dt;if(!t)return"";if(!Array.isArray(gt)||!gt.length)return"" | |
| 3168 | -;const e=gt.find(e=>e.slug===t||!0===e.has_archive&&t===e.slug||"string"==typeof e.has_archive&&e.has_archive.toLowerCase()===t.toLowerCase());return e?.slug||""},[gt,Dt]),Yt=(0,Ot.useMemo)(()=>{if(Lt)return Lt;if(Dt&&Array.isArray(gt)&>.some(t=>t.slug===Dt))return Dt;if(It)return It;if(Array.isArray(gt)&>.length){const t=gt.find(t=>t.has_archive&&"post"!==t.slug)||gt.find(t=>"post"===t.slug);return t?.slug||""}return""},[Lt,Dt,It,gt]);(0,Ot.useEffect)(()=>{_t&&At&&Array.isArray(gt)&>.length&&Yt&&b!==Yt&&i({selectedPostType:Yt})},[_t,At,gt,Yt]);const Xt=(0,Ot.useRef)(null);return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Taxonomy Settings","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Inherit","ablocks"),attributeValue:at,setAttributes:i,attributeName:"showInherit"}),!at&&(0,L.jsx)(Ut,{label:(0, | |
| 3169 | -z.__)("Select Post Type","ablocks"),options:[{label:(0,z.__)("Select a post type","ablocks"),value:""},...gt.map(t=>({label:t.name,value:t.slug}))],attributeName:"selectedPostType",attributeValue:b,setAttributes:i}),b&&(0,L.jsx)(Ut,{label:(0,z.__)("Select Taxonomies","ablocks"),attributeName:"activeTaxonomy",attributeValue:Array.isArray(d)?d[0]:null,setAttributes:t=>{const{activeTaxonomy:e}=t,o=Array.isArray(e)?e:[e];i({activeTaxonomy:o})},options:[{label:(0,z.__)("Select Taxonomy","ablocks"),value:""},...ft.map(t=>({label:t.name,value:t.slug}))],isMultiple:!1,isSearchable:!0,placeholder:(0,z.__)("Select Taxonomy","ablocks")}),!at&&kt.map(t=>{const e=t.terms.map(t=>({label:f?`${t.name} (${t.count})`:t.name,value:t.id})),i=Array.isArray(c?.[t.slug])?c[t.slug]:[],o=i.map(t=>e.find(e=>e.value===t)).filter(Boolean);return(0,L.jsxs)("div",{children:[(0,L.jsxs)("label",{children:[(0,z.__)("Select","ablocks")," ",t.name]}),(0,L.jsx)(Pl,{isMulti:!0,isSearchable:!0,options:e,value:o, | |
| 3170 | -onChange:e=>{const o=(e||[]).map(t=>t.value);yt(t.slug,((t=[],e=[])=>{const i=new Set(e);return[...t.filter(t=>i.has(t)),...e.filter(e=>!t.includes(e))]})(i,o))}}),i.length>0&&(0,L.jsxs)("div",{className:"ablocks-taxonomy__position-drag",children:[(0,L.jsx)("div",{children:(0,z.__)("Position Drag to reorder","ablocks")}),(0,L.jsx)("div",{onDragOver:t=>t.preventDefault(),children:i.map((o,a)=>{const l=e.find(t=>t.value===o);return l?(0,L.jsxs)("div",{className:"ablocks-taxonomy__position-drag_item",draggable:!0,onDragStart:()=>{Xt.current=a},onDragOver:t=>t.preventDefault(),onDrop:()=>{if(null===Xt.current||Xt.current===a)return void(Xt.current=null);const e=((t,e,i)=>{const o=Array.from(t),[a]=o.splice(e,1);return o.splice(i,0,a),o})(i,Xt.current,a);Xt.current=null,yt(t.slug,e)},title:(0,z.__)("Position Drag to reorder","ablocks"),children:[(0,L.jsx)("span",{children:l.label}),(0,L.jsx)("span",{children:"⠿"})]},`${t.slug}-${o}`):null})})]})]},t.slug)}),d.length>0&&(0, | |
| 3171 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Taxonomy Link","ablocks"),attributeValue:it,setAttributes:i,attributeName:"showPostLink"}),it&&(0,L.jsx)(Ut,{label:(0,z.__)("Taxonomy Link Type","ablocks"),attributeName:"pageLinks",attributeValue:e.pageLinks,setAttributes:i,options:[{label:(0,z.__)("Single Page link","ablocks"),value:"singlePagelink"},{label:(0,z.__)("Archive page link","ablocks"),value:"archivePagelink"}]}),it&&(0,L.jsx)("div",{style:{paddingBottom:"20px",display:"block",fontSize:"12px"},children:(0,L.jsxs)("i",{children:[" ",(0,z.__)("Frontend: show all taxonomy titles as links. Editor: show only the taxonomy title as a link.","ablocks")]})}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Post","ablocks"),attributeValue:tt,setAttributes:i,attributeName:"showPost"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Term Post Count","ablocks"),attributeValue:f,setAttributes:i,attributeName:"showTermCount"}),f&&(0, | |
| 3172 | -L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Prefix","ablocks"),attributeValue:nt,setAttributes:i,attributeName:"showTermCountPrefix"}),nt&&(0,L.jsx)(ql,{label:(0,z.__)("Count Prefix Text","ablocks"),attributeName:"countPrefixText",attributeValue:st,setAttributes:i,isInline:!1,placeholder:(0,z.__)("Items","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Layout Style","ablocks"),attributeName:"taxonomyLayout",attributeValue:e.taxonomyLayout,setAttributes:i,options:[{label:(0,z.__)("List View","ablocks"),value:"list"},{label:(0,z.__)("Flex/Grid View","ablocks"),value:"flex"}]}),"list"===e.taxonomyLayout&&(0,L.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,L.jsx)("i",{children:(0,z.__)("Tab View Show Only FrontEnd","ablocks")})}),"list"===e.taxonomyLayout&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Tab View","ablocks"),attributeValue:F,setAttributes:i,attributeName:"showTab"}),"list"===e.taxonomyLayout&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0, | |
| 3173 | -z.__)("Show Tab Scrolling","ablocks"),attributeValue:mt,setAttributes:i,attributeName:"showTabScrolling"}),"flex"===e.taxonomyLayout&&(0,L.jsx)(Ut,{label:(0,z.__)("Items Per Row","ablocks"),attributeName:"itemsPerRow",attributeValue:e.itemsPerRow,setAttributes:i,options:Array.from({length:6},(t,e)=>({label:`${e+1}`,value:e+1}))}),tt&&(0,L.jsx)(Ut,{label:(0,z.__)("Post Order By","ablocks"),attributeName:"postOrderBy",attributeValue:p,setAttributes:i,options:xt}),tt&&(0,L.jsx)(Ut,{label:(0,z.__)("Post Order","ablocks"),attributeName:"postOrder",attributeValue:u,setAttributes:i,options:[{label:(0,z.__)("Descending","ablocks"),value:"desc"},{label:(0,z.__)("Ascending","ablocks"),value:"asc"}]}),tt&&(0,L.jsx)(Ut,{label:(0,z.__)("Number of Posts","ablocks"),attributeName:"numberOfPosts",attributeValue:m,setAttributes:i,options:[{label:(0,z.__)("All","ablocks"),value:-1},...Array.from({length:20},(t,e)=>({label:`${e+1}`,value:e+1}))]}),tt&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0, | |
| 3174 | -z.__)("Enable Reload Button","ablocks"),attributeValue:h,setAttributes:i,attributeName:"enableReloadButton"}),h&&(0,L.jsx)(ql,{label:(0,z.__)("Button Text","ablocks"),attributeName:"buttonText",attributeValue:E,setAttributes:i,isInline:!1,placeholder:(0,z.__)("View More","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Allow icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"allowIcon"})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,L.jsx)("i",{children:(0,z.__)("Taxonomy Card Style","ablocks")})}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:a,setAttributes:i,isInline:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Card Background Color","ablocks"),isGradient:!0,attributeName:"cardBgColor",attributeValue:O,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Card Hover Background Color","ablocks"),isGradient:!0, | |
| 3175 | -attributeName:"cardBgHoverColor",attributeValue:et,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Card Border","ablocks"),isResponsive:!0,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"cardBorder",attributeValue:X,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Card Padding","ablocks"),isResponsive:!0,attributeName:"cardPadding",attributeValue:Y,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Card Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"cardBoxShadow",attributeValue:B,setAttributes:i})]})})}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Taxonomy Title Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"taxonomyTitlePosition",attributeValue:v,setAttributes:i,options:[{label:(0,z.__)("Start","ablocks"),value:"start",icon:"arrow-left"},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:"wrap"},{label:(0,z.__)("Space Around","ablocks"), | |
| 3176 | -value:"space-around",icon:"wrap"},{label:"right",value:"right",icon:"arrow-right"}],isInline:!1}),(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),attributeName:"taxonomyTitleDirection",attributeValue:k,setAttributes:i,options:[{label:(0,z.__)("Row","ablocks"),value:"row",icon:"arrow-left"},{label:(0,z.__)("Column","ablocks"),value:"column",icon:"wrap"}],isInline:!1}),e.taxonomyTitleDirection&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Icon Position","ablocks"),attributeValue:ut,setAttributes:i,attributeName:"showIconDffent"}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"taxonomyTitleTypography",attributeValue:l,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0,attributeName:"taxonomyTitlecolor",attributeValue:n,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!0,attributeName:"taxonomyTitletBgColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(Mt,{label:(0, | |
| 3177 | -z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"taxonomyTitlePadding",attributeValue:M,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"taxonomyTitleBorder",attributeValue:_,setAttributes:i})]}),f&&(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Taxonomy Post Count Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"postCountTypography",attributeValue:lt,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"postCountColor",attributeValue:H,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!0,attributeName:"postCountBgColor",attributeValue:T,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Post Count Width","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"postCountWidth",attributeValue:e?.postCountWidth,setAttributes:i, | |
| 3178 | -attributeDefaultValue:BU.e3}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"postCountBorder",attributeValue:y,setAttributes:i})]}),tt&&(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Post Title Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"postTitleTypography",attributeValue:S,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"postTitleColor",attributeValue:R,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"postBackgroundColor",attributeValue:Q,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"postPadding",attributeValue:q,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{ | |
| 3179 | -attributeName:"postBorder",attributeValue:J,setAttributes:i}),(0,L.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,L.jsx)("i",{children:(0,z.__)("Active Style","ablocks")})}),(0,L.jsx)(vs,{label:(0,z.__)("Active Color","ablocks"),attributeName:"postTitleActiveColor",attributeValue:Z,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"activePostBackgroundColor",attributeValue:$,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"activePostBorder",attributeValue:K,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Post Title Hover Color","ablocks"),attributeName:"postTitleHoverColor",attributeValue:s,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"hoverPostBackgroundColor",attributeValue:G,setAttributes:i})]}),active:(0,L.jsx)(L.Fragment,{})})]}),h&&(0,L.jsxs)(A.PanelBody,{ | |
| 3180 | -title:(0,z.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),attributeName:"buttonPosition",attributeValue:V,setAttributes:i,options:[{label:(0,z.__)("Full Width","ablocks"),value:"block",icon:"arrow-left"},{label:(0,z.__)("Inline","ablocks"),value:"inline",icon:"wrap"}],isInline:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:I,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"buttonColor",attributeValue:w,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"buttonBgColor",attributeValue:P,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeName:"buttonHoverColor",attributeValue:N,setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 3181 | -z.__)("Background Hover Color","ablocks"),attributeName:"buttonHoverBgColor",attributeValue:j,setAttributes:i})]})}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:U,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:W,setAttributes:i})]}),g&&(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Icon Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"iconsSize",attributeValue:e?.iconsSize,setAttributes:i,attributeDefaultValue:BU.W0}),(0,L.jsx)(vs,{label:(0,z.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:rt,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"iconBgColor",attributeValue:ct,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"), | |
| 3182 | -attributeName:"iconPadding",attributeValue:dt,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Border radius","ablocks"),attributeName:"iconBorderRadius",attributeValue:bt,setAttributes:i})]})]})})}EU.propTypes={};const FU={UU:"ablocks/taxonomy-listing",uK:{block_id:{type:"string",default:""},selectedPostType:{type:"string",default:"post"},selectedTerms:{type:"object",default:[]},activeTaxonomy:{type:"array",default:[]},selectedTaxonomies:{type:"array",default:[]},numberOfPosts:{type:"number",default:6},postOrder:{type:"string",default:"desc"},postOrderBy:{type:"string",default:"date"},taxonomyLayout:{type:"string",default:"flex",copyStyle:!0},pageLinks:{type:"string",default:"singlePagelink",copyStyle:!0},itemsPerRow:{type:"number",default:3,copyStyle:!0},showTermCount:{type:"boolean",default:!0},enableReloadButton:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!1},textPostColor:{type:"string",default:!1},postCountBorder:{type:"object",default:""},postCountBgColor:{ | |
| 3179 | +viewBox:"0 0 24 24"},style:{fill:e?.iconColor||"black"}})}),(0,I.jsx)("figure",{className:"ablocks-image-scroll__figure","data-scroll-option":m.value,"data-scroll-height":h,"data-transition-time":g,children:T})]})})}iU.propTypes={},(0,M.xV)(OP.UU)&&(0,o.registerBlockType)(OP.UU,{title:(0,L.__)("Image Scroll","ablocks"),attributes:OP.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--image-scroll"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{imgUrl:n,block_id:s}=i,[r,c]=(0,a.useState)({});(0,a.useEffect)(()=>{s&&s===l||o({block_id:l})},[s,l]);const d=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",EP(i),EP(i,"Tablet"),EP(i,"Mobile"),t.customDeviceMap(t=>EP(i,t))),t.addClassStyles("{{WRAPPER}}:hover",FP(i),FP(i,"Tablet"),FP(i,"Mobile"),t.customDeviceMap(t=>FP(i,t))),t.addClassStyles("\n\t\t\t{{WRAPPER}} .ablocks-block-container\n\t\t\t",KP(i),KP(i,"Tablet"),KP(i,"Mobile"),t.customDeviceMap(t=>KP(i,t))), | |
| 3180 | +n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container",JP(i),JP(i),JP(i),t.customDeviceMap(t=>JP(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-image-overlay",(t=>{const e={},i=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.topWidth),o=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.bottomWidth),a=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.leftWidth),l=qP(t?.border?.commonWidth?t?.border?.commonWidth:t?.border?.rightWidth),n=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.topRadius),s=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.leftRadius),r=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.rightRadius),b=qP(t?.border?.commonRadius?t?.border?.commonRadius:t?.border?.bottomRadius);return e["border-top-left-radius"]=n-i+"px",e["border-top-right-radius"]=r-l+"px",e["border-bottom-left-radius"]=b-o+"px",e["border-bottom-right-radius"]=s-a+"px",e["background-color"]=(0,Hs.qD)(t?.overlayColor), | |
| 3181 | +e.position="absolute",e.top="0",e.left="0",e.right="0",e.bottom="0",e["z-index"]=4,e.display="block",e})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-block-image-overlay",{display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",$P(i),$P(i,"Tablet"),$P(i,"Mobile"),t.customDeviceMap(t=>$P(i,t))),n&&t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure",{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"},{position:"static !important",width:"100% !important"},t.customDeviceMap(t=>({position:"static !important",width:"100% !important"}))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img",GP(i),GP(i,"Tablet"),GP(i,"Mobile"),t.customDeviceMap(t=>GP(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-image-figure img:hover",ZP(i),ZP(i,"Tablet"),ZP(i,"Mobile"),t.customDeviceMap(t=>ZP(i,t))), | |
| 3182 | +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",QP(i),QP(i,"Tablet"),QP(i,"Mobile"),t.customDeviceMap(t=>QP(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--image-scroll:hover .ablocks-icon-wrap",{opacity:"0"}),(0,b.applyFilters)("ablocks.image.editorInlineCSS",null,i,t)||t.generateCSS()},[i]),u={currentImageData:r,setCurrentImageData:c};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:d}),e&&(0,I.jsx)(NP,{...u,...t}),(0,I.jsx)(BP,{...u,...t})]})},save:tU,deprecated:[{attributes:eU.uK,save:iU}]});var oU=i(86781);function aU(t){ | |
| 3183 | +const{attributes:e,setAttributes:i}=t,{alignment:a,taxonomyTitleTypography:l,taxonomyTitlecolor:n,postTitleHoverColor:s,selectedPostType:b,selectedTerms:c={},activeTaxonomy:d=[],postOrder:u,postOrderBy:p,numberOfPosts:m,enableReloadButton:h,allowIcon:g,showTermCount:f,postCountBorder:y,postCountBgColor:T,postCountColor:H,taxonomyTitlePadding:M,taxonomyTitletBgColor:x,taxonomyTitleDirection:k,taxonomyTitlePosition:v,taxonomyTitleBorder:_,postTitleColor:R,postTitleTypography:S,buttonPadding:W,buttonBorder:P,buttonBgColor:U,buttonHoverBgColor:j,buttonColor:w,buttonHoverColor:z,buttonTypography:C,buttonPosition:A,cardBgColor:O,cardPadding:Y,cardBorder:X,cardBoxShadow:B,buttonText:E,showTab:F,postPadding:q,activePostBackgroundColor:$,hoverPostBackgroundColor:G,postTitleActiveColor:Z,activePostBorder:K,postBorder:J,postBackgroundColor:Q,showPost:tt,cardBgHoverColor:et,showPostLink:it,showInherit:ot,postCountTypography:lt,showTermCountPrefix:nt,countPrefixText:st,iconColor:rt,iconBorderRadius:bt,iconBgColor:ct,iconPadding:dt,showIconDffent:ut,pageLinks:pt,showTabScrolling:mt,taxonomyLayout:ht=!0}=e,gt=(0, | |
| 3184 | +r.useSelect)(t=>(t(zl.store).getPostTypes({per_page:-1})||[]).filter(t=>t.viewable&&"attachment"!==t.slug),[]),ft=(0,r.useSelect)(t=>b?(t(zl.store).getTaxonomies({type:b})||[]).map(e=>{const i=t(zl.store).getEntityRecords("taxonomy",e.slug,{per_page:-1})||[];return{...e,terms:i}}):[],[b]),yt=(t,e)=>{i({selectedTerms:{...c,[t]:e}})},Tt=Array.isArray(gt)&&b?gt.find(t=>t.slug===b):null,Ht=!!Tt?.supports?.["page-attributes"]||!!Tt?.hierarchical,Mt=[{label:(0,L.__)("Date","ablocks"),value:"date"},{label:(0,L.__)("Title","ablocks"),value:"title"}];!Ht&&b||Mt.push({label:(0,L.__)("Menu Order","ablocks"),value:"menu_order"}),ft.map(t=>({label:t.name,value:t.slug}));const kt=ft.filter(t=>d.includes(t.slug)),vt=Boolean((e?.query&&e.query.inherit)??e?.initial??e?.showInherit),Rt=(0,r.useSelect)(t=>t("core/edit-site"),[]),St=(0,r.useSelect)(()=>Rt?.getEditedPostId?.()||"",[Rt]),Wt=(0,r.useSelect)(()=>Rt?.getEditedPostType?.()||"wp_template",[Rt]),Pt=(0, | |
| 3185 | +r.useSelect)(t=>St&&Wt?t(zl.store).getEntityRecord("postType",Wt,St):null,[St,Wt]),jt="string"==typeof St?St.split("/").filter(Boolean).pop():"",wt=(()=>{try{const t=new URLSearchParams(window.location.search).get("p");return t&&decodeURIComponent(t).split("/").filter(Boolean).pop()||""}catch{return""}})(),zt=jt||wt,Ct=/^archive(?:-|$)/i.test(zt),Lt=(0,Yt.useMemo)(()=>{const t=Pt?.content?.raw||Pt?.content?.rendered||"";if(!t)return"";try{const e=(0,o.parse)(t);let i="";const a=(t=[])=>{for(const e of t){if("core/query"===e?.name){const t=e?.attributes?.query;if(t?.postType&&(i=Array.isArray(t.postType)?t.postType[0]||"":t.postType,i))return!0}if(e?.innerBlocks?.length&&a(e.innerBlocks))return!0}return!1};return a(e),i||""}catch{return""}},[Pt]),Dt=(()=>{const t=zt?.match(/^archive-([a-z0-9_-]+)$/i);return t&&t[1]?t[1]:""})(),Nt=(0,Yt.useMemo)(()=>{const t=Dt;if(!t)return"";if(!Array.isArray(gt)||!gt.length)return"" | |
| 3186 | +;const e=gt.find(e=>e.slug===t||!0===e.has_archive&&t===e.slug||"string"==typeof e.has_archive&&e.has_archive.toLowerCase()===t.toLowerCase());return e?.slug||""},[gt,Dt]),Vt=(0,Yt.useMemo)(()=>{if(Lt)return Lt;if(Dt&&Array.isArray(gt)&>.some(t=>t.slug===Dt))return Dt;if(Nt)return Nt;if(Array.isArray(gt)&>.length){const t=gt.find(t=>t.has_archive&&"post"!==t.slug)||gt.find(t=>"post"===t.slug);return t?.slug||""}return""},[Lt,Dt,Nt,gt]);(0,Yt.useEffect)(()=>{vt&&Ct&&Array.isArray(gt)&>.length&&Vt&&b!==Vt&&i({selectedPostType:Vt})},[vt,Ct,gt,Vt]);const Xt=(0,Yt.useRef)(null);return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsx)(V,{title:(0,L.__)("Taxonomy Settings","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Inherit","ablocks"),attributeValue:ot,setAttributes:i,attributeName:"showInherit"}),!ot&&(0,I.jsx)(Ut,{label:(0, | |
| 3187 | +L.__)("Select Post Type","ablocks"),options:[{label:(0,L.__)("Select a post type","ablocks"),value:""},...gt.map(t=>({label:t.name,value:t.slug}))],attributeName:"selectedPostType",attributeValue:b,setAttributes:i}),b&&(0,I.jsx)(Ut,{label:(0,L.__)("Select Taxonomies","ablocks"),attributeName:"activeTaxonomy",attributeValue:Array.isArray(d)?d[0]:null,setAttributes:t=>{const{activeTaxonomy:e}=t,o=Array.isArray(e)?e:[e];i({activeTaxonomy:o})},options:[{label:(0,L.__)("Select Taxonomy","ablocks"),value:""},...ft.map(t=>({label:t.name,value:t.slug}))],isMultiple:!1,isSearchable:!0,placeholder:(0,L.__)("Select Taxonomy","ablocks")}),!ot&&kt.map(t=>{const e=t.terms.map(t=>({label:f?`${t.name} (${t.count})`:t.name,value:t.id})),i=Array.isArray(c?.[t.slug])?c[t.slug]:[],o=i.map(t=>e.find(e=>e.value===t)).filter(Boolean);return(0,I.jsxs)("div",{children:[(0,I.jsxs)("label",{children:[(0,L.__)("Select","ablocks")," ",t.name]}),(0,I.jsx)(Rl,{...Sl(),isMulti:!0,isSearchable:!0,options:e,value:o, | |
| 3188 | +onChange:e=>{const o=(e||[]).map(t=>t.value);yt(t.slug,((t=[],e=[])=>{const i=new Set(e);return[...t.filter(t=>i.has(t)),...e.filter(e=>!t.includes(e))]})(i,o))}}),i.length>0&&(0,I.jsxs)("div",{className:"ablocks-taxonomy__position-drag",children:[(0,I.jsx)("div",{children:(0,L.__)("Position Drag to reorder","ablocks")}),(0,I.jsx)("div",{onDragOver:t=>t.preventDefault(),children:i.map((o,a)=>{const l=e.find(t=>t.value===o);return l?(0,I.jsxs)("div",{className:"ablocks-taxonomy__position-drag_item",draggable:!0,onDragStart:()=>{Xt.current=a},onDragOver:t=>t.preventDefault(),onDrop:()=>{if(null===Xt.current||Xt.current===a)return void(Xt.current=null);const e=((t,e,i)=>{const o=Array.from(t),[a]=o.splice(e,1);return o.splice(i,0,a),o})(i,Xt.current,a);Xt.current=null,yt(t.slug,e)},title:(0,L.__)("Position Drag to reorder","ablocks"),children:[(0,I.jsx)("span",{children:l.label}),(0,I.jsx)("span",{children:"⠿"})]},`${t.slug}-${o}`):null})})]})]},t.slug)}),d.length>0&&(0, | |
| 3189 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Taxonomy Link","ablocks"),attributeValue:it,setAttributes:i,attributeName:"showPostLink"}),it&&(0,I.jsx)(Ut,{label:(0,L.__)("Taxonomy Link Type","ablocks"),attributeName:"pageLinks",attributeValue:e.pageLinks,setAttributes:i,options:[{label:(0,L.__)("Single Page link","ablocks"),value:"singlePagelink"},{label:(0,L.__)("Archive page link","ablocks"),value:"archivePagelink"}]}),it&&(0,I.jsx)("div",{style:{paddingBottom:"20px",display:"block",fontSize:"12px"},children:(0,I.jsxs)("i",{children:[" ",(0,L.__)("Frontend: show all taxonomy titles as links. Editor: show only the taxonomy title as a link.","ablocks")]})}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Post","ablocks"),attributeValue:tt,setAttributes:i,attributeName:"showPost"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Term Post Count","ablocks"),attributeValue:f,setAttributes:i,attributeName:"showTermCount"}),f&&(0, | |
| 3190 | +I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Prefix","ablocks"),attributeValue:nt,setAttributes:i,attributeName:"showTermCountPrefix"}),nt&&(0,I.jsx)(Kl,{label:(0,L.__)("Count Prefix Text","ablocks"),attributeName:"countPrefixText",attributeValue:st,setAttributes:i,isInline:!1,placeholder:(0,L.__)("Items","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Layout Style","ablocks"),attributeName:"taxonomyLayout",attributeValue:e.taxonomyLayout,setAttributes:i,options:[{label:(0,L.__)("List View","ablocks"),value:"list"},{label:(0,L.__)("Flex/Grid View","ablocks"),value:"flex"}]}),"list"===e.taxonomyLayout&&(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("Tab View Show Only FrontEnd","ablocks")})}),"list"===e.taxonomyLayout&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Tab View","ablocks"),attributeValue:F,setAttributes:i,attributeName:"showTab"}),"list"===e.taxonomyLayout&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0, | |
| 3191 | +L.__)("Show Tab Scrolling","ablocks"),attributeValue:mt,setAttributes:i,attributeName:"showTabScrolling"}),"flex"===e.taxonomyLayout&&(0,I.jsx)(Ut,{label:(0,L.__)("Items Per Row","ablocks"),attributeName:"itemsPerRow",attributeValue:e.itemsPerRow,setAttributes:i,options:Array.from({length:6},(t,e)=>({label:`${e+1}`,value:e+1}))}),tt&&(0,I.jsx)(Ut,{label:(0,L.__)("Post Order By","ablocks"),attributeName:"postOrderBy",attributeValue:p,setAttributes:i,options:Mt}),tt&&(0,I.jsx)(Ut,{label:(0,L.__)("Post Order","ablocks"),attributeName:"postOrder",attributeValue:u,setAttributes:i,options:[{label:(0,L.__)("Descending","ablocks"),value:"desc"},{label:(0,L.__)("Ascending","ablocks"),value:"asc"}]}),tt&&(0,I.jsx)(Ut,{label:(0,L.__)("Number of Posts","ablocks"),attributeName:"numberOfPosts",attributeValue:m,setAttributes:i,options:[{label:(0,L.__)("All","ablocks"),value:-1},...Array.from({length:20},(t,e)=>({label:`${e+1}`,value:e+1}))]}),tt&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0, | |
| 3192 | +L.__)("Enable Reload Button","ablocks"),attributeValue:h,setAttributes:i,attributeName:"enableReloadButton"}),h&&(0,I.jsx)(Kl,{label:(0,L.__)("Button Text","ablocks"),attributeName:"buttonText",attributeValue:E,setAttributes:i,isInline:!1,placeholder:(0,L.__)("View More","ablocks"),disableDynamicContent:!0}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"allowIcon"})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("Taxonomy Card Style","ablocks")})}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Card Background Color","ablocks"),isGradient:!0,attributeName:"cardBgColor",attributeValue:O,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Card Hover Background Color","ablocks"),isGradient:!0, | |
| 3193 | +attributeName:"cardBgHoverColor",attributeValue:et,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Card Border","ablocks"),isResponsive:!0,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"cardBorder",attributeValue:X,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Card Padding","ablocks"),isResponsive:!0,attributeName:"cardPadding",attributeValue:Y,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Card Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"cardBoxShadow",attributeValue:B,setAttributes:i})]})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Taxonomy Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"taxonomyTitlePosition",attributeValue:v,setAttributes:i,options:[{label:(0,L.__)("Start","ablocks"),value:"start",icon:"arrow-left"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"wrap"},{label:(0,L.__)("Space Around","ablocks"), | |
| 3194 | +value:"space-around",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right"}],isInline:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"taxonomyTitleDirection",attributeValue:k,setAttributes:i,options:[{label:(0,L.__)("Row","ablocks"),value:"row",icon:"arrow-left"},{label:(0,L.__)("Column","ablocks"),value:"column",icon:"wrap"}],isInline:!1}),e.taxonomyTitleDirection&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Icon Position","ablocks"),attributeValue:ut,setAttributes:i,attributeName:"showIconDffent"}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"taxonomyTitleTypography",attributeValue:l,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"taxonomyTitlecolor",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"taxonomyTitletBgColor",attributeValue:x,setAttributes:i}),(0, | |
| 3195 | +I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"taxonomyTitlePadding",attributeValue:M,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"taxonomyTitleBorder",attributeValue:_,setAttributes:i})]}),f&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Taxonomy Post Count Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"postCountTypography",attributeValue:lt,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"postCountColor",attributeValue:H,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"postCountBgColor",attributeValue:T,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Post Count Width","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"postCountWidth",attributeValue:e?.postCountWidth, | |
| 3196 | +setAttributes:i,attributeDefaultValue:oU.e3}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"postCountBorder",attributeValue:y,setAttributes:i})]}),tt&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Post Title Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"postTitleTypography",attributeValue:S,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"postTitleColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"postBackgroundColor",attributeValue:Q,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"postPadding",attributeValue:q,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{ | |
| 3197 | +attributeName:"postBorder",attributeValue:J,setAttributes:i}),(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("Active Style","ablocks")})}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Color","ablocks"),attributeName:"postTitleActiveColor",attributeValue:Z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"activePostBackgroundColor",attributeValue:$,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activePostBorder",attributeValue:K,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Post Title Hover Color","ablocks"),attributeName:"postTitleHoverColor",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"hoverPostBackgroundColor",attributeValue:G,setAttributes:i})]}),active:(0,I.jsx)(I.Fragment,{})})]}),h&&(0,I.jsxs)(N.PanelBody,{ | |
| 3198 | +title:(0,L.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"buttonPosition",attributeValue:A,setAttributes:i,options:[{label:(0,L.__)("Full Width","ablocks"),value:"block",icon:"arrow-left"},{label:(0,L.__)("Inline","ablocks"),value:"inline",icon:"wrap"}],isInline:!1}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:C,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"buttonColor",attributeValue:w,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"buttonBgColor",attributeValue:U,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"buttonHoverColor",attributeValue:z,setAttributes:i}),(0,I.jsx)(Ws,{label:(0, | |
| 3199 | +L.__)("Background Hover Color","ablocks"),attributeName:"buttonHoverBgColor",attributeValue:j,setAttributes:i})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"buttonBorder",attributeValue:P,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:W,setAttributes:i})]}),g&&(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Icon Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"iconsSize",attributeValue:e?.iconsSize,setAttributes:i,attributeDefaultValue:oU.W0}),(0,I.jsx)(Ws,{label:(0,L.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:rt,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"iconBgColor",attributeValue:ct,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"), | |
| 3200 | +attributeName:"iconPadding",attributeValue:dt,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Border radius","ablocks"),attributeName:"iconBorderRadius",attributeValue:bt,setAttributes:i})]})]})})}aU.propTypes={};const lU={UU:"ablocks/taxonomy-listing",uK:{block_id:{type:"string",default:""},selectedPostType:{type:"string",default:"post"},selectedTerms:{type:"object",default:[]},activeTaxonomy:{type:"array",default:[]},selectedTaxonomies:{type:"array",default:[]},numberOfPosts:{type:"number",default:6},postOrder:{type:"string",default:"desc"},postOrderBy:{type:"string",default:"date"},taxonomyLayout:{type:"string",default:"flex",copyStyle:!0},pageLinks:{type:"string",default:"singlePagelink",copyStyle:!0},itemsPerRow:{type:"number",default:3,copyStyle:!0},showTermCount:{type:"boolean",default:!0},enableReloadButton:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!1},textPostColor:{type:"string",default:!1},postCountBorder:{type:"object",default:""},postCountBgColor:{ | |
| 3183 | 3201 | type:"string",default:""},postCountColor:{type:"string",default:""},taxonomyTitlePadding:{type:"object",default:""},taxonomyTitletBgColor:{type:"string",default:""},taxonomyTitlecolor:{type:"string",default:""},taxonomyTitleDirection:{type:"object",default:""},taxonomyTitlePosition:{type:"object",default:"space-between"},taxonomyTitleBorder:{type:"object",default:"2"},postTitleColor:{type:"string",default:""},postTitleHoverColor:{type:"string",default:""},postTitleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px", |
| 3184 | 3202 | wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonPadding:{type:"object",default:""},buttonBorder:{type:"object",default:""},butttonColor:{type:"string",default:""},buttonBgColor:{type:"string",default:""},buttonHoverBgColor:{type:"string",default:""},buttonColor:{type:"string",default:""},buttonHoverColor:{type:"string",default:""},buttonTypography:{type:"object",default:""},buttonPosition:{type:"object",default:"block"},cardBgColor:{type:"string",default:"block"},cardPadding:{type:"object",default:"block"},cardBorder:{type:"object",default:"block"},icon:{type:"object",default:"block"},buttonText:{type:"string",default:"View More"},showTab:{type:"boolean",default:!1},showTabScrolling:{type:"boolean",default:!1},hoverPostBackgroundColor:{type:"string",default:""},activePostBackgroundColor:{type:"string",default:""},postTitleActiveColor:{type:"string",default:""},activePostBorder:{type:"object",default:""},postBorder:{type:"object", |
| 3185 | 3203 | default:""},postBackgroundColor:{type:"string",default:""},showPost:{type:"boolean",default:!0},cardBgHoverColor:{type:"string",default:""},showPostLink:{type:"boolean",default:!1},showInherit:{type:"boolean",default:!1},showTermCountPrefix:{type:"boolean",default:!1},countPrefixText:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},showIconDffent:{type:"boolean",default:!1},iconBgColor:{type:"string",default:""},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},postPadding:{type:"object",default:""},iconBorderRadius:{type:"object",default:""},postCountWidth:{type:"number",default:""},iconSvgPath:{type:"string", |
| 3186 | 3204 | 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" |
| @@ -3194,53 +3212,134 @@ | ||
| 3194 | 3212 | 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:"", |
| 3195 | 3213 | 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:"", |
| 3196 | 3214 | 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:"", |
| 3197 | 3215 | 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:{ |
| 3198 | -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 qU(t){ | |
| 3199 | -const{attributes:e,setAttributes:i}=t,{block_id:o,selectedPostType:n,activeTaxonomy:b=[],selectedTerms:c={},numberOfPosts:d,postOrder:u="desc",postOrderBy:p="date",taxonomyLayout:m="list",itemsPerRow:h=3,showTermCount:g,enableReloadButton:f,allowIcon:y,buttonText:T,showPost:H,showInherit:M,countPrefixText:x,showTermCountPrefix:k,showIconDffent:v,showPostLink:_}=e,R=p||"date",S=u||"desc",W=(0,a.useMemo)(()=>Array.isArray(b)&&b.some(t=>"string"==typeof t&&""!==t.trim()),[b]),U=(0,r.useSelect)(t=>n?(t(ge.store).getTaxonomies({type:n})||[]).map(e=>{const i=t(ge.store).getEntityRecords("taxonomy",e.slug,{per_page:-1})||[];return{...e,terms:i}}):[],[n]),P=(0,a.useMemo)(()=>{if(!M||!Array.isArray(b))return{};const t={};if("undefined"!=typeof window&&window.location){const e=window.location.pathname.split("/").filter(Boolean);b.forEach(i=>{const o=U.find(t=>t.slug===i);if(!o)return;let a=null;if(o.terms?.forEach(t=>{e.includes(t.slug)&&(a=t.id)}),a)t[i]=[a];else{ | |
| 3200 | -const e=o.terms?.map(t=>t.id)||[];e.length>0&&(t[i]=e)}})}return t},[M,b,U]),j=M?P:c,w="flex"===m&&Object.values(j).some(t=>Array.isArray(t)&&t.length>0)?{gridTemplateColumns:`repeat(${h||""}, 1fr)`}:void 0,C=(0,r.useSelect)(t=>{const e={};return n&&Array.isArray(b)?(b.forEach(i=>{const o=U.find(t=>t.slug===i);if(!o)return;const a=o.rest_base||i;(j[i]||[]).forEach(o=>{const l={per_page:-1===d?2e3:d,orderby:R,order:S,[a]:o},s=t(ge.store).getEntityRecords("postType",n,l);s&&(e[`${i}-${o}`]=s)})}),e):e},[n,b,j,d,u,p,U]),A=(0,r.useSelect)(t=>{const e={};return _&&Array.isArray(b)&&0!==b.length?(b.forEach(i=>{const o=U.find(t=>t.slug===i);if(!o)return;const a=o.rest_base||i,l=Array.isArray(o.types)&&o.types.length?o.types:["post"],s=n?[n]:l;(j?.[i]||[]).forEach(o=>{let l="";for(const e of s){const i=t(ge.store).getEntityRecords("postType",e,{per_page:1,orderby:R,order:S,status:"publish",[a]:o});if(i&&i.length&&(l=i[0]?.link||"",l))break}l&&(e[`${i}-${o}`]=l)})}),e):e},[_,n,b,j,U]);return(0, | |
| 3201 | -L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:o,name:FU.UU,attributes:e,children:(0,L.jsx)("div",{className:s()(`ablocks-taxonomy-listing_${m}`),style:w,children:n?W?b.map(t=>{const i=U.find(e=>e.slug===t);if(!i)return null;const o=j[t]||[];return 0===o.length?(0,L.jsx)("div",{className:"ablocks-taxonomy-listing-item",children:(0,L.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,z.__)("Please select at least one term for this taxonomy.","ablocks")})},`empty-${t}`):o.map(o=>{const a=i.terms?.find(t=>t.id===o),l=C[`${t}-${o}`]||[];return a?(0,L.jsxs)("div",{className:"ablocks-taxonomy-listing-item",children:[(0,L.jsxs)("h3",{className:"ablocks-taxonomy-title",children:[v&&y&&(0,L.jsx)("span",{className:"ablocks-taxonomy-icon",children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:(0,L.jsx)("path",{ | |
| 3202 | -d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"})})}),(0,L.jsxs)("span",{className:!0===v?"ablocks-taxonomy-listing_direction":"",children:[!1===v&&y&&(0,L.jsx)("span",{className:"ablocks-taxonomy-icon",children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:(0,L.jsx)("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"})}) | |
| 3203 | -}),"singlePagelink"===e.pageLinks&&A[`${t}-${o}`]?(0,L.jsx)("a",{href:A[`${t}-${o}`],children:a.name}):"archivePagelink"===e.pageLinks?(0,L.jsx)("a",{href:a.link,children:a.name}):a.name,g&&!0===v&&(0,L.jsxs)("span",{className:"ablocks-taxonomy-title__post-count",children:[a.count,k&&(0,L.jsx)("span",{children:x})]})]}),g&&!1===v&&(0,L.jsxs)("span",{className:"ablocks-taxonomy-title__post-count",children:[a.count,k&&(0,L.jsx)("span",{children:x})]})]}),H&&(0,L.jsxs)("div",{className:"ablocks-taxonomy-listing-item_content",children:[l.length>0?(0,L.jsx)("ul",{className:"ablocks-taxonomy-posts",children:l.map(t=>(0,L.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:t.title.rendered}})},t.id))}):(0,L.jsx)("p",{children:(0,z.__)("No posts found.","ablocks")}),f&&(0,L.jsx)("div",{className:"ablocks-reload-button-wrapper",children:(0,L.jsx)("a",{href:a.link||`/${t}/${a.slug}`,className:"ablocks-reload-button",children:T})})]})] | |
| 3204 | -},`${t}-${o}`):null})}):(0,L.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,z.__)("Please select a taxonomy for this post type.","ablocks")}):(0,L.jsx)("p",{className:"ablocks-posttype-not-found",children:(0,z.__)("Please select a post type first.","ablocks")})})})})}qU.propTypes={};const $U=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e)}),GU=(t,e="")=>{const i=(0,M.Zy)(t.taxonomyTitleTypography,{weight:"500"}),o=t.taxonomyTitleTypographyGlobal?t.taxonomyTitleTypographyGlobal:"",a=(0,M.Zy)(t?.taxonomyTitleDirection,{unit:"px"}),l=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),{...(0,P.qD)(i,e,o),...(0,Gt.qD)(t?.taxonomyTitlePosition,"justify-content",e),...(0,Gt.qD)(t?.taxonomyTitleDirection,"flex-direction",e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.taxonomyTitlePadding,"padding",e),...(0,y.qD)(l,e),color:t.taxonomyTitlecolor||"",background:t.taxonomyTitletBgColor||""}},ZU=(t,e="")=>{ | |
| 3205 | -const i=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},KU=(t,e="")=>{const i={},o=(0,M.Zy)(t.postCountTypography,{weight:"500"}),a=t.postCountTypographyGlobal?t.postCountTypographyGlobal:"",l=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return t?.postCountWidth&&(i.width=`${t?.postCountWidth}px`),t?.postCountWidth&&(i.height=`${t?.postCountWidth}px`),{...i,...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),color:t.postCountColor||"",background:t.postCountBgColor||""}},JU=(t,e="")=>{const i=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},QU=(t,e="")=>{const i={};t?.cardBgColor&&(i.background=t?.cardBgColor);const o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,H.qD)(t?.cardBoxShadow,e)}},tP=(t,e="")=>{const i={},o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return t?.cardBgHoverColor&&(i.background=t?.cardBgHoverColor),{...i,...(0,y.a9)(o,e),...(0, | |
| 3206 | -H.a9)(t?.cardBoxShadow,"box-shadow",e)}},eP=(t,e="")=>{const i=(0,M.Zy)(t?.cardPadding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},iP=(t,e="")=>{const i={},o=(0,M.Zy)(t?.iconPadding,{unit:"px"}),a=(0,M.Zy)(t?.iconBorderRadius,{unit:"px"});return t?.iconBgColor&&(i.background=t?.iconBgColor),{...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"border-radius",e),...i}},oP=(t,e="")=>{const i={};return t?.iconsSize&&(i.width=`${t?.iconsSize}px`),t?.iconsSize&&(i.height=`${t?.iconsSize}px`),{...i}},aP=(t,e="")=>{const i={};return t?.iconColor&&(i.fill=t?.iconColor),{...i}},lP=(t,e="")=>{const i=(0,M.Zy)(t.postTitleTypography,{weight:"500"}),o=t.postTitleTypographyGlobal?t.postTitleTypographyGlobal:"",a=(0,M.Zy)(t?.postPadding,{unit:"px"}),l=(0,M.Zy)(t.postBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.postTitleColor&&(n.color=t?.postTitleColor),t?.postBackgroundColor&&(n.background=t?.postBackgroundColor),{...n,...(0,P.qD)(i,e,o),...(0,c.qD)(a,"padding",e),...(0,y.qD)(l,e)} | |
| 3207 | -},nP=(t,e="")=>{const i={};return t?.postTitleHoverColor&&(i.color=t?.postTitleHoverColor),t?.hoverPostBackgroundColor&&(i.background=t?.hoverPostBackgroundColor),{...i}},sP=(t,e="")=>{const i=(0,M.Zy)(t.activePostBorder,{unitWidth:"px",unitRadius:"px"}),o={};return t?.postTitleActiveColor&&(o.color=t?.postTitleActiveColor),t?.activePostBackgroundColor&&(o.background=t?.activePostBackgroundColor),{...o,...(0,y.qD)(i,e)}},rP=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"500"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.buttonColor&&(n.color=t?.buttonColor),t?.buttonBgColor&&(n.background=t?.buttonBgColor),{...n,...(0,P.qD)(i,e,o),...(0,y.qD)(l,e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.buttonPadding,"padding",e),...(0,Gt.qD)(t?.buttonPosition,"display",e)}},bP=(t,e="")=>{const i={};t?.buttonHoverColor&&(i.color=t?.buttonHoverColor), | |
| 3208 | -t?.buttonHoverBgColor&&(i.background=t?.buttonHoverBgColor);const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},cP=(t,e="")=>{const i=t.taxonomyLayout||"flex",o=t.itemsPerRow||3,a={};return"Tablet"===e?a["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?a["grid-template-columns"]="repeat(1, 1fr)":t?.itemsPerRow&&(a["grid-template-columns"]=`repeat(${t.itemsPerRow}, 1fr)`),"flex"===i?{display:"grid",gap:"1.5rem",...a}:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"1.5rem",marginTop:"2rem",...a}};function dP({attributes:t,setAttributes:e,context:i}){const{metaKey:o="",linkAdd:a=!1,trimMode:n,trimLimit:s,trimEndSymbol:b,dynamicTextColor:c,dynamicTypography:d,alignment:u}=t;l().useLayoutEffect(()=>{o||e({metaKey:"core:title"})},[]);const p=(0,r.useSelect)(t=>t("core/editor")?.getCurrentPostType?.()||"",[]),m=i?.postType||p||"",h=(0,r.useSelect)(t=>m?(t("core")?.getTaxonomies({per_page:-1 | |
| 3209 | -})||[]).filter(t=>Array.isArray(t.types)&&t.types.includes(m)):[],[m]),g=[{label:(0,z.__)("Title","ablocks"),value:"core:title"},{label:(0,z.__)("Content","ablocks"),value:"core:content"},{label:(0,z.__)("Excerpt","ablocks"),value:"core:excerpt"},{label:(0,z.__)("Date (published)","ablocks"),value:"core:date"},{label:(0,z.__)("Date (Modified)","ablocks"),value:"core:last_modified"},{label:(0,z.__)("Permalink","ablocks"),value:"core:permalink"},{label:(0,z.__)("Author Name","ablocks"),value:"core:author"}],f=(h||[]).flatMap(t=>[{label:`[Tax] ${t.labels?.name||t.name} (Names)`,value:`__tax:${t.slug}:names`}]),y=l().useMemo(()=>{const t=[...g,...f];return t.some(t=>t.value===o)||!o?t:[{label:`[Meta] ${o}`,value:o},...t]},[o,h]);return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:t,setAttributes:e,children:(0,L.jsx)(D,{title:(0,z.__)("Field / Meta","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.ComboboxControl,{ | |
| 3210 | -className:"dynamic-text-control",__nextHasNoMarginBottom:!0,label:(0,z.__)("Field / Taxonomy","ablocks"),value:o||"core:title",onChange:t=>e({metaKey:t||"core:title"}),options:y}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Trim Mode (words)","ablocks"),attributeValue:n,setAttributes:e,attributeName:"trimMode"}),!!n&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(js,{label:(0,z.__)("Word Limit","ablocks"),attributeName:"trimLimit",attributeValue:s,setAttributes:e,min:1,isInline:!0,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("End Symbol","ablocks"),attributeName:"trimEndSymbol",attributeValue:b,setAttributes:e,isInline:!1,disableDynamicContent:!0,placeholder:"…"})]}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Link","ablocks"),attributeValue:a,setAttributes:e,attributeName:"linkAdd"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0,attributeName:"dynamicTextColor",attributeValue:c,setAttributes:e}),(0,L.jsx)(Wc,{ | |
| 3211 | -label:(0,z.__)("Typography","ablocks"),attributeName:"dynamicTypography",attributeValue:d,setAttributes:e,isResponsive:!0,attributes:t}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:u,setAttributes:e,isInline:!1})]})})})})})}(0,M.xV)(FU.UU)&&(0,o.registerBlockType)(FU.UU,{title:"Taxonomy Listing",attributes:FU.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--taxonomy-listing"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}",$U(i),$U(i,"Tablet"),$U(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")), | |
| 3212 | -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item",QU(i),QU(i,"Tablet"),QU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item:hover",tP(i),tP(i,"Tablet"),tP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item_content ",eP(i),eP(i,"Tablet"),eP(i,"Mobile")), | |
| 3213 | -t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title",GU(i),GU(i,"Tablet"),GU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title:hover",ZU(i),ZU(i,"Tablet"),ZU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a",lP(i),lP(i,"Tablet"),lP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a:hover",nP(i),nP(i,"Tablet"),nP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a.active-post-link",sP(i),sP(i,"Tablet"),sP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count",KU(i),KU(i,"Tablet"),KU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count:hover",JU(i),JU(i,"Tablet"),JU(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button",rP(i),rP(i,"Tablet"),rP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button:hover",bP(i),bP(i,"Tablet"),bP(i,"Mobile")), | |
| 3214 | -t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-container.flex",cP(i),cP(i,"Tablet"),cP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon",iP(i),iP(i,"Tablet"),iP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg",oP(i),oP(i,"Tablet"),oP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg path",aP(i),aP(i,"Tablet"),aP(i,"Mobile")),(0,b.applyFilters)("ablocks.taxonomyListing.inlineCSS",t.generateCSS(),i)},[i]);return(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)(EU,{...t}),(0,L.jsx)("style",{children:s}),(0,L.jsx)(qU,{...t})]})},save:()=>null}),dP.propTypes={};const uP={UU:"ablocks/dynamic-text",uK:{dynamicTypographyGlobal:{type:"string",default:""},dynamicTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"", | |
| 3215 | -fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},metaKey:{type:"string",default:""},linkAdd:{type:"boolean",default:!1},trimMode:{type:"boolean",default:!1},dynamicTextColor:{type:"string",default:""},trimLimit:{type:"number",default:0},trimEndSymbol:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"", | |
| 3216 | -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:"", | |
| 3216 | +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nU(t){ | |
| 3217 | +const{attributes:e,setAttributes:i}=t,{block_id:o,selectedPostType:n,activeTaxonomy:b=[],selectedTerms:c={},numberOfPosts:d,postOrder:u="desc",postOrderBy:p="date",taxonomyLayout:m="list",itemsPerRow:h=3,showTermCount:g,enableReloadButton:f,allowIcon:y,buttonText:T,showPost:H,showInherit:M,countPrefixText:x,showTermCountPrefix:k,showIconDffent:v,showPostLink:_}=e,R=p||"date",S=u||"desc",W=(0,a.useMemo)(()=>Array.isArray(b)&&b.some(t=>"string"==typeof t&&""!==t.trim()),[b]),P=(0,r.useSelect)(t=>n?(t(zl.store).getTaxonomies({type:n})||[]).map(e=>{const i=t(zl.store).getEntityRecords("taxonomy",e.slug,{per_page:-1})||[];return{...e,terms:i}}):[],[n]),U=(0,a.useMemo)(()=>{if(!M||!Array.isArray(b))return{};const t={};if("undefined"!=typeof window&&window.location){const e=window.location.pathname.split("/").filter(Boolean);b.forEach(i=>{const o=P.find(t=>t.slug===i);if(!o)return;let a=null;if(o.terms?.forEach(t=>{e.includes(t.slug)&&(a=t.id)}),a)t[i]=[a];else{ | |
| 3218 | +const e=o.terms?.map(t=>t.id)||[];e.length>0&&(t[i]=e)}})}return t},[M,b,P]),j=M?U:c,w="flex"===m&&Object.values(j).some(t=>Array.isArray(t)&&t.length>0)?{gridTemplateColumns:`repeat(${h||""}, 1fr)`}:void 0,z=(0,r.useSelect)(t=>{const e={};return n&&Array.isArray(b)?(b.forEach(i=>{const o=P.find(t=>t.slug===i);if(!o)return;const a=o.rest_base||i;(j[i]||[]).forEach(o=>{const l={per_page:-1===d?2e3:d,orderby:R,order:S,[a]:o},s=t(zl.store).getEntityRecords("postType",n,l);s&&(e[`${i}-${o}`]=s)})}),e):e},[n,b,j,d,u,p,P]),C=(0,r.useSelect)(t=>{const e={};return _&&Array.isArray(b)&&0!==b.length?(b.forEach(i=>{const o=P.find(t=>t.slug===i);if(!o)return;const a=o.rest_base||i,l=Array.isArray(o.types)&&o.types.length?o.types:["post"],s=n?[n]:l;(j?.[i]||[]).forEach(o=>{let l="";for(const e of s){const i=t(zl.store).getEntityRecords("postType",e,{per_page:1,orderby:R,order:S,status:"publish",[a]:o});if(i&&i.length&&(l=i[0]?.link||"",l))break}l&&(e[`${i}-${o}`]=l)})}),e):e},[_,n,b,j,P]);return(0, | |
| 3219 | +I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:lU.UU,attributes:e,children:(0,I.jsx)("div",{className:s()(`ablocks-taxonomy-listing_${m}`),style:w,children:n?W?b.map(t=>{const i=P.find(e=>e.slug===t);if(!i)return null;const o=j[t]||[];return 0===o.length?(0,I.jsx)("div",{className:"ablocks-taxonomy-listing-item",children:(0,I.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,L.__)("Please select at least one term for this taxonomy.","ablocks")})},`empty-${t}`):o.map(o=>{const a=i.terms?.find(t=>t.id===o),l=z[`${t}-${o}`]||[];return a?(0,I.jsxs)("div",{className:"ablocks-taxonomy-listing-item",children:[(0,I.jsxs)("h3",{className:"ablocks-taxonomy-title",children:[v&&y&&(0,I.jsx)("span",{className:"ablocks-taxonomy-icon",children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:(0,I.jsx)("path",{ | |
| 3220 | +d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"})})}),(0,I.jsxs)("span",{className:!0===v?"ablocks-taxonomy-listing_direction":"",children:[!1===v&&y&&(0,I.jsx)("span",{className:"ablocks-taxonomy-icon",children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:(0,I.jsx)("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"})}) | |
| 3221 | +}),"singlePagelink"===e.pageLinks&&C[`${t}-${o}`]?(0,I.jsx)("a",{href:C[`${t}-${o}`],children:a.name}):"archivePagelink"===e.pageLinks?(0,I.jsx)("a",{href:a.link,children:a.name}):a.name,g&&!0===v&&(0,I.jsxs)("span",{className:"ablocks-taxonomy-title__post-count",children:[a.count,k&&(0,I.jsx)("span",{children:x})]})]}),g&&!1===v&&(0,I.jsxs)("span",{className:"ablocks-taxonomy-title__post-count",children:[a.count,k&&(0,I.jsx)("span",{children:x})]})]}),H&&(0,I.jsxs)("div",{className:"ablocks-taxonomy-listing-item_content",children:[l.length>0?(0,I.jsx)("ul",{className:"ablocks-taxonomy-posts",children:l.map(t=>(0,I.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,I.jsx)("div",{dangerouslySetInnerHTML:{__html:t.title.rendered}})},t.id))}):(0,I.jsx)("p",{children:(0,L.__)("No posts found.","ablocks")}),f&&(0,I.jsx)("div",{className:"ablocks-reload-button-wrapper",children:(0,I.jsx)("a",{href:a.link||`/${t}/${a.slug}`,className:"ablocks-reload-button",children:T})})]})] | |
| 3222 | +},`${t}-${o}`):null})}):(0,I.jsx)("p",{className:"ablocks-taxonomy-not-found",children:(0,L.__)("Please select a taxonomy for this post type.","ablocks")}):(0,I.jsx)("p",{className:"ablocks-posttype-not-found",children:(0,L.__)("Please select a post type first.","ablocks")})})})})}nU.propTypes={};const sU=(t,e="")=>({...(0,Zt.qD)(t?.alignment,"text-align",e)}),rU=(t,e="")=>{const i=(0,M.Zy)(t.taxonomyTitleTypography,{weight:"500"}),o=t.taxonomyTitleTypographyGlobal?t.taxonomyTitleTypographyGlobal:"",a=(0,M.Zy)(t?.taxonomyTitleDirection,{unit:"px"}),l=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),{...(0,U.qD)(i,e,o),...(0,Zt.qD)(t?.taxonomyTitlePosition,"justify-content",e),...(0,Zt.qD)(t?.taxonomyTitleDirection,"flex-direction",e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.taxonomyTitlePadding,"padding",e),...(0,y.qD)(l,e),color:t.taxonomyTitlecolor||"",background:t.taxonomyTitletBgColor||""}},bU=(t,e="")=>{ | |
| 3223 | +const i=(0,M.Zy)(t.taxonomyTitleBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},cU=(t,e="")=>{const i={},o=(0,M.Zy)(t.postCountTypography,{weight:"500"}),a=t.postCountTypographyGlobal?t.postCountTypographyGlobal:"",l=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return t?.postCountWidth&&(i.width=`${t?.postCountWidth}px`),t?.postCountWidth&&(i.height=`${t?.postCountWidth}px`),{...i,...(0,y.qD)(l,e),...(0,U.qD)(o,e,a),color:t.postCountColor||"",background:t.postCountBgColor||""}},dU=(t,e="")=>{const i=(0,M.Zy)(t.postCountBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},uU=(t,e="")=>{const i={};t?.cardBgColor&&(i.background=t?.cardBgColor);const o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,H.qD)(t?.cardBoxShadow,e)}},pU=(t,e="")=>{const i={},o=(0,M.Zy)(t.cardBorder,{unitWidth:"px",unitRadius:"px"});return t?.cardBgHoverColor&&(i.background=t?.cardBgHoverColor),{...i,...(0,y.a9)(o,e),...(0, | |
| 3224 | +H.a9)(t?.cardBoxShadow,"box-shadow",e)}},mU=(t,e="")=>{const i=(0,M.Zy)(t?.cardPadding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},hU=(t,e="")=>{const i={},o=(0,M.Zy)(t?.iconPadding,{unit:"px"}),a=(0,M.Zy)(t?.iconBorderRadius,{unit:"px"});return t?.iconBgColor&&(i.background=t?.iconBgColor),{...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"border-radius",e),...i}},gU=(t,e="")=>{const i={};return t?.iconsSize&&(i.width=`${t?.iconsSize}px`),t?.iconsSize&&(i.height=`${t?.iconsSize}px`),{...i}},fU=(t,e="")=>{const i={};return t?.iconColor&&(i.fill=t?.iconColor),{...i}},yU=(t,e="")=>{const i=(0,M.Zy)(t.postTitleTypography,{weight:"500"}),o=t.postTitleTypographyGlobal?t.postTitleTypographyGlobal:"",a=(0,M.Zy)(t?.postPadding,{unit:"px"}),l=(0,M.Zy)(t.postBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.postTitleColor&&(n.color=t?.postTitleColor),t?.postBackgroundColor&&(n.background=t?.postBackgroundColor),{...n,...(0,U.qD)(i,e,o),...(0,c.qD)(a,"padding",e),...(0,y.qD)(l,e)} | |
| 3225 | +},TU=(t,e="")=>{const i={};return t?.postTitleHoverColor&&(i.color=t?.postTitleHoverColor),t?.hoverPostBackgroundColor&&(i.background=t?.hoverPostBackgroundColor),{...i}},HU=(t,e="")=>{const i=(0,M.Zy)(t.activePostBorder,{unitWidth:"px",unitRadius:"px"}),o={};return t?.postTitleActiveColor&&(o.color=t?.postTitleActiveColor),t?.activePostBackgroundColor&&(o.background=t?.activePostBackgroundColor),{...o,...(0,y.qD)(i,e)}},MU=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"500"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t?.buttonPadding,{unit:"px"}),l=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),n={};return t?.buttonColor&&(n.color=t?.buttonColor),t?.buttonBgColor&&(n.background=t?.buttonBgColor),{...n,...(0,U.qD)(i,e,o),...(0,y.qD)(l,e),...(0,c.qD)(a,"padding",e),...(0,c.qD)(t?.buttonPadding,"padding",e),...(0,Zt.qD)(t?.buttonPosition,"display",e)}},xU=(t,e="")=>{const i={};t?.buttonHoverColor&&(i.color=t?.buttonHoverColor), | |
| 3226 | +t?.buttonHoverBgColor&&(i.background=t?.buttonHoverBgColor);const o=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},kU=(t,e="")=>{const i=t.taxonomyLayout||"flex",o=t.itemsPerRow||3,a={};return"Tablet"===e?a["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?a["grid-template-columns"]="repeat(1, 1fr)":t?.itemsPerRow&&(a["grid-template-columns"]=`repeat(${t.itemsPerRow}, 1fr)`),"flex"===i?{display:"grid",gap:"1.5rem",...a}:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"1.5rem",marginTop:"2rem",...a}};function vU({attributes:t,setAttributes:e,context:i}){const{metaKey:o="",linkAdd:a=!1,trimMode:n,trimLimit:s,trimEndSymbol:b,dynamicTextColor:c,dynamicTypography:d,alignment:u}=t;l().useLayoutEffect(()=>{o||e({metaKey:"core:title"})},[]);const p=(0,r.useSelect)(t=>t("core/editor")?.getCurrentPostType?.()||"",[]),m=i?.postType||p||"",h=(0,r.useSelect)(t=>m?(t("core")?.getTaxonomies({per_page:-1 | |
| 3227 | +})||[]).filter(t=>Array.isArray(t.types)&&t.types.includes(m)):[],[m]),g=[{label:(0,L.__)("Title","ablocks"),value:"core:title"},{label:(0,L.__)("Content","ablocks"),value:"core:content"},{label:(0,L.__)("Excerpt","ablocks"),value:"core:excerpt"},{label:(0,L.__)("Date (published)","ablocks"),value:"core:date"},{label:(0,L.__)("Date (Modified)","ablocks"),value:"core:last_modified"},{label:(0,L.__)("Permalink","ablocks"),value:"core:permalink"},{label:(0,L.__)("Author Name","ablocks"),value:"core:author"}],f=(h||[]).flatMap(t=>[{label:`[Tax] ${t.labels?.name||t.name} (Names)`,value:`__tax:${t.slug}:names`}]),y=l().useMemo(()=>{const t=[...g,...f];return t.some(t=>t.value===o)||!o?t:[{label:`[Meta] ${o}`,value:o},...t]},[o,h]);return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:t,setAttributes:e,children:(0,I.jsx)(V,{title:(0,L.__)("Field / Meta","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.ComboboxControl,{ | |
| 3228 | +className:"dynamic-text-control",__nextHasNoMarginBottom:!0,label:(0,L.__)("Field / Taxonomy","ablocks"),value:o||"core:title",onChange:t=>e({metaKey:t||"core:title"}),options:y}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Trim Mode (words)","ablocks"),attributeValue:n,setAttributes:e,attributeName:"trimMode"}),!!n&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Word Limit","ablocks"),attributeName:"trimLimit",attributeValue:s,setAttributes:e,min:1,isInline:!0,disableDynamicContent:!0}),(0,I.jsx)(Kl,{label:(0,L.__)("End Symbol","ablocks"),attributeName:"trimEndSymbol",attributeValue:b,setAttributes:e,isInline:!1,disableDynamicContent:!0,placeholder:"…"})]}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Link","ablocks"),attributeValue:a,setAttributes:e,attributeName:"linkAdd"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"dynamicTextColor",attributeValue:c,setAttributes:e}),(0,I.jsx)(wc,{ | |
| 3229 | +label:(0,L.__)("Typography","ablocks"),attributeName:"dynamicTypography",attributeValue:d,setAttributes:e,isResponsive:!0,attributes:t}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:u,setAttributes:e,isInline:!1})]})})})})})}(0,M.xV)(lU.UU)&&(0,o.registerBlockType)(lU.UU,{title:(0,L.__)("Taxonomy Listing","ablocks"),attributes:lU.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--taxonomy-listing"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",sU(i),sU(i,"Tablet"),sU(i,"Mobile"),t.customDeviceMap(t=>sU(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0, | |
| 3230 | +Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))), | |
| 3231 | +t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item",uU(i),uU(i,"Tablet"),uU(i,"Mobile"),t.customDeviceMap(t=>uU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item:hover",pU(i),pU(i,"Tablet"),pU(i,"Mobile"),t.customDeviceMap(t=>pU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-item_content ",mU(i),mU(i,"Tablet"),mU(i,"Mobile"),t.customDeviceMap(t=>mU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title",rU(i),rU(i,"Tablet"),rU(i,"Mobile"),t.customDeviceMap(t=>rU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title:hover",bU(i),bU(i,"Tablet"),bU(i,"Mobile"),t.customDeviceMap(t=>bU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a",yU(i),yU(i,"Tablet"),yU(i,"Mobile"),t.customDeviceMap(t=>yU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a:hover",TU(i),TU(i,"Tablet"),TU(i,"Mobile"),t.customDeviceMap(t=>TU(i,t))), | |
| 3232 | +t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-posts a.active-post-link",HU(i),HU(i,"Tablet"),HU(i,"Mobile"),t.customDeviceMap(t=>HU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count",cU(i),cU(i,"Tablet"),cU(i,"Mobile"),t.customDeviceMap(t=>cU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-title__post-count:hover",dU(i),dU(i,"Tablet"),dU(i,"Mobile"),t.customDeviceMap(t=>dU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button",MU(i),MU(i,"Tablet"),MU(i,"Mobile"),t.customDeviceMap(t=>MU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-reload-button:hover",xU(i),xU(i,"Tablet"),xU(i,"Mobile"),t.customDeviceMap(t=>xU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-listing-container.flex",kU(i),kU(i,"Tablet"),kU(i,"Mobile"),t.customDeviceMap(t=>kU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon",hU(i),hU(i,"Tablet"),hU(i,"Mobile"),t.customDeviceMap(t=>hU(i,t))), | |
| 3233 | +t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg",gU(i),gU(i,"Tablet"),gU(i,"Mobile"),t.customDeviceMap(t=>gU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-taxonomy-icon svg path",fU(i),fU(i,"Tablet"),fU(i,"Mobile"),t.customDeviceMap(t=>fU(i,t))),(0,b.applyFilters)("ablocks.taxonomyListing.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(aU,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(nU,{...t})]})},save:()=>null}),vU.propTypes={};const _U={UU:"ablocks/dynamic-text",uK:{dynamicTypographyGlobal:{type:"string",default:""},dynamicTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px", | |
| 3234 | +letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},metaKey:{type:"string",default:""},linkAdd:{type:"boolean",default:!1},trimMode:{type:"boolean",default:!1},dynamicTextColor:{type:"string",default:""},trimLimit:{type:"number",default:0},trimEndSymbol:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"", | |
| 3235 | +right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0, | |
| 3236 | +commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"", | |
| 3237 | +bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"", | |
| 3238 | +imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"", | |
| 3239 | +imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px", | |
| 3240 | +offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"", | |
| 3241 | +scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 3242 | +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function RU(t){const{attributes:e,context:i}=t,o=function(t,e){ | |
| 3243 | +const i=t=>parseInt(t||0,10)||0;return(0,r.useSelect)(o=>{const a=o("core/editor"),l=o("core/edit-site")?.getEditedPostContext?.()??{},n=i(t?.postId||a?.getCurrentPostId?.()||l?.postId||e?.postId);if(n)return n;const s=t?.postType||l?.postType||a?.getCurrentPostType?.()||"post",r=o("core")?.getEntityRecords?.("postType",s,{per_page:1,order:"desc",orderby:"date"});return i(r?.[0]?.id)},[t?.postId,t?.postType,e?.postId])}(i,e);return(0,I.jsx)(tP,{blockId:e.block_id,name:_U.UU,attributes:e,children:(0,I.jsx)(N.Disabled,{children:(0,I.jsx)(tW(),{block:"ablocks/dynamic-text",httpMethod:"POST",attributes:{...e,postId:o},urlQueryArgs:o?{post_id:o}:{}},`dynamic-text-${o}`)})})}RU.propTypes={};const SU=(t,e="")=>{const i={},o=(0,M.Zy)(t.dynamicTypography,{weight:"500"});return t?.dynamicTextColor&&(i.color=(0,Hs.qD)(t?.dynamicTextColor)),{...i,...(0,U.qD)(o,e),...(0,Zt.qD)(t?.alignment,"text-align",e)}};(0,M.xV)(_U.UU)&&(0,o.registerBlockType)(_U.UU,{title:(0,L.__)("Dynamic Text","ablocks"), | |
| 3244 | +attributes:_U.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--dynamic-text"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .dynami-text-output",SU(i),SU(i,"Tablet"),SU(i,"Mobile"),t.customDeviceMap(t=>SU(i,t))),t.addClassStyles("{{WRAPPER}} .dynami-text-output a",SU(i),SU(i,"Tablet"),SU(i,"Mobile"),t.customDeviceMap(t=>SU(i,t))),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(vU,{...t}),(0,I.jsx)("style",{children:s}),(0,I.jsx)(RU,{...t})]})},save:()=>null});var WU=i(60690);function PU(t){ | |
| 3245 | +const{attributes:e,setAttributes:i}=t,{alignment:o,menuItemTypography:a,menuItemTextColor:n,menuItemTextColorH:s,menuItemBackgroundH:r,menuItemBackground:b,menuItemPadding:c,menuItemMargin:d,menuItemBorder:u,sideBarMenuDevice:p,enableTabletHamburger:m,subMenuTrigger:h,mobileMenuPosition:g,hamburgerAlignment:f,hamburgerColor:y,hamburgerBackground:T,hamburgerPadding:H,hamburgerWidth:M,hamburgerHeight:x,hamburgerBorder:k,menuResponsiveBackground:v,menuResponsiveTextColor:_,subMenuWidth:R,subMenuBoxShadow:S,subMenuBorder:W,subMenuPadding:P,subMenuResponsiveColor:U,subMenuResponsiveBg:j,subMenuItemTextColor:w,subMenuItemBackground:z,subMenuItemTextColorH:C,subMenuItemBackgroundH:A,menuActveColor:N,menuActveColorBg:O}=e,Y=lt(),X="Tablet"===Y&&"tablet"===p||"Mobile"===Y;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/navigation-menu/",children:[(0,I.jsx)(V,{title:(0,L.__)("Nav","ablocks"), | |
| 3246 | +initialOpen:!0,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,isResponsive:!0,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Ut,{label:(0,L.__)("Hamburger Menu Device","ablocks"),options:[{label:(0,L.__)("Tablet","ablocks"),value:"tablet"},{label:(0,L.__)("Mobile","ablocks"),value:"mobile"}],attributeName:"sideBarMenuDevice",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Enable Tablet Hamburger Menu","ablocks"),isResponsive:!1,attributeName:"enableTabletHamburger",attributeValue:m,setAttributes:i}),(0,I.jsx)(Iv,{note:(0,L.__)("Shows the hamburger menu on tablets (768px–1024px).","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("Mobile Menu Position","ablocks"),options:[{label:(0, | |
| 3247 | +L.__)("Below Header","ablocks"),value:"below-header"},{label:(0,L.__)("Overlay Header","ablocks"),value:"overlay-header"}],attributeName:"mobileMenuPosition",attributeValue:g,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Sub-menu Trigger (desktop)","ablocks"),options:[{label:(0,L.__)("Hover","ablocks"),value:"hover"},{label:(0,L.__)("Click","ablocks"),value:"click"}],attributeName:"subMenuTrigger",attributeValue:h,setAttributes:i})]})}),X&&(0,I.jsx)(V,{title:(0,L.__)("Mobile Hamburger","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"hamburgerAlignment",attributeValue:f,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Hamburger Width","ablocks"), | |
| 3248 | +isResponsive:!1,min:0,max:100,attributeName:"hamburgerWidth",attributeValue:M,hasUnit:!0,setAttributes:i,isInline:!1,attributeDefaultValue:WU.wP}),(0,I.jsx)(_t,{label:(0,L.__)("Hamburger Height","ablocks"),isResponsive:!1,min:0,max:100,hasUnit:!0,attributeName:"hamburgerHeight",attributeValue:x,setAttributes:i,isInline:!1,attributeDefaultValue:WU.JH})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"hamburgerColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"hamburgerBackground",attributeValue:T,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"hamburgerPadding",attributeValue:H,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"hamburgerBorder",attributeValue:k,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Menu Item","ablocks"), | |
| 3249 | +initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"menuItemTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackground",attributeValue:b,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColorH",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackgroundH",attributeValue:r,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1, | |
| 3250 | +isInline:!1,isResponsive:!1,attributeValue:e?.menuItemTransition||0,attributeName:"menuItemTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"menuItemBorder",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"menuItemPadding",attributeValue:c,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"menuItemMargin",attributeValue:d,setAttributes:i})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Menu Responsive","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"menuResponsiveTextColor",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuResponsiveBackground",attributeValue:v,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0, | |
| 3251 | +L.__)("Sub Menu Responsive","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveColor",attributeValue:U,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveBg",attributeValue:j,setAttributes:i})]}),(0,I.jsx)(V,{title:(0,L.__)("Submenu Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"subMenuWidth",attributeValue:R,setAttributes:i,attributeDefaultValue:WU.km,autoSyncRange:!0})}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subMenuItemTextColor",attributeValue:w,setAttributes:i}),(0,I.jsx)(Ws,{label:(0, | |
| 3252 | +L.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuItemBackground",attributeValue:z,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subMenuItemTextColorH",attributeValue:C,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuItemBackgroundH",attributeValue:A,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.subMenuItemTransition||0,attributeName:"subMenuItemTransition",setAttributes:i})]})}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:S,setAttributes:i,attributeName:"subMenuBoxShadow"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"subMenuBorder",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0, | |
| 3253 | +attributeName:"subMenuPadding",attributeValue:P,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Menu Active Style","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"menuActveColor",attributeValue:N,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuActveColorBg",attributeValue:O,setAttributes:i})]})]})})})}PU.propTypes={};const UU={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:""},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string", | |
| 3254 | +default:"black"},hamburgerBackground:{type:"string",default:""},sideBarMenuDevice:{type:"string",default:"mobile"},enableTabletHamburger:{type:"boolean",default:!1},mobileMenuPosition:{type:"string",default:"below-header"},subMenuTrigger:{type:"string",default:"hover"},menuResponsiveBackground:{type:"string",default:""},menuResponsiveTextColor:{type:"string",default:""},subMenuResponsiveColor:{type:"string",default:""},subMenuResponsiveBg:{type:"string",default:""},subMenuItemTextColor:{type:"string",default:""},subMenuItemBackground:{type:"string",default:""},subMenuItemTextColorH:{type:"string",default:""},subMenuItemBackgroundH:{type:"string",default:""},subMenuItemTransition:{type:"number",default:0},menuActveColor:{type:"string",default:""},menuActveColorBg:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},hamburgerPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"", | |
| 3255 | +unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"", | |
| 3256 | +topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}}, | |
| 3257 | +hamburgerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"", | |
| 3258 | +commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuItemTypographyGlobal:{type:"string",default:""},menuItemTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px", | |
| 3259 | +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"}},subMenuBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},subMenuPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},subMenuBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0, | |
| 3260 | +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:"", | |
| 3261 | +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:""}},hamburgerHeight:{type:"object",default:{value:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},hamburgerWidth:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},subMenuWidth:{type:"object",default:{value:250,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 3262 | +isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 3263 | +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:"", | |
| 3264 | +bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"", | |
| 3265 | +backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 3266 | +imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1, | |
| 3267 | +rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"", | |
| 3268 | +offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0", | |
| 3269 | +xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{ | |
| 3270 | +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},jU=class{constructor(t,e=!1){this.element=t;const i=t?.getAttribute("data-menu-device");this.menuDevice=i,this.mobileMenuPosition=t?.getAttribute("data-mobile-menu-position")||"below-header",this.menu=t?.querySelector(`.ablocks-menu-${i}`),this.markCurrentMenuItems(e),this.newMenu=this.menu?.cloneNode(!0),this.mainMenu=this.newMenu?.querySelector(".ablocks-main-menu"),this.initMenuTriggers(e),this.initMenuItems(e),this.initDesktopClickTrigger(e),this.editorDiv=document?.querySelector(".interface-navigable-region.interface-interface-skeleton__content"),this.menuLists=this.element.querySelectorAll(".ablocks-block--menu-item")}markCurrentMenuItems(t){if(!t||!this.element)return;const e=window.location,i=t=>t.replace(/\/+$/,"") | |
| 3271 | +;this.element.querySelectorAll(".ablocks-block--menu-item").forEach(t=>{const o=Array.from(t.children).find(t=>t.classList?.contains("ablocks-menu-item__link")),a=o?.getAttribute("href")?.trim();a&&!a.startsWith("#")&&/^https?:$/.test(o.protocol)&&(o.origin!==e.origin||i(o.pathname)!==i(e.pathname)||o.search!==e.search||o.hash&&o.hash!==e.hash||t.classList.add("ablocks-block--menu-item-active"))})}initMenuTriggers(t){const e=this.element?.querySelector(`.ablocks-menu-${this.menuDevice}__trigger`);this.toggleButton=e,e?.addEventListener("click",()=>this.toggleMenu(t))}initMenuItems(t){if(!t||!this.mainMenu)return;const e=this.mainMenu?.querySelectorAll(".ablocks-menu-item");e.forEach(t=>{t?.addEventListener("click",e=>{e.stopPropagation(),this.toggleMenuItem(t,e)})})}toggleMenuItem(t,e){e.target.closest(".ablocks-menu-child-mega")||t.classList.toggle("ablocks-sub-menu--active")}toggleMenu=t=>{const e=this.newMenu | |
| 3272 | +;if(t||this.menu.classList.toggle(`ablocks-menu-${this.menuDevice}--active`),e.style.position="absolute","overlay-header"===this.mobileMenuPosition){const t=this.toggleButton.getBoundingClientRect();e.style.top=`${t.bottom+window.scrollY}px`,e.style.right=window.innerWidth-t.right+"px"}else{const t=(this.element?.parentElement||this.toggleButton).getBoundingClientRect();e.style.top=`${t.bottom+window.scrollY}px`}e.classList.add("ablocks-menu--outside"),e?.classList.toggle(`ablocks-menu-${this.menuDevice}--active`),t&&document.body.appendChild(e)};toggleSubMenu(t){t.classList.toggle("ablocks-menu-child-sub--active")}toggleMegaMenu(t,e){e.target.closest(".ablocks-menu-child-mega--active")||t.classList.toggle("ablocks-menu-child-mega--active")}handleListClick(t){const e=t.target.closest(".ablocks-block--menu-item");e&&(this.menuLists.forEach(t=>t.classList.remove("ablocks-block--menu-item-active")),e.classList.add("ablocks-block--menu-item-active"))}init(){this.menuLists.forEach(t=>{ | |
| 3273 | +t.addEventListener("click",t=>{this.handleListClick(t)})})}initDesktopClickTrigger(t){if(!t||"click"!==this.element?.getAttribute("data-submenu-trigger"))return;const e=this.element;this.clickItems=[],e.querySelectorAll(".ablocks-menu-item").forEach(t=>{if(!Array.from(t.children).some(t=>t.classList&&(t.classList.contains("ablocks-menu-child-sub")||t.classList.contains("ablocks-menu-child-mega"))))return;const e=Array.from(t.querySelectorAll(".ablocks-menu-item__link, a")).find(e=>e.closest(".ablocks-menu-item")===t);if(!e)return;this.clickItems.push(t),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false");const i=i=>{i.preventDefault(),i.stopPropagation();const o=!t.classList.contains("ablocks-submenu-open");this.closeSiblingSubmenus(t),t.classList.toggle("ablocks-submenu-open",o),e.setAttribute("aria-expanded",String(o))};e.addEventListener("click",i);const o=Array.from(t.children).find(t=>t.classList&&t.classList.contains("ablocks-menu-item__dropdown-icon")) | |
| 3274 | +;o?.addEventListener("click",i)}),this.clickItems.length&&(document.addEventListener("click",t=>{e.contains(t.target)||this.closeAllSubmenus()}),e.addEventListener("keydown",t=>{"Escape"===t.key&&this.closeAllSubmenus()}))}closeSubmenu(t){t.classList.remove("ablocks-submenu-open");const e=Array.from(t.querySelectorAll(".ablocks-menu-item__link, a")).find(e=>e.closest(".ablocks-menu-item")===t);e?.setAttribute("aria-expanded","false")}closeSiblingSubmenus(t){const e=t.parentElement;e&&Array.from(e.children).forEach(e=>{e!==t&&e.classList?.contains("ablocks-submenu-open")&&this.closeSubmenu(e)})}closeAllSubmenus(){(this.clickItems||[]).forEach(t=>this.closeSubmenu(t))}};function wU(t){const{attributes:e,clientId:i}=t,{insertBlock:n}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{block_id:s,sideBarMenuDevice:b,subMenuTrigger:c,mobileMenuPosition:d,enableTabletHamburger:u}=e,{children:p,innerBlocksProps:m}=(0,D.useInnerBlocksProps)({},{ | |
| 3275 | +template:[["ablocks/menu-item",{label:"Home"}],["ablocks/menu-item",{label:"About"}],["ablocks/menu-item",{label:"Products"},[["ablocks/menu-child-sub",{},[["ablocks/menu-item",{label:"Academy LMS"}],["ablocks/menu-item",{label:"Ablocks"}]]]]],["ablocks/menu-item",{label:"Portfolio"}],["ablocks/menu-item",{label:"Contact"}]],allowedBlocks:["ablocks/menu-item"],renderAppender:!1});return(0,a.useEffect)(()=>{new jU((0,M.bu)(`.ablocks-block-${s}`))},[s]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:s,name:UU.UU,attributes:e,blockProps:{"data-menu-device":b,..."click"===c?{"data-submenu-trigger":"click"}:{},..."overlay-header"===d?{"data-mobile-menu-position":"overlay-header"}:{},...u?{"data-tablet-hamburger":"true"}:{}},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${b}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0, | |
| 3276 | +I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:`ablocks-menu ablocks-menu-${b}`,...u?{"data-tablet-hamburger":"true"}:{},children:(0,I.jsxs)("ul",{className:"ablocks-main-menu",...m,children:[p,(0,I.jsx)("button",{className:"ablocks-menu__new-item",onClick:()=>{const t=(0,o.createBlock)("ablocks/menu-item");n(t,0,i)},children:"+"})]})})]})})}wU.propTypes={};const zU=(t,e="")=>{const i=(0,M.Zy)(t.padding,{unit:"px"}),o={...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,"box-shadow",e)};return"string"==typeof t?.alignment?!e&&t.alignment&&(o["justify-content"]=t.alignment):Object.assign(o,(0,Zt.qD)(t?.alignment,"justify-content",e)),o},CU=(t,e="")=>{const i={};t?.menuItemBorder?.commonWidth&&(i["margin-top"]=`${t?.menuItemBorder?.commonWidth}px`), | |
| 3277 | +t?.menuItemBorder?.bottomWidth&&(i["margin-top"]=`${t?.menuItemBorder?.bottomWidth}px`);const o=(0,M.Zy)(t.subMenuBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.subMenuPadding,{unit:"px"});return{...i,...(0,Eb.qD)({attributeValue:t?.subMenuWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.subMenuBoxShadow,"box-shadow",e),...(0,y.qD)(o,e)}},AU=(t,e="")=>{const i=(0,M.Zy)(t?.subMenuBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.subMenuBoxShadow,e)}},LU=(t,e="")=>{const i={};return t?.subMenuItemTransition&&(i["transition-duration"]=t?.subMenuItemTransition+"s"),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveBg&&(i.background=`${(0,Hs.qD)(t?.subMenuResponsiveBg)} !important`),{background:(0,Hs.qD)(t?.subMenuItemBackground),...i}},DU=(t,e="")=>{const i={} | |
| 3278 | +;return("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveColor&&(i.color=`${(0,Hs.qD)(t?.subMenuResponsiveColor)} !important`),{color:(0,Hs.qD)(t?.subMenuItemTextColor),...i}},NU=(t,e="")=>{const i=(0,M.Zy)(t.menuItemPadding,{unit:"px"}),o=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),a=(0,M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),n=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",s={...(0,y.qD)(a,e),...(0,U.qD)(l,e,n),...(0,c.qD)(i,"padding",e),...(0,c.qD)(o,"margin",e)};return t["menuItemDirection"+e]&&(s["flex-direction"]=t["menuItemDirection"+e]),t["menuItemJustify"+e]&&(s["justify-content"]=t["menuItemJustify"+e]),t["menuItemAlign"+e]&&(s["align-items"]=t["menuItemAlign"+e]),t?.menuItemTransition&&(s.transition=t?.menuItemTransition+"s"),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveBackground&&(s.background=(0,Hs.qD)(t?.menuResponsiveBackground)),{ | |
| 3279 | +background:(0,Hs.qD)(t?.menuItemBackground),color:(0,Hs.qD)(t?.menuItemTextColor),...s}},IU=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={...(0,y.a9)(i,e)};return t?.menuItemTextColorH&&(o.color=(0,Hs.qD)(t?.menuItemTextColorH)),t?.menuItemBackgroundH&&(o.background=(0,Hs.qD)(t?.menuItemBackgroundH)),o},VU=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.color=(0,Hs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.color=`${(0,Hs.qD)(t?.menuResponsiveTextColor)} !important`),i},OU=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.fill=(0,Hs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.fill=`${(0,Hs.qD)(t?.menuResponsiveTextColor)} !important`),i},YU=t=>t?.menuResponsiveBackground?{background:(0,Hs.qD)(t?.menuResponsiveBackground)}:{},XU=(t,e)=>t?.enableTabletHamburger&&e&&Object.keys(e).length?{ | |
| 3280 | +tabletHamburger:{width:1024,min:768,max:1024,styles:e}}:{},BU=(t,e="")=>{const i=30+t?.hamburgerHeight.value,o=(0,M.Zy)(t.hamburgerPadding,{unit:"px"}),a=(0,M.Zy)(t.hamburgerBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)};return i&&(l.height=`${i}px`),{background:(0,Hs.qD)(t?.hamburgerBackground),...l}},EU=(t,e="")=>{const i=(0,M.Zy)(t.hamburgerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},FU=(t,e="")=>{const i={"margin-top":"0px !important"};return"tablet"===t?.sideBarMenuDevice&&"Tablet"===e&&(i.position="static !important"),i},qU=(t,e="")=>({color:(0,Hs.qD)(t?.menuActveColor),background:(0,Hs.qD)(t?.menuActveColorBg)}),$U=(t,e="")=>{const i=(0,Hs.qD)(t?.menuActveColor);return i&&("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)?`${i} !important`:i},GU=(t,e="")=>({color:$U(t,e)}),ZU=(t,e="")=>({fill:$U(t,e)});function KU(t){ | |
| 3281 | +const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o,subMenuTrigger:a,mobileMenuPosition:n,enableTabletHamburger:s}=e,{innerBlocksProps:r,children:b}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:UU.UU,attributes:e,blockProps:{"data-menu-device":o,..."click"===a?{"data-submenu-trigger":"click"}:{},..."overlay-header"===n?{"data-mobile-menu-position":"overlay-header"}:{},...s?{"data-tablet-hamburger":"true"}:{}},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,...s?{ | |
| 3282 | +"data-tablet-hamburger":"true"}:{},children:(0,I.jsx)("ul",{className:"ablocks-main-menu",...r,children:b})})]})})}KU.propTypes={};const JU={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},alignment:{type:"string",default:"left"},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:"#000000"},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string",default:"black"},hamburgerBackground:{type:"string",default:""},sideBarMenuDevice:{type:"string",default:"mobile"},menuResponsiveBackground:{type:"string",default:""},menuResponsiveTextColor:{type:"string",default:""},subMenuResponsiveColor:{type:"string",default:""},subMenuResponsiveBg:{type:"string",default:""},subMenuItemTextColor:{type:"string",default:""},subMenuItemBackground:{ | |
| 3283 | +type:"string",default:""},subMenuItemTextColorH:{type:"string",default:""},subMenuItemBackgroundH:{type:"string",default:""},subMenuItemTransition:{type:"number",default:0},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},hamburgerPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"", | |
| 3284 | +rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0, | |
| 3285 | +commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},hamburgerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"", | |
| 3286 | +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:"", | |
| 3287 | +topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuItemTypography:{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"}},subMenuBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"", | |
| 3288 | +blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},subMenuPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},subMenuBorder:{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:"", | |
| 3289 | +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:""}},hamburgerHeight:{type:"object",default:{value:3,valueUnit:"px", | |
| 3290 | +valueUnitTablet:"",valueUnitMobile:""}},hamburgerWidth:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},subMenuWidth:{type:"object",default:{value:250,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",widthTypeTablet:"",widthTypeMobile:"", | |
| 3291 | +customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px", | |
| 3292 | +unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"", | |
| 3293 | +hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 3294 | +imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"", | |
| 3295 | +vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"", | |
| 3296 | +xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{ | |
| 3297 | +type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}}, | |
| 3298 | +_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function QU(t){const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o}=e,{innerBlocksProps:a,children:n}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:JU.UU,attributes:e,blockProps:{"data-menu-device":o},children:[(0,I.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,I.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,I.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,I.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,I.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,children:(0,I.jsx)("ul",{className:"ablocks-main-menu",...a, | |
| 3299 | +children:n})})]})})}function tj(t){const{attributes:e,setAttributes:i}=t,{link:o,label:a,hasLink:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(V,{initialOpen:!0,title:(0,L.__)("Menu Item","ablocks"),children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Label","ablocks"),attributeName:"label",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Enable Link","ablocks"),attributeValue:n,setAttributes:i, | |
| 3300 | +attributeName:"hasLink",isResponsive:!1}),n&&(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:o,setAttributes:i})]})})]})})}QU.propTypes={},(0,M.xV)(UU.UU)&&(0,o.registerBlockType)(UU.UU,{title:(0,L.__)("Menu","ablocks"),attributes:UU.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-menu",zU(i),zU(i,"Tablet"),zU(i,"Mobile"),e(t=>zU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item",NU(i),NU(i,"Tablet"),NU(i,"Mobile"),XU(i,YU(i)),e(t=>NU(i,t))), | |
| 3301 | +t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link",NU(i),NU(i,"Tablet"),NU(i,"Mobile"),XU(i,YU(i)),e(t=>NU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover",IU(i),IU(i,"Tablet"),IU(i,"Mobile"),e(t=>IU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link:hover",IU(i),IU(i,"Tablet"),IU(i,"Mobile"),e(t=>IU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub",CU(i),CU(i,"Tablet"),CU(i,"Mobile"),e(t=>CU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub:hover",AU(i),AU(i,"Tablet"),AU(i,"Mobile"),e(t=>AU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item",LU(i),LU(i,"Tablet"),LU(i,"Mobile"),e(t=>LU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",(t=>({color:(0,Hs.qD)(t?.subMenuItemTextColorH),background:(0,Hs.qD)(t?.subMenuItemBackgroundH) | |
| 3302 | +}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item .ablocks-menu-item__link",DU(i),DU(i,"Tablet"),DU(i,"Mobile"),e(t=>DU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-menu-item:hover .ablocks-menu-item__link",(t=>({color:(0,Hs.qD)(t?.subMenuItemTextColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__link",VU(i),VU(i,"Tablet"),VU(i,"Mobile"),XU(i,VU(i,"Mobile")),e(t=>VU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:(0,Hs.qD)(t?.menuItemTextColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__dropdown-icon svg",OU(i),OU(i,"Tablet"),OU(i,"Mobile"),XU(i,OU(i,"Mobile")),e(t=>OU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__dropdown-icon svg",(t=>{const e={} | |
| 3303 | +;return t?.menuItemTextColor&&(e.fill=(0,Hs.qD)(t?.menuItemTextColorH)),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu-item > .ablocks-menu-child-sub",{"margin-top":"0px !important",display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-menu-child-mega",FU(i),FU(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper",(t=>{const e={};return t?.hamburgerAlignment&&(e["justify-content"]=t?.hamburgerAlignment),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger ",BU(i),BU(i,"Tablet"),BU(i,"Mobile"),e(t=>BU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger:hover ",EU(i),EU(i,"Tablet"),EU(i,"Mobile"),e(t=>EU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger .ablocks-menu__trigger-item ",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.hamburgerWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:30,hasUnit:!0,unitDefaultValue:"px", | |
| 3304 | +property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.hamburgerHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:3,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{background:(0,Hs.qD)(t?.hamburgerColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active",qU(i),qU(i,"Tablet"),qU(i,"Mobile"),e(t=>qU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active > .ablocks-menu-item__link",GU(i),GU(i,"Tablet"),GU(i,"Mobile"),e(t=>GU(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu .ablocks-menu-item.ablocks-block--menu-item-active > .ablocks-menu-item__dropdown-icon svg",ZU(i),ZU(i,"Tablet"),ZU(i,"Mobile"),e(t=>ZU(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(PU,{...t}),(0,I.jsx)(wU,{...t})]})},save:KU,deprecated:[{attributes:JU.uK,save:QU}],icon:(0,I.jsx)("span",{ | |
| 3305 | +className:"ablocks-icon ablocks-icon--menu"})}),tj.propTypes={};const ej=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})}),ij={UU:"ablocks/menu-item",$t:["ablocks/menu"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:"Menu"},isSubMenu:{type:"boolean",default:!1},hasMegaMenu:{type:"boolean",default:!1},hasLink:{type:"boolean",default:!1},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}}}};function oj(t){const{attributes:e,setAttributes:i}=t,{block_id:n,label:b,hasMegaMenu:c,isSubMenu:d}=e,[u,p]=(0,a.useState)(!1),[m,h]=(0, | |
| 3306 | +a.useState)(!1),{innerBlocksProps:g,children:f}=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/menu-child-sub","ablocks/menu-child-mega"],renderAppender:!1}),{hasChildBlocks:y,parentBlockName:T}=(0,r.useSelect)(t=>{const e=t("core/block-editor"),i=e.getBlockRootClientId(n),o=i?e.getBlock(i):null;return{hasChildBlocks:e?.getBlockOrder(n).length>0,parentBlockName:o?.name||null}});return(0,a.useEffect)(()=>{i({isSubMenu:y})},[y]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:!y&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{role:"presentation",onClick:function(){const t=(0,o.createBlock)("ablocks/menu-child-sub");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),p(!0),h(!0)},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("Add Submenu","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})})}),"ablocks/menu"===T&&(0,I.jsx)("div",{role:"presentation",onClick:function(){ | |
| 3307 | +const t=(0,o.createBlock)("ablocks/menu-child-mega");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),p(!0),h(!0),i({hasMegaMenu:!0})},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,I.jsx)(F,{tooltipText:(0,L.__)("Add Mega Menu","ablocks"),children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})})})]})}),u&&(0,I.jsx)("div",{className:"ablocks-menu-item__submenu-overlay",role:"presentation",onClick:()=>{p(!1),h(!1)}}),(0,I.jsxs)(sR,{blockId:n,name:ij.UU,attributes:e,tagName:"li",...g,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),blockProps:{onClick:()=>{p(!0),h(!0)}},children:[(0,I.jsx)("a",{href:"#",className:"ablocks-menu-item__link",children:b})," ",y&&(0,I.jsx)("div",{className:s()("ablocks-menu-item__dropdown-icon",{"rotate-icon":m}),children:ej}),u&&f]})]})}function aj(t){ | |
| 3308 | +const{attributes:e}=t,{block_id:i,label:o,link:{href:a,linkTarget:n,noFollow:r,keyValue:b},hasMegaMenu:c,isSubMenu:d,hasLink:u}=e,{innerBlocksProps:p,children:m}=D.useInnerBlocksProps.save({});let h={};return u?(a&&(h.href=a),n&&(h.target="_blank"),h.rel=r?n?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",b&&(h={...h,...(0,wb.jM)(b)})):h.rel="nofollow noreferrer noopener",(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(dR,{blockId:i,name:ij.UU,attributes:e,tagName:"li",...p,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),children:[(0,I.jsx)("a",{...h,className:"ablocks-menu-item__link",children:o}),d&&(0,I.jsx)("div",{className:"ablocks-menu-item__dropdown-icon",children:ej}),m]})})}function lj(t){const{attributes:e}=t,{block_id:i,label:o,link:{href:a,linkTarget:n,noFollow:r,keyValue:b},hasMegaMenu:c,isSubMenu:d}=e,{innerBlocksProps:u,children:p}=D.useInnerBlocksProps.save({});let m={};return a&&(m.href=a), | |
| 3309 | +n&&(m.target="_blank"),m.rel=r?n?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",b&&(m={...m,...(0,wb.jM)(b)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(dR,{blockId:i,name:ij.UU,attributes:e,tagName:"li",...u,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),children:[(0,I.jsx)("a",{...m,className:"ablocks-menu-item__link",children:o}),d&&(0,I.jsx)("div",{className:"ablocks-menu-item__dropdown-icon",children:ej}),p]})})}oj.propTypes={},aj.propTypes={},lj.propTypes={},(0,M.xV)(ij.UU,ij.$t[0])&&(0,o.registerBlockType)(ij.UU,{title:(0,L.__)("Menu Item","ablocks"),attributes:ij.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(tj,{...t}),(0,I.jsx)(oj,{...t})]})},save:aj,deprecated:[{ | |
| 3310 | +attributes:ij.uK,save:lj}],icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--menu"})});var nj=i(46890);function sj(t){lt();const{attributes:e,setAttributes:i}=t,{width:o,boxShadow:a,background:n,border:s,padding:r,menuItemTypography:b,menuItemTextColor:c,menuItemTextColorH:d,menuItemBackgroundH:u,menuItemBackground:p,menuItemPadding:m,menuItemMargin:h,menuItemBorder:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(V,{title:(0, | |
| 3311 | +L.__)("Sub Menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:o,setAttributes:i,attributeDefaultValue:nj.V,autoSyncRange:!0})}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackground",attributeValue:p,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuItemTextColorH",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0, | |
| 3312 | +attributeName:"menuItemBackgroundH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.menuItemTransition||0,attributeName:"menuItemTransition",setAttributes:i})]})}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:a,setAttributes:i,attributeName:"boxShadow"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:n,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:r,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Menu Item","ablocks"),initialOpen:!1,children:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Wb,{isInline:!1,label:(0,L.__)("Alignment","ablocks"), | |
| 3313 | +options:[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,L.__)("Space Around","ablocks"),value:"space-around",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{label:(0,L.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],attributeName:"menuItemJustification",attributeValue:e?.menuItemJustification,setAttributes:i}),(0,I.jsx)(wc,{ | |
| 3314 | +label:(0,L.__)("Typography","ablocks"),attributeName:"menuItemTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"menuItemBorder",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"menuItemPadding",attributeValue:m,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"menuItemMargin",attributeValue:h,setAttributes:i})]})})]})})}const rj={UU:"ablocks/menu-child-sub",uK:{block_id:{type:"string",default:""},background:{type:"string",default:"white"},direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""}, | |
| 3315 | +alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:""},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemAlign:{type:"string",default:"",copyStyle:!0},menuItemAlignTablet:{type:"string",default:"",copyStyle:!0},menuItemAlignMobile:{type:"string",default:"",copyStyle:!0},menuItemDirection:{type:"string",default:"row",copyStyle:!0},menuItemDirectionTablet:{type:"string",default:"",copyStyle:!0},menuItemDirectionMobile:{type:"string",default:"",copyStyle:!0},menuItemJustify:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyTablet:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyMobile:{type:"string",default:"space-between",copyStyle:!0},menuItemJustification:{type:"object",default:{value:"space-between",valueTablet:"",valueMobile:""}},boxShadow:{ | |
| 3316 | +type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"", | |
| 3217 | 3317 | leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"", |
| 3218 | -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:"", | |
| 3219 | -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:"", | |
| 3220 | -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:"", | |
| 3221 | -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", | |
| 3222 | -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", | |
| 3223 | -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"}}, | |
| 3224 | -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function pP(t){const{attributes:e,context:i}=t,o=function(t,e){const i=t=>parseInt(t||0,10)||0;return(0,r.useSelect)(o=>{const a=o("core/editor"),l=o("core/edit-site")?.getEditedPostContext?.()??{},n=i(t?.postId||a?.getCurrentPostId?.()||l?.postId||e?.postId);if(n)return n;const s=t?.postType||l?.postType||a?.getCurrentPostType?.()||"post",r=o("core")?.getEntityRecords?.("postType",s,{per_page:1,order:"desc",orderby:"date"});return i(r?.[0]?.id)},[t?.postId,t?.postType,e?.postId])}(i,e);return(0,L.jsx)(BW,{blockId:e.block_id,name:uP.UU,attributes:e,children:(0,L.jsx)(A.Disabled,{children:(0,L.jsx)(BS(),{block:"ablocks/dynamic-text",httpMethod:"POST",attributes:{...e,postId:o},urlQueryArgs:o?{post_id:o}:{}},`dynamic-text-${o}`)})})}pP.propTypes={};const mP=(t,e="")=>{const i={},o=(0,M.Zy)(t.dynamicTypography,{weight:"500"});return t?.dynamicTextColor&&(i.color=(0,gs.qD)(t?.dynamicTextColor)),{...i,...(0, | |
| 3225 | -P.qD)(o,e),...(0,Gt.qD)(t?.alignment,"text-align",e)}};(0,M.xV)(uP.UU)&&(0,o.registerBlockType)(uP.UU,{title:"Dynamic Text",attributes:uP.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--dynamic-text"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}} .dynami-text-output",mP(i),mP(i,"Tablet"),mP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .dynami-text-output a",mP(i),mP(i,"Tablet"),mP(i,"Mobile")),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)(dP,{...t}),(0,L.jsx)("style",{children:s}),(0,L.jsx)(pP,{...t})]})},save:()=>null});var hP=i(60690);function gP(t){ | |
| 3226 | -const{attributes:e,setAttributes:i}=t,{alignment:o,menuItemTypography:a,menuItemTextColor:n,menuItemTextColorH:s,menuItemBackgroundH:r,menuItemBackground:b,menuItemPadding:c,menuItemMargin:d,menuItemBorder:u,sideBarMenuDevice:p,enableTabletHamburger:m,subMenuTrigger:h,mobileMenuPosition:g,hamburgerAlignment:f,hamburgerColor:y,hamburgerBackground:T,hamburgerPadding:H,hamburgerWidth:M,hamburgerHeight:x,hamburgerBorder:k,menuResponsiveBackground:v,menuResponsiveTextColor:_,subMenuWidth:R,subMenuBoxShadow:S,subMenuBorder:W,subMenuPadding:U,subMenuResponsiveColor:P,subMenuResponsiveBg:j,subMenuItemTextColor:w,subMenuItemBackground:A,subMenuItemTextColorH:N,subMenuItemBackgroundH:I,menuActveColor:V,menuActveColorBg:O}=e,Y=at(),X="Tablet"===Y&&"tablet"===p||"Mobile"===Y;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/navigation-menu/",children:[(0,L.jsx)(D,{title:(0,z.__)("Nav","ablocks"), | |
| 3227 | -initialOpen:!0,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,z.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,L.jsx)(Ut,{label:(0,z.__)("Hamburger Menu Device","ablocks"),options:[{label:(0,z.__)("Tablet","ablocks"),value:"tablet"},{label:(0,z.__)("Mobile","ablocks"),value:"mobile"}],attributeName:"sideBarMenuDevice",attributeValue:p,setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Enable Tablet Hamburger Menu","ablocks"),isResponsive:!1,attributeName:"enableTabletHamburger",attributeValue:m,setAttributes:i}),(0,L.jsx)(Uv,{note:(0,z.__)("Shows the hamburger menu on tablets (768px–1024px).","ablocks")}),(0,L.jsx)(Ut,{label:(0,z.__)("Mobile Menu Position","ablocks"),options:[{label:(0, | |
| 3228 | -z.__)("Below Header","ablocks"),value:"below-header"},{label:(0,z.__)("Overlay Header","ablocks"),value:"overlay-header"}],attributeName:"mobileMenuPosition",attributeValue:g,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Sub-menu Trigger (desktop)","ablocks"),options:[{label:(0,z.__)("Hover","ablocks"),value:"hover"},{label:(0,z.__)("Click","ablocks"),value:"click"}],attributeName:"subMenuTrigger",attributeValue:h,setAttributes:i})]})}),X&&(0,L.jsx)(D,{title:(0,z.__)("Mobile Hamburger","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"hamburgerAlignment",attributeValue:f,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,z.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Right","ablocks"),value:"right",icon:"right"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Hamburger Width","ablocks"), | |
| 3229 | -isResponsive:!1,min:0,max:100,attributeName:"hamburgerWidth",attributeValue:M,hasUnit:!0,setAttributes:i,isInline:!1,attributeDefaultValue:hP.wP}),(0,L.jsx)(vt,{label:(0,z.__)("Hamburger Height","ablocks"),isResponsive:!1,min:0,max:100,hasUnit:!0,attributeName:"hamburgerHeight",attributeValue:x,setAttributes:i,isInline:!1,attributeDefaultValue:hP.JH})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"hamburgerColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"hamburgerBackground",attributeValue:T,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"hamburgerPadding",attributeValue:H,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"hamburgerBorder",attributeValue:k,setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Menu Item","ablocks"), | |
| 3230 | -initialOpen:!1,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"menuItemTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"menuItemTextColor",attributeValue:n,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackground",attributeValue:b,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"menuItemTextColorH",attributeValue:s,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackgroundH",attributeValue:r,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1, | |
| 3231 | -isInline:!1,isResponsive:!1,attributeValue:e?.menuItemTransition||0,attributeName:"menuItemTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"menuItemBorder",attributeValue:u,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"menuItemPadding",attributeValue:c,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"menuItemMargin",attributeValue:d,setAttributes:i})]})}),(0,L.jsxs)(D,{title:(0,z.__)("Menu Responsive","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0,attributeName:"menuResponsiveTextColor",attributeValue:_,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuResponsiveBackground",attributeValue:v,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0, | |
| 3232 | -z.__)("Sub Menu Responsive","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveColor",attributeValue:P,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuResponsiveBg",attributeValue:j,setAttributes:i})]}),(0,L.jsx)(D,{title:(0,z.__)("Submenu Style","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"subMenuWidth",attributeValue:R,setAttributes:i,attributeDefaultValue:hP.km,autoSyncRange:!0})}),style:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"subMenuItemTextColor",attributeValue:w,setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 3233 | -z.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuItemBackground",attributeValue:A,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"subMenuItemTextColorH",attributeValue:N,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"subMenuItemBackgroundH",attributeValue:I,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.subMenuItemTransition||0,attributeName:"subMenuItemTransition",setAttributes:i})]})}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeValue:S,setAttributes:i,attributeName:"subMenuBoxShadow"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"subMenuBorder",attributeValue:W,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0, | |
| 3234 | -attributeName:"subMenuPadding",attributeValue:U,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Menu Active Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0,attributeName:"menuActveColor",attributeValue:V,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuActveColorBg",attributeValue:O,setAttributes:i})]})]})})})}gP.propTypes={};const fP={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},alignment:{type:"string",default:"left"},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:"#000000"},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string",default:"black"},hamburgerBackground:{ | |
| 3235 | -type:"string",default:""},sideBarMenuDevice:{type:"string",default:"mobile"},enableTabletHamburger:{type:"boolean",default:!1},mobileMenuPosition:{type:"string",default:"below-header"},subMenuTrigger:{type:"string",default:"hover"},menuResponsiveBackground:{type:"string",default:""},menuResponsiveTextColor:{type:"string",default:""},subMenuResponsiveColor:{type:"string",default:""},subMenuResponsiveBg:{type:"string",default:""},subMenuItemTextColor:{type:"string",default:""},subMenuItemBackground:{type:"string",default:""},subMenuItemTextColorH:{type:"string",default:""},subMenuItemBackgroundH:{type:"string",default:""},subMenuItemTransition:{type:"number",default:0},menuActveColor:{type:"string",default:""},menuActveColorBg:{type:"string",default:""},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},hamburgerPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemPadding:{ | |
| 3236 | -type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"", | |
| 3237 | -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:""}},hamburgerBorder:{ | |
| 3238 | -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:"", | |
| 3239 | -commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuItemTypographyGlobal:{type:"string",default:""},menuItemTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"", | |
| 3240 | -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"}},subMenuBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},subMenuPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},subMenuBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", | |
| 3241 | -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:"", | |
| 3242 | -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:""}},hamburgerHeight:{type:"object",default:{value:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},hamburgerWidth:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},subMenuWidth:{type:"object",default:{value:250,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"", | |
| 3318 | +commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"", | |
| 3319 | +leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"", | |
| 3320 | +leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuItemTypographyGlobal:{type:"string",default:""},menuItemTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},width:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},positionY:{type:"object", | |
| 3321 | +default:{value:0,valueTablet:"",valueMobile:""}}}};function bj(t){const{attributes:e,clientId:i}=t,{block_id:n,menuItemTypography:s,menuItemTextColor:b,menuItemTextColorH:c,menuItemBackgroundH:d,menuItemBackground:u,menuItemPadding:p,menuItemMargin:m,menuItemBorder:h,menuItemDisplay:g,menuItemDirection:f,menuItemDirectionTablet:y,menuItemDirectionMobile:T,menuItemJustification:H,menuItemAlign:M,menuItemAlignTablet:x,menuItemAlignMobile:k}=e,v={typography:s,textColor:b,textColorH:c,background:u,backgroundH:d,padding:p,border:h,margin:m,display:g,direction:f,directionTablet:y,directionMobile:T,justify:H,justifyMobile:H.valueMobile,justifyTablet:H.valueTablet,align:M,alignTablet:x,alignMobile:k},_=(0,a.useCallback)(()=>{const t=(0,o.createBlock)("ablocks/menu-item");(0,r.dispatch)("core/block-editor").insertBlock(t,0,i)},[i,...Object.values(v)]),{children:R,innerBlocksProps:S}=(0,D.useInnerBlocksProps)({},{template:[["ablocks/menu-item",{}]],allowedBlocks:["ablocks/menu-item"], | |
| 3322 | +renderAppender:!1});return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sR,{blockId:n,name:rj.UU,attributes:e,tagName:"ul",...S,className:"ablocks-menu-child-sub ablocks-menu-child-sub--editor",children:[R,(0,I.jsx)("button",{className:"ablocks-menu-child-sub__new-item",onClick:_,children:(0,L.__)("Add new Item","ablocks")})]})})}bj.propTypes={};const cj=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t.padding,{unit:"px"});return{background:(0,Hs.qD)(t?.background),...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(o,"padding",e),...(0,H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(i,e)}},dj=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},uj=(t,e="")=>{const i=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),o=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",a=(0, | |
| 3323 | +M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.menuItemPadding,{unit:"px"}),n=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),s={color:(0,Hs.qD)(t?.menuItemTextColor),background:(0,Hs.qD)(t?.menuItemBackground),...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,y.qD)(a,e),...(0,U.qD)(i,e,o),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)};return t.menuItemJustification["value"+e]&&(s["justify-content"]=t.menuItemJustification["value"+e]),t?.menuItemTransition&&(s["transition-duration"]=t?.menuItemTransition+"s"),s},pj=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.menuItemTextColorH),background:(0,Hs.qD)(t?.menuItemBackgroundH),...(0,y.a9)(i,e)}};function mj(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:rj.UU,attributes:e,tagName:"ul",...o,className:"ablocks-menu-child-sub",children:a})})} | |
| 3324 | +mj.propTypes={},(0,M.xV)(rj.UU,"ablocks/menu")&&(0,o.registerBlockType)(rj.UU,{title:(0,L.__)("Sub Menu","ablocks"),attributes:rj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub",cj(i),cj(i,"Tablet"),cj(i,"Mobile"),t.customDeviceMap(t=>cj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub:hover",dj(i),dj(i,"Tablet"),dj(i,"Mobile"),t.customDeviceMap(t=>dj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item",uj(i),uj(i,"Tablet"),uj(i,"Mobile"),t.customDeviceMap(t=>uj(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",pj(i),pj(i,"Tablet"),pj(i,"Mobile"),t.customDeviceMap(t=>pj(i,t))),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item > .ablocks-menu-item__link",(t=>{ | |
| 3325 | +const e={};return t?.menuItemTextColor&&(e.color=`${(0,Hs.qD)(t?.menuItemTextColor)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:`${(0,Hs.qD)(t?.menuItemTextColorH)} !important`}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,Hs.qD)(t?.menuItemTextColor)}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,Hs.qD)(t?.menuItemTextColorH)}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(sj,{...t}),(0,I.jsx)(bj,{...t})]})},save:mj,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})});var hj=i(91664);const gj=t=>"px"===t?2e3:"%"===t?1e3:"em"===t||"rem"===t?200:1e3,fj=t=>"px"===t?2e3:"%"===t||"em"===t||"rem"===t?200:1e3,yj=t=>"px"===t?-2e3:"%"===t||"em"===t||"rem"===t?-200:-2e3;function Tj(t){ | |
| 3326 | +const{attributes:e,setAttributes:i}=t,{positionX:o,width:a,height:n}=e,s=lt(),r=a["valueUnit"+s]||"%",b=o["valueUnit"+s]||"%";return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Menu Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Mega Menu","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),min:(c=r,"px"===c||"%"===c?50:"em"===c||"rem"===c?3:50),max:gj(r),unitValue:a,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:a,setAttributes:i, | |
| 3327 | +attributeDefaultValue:hj.VL}),(0,I.jsx)(_t,{label:(0,L.__)("height","ablocks"),min:0,max:1e3,unitValue:a,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"height",attributeValue:n,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("PositionX","ablocks"),min:yj(b),max:fj(b),unitValue:o,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionX",attributeValue:o,setAttributes:i,attributeDefaultValue:hj.qZ})]})]})});var c}Tj.propTypes={},Tj.defaultProps={};const Hj={UU:"ablocks/menu-child-mega",uK:{block_id:{type:"string",default:""},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},height:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"%", | |
| 3328 | +valueUnitTablet:"",valueUnitMobile:""}}}};function Mj(t){const e=lt(),{attributes:i}=t,{block_id:o}=i,{children:a,innerBlocksProps:l}=(0,D.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"]});return(0,I.jsx)(sR,{blockId:o,name:Hj.UU,attributes:i,...l,className:"ablocks-menu-child-mega--editor ablocks-menu-child-mega",allowQuickEdit:"Mobile"!==e&&!0,children:a})}Mj.propTypes={},Mj.defaultProps={};const xj=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.positionX,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,property:"left",unitDefaultValue:"%",device:e}),...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,Eb.qD)({attributeValue:t.height,attributeObjectKey:"value", | |
| 3329 | +isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return t?.height?.value&&(i["overflow-y"]="auto",i["overflow-x"]="hidden"),i};function kj(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=D.useInnerBlocksProps.save();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Hj.UU,attributes:e,...o,className:"ablocks-menu-child-mega",tagName:"ul",children:a})})}kj.propTypes={},(0,M.xV)(Hj.UU,"ablocks/menu")&&(0,o.registerBlockType)(Hj.UU,{title:(0,L.__)("Mega Menu","ablocks"),attributes:Hj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",xj(i),xj(i,"Tablet"),xj(i,"Mobile"),t.customDeviceMap(t=>xj(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Tj,{...t}),(0,I.jsx)(Mj,{...t})]}) | |
| 3330 | +},save:kj,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})});var vj=i(74196);const _j=[[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Block","ablocks"),value:"block"}],[{label:(0,L.__)("Popup","ablocks"),value:"popup"},{label:(0,L.__)("Modal","ablocks"),value:"modal"}]],Rj=[{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Top","ablocks"),value:"top"}],Sj=[{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"},{label:(0,L.__)("Top","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,L.__)("Bottom","ablocks"),value:"flex-end", | |
| 3331 | +icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],Wj=t=>{switch(t){case"px":return 2e3;case"%":default:return 100;case"em":case"rem":return 150}},Pj=({popupPosition:t,panelBlockPosition:e,popupOnTop:i})=>{let o="";return o+=`ablocks-block-modal-position--${t} `,"block"===t&&e&&(o+=`ablocks-block-modal-panel-direction--${e} `),"popup"===t&&i&&(o+="ablocks-block-modal-panel-popup-on-top "),o};function Uj(t){const{attributes:e,setAttributes:i}=t,{popupPosition:o,panelBlockPosition:a,popupOnTop:n,popupTopOffset:s,panelWidth:r,panelHeight:b,panelContentPosition:c,disableCloseButton:d,useHoverTrigger:u,enableAutoTriggerTimer:p,showAutoOnce:m,showOnMouseOutOfWindow:h,autoTriggerTime:g,backdropColor:f,panelPadding:y,panelBackground:T,panelBorder:H,panelShadow:M,closeBtnBackgroundColor:x,closeBtnColor:k,openPanel:v,noTrigger:_,closeBtnSide:R,closeBtnTop:S,closePosition:W}=e,P=r?.valueUnit||"%",U=b?.valueUnit||"%";return(0,I.jsx)(l().Fragment,{children:(0, | |
| 3332 | +I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-modal-popup-builder/",children:[(0,I.jsx)(V,{initialOpen:!0,children:(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0,L.__)("Open Panel","ablocks"),value:"open"},{label:(0,L.__)("Close Panel","ablocks"),value:"close"}],onChangeHandler:t=>i({openPanel:t}),attributeValue:v})}),(0,I.jsx)(V,{title:(0,L.__)("Panel","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"ablocks-modal-position-settings-wrapper",children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"panelWidth",attributeObjectKey:"value",attributeValue:r,setAttributes:i,hasUnit:!0,step:1,min:0,max:Wj(P),isInline:!1,unitValue:r,attributeDefaultValue:vj.j_}),(0,I.jsx)(_t,{label:(0,L.__)("Height","ablocks"),attributeName:"panelHeight",attributeObjectKey:"value",attributeValue:b,setAttributes:i,hasUnit:!0, | |
| 3333 | +step:1,min:0,max:Wj(U),isInline:!1,unitValue:b,attributeDefaultValue:vj.mF}),(0,I.jsx)(at,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,isHeader:!0}),_j.map((t,e)=>(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:t,onChangeHandler:t=>i({popupPosition:t}),attributeValue:o},e))]}),"block"===o&&(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:Rj,onChangeHandler:t=>i({panelBlockPosition:t}),attributeValue:a}),"popup"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Place popup on top of page","ablocks"),attributeValue:n,setAttributes:i,attributeName:"popupOnTop",isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Top Offset","ablocks"),min:0,max:2e3,step:1,isInline:!0,isResponsive:!1,attributeName:"popupTopOffset",attributeValue:s,setAttributes:i})]}),(0,I.jsx)(Wb,{isInline:!1,isResponsive:!1,label:(0,L.__)("Content Position","ablocks"),options:Sj,attributeName:"panelContentPosition",attributeValue:c,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{ | |
| 3334 | +children:[(0,I.jsx)(Ws,{label:(0,L.__)("Backdrop BG","ablocks"),attributeName:"backdropColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"panelPadding",attributeValue:y,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(nr,{isResponsive:!0,attributeName:"panelBackground",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"panelBorder",attributeValue:H,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"panelShadow",attributeValue:M,setAttributes:i})]})})}),(0,I.jsxs)(V,{title:(0,L.__)("Trigger settings","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{label:(0,L.__)("Use hover trigger instead of click","ablocks"), | |
| 3335 | +attributeValue:u,setAttributes:i,attributeName:"useHoverTrigger",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show on mouse out of window","ablocks"),attributeValue:h??"0",setAttributes:i,attributeName:"showOnMouseOutOfWindow",isResponsive:!1,onChangeHandler:t=>{i({showOnMouseOutOfWindow:t,enableAutoTriggerTimer:!t&&p})}}),h&&(0,I.jsx)(Ot,{label:(0,L.__)("Trigger Once","ablocks"),attributeValue:m??"0",setAttributes:i,attributeName:"showAutoOnce",isResponsive:!1}),(0,I.jsx)(Ot,{onChangeHandler:t=>{t||i({noTrigger:!1}),i({enableAutoTriggerTimer:t,showOnMouseOutOfWindow:!t&&h})},label:(0,L.__)("Enable Auto Trigger Timer (s)","ablocks"),attributeValue:p??"0",setAttributes:i,attributeName:"enableAutoTriggerTimer",isResponsive:!1}),p&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{min:0,max:100,step:1,isInline:!1,isResponsive:!1,attributeName:"autoTriggerTime",attributeValue:g??"0",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Trigger Once","ablocks"),attributeValue:m??"0", | |
| 3336 | +setAttributes:i,attributeName:"showAutoOnce",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Disable Trigger Element","ablocks"),attributeValue:_??"0",setAttributes:i,attributeName:"noTrigger",isResponsive:!1})]})]}),(0,I.jsxs)(V,{title:(0,L.__)("Close Button","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ot,{label:(0,L.__)("Disable Button","ablocks"),attributeValue:d,setAttributes:i,attributeName:"disableCloseButton",isResponsive:!1}),!d&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Wb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0,L.__)("Top Left","ablocks"),value:"left"},{label:(0,L.__)("Top Right","ablocks"),value:"right"}],onChangeHandler:t=>i({closePosition:t}),attributeValue:W}),(0,I.jsx)(_t,{label:"right"===W?(0,L.__)("Left Offset","ablocks"):(0,L.__)("Right Offset","ablocks"),attributeName:"closeBtnSide",attributeValue:R,setAttributes:i,hasUnit:!1,step:1,min:-1e3,max:1e3, | |
| 3337 | +isInline:!1,isResponsive:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Top Offset","ablocks"),attributeName:"closeBtnTop",attributeValue:S,setAttributes:i,hasUnit:!1,step:1,min:-1e3,max:1e3,isInline:!1,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"closeBtnBackgroundColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"closeBtnColor",attributeValue:k,setAttributes:i})]})})]})]})})})}Uj.propTypes={};const jj={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},popupOnTop:{type:"boolean",default:!1},disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},showAutoOnce:{type:"boolean",default:!1},showOnMouseOutOfWindow:{type:"boolean",default:!1},backdropColor:{type:"string",default:"#000000b3"},closeBtnBackgroundColor:{type:"string", | |
| 3338 | +default:""},closeBtnColor:{type:"string",default:""},noTrigger:{type:"boolean",default:!1},openPanel:{type:"string",default:"close"},popupPosition:{type:"string",default:"popup"},panelBlockPosition:{type:"string",default:"bottom"},panelContentPosition:{type:"string",default:"auto"},closePosition:{type:"string",default:"right"},popupTopOffset:{type:"number",default:0},panelWidth:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},panelHeight:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},autoTriggerTime:{type:"number",default:0},closeBtnTop:{type:"number",default:5},closeBtnSide:{type:"number",default:5},panelPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"", | |
| 3339 | +topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},panelBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"",imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},panelBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"", | |
| 3340 | +isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"", | |
| 3341 | +rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},panelShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"", | |
| 3243 | 3342 | 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:"", |
| 3244 | 3343 | 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:"", |
| 3245 | 3344 | leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"", |
| 3246 | 3345 | imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", |
| @@ -3247,165 +3346,88 @@ | ||
| 3247 | 3346 | 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, |
| 3248 | 3347 | 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:"", |
| 3249 | 3348 | 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", |
| 3250 | 3349 | 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:{ |
| 3251 | -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},yP=class{constructor(t,e=!1){this.element=t;const i=t?.getAttribute("data-menu-device");this.menuDevice=i,this.mobileMenuPosition=t?.getAttribute("data-mobile-menu-position")||"below-header",this.menu=t?.querySelector(`.ablocks-menu-${i}`),this.newMenu=this.menu?.cloneNode(!0),this.mainMenu=this.newMenu?.querySelector(".ablocks-main-menu"),this.initMenuTriggers(e),this.initMenuItems(e),this.initDesktopClickTrigger(e),this.editorDiv=document?.querySelector(".interface-navigable-region.interface-interface-skeleton__content"),this.menuLists=this.element.querySelectorAll(".ablocks-block--menu-item")}initMenuTriggers(t){const e=this.element?.querySelector(`.ablocks-menu-${this.menuDevice}__trigger`);this.toggleButton=e, | |
| 3252 | -e?.addEventListener("click",()=>this.toggleMenu(t))}initMenuItems(t){if(!t||!this.mainMenu)return;const e=this.mainMenu?.querySelectorAll(".ablocks-menu-item");e.forEach(t=>{t?.addEventListener("click",e=>{e.stopPropagation(),this.toggleMenuItem(t,e)})})}toggleMenuItem(t,e){e.target.closest(".ablocks-menu-child-mega")||t.classList.toggle("ablocks-sub-menu--active")}toggleMenu=t=>{const e=this.newMenu;if(t||this.menu.classList.toggle(`ablocks-menu-${this.menuDevice}--active`),e.style.position="absolute","overlay-header"===this.mobileMenuPosition){const t=this.toggleButton.getBoundingClientRect();e.style.top=`${t.bottom+window.scrollY}px`,e.style.right=window.innerWidth-t.right+"px"}else{const t=(this.element?.parentElement||this.toggleButton).getBoundingClientRect();e.style.top=`${t.bottom+window.scrollY}px`}e.classList.add("ablocks-menu--outside"),e?.classList.toggle(`ablocks-menu-${this.menuDevice}--active`),t&&document.body.appendChild(e)};toggleSubMenu(t){ | |
| 3253 | -t.classList.toggle("ablocks-menu-child-sub--active")}toggleMegaMenu(t,e){e.target.closest(".ablocks-menu-child-mega--active")||t.classList.toggle("ablocks-menu-child-mega--active")}handleListClick(t){const e=t.target.closest(".ablocks-block--menu-item");e&&(this.menuLists.forEach(t=>t.classList.remove("ablocks-block--menu-item-active")),e.classList.add("ablocks-block--menu-item-active"))}init(){this.menuLists.forEach(t=>{t.addEventListener("click",t=>{this.handleListClick(t)})})}initDesktopClickTrigger(t){if(!t||"click"!==this.element?.getAttribute("data-submenu-trigger"))return;const e=this.element;this.clickItems=[],e.querySelectorAll(".ablocks-menu-item").forEach(t=>{if(!Array.from(t.children).some(t=>t.classList&&(t.classList.contains("ablocks-menu-child-sub")||t.classList.contains("ablocks-menu-child-mega"))))return;const e=Array.from(t.querySelectorAll(".ablocks-menu-item__link, a")).find(e=>e.closest(".ablocks-menu-item")===t);if(!e)return;this.clickItems.push(t), | |
| 3254 | -e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false");const i=i=>{i.preventDefault(),i.stopPropagation();const o=!t.classList.contains("ablocks-submenu-open");this.closeSiblingSubmenus(t),t.classList.toggle("ablocks-submenu-open",o),e.setAttribute("aria-expanded",String(o))};e.addEventListener("click",i);const o=Array.from(t.children).find(t=>t.classList&&t.classList.contains("ablocks-menu-item__dropdown-icon"));o?.addEventListener("click",i)}),this.clickItems.length&&(document.addEventListener("click",t=>{e.contains(t.target)||this.closeAllSubmenus()}),e.addEventListener("keydown",t=>{"Escape"===t.key&&this.closeAllSubmenus()}))}closeSubmenu(t){t.classList.remove("ablocks-submenu-open");const e=Array.from(t.querySelectorAll(".ablocks-menu-item__link, a")).find(e=>e.closest(".ablocks-menu-item")===t);e?.setAttribute("aria-expanded","false")}closeSiblingSubmenus(t){const e=t.parentElement;e&&Array.from(e.children).forEach(e=>{ | |
| 3255 | -e!==t&&e.classList?.contains("ablocks-submenu-open")&&this.closeSubmenu(e)})}closeAllSubmenus(){(this.clickItems||[]).forEach(t=>this.closeSubmenu(t))}};function TP(t){const{attributes:e,clientId:i}=t,{insertBlock:n}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{block_id:s,sideBarMenuDevice:b,subMenuTrigger:c,mobileMenuPosition:d,enableTabletHamburger:u}=e,{children:p,innerBlocksProps:m}=(0,C.useInnerBlocksProps)({},{template:[["ablocks/menu-item",{label:"Home"}],["ablocks/menu-item",{label:"About"}],["ablocks/menu-item",{label:"Products"},[["ablocks/menu-child-sub",{},[["ablocks/menu-item",{label:"Academy LMS"}],["ablocks/menu-item",{label:"Ablocks"}]]]]],["ablocks/menu-item",{label:"Portfolio"}],["ablocks/menu-item",{label:"Contact"}]],allowedBlocks:["ablocks/menu-item"],renderAppender:!1});return(0,a.useEffect)(()=>{new yP((0,M.bu)(`.ablocks-block-${s}`))},[s]),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(Nb.A,{blockId:s,name:fP.UU,attributes:e, | |
| 3256 | -blockProps:{"data-menu-device":b,..."click"===c?{"data-submenu-trigger":"click"}:{},..."overlay-header"===d?{"data-mobile-menu-position":"overlay-header"}:{},...u?{"data-tablet-hamburger":"true"}:{}},children:[(0,L.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,L.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${b}__trigger`,children:[(0,L.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,L.jsx)("nav",{className:`ablocks-menu ablocks-menu-${b}`,...u?{"data-tablet-hamburger":"true"}:{},children:(0,L.jsxs)("ul",{className:"ablocks-main-menu",...m,children:[p,(0,L.jsx)("button",{className:"ablocks-menu__new-item",onClick:()=>{const t=(0,o.createBlock)("ablocks/menu-item");n(t,0,i)},children:"+"})]})})]})})}TP.propTypes={};const HP=(t,e="")=>{const i={} | |
| 3257 | -;t?.menuItemBorder?.commonWidth&&(i["margin-top"]=`${t?.menuItemBorder?.commonWidth}px`),t?.menuItemBorder?.bottomWidth&&(i["margin-top"]=`${t?.menuItemBorder?.bottomWidth}px`);const o=(0,M.Zy)(t.subMenuBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.subMenuPadding,{unit:"px"});return{...i,...(0,Ob.qD)({attributeValue:t?.subMenuWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:250,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.subMenuBoxShadow,"box-shadow",e),...(0,y.qD)(o,e)}},MP=(t,e="")=>{const i=(0,M.Zy)(t?.subMenuBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.subMenuBoxShadow,e)}},xP=(t,e="")=>{const i={};return t?.subMenuItemTransition&&(i["transition-duration"]=t?.subMenuItemTransition+"s"),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveBg&&(i.background=`${(0,gs.qD)(t?.subMenuResponsiveBg)} !important`),{background:(0, | |
| 3258 | -gs.qD)(t?.subMenuItemBackground),...i}},kP=(t,e="")=>{const i={};return("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.subMenuResponsiveColor&&(i.color=`${(0,gs.qD)(t?.subMenuResponsiveColor)} !important`),{color:(0,gs.qD)(t?.subMenuItemTextColor),...i}},vP=(t,e="")=>{const i=(0,M.Zy)(t.menuItemPadding,{unit:"px"}),o=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),a=(0,M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),n=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",s={...(0,y.qD)(a,e),...(0,P.qD)(l,e,n),...(0,c.qD)(i,"padding",e),...(0,c.qD)(o,"margin",e)};return t["menuItemDirection"+e]&&(s["flex-direction"]=t["menuItemDirection"+e]),t["menuItemJustify"+e]&&(s["justify-content"]=t["menuItemJustify"+e]),t["menuItemAlign"+e]&&(s["align-items"]=t["menuItemAlign"+e]),t?.menuItemTransition&&(s.transition=t?.menuItemTransition+"s"), | |
| 3259 | -("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveBackground&&(s.background=(0,gs.qD)(t?.menuResponsiveBackground)),{background:(0,gs.qD)(t?.menuItemBackground),color:(0,gs.qD)(t?.menuItemTextColor),...s}},_P=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={...(0,y.a9)(i,e)};return t?.menuItemTextColorH&&(o.color=(0,gs.qD)(t?.menuItemTextColorH)),t?.menuItemBackgroundH&&(o.background=(0,gs.qD)(t?.menuItemBackgroundH)),o},RP=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.color=(0,gs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.color=`${(0,gs.qD)(t?.menuResponsiveTextColor)} !important`),i},SP=(t,e="")=>{const i={};return t?.menuItemTextColor&&(i.fill=(0,gs.qD)(t?.menuItemTextColor)),("Mobile"===e||"tablet"===t?.sideBarMenuDevice&&"Tablet"===e)&&t?.menuResponsiveTextColor&&(i.fill=`${(0,gs.qD)(t?.menuResponsiveTextColor)} !important`),i | |
| 3260 | -},WP=(t,e="")=>{const i=30+t?.hamburgerHeight.value,o=(0,M.Zy)(t.hamburgerPadding,{unit:"px"}),a=(0,M.Zy)(t.hamburgerBorder,{unitWidth:"px",unitRadius:"px"}),l={...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)};return i&&(l.height=`${i}px`),{background:(0,gs.qD)(t?.hamburgerBackground),...l}},UP=(t,e="")=>{const i=(0,M.Zy)(t.hamburgerBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},PP=(t,e="")=>{const i={"margin-top":"0px !important"};return"tablet"===t?.sideBarMenuDevice&&"Tablet"===e&&(i.position="static !important"),i},jP=(t,e="")=>({color:(0,gs.qD)(t?.menuActveColor),background:(0,gs.qD)(t?.menuActveColorBg)});function wP(t){const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o,subMenuTrigger:a,mobileMenuPosition:n,enableTabletHamburger:s}=e,{innerBlocksProps:r,children:b}=C.useInnerBlocksProps.save();return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:fP.UU,attributes:e,blockProps:{"data-menu-device":o,..."click"===a?{"data-submenu-trigger":"click" | |
| 3261 | -}:{},..."overlay-header"===n?{"data-mobile-menu-position":"overlay-header"}:{},...s?{"data-tablet-hamburger":"true"}:{}},children:[(0,L.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,L.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,L.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,L.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,...s?{"data-tablet-hamburger":"true"}:{},children:(0,L.jsx)("ul",{className:"ablocks-main-menu",...r,children:b})})]})})}wP.propTypes={};const zP={UU:"ablocks/menu",uK:{block_id:{type:"string",default:""},alignment:{type:"string",default:"left"},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:"#000000"},menuItemBackground:{ | |
| 3262 | -type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemDisplay:{type:"string",default:"inline"},hamburgerAlignment:{type:"string",default:"left"},hamburgerColor:{type:"string",default:"black"},hamburgerBackground:{type:"string",default:""},sideBarMenuDevice:{type:"string",default:"mobile"},menuResponsiveBackground:{type:"string",default:""},menuResponsiveTextColor:{type:"string",default:""},subMenuResponsiveColor:{type:"string",default:""},subMenuResponsiveBg:{type:"string",default:""},subMenuItemTextColor:{type:"string",default:""},subMenuItemBackground:{type:"string",default:""},subMenuItemTextColorH:{type:"string",default:""},subMenuItemBackgroundH:{type:"string",default:""},subMenuItemTransition:{type:"number",default:0},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},hamburgerPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"", | |
| 3263 | -left:"",unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"", | |
| 3264 | -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:""}}, | |
| 3265 | -hamburgerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"", | |
| 3266 | -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:""}},menuItemTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", | |
| 3267 | -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"}},subMenuBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},subMenuPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},subMenuBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 3268 | -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:"", | |
| 3269 | -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:""}},hamburgerHeight:{type:"object",default:{value:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},hamburgerWidth:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},subMenuWidth:{type:"object",default:{value:250,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"", | |
| 3270 | -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:"", | |
| 3271 | -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:"", | |
| 3272 | -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:"", | |
| 3273 | -imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"", | |
| 3274 | -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:"", | |
| 3275 | -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:"", | |
| 3276 | -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", | |
| 3277 | -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 CP(t){const{attributes:e}=t,{block_id:i,sideBarMenuDevice:o}=e,{innerBlocksProps:a,children:n}=C.useInnerBlocksProps.save();return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i, | |
| 3278 | -name:zP.UU,attributes:e,blockProps:{"data-menu-device":o},children:[(0,L.jsx)("div",{className:"ablocks-menu__trigger-wrapper",children:(0,L.jsxs)("div",{className:` ablocks-menu__trigger ablocks-menu-${o}__trigger`,children:[(0,L.jsx)("input",{type:"checkbox",className:"ablocks-menu__trigger-toggle"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"}),(0,L.jsx)("span",{className:"ablocks-menu__trigger-item"})]})}),(0,L.jsx)("nav",{className:` ablocks-block-${i} ablocks-menu ablocks-menu-${o}`,children:(0,L.jsx)("ul",{className:"ablocks-main-menu",...a,children:n})})]})})}function AP(t){const{attributes:e,setAttributes:i}=t,{link:o,label:a,hasLink:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{ | |
| 3279 | -className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Menu Blocks Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Menu Item","ablocks"),children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Label","ablocks"),attributeName:"label",attributeValue:a,setAttributes:i,isInline:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Enable Link","ablocks"),attributeValue:n,setAttributes:i,attributeName:"hasLink",isResponsive:!1}),n&&(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:o,setAttributes:i})]})})]})})}CP.propTypes={},(0,M.xV)(fP.UU)&&(0,o.registerBlockType)(fP.UU,{title:"Menu",attributes:fP.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i | |
| 3280 | -;(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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-menu",((t,e="")=>{const i=(0,M.Zy)(t.padding,{unit:"px"}),o={...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,"box-shadow",e)};return t?.alignment&&(o["justify-content"]=t?.alignment),o})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item",vP(i),vP(i,"Tablet"),vP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link",vP(i),vP(i,"Tablet"),vP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover",_P(i),_P(i,"Tablet"),_P(i,"Mobile")), | |
| 3281 | -t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item .ablocks-menu-item__link:hover",_P(i),_P(i,"Tablet"),_P(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub",HP(i),HP(i,"Tablet"),HP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub:hover",MP(i),MP(i,"Tablet"),MP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item",xP(i),xP(i,"Tablet"),xP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",(t=>({color:(0,gs.qD)(t?.subMenuItemTextColorH),background:(0,gs.qD)(t?.subMenuItemBackgroundH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-block--menu-item .ablocks-menu-item__link",kP(i),kP(i,"Tablet"),kP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-child-sub .ablocks-menu-item:hover .ablocks-menu-item__link",(t=>({color:(0,gs.qD)(t?.subMenuItemTextColorH)}))(i)), | |
| 3282 | -t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__link",RP(i),RP(i,"Tablet"),RP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:(0,gs.qD)(t?.menuItemTextColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item > .ablocks-menu-item__dropdown-icon svg",SP(i),SP(i,"Tablet"),SP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-main-menu > .ablocks-menu-item:hover > .ablocks-menu-item__dropdown-icon svg",(t=>{const e={};return t?.menuItemTextColor&&(e.fill=(0,gs.qD)(t?.menuItemTextColorH)),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu-item > .ablocks-menu-child-sub",{"margin-top":"0px !important",display:"none"}),t.addClassStyles("{{WRAPPER}} .ablocks-menu-child-mega",PP(i),PP(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper",(t=>{const e={} | |
| 3283 | -;return t?.hamburgerAlignment&&(e["justify-content"]=t?.hamburgerAlignment),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger ",WP(i),WP(i,"Tablet"),WP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger:hover ",UP(i),UP(i,"Tablet"),UP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-menu__trigger-wrapper .ablocks-menu__trigger .ablocks-menu__trigger-item ",((t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.hamburgerWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:30,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t.hamburgerHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:3,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{background:(0,gs.qD)(t?.hamburgerColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--menu-item-active",jP(i),jP(i,"Tablet"),jP(i,"Mobile")),t.generateCSS())},[i]);return(0, | |
| 3284 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(gP,{...t}),(0,L.jsx)(TP,{...t})]})},save:wP,deprecated:[{attributes:zP.uK,save:CP}],icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--menu"})}),AP.propTypes={};const LP=(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,L.jsx)("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})}),DP={UU:"ablocks/menu-item",$t:["ablocks/menu"],uK:{block_id:{type:"string",default:""},label:{type:"string",default:"Menu"},isSubMenu:{type:"boolean",default:!1},hasMegaMenu:{type:"boolean",default:!1},hasLink:{type:"boolean",default:!1},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"", | |
| 3285 | -noFollow:"",keyValue:"",linkClass:""}}}};function NP(t){const{attributes:e,setAttributes:i}=t,{block_id:n,label:b,hasMegaMenu:c,isSubMenu:d}=e,[u,p]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),{innerBlocksProps:g,children:f}=(0,C.useInnerBlocksProps)({},{allowedBlocks:["ablocks/menu-child-sub","ablocks/menu-child-mega"],renderAppender:!1}),{hasChildBlocks:y,parentBlockName:T}=(0,r.useSelect)(t=>{const e=t("core/block-editor"),i=e.getBlockRootClientId(n),o=i?e.getBlock(i):null;return{hasChildBlocks:e?.getBlockOrder(n).length>0,parentBlockName:o?.name||null}});return(0,a.useEffect)(()=>{i({isSubMenu:y})},[y]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:!y&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{role:"presentation",onClick:function(){const t=(0,o.createBlock)("ablocks/menu-child-sub");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),p(!0),h(!0)},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,L.jsx)(X,{tooltipText:(0, | |
| 3286 | -z.__)("Add Submenu","ablocks"),children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})})}),"ablocks/menu"===T&&(0,L.jsx)("div",{role:"presentation",onClick:function(){const t=(0,o.createBlock)("ablocks/menu-child-mega");(0,r.dispatch)("core/block-editor").insertBlock(t,0,n),p(!0),h(!0),i({hasMegaMenu:!0})},className:"ablocks-menu-item-toolbar-dropdown-icon",children:(0,L.jsx)(X,{tooltipText:(0,z.__)("Add Mega Menu","ablocks"),children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})})})]})}),u&&(0,L.jsx)("div",{className:"ablocks-menu-item__submenu-overlay",role:"presentation",onClick:()=>{p(!1),h(!1)}}),(0,L.jsxs)(K_,{blockId:n,name:DP.UU,attributes:e,tagName:"li",...g,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),blockProps:{onClick:()=>{p(!0),h(!0)}},children:[(0,L.jsx)("a",{href:"#",className:"ablocks-menu-item__link",children:b})," ",y&&(0,L.jsx)("div",{ | |
| 3287 | -className:s()("ablocks-menu-item__dropdown-icon",{"rotate-icon":m}),children:LP}),u&&f]})]})}function IP(t){const{attributes:e}=t,{block_id:i,label:o,link:{href:a,linkTarget:n,noFollow:r,keyValue:b},hasMegaMenu:c,isSubMenu:d}=e,{innerBlocksProps:u,children:p}=C.useInnerBlocksProps.save({});let m={};return a&&(m.href=a),n&&(m.target="_blank"),m.rel=r?n?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",b&&(m={...m,...(0,Wb.jM)(b)}),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(eR,{blockId:i,name:DP.UU,attributes:e,tagName:"li",...u,className:s()("ablocks-menu-item",{"ablocks-has-mega-menu":c,"ablocks-has-sub-menu":!c&&d}),children:[(0,L.jsx)("a",{...m,className:"ablocks-menu-item__link",children:o}),d&&(0,L.jsx)("div",{className:"ablocks-menu-item__dropdown-icon",children:LP}),p]})})}NP.propTypes={},IP.propTypes={},(0,M.xV)(DP.UU,DP.$t[0])&&(0,o.registerBlockType)(DP.UU,{title:"Menu Item",attributes:DP.uK,edit:function(t){ | |
| 3288 | -const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new j(i,l).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(AP,{...t}),(0,L.jsx)(NP,{...t})]})},save:IP,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--menu"})});var VP=i(46890);function OP(t){at();const{attributes:e,setAttributes:i}=t,{width:o,boxShadow:a,background:n,border:s,padding:r,menuItemTypography:b,menuItemTextColor:c,menuItemTextColorH:d,menuItemBackgroundH:u,menuItemBackground:p,menuItemPadding:m,menuItemMargin:h,menuItemBorder:g}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0, | |
| 3289 | -z.__)("Explore Menu Blocks Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(D,{title:(0,z.__)("Sub Menu","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:50,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:o,setAttributes:i,attributeDefaultValue:VP.V,autoSyncRange:!0})}),style:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"menuItemTextColor",attributeValue:c,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackground", | |
| 3290 | -attributeValue:p,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"menuItemTextColorH",attributeValue:d,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuItemBackgroundH",attributeValue:u,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.menuItemTransition||0,attributeName:"menuItemTransition",setAttributes:i})]})}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeValue:a,setAttributes:i,attributeName:"boxShadow"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:s,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:n,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0, | |
| 3291 | -z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:r,setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Menu Item","ablocks"),initialOpen:!1,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vb,{isInline:!1,label:(0,z.__)("Alignment","ablocks"),options:[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-Center"})},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-end"})},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacebetween"})},{label:(0,z.__)("Space Around","ablocks"),value:"space-around",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spacearound"})},{ | |
| 3292 | -label:(0,z.__)("Space Evenly","ablocks"),value:"space-evenly",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--justify-spaceevenly"}),tooltipPosition:"top-left"}],attributeName:"menuItemJustification",attributeValue:e?.menuItemJustification,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"menuItemTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"menuItemBorder",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"menuItemPadding",attributeValue:m,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"menuItemMargin",attributeValue:h,setAttributes:i})]})})]})})}const YP={UU:"ablocks/menu-child-sub",uK:{block_id:{type:"string",default:""},background:{type:"string",default:"white"}, | |
| 3293 | -direction:{type:"string",default:"column"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},justify:{type:"string",default:""},justifyTablet:{type:"string",default:""},justifyMobile:{type:"string",default:""},align:{type:"string",default:""},alignTablet:{type:"string",default:""},alignMobile:{type:"string",default:""},menuItemTextColor:{type:"string",default:""},menuItemTextColorH:{type:"string",default:""},menuItemBackground:{type:"string",default:""},menuItemBackgroundH:{type:"string",default:""},menuItemTransition:{type:"number",default:0},menuItemAlign:{type:"string",default:"",copyStyle:!0},menuItemAlignTablet:{type:"string",default:"",copyStyle:!0},menuItemAlignMobile:{type:"string",default:"",copyStyle:!0},menuItemDirection:{type:"string",default:"row",copyStyle:!0},menuItemDirectionTablet:{type:"string",default:"",copyStyle:!0},menuItemDirectionMobile:{type:"string",default:"",copyStyle:!0},menuItemJustify:{type:"string", | |
| 3294 | -default:"space-between",copyStyle:!0},menuItemJustifyTablet:{type:"string",default:"space-between",copyStyle:!0},menuItemJustifyMobile:{type:"string",default:"space-between",copyStyle:!0},menuItemJustification:{type:"object",default:{value:"space-between",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemMargin:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},menuItemBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 3350 | +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},wj=[["ablocks/modal-trigger"],["ablocks/modal-panel"]];function zj(t){const{attributes:e}=t,{openPanel:i,block_id:o,popupPosition:a,panelBlockPosition:n,popupOnTop:s,noTrigger:r,autoTriggerTime:b}=e,c=Pj({popupPosition:a,panelBlockPosition:n,popupOnTop:s});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:o,name:jj.UU,attributes:e,typography:[],className:`${c} ablocks-block-modal-panel-visibility--${i} ${r&&b?"ablocks-block--modal_hide-trigger":""}`,children:(0,I.jsx)(D.InnerBlocks,{template:wj,allowedBlocks:["ablocks/modal-trigger","ablocks/modal-panel"],templateLock:"all"})})})}zj.propTypes={};const Cj=(t,e="")=>{if(e)return{};const{backdropColor:i}=t||{},o={};return i&&(o["background-color"]=(0, | |
| 3351 | +Hs.qD)(t?.backdropColor)),o},Aj=(t,e="")=>{const{panelWidth:i,panelHeight:o,panelContentPosition:a}=t||{},l={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"%",property:"width",device:e}),...(0,Eb.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"%",property:"min-height",device:e})};!e&&a&&(l["align-items"]=a);const n=(0,d.qD)(t?.panelBackground,"background",e),s=(0,y.qD)(t?.panelBorder,e),r=(0,H.qD)(t?.panelShadow,"box-shadow",e),b={};if(!e){let t="all 1s";s?.transition&&(t=`${t},${s?.transition}`),n?.transition&&(t=`${t},${n?.transition}`),r?.transition&&(t=`${t},${r?.transition}`),b.transition=t}return{...l,...(0,c.qD)(t?.panelPadding,"padding",e),...n,...s,...r,...b}},Lj=(t,e="")=>({...(0,d.a9)(t?.panelBackground,"background",e),...(0,y.a9)(t?.panelBorder,e),...(0,H.a9)(t?.panelShadow,e)}),Dj=(t,e="")=>{const i={};if(!e){ | |
| 3352 | +const{closeBtnBackgroundColor:e,closeBtnTop:o,closeBtnSide:a,closePosition:l}=t||{};e&&(i["background-color"]=(0,Hs.qD)(t?.closeBtnBackgroundColor)),(o||0===o)&&(i.top=`${o}px`),(a||0===a)&&("left"===l?(i.left=`${a}px`,i.right="unset"):(i.right=`${a}px`,i.left="unset"))}return{...i}};function Nj(t){const{attributes:e}=t,{block_id:i,popupPosition:o,panelBlockPosition:a,popupOnTop:n,useHoverTrigger:s,enableAutoTriggerTimer:r,showAutoOnce:b,autoTriggerTime:c,showOnMouseOutOfWindow:d}=e,u=Pj({popupPosition:o,panelBlockPosition:a,popupOnTop:n}),p=r&&c?{"data-auto-trigger-time":c}:{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:jj.UU,attributes:e,className:`${u} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:p,blockProps:c?{"data-auto-show-once":b,"data-show-on-mouse-out":d}:{},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Nj.propTypes={};const Ij={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},popupOnTop:{type:"boolean",default:!1}, | |
| 3353 | +disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},backdropColor:{type:"string",default:"#000000b3"},closeBtnBackgroundColor:{type:"string",default:""},closeBtnColor:{type:"string",default:""},noTrigger:{type:"boolean",default:!1},openPanel:{type:"string",default:"close"},popupPosition:{type:"string",default:"popup"},panelBlockPosition:{type:"string",default:"bottom"},panelContentPosition:{type:"string",default:"auto"},closePosition:{type:"string",default:"right"},popupTopOffset:{type:"number",default:0},panelWidth:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},panelHeight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},autoTriggerTime:{type:"number",default:0},closeBtnTop:{type:"number",default:5},closeBtnSide:{type:"number",default:5},panelPadding:{ | |
| 3354 | +type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},panelBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"",imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none", | |
| 3355 | +videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},panelBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", | |
| 3356 | +unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},panelShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"", | |
| 3357 | +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",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:{ | |
| 3358 | +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:"", | |
| 3359 | +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:"", | |
| 3360 | +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:"", | |
| 3361 | +imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"", | |
| 3362 | +fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"", | |
| 3363 | +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 | +maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{ | |
| 3365 | +type:"string",default:""}}};function Vj(t){const{attributes:e}=t,{block_id:i,popupPosition:o,panelBlockPosition:a,popupOnTop:n,useHoverTrigger:s,enableAutoTriggerTimer:r,autoTriggerTime:b}=e,c=(({popupPosition:t,panelBlockPosition:e,popupOnTop:i})=>{let o="";return o+=`ablocks-block-modal-position--${t} `,"block"===t&&e&&(o+=`ablocks-block-modal-panel-direction--${e} `),"popup"===t&&i&&(o+="ablocks-block-modal-panel-popup-on-top "),o})({popupPosition:o,panelBlockPosition:a,popupOnTop:n}),d=r&&b?{"data-auto-trigger-time":b}:{};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Ij.UU,attributes:e,className:`${c} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:d,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function Oj(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{ | |
| 3366 | +className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Modal Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the modal popup setting to customize the modal as your needs","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}(0,L.__)("Left","ablocks"),(0,L.__)("Right","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Block","ablocks"),(0,L.__)("Popup","ablocks"),(0,L.__)("Modal","ablocks"),(0,L.__)("Bottom","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Stretch","ablocks"),(0,L.__)("Top","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Bottom","ablocks"),Vj.propTypes={},(0,M.xV)(jj.UU)&&(0,o.registerBlockType)(jj.UU,{attributes:jj.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--modal"}),edit:function(t){const e=(0,a.useRef)(null),{isSelected:i,attributes:o,clientId:l,setAttributes:n}=t,{block_id:s}=o;(0,a.useEffect)(()=>{s&&s===l||n({block_id:l}),o?.blockVersion||n({blockVersion:2}) | |
| 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, | |
| 3295 | 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:"", |
| 3296 | -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:""}},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:"", | |
| 3297 | -topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 3298 | -isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuItemTypographyGlobal:{type:"string",default:""},menuItemTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px", | |
| 3299 | -wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},width:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},positionY:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}}}};function XP(t){const{attributes:e,clientId:i}=t,{block_id:n,menuItemTypography:s,menuItemTextColor:b,menuItemTextColorH:c,menuItemBackgroundH:d,menuItemBackground:u,menuItemPadding:p,menuItemMargin:m,menuItemBorder:h,menuItemDisplay:g,menuItemDirection:f,menuItemDirectionTablet:y,menuItemDirectionMobile:T,menuItemJustification:H,menuItemAlign:M,menuItemAlignTablet:x,menuItemAlignMobile:k}=e,v={typography:s,textColor:b,textColorH:c,background:u,backgroundH:d,padding:p,border:h,margin:m,display:g,direction:f,directionTablet:y,directionMobile:T,justify:H,justifyMobile:H.valueMobile,justifyTablet:H.valueTablet,align:M, | |
| 3300 | -alignTablet:x,alignMobile:k},_=(0,a.useCallback)(()=>{const t=(0,o.createBlock)("ablocks/menu-item");(0,r.dispatch)("core/block-editor").insertBlock(t,0,i)},[i,...Object.values(v)]),{children:R,innerBlocksProps:S}=(0,C.useInnerBlocksProps)({},{template:[["ablocks/menu-item",{}]],allowedBlocks:["ablocks/menu-item"],renderAppender:!1});return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(K_,{blockId:n,name:YP.UU,attributes:e,tagName:"ul",...S,className:"ablocks-menu-child-sub ablocks-menu-child-sub--editor",children:[R,(0,L.jsx)("button",{className:"ablocks-menu-child-sub__new-item",onClick:_,children:(0,z.__)("Add new Item","ablocks")})]})})}XP.propTypes={};const BP=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t.padding,{unit:"px"});return{background:(0,gs.qD)(t?.background),...(0,Ob.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,c.qD)(o,"padding",e),...(0, | |
| 3301 | -H.qD)(t?.boxShadow,"box-shadow",e),...(0,y.qD)(i,e)}},EP=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e)}},FP=(t,e="")=>{const i=(0,M.Zy)(t.menuItemTypography,{weight:"400"}),o=t.menuItemTypographyGlobal?t.menuItemTypographyGlobal:"",a=(0,M.Zy)(t.menuItemBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.menuItemPadding,{unit:"px"}),n=(0,M.Zy)(t.menuItemMargin,{unit:"px"}),s={color:(0,gs.qD)(t?.menuItemTextColor),background:(0,gs.qD)(t?.menuItemBackground),...(0,Gt.qD)(t?.alignment,"text-align",e),...(0,y.qD)(a,e),...(0,P.qD)(i,e,o),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)};return t.menuItemJustification["value"+e]&&(s["justify-content"]=t.menuItemJustification["value"+e]),t?.menuItemTransition&&(s["transition-duration"]=t?.menuItemTransition+"s"),s},qP=(t,e="")=>{const i=(0,M.Zy)(t.menuItemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,gs.qD)(t?.menuItemTextColorH),background:(0, | |
| 3302 | -gs.qD)(t?.menuItemBackgroundH),...(0,y.a9)(i,e)}};function $P(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=C.useInnerBlocksProps.save();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:YP.UU,attributes:e,tagName:"ul",...o,className:"ablocks-menu-child-sub",children:a})})}$P.propTypes={},(0,M.xV)(YP.UU,"ablocks/menu")&&(0,o.registerBlockType)(YP.UU,{title:"Sub Menu",attributes:YP.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub",BP(i),BP(i,"Tablet"),BP(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub:hover",EP(i),EP(i,"Tablet"),EP(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item",FP(i),FP(i,"Tablet"),FP(i,"Mobile")), | |
| 3303 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--menu-child-sub .ablocks-block--menu-item:hover",qP(i),qP(i,"Tablet"),qP(i,"Mobile")),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item > .ablocks-menu-item__link",(t=>{const e={};return t?.menuItemTextColor&&(e.color=`${(0,gs.qD)(t?.menuItemTextColor)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover > .ablocks-menu-item__link",(t=>({color:`${(0,gs.qD)(t?.menuItemTextColorH)} !important`}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,gs.qD)(t?.menuItemTextColor)}))(i)),t.addClassStyles("{{WRAPPER}} > .ablocks-menu-item:hover .ablocks-menu-item__dropdown-icon svg",(t=>({fill:(0,gs.qD)(t?.menuItemTextColorH)}))(i)),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(OP,{...t}),(0,L.jsx)(XP,{...t})]})},save:$P,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--submenu"})}) | |
| 3304 | -;var GP=i(91664);const ZP=t=>"px"===t?2e3:"%"===t?1e3:"em"===t||"rem"===t?200:1e3,KP=t=>"px"===t?2e3:"%"===t||"em"===t||"rem"===t?200:1e3,JP=t=>"px"===t?-2e3:"%"===t||"em"===t||"rem"===t?-200:-2e3;function QP(t){const{attributes:e,setAttributes:i}=t,{positionX:o,width:a,height:n}=e,s=at(),r=a["valueUnit"+s]||"%",b=o["valueUnit"+s]||"%";return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Menu Blocks Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the Menu block setting to customize menus for easy navigation.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsxs)(D,{title:(0,z.__)("Mega Menu","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{ | |
| 3305 | -label:(0,z.__)("Width","ablocks"),min:(c=r,"px"===c||"%"===c?50:"em"===c||"rem"===c?3:50),max:ZP(r),unitValue:a,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"width",attributeValue:a,setAttributes:i,attributeDefaultValue:GP.VL}),(0,L.jsx)(vt,{label:(0,z.__)("height","ablocks"),min:0,max:1e3,unitValue:a,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"height",attributeValue:n,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("PositionX","ablocks"),min:JP(b),max:KP(b),unitValue:o,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"positionX",attributeValue:o,setAttributes:i,attributeDefaultValue:GP.qZ})]})]})});var c}QP.propTypes={},QP.defaultProps={};const tj={UU:"ablocks/menu-child-mega",uK:{block_id:{type:"string",default:""},width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},height:{ | |
| 3306 | -type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},positionX:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}}}};function ej(t){const e=at(),{attributes:i}=t,{block_id:o}=i,{children:a,innerBlocksProps:l}=(0,C.useInnerBlocksProps)({},{template:[["ablocks/container"]],allowedBlocks:["ablocks/container"]});return(0,L.jsx)(K_,{blockId:o,name:tj.UU,attributes:i,...l,className:"ablocks-menu-child-mega--editor ablocks-menu-child-mega",allowQuickEdit:"Mobile"!==e&&!0,children:a})}ej.propTypes={},ej.defaultProps={};const ij=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.positionX,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,property:"left",unitDefaultValue:"%",device:e}),...(0,Ob.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),...(0, | |
| 3307 | -Ob.qD)({attributeValue:t.height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e}),...(0,Ob.qD)({attributeValue:t.height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return t?.height?.value&&(i["overflow-y"]="auto",i["overflow-x"]="hidden"),i};function oj(t){const{attributes:e}=t,{block_id:i}=e,{innerBlocksProps:o,children:a}=C.useInnerBlocksProps.save();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:tj.UU,attributes:e,...o,className:"ablocks-menu-child-mega",tagName:"ul",children:a})})}oj.propTypes={},(0,M.xV)(tj.UU,"ablocks/menu")&&(0,o.registerBlockType)(tj.UU,{title:"Mega Menu",attributes:tj.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l) | |
| 3308 | -;return t.addClassStyles("{{WRAPPER}}",ij(i),ij(i,"Tablet"),ij(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(QP,{...t}),(0,L.jsx)(ej,{...t})]})},save:oj,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--megamenu"})});var aj=i(74196);const lj=[[{label:(0,z.__)("Left","ablocks"),value:"left"},{label:(0,z.__)("Right","ablocks"),value:"right"}],[{label:(0,z.__)("Top","ablocks"),value:"top"},{label:(0,z.__)("Block","ablocks"),value:"block"}],[{label:(0,z.__)("Popup","ablocks"),value:"popup"},{label:(0,z.__)("Modal","ablocks"),value:"modal"}]],nj=[{label:(0,z.__)("Bottom","ablocks"),value:"bottom"},{label:(0,z.__)("Top","ablocks"),value:"top"}],sj=[{label:(0,z.__)("Stretch","ablocks"),value:"stretch",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-stretch"}),tooltipPosition:"top-left"},{label:(0,z.__)("Top","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{ | |
| 3309 | -className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,z.__)("Bottom","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],rj=t=>{switch(t){case"px":return 2e3;case"%":default:return 100;case"em":case"rem":return 150}},bj=({popupPosition:t,panelBlockPosition:e,popupOnTop:i})=>{let o="";return o+=`ablocks-block-modal-position--${t} `,"block"===t&&e&&(o+=`ablocks-block-modal-panel-direction--${e} `),"popup"===t&&i&&(o+="ablocks-block-modal-panel-popup-on-top "),o};function cj(t){ | |
| 3310 | -const{attributes:e,setAttributes:i}=t,{popupPosition:o,panelBlockPosition:a,popupOnTop:n,popupTopOffset:s,panelWidth:r,panelHeight:b,panelContentPosition:c,disableCloseButton:d,useHoverTrigger:u,enableAutoTriggerTimer:p,showAutoOnce:m,showOnMouseOutOfWindow:h,autoTriggerTime:g,backdropColor:f,panelPadding:y,panelBackground:T,panelBorder:H,panelShadow:M,closeBtnBackgroundColor:x,closeBtnColor:k,openPanel:v,noTrigger:_,closeBtnSide:R,closeBtnTop:S,closePosition:W}=e,U=r?.valueUnit||"%",P=b?.valueUnit||"%";return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-modal-popup-builder/",children:[(0,L.jsx)(D,{initialOpen:!0,children:(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0,z.__)("Open Panel","ablocks"),value:"open"},{label:(0,z.__)("Close Panel","ablocks"),value:"close"}],onChangeHandler:t=>i({openPanel:t}),attributeValue:v})}),(0,L.jsx)(D,{title:(0, | |
| 3311 | -z.__)("Panel","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ablocks-modal-position-settings-wrapper",children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"panelWidth",attributeObjectKey:"value",attributeValue:r,setAttributes:i,hasUnit:!0,step:1,min:0,max:rj(U),isInline:!1,unitValue:r,attributeDefaultValue:aj.j_}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"panelHeight",attributeObjectKey:"value",attributeValue:b,setAttributes:i,hasUnit:!0,step:1,min:0,max:rj(P),isInline:!1,unitValue:b,attributeDefaultValue:aj.mF}),(0,L.jsx)(ot,{label:(0,z.__)("Position","ablocks"),isResponsive:!1,isHeader:!0}),lj.map((t,e)=>(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,options:t,onChangeHandler:t=>i({popupPosition:t}),attributeValue:o},e))]}),"block"===o&&(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,options:nj,onChangeHandler:t=>i({panelBlockPosition:t}),attributeValue:a}),"popup"===o&&(0, | |
| 3312 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Place popup on top of page","ablocks"),attributeValue:n,setAttributes:i,attributeName:"popupOnTop",isResponsive:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Top Offset","ablocks"),min:0,max:2e3,step:1,isInline:!0,isResponsive:!1,attributeName:"popupTopOffset",attributeValue:s,setAttributes:i})]}),(0,L.jsx)(vb,{isInline:!1,isResponsive:!1,label:(0,z.__)("Content Position","ablocks"),options:sj,attributeName:"panelContentPosition",attributeValue:c,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Backdrop BG","ablocks"),attributeName:"backdropColor",attributeValue:f,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),attributeName:"panelPadding",attributeValue:y,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ir,{isResponsive:!0,attributeName:"panelBackground",attributeValue:T,setAttributes:i}),(0, | |
| 3313 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"panelBorder",attributeValue:H,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"panelShadow",attributeValue:M,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Trigger settings","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Vt,{label:(0,z.__)("Use hover trigger instead of click","ablocks"),attributeValue:u,setAttributes:i,attributeName:"useHoverTrigger",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show on mouse out of window","ablocks"),attributeValue:h??"0",setAttributes:i,attributeName:"showOnMouseOutOfWindow",isResponsive:!1,onChangeHandler:t=>{i({showOnMouseOutOfWindow:t,enableAutoTriggerTimer:!t&&p})}}),h&&(0,L.jsx)(Vt,{label:(0,z.__)("Trigger Once","ablocks"),attributeValue:m??"0",setAttributes:i, | |
| 3314 | -attributeName:"showAutoOnce",isResponsive:!1}),(0,L.jsx)(Vt,{onChangeHandler:t=>{t||i({noTrigger:!1}),i({enableAutoTriggerTimer:t,showOnMouseOutOfWindow:!t&&h})},label:(0,z.__)("Enable Auto Trigger Timer (s)","ablocks"),attributeValue:p??"0",setAttributes:i,attributeName:"enableAutoTriggerTimer",isResponsive:!1}),p&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{min:0,max:100,step:1,isInline:!1,isResponsive:!1,attributeName:"autoTriggerTime",attributeValue:g??"0",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Trigger Once","ablocks"),attributeValue:m??"0",setAttributes:i,attributeName:"showAutoOnce",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Disable Trigger Element","ablocks"),attributeValue:_??"0",setAttributes:i,attributeName:"noTrigger",isResponsive:!1})]})]}),(0,L.jsxs)(D,{title:(0,z.__)("Close Button","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Vt,{label:(0,z.__)("Disable Button","ablocks"),attributeValue:d,setAttributes:i,attributeName:"disableCloseButton",isResponsive:!1 | |
| 3315 | -}),!d&&(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Position","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,options:[{label:(0,z.__)("Top Left","ablocks"),value:"left"},{label:(0,z.__)("Top Right","ablocks"),value:"right"}],onChangeHandler:t=>i({closePosition:t}),attributeValue:W}),(0,L.jsx)(vt,{label:"right"===W?(0,z.__)("Left Offset","ablocks"):(0,z.__)("Right Offset","ablocks"),attributeName:"closeBtnSide",attributeValue:R,setAttributes:i,hasUnit:!1,step:1,min:-1e3,max:1e3,isInline:!1,isResponsive:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Top Offset","ablocks"),attributeName:"closeBtnTop",attributeValue:S,setAttributes:i,hasUnit:!1,step:1,min:-1e3,max:1e3,isInline:!1,isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"closeBtnBackgroundColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 3316 | -attributeName:"closeBtnColor",attributeValue:k,setAttributes:i})]})})]})]})})})}cj.propTypes={};const dj={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},popupOnTop:{type:"boolean",default:!1},disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},showAutoOnce:{type:"boolean",default:!1},showOnMouseOutOfWindow:{type:"boolean",default:!1},backdropColor:{type:"string",default:"#000000b3"},closeBtnBackgroundColor:{type:"string",default:""},closeBtnColor:{type:"string",default:""},noTrigger:{type:"boolean",default:!1},openPanel:{type:"string",default:"close"},popupPosition:{type:"string",default:"popup"},panelBlockPosition:{type:"string",default:"bottom"},panelContentPosition:{type:"string",default:"auto"},closePosition:{type:"string",default:"right"},popupTopOffset:{type:"number",default:0},panelWidth:{type:"object",default:{value:50,valueTablet:"", | |
| 3317 | -valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},panelHeight:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},autoTriggerTime:{type:"number",default:0},closeBtnTop:{type:"number",default:5},closeBtnSide:{type:"number",default:5},panelPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},panelBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"", | |
| 3318 | -imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},panelBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",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, | |
| 3319 | -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:"", | |
| 3320 | -bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},panelShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",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:"", | |
| 3321 | -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:"",leftWidthH:"", | |
| 3322 | -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:"", | |
| 3323 | -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:"", | |
| 3324 | -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:"", | |
| 3325 | -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:"", | |
| 3326 | -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:"", | |
| 3327 | -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:"", | |
| 3328 | -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"}}}},uj=[["ablocks/modal-trigger"],["ablocks/modal-panel"]];function pj(t){ | |
| 3329 | -const{attributes:e}=t,{openPanel:i,block_id:o,popupPosition:a,panelBlockPosition:n,popupOnTop:s,noTrigger:r,autoTriggerTime:b}=e,c=bj({popupPosition:a,panelBlockPosition:n,popupOnTop:s});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:o,name:dj.UU,attributes:e,typography:[],className:`${c} ablocks-block-modal-panel-visibility--${i} ${r&&b?"ablocks-block--modal_hide-trigger":""}`,children:(0,L.jsx)(C.InnerBlocks,{template:uj,allowedBlocks:["ablocks/modal-trigger","ablocks/modal-panel"],templateLock:"all"})})})}pj.propTypes={};const mj=(t,e="")=>{if(e)return{};const{backdropColor:i}=t||{},o={};return i&&(o["background-color"]=(0,gs.qD)(t?.backdropColor)),o},hj=(t,e="")=>{const{panelWidth:i,panelHeight:o,panelContentPosition:a}=t||{},l={...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"%",property:"width",device:e}),...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0, | |
| 3330 | -defaultValue:50,unitDefaultValue:"%",property:"min-height",device:e})};!e&&a&&(l["align-items"]=a);const n=(0,d.qD)(t?.panelBackground,"background",e),s=(0,y.qD)(t?.panelBorder,e),r=(0,H.qD)(t?.panelShadow,"box-shadow",e),b={};if(!e){let t="all 1s";s?.transition&&(t=`${t},${s?.transition}`),n?.transition&&(t=`${t},${n?.transition}`),r?.transition&&(t=`${t},${r?.transition}`),b.transition=t}return{...l,...(0,c.qD)(t?.panelPadding,"padding",e),...n,...s,...r,...b}},gj=(t,e="")=>({...(0,d.a9)(t?.panelBackground,"background",e),...(0,y.a9)(t?.panelBorder,e),...(0,H.a9)(t?.panelShadow,e)}),fj=(t,e="")=>{const i={};if(!e){const{closeBtnBackgroundColor:e,closeBtnTop:o,closeBtnSide:a,closePosition:l}=t||{};e&&(i["background-color"]=(0,gs.qD)(t?.closeBtnBackgroundColor)),(o||0===o)&&(i.top=`${o}px`),(a||0===a)&&("left"===l?(i.left=`${a}px`,i.right="unset"):(i.right=`${a}px`,i.left="unset"))}return{...i}};function yj(t){ | |
| 3331 | -const{attributes:e}=t,{block_id:i,popupPosition:o,panelBlockPosition:a,popupOnTop:n,useHoverTrigger:s,enableAutoTriggerTimer:r,showAutoOnce:b,autoTriggerTime:c,showOnMouseOutOfWindow:d}=e,u=bj({popupPosition:o,panelBlockPosition:a,popupOnTop:n}),p=r&&c?{"data-auto-trigger-time":c}:{};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:dj.UU,attributes:e,className:`${u} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:p,blockProps:c?{"data-auto-show-once":b,"data-show-on-mouse-out":d}:{},children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}yj.propTypes={};const Tj={UU:"ablocks/modal",uK:{block_id:{type:"string",default:""},popupOnTop:{type:"boolean",default:!1},disableCloseButton:{type:"boolean",default:!1},useHoverTrigger:{type:"boolean",default:!1},enableAutoTriggerTimer:{type:"boolean",default:!1},backdropColor:{type:"string",default:"#000000b3"},closeBtnBackgroundColor:{type:"string",default:""},closeBtnColor:{type:"string",default:""},noTrigger:{type:"boolean", | |
| 3332 | -default:!1},openPanel:{type:"string",default:"close"},popupPosition:{type:"string",default:"popup"},panelBlockPosition:{type:"string",default:"bottom"},panelContentPosition:{type:"string",default:"auto"},closePosition:{type:"string",default:"right"},popupTopOffset:{type:"number",default:0},panelWidth:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},panelHeight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},autoTriggerTime:{type:"number",default:0},closeBtnTop:{type:"number",default:5},closeBtnSide:{type:"number",default:5},panelPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}, | |
| 3333 | -panelBackground:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"",imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},panelBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", | |
| 3334 | -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:"", | |
| 3335 | -rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},panelShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"", | |
| 3336 | -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:"",rightWidthTablet:"", | |
| 3337 | -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, | |
| 3338 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", | |
| 3339 | -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:"", | |
| 3340 | -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:"", | |
| 3341 | -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", | |
| 3342 | -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", | |
| 3343 | -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 Hj(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} `, | |
| 3344 | -"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,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:Tj.UU,attributes:e,className:`${c} ${s?"ablocks-trigger-on-hover":""}`,dataAttributes:d,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}function Mj(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Modal Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the modal popup setting to customize the modal as your needs","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})} | |
| 3345 | -(0,z.__)("Left","ablocks"),(0,z.__)("Right","ablocks"),(0,z.__)("Top","ablocks"),(0,z.__)("Block","ablocks"),(0,z.__)("Popup","ablocks"),(0,z.__)("Modal","ablocks"),(0,z.__)("Bottom","ablocks"),(0,z.__)("Top","ablocks"),(0,z.__)("Stretch","ablocks"),(0,z.__)("Top","ablocks"),(0,z.__)("Center","ablocks"),(0,z.__)("Bottom","ablocks"),Hj.propTypes={},(0,M.xV)(dj.UU)&&(0,o.registerBlockType)(dj.UU,{attributes:dj.uK,icon:(0,L.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})},[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"), | |
| 3346 | -"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 w?2===o?.blockVersion||t instanceof j||(t=new j(o,l)):t=new w(o,l):t=2===o?.blockVersion?new w(o,l):new j(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`}),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap",mj(o),mj(o,"Tablet"),mj(o,"Mobile")), | |
| 3347 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap",hj(o),hj(o,"Tablet"),hj(o,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-modal---panel-wrap.ablocks-block-modal---panel-wrap .ablocks-modal-popup-content-wrap:hover",gj(o),gj(o,"Tablet"),gj(o,"Mobile")),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",fj(o),fj(o,"Tablet"),fj(o,"Mobile")),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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{ref:e,children:p}),i&&(0,L.jsx)(cj,{...t}),(0,L.jsx)(pj,{...t})]})},save:yj,deprecated:[{attributes:Tj.uK,save:Hj}]}),Mj.propTypes={};const xj={ | |
| 3348 | -UU:"ablocks/modal-trigger",$t:["ablocks/modal"],uK:{block_id:{type:"string",default:""},hideTrigger:{type:"boolean",default:!1}}},kj=[["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 vj(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:kj,allowedBlocks:a,templateLock:!1};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:i,name:xj.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,L.jsx)(C.InnerBlocks,{...n})})})})}function _j(t){const{attributes:e}=t,{block_id:i,hideTrigger:o}=e;return o?(0,L.jsx)(L.Fragment,{}):(0,L.jsx)(eR,{blockId:i,name:xj.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0, | |
| 3349 | -L.jsx)(C.InnerBlocks.Content,{})})})}vj.propTypes={},_j.propTypes={};const Rj={UU:"ablocks/modal-trigger",uK:{block_id:{type:"string",default:""},hideTrigger:{type:"boolean",default:!1}}};function Sj(t){const{attributes:e}=t,{block_id:i,hideTrigger:o}=e;return o?(0,L.jsx)(L.Fragment,{}):(0,L.jsx)(eR,{blockId:i,name:Rj.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-modal-trigger-wrap",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}function Wj(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Modal Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the modal popup setting to customize the modal as your needs","ablocks")})]}),(0,L.jsx)(Sb,{ | |
| 3350 | -clientId:t?.clientId})]})})})}Sj.propTypes={},(0,M.xV)(xj.UU,xj.$t[0])&&(0,o.registerBlockType)(xj.UU,{icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--modal-trigger"}),attributes:xj.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 j(i,o).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:d}),e&&(0,L.jsx)(Mj,{...t}),(0,L.jsx)(vj,{...t})]})},save:_j,deprecated:[{attributes:Rj.uK,save:Sj}]}),Wj.propTypes={};const Uj={UU:"ablocks/modal-panel",$t:["ablocks/modal"],uK:{block_id:{ | |
| 3351 | -type:"string",default:""},noCloseButton:{type:"boolean",default:!1}}},Pj=(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",children:(0,L.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"})}),jj=[["core/paragraph"]];function wj(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:jj,templateLock:!1,renderAppender:C.InnerBlocks.DefaultBlockAppender};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:a,name:Uj.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,L.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,L.jsx)("div",{ | |
| 3352 | -className:"ablocks-modal-popup--content",children:(0,L.jsx)(C.InnerBlocks,{...b})}),!n&&(0,L.jsx)("div",{className:"ablocks-modal-popup-close",role:"presentation",onKeyDown:()=>{},onClick:()=>{i&&(0,r.dispatch)("core/block-editor").updateBlockAttributes(i,{openPanel:"close"})},children:Pj})]})})})})}function zj(t){const{attributes:e}=t,{block_id:i,noCloseButton:o}=e;return(0,L.jsx)(eR,{blockId:i,name:Uj.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,L.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,L.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,L.jsx)(C.InnerBlocks.Content,{})}),!o&&(0,L.jsx)("div",{className:"ablocks-modal-popup-close",children:Pj})]})})})}wj.propTypes={},zj.propTypes={};const Cj={UU:"ablocks/modal-panel",uK:{block_id:{type:"string",default:""},noCloseButton:{type:"boolean",default:!1}}},Aj=(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10", | |
| 3353 | -viewBox:"0 0 10 10",children:(0,L.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 Lj(t){const{attributes:e}=t,{block_id:i,noCloseButton:o}=e;return(0,L.jsx)(eR,{blockId:i,name:Cj.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-block-modal---panel-wrap",children:(0,L.jsxs)("div",{className:"ablocks-modal-popup-content-wrap",children:[(0,L.jsx)("div",{className:"ablocks-modal-popup--content",children:(0,L.jsx)(C.InnerBlocks.Content,{})}),!o&&(0,L.jsx)("div",{className:"ablocks-modal-popup-close",children:Aj})]})})})}Lj.propTypes={},(0,M.xV)(Uj.UU,Uj.$t[0])&&(0,o.registerBlockType)(Uj.UU,{icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--modal-panel"}),attributes:Uj.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]) | |
| 3354 | -;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 j(i,o).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:d}),e&&(0,L.jsx)(Wj,{...t}),(0,L.jsx)(wj,{parentModalId:c,...t})]})},save:zj,deprecated:[{attributes:Cj.uK,save:Lj}]});var Dj=i(20312),Nj=i.n(Dj),Ij=i(66162),Vj=i(81344),Oj=i(53481),Yj=i.n(Oj),Xj=i(14489);function Bj({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,L.jsx)(Xj.p,{draggable:!0,eventHandlers:o,position:e,icon:new(Yj().Icon)({iconUrl:M.hq+"assets/images/marker-icon.png",popupAnchor:[0,-15], | |
| 3355 | -iconSize:[25,41]}),ref:i})}Bj.propTypes={},Bj.defaultProps={},i(72189);var Ej=i(46804);function Fj(){return Fj=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},Fj.apply(this,arguments)}function qj(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$j(t,e)}function $j(t,e){return $j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$j(t,e)}var Gj,Zj,Kj={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(t){return""+t.result.label},resultFormat:function(t){return""+t.result.label},marker:{icon:Oj&&Oj.Icon?new Oj.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:{ | |
| 3356 | -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:"×"};Fj({},Kj),Fj({},Kj.classNames),(Zj=Gj||(Gj={}))[Zj.SEARCH=0]="SEARCH",Zj[Zj.REVERSE=1]="REVERSE";var Jj,Qj=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=Fj({},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:Gj.SEARCH});return Promise.resolve(fetch(i)).then(function(t){return Promise.resolve(t.json()).then(function(t){return e.parse({data:t}) | |
| 3357 | -})})}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"}(Jj||(Jj={}));var tw=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}qj(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===Gj.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}(Qj);class ew extends l().Component{ | |
| 3358 | -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 tw,this.fetchPlaces=(0,Ej.sg)(this.fetchPlaces,500)}onSearchChange(t){const e=t.target.value;this.setState({q:e}),this.fetchPlaces(e)}render(){return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-block-map-modal-place-search",children:[(0,L.jsx)("input",{className:"ablocks-block-map-modal-place-search__input",type:"text",value:this.state.q,onChange:this.onSearchChange.bind(this),placeholder:(0,z.__)("Location Search…","ablocks")}),this.state.isOpenResults&&(0,L.jsx)("ul",{className:"ablocks-block-map-modal-place-search__results",children:this.state.places.map((t,e)=>(0,L.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))})]})})}} | |
| 3359 | -function iw({index:t,attributes:e,setAttributes:i}){const o=(0,a.useRef)(),{mapMarkerList:n}=e,[s,r]=(0,a.useState)((0,Ej.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,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-block-map-modal-location-search",children:[(0,L.jsx)(ew,{setLatLngHandler:b}),(0,L.jsxs)("div",{className:"ablocks-block-map-modal-location-search__map",children:[(0,L.jsxs)(Ij.W,{style:{width:"100%",height:"200px"},center:s,zoom:13,ref:o,children:[(0,L.jsx)(Vj.e,{url:"OSM"===e.map_type?Ej.AW:Ej.GM}),(0,L.jsx)(Bj,{center:s,setLatLngHandler:b})]}),(0,L.jsx)("span",{className:"ablocks-block-map-note",children:(0,z.__)("Draggable Marker, Your can easily change your marker position by Dragging","ablocks")})]})]})})}ew.propTypes={},iw.propTypes={};const ow={overlay:{background:"rgba(35, 40, 45, 0.62)"},content:{top:"50%",left:"50%", | |
| 3360 | -right:"auto",bottom:"auto",width:"850px",marginRight:"-50%",transform:"translate(-50%, -50%)"}};function aw({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,L.jsx)(L.Fragment,{children:(0,L.jsxs)(Nj(),{bodyOpenClassName:"ablocks-block-map-modal",isOpen:e,style:ow,ariaHideApp:!1,contentLabel:(0,z.__)("Marker Editor","ablocks"),children:[(0,L.jsx)(A.Button,{className:"ablocks-block-map-modal__close",onClick:a,children:(0,L.jsx)("span",{className:"dashicons dashicons-no-alt"})}),(0,L.jsxs)("div",{className:"ablocks-block-map-modal__body",children:[(0,L.jsxs)("div",{className:"entry-left",children:[(0,L.jsx)(iw,{index:t,attributes:i,setAttributes:o}),(0,L.jsxs)("div",{className:"ablocks-block-map-modal-group-control",children:[(0,L.jsx)(A.TextControl,{label:(0,z.__)("Latitude","ablocks"),onChange:e=>s(t,"lat",isNaN(e)?0:e),value:l[t].lat}),(0, | |
| 3361 | -L.jsx)(A.TextControl,{label:(0,z.__)("longitude","ablocks"),onChange:e=>s(t,"lng",isNaN(e)?0:e),value:l[t].lng})]}),(0,L.jsxs)("div",{className:"ablocks-based-control__label",children:[(0,L.jsx)(A.TextControl,{label:(0,z.__)("Popup Title","ablocks"),onChange:e=>s(t,"title",(0,M.Xz)(e)),value:l[t].title}),(0,L.jsx)(A.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,z.__)("Popup Content","ablocks"),onChange:e=>s(t,"content",(0,M.Xz)(e)),value:l[t].content})]}),(0,L.jsx)(A.Button,{className:"ablocks-block-map-modal__save",isPrimary:!0,onClick:a,children:(0,z.__)("Save & Close","ablocks")})]}),(0,L.jsx)("div",{className:"entry-right",children:(0,L.jsxs)("div",{className:"ablocks-block-map-modal-panel",children:[(0,L.jsx)("h2",{className:"ablocks-block-map-modal-panel__title",children:(0,z.__)("Marker Settings","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-block-map-modal-panel__body",children:[(0,L.jsx)(A.ToggleControl,{label:(0,z.__)("Set As Default Position","ablocks"), | |
| 3362 | -checked:n===t,onChange:e=>{o({centerIndex:e?t:0})}}),(0,L.jsxs)("div",{className:"ablocks-block-map-modal-panel__body--radio",children:[(0,L.jsx)(A.RadioControl,{label:(0,z.__)("Choose Icon Type","ablocks"),selected:l[t].iconType,options:[{label:(0,z.__)("Default Icon","ablocks"),value:"default"},{label:(0,z.__)("Custom Icon","ablocks"),value:"custom"}],onChange:e=>{s(t,"iconType",e)}}),"custom"===l[t].iconType&&(0,L.jsx)(C.MediaUploadCheck,{children:(0,L.jsx)(C.MediaUpload,{onSelect:e=>s(t,"customIconUrl",e.url),allowedTypes:["image"],render:({open:e})=>(0,L.jsxs)(L.Fragment,{children:[""!==l[t].customIconUrl&&(0,L.jsxs)("div",{className:"ablocks-block-map-modal-panel__icon-size",children:[(0,L.jsx)(A.RangeControl,{className:"ablocks-range-lebel",label:(0,z.__)("Icon Width","ablocks"),value:parseInt(l[t].customIconWidth),onChange:e=>s(t,"customIconWidth",e),min:0,max:500}),(0,L.jsx)(A.RangeControl,{className:"ablocks-range-lebel",label:(0,z.__)("Icon Height","ablocks"), | |
| 3363 | -value:parseInt(l[t].customIconHeight),onChange:e=>s(t,"customIconHeight",e),min:0,max:500}),(0,L.jsx)("img",{src:l[t].customIconUrl,alt:(0,z.__)("Icon","ablocks"),style:{width:l[t].customIconWidth,height:l[t].customIconHeight}})]}),(0,L.jsxs)("div",{className:"ablocks-block-map-modal-panel__button-group",children:[(0,L.jsx)(A.Button,{className:"ablocks-block-map-modal__button",isPrimary:!0,onClick:e,children:""===l[t].customIconUrl?(0,z.__)("Upload Icon","ablocks"):(0,z.__)("Replace Icon","ablocks")}),""!==l[t].customIconUrl&&(0,L.jsx)(A.Button,{className:"ablocks-block-map-modal__button",isPrimary:!0,onClick:()=>s(t,"customIconUrl",""),children:(0,z.__)("Remove Icon","ablocks")})]})]})})})]})]})]})})]})]})})}aw.propTypes={};var lw=i(18057);function nw(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, | |
| 3364 | -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,L.jsxs)(l().Fragment,{children:[M.Uz?.wp_map_block&&(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.ToolbarButton,{label:(0,z.__)("Import Block Settings","ablocks"),icon:"upload",onClick:async()=>{const t=await(0,M.qS)();t&&i((0,Ej.j0)(JSON.parse(t)))}})}),(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-map-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Map Settings","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Choose Map","ablocks"),attributeValue:s,attributeName:"mapType",setAttributes:i,options:[{label:(0,z.__)("Google Map","ablocks"),value:"GM"},{label:(0,z.__)("Open Street map","ablocks"),value:"OSM"},{label:(0,z.__)("Satellite Map","ablocks"),value:"GM_SATELLITE"}],isInline:!1,onChangeHandler:t=>i({ | |
| 3365 | -mapType:t})}),(0,L.jsx)(vt,{label:(0,z.__)("Zoom Level","ablocks"),attributeValue:r,attributeName:"mapZoom",isResponsive:!1,setAttributes:i,min:0,max:20,isInline:!1,onChangeHandler:t=>i({mapZoom:t})}),(0,L.jsx)(Vt,{label:(0,z.__)("Enable Scroll Wheel Zoom","ablocks"),isInline:!1,attributeValue:b,attributeName:"scrollWheelZoom",attributes:i,isResponsive:!1,onChangeHandler:()=>i({scrollWheelZoom:!e.scrollWheelZoom})})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("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:lw.VZ,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("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, | |
| 3366 | -max:1e3,attributeDefaultValue:lw.AK,autoSyncRange:!0}),(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:u,attributeName:"cssFilter",setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Map Marker","ablocks"),initialOpen:!0,children:[(0,L.jsx)(tf,{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,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[c?.map((t,e)=>(0,L.jsx)(Uf,{draggableId:`${t.id}`,index:e,children:o=>(0,L.jsx)("div",{ref:o.innerRef,...o.draggableProps,...o.dragHandleProps,className:`ablocks-editor-list ${d===e&&"ablocks-editor-list--sclected"}`,children:(0,L.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), | |
| 3367 | -children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),T===t.id?(0,L.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,L.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},children:"string"==typeof t?.label&&t.label.length>20?t.label.slice(0,20)+"...":t?.label||""})]}),(0,L.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,L.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}) | |
| 3368 | -})(e,t?.id)}),(0,L.jsx)("span",{role:"presentation",className:"ablocks-icon ablocks-icon--edit",onClick:()=>v(e)}),(0,L.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,L.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, | |
| 3369 | -z.__)("+ Add Marker","ablocks")}),f&&(0,L.jsx)(aw,{index:h,attributes:e,setAttributes:i,isOpen:f,openModal:v,closeModal:()=>{g(0),y(!1)}})]}),c.length>0&&(0,L.jsxs)(D,{title:(0,z.__)("Marker Icon","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("Icon Height","ablocks"),attributeValue:p,attributeName:"iconHeight",isResponsive:!1,setAttributes:i,min:0,max:150,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("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,M.Zy)(t.mapHeight,{value:500,valueUnit:"px"});return{...{...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:a.value,unitDefaultValue:a.valueUnit,property:"width",device:e}),...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:l.value, | |
| 3370 | -unitDefaultValue:l.valueUnit,property:"height",device:e})},...(0,ay.qD)(t?.cssFilter,e)}},rw=l().lazy(()=>i.e(6758).then(i.bind(i,52577)));var bw=i(63748);(0,M.xV)(bw.UU)&&(0,o.registerBlockType)(bw.UU,{title:"Map",attributes:bw.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-map-base-editor",sw(i),sw(i,"Tablet"),sw(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(nw,{...t}),(0,L.jsx)(a.Suspense,{fallback:(0,L.jsx)("div",{children:(0,z.__)("Loading map…","ablocks")}),children:(0,L.jsx)(rw,{...t})})]})},save:()=>null,icon:(0, | |
| 3371 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--map"})});const cw=[{label:(0,z.__)("Front","ablocks"),value:"front"},{label:(0,z.__)("Back","ablocks"),value:"back"}],dw=(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")},uw=[{label:(0,z.__)("Right","ablocks"),value:"right",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,z.__)("Bottom","ablocks"),value:"bottom",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,z.__)("Left","ablocks"),value:"left",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,z.__)("Top","ablocks"),value:"top",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"})}] | |
| 3372 | -;function pw(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/flip-box-4/",children:(0,L.jsx)(D,{title:(0,z.__)("Flip Box","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{label:(0,z.__)("Show Side","ablocks"),options:cw,attributeName:"showSide",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Speed","ablocks"),min:.1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"transitionSpeed",attributeValue:a,setAttributes:i}),(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Flip Direction","ablocks"),options:uw,attributeName:"flipDirection",attributeValue:o,setAttributes:i,isResponsive:!1})]}), | |
| 3373 | -style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{label:(0,z.__)("Show Side","ablocks"),options:cw,attributeName:"showSide",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),"front"===n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"frontPadding",attributeValue:c,setAttributes:i}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ir,{isResponsive:!0,attributeName:"frontCardBackground",attributeValue:r,setAttributes:i})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"backPadding",attributeValue:d,setAttributes:i}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ir,{isResponsive:!0,attributeName:"backCardBackground",attributeValue:b,setAttributes:i})]}),(0,L.jsx)(Nt,{Margin:"30px"}),(0, | |
| 3374 | -L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"cardBorder",attributeValue:s,setAttributes:i})]})})})})})})}pw.propTypes={};const mw={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,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:"", | |
| 3375 | -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:"", | |
| 3376 | -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:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 3377 | -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:"", | |
| 3378 | -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:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"", | |
| 3379 | -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:"", | |
| 3380 | -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:"",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:{ | |
| 3381 | -isLinked:!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:"", | |
| 3382 | -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:"", | |
| 3383 | -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:"", | |
| 3384 | -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:"", | |
| 3385 | -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:"", | |
| 3386 | -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:"", | |
| 3387 | -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:{ | |
| 3388 | -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 hw(t){ | |
| 3389 | -const{attributes:e,clientId:i}=t,{block_id:o,showSide:n,flipDirection:b}=e,c=(0,C.useBlockProps)({className:"ablocks-flipbox__wrapper"}),d=[["ablocks/flip-box-child",{childId:1}],["ablocks/flip-box-child",{childId:2}]],u=(0,C.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?dw(e,0,1):dw(e,1,0)}},[p,n,o]),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:mw.UU,attributes:e,className:s()(`ablocks-flipbox--transform-${b}`),children:(0,L.jsx)("div",{...u})})})}hw.propTypes={};const gw=t=>{const{flipDirection:e,transitionSpeed:i,showSide:o}=t;return{display:"block",transition:`transform ${i}s`,...(0,Ob.qD)({attributeValue:t.transitionSpeed,attributeObjectKey:"value",defaultValue:.6,unitDefaultValue:"s",property:"transform"}), | |
| 3390 | -transform:"front"===o?"rotateY(0deg)":"top"===e?"rotateX(180deg)":"bottom"===e?"rotateX(-180deg)":"left"===e?"rotateY(-180deg)":"rotateY(180deg)"}},fw=(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)}},yw=(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)}},Tw=(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)}},Hw=(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, | |
| 3391 | -c.qD)(i,"padding",e),...(0,y.a9)(o,e)}};function Mw(t){const{attributes:e}=t,{block_id:i,flipDirection:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:mw.UU,attributes:e,className:s()(`ablocks-flipbox--transform-${o}`),children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}function xw(t){return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Flip Box Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Customize the Flip Box block to create interactive hover effects.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})}Mw.propTypes={},(0,M.xV)(mw.UU)&&(0,o.registerBlockType)(mw.UU,{title:(0,z.__)("Flip Box","ablocks"),icon:(0,L.jsx)("span",{ | |
| 3392 | -className:"ablocks-icon ablocks-icon--block-flipbox"}),attributes:mw.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 j(i,l);s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__wrapper",gw(i),gw(i),gw(i)),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__front > .ablocks-block-container",fw(i),fw(i,"Tablet"),fw(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__back >.ablocks-block-container",yw(i),yw(i,"Tablet"),yw(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__front:hover > .ablocks-block-container",Tw(i),Tw(i,"Tablet"),Tw(i,"Mobile")),s.addClassStyles("{{WRAPPER}} .ablocks-flipbox__back:hover > .ablocks-block-container",Hw(i),Hw(i,"Tablet"),Hw(i,"Mobile"));const r=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(pw,{...t}),(0,L.jsx)(hw,{...t})]})},save:Mw}),xw.propTypes={};const kw={ | |
| 3393 | -UU:"ablocks/flip-box-child",$t:["ablocks/flip-box"],uK:{block_id:{type:"string",default:""},childId:{type:"number",default:0}}},vw=[["ablocks/icon",{alignment:{value:"center"}}],["ablocks/heading",{heading:"Front Side",alignment:{value:"center"}}],["ablocks/paragraph",{alignment:{value:"center"}}]],_w=[["ablocks/icon",{alignment:{value:"center"}}],["ablocks/heading",{heading:"Back Side",alignment:{value:"center"}}],["ablocks/button",{alignment:{value:"center"},position:{value:"center"}}]];function Rw(t){const{attributes:e}=t,{block_id:i,childId:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:kw.UU,attributes:e,className:s()("ablocks-flipbox__"+(1===o?"front":"back")),children:(0,L.jsx)(C.InnerBlocks,{template:1===o?vw:_w,templateLock:!1})})})}function Sw(t){const{attributes:e}=t,{block_id:i,childId:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:kw.UU,attributes:e,className:s()("ablocks-flipbox__"+(1===o?"front":"back")),children:(0, | |
| 3394 | -L.jsx)(C.InnerBlocks.Content,{})})})}Rw.propTypes={},Sw.propTypes={},(0,M.xV)(kw.UU,kw.$t[0])&&(0,o.registerBlockType)(kw.UU,{title:(0,z.__)("Flip Box child","ablocks"),attributes:kw.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 j(i,l).generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(xw,{...t}),(0,L.jsx)(Rw,{...t})]})},save:Sw,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-flipbox"})});const Ww=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:tT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:eT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:iT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:oT,type:"mask-style",optionalStyleControls:["size","gap"]},{ | |
| 3395 | -label:"dots",value:aT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:lT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]}];var Uw=i(28482);const Pw=[{label:"row",value:"row"},{label:"column",value:"column"}];function jw(t){ | |
| 3396 | -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:U,width:P,gap:j,size:w,placePrice:A,priceTag:N,priceColor:I,priceTypography:V,priceTextShadow:O,priceTextStroke:Y}=e,{}=e,X=Ww?.find(t=>t.value===S),B=X?.optionalStyleControls?.map((t,e)=>"size"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:w,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:Uw.Ej})},e):"weight"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{setAttributes:i,label:(0,z.__)("Weight","ablocks"), | |
| 3397 | -attributeName:"weight",attributeValue:U,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:Uw.VA})},e):null);return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Price menu","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Column gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Uw.Dv,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,L.jsx)(md,{label:(0,z.__)("Items Direction","ablocks"),options:Pw,attributeName:"itemsDirection",attributeValue:s,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),options:[{label:(0,z.__)("Flex Start","ablocks"), | |
| 3398 | -value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:a,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Gap around elements","ablocks"),isResponsive:!0,attributeName:"gap",attributeObjectKey:"value",attributeValue:j,setAttributes:i,isInline:!1,min:1,max:30,step:1,attributeDefaultValue:Uw.rQ}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Allow icon","ablocks"),attributeValue:b,setAttributes:i,attributeName:"allowIcon"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Allow description","ablocks"),attributeValue:r,setAttributes:i,attributeName:"allowDescription"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Allow divider","ablocks"),attributeValue:c,setAttributes:i,attributeName:"allowDivider"}),(0,L.jsx)(Ut,{label:(0,z.__)("Place divider","ablocks"),options:[{label:"near title",type:"css-style",value:"near title"},{ | |
| 3399 | -label:"under price",type:"css-style",value:"under title"},{label:"under description",type:"css-style",value:"under des"}],attributeName:"placeDivider",attributeValue:R,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Place price","ablocks"),options:[{label:"base",type:"css-style",value:"right"},{label:"bottom",type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeValue:A,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"itemBackground",attributeValue:u,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"itemBackgroundH",attributeValue:p,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:m||0,attributeName:"transition",setAttributes:i})]})}),(0,L.jsx)(Mt,{ | |
| 3400 | -label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"itemPadding",attributeValue:d,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"itemBorder",attributeValue:h,setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Titles","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"titleTag",attributeValue:g,setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:f,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{ | |
| 3401 | -label:(0,z.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})})}),r?(0,L.jsx)(D,{title:(0,z.__)("Descriptions","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"descriptionTag",attributeValue:M,setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"descriptionTextShadow",attributeValue:v,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:_,setAttributes:i,isResponsive:!0 | |
| 3402 | -})]})})}):null,c?(0,L.jsx)(D,{title:(0,z.__)("Dividers","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),options:Ww,attributeName:"dividerPatternUrl",attributeValue:S,onChangeHandler:t=>{const e=Ww?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:P,setAttributes:i,hasUnit:!1,step:1,min:1,max:r||"Mobile"===o&&!1===r?100:500,isInline:!1,attributeDefaultValue:Uw.VL})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"color",attributeValue:W,setAttributes:i}),(0,L.jsx)(Nt,{}),B]})})}):null,(0,L.jsx)(D,{title:(0,z.__)("Prices","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"priceTag", | |
| 3403 | -attributeValue:N,setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:I,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:V,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:O,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:Y,setAttributes:i,isResponsive:!0})]})})})]})})})}jw.propTypes={};const ww={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0}, | |
| 3404 | -allowDivider:{type:"boolean",default:!0},itemBackgroundH:{type:"string",default:""},itemBackground:{type:"string",default:""},transition:{type:"number",default:""},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B"},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#595959"},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:"dashed"},dividerType:{type:"string",default:"dashed"},color:{type:"string",default:"#000000"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959"},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"600",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"", | |
| 3405 | -fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px", | |
| 3406 | -lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"", | |
| 3407 | -lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string", | |
| 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){ | |
| 3418 | +const{attributes:e,setAttributes:i}=t,{device:o,alignment:a,columnGap:n,itemsDirection:s,allowDescription:r,allowIcon:b,allowDivider:c,itemPadding:d,itemBackground:u,itemBackgroundH:p,transition:m,itemBorder:h,titleTag:g,titleColor:f,titleTypography:y,titleTextShadow:T,titleTextStroke:H,descriptionTag:M,descriptionColor:x,descriptionTypography:k,descriptionTextShadow:v,descriptionTextStroke:_,placeDivider:R,dividerPatternUrl:S,color:W,weight:P,width:U,gap:j,size:w,placePrice:z,priceTag:C,priceColor:A,priceTypography:N,priceTextShadow:O,priceTextStroke:Y}=e,{}=e,X=$w?.find(t=>t.value===S),B=X?.optionalStyleControls?.map((t,e)=>"size"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:w,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:Gw.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"), | |
| 3419 | +attributeName:"weight",attributeValue:P,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:Gw.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Price menu","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Column gap","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"columnGap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Gw.Dv,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,I.jsx)(Hd,{label:(0,L.__)("Items Direction","ablocks"),options:Zw,attributeName:"itemsDirection",attributeValue:s,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),options:[{label:(0,L.__)("Flex Start","ablocks"), | |
| 3420 | +value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:a,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap around elements","ablocks"),isResponsive:!0,attributeName:"gap",attributeObjectKey:"value",attributeValue:j,setAttributes:i,isInline:!1,min:1,max:30,step:1,attributeDefaultValue:Gw.rQ}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow icon","ablocks"),attributeValue:b,setAttributes:i,attributeName:"allowIcon"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow description","ablocks"),attributeValue:r,setAttributes:i,attributeName:"allowDescription"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Allow divider","ablocks"),attributeValue:c,setAttributes:i,attributeName:"allowDivider"}),(0,I.jsx)(Ut,{label:(0,L.__)("Place divider","ablocks"),options:[{label:(0,L.__)("near title","ablocks"),type:"css-style", | |
| 3421 | +value:"near title"},{label:(0,L.__)("under price","ablocks"),type:"css-style",value:"under title"},{label:(0,L.__)("under description","ablocks"),type:"css-style",value:"under des"}],attributeName:"placeDivider",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Place price","ablocks"),options:[{label:"base",type:"css-style",value:"right"},{label:(0,L.__)("bottom","ablocks"),type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeValue:z,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"itemBackground",attributeValue:u,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"itemBackgroundH",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1, | |
| 3422 | +attributeValue:m||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"itemPadding",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:h,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Titles","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"titleTag",attributeValue:g,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"), | |
| 3423 | +attributeName:"titleTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})})}),r?(0,I.jsx)(V,{title:(0,L.__)("Descriptions","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"descriptionTag",attributeValue:M,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:x,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"descriptionTextShadow",attributeValue:v,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0, | |
| 3424 | +L.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:_,setAttributes:i,isResponsive:!0})]})})}):null,c?(0,I.jsx)(V,{title:(0,L.__)("Dividers","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:$w,attributeName:"dividerPatternUrl",attributeValue:S,onChangeHandler:t=>{const e=$w?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:U,setAttributes:i,hasUnit:!1,step:1,min:1,max:r||"Mobile"===o&&!1===r?100:500,isInline:!1,attributeDefaultValue:Gw.VL})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:W,setAttributes:i}),(0,I.jsx)(It,{}),B]})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Prices","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0, | |
| 3425 | +I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"priceTag",attributeValue:C,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:A,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:N,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:O,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:Y,setAttributes:i,isResponsive:!0})]})})})]})})})}Kw.propTypes={};const Jw={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10, | |
| 3426 | +valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},itemBackgroundH:{type:"string",default:""},itemBackground:{type:"string",default:""},transition:{type:"number",default:""},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B"},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#595959"},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:"dashed"},dividerType:{type:"string",default:"dashed"},color:{type:"string",default:"#000000"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959"},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"600",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"", | |
| 3427 | +lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"", | |
| 3428 | +letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", | |
| 3429 | +wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string", | |
| 3408 | 3430 | 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" |
| 3409 | 3431 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", |
| 3410 | 3432 | rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0}, |
| 3411 | 3433 | iconImageWidth:{type:"number",default:0},elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}}, |
| @@ -3419,14 +3441,14 @@ | ||
| 3419 | 3441 | imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px", |
| 3420 | 3442 | offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px", |
| 3421 | 3443 | scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0", |
| 3422 | 3444 | yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{ |
| 3423 | -type:"array",default:[],items:{type:"object"}}}};function zw(t){const{attributes:e,setAttributes:i,clientId:n,isSelected:s}=t,{block_id:b,device:c,alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,priceAlignment:_}=e,R=at();(0,a.useEffect)(()=>{i({device:R})},[R]);const{updateBlockAttributes:S}=(0,r.useDispatch)("core/block-editor"),W=()=>{const t=(0,r.select)("core/block-editor").getBlocks(n);t.length>0&&t.forEach(t=>{const e=t.clientId;S(e,{alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,priceAlignment:_})})};return(0,a.useEffect)(()=>{s&&W()},[d,u,p,m,h,g,f,y,T,H,M,x,k,v,_]),(0,a.useEffect)(()=>{"flex-start"===d["value"+c]?(f["value"+c]="left",T["value"+c]="left", | |
| 3424 | -_["value"+c]="left"):"flex-end"===d["value"+c]?(f["value"+c]="right",T["value"+c]="right",_["value"+c]="right"):"center"===d["value"+c]&&(f["value"+c]="center",T["value"+c]="center",_["value"+c]="center")},[d]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{}),(0,L.jsxs)(Nb.A,{blockId:b,name:ww.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}]],allowedBlocks:["ablocks/price-menu-item"]}),(0,L.jsxs)("button",{className:"ablocks-price-menu-add-button",onClick:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n),e=(0,o.createBlock)("ablocks/price-menu-item");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,b),W()},children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),"Add Item"]})]})]})}zw.propTypes={};const Cw=(t,e="")=>{const i={} | |
| 3425 | -;t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.itemPadding,{unit:"px"}),a=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.itemBackground),...i,...(0,Gt.qD)(t?.alignment,"justify-content",e),...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)}},Aw=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,gs.qD)(t?.itemBackgroundH),...(0,y.a9)(i,e)}},Lw=(t,e="")=>{const i={};return""!==t.itemsDirection["value"+e]&&void 0!==t.itemsDirection["value"+e]&&(i["flex-direction"]=t.itemsDirection["value"+e]),""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},Dw=(t,e="")=>{const i={};return""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),{...i,...(0,Ob.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px", | |
| 3426 | -device:e})}},Nw=(t,e="")=>{const i={};return""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&("row"===t.itemsDirection["value"+e]?i["justify-content"]="space-between":i["justify-content"]=t.alignment["value"+e]),{...i,...(0,Ob.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px",device:e})}},Iw=(t,e="")=>({display:"flex","flex-wrap":"wrap","flex-direction":"column",...(0,Ob.qD)({attributeValue:t.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:20,hasUnit:!0,unitDefaultValue:"px",device:e})}),Vw=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,gs.qD)(t?.titleColor),...(0,Gt.qD)(t?.titleAlignment,"text-align",e),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.titleTextStroke,e),...(0,pc.qD)(t?.titleTextShadow)}},Ow=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400" | |
| 3427 | -}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,gs.qD)(t?.descriptionColor),...(0,Gt.qD)(t?.descriptionAlignment,"text-align",e),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.descriptionTextStroke,e),...(0,pc.qD)(t?.descriptionTextShadow)}},Yw=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,gs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Ob.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:100,hasUnit:!1,unitDefaultValue:t.allowDescription?"%":"px",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Ob.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:20,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Ob.qD)({attributeValue:t.weight, | |
| 3428 | -attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:2,hasUnit:!1,unitDefaultValue:"px"}):void 0}},Xw=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{color:(0,gs.qD)(t?.priceColor),...(0,Gt.qD)(t?.priceAlignment,"text-align",e),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.priceTextStroke,e),...(0,pc.qD)(t?.priceTextShadow)}};function Bw(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:ww.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}Bw.propTypes={};const Ew={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0 | |
| 3445 | +type:"array",default:[],items:{type:"object"}}}};function Qw(t){const{attributes:e,setAttributes:i,clientId:n,isSelected:s}=t,{block_id:b,device:c,alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,priceAlignment:_}=e,R=lt();(0,a.useEffect)(()=>{i({device:R})},[R]);const{updateBlockAttributes:S}=(0,r.useDispatch)("core/block-editor"),W=()=>{const t=(0,r.select)("core/block-editor").getBlocks(n);t.length>0&&t.forEach(t=>{const e=t.clientId;S(e,{alignment:d,itemsDirection:u,allowIcon:p,allowDescription:m,allowDivider:h,titleTag:g,titleAlignment:f,descriptionTag:y,descriptionAlignment:T,placeDivider:H,dividerType:M,gap:x,placePrice:k,priceTag:v,priceAlignment:_})})};return(0,a.useEffect)(()=>{s&&W()},[d,u,p,m,h,g,f,y,T,H,M,x,k,v,_]),(0,a.useEffect)(()=>{"flex-start"===d["value"+c]?(f["value"+c]="left",T["value"+c]="left", | |
| 3446 | +_["value"+c]="left"):"flex-end"===d["value"+c]?(f["value"+c]="right",T["value"+c]="right",_["value"+c]="right"):"center"===d["value"+c]&&(f["value"+c]="center",T["value"+c]="center",_["value"+c]="center")},[d]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:b,name:Jw.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}],["ablocks/price-menu-item",{}]],allowedBlocks:["ablocks/price-menu-item"]}),(0,I.jsxs)("button",{className:"ablocks-price-menu-add-button",onClick:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n),e=(0,o.createBlock)("ablocks/price-menu-item");(0,r.dispatch)("core/block-editor").insertBlock(e,t.length,b),W()},children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),"Add Item"]})]})]})}Qw.propTypes={};const tz=(t,e="")=>{const i={} | |
| 3447 | +;t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.itemPadding,{unit:"px"}),a=(0,M.Zy)(t.itemBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,Hs.qD)(t?.itemBackground),...i,...(0,Zt.qD)(t?.alignment,"justify-content",e),...(0,c.qD)(o,"padding",e),...(0,y.qD)(a,e)}},ez=(t,e="")=>{const i=(0,M.Zy)(t.itemBorder,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,Hs.qD)(t?.itemBackgroundH),...(0,y.a9)(i,e)}},iz=(t,e="")=>{const i={};return""!==t.itemsDirection["value"+e]&&void 0!==t.itemsDirection["value"+e]&&(i["flex-direction"]=t.itemsDirection["value"+e]),""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},oz=(t,e="")=>{const i={};return""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),{...i,...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px", | |
| 3448 | +device:e})}},az=(t,e="")=>{const i={};return""!==t.alignment["value"+e]&&void 0!==t.alignment["value"+e]&&("row"===t.itemsDirection["value"+e]?i["justify-content"]="space-between":i["justify-content"]=t.alignment["value"+e]),{...i,...(0,Eb.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:10,hasUnit:!0,unitDefaultValue:"px",device:e})}},lz=(t,e="")=>({display:"flex","flex-wrap":"wrap","flex-direction":"column",...(0,Eb.qD)({attributeValue:t.columnGap,attributeObjectKey:"value",isResponsive:!0,property:"gap",defaultValue:20,hasUnit:!0,unitDefaultValue:"px",device:e})}),nz=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,Zt.qD)(t?.titleAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.titleTextStroke,e),...(0,fc.qD)(t?.titleTextShadow)}},sz=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400" | |
| 3449 | +}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,Hs.qD)(t?.descriptionColor),...(0,Zt.qD)(t?.descriptionAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.descriptionTextStroke,e),...(0,fc.qD)(t?.descriptionTextShadow)}},rz=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:100,hasUnit:!1,unitDefaultValue:t.allowDescription?"%":"px",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:20,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight, | |
| 3450 | +attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:2,hasUnit:!1,unitDefaultValue:"px"}):void 0}},bz=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{color:(0,Hs.qD)(t?.priceColor),...(0,Zt.qD)(t?.priceAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.priceTextStroke,e),...(0,fc.qD)(t?.priceTextShadow)}};function cz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Jw.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}cz.propTypes={};const dz={UU:"ablocks/price-menu",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},columnGap:{type:"object",default:{value:20,valueTablet:20,valueMobile:10,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0 | |
| 3429 | 3451 | },itemBackgroundH:{type:"string",default:""},itemBackground:{type:"string",default:""},transition:{type:"number",default:""},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:"#13191B"},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:"#74777C"},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:"dashed"},dividerType:{type:"string",default:"dashed"},color:{type:"string",default:"#000000"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:"#595959"},titleTypography:{type:"object",default:{fontFamily:"",weight:"600",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"", |
| 3430 | 3452 | lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"", |
| 3431 | 3453 | letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"", |
| 3432 | 3454 | wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string", |
| @@ -3442,47 +3464,47 @@ | ||
| 3442 | 3464 | 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:"", |
| 3443 | 3465 | 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:"", |
| 3444 | 3466 | 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", |
| 3445 | 3467 | 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", |
| 3446 | -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 Fw(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:Ew.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}Fw.propTypes={},(0,M.xV)(ww.UU)&&(0,o.registerBlockType)(ww.UU,{attributes:ww.uK,icon:(0, | |
| 3447 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",Iw(i),Iw(i,"Tablet"),Iw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item, {{WRAPPER}} .ablocks-price-menu-item-details",Dw(i),Dw(i,"Tablet"),Dw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-brief",Nw(i),Nw(i,"Tablet"),Nw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item",Cw(i),Cw(i,"Tablet"),Cw(i,"Mobile")), | |
| 3448 | -t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item:hover",Aw(i),Aw(i,"Tablet"),Aw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item",Lw(i),Lw(i,"Tablet"),Lw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",Vw(i),Vw(i,"Tablet"),Vw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",Ow(i),Ow(i,"Tablet"),Ow(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),Yw(i),Yw(i,"Tablet"),Yw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",Xw(i),Xw(i,"Tablet"),Xw(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(jw,{...t}),(0,L.jsx)(zw,{...t})]})},save:Bw,deprecated:[{attributes:Ew.uK,save:Fw}]});const qw=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:tT,type:"mask-style", | |
| 3449 | -optionalStyleControls:["size","gap"]},{label:"slashes",value:eT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:iT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:oT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:aT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:lT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:dT,type:"mask-style", | |
| 3450 | -optionalStyleControls:["size","gap"]}];var $w=i(14120);function Gw(t){const{attributes:e,setAttributes:i}=t,{device:o,itemsDirection:a,allowIcon:n,allowDescription:s,allowDivider:r,title:b,titleTag:c,titleColor:d,titleTypography:u,titleTextShadow:p,titleTextStroke:m,description:h,descriptionTag:g,descriptionColor:f,descriptionTypography:y,descriptionTextShadow:T,descriptionTextStroke:H,placeDivider:M,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,price:S,placePrice:W,priceTag:U,priceColor:P,priceTypography:j,priceTextShadow:w,priceTextStroke:A}=e,N=qw?.find(t=>t.value===x),I=N?.optionalStyleControls?.map((t,e)=>"size"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:$w.Ej})},e):"weight"===t?(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(vt,{setAttributes:i,label:(0,z.__)("Weight","ablocks"), | |
| 3451 | -attributeName:"weight",attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:$w.VA})},e):null);return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Price Menu Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the price menu settings to customize its styles effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[n&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ld,{ | |
| 3452 | -label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,L.jsx)(Nd,{attributes:e,setAttributes:i})})})}),(0,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"title",attributeValue:b,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks")}),(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"titleTag",attributeValue:c,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:p,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0, | |
| 3453 | -z.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:m,setAttributes:i,isResponsive:!0})]})})}),s&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(D,{title:(0,z.__)("Description","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Description","ablocks"),attributeName:"description",attributeValue:h,setAttributes:i,placeholder:(0,z.__)("Enter your description","ablocks")}),(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"descriptionTag",attributeValue:g,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:f,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"), | |
| 3454 | -attributeName:"descriptionTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})})})}),r?(0,L.jsx)(D,{title:(0,z.__)("Divider","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),options:qw,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=qw?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),"row"===a["value"+o]?(0,L.jsx)(Ut,{label:(0,z.__)("Place divider","ablocks"),options:[{label:"near title",type:"css-style",value:"near title"},{label:"under title",type:"css-style",value:"under title"}],attributeName:"placeDivider",attributeValue:M,setAttributes:i}):null,(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!1, | |
| 3455 | -step:1,min:1,max:s||"Mobile"===o&&!1===s?100:500,isInline:!1,attributeDefaultValue:$w.VL})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,L.jsx)(Nt,{}),I]})})}):null,(0,L.jsx)(D,{title:(0,z.__)("Price","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Price","ablocks"),attributeName:"price",attributeValue:S,setAttributes:i,placeholder:(0,z.__)("Enter your price","ablocks")}),"row"===a["value"+o]?(0,L.jsx)(Ut,{label:(0,z.__)("Place price","ablocks"),options:[{label:"right",type:"css-style",value:"right"},{label:"bottom",type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeValue:W,setAttributes:i}):null,(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"priceTag",attributeValue:U,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0, | |
| 3456 | -z.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:P,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:j,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:w,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:A,setAttributes:i,isResponsive:!0})]})})})]})]})})}Gw.propTypes={};const Zw={UU:"ablocks/price-menu-item",$t:["ablocks/price-menu"],uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{type:"string",source:"html", | |
| 3457 | -selector:".ablocks-price-menu-item-details-des",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html",selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},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", | |
| 3458 | -fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"", | |
| 3459 | -lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px", | |
| 3460 | -lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string", | |
| 3468 | +xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function uz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:dz.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}uz.propTypes={},(0,M.xV)(Jw.UU)&&(0,o.registerBlockType)(Jw.UU,{attributes:Jw.uK,icon:(0, | |
| 3469 | +I.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",lz(i),lz(i,"Tablet"),lz(i,"Mobile"),e(t=>lz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item, {{WRAPPER}} .ablocks-price-menu-item-details",oz(i),oz(i,"Tablet"),oz(i,"Mobile"),e(t=>oz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-brief",az(i),az(i,"Tablet"),az(i,"Mobile"),e(t=>az(i,t))), | |
| 3470 | +t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item",tz(i),tz(i,"Tablet"),tz(i,"Mobile"),e(t=>tz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--price-menu-item:hover",ez(i),ez(i,"Tablet"),ez(i,"Mobile"),e(t=>ez(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item",iz(i),iz(i,"Tablet"),iz(i,"Mobile"),e(t=>iz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",nz(i),nz(i,"Tablet"),nz(i,"Mobile"),e(t=>nz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",sz(i),sz(i,"Tablet"),sz(i,"Mobile"),e(t=>sz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),rz(i),rz(i,"Tablet"),rz(i,"Mobile"),e(t=>rz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",bz(i),bz(i,"Tablet"),bz(i,"Mobile"),e(t=>bz(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Kw,{...t}),(0,I.jsx)(Qw,{...t})]})}, | |
| 3471 | +save:cz,deprecated:[{attributes:dz.uK,save:uz}]});const pz=[{label:"dashed",type:"css-style",value:"dashed",optionalStyleControls:["weight","gap"]},{label:"square",value:nT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"slashes",value:sT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"arrows",value:rT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"pluses",value:bT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"dots",value:cT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"solid",type:"css-style",value:"solid",optionalStyleControls:["weight","gap"]},{label:"firTree",value:dT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"halfRound",value:uT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"leaves",value:pT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"stripes",value:mT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tress",value:hT, | |
| 3472 | +type:"mask-style",optionalStyleControls:["size","gap"]},{label:"tribal",value:gT,type:"mask-style",optionalStyleControls:["size","gap"]},{label:"x",value:fT,type:"mask-style",optionalStyleControls:["size","gap"]}];(0,L.__)("None","ablocks"),(0,L.__)("Text","ablocks"),(0,L.__)("Icon","ablocks"),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");var mz=i(14120);function hz(t){const{attributes:e,setAttributes:i}=t,{device:o,itemsDirection:a,allowIcon:n,allowDescription:s,allowDivider:r,title:b,titleTag:c,titleColor:d,titleTypography:u,titleTextShadow:p,titleTextStroke:m,description:h,descriptionTag:g,descriptionColor:f,descriptionTypography:y,descriptionTextShadow:T,descriptionTextStroke:H,placeDivider:M,dividerPatternUrl:x,color:k,weight:v,width:_,size:R,price:S,placePrice:W,priceTag:P,priceColor:U,priceTypography:j,priceTextShadow:w,priceTextStroke:z}=e,C=pz?.find(t=>t.value===x),A=C?.optionalStyleControls?.map((t,e)=>"size"===t?(0, | |
| 3473 | +I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Size","ablocks"),attributeName:"size",attributeObjectKey:"value",attributeValue:R,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,attributeDefaultValue:mz.Ej})},e):"weight"===t?(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(_t,{setAttributes:i,label:(0,L.__)("Weight","ablocks"),attributeName:"weight",attributeValue:v,isInline:!1,min:1,max:10,step:1,isResponsive:!1,attributeDefaultValue:mz.VA})},e):null);return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Price Menu Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the price menu settings to customize its styles effortlessly.","ablocks")})] | |
| 3474 | +}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-price-menu-block/",children:[n&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})})})}),(0,I.jsx)(V,{title:(0,L.__)("Title","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"title",attributeValue:b,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"titleTag",attributeValue:c,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"), | |
| 3475 | +attributeName:"titleColor",attributeValue:d,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:p,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:m,setAttributes:i,isResponsive:!0})]})})}),s&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Description","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Description","ablocks"),attributeName:"description",attributeValue:h,setAttributes:i,placeholder:(0,L.__)("Enter your description","ablocks")}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"descriptionTag",attributeValue:g,setAttributes:i})]}),style:(0, | |
| 3476 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"descriptionColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"descriptionTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"descriptionTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})})})}),r?(0,I.jsx)(V,{title:(0,L.__)("Divider","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),options:pz,attributeName:"dividerPatternUrl",attributeValue:x,onChangeHandler:t=>{const e=pz?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),"row"===a["value"+o]?(0,I.jsx)(Ut,{label:(0, | |
| 3477 | +L.__)("Place divider","ablocks"),options:[{label:(0,L.__)("near title","ablocks"),type:"css-style",value:"near title"},{label:(0,L.__)("under title","ablocks"),type:"css-style",value:"under title"}],attributeName:"placeDivider",attributeValue:M,setAttributes:i}):null,(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"width",attributeObjectKey:"value",attributeValue:_,setAttributes:i,hasUnit:!1,step:1,min:1,max:s||"Mobile"===o&&!1===s?100:500,isInline:!1,attributeDefaultValue:mz.VL})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"color",attributeValue:k,setAttributes:i}),(0,I.jsx)(It,{}),A]})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Price","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Price","ablocks"),attributeName:"price",attributeValue:S,setAttributes:i,placeholder:(0,L.__)("Enter your price","ablocks")}),"row"===a["value"+o]?(0,I.jsx)(Ut,{ | |
| 3478 | +label:(0,L.__)("Place price","ablocks"),options:[{label:(0,L.__)("right","ablocks"),type:"css-style",value:"right"},{label:(0,L.__)("bottom","ablocks"),type:"css-style",value:"bottom"}],attributeName:"placePrice",attributeValue:W,setAttributes:i}):null,(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"priceTag",attributeValue:P,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"priceColor",attributeValue:U,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:j,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"priceTextShadow",attributeValue:w,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"priceTextStroke",attributeValue:z,setAttributes:i,isResponsive:!0})]})})})]})]})})}(0, | |
| 3479 | +L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks"),hz.propTypes={};const gz={UU:"ablocks/price-menu-item",$t:["ablocks/price-menu"],uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{type:"string",source:"html",selector:".ablocks-price-menu-item-details-des",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html", | |
| 3480 | +selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"", | |
| 3481 | +strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"", | |
| 3482 | +strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypographyGlobal:{type:"string",default:""},priceTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px", | |
| 3483 | +strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string", | |
| 3484 | +default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"stacked"},iconShape:{type:"string",default:"square"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"", | |
| 3485 | +bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"40"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"40",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg", | |
| 3486 | +valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}}, | |
| 3487 | +alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},titleAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},width:{type:"object",default:{value:null,valueTablet:null,valueMobile:null}},weight:{type:"number",default:null},size:{type:"number",default:null},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{ | |
| 3488 | +type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"", | |
| 3489 | +unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"", | |
| 3490 | +bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"", | |
| 3491 | +imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"", | |
| 3492 | +imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px", | |
| 3493 | +offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1, | |
| 3494 | +scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0", | |
| 3495 | +yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[], | |
| 3496 | +items:{type:"object"}}}},fz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function yz(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,allowIcon:s,allowDescription:b,allowDivider:c,titleTag:d,description:u,descriptionTag:p,price:m,placePrice:h,priceTag:g,placeDivider:f,dividerPatternUrl:y,dividerType:T,size:H,color:M,weight:x}=e,k=lt();(0,a.useEffect)(()=>{i({device:k})},[k]);const v=(0,r.useSelect)(t=>{const{getBlockParents:e}=t("core/block-editor"),i=e(o)[0];return t("core/block-editor").getBlockAttributes(i)},[o]);return(0,a.useEffect)(()=>{y&&""===M&&i({color:v.color}),"mask-style"===T?y&&null===H&&i({size:v.size}):y&&null===x&&i({weight:v.weight})},[y]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsx)(sR,{blockId:n,name:gz.UU,attributes:e, | |
| 3497 | +typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[s&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)($c,{tagName:d,identifier:"title",value:e.title,withoutInteractiveFormatting:!0,placeholder:e.title,className:"ablocks-price-menu-item-details-title",onChange:t=>i({title:t})}),"near title"===f?(0,I.jsx)(fz,{allowDivider:c,dividerType:T}):null,"right"===h?(0,I.jsx)($c,{tagName:g,identifier:"price",value:e.price,withoutInteractiveFormatting:!0,placeholder:e.price,className:"ablocks-price-menu-item-price",onChange:t=>i({price:t})}):null]}),"under title"===f?(0,I.jsx)(fz,{allowDivider:c,dividerType:T}):null,b&&(0,I.jsx)($c,{tagName:p,identifier:"description",value:e.description,withoutInteractiveFormatting:!0,placeholder:e.description, | |
| 3498 | +className:"ablocks-price-menu-item-details-des",onChange:t=>i({description:t})}),"under des"===f?(0,I.jsx)(fz,{allowDivider:c,dividerType:T}):null,"bottom"===h?(0,I.jsx)($c,{tagName:g,identifier:"price",value:e.price,withoutInteractiveFormatting:!0,placeholder:e.price,className:"ablocks-price-menu-item-price",onChange:t=>i({price:t})}):null]})]})})]})}yz.propTypes={};const Tz=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,Hs.qD)(t?.titleColor),...(0,Zt.qD)(t?.titleAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.titleTextStroke,e),...(0,fc.qD)(t?.titleTextShadow)}},Hz=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400"}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,Hs.qD)(t?.descriptionColor),...(0,Zt.qD)(t?.descriptionAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.descriptionTextStroke,e),...(0,fc.qD)(t?.descriptionTextShadow)} | |
| 3499 | +},Mz=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0,Hs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Eb.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:null,hasUnit:!1,unitDefaultValue:t.allowDescription?"%":"px",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Eb.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Eb.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},xz=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{ | |
| 3500 | +color:(0,Hs.qD)(t?.priceColor),...(0,Zt.qD)(t?.priceAlignment,"text-align",e),...(0,U.qD)(i,e,o),...(0,Mc.qD)(t?.priceTextStroke,e),...(0,fc.qD)(t?.priceTextShadow)}},kz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function vz(t){const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:gz.UU,attributes:e,children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)(D.RichText.Content,{value:e.title, | |
| 3501 | +tagName:s,className:"ablocks-price-menu-item-details-title"}),"near title"===p?(0,I.jsx)(kz,{allowDivider:n,dividerType:m}):null,"right"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]}),"under title"===p?(0,I.jsx)(kz,{allowDivider:n,dividerType:m}):null,a&&(0,I.jsx)(D.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des"}),"under des"===p?(0,I.jsx)(kz,{allowDivider:n,dividerType:m}):null,"bottom"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]})]})})})}vz.propTypes={};const _z={UU:"ablocks/price-menu-item",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{ | |
| 3502 | +type:"string",source:"html",selector:".ablocks-price-menu-item-details-des",default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html",selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px", | |
| 3503 | +lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px", | |
| 3504 | +letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px", | |
| 3505 | +letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string", | |
| 3461 | 3506 | default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox" |
| 3462 | -},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"stacked"},iconShape:{type:"string",default:"square"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", | |
| 3463 | -rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"40"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"40",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0}, | |
| 3464 | -iconImageWidth:{type:"number",default:0},elementTextTypographyGlobal:{type:"string",default:""},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},titleAlignment:{ | |
| 3465 | -type:"object",default:{value:"",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},width:{type:"object",default:{value:null,valueTablet:null,valueMobile:null}},weight:{type:"number",default:null},size:{type:"number",default:null},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"", | |
| 3466 | -bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"", | |
| 3467 | -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:"", | |
| 3468 | -leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"", | |
| 3469 | -imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"", | |
| 3470 | -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", | |
| 3471 | -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:"", | |
| 3472 | -scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 3473 | -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"}}}},Kw=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0, | |
| 3474 | -L.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,L.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function Jw(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,allowIcon:s,allowDescription:b,allowDivider:c,titleTag:d,description:u,descriptionTag:p,price:m,placePrice:h,priceTag:g,placeDivider:f,dividerPatternUrl:y,dividerType:T,size:H,color:M,weight:x}=e,k=at();(0,a.useEffect)(()=>{i({device:k})},[k]);const v=(0,r.useSelect)(t=>{const{getBlockParents:e}=t("core/block-editor"),i=e(o)[0];return t("core/block-editor").getBlockAttributes(i)},[o]);return(0,a.useEffect)(()=>{y&&""===M&&i({color:v.color}),"mask-style"===T?y&&null===H&&i({size:v.size}):y&&null===x&&i({weight:v.weight})},[y]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{}),(0,L.jsx)(K_,{blockId:n,name:Zw.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0, | |
| 3475 | -L.jsxs)("div",{className:"ablocks-price-menu-item",children:[s&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,L.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,L.jsx)(Yc,{tagName:d,identifier:"title",value:e.title,withoutInteractiveFormatting:!0,placeholder:e.title,className:"ablocks-price-menu-item-details-title",onChange:t=>i({title:t})}),"near title"===f?(0,L.jsx)(Kw,{allowDivider:c,dividerType:T}):null,"right"===h?(0,L.jsx)(Yc,{tagName:g,identifier:"price",value:e.price,withoutInteractiveFormatting:!0,placeholder:e.price,className:"ablocks-price-menu-item-price",onChange:t=>i({price:t})}):null]}),"under title"===f?(0,L.jsx)(Kw,{allowDivider:c,dividerType:T}):null,b&&(0,L.jsx)(Yc,{tagName:p,identifier:"description",value:e.description,withoutInteractiveFormatting:!0,placeholder:e.description,className:"ablocks-price-menu-item-details-des",onChange:t=>i({description:t})}),"under des"===f?(0, | |
| 3476 | -L.jsx)(Kw,{allowDivider:c,dividerType:T}):null,"bottom"===h?(0,L.jsx)(Yc,{tagName:g,identifier:"price",value:e.price,withoutInteractiveFormatting:!0,placeholder:e.price,className:"ablocks-price-menu-item-price",onChange:t=>i({price:t})}):null]})]})})]})}Jw.propTypes={};const Qw=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,gs.qD)(t?.titleColor),...(0,Gt.qD)(t?.titleAlignment,"text-align",e),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.titleTextStroke,e),...(0,pc.qD)(t?.titleTextShadow)}},tz=(t,e="")=>{const i=(0,M.Zy)(t.descriptionTypography,{weight:"400"}),o=t.descriptionTypographyGlobal?t.descriptionTypographyGlobal:"";return{color:(0,gs.qD)(t?.descriptionColor),...(0,Gt.qD)(t?.descriptionAlignment,"text-align",e),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.descriptionTextStroke,e),...(0,pc.qD)(t?.descriptionTextShadow)}},ez=(t,e="")=>{const i={};return t.color&&(i["--ablocks-divider-pattern-color"]=(0, | |
| 3477 | -gs.qD)(t?.color)),t.dividerPatternUrl&&("mask-style"===t.dividerType?i["--ablocks-divider-pattern-url"]=`url(${t.dividerPatternUrl})`:i["--ablocks-divider-pattern-style"]=t.dividerPatternUrl),{...i,...(0,Ob.qD)({attributeValue:t.width,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:null,hasUnit:!1,unitDefaultValue:t.allowDescription?"%":"px",device:e}),..."mask-style"===t.dividerType&&t.size?(0,Ob.qD)({attributeValue:t.size,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-height",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):t.weight?(0,Ob.qD)({attributeValue:t.weight,attributeObjectKey:"value",isResponsive:!1,property:"--ablocks-divider-pattern-weight",defaultValue:null,hasUnit:!1,unitDefaultValue:"px"}):void 0}},iz=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{weight:"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{color:(0,gs.qD)(t?.priceColor),...(0,Gt.qD)(t?.priceAlignment,"text-align",e),...(0, | |
| 3478 | -P.qD)(i,e,o),...(0,fc.qD)(t?.priceTextStroke,e),...(0,pc.qD)(t?.priceTextShadow)}},oz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,L.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,L.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function az(t){const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:Zw.UU,attributes:e,children:(0,L.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,L.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,L.jsx)(C.RichText.Content,{value:e.title,tagName:s,className:"ablocks-price-menu-item-details-title"}),"near title"===p?(0, | |
| 3479 | -L.jsx)(oz,{allowDivider:n,dividerType:m}):null,"right"===d?(0,L.jsx)(C.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]}),"under title"===p?(0,L.jsx)(oz,{allowDivider:n,dividerType:m}):null,a&&(0,L.jsx)(C.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des"}),"under des"===p?(0,L.jsx)(oz,{allowDivider:n,dividerType:m}):null,"bottom"===d?(0,L.jsx)(C.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]})]})})})}az.propTypes={};const lz={UU:"ablocks/price-menu-item",uK:{block_id:{type:"string",default:""},device:{type:"string",default:""},allowIcon:{type:"boolean",default:!0},allowDescription:{type:"boolean",default:!0},allowDivider:{type:"boolean",default:!0},title:{type:"string",default:"Sushi Roll..."},titleTag:{type:"string",default:"p"},titleColor:{type:"string",default:""},description:{type:"string",source:"html",selector:".ablocks-price-menu-item-details-des", | |
| 3480 | -default:"Lorem ipsum dolor sit amet consectetur adipiscing, elit praesent. Sed do eiusmod tempor incididunt aliqua."},descriptionTag:{type:"string",default:"p"},descriptionColor:{type:"string",default:""},placeDivider:{type:"string",default:"near title"},dividerPatternUrl:{type:"string",default:""},dividerType:{type:"string",default:""},color:{type:"string",default:""},price:{type:"string",source:"html",selector:".ablocks-price-menu-item-price",default:"$15.00"},placePrice:{type:"string",default:"right"},priceTag:{type:"string",default:"p"},priceColor:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px", | |
| 3481 | -lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px", | |
| 3482 | -letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},descriptionTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},descriptionTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},priceTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 3483 | -wordSpacingUnitMobile:"px"}},priceTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},priceTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},iconSvgPath:{type:"string", | |
| 3484 | -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" | |
| 3485 | 3507 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"stacked"},iconShape:{type:"string",default:"square"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"40"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"40",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""} |
| 3486 | 3508 | },iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},elementTextTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},elementTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px", |
| 3487 | 3509 | strokeWidthUnitMobile:"px",stroke:""}},alignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},titleAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},descriptionAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},priceAlignment:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},itemsDirection:{type:"object",default:{value:"row",valueTablet:"",valueMobile:""}},width:{type:"object",default:{value:null,valueTablet:null,valueMobile:null}},weight:{type:"number",default:null},size:{type:"number",default:null},gap:{type:"object",default:{value:10,valueTablet:1,valueMobile:3,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"", |
| 3488 | 3510 | leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"", |
| @@ -3491,36 +3513,37 @@ | ||
| 3491 | 3513 | imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"", |
| 3492 | 3514 | imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px", |
| 3493 | 3515 | offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px", |
| 3494 | 3516 | scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0", |
| 3495 | -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:""}}},nz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,L.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,L.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function sz(t){ | |
| 3496 | -const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:lz.UU,attributes:e,children:(0,L.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,L.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,L.jsx)(C.RichText.Content,{value:e.title,tagName:s,className:"ablocks-price-menu-item-details-title"}),"near title"===p?(0,L.jsx)(nz,{allowDivider:n,dividerType:m}):null,"right"===d?(0,L.jsx)(C.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]}),"under title"===p?(0,L.jsx)(nz,{allowDivider:n,dividerType:m}):null,a&&(0,L.jsx)(C.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des" | |
| 3497 | -}),"under des"===p?(0,L.jsx)(nz,{allowDivider:n,dividerType:m}):null,"bottom"===d?(0,L.jsx)(C.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]})]})})})}function rz(t){const{attributes:e,setAttributes:i}=t,{rowOddColor:o,rowEvenColor:a,rowOddColorH:n,rowEvenColorH:s,tableCreated:r,bodyBg:b,bodyBgH:c,headerColor:d,headerColorH:u,footerColor:p,footerColorH:m,isHeader:h,isFooter:g,borderCollapse:f}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:r?(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Table setting","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ut,{label:(0,z.__)("Cell Border Types","ablocks"),options:[{label:(0,z.__)("Collapse","ablocks"),value:"collapse"},{label:(0,z.__)("Separate","ablocks"),value:"separate"}],attributeName:"borderCollapse",attributeValue:f, | |
| 3498 | -setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i,hasBorderRadius:"separate"===f})]})})}),h?(0,L.jsx)(D,{title:(0,z.__)("Header Setting","ablocks"),initialOpen:!0,children:(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"headerColor",attributeValue:d,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isGradient:!0,attributeName:"headerColorH",attributeValue:u,setAttributes:i})})})}):null,(0,L.jsx)(D,{title:(0,z.__)("Body setting","ablocks"),initialOpen:!0,children:(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"bodyBg",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 3499 | -z.__)("Row odd Background","ablocks"),isGradient:!0,attributeName:"rowOddColor",attributeValue:o,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Row Even Background","ablocks"),isGradient:!0,attributeName:"rowEvenColor",attributeValue:a,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isGradient:!0,attributeName:"bodyBgH",attributeValue:c,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Row Odd Background Hover","ablocks"),isGradient:!0,attributeName:"rowOddColorH",attributeValue:n,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Row Even Background Hover","ablocks"),isGradient:!0,attributeName:"rowEvenColorH",attributeValue:s,setAttributes:i})]})})}),g?(0,L.jsx)(D,{title:(0,z.__)("Footer Setting","ablocks"),initialOpen:!0,children:(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"footerColor",attributeValue:p,setAttributes:i})}), | |
| 3500 | -hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color Hover","ablocks"),isGradient:!0,attributeName:"footerColorH",attributeValue:m,setAttributes:i})})})}):null]}):null})})}sz.propTypes={},(0,M.xV)(Zw.UU,Zw.$t[0])&&(0,o.registerBlockType)(Zw.UU,{attributes:Zw.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")), | |
| 3501 | -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",Qw(i),Qw(i,"Tablet"),Qw(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",tz(i),tz(i,"Tablet"),tz(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),ez(i),ez(i,"Tablet"),ez(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",iz(i),iz(i,"Tablet"),iz(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Gw,{...t}),(0,L.jsx)(Jw,{...t})] | |
| 3502 | -})},save:az,deprecated:[{attributes:lz.uK,save:sz}]}),rz.propTypes={},rz.defaultProps={};const bz={UU:"ablocks/table",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""},headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"", | |
| 3503 | -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:"", | |
| 3504 | -unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"", | |
| 3505 | -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:"",leftWidthH:"", | |
| 3506 | -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:"", | |
| 3507 | -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:"", | |
| 3508 | -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:"", | |
| 3509 | -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:"", | |
| 3510 | -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:"", | |
| 3511 | -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:"", | |
| 3512 | -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"}}}},cz=({insertButtonRow:t,insertTopRow:e,addRightCell:i,insertLeftCell:o})=>(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.DropdownMenu,{icon:"editor-table",label:(0, | |
| 3513 | -z.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:a})=>(0,L.jsxs)("div",{className:"ablocks-table-dropdown-toolbar-menu",children:[(0,L.jsx)(A.ToolbarButton,{onClick:()=>{e(),a()},children:(0,z.__)("Add Top Row","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{t(),a()},children:(0,z.__)("Insert Bottom Row","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{o(),a()},children:(0,z.__)("Insert Left Column","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{i(),a()},children:(0,z.__)("Add Right Column","ablocks")})]})})}),dz=(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,L.jsx)("path",{ | |
| 3517 | +yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}},Rz=({allowDivider:t,dividerType:e})=>{if(t)return"mask-style"===e?(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-mask "}):(0,I.jsx)("div",{className:" ablocks-divider ablocks-price-menu-divider__pattern-css "})};function Sz(t){ | |
| 3518 | +const{attributes:e}=t,{block_id:i,allowIcon:o,allowDescription:a,allowDivider:n,titleTag:s,description:r,descriptionTag:b,price:c,placePrice:d,priceTag:u,placeDivider:p,dividerType:m}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:_z.UU,attributes:e,children:(0,I.jsxs)("div",{className:"ablocks-price-menu-item",children:[o&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details",children:[(0,I.jsxs)("div",{className:"ablocks-price-menu-item-details-brief",children:[(0,I.jsx)(D.RichText.Content,{value:e.title,tagName:s,className:"ablocks-price-menu-item-details-title"}),"near title"===p?(0,I.jsx)(Rz,{allowDivider:n,dividerType:m}):null,"right"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]}),"under title"===p?(0,I.jsx)(Rz,{allowDivider:n,dividerType:m}):null,a&&(0,I.jsx)(D.RichText.Content,{value:r,tagName:b,className:"ablocks-price-menu-item-details-des" | |
| 3519 | +}),"under des"===p?(0,I.jsx)(Rz,{allowDivider:n,dividerType:m}):null,"bottom"===d?(0,I.jsx)(D.RichText.Content,{value:`${c}`,tagName:u,className:"ablocks-price-menu-item-price"}):null]})]})})})}function Wz(t){const{attributes:e,setAttributes:i}=t,{rowOddColor:o,rowEvenColor:a,rowOddColorH:n,rowEvenColorH:s,tableCreated:r,bodyBg:b,bodyBgH:c,headerColor:d,headerColorH:u,footerColor:p,footerColorH:m,isHeader:h,isFooter:g,borderCollapse:f}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:r?(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Table setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Cell Border Types","ablocks"),options:[{label:(0,L.__)("Collapse","ablocks"),value:"collapse"},{label:(0,L.__)("Separate","ablocks"),value:"separate"}],attributeName:"borderCollapse",attributeValue:f, | |
| 3520 | +setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i,hasBorderRadius:"separate"===f})]})})}),h?(0,I.jsx)(V,{title:(0,L.__)("Header Setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"headerColor",attributeValue:d,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isGradient:!0,attributeName:"headerColorH",attributeValue:u,setAttributes:i})})})}):null,(0,I.jsx)(V,{title:(0,L.__)("Body setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"bodyBg",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0, | |
| 3521 | +L.__)("Row odd Background","ablocks"),isGradient:!0,attributeName:"rowOddColor",attributeValue:o,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Row Even Background","ablocks"),isGradient:!0,attributeName:"rowEvenColor",attributeValue:a,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover","ablocks"),isGradient:!0,attributeName:"bodyBgH",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Row Odd Background Hover","ablocks"),isGradient:!0,attributeName:"rowOddColorH",attributeValue:n,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Row Even Background Hover","ablocks"),isGradient:!0,attributeName:"rowEvenColorH",attributeValue:s,setAttributes:i})]})})}),g?(0,I.jsx)(V,{title:(0,L.__)("Footer Setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"footerColor",attributeValue:p,setAttributes:i})}), | |
| 3522 | +hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color Hover","ablocks"),isGradient:!0,attributeName:"footerColorH",attributeValue:m,setAttributes:i})})})}):null]}):null})})}Sz.propTypes={},(0,M.xV)(gz.UU,gz.$t[0])&&(0,o.registerBlockType)(gz.UU,{attributes:gz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--price-menu"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0, | |
| 3523 | +Ud.J_)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),t.customDeviceMap(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-title",Tz(i),Tz(i,"Tablet"),Tz(i,"Mobile"),t.customDeviceMap(t=>Tz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-details-des",Hz(i),Hz(i,"Tablet"),Hz(i,"Mobile"),t.customDeviceMap(t=>Hz(i,t))), | |
| 3524 | +t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-divider__pattern-"+("mask-style"===i.dividerType?"mask":"css"),Mz(i),Mz(i,"Tablet"),Mz(i,"Mobile"),t.customDeviceMap(t=>Mz(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-price-menu-item-price",xz(i),xz(i,"Tablet"),xz(i,"Mobile"),t.customDeviceMap(t=>xz(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(hz,{...t}),(0,I.jsx)(yz,{...t})]})},save:vz,deprecated:[{attributes:_z.uK,save:Sz}]}),Wz.propTypes={},Wz.defaultProps={};const Pz={UU:"ablocks/table",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""}, | |
| 3525 | +headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"", | |
| 3526 | +leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 3527 | +isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 3528 | +commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"", | |
| 3529 | +bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"", | |
| 3530 | +backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 3531 | +imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1, | |
| 3532 | +rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"", | |
| 3533 | +offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0", | |
| 3534 | +xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{ | |
| 3535 | +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},Uz=({insertButtonRow:t,insertTopRow:e,addRightCell:i,insertLeftCell:o})=>(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.DropdownMenu,{icon:"editor-table",label:(0,L.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:a})=>(0,I.jsxs)("div",{className:"ablocks-table-dropdown-toolbar-menu",children:[(0,I.jsx)(N.ToolbarButton,{onClick:()=>{e(),a()},children:(0,L.__)("Add Top Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t(),a()},children:(0,L.__)("Insert Bottom Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{o(),a()},children:(0,L.__)("Insert Left Column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{i(),a()},children:(0,L.__)("Add Right Column","ablocks")})]})}) | |
| 3536 | +}),jz=(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,I.jsx)("path",{ | |
| 3514 | 3537 | d:"M21.1204 2.8799C20.7604 2.5199 20.4004 2.3999 19.9204 2.3999H4.08039C3.60039 2.3999 3.24039 2.5199 2.88039 2.8799C2.52039 3.2399 2.40039 3.5999 2.40039 4.0799V20.0399C2.40039 20.5199 2.52039 20.8799 2.88039 21.2399C3.24039 21.4799 3.60039 21.5999 4.08039 21.5999H20.0404C20.5204 21.5999 20.8804 21.4799 21.2404 21.1199C21.6004 20.7599 21.7204 20.3999 21.7204 19.9199V4.0799C21.6004 3.5999 21.4804 3.2399 21.1204 2.8799ZM8.40039 20.2799H4.08039C3.96039 20.2799 3.84039 20.2799 3.84039 20.1599C3.72039 20.1599 3.72039 20.0399 3.72039 19.9199V15.5999H8.40039V20.2799ZM8.40039 14.2799H3.72039V9.5999H8.40039V14.2799ZM20.2804 19.9199C20.2804 20.0399 20.2804 20.1599 20.1604 20.1599C20.1604 20.2799 20.0404 20.2799 19.9204 20.2799H9.60039V15.5999H20.2804V19.9199ZM20.2804 14.2799H9.60039V9.5999H20.2804V14.2799ZM3.72039 8.2799V4.0799C3.72039 3.9599 3.72039 3.8399 3.84039 3.8399C3.84039 3.7199 3.96039 3.7199 4.08039 3.7199H20.0404C20.1604 3.7199 20.2804 3.7199 20.2804 3.8399C20.4004 3.8399 20.4004 3.9599 20.4004 4.0799V8.2799H3.72039Z", |
| 3515 | -fill:"#13191B"}),(0,L.jsx)("path",{d:"M10.8004 11.7599C10.8004 11.6399 10.9204 11.5199 11.0404 11.5199H18.9604C19.0804 11.5199 19.2004 11.6399 19.2004 11.7599V12.4799C19.2004 12.5999 19.0804 12.7199 18.9604 12.7199H11.0404C10.9204 12.7199 10.8004 12.5999 10.8004 12.4799V11.7599Z",fill:"#13191B"}),(0,L.jsx)("path",{d:"M4.80039 11.7599C4.80039 11.6399 4.92039 11.5199 5.04039 11.5199H6.96039C7.08039 11.5199 7.20039 11.6399 7.20039 11.7599V12.4799C7.20039 12.5999 7.08039 12.7199 6.96039 12.7199H5.04039C4.92039 12.7199 4.80039 12.5999 4.80039 12.4799V11.7599Z",fill:"#13191B"}),(0,L.jsx)("path",{d:"M4.80039 17.7599C4.80039 17.6399 4.92039 17.5199 5.04039 17.5199H6.96039C7.08039 17.5199 7.20039 17.6399 7.20039 17.7599V18.4799C7.20039 18.5999 7.08039 18.7199 6.96039 18.7199H5.04039C4.92039 18.7199 4.80039 18.5999 4.80039 18.4799V17.7599Z",fill:"#13191B"}),(0,L.jsx)("path",{ | |
| 3516 | -d:"M10.8004 17.7599C10.8004 17.6399 10.9204 17.5199 11.0404 17.5199H18.9604C19.0804 17.5199 19.2004 17.6399 19.2004 17.7599V18.4799C19.2004 18.5999 19.0804 18.7199 18.9604 18.7199H11.0404C10.9204 18.7199 10.8004 18.5999 10.8004 18.4799V17.7599Z",fill:"#13191B"})]})}),uz=({numRows:t,setNumRows:e,numTds:i,setNumTds:o,includeHeader:a,setIncludeHeader:l,includeFooter:n,setIncludeFooter:s,createTable:r})=>(0,L.jsxs)("div",{className:"ablocks-table-input-form",children:[(0,L.jsxs)("div",{className:"ablocks-table-input-form--iconText",children:[(0,L.jsx)("span",{className:"ablocks-table-input-form--icon",children:dz}),(0,L.jsx)("span",{className:"ablocks-table-input-form--text",children:(0,z.__)("Table","ablocks")})]}),(0,L.jsx)("p",{className:"ablocks-table-input-form--title",children:(0,z.__)("Start creating a custom table for your content","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-table-input-from--input-container",children:[(0,L.jsxs)("div",{className:"ablocks-table-input", | |
| 3517 | -children:[(0,L.jsx)("label",{htmlFor:"numRows",children:(0,z.__)("Rows","ablocks")}),(0,L.jsx)("input",{id:"numRows",type:"number",value:t,min:1,max:30,onChange:t=>e(parseInt(t.target.value))})]}),(0,L.jsxs)("div",{className:"ablocks-table-input",children:[(0,L.jsx)("label",{htmlFor:"numTds",children:(0,z.__)("Columns","ablocks")}),(0,L.jsx)("input",{id:"numTds",type:"number",value:i,min:1,max:30,onChange:t=>o(parseInt(t.target.value))})]})]}),(0,L.jsxs)("div",{className:"ablocks-table-input-from--check-box",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("input",{id:"includeHeader",type:"checkbox",checked:a,onChange:t=>l(t.target.checked)}),(0,L.jsx)("label",{htmlFor:"includeHeader",children:(0,z.__)("Include Header","ablocks")})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("input",{id:"includeFooter",type:"checkbox",checked:n,onChange:t=>s(t.target.checked)}),(0,L.jsx)("label",{htmlFor:"includeFooter",children:(0,z.__)("Include Footer","ablocks")})]})]}),(0,L.jsx)("button",{onClick:r, | |
| 3518 | -className:"ablocks-table-input-form-button",children:(0,z.__)("Generate Table","ablocks")})]}),pz=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tableCreated:b}=e,[c,d]=(0,a.useState)(3),[u,p]=(0,a.useState)(3),[m,h]=(0,a.useState)(!0),[g,f]=(0,a.useState)(!1),y=(0,C.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-header","ablocks/table-body","ablocks/table-footer"],renderAppender:!1}),T=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,0,t.clientId)})},H=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,t.innerBlocks.length,t.clientId)})};return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(cz,{insertButtonRow:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n).find(t=>"ablocks/table-body"===t.name),e=t.innerBlocks[t.innerBlocks.length-1],i=e?e.innerBlocks.map(t=>(0, | |
| 3538 | +fill:"#13191B"}),(0,I.jsx)("path",{d:"M10.8004 11.7599C10.8004 11.6399 10.9204 11.5199 11.0404 11.5199H18.9604C19.0804 11.5199 19.2004 11.6399 19.2004 11.7599V12.4799C19.2004 12.5999 19.0804 12.7199 18.9604 12.7199H11.0404C10.9204 12.7199 10.8004 12.5999 10.8004 12.4799V11.7599Z",fill:"#13191B"}),(0,I.jsx)("path",{d:"M4.80039 11.7599C4.80039 11.6399 4.92039 11.5199 5.04039 11.5199H6.96039C7.08039 11.5199 7.20039 11.6399 7.20039 11.7599V12.4799C7.20039 12.5999 7.08039 12.7199 6.96039 12.7199H5.04039C4.92039 12.7199 4.80039 12.5999 4.80039 12.4799V11.7599Z",fill:"#13191B"}),(0,I.jsx)("path",{d:"M4.80039 17.7599C4.80039 17.6399 4.92039 17.5199 5.04039 17.5199H6.96039C7.08039 17.5199 7.20039 17.6399 7.20039 17.7599V18.4799C7.20039 18.5999 7.08039 18.7199 6.96039 18.7199H5.04039C4.92039 18.7199 4.80039 18.5999 4.80039 18.4799V17.7599Z",fill:"#13191B"}),(0,I.jsx)("path",{ | |
| 3539 | +d:"M10.8004 17.7599C10.8004 17.6399 10.9204 17.5199 11.0404 17.5199H18.9604C19.0804 17.5199 19.2004 17.6399 19.2004 17.7599V18.4799C19.2004 18.5999 19.0804 18.7199 18.9604 18.7199H11.0404C10.9204 18.7199 10.8004 18.5999 10.8004 18.4799V17.7599Z",fill:"#13191B"})]})}),wz=({numRows:t,setNumRows:e,numTds:i,setNumTds:o,includeHeader:a,setIncludeHeader:l,includeFooter:n,setIncludeFooter:s,createTable:r})=>(0,I.jsxs)("div",{className:"ablocks-table-input-form",children:[(0,I.jsxs)("div",{className:"ablocks-table-input-form--iconText",children:[(0,I.jsx)("span",{className:"ablocks-table-input-form--icon",children:jz}),(0,I.jsx)("span",{className:"ablocks-table-input-form--text",children:(0,L.__)("Table","ablocks")})]}),(0,I.jsx)("p",{className:"ablocks-table-input-form--title",children:(0,L.__)("Start creating a custom table for your content","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-table-input-from--input-container",children:[(0,I.jsxs)("div",{className:"ablocks-table-input", | |
| 3540 | +children:[(0,I.jsx)("label",{htmlFor:"numRows",children:(0,L.__)("Rows","ablocks")}),(0,I.jsx)("input",{id:"numRows",type:"number",value:t,min:1,max:30,onChange:t=>e(parseInt(t.target.value))})]}),(0,I.jsxs)("div",{className:"ablocks-table-input",children:[(0,I.jsx)("label",{htmlFor:"numTds",children:(0,L.__)("Columns","ablocks")}),(0,I.jsx)("input",{id:"numTds",type:"number",value:i,min:1,max:30,onChange:t=>o(parseInt(t.target.value))})]})]}),(0,I.jsxs)("div",{className:"ablocks-table-input-from--check-box",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("input",{id:"includeHeader",type:"checkbox",checked:a,onChange:t=>l(t.target.checked)}),(0,I.jsx)("label",{htmlFor:"includeHeader",children:(0,L.__)("Include Header","ablocks")})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("input",{id:"includeFooter",type:"checkbox",checked:n,onChange:t=>s(t.target.checked)}),(0,I.jsx)("label",{htmlFor:"includeFooter",children:(0,L.__)("Include Footer","ablocks")})]})]}),(0,I.jsx)("button",{onClick:r, | |
| 3541 | +className:"ablocks-table-input-form-button",children:(0,L.__)("Generate Table","ablocks")})]}),zz=t=>{const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:s,tableCreated:b}=e,[c,d]=(0,a.useState)(3),[u,p]=(0,a.useState)(3),[m,h]=(0,a.useState)(!0),[g,f]=(0,a.useState)(!1),y=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-header","ablocks/table-body","ablocks/table-footer"],renderAppender:!1}),T=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,0,t.clientId)})},H=(t,e=!1)=>{t.forEach(t=>{const i=(0,o.createBlock)("ablocks/table-cell",{tagName:e?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(i,t.innerBlocks.length,t.clientId)})};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Uz,{insertButtonRow:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n).find(t=>"ablocks/table-body"===t.name),e=t.innerBlocks[t.innerBlocks.length-1],i=e?e.innerBlocks.map(t=>(0, | |
| 3519 | 3542 | o.createBlock)(t.name,t.attributes)):[],a=(0,o.createBlock)("ablocks/table-row",{},i);(0,r.dispatch)("core/block-editor").insertBlock(a,t.innerBlocks.length,t.clientId)},addRightCell:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlocksByClientId(t)[0];if(!e)return;const i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);H(t,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);H(t,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);H(t,!1)}},insertTopRow:()=>{const t=(0,r.select)("core/block-editor").getBlocks(n).find(t=>"ablocks/table-body"===t.name),e=t.innerBlocks[0],i=e?e.innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)):[],a=(0,o.createBlock)("ablocks/table-row",{},i);(0, |
| 3520 | -r.dispatch)("core/block-editor").insertBlock(a,0,t.clientId)},insertLeftCell:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlocksByClientId(t)[0];if(!e)return;const i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}}}),(0,L.jsx)(Nb.A,{blockId:s,name:bz.UU,attributes:e,children:b?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("table",{...y})}):(0,L.jsx)(uz,{numRows:c,setNumRows:d,numTds:u,setNumTds:p,includeHeader:m,setIncludeHeader:h,includeFooter:g,setIncludeFooter:f,createTable:()=>{const t=[];if(m){i({isHeader:!0});const e=[];for(let t=0;t<u;t++){const t=(0, | |
| 3521 | -o.createBlock)("ablocks/table-cell",{tagName:"th"});e.push(t)}const a=(0,o.createBlock)("ablocks/table-header",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}const e=[];for(let t=0;t<c;t++){const t=[];for(let e=0;e<u;e++){const e=(0,o.createBlock)("ablocks/table-cell");t.push(e)}const i=(0,o.createBlock)("ablocks/table-row",{},t);e.push(i)}const a=(0,o.createBlock)("ablocks/table-body",{},e);if(t.push(a),g){i({isFooter:!0});const e=[];for(let t=0;t<u;t++){const t=(0,o.createBlock)("ablocks/table-cell");e.push(t)}const a=(0,o.createBlock)("ablocks/table-footer",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}(0,r.dispatch)("core/block-editor").replaceInnerBlocks(n,t,!1),i({tableCreated:!0})}})})]})},mz=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{...(0,y.qD)(i,e)}},hz=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function gz(t){const{attributes:e}=t,{block_id:i}=e;return(0, | |
| 3522 | -L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:bz.UU,attributes:e,children:(0,L.jsx)("table",{children:(0,L.jsx)(C.InnerBlocks.Content,{})})})})}gz.propTypes={},gz.defaultProps={};const fz={UU:"ablocks/table",uK:{block_id:{type:"string"},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""},headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 3543 | +r.dispatch)("core/block-editor").insertBlock(a,0,t.clientId)},insertLeftCell:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlocksByClientId(t)[0];if(!e)return;const i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);T(t,!1)}}}),(0,I.jsx)(Yb.A,{blockId:s,name:Pz.UU,attributes:e,children:b?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("table",{...y})}):(0,I.jsx)(wz,{numRows:c,setNumRows:d,numTds:u,setNumTds:p,includeHeader:m,setIncludeHeader:h,includeFooter:g,setIncludeFooter:f,createTable:()=>{const t=[];if(m){i({isHeader:!0});const e=[];for(let t=0;t<u;t++){const t=(0, | |
| 3544 | +o.createBlock)("ablocks/table-cell",{tagName:"th"});e.push(t)}const a=(0,o.createBlock)("ablocks/table-header",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}const e=[];for(let t=0;t<c;t++){const t=[];for(let e=0;e<u;e++){const e=(0,o.createBlock)("ablocks/table-cell");t.push(e)}const i=(0,o.createBlock)("ablocks/table-row",{},t);e.push(i)}const a=(0,o.createBlock)("ablocks/table-body",{},e);if(t.push(a),g){i({isFooter:!0});const e=[];for(let t=0;t<u;t++){const t=(0,o.createBlock)("ablocks/table-cell");e.push(t)}const a=(0,o.createBlock)("ablocks/table-footer",{},[(0,o.createBlock)("ablocks/table-row",{},e)]);t.push(a)}(0,r.dispatch)("core/block-editor").replaceInnerBlocks(n,t,!1),i({tableCreated:!0})}})})]})},Cz=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{...(0,y.qD)(i,e)}},Az=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function Lz(t){const{attributes:e}=t,{block_id:i}=e;return(0, | |
| 3545 | +I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:Pz.UU,attributes:e,children:(0,I.jsx)("table",{children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}Lz.propTypes={},Lz.defaultProps={};const Dz={UU:"ablocks/table",uK:{block_id:{type:"string"},tableCreated:{type:"boolean",default:!1},isHeader:{type:"boolean",default:""},isFooter:{type:"boolean",default:""},rowOddColor:{type:"string",default:""},rowOddColorH:{type:"string",default:""},rowEvenColor:{type:"string",default:""},rowEvenColorH:{type:"string",default:""},bodyBg:{type:"string"},bodyBgH:{type:"string"},headerColor:{type:"string",default:""},headerColorH:{type:"string",default:""},footerColor:{type:"string",default:""},footerColorH:{type:"string",default:""},borderCollapse:{type:"string",default:"collapse"},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 3523 | 3546 | 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:"", |
| 3524 | 3547 | bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px", |
| 3525 | 3548 | commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"", |
| 3526 | 3549 | 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:"", |
| @@ -3528,33 +3551,33 @@ | ||
| 3528 | 3551 | imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"", |
| 3529 | 3552 | imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px", |
| 3530 | 3553 | offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"", |
| 3531 | 3554 | 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:"", |
| 3532 | -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 yz(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:fz.UU,attributes:e,children:(0,L.jsx)("table",{children:(0,L.jsx)(C.InnerBlocks.Content,{})})})})}function Tz(t){const{attributes:e,setAttributes:i}=t,{cellColor:o,cellColorH:a,colSpan:n,rowSpan:s,textAlignment:r}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0, | |
| 3533 | -L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Table Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",hasAdvance:!1,children:(0,L.jsx)(D,{title:(0,z.__)("Cell setting","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"textAlignment",attributeValue:r,setAttributes:i,isResponsive:!1,options:[{label:(0,z.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,z.__)("center","ablocks"),value:"center",icon:"wrap"},{label:(0,z.__)("right","ablocks"),value:"right",icon:"arrow-right" | |
| 3534 | -}],isInline:!1}),(0,L.jsx)(js,{min:1,label:(0,z.__)("Row Span","ablocks"),attributeName:"rowSpan",attributeValue:s,setAttributes:i}),(0,L.jsx)(js,{min:1,label:(0,z.__)("Cols Span","ablocks"),attributeName:"colSpan",attributeValue:n,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Cell color","ablocks"),isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColor",attributeValue:o,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColorH",attributeValue:a,setAttributes:i})})})]})})})})]})})}yz.propTypes={},yz.defaultProps={},(0,M.xV)(bz.UU)&&(0,o.registerBlockType)(bz.UU,{title:"Table",attributes:bz.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){ | |
| 3535 | -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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}.ablocks-block--table table",(t=>{const{borderCollapse:e}=t,i=[];return"collapse"===e?i["border-collapse"]="collapse":"separate"===e&&(i["border-collapse"]="separate"),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table table, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell , {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell",mz(i),mz(i,"Tablet"),mz(i,"Mobile")), | |
| 3536 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--table table:hover, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell:hover, {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell:hover",hz(i),hz(i,"Tablet"),hz(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd",(t=>({background:(0,gs.qD)(t?.rowOddColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd:hover",(t=>({background:(0,gs.qD)(t?.rowOddColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even",(t=>({background:(0,gs.qD)(t?.rowEvenColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even:hover",(t=>({background:(0,gs.qD)(t?.rowEvenColorH)}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header",(t=>({background:(0,gs.qD)(t?.headerColor)}))(i)), | |
| 3537 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header:hover",(t=>({background:(0,gs.qD)(t?.headerColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body",(t=>{const{bodyBg:e}=t,i={};return e&&(i.background=`${(0,gs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body:hover",(t=>{const{bodyBgH:e}=t,i={};return e&&(i.background=`${(0,gs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer",(t=>{const{footerColor:e}=t,i={};return e&&(i.background=`${(0,gs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer:hover",(t=>{const{footerColorH:e}=t,i={};return e&&(i.background=`${(0,gs.qD)(e)} !important`),i})(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(rz,{...t}),(0,L.jsx)(pz,{...t})]})}, | |
| 3538 | -save:gz,deprecated:[{attributes:fz.uK,save:yz}]}),Tz.propTypes={},Tz.defaultProps={};const Hz={UU:"ablocks/table-cell",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},tagName:{type:"string",default:"td"},cellColor:{type:"string",default:""},cellColorH:{type:"string",default:""},rowSpan:{type:"string",default:"1"},colSpan:{type:"string",default:"1"},textAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}}}},Mz=({addAfterRow:t,addBeforeRow:e,addColumnAfter:i,addColumnBefore:o,deleteColumn:a,deleteRow:l,rowEdit:n,handleDeleteCel:s})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.ToolbarButton,{icon:"trash",label:(0,z.__)("Delete","ablocks"),onClick:s,className:"ablocks-table-toolbar-cell-delete"})}),(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.DropdownMenu,{icon:"editor-table",label:(0,z.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:s})=>(0,L.jsxs)("div",{ | |
| 3539 | -className:"ablocks-table-dropdown-toolbar-menu",children:[(0,L.jsx)(A.ToolbarButton,{onClick:()=>{t(),s()},children:(0,z.__)("Add after row","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{e(),s()},children:(0,z.__)("Add Before row","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{i(),s()},children:(0,z.__)("Add after column","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{o(),s()},children:(0,z.__)("Add Before column","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{a(),s()},children:(0,z.__)("Delete column","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{l(),s()},children:(0,z.__)("Deleted Row","ablocks")}),(0,L.jsx)(A.ToolbarButton,{onClick:()=>{n(),s()},children:(0,z.__)("Row Edit","ablocks")})]})})})]});function xz(t){const{attributes:e,clientId:i}=t,{tagName:a,block_id:n,rowSpan:s,colSpan:b}=e,{innerBlocksProps:c,children:d}=(0,C.useInnerBlocksProps)({className:"ablocks-table-cell"},{template:[["core/paragraph",{}]],templateLock:!1,allowedBlocks:(0, | |
| 3540 | -o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)}),u=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e+1,t.clientId)})},p=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e,t.clientId)})},m=(t,e)=>{t.forEach(t=>{const i=t.innerBlocks[e];i&&(0,r.dispatch)("core/block-editor").removeBlock(i.clientId,!1)})},h=(0,r.useSelect)(t=>t("core/block-editor").getBlockRootClientId(i),[i]);return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Mz,{addAfterRow:()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockRootClientId(t),a=(0,r.select)("core/block-editor").getBlock(e),l=a.innerBlocks.findIndex(e=>e.clientId===t),n=a.innerBlocks[l].innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)),s=(0,o.createBlock)("ablocks/table-row",{},n);(0, | |
| 3555 | +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function Nz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:Dz.UU,attributes:e,children:(0,I.jsx)("table",{children:(0,I.jsx)(D.InnerBlocks.Content,{})})})})}function Iz(t){const{attributes:e,setAttributes:i}=t,{cellColor:o,cellColorH:a,colSpan:n,rowSpan:s,textAlignment:r}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0, | |
| 3556 | +I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",hasAdvance:!1,children:(0,I.jsx)(V,{title:(0,L.__)("Cell setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"textAlignment",attributeValue:r,setAttributes:i,isResponsive:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"arrow-right" | |
| 3557 | +}],isInline:!1}),(0,I.jsx)(As,{min:1,label:(0,L.__)("Row Span","ablocks"),attributeName:"rowSpan",attributeValue:s,setAttributes:i}),(0,I.jsx)(As,{min:1,label:(0,L.__)("Cols Span","ablocks"),attributeName:"colSpan",attributeValue:n,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Cell color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColor",attributeValue:o,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"cellColorH",attributeValue:a,setAttributes:i})})})]})})})})]})})}Nz.propTypes={},Nz.defaultProps={},(0,M.xV)(Pz.UU)&&(0,o.registerBlockType)(Pz.UU,{title:(0,L.__)("Table","ablocks"),attributes:Pz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){ | |
| 3558 | +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--table table",(t=>{const{borderCollapse:e}=t,i=[];return"collapse"===e?i["border-collapse"]="collapse":"separate"===e&&(i["border-collapse"]="separate"),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table table, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell , {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell",Cz(i),Cz(i,"Tablet"),Cz(i,"Mobile"),e(t=>Cz(i,t))), | |
| 3559 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--table table:hover, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell:hover, {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell:hover",Az(i),Az(i,"Tablet"),Az(i,"Mobile"),e(t=>Az(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd",(t=>({background:(0,Hs.qD)(t?.rowOddColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd:hover",(t=>({background:(0,Hs.qD)(t?.rowOddColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even",(t=>({background:(0,Hs.qD)(t?.rowEvenColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--even:hover",(t=>({background:(0,Hs.qD)(t?.rowEvenColorH)}))(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header",(t=>({background:(0,Hs.qD)(t?.headerColor)}))(i)), | |
| 3560 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-header:hover",(t=>({background:(0,Hs.qD)(t?.headerColorH)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body",(t=>{const{bodyBg:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-container .ablocks-block--table-body:hover",(t=>{const{bodyBgH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer",(t=>{const{footerColor:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--table .ablocks-block--table-footer:hover",(t=>{const{footerColorH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Wz,{...t}),(0,I.jsx)(zz,{...t})]})},save:Lz, | |
| 3561 | +deprecated:[{attributes:Dz.uK,save:Nz}]}),Iz.propTypes={},Iz.defaultProps={};const Vz={UU:"ablocks/table-cell",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},tagName:{type:"string",default:"td"},cellColor:{type:"string",default:""},cellColorH:{type:"string",default:""},rowSpan:{type:"string",default:"1"},colSpan:{type:"string",default:"1"},textAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}}}},Oz=({addAfterRow:t,addBeforeRow:e,addColumnAfter:i,addColumnBefore:o,deleteColumn:a,deleteRow:l,rowEdit:n,handleDeleteCel:s})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.ToolbarButton,{icon:"trash",label:(0,L.__)("Delete","ablocks"),onClick:s,className:"ablocks-table-toolbar-cell-delete"})}),(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(N.DropdownMenu,{icon:"editor-table",label:(0,L.__)("Edit Table","ablocks"),className:"ablocks-table-dropdown-toolbar",children:({onClose:s})=>(0,I.jsxs)("div",{ | |
| 3562 | +className:"ablocks-table-dropdown-toolbar-menu",children:[(0,I.jsx)(N.ToolbarButton,{onClick:()=>{t(),s()},children:(0,L.__)("Add after row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{e(),s()},children:(0,L.__)("Add Before row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{i(),s()},children:(0,L.__)("Add after column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{o(),s()},children:(0,L.__)("Add Before column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{a(),s()},children:(0,L.__)("Delete column","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{l(),s()},children:(0,L.__)("Deleted Row","ablocks")}),(0,I.jsx)(N.ToolbarButton,{onClick:()=>{n(),s()},children:(0,L.__)("Row Edit","ablocks")})]})})})]});function Yz(t){const{attributes:e,clientId:i}=t,{tagName:a,block_id:n,rowSpan:s,colSpan:b}=e,{innerBlocksProps:c,children:d}=(0,D.useInnerBlocksProps)({className:"ablocks-table-cell"},{template:[["core/paragraph",{}]],templateLock:!1,allowedBlocks:(0, | |
| 3563 | +o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)}),u=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e+1,t.clientId)})},p=(t,e,i=!1)=>{t.forEach(t=>{const a=(0,o.createBlock)("ablocks/table-cell",{tagName:i?"th":"td"});(0,r.dispatch)("core/block-editor").insertBlock(a,e,t.clientId)})},m=(t,e)=>{t.forEach(t=>{const i=t.innerBlocks[e];i&&(0,r.dispatch)("core/block-editor").removeBlock(i.clientId,!1)})},h=(0,r.useSelect)(t=>t("core/block-editor").getBlockRootClientId(i),[i]);return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(Oz,{addAfterRow:()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockRootClientId(t),a=(0,r.select)("core/block-editor").getBlock(e),l=a.innerBlocks.findIndex(e=>e.clientId===t),n=a.innerBlocks[l].innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)),s=(0,o.createBlock)("ablocks/table-row",{},n);(0, | |
| 3541 | 3564 | r.dispatch)("core/block-editor").insertBlock(s,l+1,e)},addBeforeRow:()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockRootClientId(t),a=(0,r.select)("core/block-editor").getBlock(e),l=a.innerBlocks.findIndex(e=>e.clientId===t),n=a.innerBlocks[l].innerBlocks.map(t=>(0,o.createBlock)(t.name,t.attributes)),s=(0,o.createBlock)("ablocks/table-row",{},n);(0,r.dispatch)("core/block-editor").insertBlock(s,l,e)},addColumnAfter:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>t&&"ablocks/table"===t.name),i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name),l=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0, |
| 3542 | 3565 | r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);u(t,n,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);u(t,n,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);u(t,n,!0)}},addColumnBefore:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>t&&"ablocks/table"===t.name),i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name),l=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0, |
| 3543 | 3566 | r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);p(t,n,!0)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);p(t,n,!1)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);p(t,n,!0)}},deleteColumn:()=>{const t=(0,r.select)("core/block-editor").getSelectedBlockClientId(),e=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0,r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>t&&"ablocks/table"===t.name),i=e.innerBlocks.find(t=>"ablocks/table-header"===t.name),o=e.innerBlocks.find(t=>"ablocks/table-body"===t.name),a=e.innerBlocks.find(t=>"ablocks/table-footer"===t.name),l=(0,r.select)("core/block-editor").getBlockParents(t,!0).map(t=>(0, |
| 3544 | -r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}},deleteRow:()=>{(0,r.dispatch)("core/block-editor").removeBlock(h)},rowEdit:()=>{h&&((0,r.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block"),(0,r.dispatch)("core/block-editor").selectBlock(h))},handleDeleteCel:()=>{(0,r.dispatch)("core/block-editor").removeBlock(i)}}),(0,L.jsxs)(K_,{blockId:n,name:Hz.UU,attributes:e,tagName:a,blockProps:{rowSpan:s,colSpan:b},className:"ablocks-table-cell ablocks-table-td",...c,children:[(0,L.jsx)("button",{className:"ablocks-table-icon-td ablocks-icon ablocks-icon--edit",onClick:()=>{(0,r.dispatch)("core/edit-post").openGeneralSidebar(),(0, | |
| 3545 | -r.dispatch)("core/block-editor").selectBlock(i)}}),d]})]})}function kz(t){const{attributes:e}=t,{block_id:i,rowSpan:o,colSpan:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:Hz.UU,attributes:e,tagName:"td",blockProps:{rowSpan:o,colSpan:a},children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}function vz(t){const{attributes:e,setAttributes:i}=t,{rowColorH:o,rowColor:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Table Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mb,{attributes:e, | |
| 3546 | -setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",hasAdvance:!1,children:(0,L.jsx)(D,{title:(0,z.__)("Row setting","ablocks"),initialOpen:!0,children:(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!0,attributeName:"rowColor",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background Hover Color","ablocks"),isGradient:!0,attributeName:"rowColorH",attributeValue:o,setAttributes:i})})})})})]})})}xz.propTypes={},xz.defaultProps={},kz.propTypes={},kz.defaultProps={},(0,M.xV)(Hz.UU,Hz.$t[0])&&(0,o.registerBlockType)(Hz.UU,{title:"table-cell",attributes:Hz.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l) | |
| 3547 | -;return t.addClassStyles("{{WRAPPER}}",(t=>{const{textAlignment:e}=t,i={};return e&&(i["text-align"]=e),{background:(0,gs.qD)(t?.cellColor),...i}})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>({background:(0,gs.qD)(t?.cellColorH)}))(i)),t.generateCSS()});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Tz,{...t}),(0,L.jsx)(xz,{...t})]})},save:kz}),vz.propTypes={},vz.defaultProps={};const _z={UU:"ablocks/table-row",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},rowColor:{type:"string",default:""},rowColorH:{type:"string",default:""}}},Rz=t=>{const{attributes:e,clientId:i}=t,{block_id:o}=e,[l,n]=(0,a.useState)(!1);(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockIndex(i,t);n(e%2==0)},[i]);const{children:s}=(0,C.useInnerBlocksProps)({className:"ablocks-table-row"},{template:[["ablocks/table-cell",{}]],allowedBlocks:["ablocks/table-cell"],renderAppender:!1}) | |
| 3548 | -;return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(K_,{blockId:o,name:_z.UU,attributes:e,tagName:"tr",className:"ablocks-block--table-row "+(l?"ablocks-table-row--even":"ablocks-table-row--odd"),children:s})})};function Sz(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:_z.UU,attributes:e,tagName:"tr",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}Sz.propTypes={},Sz.defaultProps={},(0,M.xV)(_z.UU,_z.$t[0])&&(0,o.registerBlockType)(_z.UU,{title:"table-row",attributes:_z.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}",(t=>{const{rowColor:e}=t,i={};return e&&(i.background=`${(0,gs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>{const{rowColorH:e}=t,i={} | |
| 3549 | -;return e&&(i.background=`${(0,gs.qD)(e)} !important`),i})(i)),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(vz,{...t}),(0,L.jsx)(Rz,{...t})]})},save:Sz});const Wz={UU:"ablocks/table-header",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function Uz(t){const{attributes:e}=t,{block_id:i}=e,o=(0,C.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row",{},[["ablocks/table-cell",{tagName:"th"}],["ablocks/table-cell",{tagName:"th"}]]]]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:i,name:Wz.UU,attributes:e,tagName:"thead",className:"ablocks-block--table-header",...o})})}function Pz(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title", | |
| 3550 | -children:(0,z.__)("Explore Table Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})}function jz(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:Wz.UU,attributes:e,tagName:"thead",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}Uz.propTypes={},Uz.defaultProps={},Pz.propTypes={},jz.propTypes={},jz.defaultProps={},(0,M.xV)(Wz.UU,Wz.$t[0])&&(0,o.registerBlockType)(Wz.UU,{title:"Table Head",attributes:Wz.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new j(i,l).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s | |
| 3551 | -}),e&&(0,L.jsx)(Pz,{...t}),(0,L.jsx)(Uz,{...t})]})},save:jz});const wz={UU:"ablocks/table-footer",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function zz(t){const{attributes:e}=t,{block_id:i}=e,o=(0,C.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-cell"],template:[["ablocks/table-row",{}]]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:i,name:wz.UU,attributes:e,className:"ablocks-block--table-footer",tagName:"tfoot",...o})})}function Cz(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Table Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0, | |
| 3552 | -L.jsx)(Sb,{clientId:t?.clientId})]})})})}function Az(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:wz.UU,attributes:e,tagName:"tfoot",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}zz.propTypes={},zz.defaultProps={},Cz.propTypes={},Az.propTypes={},Az.defaultProps={},(0,M.xV)(wz.UU,wz.$t[0])&&(0,o.registerBlockType)(wz.UU,{title:"Tablet Footer",attributes:wz.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new j(i,l).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Cz,{...t}),(0,L.jsx)(zz,{...t})]})},save:Az});const Lz={UU:"ablocks/table-body",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function Dz(t){const{attributes:e}=t,{block_id:i}=e,o=(0, | |
| 3553 | -C.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row"],["ablocks/table-row"]]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:i,name:Lz.UU,attributes:e,tagName:"tbody",...o})})}function Nz(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Table Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})}function Iz(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:Lz.UU,attributes:e,tagName:"tbody",children:(0,L.jsx)(C.InnerBlocks.Content,{})}) | |
| 3554 | -})}Dz.propTypes={},Dz.defaultProps={},Nz.propTypes={},Iz.propTypes={},Iz.defaultProps={},(0,M.xV)(Lz.UU,Lz.$t[0])&&(0,o.registerBlockType)(Lz.UU,{title:"Table Body",attributes:Lz.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new j(i,l).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Nz,{...t}),(0,L.jsx)(Dz,{...t})]})},save:Iz});var Vz=i(929);const Oz=[{label:(0,z.__)("Facebook","ablocks"),value:"Facebook"},{label:(0,z.__)("Twitter","ablocks"),value:"Twitter"},{label:(0,z.__)("LinkedIn","ablocks"),value:"LinkedIn"},{label:(0,z.__)("Pinterest","ablocks"),value:"Pinterest"},{label:(0,z.__)("Reddit","ablocks"),value:"Reddit"},{label:(0,z.__)("Telegram","ablocks"),value:"Telegram"},{label:(0,z.__)("WhatsApp","ablocks"),value:"WhatsApp"},{ | |
| 3555 | -label:(0,z.__)("Skype","ablocks"),value:"Skype"},{label:(0,z.__)("Tumblr","ablocks"),value:"Tumblr"},{label:(0,z.__)("Digg","ablocks"),value:"Digg"},{label:(0,z.__)("VK","ablocks"),value:"VK"},{label:(0,z.__)("Mix","ablocks"),value:"Mix"},{label:(0,z.__)("Pocket","ablocks"),value:"Pocket"},{label:(0,z.__)("Stumble","ablocks"),value:"Stumble"},{label:(0,z.__)("Gmail","ablocks"),value:"Gmail"},{label:(0,z.__)("Messenger","ablocks"),value:"Messenger"},{label:(0,z.__)("Flipboard","ablocks"),value:"Flipboard"},{label:(0,z.__)("Blogger","ablocks"),value:"Blogger"}],Yz=[{label:(0,z.__)("Icon & Text","ablocks"),value:"Icon & Text"},{label:(0,z.__)("Icon","ablocks"),value:"Icon"},{label:(0,z.__)("Text","ablocks"),value:"Text"}],Xz=[{label:(0,z.__)("Square","ablocks"),value:"Square"},{label:(0,z.__)("Rounded","ablocks"),value:"Rounded"},{label:(0,z.__)("Circle","ablocks"),value:"Circle"}],Bz=[{text:"Facebook",icon:{viewBox:"0 0 320 512", | |
| 3556 | -path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373"},{text:"Twitter",icon:{viewBox:"0 0 512 512", | |
| 3567 | +r.select)("core/block-editor").getBlocksByClientId(t)[0]).find(t=>"ablocks/table-row"===t.name),n=l.innerBlocks.findIndex(e=>e.clientId===t);if(i){const t=i.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(o){const t=o.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}if(a){const t=a.innerBlocks.filter(t=>"ablocks/table-row"===t.name);m(t,n)}},deleteRow:()=>{(0,r.dispatch)("core/block-editor").removeBlock(h)},rowEdit:()=>{h&&((0,r.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block"),(0,r.dispatch)("core/block-editor").selectBlock(h))},handleDeleteCel:()=>{(0,r.dispatch)("core/block-editor").removeBlock(i)}}),(0,I.jsxs)(sR,{blockId:n,name:Vz.UU,attributes:e,tagName:a,blockProps:{rowSpan:s,colSpan:b},className:"ablocks-table-cell ablocks-table-td",...c,children:[(0,I.jsx)("button",{className:"ablocks-table-icon-td ablocks-icon ablocks-icon--edit",onClick:()=>{(0,r.dispatch)("core/edit-post").openGeneralSidebar(),(0, | |
| 3568 | +r.dispatch)("core/block-editor").selectBlock(i)}}),d]})]})}function Xz(t){const{attributes:e}=t,{block_id:i,rowSpan:o,colSpan:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Vz.UU,attributes:e,tagName:"td",blockProps:{rowSpan:o,colSpan:a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}function Bz(t){const{attributes:e,setAttributes:i}=t,{rowColorH:o,rowColor:a}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e, | |
| 3569 | +setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-block/",hasAdvance:!1,children:(0,I.jsx)(V,{title:(0,L.__)("Row setting","ablocks"),initialOpen:!0,children:(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!0,attributeName:"rowColor",attributeValue:a,setAttributes:i})}),hover:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover Color","ablocks"),isGradient:!0,attributeName:"rowColorH",attributeValue:o,setAttributes:i})})})})})]})})}Yz.propTypes={},Yz.defaultProps={},Xz.propTypes={},Xz.defaultProps={},(0,M.xV)(Vz.UU,Vz.$t[0])&&(0,o.registerBlockType)(Vz.UU,{title:(0,L.__)("table-cell","ablocks"),attributes:Vz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l) | |
| 3570 | +;return t.addClassStyles("{{WRAPPER}}",(t=>{const{textAlignment:e}=t,i={};return e&&(i["text-align"]=e),{background:(0,Hs.qD)(t?.cellColor),...i}})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>({background:(0,Hs.qD)(t?.cellColorH)}))(i)),t.generateCSS()});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Iz,{...t}),(0,I.jsx)(Yz,{...t})]})},save:Xz}),Bz.propTypes={},Bz.defaultProps={};const Ez={UU:"ablocks/table-row",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""},rowColor:{type:"string",default:""},rowColorH:{type:"string",default:""}}},Fz=t=>{const{attributes:e,clientId:i}=t,{block_id:o}=e,[l,n]=(0,a.useState)(!1);(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockRootClientId(i),e=(0,r.select)("core/block-editor").getBlockIndex(i,t);n(e%2==0)},[i]);const{children:s}=(0,D.useInnerBlocksProps)({className:"ablocks-table-row"},{template:[["ablocks/table-cell",{}]],allowedBlocks:["ablocks/table-cell"],renderAppender:!1}) | |
| 3571 | +;return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(sR,{blockId:o,name:Ez.UU,attributes:e,tagName:"tr",className:"ablocks-block--table-row "+(l?"ablocks-table-row--even":"ablocks-table-row--odd"),children:s})})};function qz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Ez.UU,attributes:e,tagName:"tr",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}qz.propTypes={},qz.defaultProps={},(0,M.xV)(Ez.UU,Ez.$t[0])&&(0,o.registerBlockType)(Ez.UU,{title:(0,L.__)("table-row","ablocks"),attributes:Ez.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",(t=>{const{rowColor:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.addClassStyles("{{WRAPPER}}:hover",(t=>{ | |
| 3572 | +const{rowColorH:e}=t,i={};return e&&(i.background=`${(0,Hs.qD)(e)} !important`),i})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Bz,{...t}),(0,I.jsx)(Fz,{...t})]})},save:qz});const $z={UU:"ablocks/table-header",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function Gz(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row",{},[["ablocks/table-cell",{tagName:"th"}],["ablocks/table-cell",{tagName:"th"}]]]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:$z.UU,attributes:e,tagName:"thead",className:"ablocks-block--table-header",...o})})}function Zz(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{ | |
| 3573 | +className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function Kz(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:$z.UU,attributes:e,tagName:"thead",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Gz.propTypes={},Gz.defaultProps={},Zz.propTypes={},Kz.propTypes={},Kz.defaultProps={},(0,M.xV)($z.UU,$z.$t[0])&&(0,o.registerBlockType)($z.UU,{title:(0,L.__)("Table Head","ablocks"),attributes:$z.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]) | |
| 3574 | +;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(Zz,{...t}),(0,I.jsx)(Gz,{...t})]})},save:Kz});const Jz={UU:"ablocks/table-footer",$t:["ablocks/table"],uK:{block_id:{type:"string",default:""}}};function Qz(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-cell"],template:[["ablocks/table-row",{}]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:Jz.UU,attributes:e,className:"ablocks-block--table-footer",tagName:"tfoot",...o})})}function tC(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0, | |
| 3575 | +L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function eC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:Jz.UU,attributes:e,tagName:"tfoot",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}Qz.propTypes={},Qz.defaultProps={},tC.propTypes={},eC.propTypes={},eC.defaultProps={},(0,M.xV)(Jz.UU,Jz.$t[0])&&(0,o.registerBlockType)(Jz.UU,{title:(0,L.__)("Tablet Footer","ablocks"),attributes:Jz.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(tC,{...t}),(0,I.jsx)(Qz,{...t})]})},save:eC});const iC={UU:"ablocks/table-body",$t:["ablocks/table"], | |
| 3576 | +uK:{block_id:{type:"string",default:""}}};function oC(t){const{attributes:e}=t,{block_id:i}=e,o=(0,D.useInnerBlocksProps)({},{allowedBlocks:["ablocks/table-row"],template:[["ablocks/table-row"],["ablocks/table-row"]]});return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sR,{blockId:i,name:iC.UU,attributes:e,tagName:"tbody",...o})})}function aC(t){const{attributes:e}=t,{}=e;return(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Table Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the table settings to customize tabular data effortlessly.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})})})}function lC(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0, | |
| 3577 | +I.jsx)(dR,{blockId:i,name:iC.UU,attributes:e,tagName:"tbody",children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}oC.propTypes={},oC.defaultProps={},aC.propTypes={},lC.propTypes={},lC.defaultProps={},(0,M.xV)(iC.UU,iC.$t[0])&&(0,o.registerBlockType)(iC.UU,{title:(0,L.__)("Table Body","ablocks"),attributes:iC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--table"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aC,{...t}),(0,I.jsx)(oC,{...t})]})},save:lC});var nC=i(929);const sC=[{label:(0,L.__)("Facebook","ablocks"),value:"Facebook"},{label:(0,L.__)("Twitter","ablocks"),value:"Twitter"},{label:(0,L.__)("LinkedIn","ablocks"),value:"LinkedIn"},{label:(0,L.__)("Pinterest","ablocks"),value:"Pinterest"},{label:(0,L.__)("Reddit","ablocks"), | |
| 3578 | +value:"Reddit"},{label:(0,L.__)("Telegram","ablocks"),value:"Telegram"},{label:(0,L.__)("WhatsApp","ablocks"),value:"WhatsApp"},{label:(0,L.__)("Skype","ablocks"),value:"Skype"},{label:(0,L.__)("Tumblr","ablocks"),value:"Tumblr"},{label:(0,L.__)("Digg","ablocks"),value:"Digg"},{label:(0,L.__)("VK","ablocks"),value:"VK"},{label:(0,L.__)("Mix","ablocks"),value:"Mix"},{label:(0,L.__)("Pocket","ablocks"),value:"Pocket"},{label:(0,L.__)("Stumble","ablocks"),value:"Stumble"},{label:(0,L.__)("Gmail","ablocks"),value:"Gmail"},{label:(0,L.__)("Messenger","ablocks"),value:"Messenger"},{label:(0,L.__)("Flipboard","ablocks"),value:"Flipboard"},{label:(0,L.__)("Blogger","ablocks"),value:"Blogger"}],rC=[{label:(0,L.__)("Icon & Text","ablocks"),value:"Icon & Text"},{label:(0,L.__)("Icon","ablocks"),value:"Icon"},{label:(0,L.__)("Text","ablocks"),value:"Text"}],bC=[{label:(0,L.__)("Square","ablocks"),value:"Square"},{label:(0,L.__)("Rounded","ablocks"),value:"Rounded"},{label:(0, | |
| 3579 | +L.__)("Circle","ablocks"),value:"Circle"}],cC=[{text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373"},{text:"Twitter",icon:{viewBox:"0 0 512 512", | |
| 3557 | 3580 | path:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},buttonBackgroundColor:"ablocks-social-share-item--twitter-bg",iconBackgroundColor:"ablocks-social-share-item--twitter-icon-bg",link:"https://twitter.com/intent/tweet?url=",isOpen:!1, |
| 3558 | 3581 | backgroundH:"#1da1f2"},{text:"Telegram",icon:{viewBox:"0 0 448 512",path:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},buttonBackgroundColor:"ablocks-social-share-item--telegram-bg",iconBackgroundColor:"ablocks-social-share-item--telegram-icon-bg",link:"https://t.me/share/url?url=",isOpen:!1,backgroundH:"#1da1f2"},{text:"Print",icon:{viewBox:"0 0 512 512",path:"M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z" |
| 3559 | 3582 | },buttonBackgroundColor:"ablocks-social-share-item---print-bg",iconBackgroundColor:"ablocks-social-share-item--print-icon-bg",link:"window.print()",backgroundH:"#4a4a4a",isOpen:!1},{text:"Email",icon:{viewBox:"0 0 640 512",path:"M496 128a144 144 0 0 0-119.74 224H263.74A144 144 0 1 0 144 416h352a144 144 0 0 0 0-288zM64 272a80 80 0 1 1 80 80 80 80 0 0 1-80-80zm432 80a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"},buttonBackgroundColor:"ablocks-social-share-item--email-bg",iconBackgroundColor:"ablocks-social-share-item--email-icon-bg",link:"mailto:?subject=",backgroundH:"#d44638",isOpen:!1},{text:"WhatsApp",icon:{viewBox:"0 0 448 512", |
| 3560 | 3583 | path:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},buttonBackgroundColor:"ablocks-social-share-item--whatsapp-bg", |
| @@ -3569,23 +3592,23 @@ | ||
| 3569 | 3592 | isOpen:!1},{text:"LinkedIn",icon:{viewBox:"0 0 448 512",path:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},buttonBackgroundColor:"ablocks-social-share-item--linkedin-bg",iconBackgroundColor:"ablocks-social-share-item--linkedin-icon-bg",link:"https://www.linkedin.com/feed/?linkOrigin=LI_BADGE&shareActive=true&shareUrl=",backgroundH:"#0077b5",isOpen:!1},{text:"Gmail",icon:{viewBox:"0 0 512 512",path:"M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"}, |
| 3570 | 3593 | buttonBackgroundColor:"ablocks-social-share-item--gmail-bg",iconBackgroundColor:"ablocks-social-share-item--gmail-icon-bg",link:"https://mail.google.com/mail/?view=cm&fs=1&su=Check%20this%20out&body=",backgroundH:"#d14836",isOpen:!1},{text:"Messenger",icon:{viewBox:"0 0 24 24",path:"M12 0C5.373 0 0 4.975 0 11.111c0 3.497 1.745 6.616 4.472 8.652V24l4.086-2.242c1.09.301 2.246.464 3.442.464 6.627 0 12-4.974 12-11.111C24 4.975 18.627 0 12 0zm1.193 14.963l-3.056-3.259-5.963 3.259L10.732 8l3.13 3.259L19.732 8l-6.539 6.963z"},buttonBackgroundColor:"ablocks-social-share-item--messenger-bg",iconBackgroundColor:"ablocks-social-share-item--messenger-icon-bg",link:"https://www.facebook.com/dialog/send?link=",backgroundH:"#0084ff",isOpen:!1},{text:"Flipboard",icon:{viewBox:"0 0 448 512",path:"M0 32v448h448V32H0zm358.4 179.2h-89.6v89.6h-89.6v89.6H89.6V121.6h268.8v89.6z"},buttonBackgroundColor:"ablocks-social-share-item--flipboard-bg", |
| 3571 | 3594 | iconBackgroundColor:"ablocks-social-share-item--flipboard-icon-bg",link:"https://share.flipboard.com/bookmarklet/popout?v=2&url=",backgroundH:"#e12828",isOpen:!1},{text:"Blogger",icon:{viewBox:"0 0 448 512", |
| 3572 | 3595 | path:"M162.4 196c4.8-4.9 6.2-5.1 36.4-5.1 27.2 0 28.1.1 32.1 2.1 5.8 2.9 8.3 7 8.3 13.6 0 5.9-2.4 10-7.6 13.4-2.8 1.8-4.5 1.9-31.1 2.1-16.4.1-29.5-.2-31.5-.8-10.3-2.9-14.1-17.7-6.6-25.3zm61.4 94.5c-53.9 0-55.8.2-60.2 4.1-3.5 3.1-5.7 9.4-5.1 13.9.7 4.7 4.8 10.1 9.2 12 2.2 1 14.1 1.7 56.3 1.2l47.9-.6 9.2-1.5c9-5.1 10.5-17.4 3.1-24.4-5.3-4.7-5-4.7-60.4-4.7zm223.4-130.1c-3.5-28.4-23-50.4-51.8-58.5L393.7 101c-10.2-2.9-23.3-4.5-37.9-4.5-7.3 0-13.4.7-18.8 1.8-11.1 2.2-17.6 3.9-26.6 7.1-11.7 4.2-14.1 5.3-24.9 11.7-12.2 7.2-15.9 10.1-23.3 18.2-4.9 5.4-13.3 19.1-14.2 23.2-1.9 8.7-3.6 20.3-4.8 33.7a281.3 281.3 0 0 0-.1 28.5c0 147.8 68.5 158.4 207.6 158.4 128.8 0 178.8-11.8 178.8-158.4 0-92.2-14.3-149.8-61.4-158.7zM331 320.2c-3.9 28.6-32.2 48.6-71.4 50.4-27.2 1.3-108.2.3-108.2.3-23.8 0-31.5-5.7-31.5-31.5v-108c0-23.8 7.7-31.5 31.5-31.5 0 0 81-.3 108.2.3 39.2 1.8 67.5 21.8 71.4 50.4 3.2 23.3 3.2 46.8 0 69.6z"},buttonBackgroundColor:"ablocks-social-share-item--blogger-bg", |
| 3573 | -iconBackgroundColor:"ablocks-social-share-item--blogger-icon-bg",link:"https://www.blogger.com/blog-this.g?u=",backgroundH:"#ff5722",isOpen:!1}],Ez=((0,z.__)("Start","ablocks"),(0,z.__)("End","ablocks"),(0,z.__)("Center","ablocks"),(0,z.__)("Between","ablocks"),(0,z.__)("Around","ablocks"),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,L.jsx)("path",{d:"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"})})})),Fz=t=>"px"===t?200:"em"===t||"rem"===t?15:200;function qz(t){ | |
| 3574 | -const{attributes:e,setAttributes:i}=t,{lists:o,stack:a,spaceBetween:n,verticalAlignment:s,viewButton:r,shape:b,windowsPopUp:c,buttonHover:d,buttonBackground:u,shareSize:p,shareIconSize:m,shareButtonIconColor:h,shareBar:g,textStroke:f,textShadow:y,typography:T,shareItemIconSize:H,itemIconHeight:M,itemIconWidth:x,itemTextHeight:k,itemTextWidth:v,horizontalAlignment:_,shareButtonIconColorH:R}=e,S=o?.length?o[o.length-1].id+1:0,W=(t,e,a)=>{const l=[...o],n={...t,[e]:a};l[t?.id]=n,i({lists:l})};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-social-shares-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Social Share","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{isResponsive:!1,allowDeselect:!0,label:(0,z.__)("Stack","ablocks"),options:[{value:"horizontal",label:(0,z.__)("Horizontal","ablocks")},{value:"vertical", | |
| 3575 | -label:(0,z.__)("Vertical","ablocks")}],attributeName:"stack",attributeValue:a,setAttributes:i}),"vertical"===a?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vb,{isResponsive:!1,isInline:!0,allowDeselect:!0,label:(0,z.__)("Vertical alignment","ablocks"),options:[{label:(0,z.__)("Left","ablocks"),value:"flex-start",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--left"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--center"})},{label:(0,z.__)("Right","ablocks"),value:"flex-end",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--right"})}],attributeName:"verticalAlignment",attributeValue:s,setAttributes:i})}):(0,L.jsx)(Kt,{allowDeselect:!0,label:(0,z.__)("Horizontal alignment","ablocks"),options:[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{ | |
| 3576 | -label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],isInline:!1,attributeName:"horizontalAlignment",attributeValue:_,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("View","ablocks"),options:Yz,attributeName:"viewButton",attributeValue:r,setAttributes:i}),(0,L.jsx)(Nt,{margin:"30px"}),(0,L.jsx)(Ut,{label:(0,z.__)("Shape","ablocks"),options:Xz,attributeName:"shape",attributeValue:b,setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("windows PopUp","ablocks"),attributeValue:c,setAttributes:i,attributeName:"windowsPopUp"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Share Bar","ablocks"),attributeValue:g,setAttributes:i,attributeName:"shareBar"}),(0,L.jsx)(tf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(o),[a]=e.splice(t.source.index,1);e.splice(t.destination.index,0,a),i({lists:e})},children:(0,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,e)=>(0,L.jsx)(Uf,{ | |
| 3577 | -draggableId:`${t.id}`,index:e,children:e=>(0,L.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,L.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,L.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.filter(t=>t?.id!==e);i({lists:a})})(e,t?.id),role:"presentation", | |
| 3578 | -onKeyDown:()=>{}}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:n[n.length-1].id+1,text:l?.text,icon:l?.icon,buttonBackgroundColor:l?.buttonBackgroundColor,iconBackgroundColor:l?.iconBackgroundColor,link:l?.link,backgroundH:l?.backgroundH,isOpen:!1},r=[...o,s];i({lists:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,L.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(jl,{label:(0,z.__)("Button type","ablocks"),options:Oz,value:Oz.find(e=>e.value===t?.buttonType),onChange:e=>{const a=e?.value;((t,e,a)=>{const l=Bz.find(t=>t.text===e),n=o.map(i=>i.id===t?{...i,[a]:e,text:l?.text||i.text,icon:l?.icon||i.icon,buttonBackgroundColor:l?.buttonBackgroundColor||i.buttonBackgroundColor, | |
| 3579 | -iconBackgroundColor:l?.iconBackgroundColor||i.iconBackgroundColor,link:l?.link,backgroundH:l?.backgroundH}:i);i({lists:n})})(t?.id,a,"buttonType"),i({buttonType:a})}})}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[!("Text"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Icon color","ablocks"),attributeName:"shareBgColor"+t?.id,attributeValue:t["shareBgColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareBgColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Icon fill color","ablocks"),attributeName:"iconFillColor"+t?.id,attributeValue:t["iconFillColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"iconFillColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]}),!("Icon"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,L.jsx)(vs,{label:(0,z.__)("Text backgroun color","ablocks"),attributeName:"shareTextBgColor"+t?.id, | |
| 3580 | -attributeValue:t["shareTextBgColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareTextBgColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),"Icon & Text"!==r||"Circle"!==b&&"Rounded"!==b?null:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"backgroundColor"+t?.id,attributeValue:t["backgroundColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"backgroundColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]}),hover:(0,L.jsxs)(L.Fragment,{children:[!("Text"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),attributeName:"shareIconH"+t?.id,attributeValue:t["shareIconH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareIconH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),!("Icon"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,L.jsx)(vs,{label:(0,z.__)("Text background Color","ablocks"),attributeName:"shareTextH"+t?.id,attributeValue:t["shareTextH"+t?.id],setAttributes:i, | |
| 3581 | -resetHandler:()=>W(t,"shareTextH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),"Icon & Text"!==r||"Circle"!==b&&"Rounded"!==b?null:(0,L.jsx)(vs,{label:(0,z.__)("Background Hover Color","ablocks"),attributeName:"backgroundColorH"+t?.id,attributeValue:t["backgroundColorH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"backgroundColorH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]})})})})})]})},t.id)),t.placeholder]})})}),(0,L.jsx)(V,{label:(0,z.__)("Add item","ablocks"),onClick:()=>{const t={id:S,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!0,backgroundH:"#2d4373",buttonType:"Facebook"},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen | |
| 3582 | -}:t);i({lists:[...e,t]})},className:"ablocks-add-list-item-button"})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Space between","ablocks"),min:0,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"spaceBetween",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:Vz.p9})})})}),g&&(0,L.jsx)(D,{title:(0,z.__)("Share Bar","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Share Size","ablocks"),isResponsive:!1,min:0,hasUnit:!0,attributeName:"shareSize",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],attributeValue:p,setAttributes:i,isInline:!1,attributeDefaultValue:Vz.vz}),(0,L.jsx)(vt,{label:(0,z.__)("Share Icon Size","ablocks"),isResponsive:!1,min:0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,attributeName:"shareIconSize",attributeValue:m,setAttributes:i,isInline:!1, | |
| 3583 | -attributeDefaultValue:Vz._2})]}),style:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonBackground",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColor",attributeValue:h,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonHover",attributeValue:d,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColorH",attributeValue:R,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Nt,{})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Share Items","ablocks"),initialOpen:!0,children:(0, | |
| 3584 | -L.jsx)(Rb,{content:(0,L.jsxs)(l().Fragment,{children:["Text"!==r&&(0,L.jsx)(vt,{label:(0,z.__)("Share Item Icon Size","ablocks"),isResponsive:!1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,attributeName:"shareItemIconSize",attributeValue:H,setAttributes:i,isInline:!1,attributeDefaultValue:Vz.jI}),("Icon & Text"===r||"Icon"===r)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Icon Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Width","ablocks"),attributeName:"itemIconWidth",attributeValue:x,setAttributes:i,isResponsive:!1,min:0,max:Fz(x?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:Vz.H1}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Height","ablocks"),attributeName:"itemIconHeight",attributeValue:M,setAttributes:i,isResponsive:!1,min:0, | |
| 3585 | -max:Fz(M?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:Vz.CS})]}),(0,L.jsx)(Nt,{margin:"30px"}),("Icon & Text"===r||"Text"===r)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Text Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Text Width","ablocks"),attributeName:"itemTextWidth",attributeValue:v,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1,isInline:!1,attributeDefaultValue:Vz.jM}),(0,L.jsx)(vt,{label:(0,z.__)("Text Height","ablocks"),attributeName:"itemTextHeight",attributeValue:k,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1,isInline:!1,attributeDefaultValue:Vz.YE})]})]}),style:(0,L.jsxs)(l().Fragment,{ | |
| 3586 | -children:["Icon"!==r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:y,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:f,setAttributes:i,isResponsive:!0})]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i,hasTransition:!1}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"shareItemShadow",attributeValue:e?.shareItemShadow||0,setAttributes:i}),(0,L.jsx)(Nt,{})]})})})]})})})}qz.propTypes={};const $z={UU:"ablocks/social-shares",uK:{block_id:{ | |
| 3587 | -type:"string",default:""},blockVersion:{type:"number",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"},lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 512 512", | |
| 3596 | +iconBackgroundColor:"ablocks-social-share-item--blogger-icon-bg",link:"https://www.blogger.com/blog-this.g?u=",backgroundH:"#ff5722",isOpen:!1}],dC=((0,L.__)("vertical","ablocks"),(0,L.__)("horizontal","ablocks"),(0,L.__)("Start","ablocks"),(0,L.__)("End","ablocks"),(0,L.__)("Center","ablocks"),(0,L.__)("Between","ablocks"),(0,L.__)("Around","ablocks"),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"})}) | |
| 3597 | +})),uC=t=>"px"===t?200:"em"===t||"rem"===t?15:200;function pC(t){const{attributes:e,setAttributes:i}=t,{lists:o,stack:a,spaceBetween:n,verticalAlignment:s,viewButton:r,shape:b,windowsPopUp:c,buttonHover:d,buttonBackground:u,shareSize:p,shareIconSize:m,shareButtonIconColor:h,shareBar:g,textStroke:f,textShadow:y,typography:T,shareItemIconSize:H,itemIconHeight:M,itemIconWidth:x,itemTextHeight:k,itemTextWidth:v,horizontalAlignment:_,shareButtonIconColorH:R}=e,S=o?.length?o[o.length-1].id+1:0,W=(t,e,a)=>{const l=[...o],n={...t,[e]:a};l[t?.id]=n,i({lists:l})};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-social-shares-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Social Share","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!0,label:(0,L.__)("Stack","ablocks"),options:[{ | |
| 3598 | +value:"horizontal",label:(0,L.__)("Horizontal","ablocks")},{value:"vertical",label:(0,L.__)("Vertical","ablocks")}],attributeName:"stack",attributeValue:a,setAttributes:i}),"vertical"===a?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wb,{isResponsive:!1,isInline:!0,allowDeselect:!0,label:(0,L.__)("Vertical alignment","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"flex-start",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--left"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--center"})},{label:(0,L.__)("Right","ablocks"),value:"flex-end",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--right"})}],attributeName:"verticalAlignment",attributeValue:s,setAttributes:i})}):(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Horizontal alignment","ablocks"),options:[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"center" | |
| 3599 | +},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],isInline:!1,attributeName:"horizontalAlignment",attributeValue:_,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("View","ablocks"),options:rC,attributeName:"viewButton",attributeValue:r,setAttributes:i}),(0,I.jsx)(It,{margin:"30px"}),(0,I.jsx)(Ut,{label:(0,L.__)("Shape","ablocks"),options:bC,attributeName:"shape",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("windows PopUp","ablocks"),attributeValue:c,setAttributes:i,attributeName:"windowsPopUp"}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Share Bar","ablocks"),attributeValue:g,setAttributes:i,attributeName:"shareBar"}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(o),[a]=e.splice(t.source.index,1);e.splice(t.destination.index,0,a),i({lists:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ | |
| 3600 | +ref:t.innerRef,...t.droppableProps,children:[o?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:e,children:e=>(0,I.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation() | |
| 3601 | +;const a=o.filter(t=>t?.id!==e);i({lists:a})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:n[n.length-1].id+1,text:l?.text,icon:l?.icon,buttonBackgroundColor:l?.buttonBackgroundColor,iconBackgroundColor:l?.iconBackgroundColor,link:l?.link,backgroundH:l?.backgroundH,isOpen:!1},r=[...o,s];i({lists:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wl,{label:(0,L.__)("Button type","ablocks"),options:sC,value:sC.find(e=>e.value===t?.buttonType),onChange:e=>{const a=e?.value;((t,e,a)=>{const l=cC.find(t=>t.text===e),n=o.map(i=>i.id===t?{...i,[a]:e,text:l?.text||i.text,icon:l?.icon||i.icon, | |
| 3602 | +buttonBackgroundColor:l?.buttonBackgroundColor||i.buttonBackgroundColor,iconBackgroundColor:l?.iconBackgroundColor||i.iconBackgroundColor,link:l?.link,backgroundH:l?.backgroundH}:i);i({lists:n})})(t?.id,a,"buttonType"),i({buttonType:a})}})}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[!("Text"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Icon color","ablocks"),attributeName:"shareBgColor"+t?.id,attributeValue:t["shareBgColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareBgColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon fill color","ablocks"),attributeName:"iconFillColor"+t?.id,attributeValue:t["iconFillColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"iconFillColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]}),!("Icon"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsx)(Ws,{label:(0, | |
| 3603 | +L.__)("Text backgroun color","ablocks"),attributeName:"shareTextBgColor"+t?.id,attributeValue:t["shareTextBgColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareTextBgColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),"Icon & Text"!==r||"Circle"!==b&&"Rounded"!==b?null:(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor"+t?.id,attributeValue:t["backgroundColor"+t?.id],setAttributes:i,resetHandler:()=>W(t,"backgroundColor"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]}),hover:(0,I.jsxs)(I.Fragment,{children:[!("Text"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"shareIconH"+t?.id,attributeValue:t["shareIconH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareIconH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),!("Icon"===r||"Icon & Text"===r&&("Rounded"===b||"Circle"===b))&&(0,I.jsx)(Ws,{label:(0,L.__)("Text background Color","ablocks"), | |
| 3604 | +attributeName:"shareTextH"+t?.id,attributeValue:t["shareTextH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"shareTextH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}}),"Icon & Text"!==r||"Circle"!==b&&"Rounded"!==b?null:(0,I.jsx)(Ws,{label:(0,L.__)("Background Hover Color","ablocks"),attributeName:"backgroundColorH"+t?.id,attributeValue:t["backgroundColorH"+t?.id],setAttributes:i,resetHandler:()=>W(t,"backgroundColorH"+t?.id,""),onChangeHandler:(e,i)=>{W(t,e,i)}})]})})})})})]})},t.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:S,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!0, | |
| 3605 | +backgroundH:"#2d4373",buttonType:"Facebook"},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t]})},className:"ablocks-add-list-item-button"})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Space between","ablocks"),min:0,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"spaceBetween",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:nC.p9})})})}),g&&(0,I.jsx)(V,{title:(0,L.__)("Share Bar","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Share Size","ablocks"),isResponsive:!1,min:0,hasUnit:!0,attributeName:"shareSize",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],attributeValue:p,setAttributes:i,isInline:!1,attributeDefaultValue:nC.vz}),(0,I.jsx)(_t,{label:(0,L.__)("Share Icon Size","ablocks"),isResponsive:!1,min:0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}], | |
| 3606 | +hasUnit:!0,attributeName:"shareIconSize",attributeValue:m,setAttributes:i,isInline:!1,attributeDefaultValue:nC._2})]}),style:(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonBackground",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColor",attributeValue:h,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"buttonHover",attributeValue:d,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),isGradient:!0,attributeName:"shareButtonIconColorH",attributeValue:R,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{})]}) | |
| 3607 | +})}),(0,I.jsx)(V,{title:(0,L.__)("Share Items","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(l().Fragment,{children:["Text"!==r&&(0,I.jsx)(_t,{label:(0,L.__)("Share Item Icon Size","ablocks"),isResponsive:!1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,attributeName:"shareItemIconSize",attributeValue:H,setAttributes:i,isInline:!1,attributeDefaultValue:nC.jI}),("Icon & Text"===r||"Icon"===r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Icon Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Width","ablocks"),attributeName:"itemIconWidth",attributeValue:x,setAttributes:i,isResponsive:!1,min:0,max:uC(x?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:nC.H1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Height","ablocks"), | |
| 3608 | +attributeName:"itemIconHeight",attributeValue:M,setAttributes:i,isResponsive:!1,min:0,max:uC(M?.valueUnit||"px"),hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,isInline:!1,attributeDefaultValue:nC.CS})]}),(0,I.jsx)(It,{margin:"30px"}),("Icon & Text"===r||"Text"===r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Text Label Settings","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Text Width","ablocks"),attributeName:"itemTextWidth",attributeValue:v,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1,isInline:!1,attributeDefaultValue:nC.jM}),(0,I.jsx)(_t,{label:(0,L.__)("Text Height","ablocks"),attributeName:"itemTextHeight",attributeValue:k,setAttributes:i,isResponsive:!1,min:0,max:200,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],hasUnit:!0,step:1, | |
| 3609 | +isInline:!1,attributeDefaultValue:nC.YE})]})]}),style:(0,I.jsxs)(l().Fragment,{children:["Icon"!==r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:y,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:f,setAttributes:i,isResponsive:!0})]}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"itemBorder",attributeValue:e?.itemBorder,setAttributes:i,hasTransition:!1}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"shareItemShadow",attributeValue:e?.shareItemShadow||0,setAttributes:i}),(0,I.jsx)(It,{})]})})})]})})})} | |
| 3610 | +pC.propTypes={};const mC={UU:"ablocks/social-shares",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square"},lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 512 512", | |
| 3588 | 3611 | path:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},buttonBackgroundColor:"ablocks-social-share-item--twitter-bg",iconBackgroundColor:"ablocks-social-share-item--twitter-icon-bg",link:"https://twitter.com/intent/tweet?url=",isOpen:!1, |
| 3589 | 3612 | backgroundH:"#1da1f2",buttonType:"Twitter"},{id:2,text:"Telegram",icon:{viewBox:"0 0 448 512",path:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},buttonBackgroundColor:"ablocks-social-share-item--telegram-bg",iconBackgroundColor:"ablocks-social-share-item--telegram-icon-bg",link:"https://t.me/share/url?url=",isOpen:!1,backgroundH:"#007ab8",buttonType:"Telegram"}]},listIconsClasses:{type:"array",default:[]},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},windowsPopUp:{type:"boolean",default:!1},buttonBackground:{type:"string",default:""},buttonHover:{type:"string",default:""},shareBar:{type:"boolean",default:!0},shareBgColor:{type:"string",default:""},iconFillColor:{type:"string",default:"#ffffff"},shareTextBgColor:{type:"string",default:""},shareIconH:{ |
| 3590 | 3613 | type:"string",default:""},shareTextH:{type:"string",default:""},backgroundColor:{type:"string",default:""},backgroundColorH:{type:"string",default:""},shareButtonIconColor:{type:"string",default:"#170a1b"},shareButtonIconColorH:{type:"string",default:""},belowItem:{type:"number",default:0},position:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},typographyGlobal:{type:"string",default:""},typography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px", |
| 3591 | 3614 | lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},horizontalAlignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},width:{type:"object",default:{widthType:"default",customWidth:"",customWidthUnit:"%"}},radius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"", |
| @@ -3600,15 +3623,15 @@ | ||
| 3600 | 3623 | 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:"", |
| 3601 | 3624 | 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:"", |
| 3602 | 3625 | 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:{ |
| 3603 | 3626 | 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:{ |
| 3604 | -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 Gz(t){const{attributes:e}=t,{block_id:i,lists:o,viewButton:a,shape:n,windowsPopUp:s,shareBar:r}=e,b=window.location.href;let c="";"rounded"===n?.toLowerCase()?c="ablocks-social-share-item--rounded":"circle"===n?.toLowerCase()&&(c="ablocks-social-share-item--circle");const d=t=>{s?(t=>{const e=(window.innerWidth-600)/2,i=(window.innerHeight-400)/2 | |
| 3605 | -;window.open(t,"_blank",`width=600,height=400,top=${i},left=${e}`)})(t):(t=>{window.open(t,"_blank")})(t)};return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(Nb.A,{blockId:i,name:$z.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[r&&(0,L.jsx)("button",{"aria-label":(0,z.__)("Share on social media","ablocks"),title:(0,z.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:Ez}),o?.map((t,e)=>(0,L.jsxs)("a",{role:"link",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&d(`${t?.link}${b}`)},style:{background:(0,gs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,gs.qD)(t["backgroundColorH"+t?.id])||(0,gs.qD)(t.backgroundH)||""},className:`ablocks-social-share-item ${(0,gs.qD)(t?.buttonBackgroundColor)} ${c} ${"Icon"===a&&"Circle"===n?"ablocks-social-share-item--circle-full":""}`,onClick:()=>d(`${t?.link}${b}`),children:["Text"!==a&&(0,L.jsx)("span",{style:{background:(0, | |
| 3606 | -gs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,gs.qD)(t["shareIconH"+t?.id])||""},className:`ablocks-social-share-item--icon ${"Icon & Text"===a&&"Circle"!==n&&"Rounded"!==n?(0,gs.qD)(t?.iconBackgroundColor):""} ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,L.jsx)("path",{d:t?.icon?.path,style:{fill:(0,gs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==a&&(0,L.jsx)("span",{className:`ablocks-social-share-item--text ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,gs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,gs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}const Zz=(t,e="")=>{const{horizontalAlignment:i}=t,o={...(0,Ob.qD)({attributeValue:t.spaceBetween,attributeObjectKey:"value", | |
| 3607 | -isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})},a=t[`stack${e}`]||t?.stack,l=t[`verticalAlignment${e}`]||t?.verticalAlignment;return"vertical"===a?(o["flex-direction"]="column",l&&(o["align-items"]=l)):"horizontal"===a&&(o["flex-direction"]="row",i&&(o["justify-content"]=i)),{...o,...(0,Gt.qD)(t?.horizontalAlignment,"justify-content",e)}},Kz=(t,e="")=>{const i={background:(0,gs.qD)(t?.buttonBackground),...(0,Ob.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{...(0,y.qD)(t?.border,e),...i}},Jz=(t,e="")=>({background:(0,gs.qD)(t?.buttonHover),...(0,y.a9)(t?.border,e)}),Qz=(t,e="")=>({...(0,y.qD)(t?.itemBorder,e),...(0,H.qD)(t?.shareItemShadow)}),tC=(t,e="")=>({background:(0, | |
| 3608 | -gs.qD)(t?.backgroundH),...(0,y.a9)(t?.itemBorder,e),...(0,H.a9)(t?.shareItemShadow)}),eC=(t,e="")=>({...(0,Ob.qD)({attributeValue:t.shareItemIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}),iC=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.itemTextWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:80,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t.itemTextHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})},o=(0,M.Zy)(t.typography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"";return{...i,...(0,Gt.qD)(t?.alignment,"text-align",e),...(0,P.qD)(o,e,a),...(0,fc.qD)(t?.textStroke,e),...(0,pc.qD)(t?.textShadow)}};function oC(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b="" | |
| 3609 | -;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:$z.UU,attributes:e,children:[r&&(0,L.jsx)("button",{"aria-label":(0,z.__)("Share on social media","ablocks"),title:(0,z.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:Ez}),o?.map((t,e)=>(0,L.jsxs)("a",{"data-windowspopup":s,style:{background:(0,gs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,gs.qD)(t["backgroundColorH"+t?.id])||(0,gs.qD)(t.backgroundH)||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${(0,gs.qD)(t?.buttonBackgroundColor)} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,L.jsx)("span",{style:{background:(0,gs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,gs.qD)(t["shareIconH"+t?.id])||""}, | |
| 3610 | -className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?(0,gs.qD)(t?.iconBackgroundColor):""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,L.jsx)("path",{d:t?.icon?.path,style:{fill:(0,gs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==n&&(0,L.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,gs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,gs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}oC.propTypes={};const aC={UU:"ablocks/social-shares",uK:{block_id:{type:"string",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square" | |
| 3627 | +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function hC(t){const{attributes:e}=t,{block_id:i,lists:o,viewButton:a,shape:n,windowsPopUp:s,shareBar:r}=e,b=window.location.href;let c="";"rounded"===n?.toLowerCase()?c="ablocks-social-share-item--rounded":"circle"===n?.toLowerCase()&&(c="ablocks-social-share-item--circle");const d=t=>{s?(t=>{const e=(window.innerWidth-600)/2,i=(window.innerHeight-400)/2 | |
| 3628 | +;window.open(t,"_blank",`width=600,height=400,top=${i},left=${e}`)})(t):(t=>{window.open(t,"_blank")})(t)};return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:i,name:mC.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[r&&(0,I.jsx)("button",{"aria-label":(0,L.__)("Share on social media","ablocks"),title:(0,L.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:dC}),o?.map((t,e)=>(0,I.jsxs)("a",{role:"link",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&d(`${t?.link}${b}`)},style:{background:(0,Hs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,Hs.qD)(t["backgroundColorH"+t?.id])||(0,Hs.qD)(t.backgroundH)||""},className:`ablocks-social-share-item ${(0,Hs.qD)(t?.buttonBackgroundColor)} ${c} ${"Icon"===a&&"Circle"===n?"ablocks-social-share-item--circle-full":""}`,onClick:()=>d(`${t?.link}${b}`),children:["Text"!==a&&(0,I.jsx)("span",{style:{background:(0, | |
| 3629 | +Hs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,Hs.qD)(t["shareIconH"+t?.id])||""},className:`ablocks-social-share-item--icon ${"Icon & Text"===a&&"Circle"!==n&&"Rounded"!==n?(0,Hs.qD)(t?.iconBackgroundColor):""} ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:(0,Hs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==a&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${c} ${"Icon & Text"===a&&"Square"===n?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,Hs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,Hs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}const gC=(t,e="")=>{const{horizontalAlignment:i}=t,o={...(0,Eb.qD)({attributeValue:t.spaceBetween,attributeObjectKey:"value", | |
| 3630 | +isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})},a=t[`stack${e}`]||t?.stack,l=t[`verticalAlignment${e}`]||t?.verticalAlignment;return"vertical"===a?(o["flex-direction"]="column",l&&(o["align-items"]=l)):"horizontal"===a&&(o["flex-direction"]="row",i&&(o["justify-content"]=i)),{...o,...(0,Zt.qD)(t?.horizontalAlignment,"justify-content",e)}},fC=(t,e="")=>{const i={background:(0,Hs.qD)(t?.buttonBackground),...(0,Eb.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.shareSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:46,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return{...(0,y.qD)(t?.border,e),...i}},yC=(t,e="")=>({background:(0,Hs.qD)(t?.buttonHover),...(0,y.a9)(t?.border,e)}),TC=(t,e="")=>({...(0,y.qD)(t?.itemBorder,e),...(0,H.qD)(t?.shareItemShadow)}),HC=(t,e="")=>({background:(0, | |
| 3631 | +Hs.qD)(t?.backgroundH),...(0,y.a9)(t?.itemBorder,e),...(0,H.a9)(t?.shareItemShadow)}),MC=(t,e="")=>({...(0,Eb.qD)({attributeValue:t.shareItemIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}),xC=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemTextWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:80,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.itemTextHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})},o=(0,M.Zy)(t.typography,{weight:"400"}),a=t.typographyGlobal?t.typographyGlobal:"";return{...i,...(0,Zt.qD)(t?.alignment,"text-align",e),...(0,U.qD)(o,e,a),...(0,Mc.qD)(t?.textStroke,e),...(0,fc.qD)(t?.textShadow)}};function kC(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b="" | |
| 3632 | +;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:mC.UU,attributes:e,children:[r&&(0,I.jsx)("button",{"aria-label":(0,L.__)("Share on social media","ablocks"),title:(0,L.__)("Share on social media","ablocks"),className:"ablocks-social-share",children:dC}),o?.map((t,e)=>(0,I.jsxs)("a",{"data-windowspopup":s,style:{background:(0,Hs.qD)(t?.["backgroundColor"+t?.id])||"","--background-hover":(0,Hs.qD)(t["backgroundColorH"+t?.id])||(0,Hs.qD)(t.backgroundH)||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${(0,Hs.qD)(t?.buttonBackgroundColor)} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,I.jsx)("span",{style:{background:(0,Hs.qD)(t?.["shareBgColor"+t?.id])||"","--hover-icon-bg-color":(0,Hs.qD)(t["shareIconH"+t?.id])||""}, | |
| 3633 | +className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?(0,Hs.qD)(t?.iconBackgroundColor):""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:(0,Hs.qD)(t?.["iconFillColor"+t?.id])||"#ffffff"}})})}),"Icon"!==n&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:(0,Hs.qD)(t?.["shareTextBgColor"+t?.id])||"","--hover-text-bg-color":(0,Hs.qD)(t["shareTextH"+t?.id])||""},children:t?.text})]},e))]})})}kC.propTypes={};const vC={UU:"ablocks/social-shares",uK:{block_id:{type:"string",default:""},buttonType:{type:"string",default:"Facebook"},viewButton:{type:"string",default:"Icon & Text"},shape:{type:"string",default:"Square" | |
| 3611 | 3634 | },lists:{type:"array",default:[{id:0,text:"Facebook",icon:{viewBox:"0 0 320 512",path:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},buttonBackgroundColor:"ablocks-social-share-item--facebook-bg",iconBackgroundColor:"ablocks-social-share-item--facebook-icon-bg",link:"https://www.facebook.com/sharer.php?u=",isOpen:!1,backgroundH:"#2d4373",buttonType:"Facebook"},{id:1,text:"Twitter",icon:{viewBox:"0 0 512 512", |
| 3612 | 3635 | path:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},buttonBackgroundColor:"ablocks-social-share-item--twitter-bg",iconBackgroundColor:"ablocks-social-share-item--twitter-icon-bg",link:"https://twitter.com/intent/tweet?url=",isOpen:!1, |
| 3613 | 3636 | backgroundH:"#1da1f2",buttonType:"Twitter"},{id:2,text:"Telegram",icon:{viewBox:"0 0 448 512",path:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},buttonBackgroundColor:"ablocks-social-share-item--telegram-bg",iconBackgroundColor:"ablocks-social-share-item--telegram-icon-bg",link:"https://t.me/share/url?url=",isOpen:!1,backgroundH:"#007ab8",buttonType:"Telegram"}]},listIconsClasses:{type:"array",default:[]},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},windowsPopUp:{type:"boolean",default:!1},buttonBackground:{type:"string",default:""},buttonHover:{type:"string",default:""},shareBar:{type:"boolean",default:!0},shareBgColor:{type:"string",default:""},iconFillColor:{type:"string",default:"#ffffff"},shareTextBgColor:{type:"string",default:""},shareIconH:{ |
| 3614 | 3637 | type:"string",default:""},shareTextH:{type:"string",default:""},backgroundColor:{type:"string",default:""},backgroundColorH:{type:"string",default:""},shareButtonIconColor:{type:"string",default:"#170a1b"},shareButtonIconColorH:{type:"string",default:""},belowItem:{type:"number",default:0},position:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},textStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},typography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"", |
| @@ -3623,159 +3646,162 @@ | ||
| 3623 | 3646 | backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", |
| 3624 | 3647 | 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, |
| 3625 | 3648 | 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:"", |
| 3626 | 3649 | 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", |
| 3627 | -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 lC(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b="" | |
| 3628 | -;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:aC.UU,attributes:e,children:[r&&(0,L.jsx)("button",{className:"ablocks-social-share",children:Ez}),o?.map((t,e)=>(0,L.jsxs)("a",{"data-windowspopup":s,style:{background:t?.["backgroundColor"+t?.id]||"","--background-hover":t["backgroundColorH"+t?.id]||t.backgroundH||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${t?.buttonBackgroundColor} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,L.jsx)("span",{style:{background:t?.["shareBgColor"+t?.id]||"","--hover-icon-bg-color":t["shareIconH"+t?.id]||""}, | |
| 3629 | -className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?t?.iconBackgroundColor:""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,L.jsx)("path",{d:t?.icon?.path,style:{fill:t?.["iconFillColor"+t?.id]||"#ffffff"}})})}),"Icon"!==n&&(0,L.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:t?.["shareTextBgColor"+t?.id]||"","--hover-text-bg-color":t["shareTextH"+t?.id]||""},children:t?.text})]},e))]})})}function nC(t){const{attributes:e,setAttributes:i}=t,{alignment:o,link:a,svgDrawColor:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i, | |
| 3630 | -docs_url:"https://ablocks.pro/docs/ablocks-svg-draw-block/",children:(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0,viewSupport:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Animation Duration","ablocks"),min:1,max:30,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.duration||0,attributeName:"duration",setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:(0,z.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("right","ablocks"),value:"flex-end",icon:"right"}]}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:a,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 3631 | -L.jsx)(vs,{label:(0,z.__)("Stroke color","ablocks"),attributeName:"svgDrawColor",attributeValue:n,setAttributes:i}),(0,L.jsx)(Nd,{attributes:e,setAttributes:i})]})})})})})})}lC.propTypes={},(0,M.xV)($z.UU)&&(0,o.registerBlockType)($z.UU,{title:"Social Shares",attributes:$z.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}.ablocks-block--social-shares .ablocks-block-container",Zz(i),Zz(i,"Tablet"),Zz(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share",Kz(i),Kz(i,"Table"),Kz(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share:hover",Jz(i),Jz(i,"Table"),Jz(i,"Mobile")), | |
| 3632 | -t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon",((t,e="")=>{const{shareButtonIconColor:i}=t,o={...(0,Ob.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return i&&(o.fill=`${(0,gs.qD)(i)} !important`),{...o}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon:hover",(t=>{const e={};return t?.shareButtonIconColorH&&(e.fill=`${(0,gs.qD)(t?.shareButtonIconColorH)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item",Qz(i),Qz(i,"Tablet"),Qz(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item:hover",tC(i),tC(i,"Tablet"),tC(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon",((t,e="")=>({...{...(0, | |
| 3633 | -Ob.qD)({attributeValue:t.itemIconWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t.itemIconHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon>.ablocks-svg-icon",eC(i),eC(i,"Tablet"),eC(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--text",iC(i),iC(i,"Tablet"),iC(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(qz,{...t}),(0,L.jsx)(Gz,{...t})]})},save:oC,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--social-share"}),deprecated:[{attributes:aC.uK,save:lC}]}),nC.propTypes={};const sC={UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},svgDrawColor:{type:"string",default:"gray"}, | |
| 3634 | -duration:{type:"number",default:5},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512", | |
| 3635 | -source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"", | |
| 3636 | -leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"", | |
| 3637 | -valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default", | |
| 3638 | -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:"", | |
| 3639 | -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", | |
| 3640 | -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:"", | |
| 3641 | -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:"", | |
| 3642 | -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, | |
| 3643 | -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:"", | |
| 3644 | -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:"", | |
| 3645 | -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 rC(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"),d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,Wb.jM)(b)}),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{ | |
| 3646 | -children:(0,L.jsx)(Fc,{attributeValue:o,setAttributes:i})}),(0,L.jsx)(Nb.A,{blockId:a,name:sC.UU,attributes:e,typography:[],children:c?(0,L.jsx)("a",{...d,children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)(Vd,{attributes:e})})]})}rC.propTypes={};const bC=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o},cC=t=>{const e={};return t.duration&&(e["animation-duration"]=`${t.duration}s !important`),{stroke:(0,gs.qD)(t?.svgDrawColor),...e}};function dC(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,Wb.jM)(s)}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:sC.UU,attributes:e,children:o&&r?(0,L.jsx)("a",{...b,children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)(Vd,{attributes:e})})})}dC.propTypes={};const uC={ | |
| 3647 | -UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},svgDrawColor:{type:"string",default:"gray"},duration:{type:"number",default:5},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute", | |
| 3648 | -selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"", | |
| 3649 | -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},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 3650 | -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:"", | |
| 3651 | -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:"", | |
| 3652 | -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:"", | |
| 3653 | -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:"", | |
| 3654 | -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:"", | |
| 3655 | -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:"", | |
| 3656 | -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:"", | |
| 3657 | -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 pC(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,Wb.jM)(s)}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:uC.UU,attributes:e,children:o&&r?(0,L.jsx)("a",{...b,children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)(Vd,{attributes:e})})})}pC.propTypes={},(0,M.xV)(sC.UU)&&(0,o.registerBlockType)(sC.UU,{title:"SVG Draw",attributes:sC.uK,icon:(0,L.jsx)("span",{ | |
| 3658 | -className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-container",bC(i),bC(i,"Tablet"),bC(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} svg > path",cC(i),cC(i),cC(i)),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")), | |
| 3659 | -t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(nC,{...t}),(0,L.jsx)(rC,{...t})]})},save:dC,deprecated:[{attributes:uC.uK,save:pC}]});const mC=t=>{const{attributes:e,setAttributes:i}=t,{allowHeading:o}=e;return(0,L.jsx)(Vt,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowHeading"})},hC=t=>{const{attributes:e,setAttributes:i}=t,{allowSubHeading:o}=e;return(0,L.jsx)(Vt,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowSubHeading"})},gC=t=>{const{attributes:e,setAttributes:i}=t,{allowDes:o}=e | |
| 3660 | -;return(0,L.jsx)(Vt,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowDes"})},fC=t=>{const{attributes:e,setAttributes:i}=t,{allowRating:o}=e;return(0,L.jsx)(Vt,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowRating"})},yC=t=>{const{attributes:e,setAttributes:i}=t,{allowButton:o}=e;return(0,L.jsx)(Vt,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowButton"})},TC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{badgeText:a,badgePosition:l,badgeSize:n,badgeTextShadow:s,badgeTypography:r,badgeTextColor:b,badgeTextColorH:c,badgeBackground:d,badgeBackgroundH:u,badgePadding:p}=e;return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(D,{title:(0,z.__)("Badge","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),attributeName:"badgePosition",attributeValue:l,setAttributes:i,options:[{label:"top-left",value:"top-left",icon:"arrow-left"},{ | |
| 3661 | -label:"bottom-left",value:"bottom-left",icon:"arrow-down"},{label:"top-right",value:"top-right",icon:"arrow-right"},{label:"bottom-right",value:"bottom-right",icon:"arrow-down"}],isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"badgeText",attributeValue:a,setAttributes:i,isInline:!1,context:o}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),options:[{label:(0,z.__)("Extra small","ablocks"),value:"xs"},{label:(0,z.__)("Small","ablocks"),value:"sm"},{label:(0,z.__)("Medium","ablocks"),value:"md"},{label:(0,z.__)("Large","ablocks"),value:"lg"}],isResponsive:!1,attributeValue:n||"sm",attributeName:"badgeSize",setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"badgeTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"badgeTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0, | |
| 3662 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"badgeTextColor",attributeValue:b||"#000000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"badgeBackground",attributeValue:d||"#ddd",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"badgeTextColorH",attributeValue:c,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"badgeBackgroundH",attributeValue:u,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.badgeTransition||0,attributeName:"badgeTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"), | |
| 3663 | -isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"badgeBorder",attributeValue:e?.badgeBorder,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"badgePadding",attributeValue:p,setAttributes:i})]})})})})},HC=t=>{const{attributes:e,setAttributes:i}=t,{iconLink:o,iconPrimaryColorH:a,iconBackgroundColorH:l,iconMargin:n}=e;return(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributePrefix:"icon",attributes:e,setAttributes:i}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"iconLink",attributeValue:o,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"iconMargin",attributeValue:n,setAttributes:i}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{attributes:e,setAttributes:i})}), | |
| 3664 | -hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"iconPrimaryColorH",attributeValue:a,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"iconBackgroundColorH",attributeValue:l,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.iconTransition||0,attributeName:"iconTransition",setAttributes:i})]})})]})})})},MC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{heading:a,headingTag:l,headingTypography:n,headingTextShadow:s,headingTextStroke:r,headingTextColor:b,headingTextColorHover:c,headingMargin:d}=e;return(0,L.jsx)(D,{title:(0,z.__)("Heading","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"heading",attributeValue:a,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks"), | |
| 3665 | -context:o}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"headingTag",attributeValue:l,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"headingTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"headingTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"headingTextStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"headingTextColor",attributeValue:b,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"headingTextColorHover",attributeValue:c,setAttributes:i}),(0,L.jsx)(vt,{label:(0, | |
| 3666 | -z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.headingTransition||0,attributeName:"headingTransition",setAttributes:i})]})}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"headingMargin",attributeValue:d,setAttributes:i})]})})})},xC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{subHeading:a,subHeadingTag:l,subHeadingTypography:n,subHeadingTextShadow:s,subHeadingTextStroke:r,subHeadingTextColor:b,subHeadingTextColorHover:c,subHeadingMargin:d}=e;return(0,L.jsx)(D,{title:(0,z.__)("Sub Heading","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"subHeading",attributeValue:a,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks"),context:o}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"subHeadingTag", | |
| 3667 | -attributeValue:l,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"subHeadingTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"subHeadingTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"subHeadingTextStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"subHeadingTextColor",attributeValue:b,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"subHeadingTextColorHover",attributeValue:c,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1, | |
| 3668 | -attributeValue:e?.subHeadingTransition||0,attributeName:"subHeadingTransition",setAttributes:i})]})}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"subHeadingMargin",attributeValue:d,setAttributes:i})]})})})},kC=t=>{const{attributes:e,setAttributes:i}=t,{desSize:o,desTextShadow:a,desTypography:l,desTextColor:n,desTextColorHover:s,des:r,desTextStroke:b,desDropCaps:c,desDropCapsTextColor:d,desMargin:u}=e;return(0,L.jsx)(D,{title:(0,z.__)("Description","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"des",attributeValue:r,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Drop caps","ablocks"),attributeValue:e.desDropCaps,setAttributes:i,attributeName:"desDropCaps"}),c&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 3669 | -attributeName:"desDropCapsTextColor",attributeValue:d,setAttributes:i})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:l,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:a,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:b,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"desTextColor",attributeValue:n,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"desTextColorHover",attributeValue:s,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1, | |
| 3670 | -attributeValue:e?.desTransition||0,attributeName:"desTransition",setAttributes:i})]})}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"desMargin",attributeValue:u,setAttributes:i})]})})})};var vC=i(34415);const _C=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}},RC=t=>{const{attributes:e,setAttributes:i}=t,{ratingScale:o,ratingColor:a,ratingColorHover:l,ratingUnmarkedColor:n,ratingNumberPosition:s,ratingUnmarkedColorHover:r,showRatingNumber:b,showCount:c,spacing:d,ratingNumberColor:u,ratingNumberTypography:p,rating:m,ratingNumberGap:h,ratingMargin:g}=e,f=at(),y=(0,M.Ic)(h,"valueUnit",f);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(D,{title:(0,z.__)("Start Rating","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Scale","ablocks"),options:[{label:"0 to 1",value:1},{label:"0 to 5",value:5},{label:"0 to 10",value:10}],attributeName:"ratingScale", | |
| 3671 | -attributeValue:o,onChangeHandler:t=>{i({ratingScale:t,rating:e?.rating>t?t:e?.rating})}}),(0,L.jsx)(js,{label:(0,z.__)("Rating","ablocks"),attributeName:"rating",attributeValue:m,step:.1,setAttributes:i,disableDynamicContent:!1}),(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributePrefix:"starIcon",attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Rating number","ablocks"),attributeName:"showRatingNumber",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,L.jsx)(Vt,{label:(0,z.__)("Show Total Rating number","ablocks"),attributeName:"showCount",attributeValue:c,setAttributes:i,isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"spacing",attributeValue:d,setAttributes:i,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1, | |
| 3672 | -attributeDefaultValue:vC.CB,autoSyncRange:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"ratingMargin",attributeValue:g,setAttributes:i}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Marked Color","ablocks"),attributeName:"ratingColor",attributeValue:a,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColor",attributeValue:n,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Marked Color","ablocks"),attributeName:"ratingColorHover",attributeValue:l,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColorHover",attributeValue:r,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.ratingTransition||0,attributeName:"ratingTransition",setAttributes:i | |
| 3673 | -})]})})]})})}),b&&(0,L.jsx)(D,{title:(0,z.__)("Rating Number","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),isResponsive:!1,attributeName:"ratingNumberPosition",attributeObjectKey:"ratingNumberPosition",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),attributeName:"ratingNumberGap",attributeObjectKey:"value",attributeValue:h,setAttributes:i,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:1,max:_C(y),isInline:!1,hasUnit:!0,attributeDefaultValue:vC.ZO,autoSyncRange:!0})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"ratingNumberColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 3674 | -attributeName:"ratingNumberTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})},SC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{btnText:a,btnSize:l,btnTextShadow:n,btnTypography:s,btnTextColor:r,btnTextColorH:b,btnBackground:c,btnBackgroundH:d,btnPadding:u,btnMargin:p,btnIconPosition:m,btnLink:h,btnShowIcon:g}=e;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(D,{title:(0,z.__)("Button","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"btnText",attributeValue:a,setAttributes:i,isInline:!1,context:o}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),options:[{label:(0,z.__)("Extra small","ablocks"),value:"xs"},{label:(0,z.__)("Small","ablocks"),value:"sm"},{label:(0,z.__)("Medium","ablocks"),value:"md"},{label:(0,z.__)("Large","ablocks"),value:"lg"},{label:(0,z.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:l||"sm", | |
| 3675 | -attributeName:"btnSize",setAttributes:i}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"btnLink",attributeValue:h,setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"btnShowIcon",isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"btnTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"btnTextShadow",attributeValue:n,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"btnTextColor",attributeValue:r||"#000000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"btnBackground",attributeValue:c||"#ddd", | |
| 3676 | -setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"btnTextColorH",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"btnBackgroundH",attributeValue:d,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.btnTransition||0,attributeName:"btnTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"btnBorder",attributeValue:e?.btnBorder,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"btnPadding",attributeValue:u,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"btnMargin",attributeValue:p,setAttributes:i})]})})}),g&&(0,L.jsx)(D,{ | |
| 3677 | -title:(0,z.__)("Button Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributePrefix:"btnIcon",attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Icon position","ablocks"),options:[{label:(0,z.__)("Before","ablocks"),value:"left"},{label:(0,z.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:m||"left",attributeName:"btnIconPosition",setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,attributePrefix:"btnIcon",isHoverColor:!0,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"btnIconSpace",attributeValue:e?.btnIconSpace,setAttributes:i,attributeObjectKey:"iconSpace"})]})})})]})};var WC=i(91353);function UC(t){ | |
| 3678 | -const{attributes:e,setAttributes:i}=t,{iconPlacement:o,iconGap:a,contentGap:n,blockElements:s,alignment:r,iconAlignment:b,allowButtonHover:c,allowBadge:d,allowIcon:u,allowBadgeHover:p,allowHeading:m,allowSubHeading:h,allowDes:g,allowRating:f,allowButton:y}=e,T=e=>{switch(e){case 0:return(0,L.jsx)(mC,{...t});case 1:return(0,L.jsx)(hC,{...t});case 2:return(0,L.jsx)(gC,{...t});case 3:return(0,L.jsx)(fC,{...t});case 4:return(0,L.jsx)(yC,{...t})}};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-flip-box-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Info Box","ablocks"),initialOpen:!0,children:(0,L.jsxs)(L.Fragment,{children:[e.allowIcon?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{allowDeselect:!0,isResponsive:!0,label:(0,z.__)("Icon placement","ablocks"),options:[{value:"row",label:(0,z.__)("Left","ablocks")},{value:"column",label:(0,z.__)("Top","ablocks")},{ | |
| 3679 | -value:"row-reverse",label:(0,z.__)("Right","ablocks")}],attributeName:"iconPlacement",attributeValue:o,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Icon Alignment","ablocks"),options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"iconAlignment",attributeValue:b,setAttributes:i,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"iconGap",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:WC.AZ})]}):null,(0,L.jsx)(Kt,{label:(0,z.__)("Content Alignment","ablocks"),options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:r, | |
| 3680 | -setAttributes:i,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Content Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"contentGap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:WC.c8}),y?(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Button hover","ablocks"),attributeValue:c,setAttributes:i,attributeName:"allowButtonHover"}):null,(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Badge","ablocks"),attributeValue:d,setAttributes:i,attributeName:"allowBadge"}),d?(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Badge hover","ablocks"),attributeValue:p,setAttributes:i,attributeName:"allowBadgeHover"}):null,(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Icon","ablocks"),attributeValue:e.allowIcon,setAttributes:i,attributeName:"allowIcon"}),(0,L.jsx)(Nt,{}),(0,L.jsx)(tf,{onDragEnd:t=>{if(!t.destination)return | |
| 3681 | -;const e=Array.from(s),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({blockElements:e})},children:(0,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[(0,L.jsx)("h3",{className:"ablocks-info-drag",children:"Draggable items"}),s?.map((t,e)=>(0,L.jsx)(Uf,{draggableId:`${t.id}`,index:e,children:e=>(0,L.jsx)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:(0,L.jsxs)("div",{className:"ablocks-editor-list__wrapper info",role:"presentation",onKeyDown:()=>{},children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,L.jsx)("span",{className:"ablocks-list-text",children:t?.slug})]}),T(t?.id)]})})},t.id)),t.placeholder]})})})]})}),d&&(0,L.jsx)(TC,{...t}),u&&(0,L.jsx)(HC,{...t}),m&&(0,L.jsx)(MC,{...t | |
| 3682 | -}),h&&(0,L.jsx)(xC,{...t}),g&&(0,L.jsx)(kC,{...t}),f&&(0,L.jsx)(RC,{...t}),y&&(0,L.jsx)(SC,{...t})]})})})}UC.propTypes={};const PC=t=>{const{attributes:e,setAttributes:i}=t,{badgeSize:o}=e,a=(0,C.useBlockProps)();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${o}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0,L.jsx)(Yc,{...a,tagName:"span",identifier:"badgeText",value:e.badgeText,withoutInteractiveFormatting:!0,placeholder:e.badgeText,className:"ablocks-info-box-badge-link-text",onChange:t=>i({badgeText:t})})})})},jC=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return o&&(r.target="_blank"),r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,Wb.jM)(n)}),(0,L.jsx)(l().Fragment,{children:s?(0,L.jsx)("a",{...r,children:(0,L.jsx)(Vd,{attributes:e,attributePrefix:"icon"})}):(0,L.jsx)(Vd,{attributes:e, | |
| 3683 | -attributePrefix:"icon"})})},wC=t=>{const{attributes:e,setAttributes:i}=t,{headingTag:o}=e;return(0,L.jsx)(Yc,{tagName:o,value:e.heading,onChange:t=>i({heading:t}),placeholder:(0,z.__)("Enter your heading..","ablocks"),className:"ablocks-info-box-heading"})},zC=t=>{const{attributes:e,setAttributes:i}=t,{subHeadingTag:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Yc,{tagName:o,value:e.subHeading,className:"ablocks-info-box-sub-heading",onChange:t=>i({subHeading:t}),placeholder:(0,z.__)("Enter your subHeading..","ablocks")})})},CC=t=>{const{attributes:e,setAttributes:i}=t,{des:o,desTag:a,desDropCaps:l,desSize:n}=e;return(0,L.jsx)(Yc,{tagName:a||"p",value:o,placeholder:(0,z.__)("Enter your text..","ablocks"),onChange:t=>i({des:t}),className:s()("ablocks-info-box-text",`ablocks-info-box-text-${n}`,{"ablocks-info-box-text-drop-caps":l})})},AC=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{ | |
| 3684 | -className:"ablocks-info-box-star-ratings",children:[(0,L.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,L.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,L.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,L.jsx)(Vd,{attributePrefix:"starIcon",attributes:e})}),(0,L.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,L.jsx)(Vd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,L.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[(0,L.jsx)(Yc,{tagName:"span",value:`${o}`,onChange:t=>setAttributes({rating:t}),placeholder:"Enter your rating.."}),a?`/${i}`:""]})]})})},LC=t=>{const{attributes:e,setAttributes:i}=t,{btnSize:o,btnIconPosition:a,btnIconClass:n,btnShowIcon:r,btnLink:{linkTarget:b,noFollow:c,keyValue:d}}=e,u=(0,C.useBlockProps)() | |
| 3685 | -;let p={};return b&&(p.target="_blank"),p.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(p={...p,...(0,Wb.jM)(d)}),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("a",{...p,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${o}`,{[`ablocks-info-box-btn-link--icon-${a}`]:n&&a},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[r&&(0,L.jsx)(Vd,{attributePrefix:"btnIcon",attributes:e}),(0,L.jsx)(Yc,{...u,tagName:"span",identifier:"btnText",value:e.btnText,withoutInteractiveFormatting:!0,placeholder:e.btnText,className:"ablocks-info-box-btn-link-text",onChange:t=>i({btnText:t})})]})})},DC={UU:"ablocks/info-box",uK:{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"}]},des:{type:"string",source:"html",selector:".ablocks-info-box-text", | |
| 3686 | -default:"Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!"},allowBadgeHover:{type:"boolean",default:!1},allowButtonHover:{type:"boolean",default:!1},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},badgeText:{type:"string",default:"Featured"},badgeSize:{type:"string",default:"xs"},badgeTextColor:{type:"string",default:"#13191B"},badgeTextColorH:{type:"string",default:""},badgeBackground:{type:"string",default:"#DDDDDF"},badgeBackgroundH:{type:"string",default:""},badgeTransition:{type:"number",default:""},iconPrimaryColorH:{type:"string",default:""},iconBackgroundColorH:{type:"string",default:""},iconTransition:{type:"number",default:""},heading:{type:"string",source:"html", | |
| 3687 | -selector:".ablocks-info-box-heading",default:"Your Info Box Title"},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B"},headingTextColorHover:{type:"string",default:""},headingTransition:{type:"number",default:""},subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:"Your Info Box Sub Title"},subHeadingTag:{type:"string",default:"h3"},subHeadingTextColor:{type:"string",default:"#13191B"},subHeadingTextColorHover:{type:"string",default:""},subHeadingTransition:{type:"number",default:""},desDropCaps:{type:"boolean",default:!1},desDropCapsTextColor:{type:"string",default:"#0f2aff"},desSize:{type:"string",default:"sm"},desGraphSize:{type:"string",default:"sm"},desTextColor:{type:"string",default:"#595959"},desTextColorHover:{type:"string",default:""},desTransition:{type:"number",default:""},ratingScale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingColorHover:{type:"string",default:"" | |
| 3688 | -},ratingUnmarkedColor:{type:"string",default:"#696969"},ratingTransition:{type:"number",default:""},ratingUnmarkedColorHover:{type:"string",default:""},ratingShowCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},showCount:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},btnText:{type:"string",default:"Learn More"},btnSize:{type:"string",default:"sm"},btnTextColor:{type:"string",default:"#FAFAFA"},btnTextColorH:{type:"string",default:""},btnBackground:{type:"string",default:"#13191B"},btnBackgroundH:{type:"string",default:""},btnTransition:{type:"number",default:""},btnIconPosition:{type:"string",default:"right"},btnIconSpace:{type:"number",default:10},btnShowIcon:{type:"boolean",default:!0},stack:{type:"string",default:""},alignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},iconPlacement:{type:"object",default:{value:"",valueTablet:"", | |
| 3689 | -valueMobile:""}},badgeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"", | |
| 3690 | -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:""}},badgePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"", | |
| 3691 | -commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},badgeTypographyGlobal:{type:"string",default:""},badgeTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"12",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"}},badgeTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},badgePosition:{type:"object",default:{value:"top-right",valueTablet:"",valueMobile:""}},badgeAlignment:{type:"object",default:{value:"center", | |
| 3692 | -valueTablet:"",valueMobile:""}},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:{ | |
| 3693 | -type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},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", | |
| 3694 | -isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconMargin:{type:"object", | |
| 3695 | -default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},iconLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},iconAlignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},headingTypographyGlobal:{type:"string",default:""},headingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"600",transform:"",style:"",decoration:"",fontSize:"28",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px", | |
| 3696 | -letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headingTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headingTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},headingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},subHeadingTypographyGlobal:{type:"string",default:""},subHeadingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"500",transform:"",style:"",decoration:"",fontSize:"20",fontSizeUnit:"px", | |
| 3697 | -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"}},subHeadingTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},subHeadingTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},subHeadingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"", | |
| 3698 | -commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},desTypographyGlobal:{type:"string",default:""},desTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"16",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", | |
| 3699 | -strokeWidthUnitMobile:"px",stroke:""}},desMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},btnIconSvgPath:{type:"string",default:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},btnIconSvgViewBox:{type:"string",default:"0 0 448 512"},btnIconClass:{type:"string",default:"fas fa-arrow-right"},btnIconImageUrl:{type:"string",default:""},btnIconImageID:{type:"number",default:0},btnIconImageSize:{type:"string",default:""},btnIconColor:{type:"string",default:"#FAFAFA"},btnIconBgColor:{type:"string",default:""},btnIconHoverColor:{ | |
| 3700 | -type:"string",default:""},btnIconHoverBgColor:{type:"string",default:""},btnIconType:{type:"string",default:"default"},btnIconShape:{type:"string",default:"circle"},btnIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconBorder:{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:""}},btnIconBoxShadow:{type:"object",default:{ | |
| 3701 | -preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},btnIconSize:{type:"number",default:20},btnIconRotate:{type:"number",default:0},btnIconSizing:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIcontransitionDuration:{type:"number",default:0},btnIconImageWidth:{type:"number",default:0},btnLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},btnBorder:{type:"object",default:{borderStyle:"default", | |
| 3702 | -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:"", | |
| 3703 | -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:""}},btnPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"", | |
| 3704 | -unitMobile:""}},btnMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}}, | |
| 3705 | -btnTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},btnAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},ratingNumberTypographyGlobal:{type:"string",default:""},ratingNumberTypography:{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"}},ratingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px", | |
| 3706 | -commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},starIconSvgPath:{type:"string",default:"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"},starIconSvgViewBox:{type:"string",default:"0 0 576 512"},starIconClass:{type:"string",default:"far fa-star"},starIconImageUrl:{type:"string",default:""},starIconImageID:{type:"number",default:0},starIconImageSize:{type:"string",default:""},starIconColor:{type:"string",default:"#69727d"},starIconBgColor:{type:"string",default:""},starIconHoverColor:{type:"string",default:""},starIconHoverBgColor:{ | |
| 3707 | -type:"string",default:""},starIconType:{type:"string",default:"default"},starIconShape:{type:"string",default:"circle"},starIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconBorder:{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:""}},starIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"", | |
| 3708 | -horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},starIconSize:{type:"number",default:55},starIconRotate:{type:"number",default:0},starIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},starIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},starIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},starIcontransitionDuration:{type:"number",default:0},starIconImageWidth:{type:"number",default:0},rating:{type:"number",default:4},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"", | |
| 3709 | -valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconGap:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{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", | |
| 3710 | -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:"", | |
| 3711 | -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", | |
| 3712 | -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:"", | |
| 3713 | -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:"", | |
| 3714 | -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, | |
| 3715 | -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:"", | |
| 3716 | -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:"", | |
| 3717 | -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 NC(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{}),(0,L.jsxs)(Nb.A,{blockId:i,name:DC.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight | |
| 3718 | -}],children:[e.allowBadge?(0,L.jsx)(PC,{...t}):null,e.allowIcon?(0,L.jsx)(jC,{...t}):null,(0,L.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,L.jsx)(wC,{...t});case 1:return n&&(0,L.jsx)(zC,{...t});case 2:return s&&(0,L.jsx)(CC,{...t});case 3:return r&&(0,L.jsx)(AC,{...t});case 4:return b&&(0,L.jsx)(LC,{...t})}})(e?.id))})]})]})}NC.propTypes={};const IC=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.iconGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"gap",device:e})};return t.iconPlacement["value"+e]&&(i.display="flex",i["flex-direction"]=t.iconPlacement["value"+e]),t.iconAlignment["value"+e]&&(i["align-items"]=t.iconAlignment["value"+e]),i},VC=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.badgeTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})} | |
| 3719 | -;t.badgePosition["value"+e]&&("top-left"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.top=`-${t._padding["common"+e]}px`,i.left=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.top||t._padding.topTablet||t._padding.topMobile||(i.top="-30px"),t._padding.left||t._padding.leftTablet||t._padding.leftMobile||(i.left="-30px")),i.bottom="auto",i.right="auto"):"top-right"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.top=`-${t._padding["common"+e]}px`,i.right=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.top||t._padding.topTablet||t._padding.topMobile||(i.top="-30px"),t._padding.right||t._padding.rightTablet||t._padding.rightMobile||(i.right="-30px")),i.left="auto",i.bottom="auto"):"bottom-left"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.bottom=`-${t._padding["common"+e]}px`, | |
| 3650 | +xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function _C(t){const{attributes:e}=t,{block_id:i,lists:o,shape:a,viewButton:n,windowsPopUp:s,shareBar:r}=e;let b="" | |
| 3651 | +;return"rounded"===a?.toLowerCase()?b="ablocks-social-share-item--rounded":"circle"===a?.toLowerCase()&&(b="ablocks-social-share-item--circle"),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:vC.UU,attributes:e,children:[r&&(0,I.jsx)("button",{className:"ablocks-social-share",children:dC}),o?.map((t,e)=>(0,I.jsxs)("a",{"data-windowspopup":s,style:{background:t?.["backgroundColor"+t?.id]||"","--background-hover":t["backgroundColorH"+t?.id]||t.backgroundH||""},href:`${t?.link}`,target:"_blank",rel:"noopener noreferrer",className:`ablocks-social-share-item ${t?.buttonBackgroundColor} ${b} ${"Icon"===n&&"Circle"===a?"ablocks-social-share-item--circle-full":""}`,children:["Text"!==n&&(0,I.jsx)("span",{style:{background:t?.["shareBgColor"+t?.id]||"","--hover-icon-bg-color":t["shareIconH"+t?.id]||""}, | |
| 3652 | +className:`ablocks-social-share-item--icon ${"Icon & Text"===n&&"Circle"!==a&&"Rounded"!==a?t?.iconBackgroundColor:""} ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-icon--icon-text-Square":""}`,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t?.icon?.viewBox,className:"ablocks-svg-icon",children:(0,I.jsx)("path",{d:t?.icon?.path,style:{fill:t?.["iconFillColor"+t?.id]||"#ffffff"}})})}),"Icon"!==n&&(0,I.jsx)("span",{className:`ablocks-social-share-item--text ${b} ${"Icon & Text"===n&&"Square"===a?"ablocks-social-share-item-text--icon-text-Square":""}`,style:{background:t?.["shareTextBgColor"+t?.id]||"","--hover-text-bg-color":t["shareTextH"+t?.id]||""},children:t?.text})]},e))]})})}function RC(t){const{attributes:e,setAttributes:i}=t,{alignment:o,link:a,svgDrawColor:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i, | |
| 3653 | +docs_url:"https://ablocks.pro/docs/ablocks-svg-draw-block/",children:(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0,viewSupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Duration","ablocks"),min:1,max:30,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.duration||0,attributeName:"duration",setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"flex-end",icon:"right"}]}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"link",attributeValue:a,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0, | |
| 3654 | +I.jsx)(Ws,{label:(0,L.__)("Stroke color","ablocks"),attributeName:"svgDrawColor",attributeValue:n,setAttributes:i}),(0,I.jsx)(Bd,{attributes:e,setAttributes:i})]})})})})})})}_C.propTypes={},(0,M.xV)(mC.UU)&&(0,o.registerBlockType)(mC.UU,{title:(0,L.__)("Social Shares","ablocks"),attributes:mC.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}.ablocks-block--social-shares .ablocks-block-container",gC(i),gC(i,"Tablet"),gC(i,"Mobile"),e(t=>gC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share",fC(i),fC(i,"Table"),fC(i,"Mobile")), | |
| 3655 | +t.addClassStyles("{{WRAPPER}} .ablocks-social-share:hover",yC(i),yC(i,"Table"),yC(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon",((t,e="")=>{const{shareButtonIconColor:i}=t,o={...(0,Eb.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.shareIconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:16,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})};return i&&(o.fill=`${(0,Hs.qD)(i)} !important`),{...o}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share > .ablocks-svg-icon:hover",(t=>{const e={};return t?.shareButtonIconColorH&&(e.fill=`${(0,Hs.qD)(t?.shareButtonIconColorH)} !important`),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item",TC(i),TC(i,"Tablet"),TC(i,"Mobile"),e(t=>TC(i,t))), | |
| 3656 | +t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item:hover",HC(i),HC(i,"Tablet"),HC(i,"Mobile"),e(t=>HC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon",((t,e="")=>({...{...(0,Eb.qD)({attributeValue:t.itemIconWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:43,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t.itemIconHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:42,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--icon>.ablocks-svg-icon",MC(i),MC(i,"Tablet"),MC(i,"Mobile"),e(t=>MC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-social-share-item--text",xC(i),xC(i,"Tablet"),xC(i,"Mobile"),e(t=>xC(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(pC,{...t}),(0,I.jsx)(hC,{...t})]})},save:kC,icon:(0,I.jsx)("span",{ | |
| 3657 | +className:"ablocks-icon ablocks-icon--social-share"}),deprecated:[{attributes:vC.uK,save:_C}]}),RC.propTypes={};const SC={UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},svgDrawColor:{type:"string",default:"gray"},duration:{type:"number",default:5},iconSvgPath:{type:"string", | |
| 3658 | +default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox" | |
| 3659 | +},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", | |
| 3660 | +rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0}, | |
| 3661 | +iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"", | |
| 3662 | +customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", | |
| 3663 | +unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"", | |
| 3664 | +hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"", | |
| 3665 | +imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"", | |
| 3666 | +externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"", | |
| 3667 | +xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{ | |
| 3668 | +mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{ | |
| 3669 | +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function WC(t){const{attributes:e,setAttributes:i}=t,{alignment:o}=e,{block_id:a,link:n}=e,{linkTarget:s,noFollow:r,keyValue:b,href:c}=n||{};let d={};return s&&(d.target="_blank"),d.rel=r?s?"nofollow noreferrer noopener":"nofollow":"noopener",b&&(d={...d,...(0,wb.jM)(b)}),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:o,setAttributes:i})}),(0,I.jsx)(Yb.A,{ | |
| 3670 | +blockId:a,name:SC.UU,attributes:e,typography:[],children:c?(0,I.jsx)("a",{...d,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})]})}WC.propTypes={};const PC=(t={},e="")=>{const{alignment:i={}}=t,o={display:"flex"};return i["value"+e]&&(o["justify-content"]=i["value"+e]),o},UC=t=>{const e={};return t.duration&&(e["animation-duration"]=`${t.duration}s !important`),{stroke:(0,Hs.qD)(t?.svgDrawColor),...e}};function jC(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:SC.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}jC.propTypes={};const wC={UU:"ablocks/svg-draw",uK:{block_id:{type:"string",default:""},svgDrawColor:{ | |
| 3671 | +type:"string",default:"gray"},duration:{type:"number",default:5},iconSvgPath:{type:"string",default:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string", | |
| 3672 | +default:"0 0 496 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{ | |
| 3673 | +value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},alignment:{type:"object",default:{value:"flex-start",valueTablet:"",valueMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"", | |
| 3674 | +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:"", | |
| 3675 | +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:"", | |
| 3676 | +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:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"", | |
| 3677 | +imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px", | |
| 3678 | +imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"", | |
| 3679 | +skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"", | |
| 3680 | +xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"", | |
| 3681 | +color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function zC(t){const{attributes:e}=t,{block_id:i,link:o}=e,{linkTarget:a,noFollow:n,keyValue:s,href:r}=o||{};let b={};return r&&(b.href=r),a&&(b.target="_blank"),b.rel=n?a?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",s&&(b={...b,...(0,wb.jM)(s)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(hc,{blockId:i,name:wC.UU,attributes:e,children:o&&r?(0,I.jsx)("a",{...b,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})})}zC.propTypes={},(0,M.xV)(SC.UU)&&(0,o.registerBlockType)(SC.UU,{title:(0,L.__)("SVG Draw","ablocks"),attributes:SC.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-icon"}),edit:function(t){ | |
| 3682 | +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-container",PC(i),PC(i,"Tablet"),PC(i,"Mobile"),e(t=>PC(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} svg > path",UC(i),UC(i),UC(i),e(t=>UC(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0, | |
| 3683 | +Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(RC,{...t}),(0,I.jsx)(WC,{...t})]})},save:jC,deprecated:[{attributes:wC.uK,save:zC}]});const CC=t=>{const{attributes:e,setAttributes:i}=t,{allowHeading:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowHeading"})},AC=t=>{const{attributes:e,setAttributes:i}=t,{allowSubHeading:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1, | |
| 3684 | +attributeValue:o,setAttributes:i,attributeName:"allowSubHeading"})},LC=t=>{const{attributes:e,setAttributes:i}=t,{allowDes:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowDes"})},DC=t=>{const{attributes:e,setAttributes:i}=t,{allowRating:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowRating"})},NC=t=>{const{attributes:e,setAttributes:i}=t,{allowButton:o}=e;return(0,I.jsx)(Ot,{isResponsive:!1,attributeValue:o,setAttributes:i,attributeName:"allowButton"})},IC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{badgeText:a,badgePosition:l,badgeSize:n,badgeTextShadow:s,badgeTypography:r,badgeTextColor:b,badgeTextColorH:c,badgeBackground:d,badgeBackgroundH:u,badgePadding:p}=e;return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Badge","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"), | |
| 3685 | +attributeName:"badgePosition",attributeValue:l,setAttributes:i,options:[{label:"top-left",value:"top-left",icon:"arrow-left"},{label:"bottom-left",value:"bottom-left",icon:"arrow-down"},{label:"top-right",value:"top-right",icon:"arrow-right"},{label:"bottom-right",value:"bottom-right",icon:"arrow-down"}],isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"badgeText",attributeValue:a,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"}],isResponsive:!1,attributeValue:n||"sm",attributeName:"badgeSize",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"badgeTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0, | |
| 3686 | +L.__)("Text Shadow","ablocks"),attributeName:"badgeTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"badgeTextColor",attributeValue:b||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"badgeBackground",attributeValue:d||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"badgeTextColorH",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"badgeBackgroundH",attributeValue:u,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.badgeTransition||0, | |
| 3687 | +attributeName:"badgeTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"badgeBorder",attributeValue:e?.badgeBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"badgePadding",attributeValue:p,setAttributes:i})]})})})})},VC=t=>{const{attributes:e,setAttributes:i}=t,{iconLink:o,iconPrimaryColorH:a,iconBackgroundColorH:l,iconMargin:n}=e;return(0,I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"icon",attributes:e,setAttributes:i}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"iconLink",attributeValue:o,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"iconMargin", | |
| 3688 | +attributeValue:n,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{attributes:e,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"iconPrimaryColorH",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"iconBackgroundColorH",attributeValue:l,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.iconTransition||0,attributeName:"iconTransition",setAttributes:i})]})})]})})})},OC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{heading:a,headingTag:l,headingTypography:n,headingTextShadow:s,headingTextStroke:r,headingTextColor:b,headingTextColorHover:c,headingMargin:d}=e;return(0,I.jsx)(V,{title:(0,L.__)("Heading","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0, | |
| 3689 | +L.__)("Title","ablocks"),attributeName:"heading",attributeValue:a,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks"),context:o}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"headingTag",attributeValue:l,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"headingTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"headingTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"headingTextStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"headingTextColor",attributeValue:b,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{ | |
| 3690 | +label:(0,L.__)("Color","ablocks"),attributeName:"headingTextColorHover",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.headingTransition||0,attributeName:"headingTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"headingMargin",attributeValue:d,setAttributes:i})]})})})},YC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{subHeading:a,subHeadingTag:l,subHeadingTypography:n,subHeadingTextShadow:s,subHeadingTextStroke:r,subHeadingTextColor:b,subHeadingTextColorHover:c,subHeadingMargin:d}=e;return(0,I.jsx)(V,{title:(0,L.__)("Sub Heading","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"subHeading",attributeValue:a,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks"),context:o}),(0, | |
| 3691 | +I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("HTML Tag","ablocks"),options:St,isSearch:!0,attributeName:"subHeadingTag",attributeValue:l,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"subHeadingTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"subHeadingTextShadow",attributeValue:s,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"subHeadingTextStroke",attributeValue:r,setAttributes:i,isResponsive:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subHeadingTextColor",attributeValue:b,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"subHeadingTextColorHover",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0, | |
| 3692 | +L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.subHeadingTransition||0,attributeName:"subHeadingTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"subHeadingMargin",attributeValue:d,setAttributes:i})]})})})},XC=t=>{const{attributes:e,setAttributes:i}=t,{desSize:o,desTextShadow:a,desTypography:l,desTextColor:n,desTextColorHover:s,des:r,desTextStroke:b,desDropCaps:c,desDropCapsTextColor:d,desMargin:u}=e;return(0,I.jsx)(V,{title:(0,L.__)("Description","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(le,{label:(0,L.__)("Title","ablocks"),attributeName:"des",attributeValue:r,setAttributes:i,placeholder:(0,L.__)("Enter your title","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Drop caps","ablocks"),attributeValue:e.desDropCaps,setAttributes:i,attributeName:"desDropCaps"}),c&&(0, | |
| 3693 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desDropCapsTextColor",attributeValue:d,setAttributes:i})]})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:l,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:a,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:b,setAttributes:i,isResponsive:!0}),(0,I.jsx)(At,{normal:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desTextColor",attributeValue:n,setAttributes:i})}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"desTextColorHover",attributeValue:s,setAttributes:i}),(0,I.jsx)(_t,{label:(0, | |
| 3694 | +L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.desTransition||0,attributeName:"desTransition",setAttributes:i})]})}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"desMargin",attributeValue:u,setAttributes:i})]})})})};var BC=i(34415);const EC=t=>{switch(t){case"px":default:return 100;case"em":case"rem":return 10}},FC=t=>{const{attributes:e,setAttributes:i}=t,{ratingScale:o,ratingColor:a,ratingColorHover:l,ratingUnmarkedColor:n,ratingNumberPosition:s,ratingUnmarkedColorHover:r,showRatingNumber:b,showCount:c,spacing:d,ratingNumberColor:u,ratingNumberTypography:p,rating:m,ratingNumberGap:h,ratingMargin:g}=e,f=[{label:(0,L.__)("0 to 1","ablocks"),value:1},{label:(0,L.__)("0 to 5","ablocks"),value:5},{label:(0,L.__)("0 to 10","ablocks"),value:10}],y=lt(),T=(0,M.Ic)(h,"valueUnit",y);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{title:(0,L.__)("Start Rating","ablocks"),initialOpen:!1, | |
| 3695 | +children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Scale","ablocks"),options:f,attributeName:"ratingScale",attributeValue:o,onChangeHandler:t=>{i({ratingScale:t,rating:e?.rating>t?t:e?.rating})}}),(0,I.jsx)(As,{label:(0,L.__)("Rating","ablocks"),attributeName:"rating",attributeValue:m,step:.1,setAttributes:i,disableDynamicContent:!1}),(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"starIcon",attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Rating number","ablocks"),attributeName:"showRatingNumber",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Total Rating number","ablocks"),attributeName:"showCount",attributeValue:c,setAttributes:i,isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Spacing","ablocks"),isResponsive:!0,hasUnit:!0,attributeName:"spacing",attributeValue:d,setAttributes:i, | |
| 3696 | +attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],step:1,min:1,max:30,isInline:!1,attributeDefaultValue:BC.CB,autoSyncRange:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"ratingMargin",attributeValue:g,setAttributes:i}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Marked Color","ablocks"),attributeName:"ratingColor",attributeValue:a,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColor",attributeValue:n,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Marked Color","ablocks"),attributeName:"ratingColorHover",attributeValue:l,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Unmarked Color","ablocks"),attributeName:"ratingUnmarkedColorHover",attributeValue:r,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"), | |
| 3697 | +min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.ratingTransition||0,attributeName:"ratingTransition",setAttributes:i})]})})]})})}),b&&(0,I.jsx)(V,{title:(0,L.__)("Rating Number","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),isResponsive:!1,attributeName:"ratingNumberPosition",attributeObjectKey:"ratingNumberPosition",attributeValue:s,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),attributeName:"ratingNumberGap",attributeObjectKey:"value",attributeValue:h,setAttributes:i,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],min:1,max:EC(T),isInline:!1,hasUnit:!0,attributeDefaultValue:BC.ZO,autoSyncRange:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0, | |
| 3698 | +I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"ratingNumberColor",attributeValue:u,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"ratingNumberTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e})]})})})]})},qC=t=>{const{attributes:e,setAttributes:i,context:o}=t,{btnText:a,btnSize:l,btnTextShadow:n,btnTypography:s,btnTextColor:r,btnTextColorH:b,btnBackground:c,btnBackgroundH:d,btnPadding:u,btnMargin:p,btnIconPosition:m,btnLink:h,btnShowIcon:g}=e;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"btnText",attributeValue:a,setAttributes:i,isInline:!1,context:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0, | |
| 3699 | +L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:l||"sm",attributeName:"btnSize",setAttributes:i}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"),attributeName:"btnLink",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:g,setAttributes:i,attributeName:"btnShowIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"btnTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"btnTextShadow",attributeValue:n,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"), | |
| 3700 | +attributeName:"btnTextColor",attributeValue:r||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"btnBackground",attributeValue:c||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"btnTextColorH",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"btnBackgroundH",attributeValue:d,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.btnTransition||0,attributeName:"btnTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"btnBorder",attributeValue:e?.btnBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0, | |
| 3701 | +attributeName:"btnPadding",attributeValue:u,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"btnMargin",attributeValue:p,setAttributes:i})]})})}),g&&(0,I.jsx)(V,{title:(0,L.__)("Button Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"btnIcon",attributes:e,setAttributes:i,legacySupport:!0,legacyIconSizeSupport:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:m||"left",attributeName:"btnIconPosition",setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,attributePrefix:"btnIcon",isHoverColor:!0,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1, | |
| 3702 | +isResponsive:!1,attributeName:"btnIconSpace",attributeValue:e?.btnIconSpace,setAttributes:i,attributeObjectKey:"iconSpace"})]})})})]})};var $C=i(91353);function GC(t){const{attributes:e,setAttributes:i}=t,{iconPlacement:o,iconGap:a,contentGap:n,blockElements:s,alignment:r,iconAlignment:b,allowButtonHover:c,allowBadge:d,allowIcon:u,allowBadgeHover:p,allowHeading:m,allowSubHeading:h,allowDes:g,allowRating:f,allowButton:y}=e,T=e=>{switch(e){case 0:return(0,I.jsx)(CC,{...t});case 1:return(0,I.jsx)(AC,{...t});case 2:return(0,I.jsx)(LC,{...t});case 3:return(0,I.jsx)(DC,{...t});case 4:return(0,I.jsx)(NC,{...t})}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-flip-box-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Info Box","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:[e.allowIcon?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{allowDeselect:!0, | |
| 3703 | +isResponsive:!0,label:(0,L.__)("Icon placement","ablocks"),options:[{value:"row",label:(0,L.__)("Left","ablocks")},{value:"column",label:(0,L.__)("Top","ablocks")},{value:"row-reverse",label:(0,L.__)("Right","ablocks")}],attributeName:"iconPlacement",attributeValue:o,setAttributes:i}),(0,I.jsx)(Jt,{label:(0,L.__)("Icon Alignment","ablocks"),options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"iconAlignment",attributeValue:b,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"iconGap",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:$C.AZ})]}):null,(0,I.jsx)(Jt,{label:(0,L.__)("Content Alignment","ablocks"),options:[{label:"flex-start", | |
| 3704 | +value:"flex-start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:r,setAttributes:i,isInline:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Content Gap","ablocks"),min:0,max:100,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,isResponsive:!0,attributeName:"contentGap",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:$C.c8}),y?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Button hover","ablocks"),attributeValue:c,setAttributes:i,attributeName:"allowButtonHover"}):null,(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Badge","ablocks"),attributeValue:d,setAttributes:i,attributeName:"allowBadge"}),d?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Badge hover","ablocks"),attributeValue:p,setAttributes:i,attributeName:"allowBadgeHover"}):null,(0,I.jsx)(Ot,{isResponsive:!1, | |
| 3705 | +label:(0,L.__)("Enable Icon","ablocks"),attributeValue:e.allowIcon,setAttributes:i,attributeName:"allowIcon"}),(0,I.jsx)(It,{}),(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(s),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({blockElements:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[(0,I.jsx)("h3",{className:"ablocks-info-drag",children:"Draggable items"}),s?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t.id}`,index:e,children:e=>(0,I.jsx)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper info",role:"presentation",onKeyDown:()=>{},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0, | |
| 3706 | +I.jsx)("span",{className:"ablocks-list-text",children:t?.slug})]}),T(t?.id)]})})},t.id)),t.placeholder]})})})]})}),d&&(0,I.jsx)(IC,{...t}),u&&(0,I.jsx)(VC,{...t}),m&&(0,I.jsx)(OC,{...t}),h&&(0,I.jsx)(YC,{...t}),g&&(0,I.jsx)(XC,{...t}),f&&(0,I.jsx)(FC,{...t}),y&&(0,I.jsx)(qC,{...t})]})})})}GC.propTypes={};const ZC=t=>{const{attributes:e,setAttributes:i}=t,{badgeSize:o}=e,a=(0,D.useBlockProps)();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${o}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0,I.jsx)($c,{...a,tagName:"span",identifier:"badgeText",value:e.badgeText,withoutInteractiveFormatting:!0,placeholder:e.badgeText,className:"ablocks-info-box-badge-link-text",onChange:t=>i({badgeText:t})})})})},KC=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return o&&(r.target="_blank"), | |
| 3707 | +r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,wb.jM)(n)}),(0,I.jsx)(l().Fragment,{children:s?(0,I.jsx)("a",{...r,children:(0,I.jsx)(Fd,{attributes:e,attributePrefix:"icon"})}):(0,I.jsx)(Fd,{attributes:e,attributePrefix:"icon"})})},JC=t=>{const{attributes:e,setAttributes:i}=t,{headingTag:o}=e;return(0,I.jsx)($c,{tagName:o,value:e.heading,onChange:t=>i({heading:t}),placeholder:(0,L.__)("Enter your heading..","ablocks"),className:"ablocks-info-box-heading"})},QC=t=>{const{attributes:e,setAttributes:i}=t,{subHeadingTag:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)($c,{tagName:o,value:e.subHeading,className:"ablocks-info-box-sub-heading",onChange:t=>i({subHeading:t}),placeholder:(0,L.__)("Enter your subHeading..","ablocks")})})},tA=t=>{const{attributes:e,setAttributes:i}=t,{des:o,desTag:a,desDropCaps:l,desSize:n}=e;return(0,I.jsx)($c,{tagName:a||"p",value:o,placeholder:(0,L.__)("Enter your text..","ablocks"),onChange:t=>i({des:t}), | |
| 3708 | +className:s()("ablocks-info-box-text",`ablocks-info-box-text-${n}`,{"ablocks-info-box-text-drop-caps":l})})},eA=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-info-box-star-ratings",children:[(0,I.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,I.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,I.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,I.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[(0,I.jsx)($c,{tagName:"span",value:`${o}`, | |
| 3709 | +onChange:t=>setAttributes({rating:t}),placeholder:"Enter your rating.."}),a?`/${i}`:""]})]})})},iA=t=>{const{attributes:e,setAttributes:i}=t,{btnSize:o,btnIconPosition:a,btnIconClass:n,btnShowIcon:r,btnLink:{linkTarget:b,noFollow:c,keyValue:d}}=e,u=(0,D.useBlockProps)();let p={};return b&&(p.target="_blank"),p.rel=c?b?"nofollow noreferrer noopener":"nofollow":"noopener",d&&(p={...p,...(0,wb.jM)(d)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("a",{...p,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${o}`,{[`ablocks-info-box-btn-link--icon-${a}`]:n&&a},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[r&&(0,I.jsx)(Fd,{attributePrefix:"btnIcon",attributes:e}),(0,I.jsx)($c,{...u,tagName:"span",identifier:"btnText",value:e.btnText,withoutInteractiveFormatting:!0,placeholder:e.btnText,className:"ablocks-info-box-btn-link-text",onChange:t=>i({btnText:t})})]})})},oA={UU:"ablocks/info-box",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number", | |
| 3710 | +default:""},blockElements:{type:"array",default:[{id:0,slug:"Heading"},{id:1,slug:"Sub-Heading"},{id:2,slug:"Description"},{id:3,slug:"Rating"},{id:4,slug:"Button"}]},des:{type:"string",source:"html",selector:".ablocks-info-box-text",default:"Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!"},allowBadgeHover:{type:"boolean",default:!1},allowButtonHover:{type:"boolean",default:!1},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},badgeText:{type:"string",default:"Featured"},badgeSize:{type:"string",default:"xs"},badgeTextColor:{type:"string",default:"#13191B"},badgeTextColorH:{type:"string",default:""},badgeBackground:{type:"string",default:"#DDDDDF"},badgeBackgroundH:{type:"string", | |
| 3711 | +default:""},badgeTransition:{type:"number",default:""},iconPrimaryColorH:{type:"string",default:""},iconBackgroundColorH:{type:"string",default:""},iconTransition:{type:"number",default:""},heading:{type:"string",source:"html",selector:".ablocks-info-box-heading",default:"Your Info Box Title"},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B"},headingTextColorHover:{type:"string",default:""},headingTransition:{type:"number",default:""},subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:"Your Info Box Sub Title"},subHeadingTag:{type:"string",default:"h3"},subHeadingTextColor:{type:"string",default:"#13191B"},subHeadingTextColorHover:{type:"string",default:""},subHeadingTransition:{type:"number",default:""},desDropCaps:{type:"boolean",default:!1},desDropCapsTextColor:{type:"string",default:"#0f2aff"},desSize:{type:"string",default:"sm"},desGraphSize:{type:"string",default:"sm"},desTextColor:{type:"string", | |
| 3712 | +default:"#595959"},desTextColorHover:{type:"string",default:""},desTransition:{type:"number",default:""},ratingScale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingColorHover:{type:"string",default:""},ratingUnmarkedColor:{type:"string",default:"#696969"},ratingTransition:{type:"number",default:""},ratingUnmarkedColorHover:{type:"string",default:""},ratingShowCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},showCount:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},btnText:{type:"string",default:"Learn More"},btnSize:{type:"string",default:"sm"},btnTextColor:{type:"string",default:"#FAFAFA"},btnTextColorH:{type:"string",default:""},btnBackground:{type:"string",default:"#13191B"},btnBackgroundH:{type:"string",default:""},btnTransition:{type:"number",default:""},btnIconPosition:{type:"string",default:"right"},btnIconSpace:{type:"number", | |
| 3713 | +default:10},btnShowIcon:{type:"boolean",default:!0},stack:{type:"string",default:""},alignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},iconPlacement:{type:"object",default:{value:"",valueTablet:"",valueMobile:""}},badgeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"", | |
| 3714 | +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:"", | |
| 3715 | +transitionDuration:""}},badgePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},badgeTypographyGlobal:{type:"string",default:""},badgeTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"12",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", | |
| 3716 | +wordSpacingUnitMobile:"px"}},badgeTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},badgePosition:{type:"object",default:{value:"top-right",valueTablet:"",valueMobile:""}},badgeAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string", | |
| 3717 | +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",default:""},iconImageID:{type:"number",default:0}, | |
| 3718 | +iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},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, | |
| 3719 | +commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"", | |
| 3720 | +top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},iconLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},iconAlignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},headingTypographyGlobal:{type:"string",default:""},headingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"600",transform:"",style:"",decoration:"",fontSize:"28",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", | |
| 3721 | +letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headingTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headingTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},headingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},subHeadingTypographyGlobal:{type:"string",default:""},subHeadingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"500",transform:"",style:"",decoration:"",fontSize:"20",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px", | |
| 3722 | +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"}},subHeadingTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},subHeadingTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},subHeadingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"", | |
| 3723 | +unitMobile:""}},desTypographyGlobal:{type:"string",default:""},desTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"16",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",strokeWidthUnitMobile:"px",stroke:""}},desMargin:{type:"object",default:{ | |
| 3724 | +isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},btnIconSvgPath:{type:"string",default:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},btnIconSvgViewBox:{type:"string",default:"0 0 448 512"},btnIconClass:{type:"string",default:"fas fa-arrow-right"},btnIconImageUrl:{type:"string",default:""},btnIconImageID:{type:"number",default:0},btnIconImageSize:{type:"string",default:""},btnIconColor:{type:"string",default:"#FAFAFA"},btnIconBgColor:{type:"string",default:""},btnIconHoverColor:{type:"string",default:""},btnIconHoverBgColor:{type:"string",default:""}, | |
| 3725 | +btnIconType:{type:"string",default:"default"},btnIconShape:{type:"string",default:"circle"},btnIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconBorder:{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:""}},btnIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"", | |
| 3726 | +spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},btnIconSize:{type:"number",default:20},btnIconRotate:{type:"number",default:0},btnIconSizing:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIcontransitionDuration:{type:"number",default:0},btnIconImageWidth:{type:"number",default:0},btnLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},btnBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 3727 | +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:"", | |
| 3728 | +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:""}},btnPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},btnMargin:{type:"object",default:{isLinked:!0, | |
| 3729 | +isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},btnTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"", | |
| 3730 | +vertical:""}},btnAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},ratingNumberTypographyGlobal:{type:"string",default:""},ratingNumberTypography:{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"}},ratingMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"", | |
| 3731 | +unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},starIconSvgPath:{type:"string",default:"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"},starIconSvgViewBox:{type:"string",default:"0 0 576 512"},starIconClass:{type:"string",default:"far fa-star"},starIconImageUrl:{type:"string",default:""},starIconImageID:{type:"number",default:0},starIconImageSize:{type:"string",default:""},starIconColor:{type:"string",default:"#69727d"},starIconBgColor:{type:"string",default:""},starIconHoverColor:{type:"string",default:""},starIconHoverBgColor:{type:"string",default:""},starIconType:{type:"string",default:"default"}, | |
| 3732 | +starIconShape:{type:"string",default:"circle"},starIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconBorder:{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:""}},starIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"", | |
| 3733 | +shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},starIconSize:{type:"number",default:55},starIconRotate:{type:"number",default:0},starIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},starIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},starIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},starIcontransitionDuration:{type:"number",default:0},starIconImageWidth:{type:"number",default:0},rating:{type:"number",default:4},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconGap:{ | |
| 3734 | +type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{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",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"", | |
| 3735 | +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:"", | |
| 3736 | +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:"", | |
| 3737 | +hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"", | |
| 3738 | +imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1, | |
| 3739 | +videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"", | |
| 3740 | +yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1, | |
| 3741 | +maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{ | |
| 3742 | +animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function aA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:i,name:oA.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:[e.allowBadge?(0,I.jsx)(ZC,{...t}):null,e.allowIcon?(0,I.jsx)(KC,{...t}):null,(0, | |
| 3743 | +I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(JC,{...t});case 1:return n&&(0,I.jsx)(QC,{...t});case 2:return s&&(0,I.jsx)(tA,{...t});case 3:return r&&(0,I.jsx)(eA,{...t});case 4:return b&&(0,I.jsx)(iA,{...t})}})(e?.id))})]})]})}aA.propTypes={};const lA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.iconGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"gap",device:e})};return t.iconPlacement["value"+e]&&(i.display="flex",i["flex-direction"]=t.iconPlacement["value"+e]),t.iconAlignment["value"+e]&&(i["align-items"]=t.iconAlignment["value"+e]),i},nA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.badgeTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};t.badgePosition["value"+e]&&("top-left"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.top=`-${t._padding["common"+e]}px`, | |
| 3744 | +i.left=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.top||t._padding.topTablet||t._padding.topMobile||(i.top="-30px"),t._padding.left||t._padding.leftTablet||t._padding.leftMobile||(i.left="-30px")),i.bottom="auto",i.right="auto"):"top-right"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.top=`-${t._padding["common"+e]}px`,i.right=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.top||t._padding.topTablet||t._padding.topMobile||(i.top="-30px"),t._padding.right||t._padding.rightTablet||t._padding.rightMobile||(i.right="-30px")),i.left="auto",i.bottom="auto"):"bottom-left"===t.badgePosition["value"+e]?(t._padding["common"+e]?(i.bottom=`-${t._padding["common"+e]}px`, | |
| 3720 | 3745 | i.left=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||(i.bottom="-30px"),t._padding.left||t._padding.leftTablet||t._padding.leftMobile||(i.left="-30px")),i.top="auto",i.right="auto"):"bottom-right"===t.badgePosition["value"+e]&&(t._padding["common"+e]?(i.bottom=`-${t._padding["common"+e]}px`,i.right=`-${t._padding["common"+e]}px`):t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||(i.bottom="-30px"),t._padding.right||t._padding.rightTablet||t._padding.rightMobile||(i.right="-30px")),i.left="auto",i.top="auto")),t.badgePosition["value"+e]&&("top-left"===t.badgePosition["value"+e]?(t._padding["top"+e]?i.top=`-${t._padding["top"+e]}px`:t._padding.top||t._padding.topTablet||t._padding.topMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.top="-30px"), |
| 3721 | 3746 | t._padding["left"+e]?i.left=`-${t._padding["left"+e]}px`:t._padding.left||t._padding.leftTablet||t._padding.leftMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.left="-30px"),i.bottom="auto",i.right="auto"):"top-right"===t.badgePosition["value"+e]?(t._padding["top"+e]?i.top=`-${t._padding["top"+e]}px`:t._padding.top||t._padding.topTablet||t._padding.topMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.top="-30px"),t._padding["right"+e]?i.right=`-${t._padding["right"+e]}px`:t._padding.right||t._padding.rightTablet||t._padding.rightMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.right="-30px"),i.left="auto",i.bottom="auto"):"bottom-left"===t.badgePosition["value"+e]?(t._padding["bottom"+e]?i.bottom=`-${t._padding["bottom"+e]}px`:t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.bottom="-30px"), |
| 3722 | -t._padding["left"+e]?i.left=`-${t._padding["left"+e]}px`:t._padding.left||t._padding.leftTablet||t._padding.leftMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.left="-30px"),i.top="auto",i.right="auto"):"bottom-right"===t.badgePosition["value"+e]&&(t._padding["bottom"+e]?i.bottom=`-${t._padding["bottom"+e]}px`:t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.bottom="-30px"),t._padding["right"+e]?i.right=`-${t._padding["right"+e]}px`:t._padding.right||t._padding.rightTablet||t._padding.rightMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.right="-30px"),i.left="auto",i.top="auto"));const o=(0,M.Zy)(t.badgeTypography,{weight:"400"}),a=t.badgeTypographyGlobal?t.badgeTypographyGlobal:[];return{...i,color:(0,gs.qD)(t?.badgeTextColor),background:(0,gs.qD)(t?.badgeBackground),...(0,y.qD)(t?.badgeBorder,e),...(0,P.qD)(o,e,a),...(0, | |
| 3723 | -c.qD)(t?.badgePadding,"padding",e)}},OC=(t,e="")=>({color:(0,gs.qD)(t?.badgeTextColorH),background:(0,gs.qD)(t?.badgeTextColorH),...(0,y.a9)(t?.badgeBorder,e)}),YC=t=>({...(0,pc.qD)(t?.badgeTextShadow)}),XC=(t,e="")=>{const i=(0,M.Zy)(t?.iconMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},BC=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.contentGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e})};return t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},EC=(t,e="")=>{const i=(0,M.Zy)(t.headingTypography,{weight:"500"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.headingMargin,{unit:"px"}),l=t.headingTypographyGlobal?t.headingTypographyGlobal:[];return{...o,color:(0,gs.qD)(t?.headingTextColor),...(0,P.qD)(i,e,l),...(0,fc.qD)(t?.headingTextStroke,e), | |
| 3724 | -...(0,pc.qD)(t?.headingTextShadow),...(0,c.qD)(a,"margin",e)}},FC=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.headingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.headingTextColorHover&&(i.color=(0,gs.qD)(t?.headingTextColorHover)),i},qC=(t,e="")=>{const i=(0,M.Zy)(t.subHeadingTypography,{weight:"400"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.subHeadingMargin,{unit:"px"}),l=t.subHeadingTypographyGlobal?t.subHeadingTypographyGlobal:[];return{...o,color:(0,gs.qD)(t?.subHeadingTextColor),...(0,P.qD)(i,e,l),...(0,fc.qD)(t?.subHeadingTextStroke,e),...(0,pc.qD)(t?.subHeadingTextShadow),...(0,c.qD)(a,"margin",e)}},$C=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.subHeadingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s", | |
| 3725 | -property:"transition-duration",device:e})};return t.subHeadingTextColorHover&&(i.color=(0,gs.qD)(t?.subHeadingTextColorHover)),i},GC=(t,e="")=>{const i=[];"flex-start"===t.alignment["value"+e]?i["text-align"]="left":"flex-end"===t.alignment["value"+e]?i["text-align"]="right":i["text-align"]=t.alignment["value"+e];const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=(0,M.Zy)(t?.desMargin,{unit:"px"}),l=t.desTypographyGlobal?t.desTypographyGlobal:[];return{...i,color:(0,gs.qD)(t?.desTextColor),...(0,P.qD)(o,e,l),...(0,fc.qD)(t?.desTextStroke,e),...(0,pc.qD)(t?.desTextShadow),...(0,c.qD)(a,"margin",e)}},ZC=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.desTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.desTextColorHover&&(i.color=(0,gs.qD)(t?.desTextColorHover)),i},KC=t=>{const e={};return t.desDropCapsTextColor&&(e.color=(0,gs.qD)(t?.desDropCapsTextColor)),e},JC=(t,e="")=>{const i=(0,M.Zy)(t?.ratingMargin,{ | |
| 3726 | -unit:"px"});return{...{...(0,Ob.qD)({attributeValue:t?.ratingNumberGap,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e}),...(0,c.qD)(i,"margin",e)},...(0,Gt.qD)(t?.alignment,"justify-content",e)}},QC=(t,e="")=>{const i=[];""!==t.ratingNumberPosition&&("left"===t.ratingNumberPosition?i.order="-5":i.order="10");const o=(0,M.Zy)(t.ratingNumberTypography,{weight:"400"}),a=t.ratingNumberTypographyGlobal?t.ratingNumberTypographyGlobal:[];return{...i,color:(0,gs.qD)(t?.ratingNumberColor),...(0,P.qD)(o,e,a)}},tA=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.spacing,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e})}),eA=t=>{const e=[];return t.ratingColor&&(e.fill=(0,gs.qD)(t?.ratingColor)),e},iA=t=>{const e=[];return t.ratingUnmarkedColor&&(e.fill=(0,gs.qD)(t?.ratingUnmarkedColor)),e},oA=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.ratingTransition, | |
| 3727 | -attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingColorHover&&(i.fill=(0,gs.qD)(t?.ratingColorHover)),i},aA=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.ratingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingUnmarkedColorHover&&(i.fill=(0,gs.qD)(t?.ratingUnmarkedColorHover)),i},lA=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.btnTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e}),...(0,Ob.qD)({attributeValue:t?.btnIconSpace,attributeObjectKey:"value",defaultValue:10,unitDefaultValue:"px",property:"column-gap",device:e})},o=(0,M.Zy)(t.btnTypography,{weight:"400"}),a=(0,M.Zy)(t?.btnMargin,{unit:"px"}),l=t.btnTypographyGlobal?t.btnTypographyGlobal:[];return{...i,color:(0,gs.qD)(t?.btnTextColor),background:(0,gs.qD)(t?.btnBackground),...(0,y.qD)(t?.btnBorder,e), | |
| 3728 | -...(0,P.qD)(o,e,l),...(0,c.qD)(t?.btnPadding,"padding",e),...(0,c.qD)(a,"margin",e)}},nA=(t,e="")=>({color:(0,gs.qD)(t?.btnTextColorH),background:(0,gs.qD)(t?.btnBackgroundH),...(0,y.a9)(t?.btnBorder,e)}),sA=t=>{const e={};return t?.btnTextColorH&&(e.fill=(0,gs.qD)(t?.btnTextColorH)),e},rA=t=>({...(0,pc.qD)(t?.btnTextShadow)}),bA=[{name:"Start",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/info-box/start.svg",alt:"start"}),attributes:{variationSelected:"row",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-start"}},scope:["block"]},{name:"Middle",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/info-box/middle.svg",alt:"middle"}),attributes:{variationSelected:"column",iconAlignment:{value:"center"},contentAlignment:{value:"center"}},scope:["block"]},{name:"End",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/info-box/end.svg",alt:"end"}),attributes:{variationSelected:"row-reverse",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-end"}},scope:["block"] | |
| 3729 | -}],cA=t=>{const{clientId:e,setAttributes:i,defaultVariation:o}=t;return(0,L.jsxs)("div",{className:"ablocks-info-box-block-variation-picker",children:[(0,L.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,L.jsx)(C.__experimentalBlockVariationPicker,{label:(0,z.__)("Select, Customize, Shine Bright!","ablocks"),instructions:(0,z.__)("","ablocks"),variations:bA,onSelect:t=>((t=o)=>{if(t.attributes){const e={value:"",valueTablet:"",valueMobile:""};e.value=t.attributes.variationSelected,i({alignment:t.attributes.contentAlignment,iconPlacement:e,iconAlignment:t.attributes.iconAlignment})}})(t)})]})},dA=t=>{const{attributes:e}=t,{badgeSize:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${i}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0, | |
| 3730 | -L.jsx)(C.RichText.Content,{tagName:"span",value:e.badgeText,className:"ablocks-info-box-badge-link-text"})})})},uA=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return s&&(r.href=s),o&&(r.target="_blank"),r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,Wb.jM)(n)}),(0,L.jsx)(l().Fragment,{children:s?(0,L.jsx)("a",{...r,children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)(Vd,{attributes:e})})},pA=t=>{const{attributes:e}=t,{headingTag:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.RichText.Content,{tagName:i,className:"ablocks-info-box-heading",value:e.heading})})},mA=t=>{const{attributes:e}=t,{subHeadingTag:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.RichText.Content,{tagName:i,className:"ablocks-info-box-sub-heading",value:e.subHeading})})},hA=t=>{const{attributes:e}=t,{desDropCaps:i,desSize:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.RichText.Content,{tagName:"p", | |
| 3731 | -className:s()("ablocks-info-box-text",`ablocks-info-box-text-${o}`,{"ablocks-info-box-text-drop-caps":i}),value:e.des})})},gA=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-info-box-star-ratings",children:[(0,L.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,L.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,L.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,L.jsx)(Vd,{attributePrefix:"starIcon",attributes:e})}),(0,L.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,L.jsx)(Vd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,L.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[o,a?`/${i}`:""]})]})})},fA=t=>{ | |
| 3732 | -const{attributes:e}=t,{btnSize:i,btnIconPosition:o,btnIconClass:a,btnShowIcon:n,btnLink:{href:r,linkTarget:b,noFollow:c,keyValue:d}}=e;let u={};return r&&(u.href=r),b&&(u.target="_blank"),u.rel=c?b?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",d&&(u={...u,...(0,Wb.jM)(d)}),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("a",{...u,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${i}`,{[`ablocks-info-box-btn-link--icon-${o}`]:a&&o},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[n&&(0,L.jsx)(Vd,{attributePrefix:"btnIcon",attributes:e}),(0,L.jsx)(C.RichText.Content,{tagName:"span",value:e.btnText,className:"ablocks-info-box-btn-link-text"})]})})};function yA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:DC.UU,attributes:e,children:[e.allowBadge?(0,L.jsx)(dA,{...t | |
| 3733 | -}):null,e.allowIcon?(0,L.jsx)(uA,{...t}):null,(0,L.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,L.jsx)(pA,{...t});case 1:return n&&(0,L.jsx)(mA,{...t});case 2:return s&&(0,L.jsx)(hA,{...t});case 3:return r&&(0,L.jsx)(gA,{...t});case 4:return b&&(0,L.jsx)(fA,{...t})}})(e?.id))})]})})}function TA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:DC.UU,attributes:e,children:[e.allowBadge?(0,L.jsx)(dA,{...t}):null,e.allowIcon?(0,L.jsx)(uA,{...t}):null,(0,L.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,L.jsx)(pA,{...t});case 1:return n&&(0,L.jsx)(mA,{...t});case 2:return s&&(0,L.jsx)(hA,{...t});case 3:return r&&(0,L.jsx)(gA,{...t});case 4:return b&&(0,L.jsx)(fA,{...t})}})(e?.id))})]})})} | |
| 3734 | -yA.propTypes={},TA.propTypes={};(0,M.xV)(DC.UU)&&(0,o.registerBlockType)(DC.UU,{attributes:DC.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--info-box"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(!i.iconPlacement||""===i.iconPlacement.value&&""!==i.stack){const t={value:i.stack||"",valueTablet:"",valueMobile:""};o({iconPlacement:t,stack:""})}},[]);const s=(0,a.useMemo)(()=>{if(!i?.iconPlacement)return"";let t=null;if(t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container",IC(i),IC(i,"Tablet"),IC(i,"Mobile")), | |
| 3735 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link",VC(i),VC(i,"Tablet"),VC(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link:hover",OC(i,""),OC(i,"Tablet"),OC(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link > .ablocks-info-box-badge-link-text",YC(i),YC(i),YC(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content",BC(i),BC(i,"Tablet"),BC(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")), | |
| 3736 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",XC(i),XC(i,"Tablet"),XC(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap:hover, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-icon-wrap > img.ablocks-image-icon, {{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > a .ablocks-icon-wrap > img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")), | |
| 3737 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-icon-wrap > img.ablocks-image-icon, {{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > a .ablocks-icon-wrap > img.ablocks-image-icon",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > .ablocks-icon-wrap svg.ablocks-svg-icon , {{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > a .ablocks-icon-wrap svg.ablocks-svg-icon",((t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.iconTransition, | |
| 3738 | -attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconPrimaryColorH&&(i.fill=(0,gs.qD)(t?.iconPrimaryColorH)),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > .ablocks-icon-wrap , {{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > a .ablocks-icon-wrap",((t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t?.iconTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconBackgroundColorH&&(i.background=t.iconBackgroundColorH),i})(i));const e=EC(i);return i?.headingTextColor&&(e.color=i.headingTextColor),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",EC(i),EC(i,"Tablet"),EC(i,"Mobile")), | |
| 3739 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",FC(i),FC(i,"Tablet"),FC(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",qC(i),qC(i,"Tablet"),qC(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",$C(i),$C(i,"Tablet"),$C(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",GC(i),GC(i,"Tablet"),GC(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",ZC(i),ZC(i,"Tablet"),ZC(i,"Mobile")), | |
| 3740 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text-drop-caps::first-letter",KC(i),KC(i),KC(i)),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings",JC(i),JC(i,"Tablet"),JC(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap , {{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap",(0,vd.PT)(i,"","starIcon"),(0,vd.PT)(i,"Tablet","starIcon"),(0,vd.PT)(i,"Mobile","starIcon")),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons",tA(i),tA(i,"Tablet"),tA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",eA(i),eA(i),eA(i)), | |
| 3741 | -t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",iA(i),iA(i),iA(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",oA(i),oA(i,"Tablet"),oA(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",aA(i),aA(i,"Tablet"),aA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-rating-number",QC(i),QC(i,"Tablet"),QC(i,"Mobile")), | |
| 3742 | -t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link",lA(i),lA(i,"Tablet"),lA(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover",nA(i,""),nA(i,"Tablet"),nA(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover > .ablocks-icon-wrap > svg.ablocks-svg-icon",sA(i),sA(i),sA(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link > .ablocks-info-box-btn-link-text",rA(i),rA(i),rA(i)),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap",(0,vd.PT)(i,"","btnIcon"),(0,vd.PT)(i,"Tablet","btnIcon"),(0,vd.PT)(i,"Mobile","btnIcon")), | |
| 3743 | -t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover",(0,vd.fW)(i,"","btnIcon"),(0,vd.fW)(i,"Tablet","btnIcon"),(0,vd.fW)(i,"Mobile","btnIcon")),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,vd.eG)(i,"","btnIcon"),(0,vd.eG)(i,"Tablet","btnIcon"),(0,vd.eG)(i,"Mobile","btnIcon")),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon:hover",(0,vd.RV)(i,"","btnIcon"),(0,vd.RV)(i,"Tablet","btnIcon"),(0,vd.RV)(i,"Mobile","btnIcon")),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover > svg.ablocks-svg-icon",(0,vd.RV)(i,"","btnIcon"),(0,vd.RV)(i,"Tablet","btnIcon"),(0,vd.RV)(i,"Mobile","btnIcon")),t.generateCSS()},[i]);return""===i?.iconPlacement?.value?(0,L.jsx)(cA,{...t}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(UC,{...t}),(0,L.jsx)(NC,{...t})]})},save:yA,variations:bA,deprecated:[{ | |
| 3744 | -attributes:{block_id:{type:"string",default:""},blockElements:{type:"array",default:[{id:0,slug:"Heading"},{id:1,slug:"Sub-Heading"},{id:2,slug:"Description"},{id:3,slug:"Rating"},{id:4,slug:"Button"}]},des:{type:"string",source:"html",selector:".ablocks-info-box-text",default:"Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!"},allowBadgeHover:{type:"boolean",default:!1},allowButtonHover:{type:"boolean",default:!1},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},badgeText:{type:"string",default:"Featured"},badgeSize:{type:"string",default:"xs"},badgeTextColor:{type:"string",default:"#13191B"},badgeTextColorH:{type:"string",default:""},badgeBackground:{type:"string",default:"#DDDDDF" | |
| 3745 | -},badgeBackgroundH:{type:"string",default:""},badgeTransition:{type:"number",default:""},iconPrimaryColorH:{type:"string",default:""},iconTransition:{type:"number",default:""},heading:{type:"string",source:"html",selector:".ablocks-info-box-heading",default:"Your Info Box Title"},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B"},headingTextColorHover:{type:"string",default:""},headingTransition:{type:"number",default:""},subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:"Your Info Box Sub Title"},subHeadingTag:{type:"string",default:"h4"},subHeadingTextColor:{type:"string",default:"#13191B"},subHeadingTextColorHover:{type:"string",default:""},subHeadingTransition:{type:"number",default:""},desDropCaps:{type:"boolean",default:!1},desDropCapsTextColor:{type:"string",default:"#0f2aff"},desGraphSize:{type:"string",default:"sm"},desSize:{type:"string",default:"sm"},desTextColor:{type:"string",default:"#74777C"}, | |
| 3746 | -desTextColorHover:{type:"string",default:"gray"},desTransition:{type:"number",default:""},ratingScale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingColorHover:{type:"string",default:""},ratingUnmarkedColor:{type:"string",default:"#696969"},ratingTransition:{type:"number",default:""},ratingUnmarkedColorHover:{type:"string",default:""},ratingShowCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},btnText:{type:"string",default:"Learn More"},btnSize:{type:"string",default:"sm"},btnTextColor:{type:"string",default:"#FAFAFA"},btnTextColorH:{type:"string",default:""},btnBackground:{type:"string",default:"#13191B"},btnBackgroundH:{type:"string",default:""},btnTransition:{type:"number",default:""},btnIconPosition:{type:"string",default:"right"},btnIconSpace:{type:"number",default:10},btnShowIcon:{type:"boolean",default:!0}, | |
| 3747 | -alignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},stack:{type:"string",default:""},badgeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", | |
| 3748 | -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:""}},badgePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"", | |
| 3749 | -left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},badgeTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"12",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"}},badgeTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},badgePosition:{type:"object",default:{value:"top-right",valueTablet:"",valueMobile:""}}, | |
| 3750 | -badgeAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},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", | |
| 3751 | -default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{ | |
| 3752 | -type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},iconAlignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},headingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"600",transform:"",style:"",decoration:"",fontSize:"28",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:"", | |
| 3753 | -wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headingTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},headingTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},subHeadingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"500",transform:"",style:"",decoration:"",fontSize:"20",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"}},subHeadingTextShadow:{type:"object", | |
| 3754 | -default:{color:"",blur:"",horizontal:"",vertical:""}},subHeadingTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},desTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"16",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:{ | |
| 3755 | -strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},btnIconSvgPath:{type:"string",default:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},btnIconSvgViewBox:{type:"string",default:"0 0 448 512"},btnIconClass:{type:"string",default:"fas fa-arrow-right"},btnIconImageUrl:{type:"string",default:""},btnIconImageID:{type:"number",default:0},btnIconImageSize:{type:"string",default:""},btnIconColor:{type:"string",default:"#FAFAFA"},btnIconBgColor:{type:"string",default:""},btnIconType:{type:"string",default:"default"},btnIconShape:{type:"string",default:"circle"},btnIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconBorderRadius:{ | |
| 3756 | -type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconSize:{type:"number",default:20},btnIconRotate:{type:"number",default:0},btnIconSizing:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIcontransitionDuration:{type:"number",default:0},btnIconImageWidth:{type:"number",default:0},btnLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},btnBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default", | |
| 3747 | +t._padding["left"+e]?i.left=`-${t._padding["left"+e]}px`:t._padding.left||t._padding.leftTablet||t._padding.leftMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.left="-30px"),i.top="auto",i.right="auto"):"bottom-right"===t.badgePosition["value"+e]&&(t._padding["bottom"+e]?i.bottom=`-${t._padding["bottom"+e]}px`:t._padding.bottom||t._padding.bottomTablet||t._padding.bottomMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.bottom="-30px"),t._padding["right"+e]?i.right=`-${t._padding["right"+e]}px`:t._padding.right||t._padding.rightTablet||t._padding.rightMobile||t._padding.common||t._padding.commonTablet||t._padding.commonMobile||(i.right="-30px"),i.left="auto",i.top="auto"));const o=(0,M.Zy)(t.badgeTypography,{weight:"400"}),a=t.badgeTypographyGlobal?t.badgeTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.badgeTextColor),background:(0,Hs.qD)(t?.badgeBackground),...(0,y.qD)(t?.badgeBorder,e),...(0,U.qD)(o,e,a),...(0, | |
| 3748 | +c.qD)(t?.badgePadding,"padding",e)}},sA=(t,e="")=>({color:(0,Hs.qD)(t?.badgeTextColorH),background:(0,Hs.qD)(t?.badgeTextColorH),...(0,y.a9)(t?.badgeBorder,e)}),rA=t=>({...(0,fc.qD)(t?.badgeTextShadow)}),bA=(t,e="")=>{const i=(0,M.Zy)(t?.iconMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},cA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.contentGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e})};return t.alignment["value"+e]&&(i["align-items"]=t.alignment["value"+e]),i},dA=(t,e="")=>{const i=(0,M.Zy)(t.headingTypography,{weight:"500"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.headingMargin,{unit:"px"}),l=t.headingTypographyGlobal?t.headingTypographyGlobal:[];return{...o,color:(0,Hs.qD)(t?.headingTextColor),...(0,U.qD)(i,e,l),...(0,Mc.qD)(t?.headingTextStroke,e), | |
| 3749 | +...(0,fc.qD)(t?.headingTextShadow),...(0,c.qD)(a,"margin",e)}},uA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.headingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.headingTextColorHover&&(i.color=(0,Hs.qD)(t?.headingTextColorHover)),i},pA=(t,e="")=>{const i=(0,M.Zy)(t.subHeadingTypography,{weight:"400"}),o=[];"flex-start"===t.alignment["value"+e]?o["text-align"]="left":"flex-end"===t.alignment["value"+e]?o["text-align"]="right":o["text-align"]=t.alignment["value"+e];const a=(0,M.Zy)(t?.subHeadingMargin,{unit:"px"}),l=t.subHeadingTypographyGlobal?t.subHeadingTypographyGlobal:[];return{...o,color:(0,Hs.qD)(t?.subHeadingTextColor),...(0,U.qD)(i,e,l),...(0,Mc.qD)(t?.subHeadingTextStroke,e),...(0,fc.qD)(t?.subHeadingTextShadow),...(0,c.qD)(a,"margin",e)}},mA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.subHeadingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s", | |
| 3750 | +property:"transition-duration",device:e})};return t.subHeadingTextColorHover&&(i.color=(0,Hs.qD)(t?.subHeadingTextColorHover)),i},hA=(t,e="")=>{const i=[];"flex-start"===t.alignment["value"+e]?i["text-align"]="left":"flex-end"===t.alignment["value"+e]?i["text-align"]="right":i["text-align"]=t.alignment["value"+e];const o=(0,M.Zy)(t.desTypography,{weight:"400"}),a=(0,M.Zy)(t?.desMargin,{unit:"px"}),l=t.desTypographyGlobal?t.desTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.desTextColor),...(0,U.qD)(o,e,l),...(0,Mc.qD)(t?.desTextStroke,e),...(0,fc.qD)(t?.desTextShadow),...(0,c.qD)(a,"margin",e)}},gA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.desTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.desTextColorHover&&(i.color=(0,Hs.qD)(t?.desTextColorHover)),i},fA=t=>{const e={};return t.desDropCapsTextColor&&(e.color=(0,Hs.qD)(t?.desDropCapsTextColor)),e},yA=(t,e="")=>{const i=(0,M.Zy)(t?.ratingMargin,{ | |
| 3751 | +unit:"px"});return{...{...(0,Eb.qD)({attributeValue:t?.ratingNumberGap,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e}),...(0,c.qD)(i,"margin",e)},...(0,Zt.qD)(t?.alignment,"justify-content",e)}},TA=(t,e="")=>{const i=[];""!==t.ratingNumberPosition&&("left"===t.ratingNumberPosition?i.order="-5":i.order="10");const o=(0,M.Zy)(t.ratingNumberTypography,{weight:"400"}),a=t.ratingNumberTypographyGlobal?t.ratingNumberTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.ratingNumberColor),...(0,U.qD)(o,e,a)}},HA=(t,e="")=>({...(0,Eb.qD)({attributeValue:t?.spacing,attributeObjectKey:"value",defaultValue:0,hasUnit:!0,unitDefaultValue:"px",isResponsive:!0,property:"gap",device:e})}),MA=t=>{const e=[];return t.ratingColor&&(e.fill=(0,Hs.qD)(t?.ratingColor)),e},xA=t=>{const e=[];return t.ratingUnmarkedColor&&(e.fill=(0,Hs.qD)(t?.ratingUnmarkedColor)),e},kA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.ratingTransition, | |
| 3752 | +attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingColorHover&&(i.fill=(0,Hs.qD)(t?.ratingColorHover)),i},vA=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.ratingTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.ratingUnmarkedColorHover&&(i.fill=(0,Hs.qD)(t?.ratingUnmarkedColorHover)),i},_A=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.btnTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e}),...(0,Eb.qD)({attributeValue:t?.btnIconSpace,attributeObjectKey:"value",defaultValue:10,unitDefaultValue:"px",property:"column-gap",device:e})},o=(0,M.Zy)(t.btnTypography,{weight:"400"}),a=(0,M.Zy)(t?.btnMargin,{unit:"px"}),l=t.btnTypographyGlobal?t.btnTypographyGlobal:[];return{...i,color:(0,Hs.qD)(t?.btnTextColor),background:(0,Hs.qD)(t?.btnBackground),...(0,y.qD)(t?.btnBorder,e), | |
| 3753 | +...(0,U.qD)(o,e,l),...(0,c.qD)(t?.btnPadding,"padding",e),...(0,c.qD)(a,"margin",e)}},RA=(t,e="")=>({color:(0,Hs.qD)(t?.btnTextColorH),background:(0,Hs.qD)(t?.btnBackgroundH),...(0,y.a9)(t?.btnBorder,e)}),SA=t=>{const e={};return t?.btnTextColorH&&(e.fill=(0,Hs.qD)(t?.btnTextColorH)),e},WA=t=>({...(0,fc.qD)(t?.btnTextShadow)}),PA=[{name:"Start",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/start.svg",alt:"start"}),attributes:{variationSelected:"row",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-start"}},scope:["block"]},{name:"Middle",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/middle.svg",alt:"middle"}),attributes:{variationSelected:"column",iconAlignment:{value:"center"},contentAlignment:{value:"center"}},scope:["block"]},{name:"End",icon:(0,I.jsx)("img",{src:M.hq+"assets/images/info-box/end.svg",alt:"end"}),attributes:{variationSelected:"row-reverse",iconAlignment:{value:"flex-start"},contentAlignment:{value:"flex-end"}},scope:["block"] | |
| 3754 | +}],UA=t=>{const{clientId:e,setAttributes:i,defaultVariation:o}=t;return(0,I.jsxs)("div",{className:"ablocks-info-box-block-variation-picker",children:[(0,I.jsx)("span",{className:"ablocks-variation-picker-delete-button ablocks-icon ablocks-icon--close",onClick:()=>wp.data.dispatch("core/block-editor").removeBlock(e),role:"presentation"}),(0,I.jsx)(D.__experimentalBlockVariationPicker,{label:(0,L.__)("Select, Customize, Shine Bright!","ablocks"),instructions:(0,L.__)("","ablocks"),variations:PA,onSelect:t=>((t=o)=>{if(t.attributes){const e={value:"",valueTablet:"",valueMobile:""};e.value=t.attributes.variationSelected,i({alignment:t.attributes.contentAlignment,iconPlacement:e,iconAlignment:t.attributes.iconAlignment})}})(t)})]})},jA=t=>{const{attributes:e}=t,{badgeSize:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)("a",{href:"#",className:s()("ablocks-info-box-badge-link",`ablocks-info-box-badge-link--${i}`,e.allowBadgeHover?"ablocks-badge-hover-enable":""),children:(0, | |
| 3755 | +I.jsx)(D.RichText.Content,{tagName:"span",value:e.badgeText,className:"ablocks-info-box-badge-link-text"})})})},wA=t=>{const{attributes:e}=t,{iconLink:i}=e,{linkTarget:o,noFollow:a,keyValue:n,href:s}=i||{};let r={};return s&&(r.href=s),o&&(r.target="_blank"),r.rel=a?o?"nofollow noreferrer noopener":"nofollow":"noopener",n&&(r={...r,...(0,wb.jM)(n)}),(0,I.jsx)(l().Fragment,{children:s?(0,I.jsx)("a",{...r,children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)(Fd,{attributes:e})})},zA=t=>{const{attributes:e}=t,{headingTag:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:i,className:"ablocks-info-box-heading",value:e.heading})})},CA=t=>{const{attributes:e}=t,{subHeadingTag:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:i,className:"ablocks-info-box-sub-heading",value:e.subHeading})})},AA=t=>{const{attributes:e}=t,{desDropCaps:i,desSize:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.RichText.Content,{tagName:"p", | |
| 3756 | +className:s()("ablocks-info-box-text",`ablocks-info-box-text-${o}`,{"ablocks-info-box-text-drop-caps":i}),value:e.des})})},LA=t=>{const{attributes:e}=t,{ratingScale:i,rating:o,showCount:a,showRatingNumber:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("div",{className:"ablocks-info-box-star-ratings",children:[(0,I.jsx)("div",{className:"ablocks-info-box-star-ratings-icons",children:Array.from({length:i?Number(i):5}).map((t,i)=>{const a=i+1;let l=0;return a<=Math.floor(o)?l=100:a===Math.floor(o)+1&&(l=o%1*100),(0,I.jsxs)("div",{className:"ablocks-info-box-rating",children:[(0,I.jsx)("div",{className:"ablocks-info-box-rating__fill",style:{width:`${l}%`},children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})}),(0,I.jsx)("div",{className:"ablocks-info-box-rating__unfill",children:(0,I.jsx)(Fd,{attributePrefix:"starIcon",attributes:e})})]},i)})}),n&&(0,I.jsxs)("span",{className:"ablocks-info-box-star-rating-number",children:[o,a?`/${i}`:""]})]})})},DA=t=>{ | |
| 3757 | +const{attributes:e}=t,{btnSize:i,btnIconPosition:o,btnIconClass:a,btnShowIcon:n,btnLink:{href:r,linkTarget:b,noFollow:c,keyValue:d}}=e;let u={};return r&&(u.href=r),b&&(u.target="_blank"),u.rel=c?b?"nofollow noreferrer noopener":"nofollow":"nofollow noreferrer noopener",d&&(u={...u,...(0,wb.jM)(d)}),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)("a",{...u,className:s()("ablocks-info-box-btn-link",`ablocks-info-box-btn-link--${i}`,{[`ablocks-info-box-btn-link--icon-${o}`]:a&&o},e.allowButtonHover?"ablocks-button-hover-enable":""),children:[n&&(0,I.jsx)(Fd,{attributePrefix:"btnIcon",attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",value:e.btnText,className:"ablocks-info-box-btn-link-text"})]})})};function NA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:oA.UU,attributes:e,children:[e.allowBadge?(0,I.jsx)(jA,{...t | |
| 3758 | +}):null,e.allowIcon?(0,I.jsx)(wA,{...t}):null,(0,I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(zA,{...t});case 1:return n&&(0,I.jsx)(CA,{...t});case 2:return s&&(0,I.jsx)(AA,{...t});case 3:return r&&(0,I.jsx)(LA,{...t});case 4:return b&&(0,I.jsx)(DA,{...t})}})(e?.id))})]})})}function IA(t){const{attributes:e}=t,{block_id:i,blockElements:o,allowHeading:a,allowSubHeading:n,allowDes:s,allowRating:r,allowButton:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:oA.UU,attributes:e,children:[e.allowBadge?(0,I.jsx)(jA,{...t}):null,e.allowIcon?(0,I.jsx)(wA,{...t}):null,(0,I.jsx)("div",{className:"ablocks-block--info-box__content",children:o?.map(e=>(e=>{switch(e){case 0:default:return a&&(0,I.jsx)(zA,{...t});case 1:return n&&(0,I.jsx)(CA,{...t});case 2:return s&&(0,I.jsx)(AA,{...t});case 3:return r&&(0,I.jsx)(LA,{...t});case 4:return b&&(0,I.jsx)(DA,{...t})}})(e?.id))})]})})} | |
| 3759 | +NA.propTypes={},IA.propTypes={};(0,M.xV)(oA.UU)&&(0,o.registerBlockType)(oA.UU,{attributes:oA.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--info-box"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]),(0,a.useEffect)(()=>{if(!i.iconPlacement||""===i.iconPlacement.value&&""!==i.stack){const t={value:i.stack||"",valueTablet:"",valueMobile:""};o({iconPlacement:t,stack:""})}},[]);const s=(0,a.useMemo)(()=>{if(!i?.iconPlacement)return"";let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container",lA(i),lA(i,"Tablet"),lA(i,"Mobile"),e(t=>lA(i,t))), | |
| 3760 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link",nA(i),nA(i,"Tablet"),nA(i,"Mobile"),e(t=>nA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link:hover",sA(i,""),sA(i,"Tablet"),sA(i,"Mobile"),e(t=>sA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-info-box-badge-link > .ablocks-info-box-badge-link-text",rA(i),rA(i),rA(i),e(t=>rA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content",cA(i),cA(i,"Tablet"),cA(i,"Mobile"),e(t=>cA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))), | |
| 3761 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap",bA(i),bA(i,"Tablet"),bA(i,"Mobile"),e(t=>bA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > .ablocks-icon-wrap:hover, {{WRAPPER}}.ablocks-block--info-box .ablocks-block-container > a .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-icon-wrap > img.ablocks-image-icon, {{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > a .ablocks-icon-wrap > img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))), | |
| 3762 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-icon-wrap > img.ablocks-image-icon, {{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > a .ablocks-icon-wrap > img.ablocks-image-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > .ablocks-icon-wrap svg.ablocks-svg-icon , {{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > a .ablocks-icon-wrap svg.ablocks-svg-icon",((t,e="")=>{ | |
| 3763 | +const i={...(0,Eb.qD)({attributeValue:t?.iconTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconPrimaryColorH&&(i.fill=(0,Hs.qD)(t?.iconPrimaryColorH)),i})(i)),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > .ablocks-icon-wrap , {{WRAPPER}}.ablocks-block--info-box:hover .ablocks-block-container > a .ablocks-icon-wrap",((t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t?.iconTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})};return t.iconBackgroundColorH&&(i.background=t.iconBackgroundColorH),i})(i));const o=dA(i);return i?.headingTextColor&&(o.color=i.headingTextColor),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",dA(i),dA(i,"Tablet"),dA(i,"Mobile"),e(t=>dA(i,t))), | |
| 3764 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-heading",uA(i),uA(i,"Tablet"),uA(i,"Mobile"),e(t=>uA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",pA(i),pA(i,"Tablet"),pA(i,"Mobile"),e(t=>pA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-sub-heading",mA(i),mA(i,"Tablet"),mA(i,"Mobile"),e(t=>mA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",hA(i),hA(i,"Tablet"),hA(i,"Mobile"),e(t=>hA(i,t))), | |
| 3765 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text",gA(i),gA(i,"Tablet"),gA(i,"Mobile"),e(t=>gA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-text-drop-caps::first-letter",fA(i),fA(i),fA(i),e(t=>fA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings",yA(i),yA(i,"Tablet"),yA(i,"Mobile"),e(t=>yA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap , {{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap",(0,Ud.PT)(i,"","starIcon"),(0,Ud.PT)(i,"Tablet","starIcon"),(0,Ud.PT)(i,"Mobile","starIcon"),e(t=>(0,Ud.PT)(i,t,"starIcon"))), | |
| 3766 | +t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons",HA(i),HA(i,"Tablet"),HA(i,"Mobile"),e(t=>HA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",MA(i),MA(i),MA(i),e(t=>MA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",xA(i),xA(i),xA(i),e(t=>xA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__fill > .ablocks-icon-wrap > svg",kA(i),kA(i,"Tablet"),kA(i,"Mobile"),e(t=>kA(i,t))), | |
| 3767 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box:hover > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-star-ratings > .ablocks-info-box-star-ratings-icons > .ablocks-info-box-rating > .ablocks-info-box-rating__unfill > .ablocks-icon-wrap > svg",vA(i),vA(i,"Tablet"),vA(i,"Mobile"),e(t=>vA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-star-rating-number",TA(i),TA(i,"Tablet"),TA(i,"Mobile"),e(t=>TA(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link",_A(i),_A(i,"Tablet"),_A(i,"Mobile"),e(t=>_A(i,t))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover",RA(i,""),RA(i,"Tablet"),RA(i,"Mobile"),e(t=>RA(i,t))), | |
| 3768 | +t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link:hover > .ablocks-icon-wrap > svg.ablocks-svg-icon",SA(i),SA(i),SA(i),e(t=>SA(i))),t.addClassStyles("{{WRAPPER}}.ablocks-block--info-box > .ablocks-block-container > .ablocks-block--info-box__content > .ablocks-info-box-btn-link > .ablocks-info-box-btn-link-text",WA(i),WA(i),WA(i),e(t=>WA(i))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap",(0,Ud.PT)(i,"","btnIcon"),(0,Ud.PT)(i,"Tablet","btnIcon"),(0,Ud.PT)(i,"Mobile","btnIcon"),e(t=>(0,Ud.PT)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover",(0,Ud.fW)(i,"","btnIcon"),(0,Ud.fW)(i,"Tablet","btnIcon"),(0,Ud.fW)(i,"Mobile","btnIcon"),e(t=>(0,Ud.fW)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon",(0,Ud.eG)(i,"","btnIcon"),(0, | |
| 3769 | +Ud.eG)(i,"Tablet","btnIcon"),(0,Ud.eG)(i,"Mobile","btnIcon"),e(t=>(0,Ud.eG)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap > svg.ablocks-svg-icon:hover",(0,Ud.RV)(i,"","btnIcon"),(0,Ud.RV)(i,"Tablet","btnIcon"),(0,Ud.RV)(i,"Mobile","btnIcon"),e(t=>(0,Ud.RV)(i,t,"btnIcon"))),t.addClassStyles("{{WRAPPER}} .ablocks-info-box-btn-link > .ablocks-icon-wrap:hover > svg.ablocks-svg-icon",(0,Ud.RV)(i,"","btnIcon"),(0,Ud.RV)(i,"Tablet","btnIcon"),(0,Ud.RV)(i,"Mobile","btnIcon"),e(t=>(0,Ud.RV)(i,t,"btnIcon"))),t.generateCSS()},[i]);return""===i?.iconPlacement?.value?(0,I.jsx)(UA,{...t}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(GC,{...t}),(0,I.jsx)(aA,{...t})]})},save:NA,variations:PA,deprecated:[{attributes:{block_id:{type:"string",default:""},blockElements:{type:"array",default:[{id:0,slug:"Heading"},{id:1,slug:"Sub-Heading"},{id:2,slug:"Description"},{id:3,slug:"Rating"},{id:4,slug:"Button"}]},des:{ | |
| 3770 | +type:"string",source:"html",selector:".ablocks-info-box-text",default:"Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!"},allowBadgeHover:{type:"boolean",default:!1},allowButtonHover:{type:"boolean",default:!1},allowBadge:{type:"boolean",default:!1},allowIcon:{type:"boolean",default:!0},allowHeading:{type:"boolean",default:!0},allowSubHeading:{type:"boolean",default:!1},allowDes:{type:"boolean",default:!0},allowRating:{type:"boolean",default:!1},allowButton:{type:"boolean",default:!0},badgeText:{type:"string",default:"Featured"},badgeSize:{type:"string",default:"xs"},badgeTextColor:{type:"string",default:"#13191B"},badgeTextColorH:{type:"string",default:""},badgeBackground:{type:"string",default:"#DDDDDF"},badgeBackgroundH:{type:"string",default:""},badgeTransition:{type:"number",default:""},iconPrimaryColorH:{type:"string",default:""},iconTransition:{type:"number",default:""},heading:{type:"string", | |
| 3771 | +source:"html",selector:".ablocks-info-box-heading",default:"Your Info Box Title"},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B"},headingTextColorHover:{type:"string",default:""},headingTransition:{type:"number",default:""},subHeading:{type:"string",source:"html",selector:".ablocks-info-box-sub-heading",default:"Your Info Box Sub Title"},subHeadingTag:{type:"string",default:"h4"},subHeadingTextColor:{type:"string",default:"#13191B"},subHeadingTextColorHover:{type:"string",default:""},subHeadingTransition:{type:"number",default:""},desDropCaps:{type:"boolean",default:!1},desDropCapsTextColor:{type:"string",default:"#0f2aff"},desGraphSize:{type:"string",default:"sm"},desSize:{type:"string",default:"sm"},desTextColor:{type:"string",default:"#74777C"},desTextColorHover:{type:"string",default:"gray"},desTransition:{type:"number",default:""},ratingScale:{type:"number",default:5},ratingColor:{type:"string",default:"#e99516"},ratingColorHover:{ | |
| 3772 | +type:"string",default:""},ratingUnmarkedColor:{type:"string",default:"#696969"},ratingTransition:{type:"number",default:""},ratingUnmarkedColorHover:{type:"string",default:""},ratingShowCount:{type:"boolean",default:!0},showRatingNumber:{type:"boolean",default:!0},ratingNumberColor:{type:"string",default:"#000000"},ratingNumberPosition:{type:"string",default:"right"},btnText:{type:"string",default:"Learn More"},btnSize:{type:"string",default:"sm"},btnTextColor:{type:"string",default:"#FAFAFA"},btnTextColorH:{type:"string",default:""},btnBackground:{type:"string",default:"#13191B"},btnBackgroundH:{type:"string",default:""},btnTransition:{type:"number",default:""},btnIconPosition:{type:"string",default:"right"},btnIconSpace:{type:"number",default:10},btnShowIcon:{type:"boolean",default:!0},alignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},stack:{type:"string",default:""},badgeBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default", | |
| 3757 | 3773 | 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:"", |
| 3758 | -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:""}},btnPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}, | |
| 3759 | -btnTypography:{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"}},btnTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},btnAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},ratingNumberTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px", | |
| 3760 | -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"}},starIconSvgPath:{type:"string",default:"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"},starIconSvgViewBox:{type:"string",default:"0 0 576 512"},starIconClass:{type:"string",default:"far fa-star"},starIconImageUrl:{type:"string",default:""},starIconImageID:{ | |
| 3761 | -type:"number",default:0},starIconImageSize:{type:"string",default:""},starIconColor:{type:"string",default:"#69727d"},starIconBgColor:{type:"string",default:""},starIconType:{type:"string",default:"default"},starIconShape:{type:"string",default:"circle"},starIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconSize:{type:"number",default:55},starIconRotate:{type:"number",default:0},starIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},starIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},starIconRotateHover:{type:"object",default:{value:0, | |
| 3762 | -valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},starIcontransitionDuration:{type:"number",default:0},starIconImageWidth:{type:"number",default:0},rating:{type:"number",default:4},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconGap:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{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:"", | |
| 3763 | -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:"", | |
| 3764 | -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:"", | |
| 3765 | -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:"", | |
| 3766 | -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:"", | |
| 3767 | -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:"", | |
| 3768 | -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", | |
| 3769 | -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", | |
| 3770 | -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:TA}]}),(0,z.__)("Default","ablocks"),(0,z.__)("Stacked","ablocks"),(0,z.__)("Framed","ablocks");const HA=[{value:"default",label:(0,z.__)("Default","ablocks")},{value:"style2",label:(0,z.__)("Hidden Coupon","ablocks")},{value:"style3",label:(0,z.__)("Simple Coupon","ablocks")},{value:"style4",label:(0,z.__)("Coupon Overlay","ablocks")}],MA=[{label:(0, | |
| 3771 | -z.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Right","ablocks"),value:"right",icon:"right"}];function xA(t){const{attributes:e,setAttributes:i}=t,{couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:s,isShowIcon:r,couponTypography:b,couponTextShadow:c,buttonTypography:d,buttonTextShadow:u,couponCodeColor:p,couponCodeBgColor:m,couponBtnTextColor:h,couponBtnBgColor:g,couponPadding:f,buttonPadding:y,position:T}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-coupon-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Coupon Code","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:["style3"===o&&(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1 | |
| 3772 | -}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"position",attributeValue:T,setAttributes:i,options:MA,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Style","ablocks"),attributeValue:o,setAttributes:i,attributeName:"couponStyle",options:HA}),(0,L.jsx)(ql,{label:(0,z.__)("Coupon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"couponCode",isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:["style3"!==o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor", | |
| 3773 | -attributeValue:m||"#fff",setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{label:(0,z.__)("Borders","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]}),"style3"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor", | |
| 3774 | -attributeValue:m||"#fff",setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{label:(0,z.__)("Border","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]})]})})}),"style3"!==o&&(0,L.jsx)(D,{title:(0,z.__)("Coupon Button","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:["style3"!==o&&(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(ql,{label:(0,z.__)("Button Text","ablocks"),attributeValue:n,setAttributes:i,attributeName:"couponBtnText",isResponsive:!1}),(0,L.jsx)(ql,{label:(0,z.__)("After Copy Text","ablocks"),attributeValue:s,setAttributes:i,attributeName:"couponBtnAfterCopyText", | |
| 3775 | -isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:["style3"!==o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"buttonTextShadow",attributeValue:u,setAttributes:i,isResponsive:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeName:"couponBtnTextColor",attributeValue:h||"#fff",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"couponBtnBgColor",attributeValue:g||"#000",setAttributes:i}),"default"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),attributeName:"buttonPadding",attributeValue:y,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{label:(0, | |
| 3776 | -z.__)("Border","ablocks"),attributeName:"buttonBorder",attributeValue:e?.buttonBorder,setAttributes:i})]})]}),"style3"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{label:(0, | |
| 3777 | -z.__)("Border","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]})]})})}),r&&(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}xA.propTypes={},xA.defaultProps={};const kA={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string", | |
| 3774 | +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:""}},badgePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}, | |
| 3775 | +badgeTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"12",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"}},badgeTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},badgePosition:{type:"object",default:{value:"top-right",valueTablet:"",valueMobile:""}},badgeAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},iconSvgPath:{type:"string", | |
| 3776 | +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",default:""},iconImageID:{type:"number",default:0}, | |
| 3777 | +iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:55},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 3778 | +icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},iconLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},iconAlignment:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""}},headingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"600",transform:"",style:"",decoration:"",fontSize:"28",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"}},headingTextShadow:{type:"object",default:{color:"",blur:"", | |
| 3779 | +horizontal:"",vertical:""}},headingTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},subHeadingTypography:{type:"object",default:{fontFamily:"Roboto",weight:"500",transform:"",style:"",decoration:"",fontSize:"20",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"}},subHeadingTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},subHeadingTextStroke:{type:"object",default:{strokeWidth:"", | |
| 3780 | +strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},desTypography:{type:"object",default:{fontFamily:"Roboto",weight:"400",transform:"",style:"",decoration:"",fontSize:"16",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", | |
| 3781 | +strokeWidthUnitMobile:"px",stroke:""}},btnIconSvgPath:{type:"string",default:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},btnIconSvgViewBox:{type:"string",default:"0 0 448 512"},btnIconClass:{type:"string",default:"fas fa-arrow-right"},btnIconImageUrl:{type:"string",default:""},btnIconImageID:{type:"number",default:0},btnIconImageSize:{type:"string",default:""},btnIconColor:{type:"string",default:"#FAFAFA"},btnIconBgColor:{type:"string",default:""},btnIconType:{type:"string",default:"default"},btnIconShape:{type:"string",default:"circle"},btnIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconBorderWidth:{ | |
| 3782 | +type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},btnIconSize:{type:"number",default:20},btnIconRotate:{type:"number",default:0},btnIconSizing:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},btnIcontransitionDuration:{type:"number",default:0},btnIconImageWidth:{type:"number",default:0},btnLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},btnBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", | |
| 3783 | +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:"", | |
| 3784 | +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:""}},btnPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},btnTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"", | |
| 3785 | +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"}},btnTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},btnAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},ratingNumberTypography:{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", | |
| 3786 | +fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},starIconSvgPath:{type:"string",default:"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"},starIconSvgViewBox:{type:"string",default:"0 0 576 512"},starIconClass:{type:"string",default:"far fa-star"},starIconImageUrl:{type:"string",default:""},starIconImageID:{type:"number",default:0},starIconImageSize:{type:"string",default:""},starIconColor:{type:"string", | |
| 3787 | +default:"#69727d"},starIconBgColor:{type:"string",default:""},starIconType:{type:"string",default:"default"},starIconShape:{type:"string",default:"circle"},starIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},starIconSize:{type:"number",default:55},starIconRotate:{type:"number",default:0},starIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},starIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},starIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 3788 | +starIcontransitionDuration:{type:"number",default:0},starIconImageWidth:{type:"number",default:0},rating:{type:"number",default:4},spacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},ratingNumberGap:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconGap:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentGap:{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:{ | |
| 3789 | +isLinked:!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:"", | |
| 3790 | +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:"", | |
| 3791 | +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:"", | |
| 3792 | +imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"", | |
| 3793 | +imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"", | |
| 3794 | +offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"", | |
| 3795 | +scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{ | |
| 3796 | +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:IA}]}),(0,L.__)("Default","ablocks"),(0,L.__)("Stacked","ablocks"),(0,L.__)("Framed","ablocks");const VA=[{value:"default",label:(0,L.__)("Default","ablocks")},{value:"style2",label:(0,L.__)("Hidden Coupon","ablocks")},{value:"style3",label:(0,L.__)("Simple Coupon","ablocks")},{value:"style4",label:(0,L.__)("Coupon Overlay","ablocks")}],OA=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,L.__)("Center","ablocks"),value:"center", | |
| 3797 | +icon:"center"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"right"}];function YA(t){const{attributes:e,setAttributes:i}=t,{couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:s,isShowIcon:r,couponTypography:b,couponTextShadow:c,buttonTypography:d,buttonTextShadow:u,couponCodeColor:p,couponCodeBgColor:m,couponBtnTextColor:h,couponBtnBgColor:g,couponPadding:f,buttonPadding:y,position:T}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-coupon-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Coupon Code","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["style3"===o&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"position",attributeValue:T, | |
| 3798 | +setAttributes:i,options:OA,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Style","ablocks"),attributeValue:o,setAttributes:i,attributeName:"couponStyle",options:VA}),(0,I.jsx)(Kl,{label:(0,L.__)("Coupon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"couponCode",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:["style3"!==o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"), | |
| 3799 | +attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Borders","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]}),"style3"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"), | |
| 3800 | +attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Border","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]})]})})}),"style3"!==o&&(0,I.jsx)(V,{title:(0,L.__)("Coupon Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:["style3"!==o&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeName:"isShowIcon",attributeValue:r,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("Button Text","ablocks"),attributeValue:n,setAttributes:i,attributeName:"couponBtnText",isResponsive:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("After Copy Text","ablocks"),attributeValue:s,setAttributes:i,attributeName:"couponBtnAfterCopyText",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:["style3"!==o&&(0,I.jsxs)(I.Fragment,{ | |
| 3801 | +children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"buttonTextShadow",attributeValue:u,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponBtnTextColor",attributeValue:h||"#fff",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponBtnBgColor",attributeValue:g||"#000",setAttributes:i}),"default"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"buttonPadding",attributeValue:y,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Border","ablocks"),attributeName:"buttonBorder",attributeValue:e?.buttonBorder,setAttributes:i})]})] | |
| 3802 | +}),"style3"===o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"couponTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"couponTextShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(Ws,{label:(0,L.__)("Text Color","ablocks"),attributeName:"couponCodeColor",attributeValue:p||"#000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"couponCodeBgColor",attributeValue:m||"#fff",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),attributeName:"couponPadding",attributeValue:f,setAttributes:i,isResponsive:!0}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{label:(0,L.__)("Border","ablocks"),attributeName:"couponBorder",attributeValue:e?.couponBorder,setAttributes:i})]})]})})}),r&&(0, | |
| 3803 | +I.jsx)(V,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})})]})})})}YA.propTypes={},YA.defaultProps={};const XA={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string", | |
| 3778 | 3804 | 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" |
| 3779 | 3805 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"", |
| 3780 | 3806 | rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},position:{type:"object",default:{ |
| 3781 | 3807 | value:"left",valueTablet:"",valueMobile:""}},couponTypographyGlobal:{type:"string",default:""},couponTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},couponTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},buttonTypographyGlobal:{type:"string",default:""},buttonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"", |
| @@ -3791,14 +3817,14 @@ | ||
| 3791 | 3817 | 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:"", |
| 3792 | 3818 | 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:"", |
| 3793 | 3819 | 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:{ |
| 3794 | 3820 | 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:{ |
| 3795 | -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"}}}},vA=t=>{let e=t.querySelector(".ablocks-coupon-clipboard"),i=e;const o=t.getAttribute("data-coupon-code"),a=t.getAttribute("data-clipboard-text"),l=t.getAttribute("data-clipped-text"),n=t.getAttribute("data-coupon-style");let s=a;"default"===n||"style2"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=t.querySelector(".ablocks-coupon-clipboard-text"), | |
| 3796 | -s=a):"style4"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=e,s=a):(e=t.querySelector(".ablocks-coupon-code"),i=t.querySelector(".ablocks-coupon-code-text"),s=o),e?.addEventListener("click",()=>{((t,e,i,o,a)=>{((t,e,i,o=3e3)=>{const a=document.createElement("textarea");a.value=t,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),e&&e(),i&&setTimeout(()=>{i()},o)})(e,()=>{"style4"===o?t.style.opacity=0:t.textContent=i},()=>("style4"!==o&&(t.textContent=a),t.style.opacity=1),3e3)})(i,o,l,n,s)})};function _A(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:n,couponBtnText:r,couponBtnAfterCopyText:b,isShowIcon:c}=e,{isDynamicEnabled:d,data:u}=Zc({attributeValue:n}),{isDynamicEnabled:p,data:m}=Zc({attributeValue:r}),{isDynamicEnabled:h,data:g}=Zc({attributeValue:b}),f=(0,C.useBlockProps)();return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${i}`);null!==t&&vA(t)},[i,o,d?u:n,p?m:r,h?g:b,f]),(0,L.jsx)(l().Fragment,{ | |
| 3797 | -children:(0,L.jsxs)(Nb.A,{blockId:i,name:kA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":d?u:n,"data-clipboard-text":p?m:r,"data-clipped-text":h?g:b,"data-coupon-style":o},children:[(0,L.jsxs)("div",{className:"ablocks-coupon-code",children:[c&&"style3"===o&&(0,L.jsx)(Vd,{attributes:e}),"style3"!==o&&d?u:n,"style3"===o&&(0,L.jsx)("span",{className:"ablocks-coupon-code-text",children:d?u:n}),("style2"===o||"style4"===o)&&(0,L.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]}),"default"===o&&(0,L.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]})})}_A.propTypes={}, | |
| 3798 | -_A.defaultProps={};const RA=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["justify-content"]=i["value"+e]+" !important"),{...o}},SA=(t,e="")=>{const i=(0,M.Zy)(t.couponTypography,{weight:"400"}),o=(0,M.Zy)(t.couponBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.couponPadding,{unit:"px"}),l=t.couponTypographyGlobal?t.couponTypographyGlobal:"";return{color:(0,gs.qD)(t?.couponCodeColor),background:(0,gs.qD)(t?.couponCodeBgColor),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,P.qD)(i,e,l),...(0,pc.qD)(t?.couponTextShadow)}},WA=(t,e="")=>{const i=(0,M.Zy)(t.couponBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},UA=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.buttonPadding,{unit:"px"});return{color:(0,gs.qD)(t?.couponBtnTextColor),background:(0,gs.qD)(t?.couponBtnBgColor),...(0,y.qD)(a,e),...(0, | |
| 3799 | -c.qD)(l,"padding",e),...(0,P.qD)(i,e,o),...(0,pc.qD)(t?.buttonTextShadow)}},PA=(t,e="")=>{const i=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function jA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:kA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,L.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,L.jsx)(Vd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,L.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,L.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,L.jsx)(Vd,{ | |
| 3800 | -attributes:e}),(0,L.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,L.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}jA.propTypes={},jA.defaultProps={};const wA={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string", | |
| 3821 | +type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},BA=t=>{let e=t.querySelector(".ablocks-coupon-clipboard"),i=e;const o=t.getAttribute("data-coupon-code"),a=t.getAttribute("data-clipboard-text"),l=t.getAttribute("data-clipped-text"),n=t.getAttribute("data-coupon-style");let s=a;"default"===n||"style2"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=t.querySelector(".ablocks-coupon-clipboard-text"), | |
| 3822 | +s=a):"style4"===n?(e=t.querySelector(".ablocks-coupon-clipboard"),i=e,s=a):(e=t.querySelector(".ablocks-coupon-code"),i=t.querySelector(".ablocks-coupon-code-text"),s=o),e?.addEventListener("click",()=>{((t,e,i,o,a)=>{((t,e,i,o=3e3)=>{const a=document.createElement("textarea");a.value=t,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),e&&e(),i&&setTimeout(()=>{i()},o)})(e,()=>{"style4"===o?t.style.opacity=0:t.textContent=i},()=>("style4"!==o&&(t.textContent=a),t.style.opacity=1),3e3)})(i,o,l,n,s)})};function EA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:n,couponBtnText:r,couponBtnAfterCopyText:b,isShowIcon:c}=e,{isDynamicEnabled:d,data:u}=id({attributeValue:n}),{isDynamicEnabled:p,data:m}=id({attributeValue:r}),{isDynamicEnabled:h,data:g}=id({attributeValue:b}),f=(0,D.useBlockProps)();return(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${i}`);null!==t&&BA(t)},[i,o,d?u:n,p?m:r,h?g:b,f]),(0,I.jsx)(l().Fragment,{ | |
| 3823 | +children:(0,I.jsxs)(Yb.A,{blockId:i,name:XA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":d?u:n,"data-clipboard-text":p?m:r,"data-clipped-text":h?g:b,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[c&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&d?u:n,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:d?u:n}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:p?m:r})]})]})})}EA.propTypes={}, | |
| 3824 | +EA.defaultProps={};const FA=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["justify-content"]=i["value"+e]+" !important"),{...o}},qA=(t,e="")=>{const i=(0,M.Zy)(t.couponTypography,{weight:"400"}),o=(0,M.Zy)(t.couponBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.couponPadding,{unit:"px"}),l=t.couponTypographyGlobal?t.couponTypographyGlobal:"";return{color:(0,Hs.qD)(t?.couponCodeColor),background:(0,Hs.qD)(t?.couponCodeBgColor),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,U.qD)(i,e,l),...(0,fc.qD)(t?.couponTextShadow)}},$A=(t,e="")=>{const i=(0,M.Zy)(t.couponBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},GA=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{weight:"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"",a=(0,M.Zy)(t.buttonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.buttonPadding,{unit:"px"});return{color:(0,Hs.qD)(t?.couponBtnTextColor),background:(0,Hs.qD)(t?.couponBtnBgColor),...(0,y.qD)(a,e),...(0, | |
| 3825 | +c.qD)(l,"padding",e),...(0,U.qD)(i,e,o),...(0,fc.qD)(t?.buttonTextShadow)}},ZA=(t,e="")=>{const i=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function KA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:XA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{ | |
| 3826 | +attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}KA.propTypes={},KA.defaultProps={};const JA={UU:"ablocks/coupon",uK:{iconSize:{type:"number",default:"20"},iconRotate:{type:"number",default:0},iconSvgPath:{type:"string", | |
| 3801 | 3827 | 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" |
| 3802 | 3828 | },iconClass:{type:"string",default:"far fa-smile-beam"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#69727d"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSizing:{type:"object",default:{value:"20",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"", |
| 3803 | 3829 | valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},position:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},couponTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},couponTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},buttonTypography:{type:"object",default:{ |
| 3804 | 3830 | fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},couponPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonPadding:{ |
| @@ -3813,63 +3839,68 @@ | ||
| 3813 | 3839 | 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:"", |
| 3814 | 3840 | 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:"", |
| 3815 | 3841 | 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:"", |
| 3816 | 3842 | 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:"", |
| 3817 | -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 zA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:wA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,L.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,L.jsx)(Vd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,L.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,L.jsxs)("div",{ | |
| 3818 | -className:"ablocks-coupon-clipboard",children:[b&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,L.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}zA.propTypes={},zA.defaultProps={},(0,M.xV)(kA.UU)&&(0,o.registerBlockType)(kA.UU,{title:"Coupon",attributes:kA.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-coupon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 3819 | -null===t?"":(t.addClassStyles("{{WRAPPER}}",RA(i),RA(i,"Tablet"),RA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code",SA(i),SA(i,"Tablet"),SA(i,"Mobile")), | |
| 3820 | -t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code:hover",WA(i),WA(i,"Tablet"),WA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard",UA(i),UA(i,"Tablet"),UA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard:hover",PA(i),PA(i,"Tablet"),PA(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(xA,{...t}),(0,L.jsx)(_A,{...t})]})},save:jA,deprecated:[{attributes:wA.uK,save:zA}]});var CA=i(50174);const AA=[{label:(0,z.__)("Left","ablocks"),value:"left",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,z.__)("Center","ablocks"),value:"center",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0,z.__)("Right","ablocks"),value:"right",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],LA=({attributes:t,setAttributes:e})=>{ | |
| 3821 | -const{arrowAlignment:i,contentPosition:o,iconBackgroundColor:a,iconColor:n,thicknessColor:s,dateFormat:r,contentBackgroundColor:b,showDate:c,showDateTablet:d,showDateMobile:u,dateColor:p,dateTypography:m,contentPadding:h,datePadding:g,dateAlign:f,dateBackground:y,connectorAnimationColor:T,showAnimation:H}=t,x=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:t,setAttributes:e,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:[(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Content Timeline","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vb,{isResponsive:!1,allowDeselect:!1,label:(0,z.__)("Content Position","ablocks"),options:[{label:(0,z.__)("Left","ablocks"),value:"left"},{label:(0,z.__)("Center","ablocks"),value:"center"},{label:(0,z.__)("Right","ablocks"),value:"right"}],attributeName:"contentPosition",attributeValue:o,setAttributes:e}),(0,L.jsx)(vb,{ | |
| 3822 | -isResponsive:!1,allowDeselect:!1,label:(0,z.__)("Arrow Alignment","ablocks"),options:[{label:(0,z.__)("Top","ablocks"),value:"top"},{label:(0,z.__)("Center","ablocks"),value:"center"},{label:(0,z.__)("Bottom","ablocks"),value:"bottom"}],attributeName:"arrowAlignment",attributeValue:i,setAttributes:e}),""===x&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Date","ablocks"),attributeValue:c,setAttributes:e,attributeName:"showDate"}),"Tablet"===x&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Date","ablocks"),attributeValue:d,setAttributes:e,attributeName:"showDateTablet"}),"Mobile"===x&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Date","ablocks"),attributeValue:u,setAttributes:e,attributeName:"showDateMobile"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeName:"contentBackgroundColor",attributeValue:b,setAttributes:e}),(0,L.jsx)(vt,{label:(0,z.__)("Item Gap","ablocks"),attributeName:"itemGap", | |
| 3823 | -attributeObjectKey:"value",attributeValue:t?.itemGap,setAttributes:e,hasUnit:!0,step:1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:CA.Qk}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:h,setAttributes:e})]})})}),t[`showDate${x}`]&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Date","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Date Format","ablocks"),options:M.vL,attributeValue:r,attributeName:"dateFormat",setAttributes:e,allowDeselect:!1,isResponsive:!1}),"Mobile"===x&&(0,L.jsx)(vb,{isResponsive:!1,isInline:!0,label:(0,z.__)("Date Alignment","ablocks"),options:AA,attributeName:"dateAlign",attributeValue:f,setAttributes:e})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Date Typography","ablocks"), | |
| 3824 | -attributeName:"dateTypography",attributeValue:m,setAttributes:e,isResponsive:!0,attributes:t}),(0,L.jsx)(vs,{label:(0,z.__)("Date Color","ablocks"),attributeName:"dateColor",attributeValue:p,setAttributes:e}),"Mobile"===x&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Date Background","ablocks"),attributeName:"dateBackground",attributeValue:y,setAttributes:e}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"datePadding",attributeValue:g,setAttributes:e}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!0,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"dateBorder",attributeValue:t?.dateBorder,setAttributes:e})]})]})})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Connectors","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributePrefix:"contentTimeLineIcon",attributes:t,setAttributes:e,legacySupport:!0}),(0,L.jsx)(vt,{label:(0, | |
| 3825 | -z.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconSize",attributeValue:t?.iconSize,setAttributes:e,attributeDefaultValue:CA.RK}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Background Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconBackgroundSize",attributeValue:t?.iconBackgroundSize,setAttributes:e,attributeDefaultValue:CA.BI}),"right"!==o&&(0,L.jsx)(vt,{label:(0,z.__)("Line Left","ablocks"),min:-100,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"lineLeft",attributeValue:t?.lineLeft,setAttributes:e,attributeDefaultValue:CA.ah,autoSyncRange:!1}),"right"===o&&(0,L.jsx)(vt,{label:(0,z.__)("Right Line","ablocks"),min:-100,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"lineRight",attributeValue:t?.lineRight,setAttributes:e,attributeDefaultValue:CA.x7,autoSyncRange:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Connector Thickness","ablocks"),min:1,max:10,isInline:!1, | |
| 3826 | -isResponsive:!1,attributeName:"thickness",attributeValue:t?.thickness,setAttributes:e,attributeDefaultValue:CA.Xf})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Connector Color","ablocks"),attributeName:"thicknessColor",attributeValue:s,setAttributes:e}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Animation","ablocks"),attributeValue:H,setAttributes:e,attributeName:"showAnimation"}),H&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Connector Animation Color","ablocks"),attributeName:"connectorAnimationColor",attributeValue:T,setAttributes:e}),(0,L.jsx)("span",{className:"ablocks-control-field-description",children:(0,z.__)("Animation color only work at frontend.","ablocks")})]}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:n,setAttributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Background Color","ablocks"),attributeName:"iconBackgroundColor",attributeValue:a,setAttributes:e})]})})})]})})}) | |
| 3827 | -},DA={UU:"ablocks/content-timeline",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean"},showDateMobile:{type:"boolean",default:!0},showAnimation:{type:"boolean",default:!1},connectorAnimationColor:{type:"string",default:"00ad6b"},dateColor:{type:"string",default:"#333333"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 3828 | -lineLeft:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},lineRight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},contentTimeLineIconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},contentTimeLineIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},contentTimeLineIconImageUrl:{type:"string",default:""},contentTimeLineIconImageID:{type:"number", | |
| 3829 | -default:0},contentTimeLineIconImageSize:{type:"string",default:""},contentTimeLineIconColor:{type:"string",default:"#69727d"},contentTimeLineIconBgColor:{type:"string",default:""},contentTimeLineIconHoverColor:{type:"string",default:""},contentTimeLineIconHoverBgColor:{type:"string",default:""},contentTimeLineIconType:{type:"string",default:"default"},contentTimeLineIconShape:{type:"string",default:"circle"},contentTimeLineIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"", | |
| 3830 | -topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},contentTimeLineIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},contentTimeLineIconSize:{type:"number",default:55},contentTimeLineIconRotate:{type:"number",default:0},contentTimeLineIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"", | |
| 3831 | -valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIcontransitionDuration:{type:"number",default:0},contentTimeLineIconImageWidth:{type:"number",default:0},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},dateAlign:{type:"string",default:"left"},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateTypographyGlobal:{type:"string",default:""},dateTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px", | |
| 3832 | -fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"", | |
| 3833 | -topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 3834 | -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:"",rightMobile:"",bottomMobile:"", | |
| 3835 | -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:"", | |
| 3836 | -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:"", | |
| 3837 | -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:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"", | |
| 3838 | -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", | |
| 3839 | -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:"", | |
| 3840 | -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:"", | |
| 3841 | -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:"", | |
| 3842 | -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"}}}};class NA{constructor(t,e=!1){this.contentTimeline=t,this.timelineElement=t.querySelector(".ablocks-block-content-timeline"),this.blockTopHeight=this.contentTimeline.getBoundingClientRect().top+window.scrollY,this.editor=e, | |
| 3843 | -this.arrowAlignment=this.timelineElement.getAttribute("data-arrow-alignment"),this.animationColor=this.timelineElement.getAttribute("data-animation-color"),this.showAnimation=this.timelineElement.getAttribute("data-show-animation"),this.lineElement=this.contentTimeline.querySelector(".ablocks-block-content-timeline__line"),this.lineInnerElement=this.contentTimeline.querySelector(".ablocks-block-content-timeline__line__inner"),this.childBlocks=Array.from(this.contentTimeline.querySelectorAll(".ablocks-block-content-timeline-child")),this.handleScroll=this.handleScroll.bind(this),this.updateTimeline=this.updateTimeline.bind(this);const i=document.querySelector(".interface-navigable-region.interface-interface-skeleton__content");this.editorDiv=i,this.init()}init(){this.updateTimeline(),this.handleScroll(),window.addEventListener("scroll",this.handleScroll)}updateTimeline(){if(0===this.childBlocks.length||!this.lineElement)return | |
| 3844 | -;const[t,e]=[this.childBlocks[0],this.childBlocks[this.childBlocks.length-1]],[i,o]=[t.getBoundingClientRect().height,e.getBoundingClientRect().height];switch(this.arrowAlignment){case"center":this.lineElement.style.top=i/2+"px",this.lineElement.style.bottom=o/2+"px";break;case"bottom":this.lineElement.style.top=`${i}px`,this.lineElement.style.bottom=o/o+"px";break;case"top":this.lineElement.style.top=i/i+"px",this.lineElement.style.bottom=`${o}px`}this.lineInnerElement.style.height="0px"}handleScroll(){var t;t=()=>{let t=0;const e=window.scrollY;this.childBlocks.forEach(i=>{t+=i.getBoundingClientRect().height;const o=i.querySelector(".ablocks-icon-wrap");e-this.blockTopHeight>t-i.getBoundingClientRect().height?"true"===this.showAnimation&&!1===this.editor&&(o.style.backgroundColor=(0,gs.qD)(this.animationColor)):o.style.backgroundColor=""}),this.lineInnerElement&&("true"===this.showAnimation&&(this.lineInnerElement.style.backgroundColor=(0,gs.qD)(this.animationColor)), | |
| 3845 | -this.editor||(this.lineInnerElement.style.height=e-this.blockTopHeight+"px"))},"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(t):setTimeout(t,16)}destroy(){window.removeEventListener("scroll",this.handleScroll)}}const IA=t=>{const{attributes:e,clientId:i,isSelected:o}=t,{block_id:l,contentPosition:n,arrowAlignment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p,connectorAnimationColor:m,contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k}=e,{updateBlockAttributes:v}=(0,r.useDispatch)("core/block-editor");(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${l}.ablocks-block--content-timeline`);t&&new NA(t,!0).updateTimeline();const e=()=>{t&&new NA(t).updateTimeline()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[l,b]),(0,a.useEffect)(()=>{o&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i) | |
| 3846 | -;t.length>0&&t.forEach(t=>{const i=t.clientId;v(i,{contentPosition:n,arrowAlignmentment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p,connectorAnimationColor:m,contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k,parentAttribute:e})})})()},[e,o]);const _="ablocks-block-content-timeline",R=s()(_,`${_}--outer-wrap`,`${_}--editor-preview-mode-desktop`,`${_}--${n}`),S=s()(`${_}__line`);return(0,L.jsx)(Nb.A,{blockId:l,name:DA.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsxs)("div",{className:R,"data-arrow-alignment":b,"data-animation-color":m,"data-show-animation":p,children:[(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/content-timeline-child"],["ablocks/content-timeline-child"],["ablocks/content-timeline-child"]],templateLock:!1,allowedBlocks:["ablocks/content-timeline-child"]}),(0,L.jsx)("div",{className:S,children:(0,L.jsx)("div",{ | |
| 3847 | -className:`${_}__line__inner`})})]})})},VA=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return"center"===t.contentPosition&&(i.display=o?"block":"none"),i},OA=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return("left"===t.contentPosition||"right"===t.contentPosition)&&(i.display=o?"block":"none"),"center"===t.contentPosition&&(i.display="block"),i},YA=(t,e)=>{const i={};return""!==e&&"Tablet"!==e||(i.display="none"),!1===t[`showDate${e}`]&&"Mobile"===e&&(i.display="none"),!0===t[`showDate${e}`]&&"Mobile"===e&&(i.display="block"),i},XA=(t,e)=>{const i={},o=t[`showDate${e}`]||null;return"Mobile"===e?"left"===t.contentPosition?i.left="calc(35px / 2) !important":"right"===t.contentPosition&&(i.right="calc(35px / 2) !important"):"left"===t.contentPosition?(i.left=o?"calc(30% / 2) !important":"calc(61px / 2) !important",i.right="auto !important"):"right"===t.contentPosition&&(i.right=o?"calc(30% / 2) !important":"calc(61px / 2) !important",i.left="auto !important"),i | |
| 3848 | -},BA=(t,e="")=>({fill:(0,gs.qD)(t?.iconColor),...(0,Ob.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",property:"height",device:e})}),EA=t=>({background:(0,gs.qD)(t?.iconBackgroundColor),...(0,Ob.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"width"}),...(0,Ob.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"height"})}),FA=(t,e="")=>({background:(0,gs.qD)(t?.thicknessColor),...(0,Ob.qD)({attributeValue:t?.thickness,attributeObjectKey:"value",defaultValue:3,property:"width"}),...(0,Ob.qD)({attributeValue:t?.lineLeft,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"px",property:"margin-left",device:e}),...(0,Ob.qD)({ | |
| 3849 | -attributeValue:t?.lineRight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"px",property:"margin-right",device:e})}),qA=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"margin-top",device:e})}),$A=t=>({background:(0,gs.qD)(t?.contentBackgroundColor)}),GA=(t,e="")=>({padding:"15px",...(0,c.qD)(t?.contentPadding,"padding",e)}),ZA=t=>{const e={};return t?.contentBackgroundColor&&(e["border-left-color"]=(0,gs.qD)(t?.contentBackgroundColor),e["border-right-color"]=(0,gs.qD)(t?.contentBackgroundColor)),e},KA=(t,e="")=>{const i=(0,M.Zy)(t.dateTypography,{weight:"400"}),o=t.dateTypographyGlobal?t.dateTypographyGlobal:"";return{color:(0,gs.qD)(t?.dateColor),...(0,P.qD)(i,e,o)}},JA=t=>{const e={};return"top"===t?.arrowAlignment&&(e.height="35px",e.top="10%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)"), | |
| 3850 | -"bottom"===t?.arrowAlignment&&(e.height="35px",e.top="90%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)"),"centre"===t?.arrowAlignment&&(e.height="35px",e.top="50%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)"),e},QA=t=>{const e={};return"top"===t?.arrowAlignment?(e["align-self"]="flex-start",e["margin-top"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):"bottom"===t?.arrowAlignment?(e["align-self"]="flex-end",e["margin-bottom"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):e["align-self"]="center",e},tL=t=>{const e={};return e["align-self"]="top"===t?.arrowAlignment?"flex-start":"bottom"===t?.arrowAlignment?"flex-end":"center",e};function eL(t){const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,L.jsx)(oc,{blockId:i,name:DA.UU,attributes:e,children:(0,L.jsxs)("div",{ | |
| 3851 | -className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0,L.jsx)(C.InnerBlocks.Content,{}),(0,L.jsx)("div",{className:r,children:(0,L.jsx)("div",{className:`${l}__line__inner`})})]})})}eL.propTypes={};const iL={UU:"ablocks/content-timeline",uK:{block_id:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{ | |
| 3852 | -type:"number",default:3},iconSize:{type:"number",default:18},contentTimeLineIconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},contentTimeLineIconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},contentTimeLineIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},contentTimeLineIconImageUrl:{type:"string",default:""},contentTimeLineIconImageID:{type:"number",default:0},contentTimeLineIconImageSize:{type:"string",default:""},contentTimeLineIconColor:{type:"string",default:"#69727d"},contentTimeLineIconBgColor:{type:"string",default:""}, | |
| 3853 | -contentTimeLineIconType:{type:"string",default:"default"},contentTimeLineIconShape:{type:"string",default:"circle"},contentTimeLineIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconSize:{type:"number",default:55},contentTimeLineIconRotate:{type:"number",default:0},contentTimeLineIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg", | |
| 3854 | -valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIcontransitionDuration:{type:"number",default:0},contentTimeLineIconImageWidth:{type:"number",default:0},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},dateAlign:{type:"string",default:"left"},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"", | |
| 3855 | -lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"", | |
| 3856 | -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:"", | |
| 3857 | -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:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{ | |
| 3858 | -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:"", | |
| 3859 | -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:{ | |
| 3860 | -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:"", | |
| 3861 | -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:"", | |
| 3862 | -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:"", | |
| 3863 | -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:"", | |
| 3864 | -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:"", | |
| 3865 | -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 oL(t){const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,L.jsx)(dc,{blockId:i,name:iL.UU,attributes:e,children:(0,L.jsxs)("div",{className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0,L.jsx)(C.InnerBlocks.Content,{}),(0,L.jsx)("div",{className:r,children:(0,L.jsx)("div",{className:`${l}__line__inner`})})]})})}function aL(t){const{attributes:e,setAttributes:i}=t,{text_date:o,changeChildIcon:a}=e,n=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{ | |
| 3866 | -className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Content Timeline Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access content timeline settings to display events in order.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:(0,L.jsxs)(D,{title:(0,z.__)("Content Timeline Child","ablocks"),initialOpen:!0,children:[!0===e[`showDate${n}`]&&(0,L.jsx)(ql,{label:(0,z.__)("Date (mm/dd/yyyy)","ablocks"),attributeName:"text_date",attributeValue:o,setAttributes:i,isInline:!1}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Change Icon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"changeChildIcon"}),a&&(0,L.jsx)(Ld,{label:(0, | |
| 3867 | -z.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0})]})})]})})}oL.propTypes={},(0,M.xV)(DA.UU)&&(0,o.registerBlockType)(DA.UU,{title:"Content Timeline",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline"}),attributes:DA.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{arrowAlignment:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date-inner",VA(i,""),VA(i,"Tablet"),VA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",OA(i,""),OA(i,"Tablet"),OA(i,"Mobile")), | |
| 3868 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",YA(i,""),YA(i,"Tablet"),YA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--left .ablocks-block-content-timeline__line,.ablocks-block-content-timeline--right .ablocks-block-content-timeline__line",XA(i,""),XA(i,"Tablet"),XA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-maker svg",BA(i),BA(i,"Tablet"),BA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",EA(i),EA(i),EA(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline__line",FA(i),FA(i,"Tablet"),FA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field",qA(i),qA(i,"Tablet"),qA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",tL(i),tL(i),tL(i)), | |
| 3869 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field .ablocks-block-content-timeline-child__content-part",$A(i),$A(i),$A(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .block-editor-block-list__layout",GA(i),GA(i,"Tablet"),GA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .ablocks-block-content-timeline-child__arrow::after",ZA(i),ZA(i),ZA(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--line-center .ablocks-block-content-timeline-child__arrow",JA(i),JA(i),JA(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",QA(i),QA(i),QA(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date, .ablocks-block-content-timeline-child__inner-content-date",KA(i),KA(i,"Tablet"),KA(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",((t,e)=>{const i={} | |
| 3870 | -;return t?.dateAlign&&(i["text-align"]=t?.dateAlign),{background:(0,gs.qD)(t?.dateBackground),...i,...(0,c.qD)(t?.datePadding,"padding",e),...(0,y.qD)(t?.dateBorder,e)}})(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date:hover",(t=>({...(0,y.a9)(t?.dateBorder,"Mobile")}))(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(LA,{...t}),(0,L.jsx)(IA,{...t})]})},save:eL,deprecated:[{attributes:iL.uK,save:t=>(0,L.jsx)(oL,{...t})}]}),aL.propTypes={},aL.defaultProps={};const lL={UU:"ablocks/content-timeline-child",$t:["ablocks/content-timeline"],uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string", | |
| 3871 | -default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"},dateAlign:{type:"string",default:"left"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:55},iconSvgPath:{type:"string", | |
| 3843 | +spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function QA(t){const{attributes:e}=t,{block_id:i,couponStyle:o,couponCode:a,couponBtnText:n,couponBtnAfterCopyText:r,isShowIcon:b}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:JA.UU,attributes:e,className:s()({"ablocks-block---coupon-layout-two":"style2"===o,"ablocks-block---coupon-layout-three":"style3"===o,"ablocks-block---coupon-layout-four":"style4"===o}),blockProps:{"data-coupon-code":a,"data-clipboard-text":n,"data-clipped-text":r,"data-coupon-style":o},children:[(0,I.jsxs)("div",{className:"ablocks-coupon-code",children:[b&&"style3"===o&&(0,I.jsx)(Fd,{attributes:e}),"style3"!==o&&a,"style3"===o&&(0,I.jsx)("span",{className:"ablocks-coupon-code-text",children:a}),("style2"===o||"style4"===o)&&(0,I.jsxs)("div",{ | |
| 3844 | +className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]}),"default"===o&&(0,I.jsxs)("div",{className:"ablocks-coupon-clipboard",children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)("span",{className:"ablocks-coupon-clipboard-text",children:n})]})]})})}QA.propTypes={},QA.defaultProps={},(0,M.xV)(XA.UU)&&(0,o.registerBlockType)(XA.UU,{title:(0,L.__)("Coupon","ablocks"),attributes:XA.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-coupon"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"" | |
| 3845 | +;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",FA(i),FA(i,"Tablet"),FA(i,"Mobile"),e(t=>FA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0, | |
| 3846 | +Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code",qA(i),qA(i,"Tablet"),qA(i,"Mobile"),e(t=>qA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-code:hover",$A(i),$A(i,"Tablet"),$A(i,"Mobile"),e(t=>$A(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard",GA(i),GA(i,"Tablet"),GA(i,"Mobile"),e(t=>GA(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-coupon-clipboard:hover",ZA(i),ZA(i,"Tablet"),ZA(i,"Mobile"),e(t=>ZA(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(YA,{...t}),(0,I.jsx)(EA,{...t})]})},save:KA,deprecated:[{attributes:JA.uK,save:QA}]});var tL=i(50174);const eL=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-start"})},{label:(0,L.__)("Center","ablocks"),value:"center",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-center-two"})},{label:(0, | |
| 3847 | +L.__)("Right","ablocks"),value:"right",icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--align-end"})}],iL=t=>["top","bottom"].includes(t?.contentPosition),oL=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return"center"===t.contentPosition&&(i.display=o?"block":"none"),i},aL=(t,e)=>{const i={},o=t[e?`showDate${e}`:"showDate"];return("left"===t.contentPosition||"right"===t.contentPosition||iL(t))&&(i.display=o?"block":"none"),"center"===t.contentPosition&&(i.display="block"),i},lL=(t,e)=>{const i={};return""!==e&&"Tablet"!==e||(i.display="none"),!1===t[`showDate${e}`]&&"Mobile"===e&&(i.display="none"),!0===t[`showDate${e}`]&&"Mobile"===e&&(i.display="block"),i},nL=(t,e)=>{const i={},o=t[`showDate${e}`]||null;return"Mobile"===e?"left"===t.contentPosition?i.left="calc(35px / 2) !important":"right"===t.contentPosition&&(i.right="calc(35px / 2) !important"):"left"===t.contentPosition?(i.left=o?"calc(30% / 2) !important":"calc(61px / 2) !important", | |
| 3848 | +i.right="auto !important"):"right"===t.contentPosition&&(i.right=o?"calc(30% / 2) !important":"calc(61px / 2) !important",i.left="auto !important"),i},sL=(t,e="")=>({fill:(0,Hs.qD)(t?.iconColor),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",property:"width",device:e}),...(0,Eb.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:18,unitDefaultValue:"px",property:"height",device:e})}),rL=t=>({background:(0,Hs.qD)(t?.iconBackgroundColor),...(0,Eb.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"width"}),...(0,Eb.qD)({attributeValue:t?.iconBackgroundSize,attributeObjectKey:"value",defaultValue:48,property:"height"})}),bL=(t,e="")=>({background:(0,Hs.qD)(t?.thicknessColor),...(0,Eb.qD)({attributeValue:t?.thickness,attributeObjectKey:"value",defaultValue:3,property:"width"}),...(0,Eb.qD)({ | |
| 3849 | +attributeValue:t?.lineLeft,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"px",property:"margin-left",device:e}),...(0,Eb.qD)({attributeValue:t?.lineRight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"px",property:"margin-right",device:e})}),cL=(t,e="")=>iL(t)?{"--ablocks-content-timeline-icon-size":`${t?.iconBackgroundSize||48}px`}:{...(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"margin-top",device:e})},dL=(t,e="")=>iL(t)?(0,Eb.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"gap",device:e}):{},uL=t=>({background:(0,Hs.qD)(t?.contentBackgroundColor)}),pL=(t,e="")=>({padding:"15px",...(0,c.qD)(t?.contentPadding,"padding",e)}),mL=t=>{const e={};return t?.contentBackgroundColor&&(e["border-left-color"]=(0,Hs.qD)(t?.contentBackgroundColor), | |
| 3850 | +e["border-right-color"]=(0,Hs.qD)(t?.contentBackgroundColor)),e},hL=(t,e="")=>{const i=(0,M.Zy)(t.dateTypography,{weight:"400"}),o=t.dateTypographyGlobal?t.dateTypographyGlobal:"";return{color:(0,Hs.qD)(t?.dateColor),...(0,U.qD)(i,e,o)}},gL=t=>{const e={};return iL(t)||("top"===t?.arrowAlignment&&(e.height="35px",e.top="10%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)"),"bottom"===t?.arrowAlignment&&(e.height="35px",e.top="90%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)"),"centre"===t?.arrowAlignment&&(e.height="35px",e.top="50%",e.transform="translateY(-50%)",e.WebkitTransform="translateY(-50%)")),e},fL=t=>{const e={};return iL(t)?(e["align-self"]="stretch",e["text-align"]=t?.dateAlign||"left",e):("top"===t?.arrowAlignment?(e["align-self"]="flex-start",e["margin-top"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):"bottom"===t?.arrowAlignment?(e["align-self"]="flex-end", | |
| 3851 | +e["margin-bottom"]=t?.iconBackgroundSize?t.iconBackgroundSize/4+"px":0):e["align-self"]="center",e)},yL=t=>{const e={};return e["align-self"]="top"===t?.arrowAlignment?"flex-start":"bottom"===t?.arrowAlignment?"flex-end":"center",e},TL=({attributes:t,setAttributes:e})=>{const{arrowAlignment:i,contentPosition:o,iconBackgroundColor:a,iconColor:n,thicknessColor:s,dateFormat:r,contentBackgroundColor:b,showDate:c,showDateTablet:d,showDateMobile:u,dateColor:p,dateTypography:m,contentPadding:h,datePadding:g,dateAlign:f,dateBackground:y,connectorAnimationColor:T,showAnimation:H}=t,x=lt(),k=iL(t);return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:t,setAttributes:e,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Content Timeline","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0, | |
| 3852 | +L.__)("Content Position","ablocks"),options:[{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:(0,L.__)("Right","ablocks"),value:"right"},{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"}],attributeName:"contentPosition",attributeValue:o,setAttributes:e}),(0,I.jsx)(Wb,{isResponsive:!1,allowDeselect:!1,label:(0,L.__)("Arrow Alignment","ablocks"),options:[{label:k?(0,L.__)("Start","ablocks"):(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Center","ablocks"),value:"center"},{label:k?(0,L.__)("End","ablocks"):(0,L.__)("Bottom","ablocks"),value:"bottom"}],attributeName:"arrowAlignment",attributeValue:i,setAttributes:e}),""===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:c,setAttributes:e,attributeName:"showDate"}),"Tablet"===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:d,setAttributes:e, | |
| 3853 | +attributeName:"showDateTablet"}),"Mobile"===x&&(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Date","ablocks"),attributeValue:u,setAttributes:e,attributeName:"showDateMobile"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),attributeName:"contentBackgroundColor",attributeValue:b,setAttributes:e}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),attributeName:"itemGap",attributeObjectKey:"value",attributeValue:t?.itemGap,setAttributes:e,hasUnit:!0,step:1,min:0,max:100,unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"em",label:"em"}],isInline:!1,attributeDefaultValue:tL.Qk}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:h,setAttributes:e})]})})}),t[`showDate${x}`]&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Date","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0, | |
| 3854 | +L.__)("Date Format","ablocks"),options:M.vL,attributeValue:r,attributeName:"dateFormat",setAttributes:e,allowDeselect:!1,isResponsive:!1}),"Mobile"===x&&(0,I.jsx)(Wb,{isResponsive:!1,isInline:!0,label:(0,L.__)("Date Alignment","ablocks"),options:eL,attributeName:"dateAlign",attributeValue:f,setAttributes:e})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Date Typography","ablocks"),attributeName:"dateTypography",attributeValue:m,setAttributes:e,isResponsive:!0,attributes:t}),(0,I.jsx)(Ws,{label:(0,L.__)("Date Color","ablocks"),attributeName:"dateColor",attributeValue:p,setAttributes:e}),"Mobile"===x&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Date Background","ablocks"),attributeName:"dateBackground",attributeValue:y,setAttributes:e}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"datePadding",attributeValue:g,setAttributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!0,isHeader:!0 | |
| 3855 | +}),(0,I.jsx)(Us,{attributeName:"dateBorder",attributeValue:t?.dateBorder,setAttributes:e})]})]})})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Connectors","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributePrefix:"contentTimeLineIcon",attributes:t,setAttributes:e,legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"iconSize",attributeValue:t?.iconSize,setAttributes:e,attributeDefaultValue:tL.RK}),(0,I.jsx)(_t,{label:(0,L.__)("Icon Background Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"iconBackgroundSize",attributeValue:t?.iconBackgroundSize,setAttributes:e,attributeDefaultValue:tL.BI}),!k&&"right"!==o&&(0,I.jsx)(_t,{label:(0,L.__)("Line Left","ablocks"),min:-100,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"lineLeft",attributeValue:t?.lineLeft, | |
| 3856 | +setAttributes:e,attributeDefaultValue:tL.ah,autoSyncRange:!1}),"right"===o&&(0,I.jsx)(_t,{label:(0,L.__)("Right Line","ablocks"),min:-100,max:100,step:1,isInline:!1,isResponsive:!0,hasUnit:!0,attributeName:"lineRight",attributeValue:t?.lineRight,setAttributes:e,attributeDefaultValue:tL.x7,autoSyncRange:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Connector Thickness","ablocks"),min:1,max:10,isInline:!1,isResponsive:!1,attributeName:"thickness",attributeValue:t?.thickness,setAttributes:e,attributeDefaultValue:tL.Xf})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Connector Color","ablocks"),attributeName:"thicknessColor",attributeValue:s,setAttributes:e}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Show Animation","ablocks"),attributeValue:H,setAttributes:e,attributeName:"showAnimation"}),H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Connector Animation Color","ablocks"),attributeName:"connectorAnimationColor",attributeValue:T,setAttributes:e}),(0, | |
| 3857 | +I.jsx)("span",{className:"ablocks-control-field-description",children:(0,L.__)("Animation color only work at frontend.","ablocks")})]}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:n,setAttributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Background Color","ablocks"),attributeName:"iconBackgroundColor",attributeValue:a,setAttributes:e})]})})})]})})})},HL={UU:"ablocks/content-timeline",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean"},showDateMobile:{type:"boolean",default:!0},showAnimation:{type:"boolean",default:!1},connectorAnimationColor:{type:"string",default:"00ad6b"},dateColor:{type:"string",default:"#333333"},dateFormat:{type:"string", | |
| 3858 | +default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"object",default:{value:18,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},lineLeft:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},lineRight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconSvgPath:{type:"string", | |
| 3859 | +default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},contentTimeLineIconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},contentTimeLineIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},contentTimeLineIconImageUrl:{type:"string",default:""},contentTimeLineIconImageID:{type:"number",default:0},contentTimeLineIconImageSize:{type:"string",default:""},contentTimeLineIconColor:{type:"string",default:"#69727d"},contentTimeLineIconBgColor:{type:"string",default:""},contentTimeLineIconHoverColor:{type:"string",default:""},contentTimeLineIconHoverBgColor:{type:"string",default:""}, | |
| 3860 | +contentTimeLineIconType:{type:"string",default:"default"},contentTimeLineIconShape:{type:"string",default:"circle"},contentTimeLineIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},contentTimeLineIconBoxShadow:{type:"object",default:{preset:"", | |
| 3861 | +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},contentTimeLineIconSize:{type:"number",default:55},contentTimeLineIconRotate:{type:"number",default:0},contentTimeLineIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIcontransitionDuration:{type:"number",default:0},contentTimeLineIconImageWidth:{type:"number",default:0},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},dateAlign:{type:"string", | |
| 3862 | +default:"left"},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateTypographyGlobal:{type:"string",default:""},dateTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}}, | |
| 3863 | +datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"", | |
| 3864 | +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:"", | |
| 3865 | +unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default", | |
| 3866 | +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:"", | |
| 3867 | +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:"",vOffsetMobile:"", | |
| 3868 | +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:"",imgIdMobileH:"",imgUrlH:"", | |
| 3869 | +imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{ | |
| 3870 | +zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1, | |
| 3871 | +rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"", | |
| 3872 | +maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1, | |
| 3873 | +easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},ML=t=>"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(t):setTimeout(t,16);class xL{constructor(t,e=!1){this.contentTimeline=t,this.timelineElement=t.querySelector(".ablocks-block-content-timeline"),this.blockTopHeight=this.contentTimeline.getBoundingClientRect().top+window.scrollY,this.editor=e,this.arrowAlignment=this.timelineElement.getAttribute("data-arrow-alignment"),this.animationColor=this.timelineElement.getAttribute("data-animation-color"),this.showAnimation=this.timelineElement.getAttribute("data-show-animation"), | |
| 3874 | +this.lineElement=this.contentTimeline.querySelector(".ablocks-block-content-timeline__line"),this.lineInnerElement=this.contentTimeline.querySelector(".ablocks-block-content-timeline__line__inner"),this.childBlocks=Array.from(this.contentTimeline.querySelectorAll(".ablocks-block-content-timeline-child")),this.handleScroll=this.handleScroll.bind(this),this.updateTimeline=this.updateTimeline.bind(this);const i=document.querySelector(".interface-navigable-region.interface-interface-skeleton__content");this.editorDiv=i,this.init()}init(){this.updateTimeline(),this.handleScroll(),window.addEventListener("scroll",this.handleScroll),void 0!==window.ResizeObserver&&(this.resizeObserver=new window.ResizeObserver(()=>ML(()=>{(this.hasHorizontalPosition()||this.wasHorizontal)&&(this.updateTimeline(),this.handleScroll())})),this.resizeObserver.observe(this.timelineElement))}updateTimeline(){if(0===this.childBlocks.length||!this.lineElement)return;if(this.wasHorizontal=this.isHorizontal(), | |
| 3875 | +this.wasHorizontal)return void this.updateHorizontalTimeline();if(this.resetHorizontalLineStyles(),this.hasHorizontalPosition())return void this.updateStackedTimeline();const[t,e]=[this.childBlocks[0],this.childBlocks[this.childBlocks.length-1]],[i,o]=[t.getBoundingClientRect().height,e.getBoundingClientRect().height];switch(this.arrowAlignment){case"center":this.lineElement.style.top=i/2+"px",this.lineElement.style.bottom=o/2+"px";break;case"bottom":this.lineElement.style.top=`${i}px`,this.lineElement.style.bottom=o/o+"px";break;case"top":this.lineElement.style.top=i/i+"px",this.lineElement.style.bottom=`${o}px`}this.lineInnerElement.style.height="0px"}hasHorizontalPosition(){return this.timelineElement.classList.contains("ablocks-block-content-timeline--top")||this.timelineElement.classList.contains("ablocks-block-content-timeline--bottom")}isHorizontal(){ | |
| 3876 | +return!(!this.hasHorizontalPosition()||!this.childBlocks[0]?.parentElement)&&"row"===window.getComputedStyle(this.childBlocks[0].parentElement).flexDirection}resetHorizontalLineStyles(){["left","width","height","marginLeft","marginRight"].forEach(t=>{this.lineElement.style[t]=""}),this.lineInnerElement.style.width=""}updateHorizontalTimeline(){const t=this.childBlocks.map(t=>t.querySelector(".ablocks__in-view-icon")).filter(Boolean);if(0===t.length)return;this.resetHorizontalLineStyles();const e=parseFloat(window.getComputedStyle(this.lineElement).width)||3,i=this.timelineElement.getBoundingClientRect(),o=t[0].getBoundingClientRect(),a=t[t.length-1].getBoundingClientRect(),l=o.left+o.width/2,n=a.left+a.width/2,s=o.top+o.height/2;this.lineElement.style.top=s-i.top-e/2+"px",this.lineElement.style.bottom="auto",this.lineElement.style.left=l-i.left+"px",this.lineElement.style.width=`${Math.max(n-l,0)}px`,this.lineElement.style.height=`${e}px`,this.lineElement.style.marginLeft="0px", | |
| 3877 | +this.lineElement.style.marginRight="0px",this.lineInnerElement.style.height="100%",this.lineInnerElement.style.width="0px"}updateStackedTimeline(){const t=this.childBlocks.map(t=>t.querySelector(".ablocks__in-view-icon")).filter(Boolean);if(0===t.length)return;const e=this.timelineElement.getBoundingClientRect(),i=t[0].getBoundingClientRect(),o=t[t.length-1].getBoundingClientRect();this.lineElement.style.top=i.top+i.height/2-e.top+"px",this.lineElement.style.bottom=e.bottom-(o.top+o.height/2)+"px",this.lineInnerElement.style.height="0px"}handleHorizontalScroll(){const t="true"===this.showAnimation&&!this.editor&&this.timelineElement.getBoundingClientRect().top<window.innerHeight/2;this.childBlocks.forEach(e=>{const i=e.querySelector(".ablocks-icon-wrap");i&&(i.style.backgroundColor=t?(0,Hs.qD)(this.animationColor):"")}),this.lineInnerElement&&("true"===this.showAnimation&&(this.lineInnerElement.style.backgroundColor=(0,Hs.qD)(this.animationColor)), | |
| 3878 | +this.lineInnerElement.style.width=t?"100%":"0px")}handleScroll(){ML(()=>{if(this.isHorizontal())return void this.handleHorizontalScroll();let t=0;const e=window.scrollY;this.childBlocks.forEach(i=>{t+=i.getBoundingClientRect().height;const o=i.querySelector(".ablocks-icon-wrap");e-this.blockTopHeight>t-i.getBoundingClientRect().height?"true"===this.showAnimation&&!1===this.editor&&(o.style.backgroundColor=(0,Hs.qD)(this.animationColor)):o.style.backgroundColor=""}),this.lineInnerElement&&("true"===this.showAnimation&&(this.lineInnerElement.style.backgroundColor=(0,Hs.qD)(this.animationColor)),this.editor||(this.lineInnerElement.style.height=e-this.blockTopHeight+"px"))})}destroy(){window.removeEventListener("scroll",this.handleScroll),this.resizeObserver&&this.resizeObserver.disconnect()}}const kL=t=>{ | |
| 3879 | +const{attributes:e,clientId:i,isSelected:o}=t,{block_id:l,contentPosition:n,arrowAlignment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p,connectorAnimationColor:m,contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k}=e,{updateBlockAttributes:v}=(0,r.useDispatch)("core/block-editor"),_=(0,r.useSelect)(t=>t("core/block-editor").getBlockOrder(i).join(","),[i]);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${l}.ablocks-block--content-timeline`);let e=null;t&&(e=new xL(t,!0),e.updateTimeline());const i=()=>{e&&e.updateTimeline()};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),e&&e.destroy()}},[l,b,n,_]),(0,a.useEffect)(()=>{o&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(i);t.length>0&&t.forEach(t=>{const i=t.clientId;v(i,{contentPosition:n,arrowAlignmentment:b,iconColor:c,iconBackgroundColor:d,thicknessColor:u,showAnimation:p, | |
| 3880 | +connectorAnimationColor:m,contentBackgroundColor:h,showDate:g,showDateTablet:f,showDateMobile:y,dateFormat:T,dateColor:H,dateAlign:x,dateBackground:k,parentAttribute:e})})})()},[e,o,_]);const R="ablocks-block-content-timeline",S=s()(R,`${R}--outer-wrap`,`${R}--editor-preview-mode-desktop`,`${R}--${n}`),W=s()(`${R}__line`);return(0,I.jsx)(Yb.A,{blockId:l,name:HL.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:S,"data-arrow-alignment":b,"data-animation-color":m,"data-show-animation":p,children:[(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/content-timeline-child"],["ablocks/content-timeline-child"],["ablocks/content-timeline-child"]],templateLock:!1,allowedBlocks:["ablocks/content-timeline-child"]}),(0,I.jsx)("div",{className:W,children:(0,I.jsx)("div",{className:`${R}__line__inner`})})]})})};function vL(t){ | |
| 3881 | +const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,I.jsx)(sc,{blockId:i,name:HL.UU,attributes:e,children:(0,I.jsxs)("div",{className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:r,children:(0,I.jsx)("div",{className:`${l}__line__inner`})})]})})}vL.propTypes={};const _L={UU:"ablocks/content-timeline",uK:{block_id:{type:"string",default:""},iconColor:{type:"string",default:"#000000"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333" | |
| 3882 | +},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:18},contentTimeLineIconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},contentTimeLineIconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},contentTimeLineIconClass:{type:"string",default:"far fa-arrow-alt-circle-up"}, | |
| 3883 | +contentTimeLineIconImageUrl:{type:"string",default:""},contentTimeLineIconImageID:{type:"number",default:0},contentTimeLineIconImageSize:{type:"string",default:""},contentTimeLineIconColor:{type:"string",default:"#69727d"},contentTimeLineIconBgColor:{type:"string",default:""},contentTimeLineIconType:{type:"string",default:"default"},contentTimeLineIconShape:{type:"string",default:"circle"},contentTimeLineIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},contentTimeLineIconSize:{type:"number",default:55},contentTimeLineIconRotate:{type:"number",default:0},contentTimeLineIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"", | |
| 3884 | +valueUnitMobile:""}},contentTimeLineIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},contentTimeLineIcontransitionDuration:{type:"number",default:0},contentTimeLineIconImageWidth:{type:"number",default:0},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},dateAlign:{type:"string",default:"left"},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"", | |
| 3885 | +fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 3886 | +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:"", | |
| 3887 | +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, | |
| 3888 | +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, | |
| 3889 | +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:"",topRadiusHTablet:"", | |
| 3890 | +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:"", | |
| 3891 | +imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"", | |
| 3892 | +imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"", | |
| 3893 | +offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"", | |
| 3894 | +scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{ | |
| 3895 | +animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function RL(t){const{attributes:e}=t,{block_id:i,contentPosition:o,arrowAlignment:a}=e,l="ablocks-block-content-timeline",n=s()(l,`${l}--outer-wrap`,`${l}--preview-mode-desktop`,`${l}--${o}`),r=s()(`${l}__line`);return(0,I.jsx)(hc,{blockId:i,name:_L.UU,attributes:e,children:(0,I.jsxs)("div",{className:n,"data-arrow-alignment":a,"data-animation-color":e?.connectorAnimationColor,"data-show-animation":e?.showAnimation,children:[(0, | |
| 3896 | +I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:r,children:(0,I.jsx)("div",{className:`${l}__line__inner`})})]})})}function SL(t){const{attributes:e,setAttributes:i}=t,{text_date:o,changeChildIcon:a}=e,n=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Content Timeline Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access content timeline settings to display events in order.","ablocks")})]}),(0,I.jsx)(jb,{clientId:t?.clientId})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-content-timeline-block/",children:(0,I.jsxs)(V,{title:(0,L.__)("Content Timeline Child","ablocks"), | |
| 3897 | +initialOpen:!0,children:[!0===e[`showDate${n}`]&&(0,I.jsx)(Kl,{label:(0,L.__)("Date (mm/dd/yyyy)","ablocks"),attributeName:"text_date",attributeValue:o,setAttributes:i,isInline:!1}),(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Change Icon","ablocks"),attributeValue:a,setAttributes:i,attributeName:"changeChildIcon"}),a&&(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0})]})})]})})}RL.propTypes={},(0,M.xV)(HL.UU)&&(0,o.registerBlockType)(HL.UU,{title:(0,L.__)("Content Timeline","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline"}),attributes:HL.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{arrowAlignment:n,block_id:s}=i;(0,a.useEffect)(()=>{s&&s===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[s,l]);const r=(0,a.useMemo)(()=>{let t=null | |
| 3898 | +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date-inner",oL(i,""),oL(i,"Tablet"),oL(i,"Mobile"),e(t=>oL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",aL(i,""),aL(i,"Tablet"),aL(i,"Mobile"),e(t=>aL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",lL(i,""),lL(i,"Tablet"),lL(i,"Mobile"),e(t=>lL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--left .ablocks-block-content-timeline__line,.ablocks-block-content-timeline--right .ablocks-block-content-timeline__line",nL(i,""),nL(i,"Tablet"),nL(i,"Mobile"),e(t=>nL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-maker svg",sL(i),sL(i,"Tablet"),sL(i,"Mobile"),e(t=>sL(i,t))), | |
| 3899 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",rL(i),rL(i),rL(i),e(t=>rL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline__line",bL(i),bL(i,"Tablet"),bL(i,"Mobile"),e(t=>bL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field",cL(i),cL(i,"Tablet"),cL(i,"Mobile"),e(t=>cL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap > .block-editor-inner-blocks > .block-editor-block-list__layout",dL(i),dL(i,"Tablet"),dL(i,"Mobile"),e(t=>dL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline--outer-wrap .ablocks__in-view-icon",yL(i),yL(i),yL(i),e(t=>yL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--field .ablocks-block-content-timeline-child__content-part",uL(i),uL(i),uL(i),e(t=>uL(i))), | |
| 3900 | +t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .block-editor-block-list__layout",pL(i),pL(i,"Tablet"),pL(i,"Mobile"),e(t=>pL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__content-part .ablocks-block-content-timeline-child__arrow::after",mL(i),mL(i),mL(i),e(t=>mL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child--line-center .ablocks-block-content-timeline-child__arrow",gL(i),gL(i),gL(i),e(t=>gL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date",fL(i),fL(i),fL(i),e(t=>fL(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__date, .ablocks-block-content-timeline-child__inner-content-date",hL(i),hL(i,"Tablet"),hL(i,"Mobile"),e(t=>hL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date",((t,e)=>{const i={};return t?.dateAlign&&(i["text-align"]=t?.dateAlign),{background:(0,Hs.qD)(t?.dateBackground),...i,...(0, | |
| 3901 | +c.qD)(t?.datePadding,"padding",e),...(0,y.qD)(t?.dateBorder,e)}})(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-content-timeline-child__inner-content-date:hover",(t=>({...(0,y.a9)(t?.dateBorder,"Mobile")}))(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:r}),e&&(0,I.jsx)(TL,{...t}),(0,I.jsx)(kL,{...t})]})},save:vL,deprecated:[{attributes:_L.uK,save:t=>(0,I.jsx)(RL,{...t})}]}),SL.propTypes={},SL.defaultProps={};const WL={UU:"ablocks/content-timeline-child",$t:["ablocks/content-timeline"],uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string",default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"}, | |
| 3902 | +showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string",default:"#333333"},dateAlign:{type:"string",default:"left"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:55},iconSvgPath:{type:"string", | |
| 3872 | 3903 | default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"", |
| 3873 | 3904 | unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconRotate:{type:"number",default:0},iconSizing:{ |
| 3874 | 3905 | type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},dateTypographyGlobal:{type:"string",default:""},dateTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"", |
| 3875 | 3906 | letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", |
| @@ -3881,12 +3912,12 @@ | ||
| 3881 | 3912 | imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"", |
| 3882 | 3913 | imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px", |
| 3883 | 3914 | offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"", |
| 3884 | 3915 | scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", |
| 3885 | -animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var nL=i(38443);const sL=t=>{ | |
| 3886 | -const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:b,indexContent:c,text_date:d,changeChildIcon:u,parentAttribute:p}=e;(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockIndex(b);i({indexContent:t})},[]);const m={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:C.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},h=0===Object.keys(p).length,g=void 0!==c&&c%2==0,f=void 0!==c&&c%2==1,y=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":g&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":f&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition, | |
| 3887 | -[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),T=e?.dateFormat&&d?(0,nL.format)(e?.dateFormat,d):d,H=e?.dateFormat&&d?(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,nL.format)(e?.dateFormat,d)}):(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:d}),M=s()("ablocks-block-content-timeline-child__date");return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(K_,{blockId:b,name:lL.UU,attributes:e,className:y,children:[u||h?(0,L.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,L.jsx)(Vd,{attributePrefix:"contentTimeLineIcon",attributes:p})}),(0,L.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,L.jsx)(C.InnerBlocks,{...m}),(0,L.jsx)("div",{ | |
| 3888 | -className:"ablocks-block-content-timeline-child__inner-content-date",children:T}),(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,L.jsx)("div",{className:M,children:H})]})})},rL={UU:"ablocks/content-timeline-child",uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string",default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string", | |
| 3916 | +animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};var PL=i(38443);const UL=t=>{ | |
| 3917 | +const{attributes:e,setAttributes:i,clientId:n}=t,{block_id:b,indexContent:c,text_date:d,changeChildIcon:u,parentAttribute:p}=e;(0,a.useEffect)(()=>{const t=(0,r.select)("core/block-editor").getBlockIndex(b);i({indexContent:t})},[]);const m={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(n).length>0?void 0:D.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},h=0===Object.keys(p).length,g=void 0!==c&&c%2==0,f=void 0!==c&&c%2==1,y=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":g&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":f&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition, | |
| 3918 | +[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),T=e?.dateFormat&&d?(0,PL.format)(e?.dateFormat,d):d,H=e?.dateFormat&&d?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,PL.format)(e?.dateFormat,d)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:d}),M=s()("ablocks-block-content-timeline-child__date");return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sR,{blockId:b,name:WL.UU,attributes:e,className:y,children:[u||h?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributePrefix:"contentTimeLineIcon",attributes:p})}),(0,I.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks,{...m}),(0,I.jsx)("div",{ | |
| 3919 | +className:"ablocks-block-content-timeline-child__inner-content-date",children:T}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:M,children:H})]})})},jL={UU:"ablocks/content-timeline-child",uK:{block_id:{type:"string",default:""},text_date:{type:"string",default:"January 1, 2024"},indexContent:{type:"number"},parentAttribute:{type:"object",default:{}},changeChildIcon:{type:"boolean",default:!1},contentPosition:{type:"string",default:"center"},arrowAlignment:{type:"string",default:"center"},iconColor:{type:"string",default:"#69727d"},iconBackgroundColor:{type:"string",default:"#eee"},thicknessColor:{type:"string",default:"#eee"},showAnimation:{type:"boolean",default:!0},connectorAnimationColor:{type:"string",default:"#00ad6b"},contentBackgroundColor:{type:"string",default:"#eee"},showDate:{type:"boolean",default:!0},showDateTablet:{type:"boolean",default:!0},showDateMobile:{type:"boolean",default:!0},dateColor:{type:"string", | |
| 3889 | 3920 | default:"#333333"},dateAlign:{type:"string",default:"left"},dateFormat:{type:"string",default:"F j, Y"},dateBackground:{type:"string",default:"#eee"},iconBackgroundSize:{type:"number",default:48},itemGap:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},thickness:{type:"number",default:3},iconSize:{type:"number",default:55},iconSvgPath:{type:"string",default:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 512 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"far fa-arrow-alt-circle-up"}, |
| 3890 | 3921 | iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}}, |
| 3891 | 3922 | icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},dateTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"", |
| 3892 | 3923 | leftMobile:"",unitMobile:""}},datePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dateBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"", |
| @@ -3898,31 +3929,80 @@ | ||
| 3898 | 3929 | imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}}, |
| 3899 | 3930 | _zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1, |
| 3900 | 3931 | rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"", |
| 3901 | 3932 | maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string", |
| 3902 | -default:""}}};(0,M.xV)(lL.UU,lL.$t[0])&&(0,o.registerBlockType)(lL.UU,{title:"Content Timeline Child",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline-child"}),attributes:lL.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new j(i,l).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(aL,{...t}),(0,L.jsx)(sL,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition, | |
| 3903 | -"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,nL.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,nL.format)(e?.dateFormat,a)}):(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,L.jsxs)(eR,{blockId:i,name:lL.UU,attributes:e,className:d,children:[l||r?(0,L.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,L.jsx)(Vd,{attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,L.jsxs)("div",{ | |
| 3904 | -className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,L.jsx)(C.InnerBlocks.Content,{}),(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,L.jsx)("div",{className:m,children:p})]})},deprecated:[{attributes:rL.uK,save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition, | |
| 3905 | -"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,nL.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,nL.format)(e?.dateFormat,a)}):(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,L.jsxs)(eR,{blockId:i,name:rL.UU,attributes:e,className:d,children:[l||r?(0,L.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,L.jsx)(Vd,{attributes:e})}):(0,L.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,L.jsx)(Vd,{attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,L.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0, | |
| 3906 | -L.jsx)(C.InnerBlocks.Content,{}),(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,L.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,L.jsx)("div",{className:m,children:p})]})}}]});var bL=i(8697);const cL=t=>{const e=[],i=[];t.forEach(t=>{const o=parseInt(t.tag.replace("h",""),10),a={element:(0,L.jsx)("a",{href:`#${t.anchor}`,children:t.content}),level:o,subItems:[]};for(;i.length&&i[i.length-1].level>=o;)i.pop();i.length>0?i[i.length-1].subItems.push(a):e.push(a),i.push(a)});const o=t=>(0,L.jsx)("ol",{className:"ablocks-toc-list",children:t.map((t,e)=>(0,L.jsxs)("li",{className:"ablocks-toc-item",children:[t.element,t.subItems.length>0&&o(t.subItems)]},e))});return o(e)},dL=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Bullet","ablocks"),value:"disc"},{label:(0,z.__)("Number","ablocks"),value:"decimal"},{label:(0,z.__)("Roman Number","ablocks"),value:"lower-roman"},{label:(0, | |
| 3907 | -z.__)("Alphabet","ablocks"),value:"lower-alpha"},{label:(0,z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Square","ablocks"),value:"square"}];function uL(t){const{attributes:e,setAttributes:i,context:o}=t,{tocTableTitle:a,H1:n,H2:s,H3:r,H4:b,H5:c,H6:d,markerView:u,titleColor:p,titleTypography:m,hideTitle:h,collapSible:g,contentTypography:f,itemColor:y,headerBG:T,iconColor:H,bodyBG:M,header_padding:x,list_padding:k,activeColor:v}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-of-content-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Table of Content Options","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Show Title","ablocks"),attributeValue:h,setAttributes:i,attributeName:"hideTitle",isResponsive:!1}),h&&(0,L.jsx)(ql,{label:(0,z.__)("Title","ablocks"), | |
| 3908 | -attributeName:"tocTableTitle",attributeValue:a,setAttributes:i,context:o}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Choose heading tags to generate table","ablocks"),isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("H1","ablocks"),attributeValue:n,setAttributes:i,attributeName:"H1",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("H2","ablocks"),attributeValue:s,setAttributes:i,attributeName:"H2",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("H3","ablocks"),attributeValue:r,setAttributes:i,attributeName:"H3",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("H4","ablocks"),attributeValue:b,setAttributes:i,attributeName:"H4",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("H5","ablocks"),attributeValue:c,setAttributes:i,attributeName:"H5",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("H6","ablocks"),attributeValue:d,setAttributes:i,attributeName:"H6",isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h2",{className:"ablocks-settings-section-title",children:(0, | |
| 3909 | -z.__)("Header Style","ablocks")}),(0,L.jsx)(vs,{label:(0,z.__)("Title Color","ablocks"),attributeName:"titleColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Title Typography","ablocks"),attributeName:"titleTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Header Background","ablocks"),isGradient:!1,attributeName:"headerBG",attributeValue:T,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"header_padding",attributeValue:x,setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Lists Settings","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ut,{label:(0,z.__)("Marker View","ablocks"),options:dL,isResponsive:!1,attributeValue:u, | |
| 3910 | -attributeName:"markerView",setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("List Gap","ablocks"),min:1,max:100,hasUnit:!0,isInline:!1,unitOptions:[{value:"px",label:"px"}],isResponsive:!1,attributeName:"listItemGap",attributeValue:e?.listItemGap,setAttributes:i,attributeDefaultValue:bL.GJ}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"itemColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Active Item Color","ablocks"),isGradient:!1,attributeName:"activeColor",attributeValue:e?.activeColor,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"bodyBG",attributeValue:M,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"list_padding",attributeValue:k, | |
| 3911 | -setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Collapsible Settings","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Make Content Collapsible","ablocks"),attributeValue:g,setAttributes:i,attributeName:"collapSible",isResponsive:!1}),g&&(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:bL.RK}),g&&(0,L.jsx)(Ld,{label:(0,z.__)("Open Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"openIcon",legacySupport:!0}),g&&(0,L.jsx)(Ld,{label:(0,z.__)("Close Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"closeIcon",legacySupport:!0})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),attributeName:"iconColor",attributeValue:H,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Icon Padding","ablocks"), | |
| 3912 | -isResponsive:!1,attributeName:"icon_padding",attributeValue:e?.icon_padding||{},setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"iconBorder",attributeValue:e?.iconBorder||{},setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"iconBoxShadow",attributeValue:e?.iconBoxShadow||{},setAttributes:i})]})})})]})})})}uL.propTypes={},uL.defaultProps={};const pL={UU:"ablocks/table-of-content",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},tocTableTitle:{type:"string",default:"Table Of Contents"},H1:{type:"boolean",default:!0},H2:{type:"boolean",default:!0},H3:{type:"boolean",default:!0},H4:{type:"boolean",default:!0},H5:{type:"boolean",default:!0},H6:{type:"boolean",default:!0},hideTitle:{type:"boolean",default:!0},collapSible:{type:"boolean",default:!0},markerView:{type:"string", | |
| 3913 | -default:"disc"},titleColor:{type:"string",default:"#000000"},itemColor:{type:"string",default:"#333"},iconColor:{type:"string"},activeColor:{type:"string",default:"#2763f3"},headerBG:{type:"string",default:"#ddd"},bodyBG:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},contentTypographyGlobal:{type:"string",default:""},contentTypography:{type:"object", | |
| 3914 | -default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"", | |
| 3915 | -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:"", | |
| 3916 | -commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"", | |
| 3917 | -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:"",rightRadiusHMobile:"", | |
| 3918 | -bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},header_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},icon_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"", | |
| 3919 | -leftMobile:"",unitMobile:""}},list_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},openIconSvgPath:{type:"string",default:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},openIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},openIconClass:{type:"string",default:"fas fa-chevron-down"},openIconImageUrl:{type:"string",default:""},openIconImageID:{ | |
| 3920 | -type:"number",default:0},openIconImageSize:{type:"string",default:""},openIconColor:{type:"string",default:"#69727d"},openIconBgColor:{type:"string",default:""},openIconHoverColor:{type:"string",default:""},openIconHoverBgColor:{type:"string",default:""},openIconType:{type:"string",default:"default"},openIconShape:{type:"string",default:"circle"},openIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},openIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px", | |
| 3921 | -isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},openIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},openIconSize:{type:"number",default:55},openIconRotate:{type:"number",default:0},openIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},openIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},openIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},openIcontransitionDuration:{type:"number",default:0},openIconImageWidth:{type:"number", | |
| 3922 | -default:0},closeIconSvgPath:{type:"string",default:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},closeIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},closeIconClass:{type:"string",default:"fas fa-chevron-up"},closeIconImageUrl:{type:"string",default:""},closeIconImageID:{type:"number",default:0},closeIconImageSize:{type:"string",default:""},closeIconColor:{type:"string",default:"#69727d"},closeIconBgColor:{type:"string",default:""},closeIconHoverColor:{type:"string",default:""},closeIconHoverBgColor:{type:"string",default:""},closeIconType:{type:"string",default:"default"},closeIconShape:{type:"string", | |
| 3923 | -default:"circle"},closeIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},closeIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},closeIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"", | |
| 3924 | -horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},closeIconSize:{type:"number",default:55},closeIconRotate:{type:"number",default:0},closeIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIcontransitionDuration:{type:"number",default:0},closeIconImageWidth:{type:"number",default:0},iconSize:{type:"number",default:20},listItemGap:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 3933 | +default:""}}};(0,M.xV)(WL.UU,WL.$t[0])&&(0,o.registerBlockType)(WL.UU,{title:(0,L.__)("Content Timeline Child","ablocks"),icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-timeline-child"}),attributes:WL.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(SL,{...t}),(0,I.jsx)(UL,{...t})]})},save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition, | |
| 3934 | +"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,PL.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,PL.format)(e?.dateFormat,a)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,I.jsxs)(dR,{blockId:i,name:WL.UU,attributes:e,className:d,children:[l||r?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{ | |
| 3935 | +attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,I.jsxs)("div",{className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:m,children:p})]})},deprecated:[{attributes:jL.uK,save:t=>{const{attributes:e}=t,{block_id:i,indexContent:o,text_date:a,changeChildIcon:l,parentAttribute:n}=e,r=0===Object.keys(n).length,b=void 0!==o&&o%2==0,c=void 0!==o&&o%2==1,d=s()("ablocks-block-content-timeline-child","ablocks-block-content-timeline-child--field",{"ablocks-block-content-timeline-child--content-center-right-side":b&&"center"===e?.contentPosition,"ablocks-block-content-timeline-child--content-center-left-side":c&&"center"===e?.contentPosition, | |
| 3936 | +"ablocks-block-content-timeline-child--content-right-side":"right"===e?.contentPosition,"ablocks-block-content-timeline-child--content-left-side":"left"===e?.contentPosition,[`ablocks-block-content-timeline-child--line-${e?.arrowAlignment}`]:!0}),u=e?.dateFormat&&a?(0,PL.format)(e?.dateFormat,a):a,p=e?.dateFormat&&a?(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:(0,PL.format)(e?.dateFormat,a)}):(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__date-inner",children:a}),m=s()("ablocks-block-content-timeline-child__date");return(0,I.jsxs)(dR,{blockId:i,name:jL.UU,attributes:e,className:d,children:[l||r?(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributes:e})}):(0,I.jsx)("div",{className:"ablocks-icon-maker ablocks__in-view-icon",children:(0,I.jsx)(Fd,{attributePrefix:"contentTimeLineIcon",attributes:n})}),(0,I.jsxs)("div",{ | |
| 3937 | +className:"ablocks-block-content-timeline-child__content-part ablocks-block-content-timeline-child__events-inner",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__inner-content-date",children:u}),(0,I.jsx)("div",{className:"ablocks-block-content-timeline-child__arrow"})]}),(0,I.jsx)("div",{className:m,children:p})]})}}]});var wL=i(8697);const zL=t=>{const e=[],i=[];t.forEach(t=>{const o=parseInt(t.tag.replace("h",""),10),a={element:(0,I.jsx)("a",{href:`#${t.anchor}`,children:t.content}),level:o,subItems:[]};for(;i.length&&i[i.length-1].level>=o;)i.pop();i.length>0?i[i.length-1].subItems.push(a):e.push(a),i.push(a)});const o=t=>(0,I.jsx)("ol",{className:"ablocks-toc-list",children:t.map((t,e)=>(0,I.jsxs)("li",{className:"ablocks-toc-item",children:[t.element,t.subItems.length>0&&o(t.subItems)]},e))});return o(e)},CL=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Bullet","ablocks"),value:"disc"},{label:(0, | |
| 3938 | +L.__)("Number","ablocks"),value:"decimal"},{label:(0,L.__)("Roman Number","ablocks"),value:"lower-roman"},{label:(0,L.__)("Alphabet","ablocks"),value:"lower-alpha"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Square","ablocks"),value:"square"}];function AL(t){const{attributes:e,setAttributes:i,context:o}=t,{tocTableTitle:a,H1:n,H2:s,H3:r,H4:b,H5:c,H6:d,markerView:u,titleColor:p,titleTypography:m,hideTitle:h,collapSible:g,contentTypography:f,itemColor:y,headerBG:T,iconColor:H,bodyBG:M,header_padding:x,list_padding:k,activeColor:v}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-table-of-content-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("Table of Content Options","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Show Title","ablocks"),attributeValue:h,setAttributes:i, | |
| 3939 | +attributeName:"hideTitle",isResponsive:!1}),h&&(0,I.jsx)(Kl,{label:(0,L.__)("Title","ablocks"),attributeName:"tocTableTitle",attributeValue:a,setAttributes:i,context:o}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Choose heading tags to generate table","ablocks"),isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H1","ablocks"),attributeValue:n,setAttributes:i,attributeName:"H1",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H2","ablocks"),attributeValue:s,setAttributes:i,attributeName:"H2",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H3","ablocks"),attributeValue:r,setAttributes:i,attributeName:"H3",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H4","ablocks"),attributeValue:b,setAttributes:i,attributeName:"H4",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H5","ablocks"),attributeValue:c,setAttributes:i,attributeName:"H5",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("H6","ablocks"),attributeValue:d,setAttributes:i,attributeName:"H6",isResponsive:!1})]}),style:(0, | |
| 3940 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,L.__)("Header Style","ablocks")}),(0,I.jsx)(Ws,{label:(0,L.__)("Title Color","ablocks"),attributeName:"titleColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Title Typography","ablocks"),attributeName:"titleTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Header Background","ablocks"),isGradient:!1,attributeName:"headerBG",attributeValue:T,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"headerBorder",attributeValue:e?.headerBorder,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"header_padding",attributeValue:x,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Lists Settings","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0, | |
| 3941 | +I.jsx)(Ut,{label:(0,L.__)("Marker View","ablocks"),options:CL,isResponsive:!1,attributeValue:u,attributeName:"markerView",setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("List Gap","ablocks"),min:1,max:100,hasUnit:!0,isInline:!1,unitOptions:[{value:"px",label:"px"}],isResponsive:!1,attributeName:"listItemGap",attributeValue:e?.listItemGap,setAttributes:i,attributeDefaultValue:wL.GJ}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!1,attributeName:"itemColor",attributeValue:y,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Active Item Color","ablocks"),isGradient:!1,attributeName:"activeColor",attributeValue:e?.activeColor,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),isGradient:!1,attributeName:"bodyBG",attributeValue:M,setAttributes:i}),(0,I.jsx)(xt,{ | |
| 3942 | +label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"list_padding",attributeValue:k,setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Collapsible Settings","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Make Content Collapsible","ablocks"),attributeValue:g,setAttributes:i,attributeName:"collapSible",isResponsive:!1}),g&&(0,I.jsx)(_t,{label:(0,L.__)("Icon Size","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:e?.iconSize,setAttributes:i,attributeDefaultValue:wL.RK}),g&&(0,I.jsx)(Yd,{label:(0,L.__)("Open Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"openIcon",legacySupport:!0}),g&&(0,I.jsx)(Yd,{label:(0,L.__)("Close Icon","ablocks"),attributes:e,setAttributes:i,attributePrefix:"closeIcon",legacySupport:!0})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"iconColor", | |
| 3943 | +attributeValue:H,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Icon Padding","ablocks"),isResponsive:!1,attributeName:"icon_padding",attributeValue:e?.icon_padding||{},setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"iconBorder",attributeValue:e?.iconBorder||{},setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"iconBoxShadow",attributeValue:e?.iconBoxShadow||{},setAttributes:i})]})})})]})})})}AL.propTypes={},AL.defaultProps={};const LL={UU:"ablocks/table-of-content",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},tocTableTitle:{type:"string",default:"Table Of Contents"},H1:{type:"boolean",default:!0},H2:{type:"boolean",default:!0},H3:{type:"boolean",default:!0},H4:{type:"boolean",default:!0},H5:{type:"boolean",default:!0},H6:{type:"boolean",default:!0},hideTitle:{ | |
| 3944 | +type:"boolean",default:!0},collapSible:{type:"boolean",default:!0},markerView:{type:"string",default:"disc"},titleColor:{type:"string",default:"#000000"},itemColor:{type:"string",default:"#333"},iconColor:{type:"string"},activeColor:{type:"string",default:"#2763f3"},headerBG:{type:"string",default:"#ddd"},bodyBG:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 3945 | +wordSpacingUnitMobile:"px"}},contentTypographyGlobal:{type:"string",default:""},contentTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},headerBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"", | |
| 3946 | +topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"", | |
| 3947 | +unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0, | |
| 3948 | +isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"", | |
| 3949 | +topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},header_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},icon_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"", | |
| 3950 | +topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},list_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},openIconSvgPath:{type:"string",default:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},openIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"}, | |
| 3951 | +openIconClass:{type:"string",default:"fas fa-chevron-down"},openIconImageUrl:{type:"string",default:""},openIconImageID:{type:"number",default:0},openIconImageSize:{type:"string",default:""},openIconColor:{type:"string",default:"#69727d"},openIconBgColor:{type:"string",default:""},openIconHoverColor:{type:"string",default:""},openIconHoverBgColor:{type:"string",default:""},openIconType:{type:"string",default:"default"},openIconShape:{type:"string",default:"circle"},openIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},openIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px", | |
| 3952 | +isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},openIconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},openIconSize:{type:"number",default:55},openIconRotate:{type:"number",default:0},openIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},openIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},openIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"", | |
| 3953 | +valueUnitMobile:""}},openIcontransitionDuration:{type:"number",default:0},openIconImageWidth:{type:"number",default:0},closeIconSvgPath:{type:"string",default:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},closeIconSvgViewBox:{type:"string",default:"0 0 448 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},closeIconClass:{type:"string",default:"fas fa-chevron-up"},closeIconImageUrl:{type:"string",default:""},closeIconImageID:{type:"number",default:0},closeIconImageSize:{type:"string",default:""},closeIconColor:{type:"string",default:"#69727d"},closeIconBgColor:{type:"string",default:""},closeIconHoverColor:{type:"string",default:""}, | |
| 3954 | +closeIconHoverBgColor:{type:"string",default:""},closeIconType:{type:"string",default:"default"},closeIconShape:{type:"string",default:"circle"},closeIconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},closeIconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},closeIconBoxShadow:{type:"object",default:{preset:"", | |
| 3955 | +shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},closeIconSize:{type:"number",default:55},closeIconRotate:{type:"number",default:0},closeIconSizing:{type:"object",default:{value:55,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},closeIcontransitionDuration:{type:"number",default:0},closeIconImageWidth:{type:"number",default:0},iconSize:{type:"number",default:20},listItemGap:{type:"object",default:{value:30,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 3956 | +isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 3957 | +commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"", | |
| 3958 | +bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"", | |
| 3959 | +backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 3960 | +imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1, | |
| 3961 | +rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"", | |
| 3962 | +offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0", | |
| 3963 | +xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{ | |
| 3964 | +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function DL(t){const[e,i]=(0,Yt.useState)([]),{attributes:o,setAttributes:a}=t,{block_id:n,tocTableTitle:s,hideTitle:b,openIconClass:c,closeIconClass:d,collapSible:u,isCollapsed:p}=o,m=(0,r.useSelect)(t=>t("core/editor").getEditedPostContent());return(0,Yt.useEffect)(()=>{const t=((t,e)=>{const{H1:i,H2:o,H3:a,H4:l,H5:n,H6:s}=e,r=(new DOMParser).parseFromString(t,"text/html");let b="";return i&&(b+="h1, "),o&&(b+="h2, "),a&&(b+="h3, "),l&&(b+="h4, "),n&&(b+="h5, "),s&&(b+="h6, "),b.endsWith(", ")&&(b=b.slice(0,-2)),(b?[...r.querySelectorAll(b)]:[]).map(t=>({content:t.textContent,anchor:t.textContent.toLowerCase().replace(/\s+/g,"-"),tag:t.tagName.toLowerCase()}))})(m,o);i(t)},[m]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{ | |
| 3965 | +blockId:n,name:LL.UU,attributes:o,typography:[{fontFamily:o.search_typography?.fontFamily,weight:o.search_typography?.weight}],children:[b&&(0,I.jsxs)("div",{className:"ablocks-toc__header",children:[(0,I.jsx)($c,{"aria-label":(0,L.__)("Add title","ablocks"),className:"ablocks-toc__header-title",value:s,placeholder:o.tocTableTitle,tagName:"span",identifier:"text",withoutInteractiveFormatting:!0,onChange:t=>a({tocTableTitle:t})}),u&&(0,I.jsx)("span",{role:"presentation",className:"ablocks-toc__header-toggle-icon",onClick:()=>{a({isCollapsed:!p})},children:p?d&&(0,I.jsx)(Fd,{attributePrefix:"closeIcon",attributes:o}):c&&(0,I.jsx)(Fd,{attributePrefix:"openIcon",attributes:o})})]}),p&&(0,I.jsxs)("div",{className:"ablocks-toc-body",children:[" ",zL(e)," "]})]})})}DL.propTypes={};const NL=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:{};return{color:(0,Hs.qD)(t?.titleColor),...(0,U.qD)(i,e,o)}},IL=(t,e="")=>({background:(0, | |
| 3966 | +Hs.qD)(t?.headerBG),...(0,y.qD)(t?.headerBorder,e),...(0,c.qD)(t?.header_padding,"padding",e)}),VL=(t,e="")=>({...(0,y.a9)(t?.headerBorder,e)}),OL=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o=t.contentTypographyGlobal?t.contentTypographyGlobal:{};return{color:(0,Hs.qD)(t?.itemColor),...(0,U.qD)(i,e,o),...(0,Eb.qD)({attributeValue:t.listItemGap,isResponsive:!1,property:"line-height",defaultValue:30,hasUnit:!0,unitDefaultValue:"px",device:e})}},YL=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o={color:(0,Hs.qD)(t?.itemColor),...(0,U.qD)(i,e)};return t?.itemColor&&(o.color=t?.itemColor),o},XL=(t,e="")=>{const i={color:(0,Hs.qD)(t?.itemColor)};return t?.activeColor&&(i.color=t?.activeColor),i},BL=(t,e)=>({...{fill:(0,Hs.qD)(t?.iconColor),...(0,Eb.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",defaultValue:20,unitDefaultValue:"px",device:e})},...(0,y.qD)(t?.iconBorder,e),...(0,H.qD)(t?.iconBoxShadow,e), | |
| 3967 | +...(0,c.qD)(t?.icon_padding,"padding",e)}),EL=(t,e="")=>({...(0,y.a9)(t?.iconBorder,e),...(0,H.a9)(t?.iconBoxShadow,e)}),FL=(t,e="")=>({background:(0,Hs.qD)(t?.bodyBG),...(0,c.qD)(t?.list_padding,"padding",e)}),qL=t=>{const e={};return["decimal","disc","circle","square","lower-alpha","lower-roman","none"].includes(t?.markerView)&&(e["list-style-type"]=t.markerView),e};(0,M.xV)(LL.UU)&&(0,o.registerBlockType)(LL.UU,{title:(0,L.__)("Table Of Content","ablocks"),attributes:LL.uK,icon:(0,I.jsx)("span",{className:" ablocks-icon ablocks-icon--table-of-content"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"" | |
| 3968 | +;const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-toc__header",IL(i),IL(i,"Tablet"),IL(i,"Mobile"),e(t=>IL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header:hover",VL(i),VL(i,"Tablet"),VL(i,"Mobile"),e(t=>VL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-title",NL(i),NL(i,"Tablet"),NL(i,"Mobile"),e(t=>NL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body",FL(i),FL(i,"Tablet"),FL(i,"Mobile"),e(t=>FL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap",BL(i),BL(i,"Tablet"),BL(i,"Mobile"),e(t=>BL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap:hover",EL(i),EL(i,"Tablet"),EL(i,"Mobile"),e(t=>EL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list",qL(i),qL(i),qL(i),e(t=>qL(i))), | |
| 3969 | +t.addClassStyles("{{WRAPPER}} .ablocks-toc-list,\n\t\t{{WRAPPER}} .ablocks-toc-list li a",YL(i),YL(i,"Tablet"),YL(i,"Mobile"),e(t=>YL(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list li a",OL(i),OL(i,"Tablet"),OL(i,"Mobile"),e(t=>OL(i,t))),t.addClassStyles("{{WRAPPER}} a.ablocks-toc-item-link.active",XL(i),XL(i,"Tablet"),XL(i,"Mobile"),e(t=>XL(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(AL,{...t}),(0,I.jsx)(DL,{...t})]})},save:()=>null});var $L=i(50782);(0,L.__)("Align text left","ablocks"),(0,L.__)("Align text center","ablocks"),(0,L.__)("Align text right","ablocks"),(0,L.__)("Align text justify","ablocks");const GL=[{label:(0,L.__)("Puls Effect","ablocks"),value:"ablocks-hotspot-puls-effect 1s ease infinite"},{label:(0,L.__)("Soft Beat","ablocks"),value:"ablocks-hotspot-soft-beat 1.5s ease-in-out infinite"},{label:(0,L.__)("Glow","ablocks"),value:"ablocks-hotspot-glow 2s ease-in-out infinite" | |
| 3970 | +},{label:(0,L.__)("None","ablocks"),value:""}],ZL=[{label:(0,L.__)("On Hover","ablocks"),value:"onHover"},{label:(0,L.__)("On Click","ablocks"),value:"onClick"}],KL=[{label:(0,L.__)("Fade In","ablocks"),value:"ablocks-hotspot-fadeIn"},{label:(0,L.__)("Fade Grow","ablocks"),value:"ablocks-hotspot-fadeGrow"},{label:(0,L.__)("Slide In Top","ablocks"),value:"ablocks-hotspot-slideInTop"},{label:(0,L.__)("Slide In Bottom","ablocks"),value:"ablocks-hotspot-slideInBottom"},{label:(0,L.__)("Slide In Left","ablocks"),value:"ablocks-hotspot-slideInLeft"},{label:(0,L.__)("Slide In Right","ablocks"),value:"ablocks-hotspot-slideInRight"},{label:(0,L.__)("None","ablocks"),value:""}],JL=[{label:(0,L.__)("Top","ablocks"),value:"top"},{label:(0,L.__)("Bottom","ablocks"),value:"bottom"},{label:(0,L.__)("Left","ablocks"),value:"left"},{label:(0,L.__)("Right","ablocks"),value:"right"}],QL=[{label:(0,L.__)("Full","ablocks"),value:"full"},{label:(0,L.__)("Large","ablocks"),value:"large"},{label:(0, | |
| 3971 | +L.__)("Medium","ablocks"),value:"medium"},{label:(0,L.__)("Thumbnail","ablocks"),value:"thumbnail"}],tD=t=>!(!t||"Empty"===t.iconClass||!t.iconSvgPath&&!t.iconImageUrl);function eD(t){const{attributes:e,setAttributes:i,clientId:a}=t,{lists:n,animationType:s,contentTrigger:b,contentAnimation:c,contentPosition:d,pinColor:u,pinColorEffect:p,pinHoverColor:m,pinSize:h,pinHoverSize:g,pinIconColor:f,pinIconSize:y,backgroundColor:T,childWidth:H,selectedImageSize:M}=e,{insertBlock:x,removeBlock:k}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:v}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor");let _=n.length>0?n[n.length-1].id+1:1;const R=()=>{const t=n.length,e=(0,o.createBlock)("ablocks/image-hotspot-child");x(e,t,a)},S=(t,e,o)=>{const a=n.map(i=>i.id===t.id?{...i,[e]:o}:i);i({lists:a})},W=lt();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i, | |
| 3972 | +docs_url:"https://ablocks.pro/docs/ablocks-image-hotspot-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Is,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({imageSizes:t.sizes,backgroundImage:t.url})},onRemoveImageHandler:()=>{i({backgroundImage:void 0})},attributeName:"backgroundImage",setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Image Size","ablocks"),options:QL,attributeName:"selectedImageSize",attributeValue:M,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Animations","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Trigger","ablocks"),options:ZL,attributeName:"contentTrigger",attributeValue:b,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Hotspot","ablocks"),options:GL,attributeName:"animationType",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Content","ablocks"),options:KL, | |
| 3973 | +attributeName:"contentAnimation",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Position","ablocks"),options:JL,attributeName:"contentPosition",attributeValue:d,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"pinColor",attributeValue:u,setAttributes:i,resetHandler:()=>{i({pinColor:""})},onChangeHandler:(t,e)=>{i({pinColor:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:p,setAttributes:i,resetHandler:()=>i({pinColorEffect:""}),onChangeHandler:(t,e)=>{i({pinColorEffect:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:m,setAttributes:i,resetHandler:()=>i({pinHoverColor:""}),onChangeHandler:(t,e)=>{i({pinHoverColor:e})}}),(0,I.jsx)(Ws,{label:(0,L.__)("Icon Color","ablocks"),attributeName:"pinIconColor",attributeValue:f,setAttributes:i}),(0,I.jsx)(_t,{label:(0, | |
| 3974 | +L.__)("Icon Size (%)","ablocks"),min:10,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"pinIconSize",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:h,onChangeHandler:t=>{i({pinSize:t})},setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:g,onChangeHandler:t=>{i({pinHoverSize:t})},setAttributes:i})]})})}),(0,I.jsx)(V,{title:(0,L.__)("Hotspot","ablocks"),initialOpen:!1,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{children:n?.map((t,e)=>(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=n.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{ | |
| 3975 | +borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsx)("div",{className:"ablocks-editor-list__content-wrapper",children:(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:o=>((t,e,o)=>{t.stopPropagation();const l=n.filter(t=>t?.id!==e),s=v(a);k(s[o],!1),i({lists:l})})(o,t?.id,e),role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:t=>((t,e,o)=>{t.stopPropagation();const a=n[o],l={id:_,text:a?.text,xAxis:a?.xAxis,yAxis:a?.yAxis,isOpen:!1,pinColor:a?.pinColor,pinColorEffect:a?.pinColorEffect,pinHoverColor:a?.pinHoverColor,pinSize:a?.pinSize,pinHoverSize:a?.pinHoverSize,icon:a?.icon},s=[...n,l];R(),i({lists:s})})(t,0,e),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsx)("div",{ | |
| 3976 | +className:"ablocks-editor-list__inner-content",children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.text,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,text:e}:i);i({lists:o})},setAttributes:i,isInline:!1}),(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:t?.icon||{},setAttributes:e=>S(t,"icon",{...t?.icon,...e}),legacySupport:!0}),(0,I.jsx)(_t,{label:(0,L.__)("Horizontal Position","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.xAxis,valueTablet:n[e]?.xAxisTab,valueMobile:n[e]?.xAxisMob},onChangeHandler:e=>((t,e)=>{const o="Mobile"===W?"xAxisMob":"Tablet"===W?"xAxisTab":"xAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"}),(0,I.jsx)(_t,{label:(0,L.__)("Vertical Position","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.yAxis, | |
| 3977 | +valueTablet:n[e]?.yAxisTab,valueMobile:n[e]?.yAxisMob},onChangeHandler:e=>((t,e)=>{const o="Mobile"===W?"yAxisMob":"Tablet"===W?"yAxisTab":"yAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Hotspot Color","ablocks"),attributeName:"pinColor",attributeValue:t.pinColor,setAttributes:i,resetHandler:()=>S(t,"pinColor",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:t.pinColorEffect,setAttributes:i,resetHandler:()=>S(t,"pinColorEffect",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(Ws,{label:(0,L.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:t.pinHoverColor,setAttributes:i,resetHandler:()=>S(t,"pinHoverColor",""),onChangeHandler:(e,i)=>{S(t,e,i)}}),(0,I.jsx)(_t,{label:(0,L.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1, | |
| 3978 | +isInline:!1,isResponsive:!1,attributeValue:n[e].pinSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinSize:e}:i);i({lists:o})},setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n[e].pinHoverSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinHoverSize:e}:i);i({lists:o})},setAttributes:i})]})})})]})},t?.id))}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:_,text:(0,L.sprintf)(/* translators: %d: item number */ /* translators: %d: item number */ | |
| 3979 | +(0,L.__)("Your title here %d","ablocks"),_),xAxis:50,yAxis:50,isOpen:!0,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""},e=n.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t]}),R(),_++},className:"ablocks-add-list-item-button"})]})}),(0,I.jsx)(V,{title:(0,L.__)("Content","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"childWidth",attributeValue:H,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(P=H?.valueUnit||"px","px"===P?1600:"%"===P||"vw"===P?100:"rem"===P||"em"===P?160:1600),step:1,attributeDefaultValue:$L.P,autoSyncRange:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor", | |
| 3980 | +attributeValue:T,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeValue:e.commonBoxShadow,setAttributes:i,attributeName:"commonBoxShadow"})]})})})]})})});var P}eD.propTypes={},eD.defaultProps={};const iD={UU:"ablocks/image-hotspot",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},pinIconColor:{type:"string",default:"#ffffff"},pinIconSize:{type:"number", | |
| 3981 | +default:60},lists:{type:"array",default:[{id:0,text:"Your title here 0",xAxis:35,yAxis:32,xAxisTab:30,yAxisTab:28,xAxisMob:22,yAxisMob:16,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite"},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn"},contentTrigger:{type:"string",default:"onClick"},contentPosition:{type:"string",default:"bottom"},backgroundColor:{type:"string",default:"white"},childWidth:{type:"object",default:{value:200,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},commonBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0, | |
| 3982 | +common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"", | |
| 3983 | +topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"", | |
| 3984 | +leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"", | |
| 3985 | +imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 3986 | +imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1, | |
| 3987 | +rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"", | |
| 3988 | +offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0", | |
| 3989 | +xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{ | |
| 3990 | +type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function oD(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,backgroundImage:b,lists:c,contentTrigger:d,activeIndex:u}=e,p=(0,D.useInnerBlocksProps)("",{template:[["ablocks/image-hotspot-child"]],templateLock:!1,allowedBlocks:["ablocks/image-hotspot-child"]}),m=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${n}`),e=t?.querySelector(".ablocks-image-hotspot__tooltip-content");if(e){const t=e.children[0].children;if(null!==u)for(let e=1;e<t.length;e+=2){const i=t[e]?.children[1];i&&(e===2*u+1?i.classList.add("ablocks-image-hotspot__tooltip--active"):i.classList.remove("ablocks-image-hotspot__tooltip--active"))}}},[m,n,o,u]);const h=async t=>{ | |
| 3991 | +u!==t?(await i({activeIndex:null}),await i({activeIndex:t})):i({activeIndex:null})};return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{}),(0,I.jsxs)(Yb.A,{blockId:n,name:iD.UU,attributes:e,children:[!b&&(0,I.jsx)(D.MediaPlaceholder,{icon:"format-image",labels:{title:(0,L.__)("Background Image","ablocks"),instructions:(0,L.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>{const e=t.sizes||(t.media_details?t.media_details.sizes:{});i({imageSizes:e,backgroundImage:t.url})},accept:"image/*",allowedTypes:["image"]}),b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,L.__)("ablocks image-hotspot background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||b}),c?.map((t,e)=>{const i="onClick"===d?{onClick:()=>h(e)}:{onMouseOver:()=>h(e)};return(0,I.jsx)("div",{ | |
| 3992 | +className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`,{"ablocks-image-hotspot__pin--has-icon":tD(t.icon)}),...i,children:tD(t.icon)&&(0,I.jsx)(Fd,{attributes:t.icon})},t.id)}),null!==u&&(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)("div",{...p}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:()=>i({activeIndex:null})})]})]})]})]})}const aD=(t,e,i="")=>({left:`${"Mobile"===i?t.xAxisMob??t.xAxisTab??t.xAxis:"Tablet"===i?t.xAxisTab??t.xAxis:t.xAxis}%`,top:`${"Mobile"===i?t.yAxisMob??t.yAxisTab??t.yAxis:"Tablet"===i?t.yAxisTab??t.yAxis:t.yAxis}%`,...""===i&&{"background-color":(0,Hs.qD)(t.pinColorEffect)||(0,Hs.qD)(e?.pinColorEffect),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`,transform:"translate(-50%, -50%)"}}),lD=(t,e="")=>{const{childWidth:i,contentPosition:o,contentAnimation:a}=t;let l="0px",n="0px",s="-50%",r="0px",b={transform:"translate(-50%, 40px)"};"top"===o?b={ | |
| 3993 | +transform:"translate(-50%, calc(-100% - 40px))"}:"left"===o?b={transform:"translate(calc(-100% - 40px), -50%)"}:"right"===o&&(b={transform:"translate(40px, -50%)"});let c="";if("ablocks-hotspot-fadeIn"===a)c="ablocks-hotspot-fadeIn 1.0s ease forwards";else if("ablocks-hotspot-fadeGrow"===a)switch(c="ablocks-hotspot-fadeGrow 0.5s ease",o){case"top":l=s="-50%",n=r="calc(-100% - 40px)";break;case"bottom":l=s="-50%",n=r="40px";break;case"left":l=s="calc(-100% - 40px)",n=r="-50%";break;case"right":l=s="40px",n=r="-50%"}else["ablocks-hotspot-slideInTop","ablocks-hotspot-slideInBottom","ablocks-hotspot-slideInLeft","ablocks-hotspot-slideInRight"].includes(a)&&(c="ablocks-hotspot-slideIn 0.5s ease forwards");let d="";switch("%"===i.valueUnit&&(d=` ${i["value"+e]}${i["valueUnit"+e]||"px"}`),o){case"top":switch(l="-50%",s="-50%",n="calc(-100% - 40px)",r="calc(-100% - 40px)",a){case"ablocks-hotspot-slideInLeft":l="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-50% + 40px)" | |
| 3994 | +;break;case"ablocks-hotspot-slideInTop":n="calc(-100% - 60px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-100% + 40px)"}break;case"bottom":switch(l="-50%",s="-50%",n="40px",r="40px",a){case"ablocks-hotspot-slideInLeft":l="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-50% + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(40px - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(40px + 40px)"}break;case"left":switch(l="calc(-100% - 40px)",s="calc(-100% - 40px)",n="-50%",r="-50%",a){case"ablocks-hotspot-slideInLeft":l="calc(-100% - 40px - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-100% - 40px + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-50% + 40px)"}break;case"right":switch(l="40px",s="40px",n="-50%",r="-50%",a){case"ablocks-hotspot-slideInLeft":l="calc(40px - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(40px + 40px)";break | |
| 3995 | +;case"ablocks-hotspot-slideInTop":n="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-50% + 40px)"}}const u=t.lists[t.activeIndex],p="Mobile"===e?u?.xAxisMob??u?.xAxisTab??u?.xAxis:"Tablet"===e?u?.xAxisTab??u?.xAxis:u?.xAxis;return{animation:c,top:`${"Mobile"===e?u?.yAxisMob??u?.yAxisTab??u?.yAxis:"Tablet"===e?u?.yAxisTab??u?.yAxis:u?.yAxis}%`,left:`${p}%`,transform:b.transform,width:d,"--ablocks-hotspot-translateX-start":l,"--ablocks-hotspot-translateY-start":n,"--ablocks-hotspot-translateX-end":s,"--ablocks-hotspot-translateY-end":r}},nD=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.childWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})};return{background:(0,Hs.qD)(t?.backgroundColor),...i,...(0,H.qD)(t?.commonBoxShadow,"box-shadow",e)}},sD=(t,e="")=>{const{commonBoxShadow:i}=t;return{...(0,H.a9)(i,"box-shadow",e)}};function rD(t){ | |
| 3996 | +const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:iD.UU,attributes:e,children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,L.__)("Background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||a}),o?.map(t=>(0,I.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`,{"ablocks-image-hotspot__pin--has-icon":tD(t.icon)}),"data-tooltip-index":t.id,"data-xaxis":JSON.stringify({desktop:t.xAxis,tablet:t.xAxisTab,mobile:t.xAxisMob}),"data-yaxis":JSON.stringify({desktop:t.yAxis,tablet:t.yAxisTab,mobile:t.yAxisMob}),"data-trigger":n,children:tD(t.icon)&&(0,I.jsx)(Fd,{attributes:t.icon})},t.id)),(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",children:(0, | |
| 3997 | +I.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M13.7307 15.4458L5.53795 7.25305C5.25803 6.97313 5.19161 6.5753 5.39143 6.37548C5.59125 6.17565 5.98909 6.24208 6.26901 6.522L14.4618 14.7148C14.7417 14.9947 14.8081 15.3925 14.6083 15.5924C14.4085 15.7922 14.0107 15.7258 13.7307 15.4458Z",fill:"#74777C"}),(0,I.jsx)("path",{d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}rD.propTypes={},rD.defaultProps={};function bD(t){const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:"ablocks/image-hotspot",attributes:e,children:[(0,I.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0, | |
| 3998 | +L.__)("Background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||a}),o?.map(t=>(0,I.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`),"data-tooltip-index":t.id,"data-xaxis":t.xAxis,"data-yaxis":t.yAxis,"data-trigger":n},t.id)),(0,I.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,I.jsx)(D.InnerBlocks.Content,{}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--close",children:(0,I.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{d:"M13.7307 15.4458L5.53795 7.25305C5.25803 6.97313 5.19161 6.5753 5.39143 6.37548C5.59125 6.17565 5.98909 6.24208 6.26901 6.522L14.4618 14.7148C14.7417 14.9947 14.8081 15.3925 14.6083 15.5924C14.4085 15.7922 14.0107 15.7258 13.7307 15.4458Z",fill:"#74777C"}),(0,I.jsx)("path",{ | |
| 3999 | +d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}bD.propTypes={},bD.defaultProps={},(0,M.xV)(iD.UU)&&(0,o.registerBlockType)(iD.UU,{attributes:iD.uK,icon:(0,I.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{ | |
| 4000 | +d:"M21.0165 5.02311C20.7241 4.73069 20.3342 4.63321 19.9443 4.63321H3.95823C3.47085 4.63321 3.17843 4.73069 2.886 5.02311C2.59357 5.31554 2.49609 5.60797 2.49609 6.09535V19.2546C2.49609 19.6445 2.69105 20.0344 2.886 20.3268C3.17843 20.6193 3.56833 20.7167 3.95823 20.7167H20.0418C20.4317 20.7167 20.8216 20.5218 21.114 20.3268C21.4064 20.0344 21.5039 19.6445 21.5039 19.2546V6.09535C21.5039 5.60797 21.309 5.31554 21.0165 5.02311ZM3.95823 19.2546V16.7202L6.49261 14.1859C7.17494 14.7707 8.05222 15.1606 9.02698 15.1606C9.80679 15.1606 10.4891 14.9657 11.1715 14.4783L15.9478 19.2546H3.95823ZM10.5866 10.3843C10.9765 10.3843 11.3664 10.6767 11.3664 11.1641C11.3664 11.554 11.074 11.8464 10.6841 11.9439H10.5866H9.80679V12.7237C9.80679 12.8212 9.80679 12.9187 9.70931 13.0161C9.61184 13.3086 9.31941 13.5035 9.02698 13.5035C8.63708 13.5035 8.24718 13.2111 8.24718 12.7237V11.9439H7.46737C7.17494 11.9439 6.97999 11.8464 6.88251 11.6515C6.78504 11.554 6.68756 11.3591 6.68756 11.1641C6.68756 10.6767 7.07746 10.3843 7.46737 10.3843H8.24718V9.60448C8.24718 9.21458 8.63708 8.82468 9.02698 8.82468C9.41689 8.82468 9.80679 9.21458 9.80679 9.60448V10.3843H10.5866ZM20.0418 19.2546H18.0922L14.7781 15.9404L16.6301 14.0884L20.0418 17.5V19.2546ZM20.0418 15.453L17.7023 13.1136C17.6049 13.0161 17.4099 12.8212 17.215 12.8212C16.9225 12.6262 16.7276 12.6262 16.6301 12.6262C16.4352 12.6262 16.2402 12.6262 16.0453 12.7237C15.8503 12.8212 15.7528 12.9187 15.5579 13.0161L13.7058 14.8682L12.2437 13.406C12.7311 12.7237 12.926 12.0414 12.926 11.1641C12.926 9.01963 11.1715 7.26506 9.02698 7.26506C6.88251 7.26506 5.12794 9.01963 5.12794 11.1641C5.12794 11.8464 5.3229 12.4313 5.51785 12.9187L3.95823 14.5758V6.09535H20.0418V15.453Z", | |
| 4001 | +fill:"#13191B"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin:after",{animation:i.animationType}),i.lists.forEach(o=>{t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}`,aD(o,i),aD(o,i,"Tablet"),aD(o,i,"Mobile"),e(t=>aD(o,i,t))),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:after`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinColor)||(0,Hs.qD)(e?.pinColor),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`}))(o,i)), | |
| 4002 | +t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:hover`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinHoverColor)||(0,Hs.qD)(e?.pinHoverColor),transform:"translate(-50%, -50%)","--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(o,i)),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${o.id}:hover:after`,((t,e)=>({"background-color":(0,Hs.qD)(t.pinHoverColor)||(0,Hs.qD)(e?.pinHoverColor),"--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(o,i))}),i.lists.some(t=>tD(t.icon))&&(t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin--has-icon .ablocks-icon-wrap",(t=>{const e={};return t?.pinIconSize&&(e.width=`${t.pinIconSize}%`,e.height=`${t.pinIconSize}%`),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin--has-icon .ablocks-icon-wrap svg.ablocks-svg-icon",(t=>{const e={};return t?.pinIconColor&&(e.fill=(0,Hs.qD)(t.pinIconColor)),e})(i))), | |
| 4003 | +t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip-content",lD(i),lD(i,"Tablet"),lD(i,"Mobile"),e(t=>lD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",nD(i),nD(i,"Tablet"),nD(i,"Mobile"),e(t=>nD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",sD(i),sD(i,"Tablet"),sD(i,"Mobile"),e(t=>sD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(eD,{...t}),(0,I.jsx)(oD,{...t})]})},save:rD,deprecated:[{attributes:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},lists:{type:"array",default:[{id:0, | |
| 4004 | +text:"Your title here 0",xAxis:35,yAxis:32,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite"},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn"},contentTrigger:{type:"string",default:"onClick"},contentPosition:{type:"string",default:"bottom"},backgroundColor:{type:"string",default:"white"},childWidth:{type:"object",default:{value:200,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},commonBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 3925 | 4005 | bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"", |
| 3926 | 4006 | 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, |
| 3927 | 4007 | isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", |
| 3928 | 4008 | 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:"", |
| @@ -3928,70 +4008,23 @@ | ||
| 3928 | 4008 | 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:"", |
| 3929 | 4009 | 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:"", |
| 3930 | 4010 | 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", |
| 3931 | 4011 | 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", |
| 3932 | -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:""}, | |
| 3933 | -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function mL(t){const[e,i]=(0,Ot.useState)([]),{attributes:o,setAttributes:a}=t,{block_id:n,tocTableTitle:s,hideTitle:b,openIconClass:c,closeIconClass:d,collapSible:u,isCollapsed:p}=o,m=(0,r.useSelect)(t=>t("core/editor").getEditedPostContent());return(0,Ot.useEffect)(()=>{const t=((t,e)=>{const{H1:i,H2:o,H3:a,H4:l,H5:n,H6:s}=e,r=(new DOMParser).parseFromString(t,"text/html");let b="";return i&&(b+="h1, "),o&&(b+="h2, "),a&&(b+="h3, "),l&&(b+="h4, "),n&&(b+="h5, "),s&&(b+="h6, "),b.endsWith(", ")&&(b=b.slice(0,-2)),(b?[...r.querySelectorAll(b)]:[]).map(t=>({content:t.textContent,anchor:t.textContent.toLowerCase().replace(/\s+/g,"-"),tag:t.tagName.toLowerCase()}))})(m,o);i(t)},[m]),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(Nb.A,{blockId:n,name:pL.UU,attributes:o,typography:[{fontFamily:o.search_typography?.fontFamily, | |
| 3934 | -weight:o.search_typography?.weight}],children:[b&&(0,L.jsxs)("div",{className:"ablocks-toc__header",children:[(0,L.jsx)(Yc,{"aria-label":(0,z.__)("Add title","ablocks"),className:"ablocks-toc__header-title",value:s,placeholder:o.tocTableTitle,tagName:"span",identifier:"text",withoutInteractiveFormatting:!0,onChange:t=>a({tocTableTitle:t})}),u&&(0,L.jsx)("span",{role:"presentation",className:"ablocks-toc__header-toggle-icon",onClick:()=>{a({isCollapsed:!p})},children:p?d&&(0,L.jsx)(Vd,{attributePrefix:"closeIcon",attributes:o}):c&&(0,L.jsx)(Vd,{attributePrefix:"openIcon",attributes:o})})]}),p&&(0,L.jsxs)("div",{className:"ablocks-toc-body",children:[" ",cL(e)," "]})]})})}mL.propTypes={};const hL=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:{};return{color:(0,gs.qD)(t?.titleColor),...(0,P.qD)(i,e,o)}},gL=(t,e="")=>({background:(0,gs.qD)(t?.headerBG),...(0,y.qD)(t?.headerBorder,e),...(0,c.qD)(t?.header_padding,"padding",e) | |
| 3935 | -}),fL=(t,e="")=>({...(0,y.a9)(t?.headerBorder,e)}),yL=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o=t.contentTypographyGlobal?t.contentTypographyGlobal:{};return{color:(0,gs.qD)(t?.itemColor),...(0,P.qD)(i,e,o),...(0,Ob.qD)({attributeValue:t.listItemGap,isResponsive:!1,property:"line-height",defaultValue:30,hasUnit:!0,unitDefaultValue:"px",device:e})}},TL=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o={color:(0,gs.qD)(t?.itemColor),...(0,P.qD)(i,e)};return t?.itemColor&&(o.color=t?.itemColor),o},HL=(t,e="")=>{const i={color:(0,gs.qD)(t?.itemColor)};return t?.activeColor&&(i.color=t?.activeColor),i},ML=(t,e)=>({...{fill:(0,gs.qD)(t?.iconColor),...(0,Ob.qD)({attributeValue:t.iconSize,attributeObjectKey:"value",isResponsive:!1,property:"font-size",defaultValue:20,unitDefaultValue:"px",device:e})},...(0,y.qD)(t?.iconBorder,e),...(0,H.qD)(t?.iconBoxShadow,e),...(0,c.qD)(t?.icon_padding,"padding",e)}),xL=(t,e="")=>({...(0,y.a9)(t?.iconBorder,e),...(0, | |
| 3936 | -H.a9)(t?.iconBoxShadow,e)}),kL=(t,e="")=>({background:(0,gs.qD)(t?.bodyBG),...(0,c.qD)(t?.list_padding,"padding",e)}),vL=t=>{const e={};return["decimal","disc","circle","square","lower-alpha","lower-roman","none"].includes(t?.markerView)&&(e["list-style-type"]=t.markerView),e};(0,M.xV)(pL.UU)&&(0,o.registerBlockType)(pL.UU,{title:"Table Of Content",attributes:pL.uK,icon:(0,L.jsx)("span",{className:" ablocks-icon ablocks-icon--table-of-content"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-toc__header",gL(i),gL(i,"Tablet"),gL(i,"Mobile")), | |
| 3937 | -t.addClassStyles("{{WRAPPER}} .ablocks-toc__header:hover",fL(i),fL(i,"Tablet"),fL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-title",hL(i),hL(i,"Tablet"),hL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body",kL(i),kL(i,"Tablet"),kL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap",ML(i),ML(i,"Tablet"),ML(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toc__header-toggle-icon .ablocks-icon-wrap:hover",xL(i),xL(i,"Tablet"),xL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list",vL(i),vL(i),vL(i)),t.addClassStyles("{{WRAPPER}} .ablocks-toc-list,\n\t\t{{WRAPPER}} .ablocks-toc-list li a",TL(i),TL(i,"Tablet"),TL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-toc-body .ablocks-toc-list li a",yL(i),yL(i,"Tablet"),yL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} a.ablocks-toc-item-link.active",HL(i),HL(i,"Tablet"),HL(i,"Mobile")),t.generateCSS())},[i]);return(0, | |
| 3938 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(uL,{...t}),(0,L.jsx)(mL,{...t})]})},save:()=>null});var _L=i(50782);(0,z.__)("Align text left","ablocks"),(0,z.__)("Align text center","ablocks"),(0,z.__)("Align text right","ablocks"),(0,z.__)("Align text justify","ablocks");const RL=[{label:(0,z.__)("Puls Effect","ablocks"),value:"ablocks-hotspot-puls-effect 1s ease infinite"},{label:(0,z.__)("Soft Beat","ablocks"),value:"ablocks-hotspot-soft-beat 1.5s ease-in-out infinite"},{label:(0,z.__)("Glow","ablocks"),value:"ablocks-hotspot-glow 2s ease-in-out infinite"},{label:(0,z.__)("None","ablocks"),value:""}],SL=[{label:(0,z.__)("On Hover","ablocks"),value:"onHover"},{label:(0,z.__)("On Click","ablocks"),value:"onClick"}],WL=[{label:(0,z.__)("Fade In","ablocks"),value:"ablocks-hotspot-fadeIn"},{label:(0,z.__)("Fade Grow","ablocks"),value:"ablocks-hotspot-fadeGrow"},{label:(0,z.__)("Slide In Top","ablocks"),value:"ablocks-hotspot-slideInTop"},{label:(0, | |
| 3939 | -z.__)("Slide In Bottom","ablocks"),value:"ablocks-hotspot-slideInBottom"},{label:(0,z.__)("Slide In Left","ablocks"),value:"ablocks-hotspot-slideInLeft"},{label:(0,z.__)("Slide In Right","ablocks"),value:"ablocks-hotspot-slideInRight"},{label:(0,z.__)("None","ablocks"),value:""}],UL=[{label:(0,z.__)("Top","ablocks"),value:"top"},{label:(0,z.__)("Bottom","ablocks"),value:"bottom"},{label:(0,z.__)("Left","ablocks"),value:"left"},{label:(0,z.__)("Right","ablocks"),value:"right"}],PL=[{label:(0,z.__)("Full","ablocks"),value:"full"},{label:(0,z.__)("Large","ablocks"),value:"large"},{label:(0,z.__)("Medium","ablocks"),value:"medium"},{label:(0,z.__)("Thumbnail","ablocks"),value:"thumbnail"}];function jL(t){ | |
| 3940 | -const{attributes:e,setAttributes:i,clientId:a}=t,{lists:n,animationType:s,contentTrigger:b,contentAnimation:c,contentPosition:d,pinColor:u,pinColorEffect:p,pinHoverColor:m,pinSize:h,pinHoverSize:g,backgroundColor:f,childWidth:y,selectedImageSize:T}=e,{insertBlock:H,removeBlock:M}=wp.blockEditor?(0,r.dispatch)("core/block-editor"):(0,r.dispatch)("core/editor"),{getBlockOrder:x}=wp.blockEditor?(0,r.select)("core/block-editor"):(0,r.select)("core/editor");let k=n.length>0?n[n.length-1].id+1:1;const v=()=>{const t=n.length,e=(0,o.createBlock)("ablocks/image-hotspot-child");H(e,t,a)},_=(t,e,o)=>{const a=n.map(i=>i.id===t.id?{...i,[e]:o}:i);i({lists:a})},R=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-image-hotspot-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("General","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 3941 | -L.jsx)(As,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({imageSizes:t.sizes,backgroundImage:t.url})},onRemoveImageHandler:()=>{i({backgroundImage:void 0})},attributeName:"backgroundImage",setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Image Size","ablocks"),options:PL,attributeName:"selectedImageSize",attributeValue:T,setAttributes:i}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Animations","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Trigger","ablocks"),options:SL,attributeName:"contentTrigger",attributeValue:b,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Hotspot","ablocks"),options:RL,attributeName:"animationType",attributeValue:s,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Content","ablocks"),options:WL,attributeName:"contentAnimation",attributeValue:c,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Position","ablocks"),options:UL,attributeName:"contentPosition",attributeValue:d,setAttributes:i})]}),style:(0, | |
| 3942 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"pinColor",attributeValue:u,setAttributes:i,resetHandler:()=>{i({pinColor:""})},onChangeHandler:(t,e)=>{i({pinColor:e})}}),(0,L.jsx)(vs,{label:(0,z.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:p,setAttributes:i,resetHandler:()=>i({pinColorEffect:""}),onChangeHandler:(t,e)=>{i({pinColorEffect:e})}}),(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:m,setAttributes:i,resetHandler:()=>i({pinHoverColor:""}),onChangeHandler:(t,e)=>{i({pinHoverColor:e})}}),(0,L.jsx)(vt,{label:(0,z.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:h,onChangeHandler:t=>{i({pinSize:t})},setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:g,onChangeHandler:t=>{i({pinHoverSize:t})}, | |
| 3943 | -setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Hotspot","ablocks"),initialOpen:!1,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{children:n?.map((t,e)=>(0,L.jsx)("div",{children:(0,L.jsxs)("div",{className:"ablocks-editor-list",children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=n.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,L.jsx)("div",{className:"ablocks-editor-list__content-wrapper",children:(0,L.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})}),(0,L.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:o=>((t,e,o)=>{t.stopPropagation();const l=n.filter(t=>t?.id!==e),s=x(a);M(s[o],!1),i({lists:l})})(o,t?.id,e),role:"presentation", | |
| 3944 | -onKeyDown:()=>{}}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:t=>((t,e,o)=>{t.stopPropagation();const a=n[o],l={id:k,text:a?.text,xAxis:a?.xAxis,yAxis:a?.yAxis,isOpen:!1,pinColor:a?.pinColor,pinColorEffect:a?.pinColorEffect,pinHoverColor:a?.pinHoverColor,pinSize:a?.pinSize,pinHoverSize:a?.pinHoverSize},s=[...n,l];v(),i({lists:s})})(t,0,e),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,L.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeValue:t?.text,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,text:e}:i);i({lists:o})},setAttributes:i,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Horizontal Position","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.xAxis,valueTablet:n[e]?.xAxisTab,valueMobile:n[e]?.xAxisMob},onChangeHandler:e=>((t,e)=>{ | |
| 3945 | -const o="Mobile"===R?"xAxisMob":"Tablet"===R?"xAxisTab":"xAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"}),(0,L.jsx)(vt,{label:(0,z.__)("Vertical Position","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeValue:{value:n[e]?.yAxis,valueTablet:n[e]?.yAxisTab,valueMobile:n[e]?.yAxisMob},onChangeHandler:e=>((t,e)=>{const o="Mobile"===R?"yAxisMob":"Tablet"===R?"yAxisTab":"yAxis",a=n.map(i=>i.id===e?{...i,[o]:t}:i);i({lists:a})})(e,t?.id),setAttributes:i,attributeObjectKey:"value"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Hotspot Color","ablocks"),attributeName:"pinColor",attributeValue:t.pinColor,setAttributes:i,resetHandler:()=>_(t,"pinColor",""),onChangeHandler:(e,i)=>{_(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Color Effect","ablocks"),attributeName:"pinColorEffect",attributeValue:t.pinColorEffect,setAttributes:i,resetHandler:()=>_(t,"pinColorEffect",""), | |
| 3946 | -onChangeHandler:(e,i)=>{_(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeName:"pinHoverColor",attributeValue:t.pinHoverColor,setAttributes:i,resetHandler:()=>_(t,"pinHoverColor",""),onChangeHandler:(e,i)=>{_(t,e,i)}}),(0,L.jsx)(vt,{label:(0,z.__)("Hotspot Size","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n[e].pinSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinSize:e}:i);i({lists:o})},setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Effect Size(on Hover)","ablocks"),min:1,max:10,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n[e].pinHoverSize,onChangeHandler:e=>{const o=n.map(i=>i.id===t.id?{...i,pinHoverSize:e}:i);i({lists:o})},setAttributes:i})]})})})]})},t?.id))}),(0,L.jsx)(V,{label:(0,z.__)("Add item","ablocks"),onClick:()=>{const t={id:k,text:(0,z.sprintf)(/* translators: %d: item number */ /* translators: %d: item number */ | |
| 3947 | -(0,z.__)("Your title here %d","ablocks"),k),xAxis:50,yAxis:50,isOpen:!0,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""},e=n.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t]}),v(),k++},className:"ablocks-add-list-item-button"})]})}),(0,L.jsx)(D,{title:(0,z.__)("Content","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"childWidth",attributeValue:y,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(S=y?.valueUnit||"px","px"===S?1600:"%"===S||"vw"===S?100:"rem"===S||"em"===S?160:1600),step:1,attributeDefaultValue:_L.P,autoSyncRange:!1})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"backgroundColor", | |
| 3948 | -attributeValue:f,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeValue:e.commonBoxShadow,setAttributes:i,attributeName:"commonBoxShadow"})]})})})]})})});var S}jL.propTypes={},jL.defaultProps={};const wL={UU:"ablocks/image-hotspot",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},lists:{type:"array",default:[{id:0,text:"Your title here 0",xAxis:35, | |
| 3949 | -yAxis:32,xAxisTab:30,yAxisTab:28,xAxisMob:22,yAxisMob:16,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite"},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn"},contentTrigger:{type:"string",default:"onClick"},contentPosition:{type:"string",default:"bottom"},backgroundColor:{type:"string",default:"white"},childWidth:{type:"object",default:{value:200,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},commonBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"", | |
| 3950 | -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:"",rightWidthTablet:"", | |
| 3951 | -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, | |
| 3952 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", | |
| 3953 | -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:"", | |
| 3954 | -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:"", | |
| 3955 | -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", | |
| 3956 | -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", | |
| 3957 | -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:""}, | |
| 3958 | -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function zL(t){const{attributes:e,setAttributes:i,clientId:o}=t,{block_id:n,backgroundImage:b,lists:c,contentTrigger:d,activeIndex:u}=e,p=(0,C.useInnerBlocksProps)("",{template:[["ablocks/image-hotspot-child"]],templateLock:!1,allowedBlocks:["ablocks/image-hotspot-child"]}),m=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]);(0,a.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${n}`),e=t?.querySelector(".ablocks-image-hotspot__tooltip-content");if(e){const t=e.children[0].children;if(null!==u)for(let e=1;e<t.length;e+=2){const i=t[e]?.children[1];i&&(e===2*u+1?i.classList.add("ablocks-image-hotspot__tooltip--active"):i.classList.remove("ablocks-image-hotspot__tooltip--active"))}}},[m,n,o,u]);const h=async t=>{u!==t?(await i({activeIndex:null}),await i({activeIndex:t})):i({activeIndex:null})};return(0,L.jsxs)(l().Fragment,{ | |
| 3959 | -children:[(0,L.jsx)(C.BlockControls,{}),(0,L.jsxs)(Nb.A,{blockId:n,name:wL.UU,attributes:e,children:[!b&&(0,L.jsx)(C.MediaPlaceholder,{icon:"format-image",labels:{title:(0,z.__)("Background Image","ablocks"),instructions:(0,z.__)("Drag an image, upload a new one or select a file from your library.","ablocks")},onSelect:t=>{const e=t.sizes||(t.media_details?t.media_details.sizes:{});i({imageSizes:e,backgroundImage:t.url})},accept:"image/*",allowedTypes:["image"]}),b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,z.__)("ablocks image-hotspot background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||b}),c?.map((t,e)=>{const i="onClick"===d?{onClick:()=>h(e)}:{onMouseOver:()=>h(e)};return(0,L.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`),...i},t.id)}),null!==u&&(0,L.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content", | |
| 3960 | -children:[(0,L.jsx)("div",{...p}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close",onClick:()=>i({activeIndex:null})})]})]})]})]})}const CL=(t,e,i="")=>({left:`${"Mobile"===i?t.xAxisMob??t.xAxisTab??t.xAxis:"Tablet"===i?t.xAxisTab??t.xAxis:t.xAxis}%`,top:`${"Mobile"===i?t.yAxisMob??t.yAxisTab??t.yAxis:"Tablet"===i?t.yAxisTab??t.yAxis:t.yAxis}%`,...""===i&&{"background-color":(0,gs.qD)(t.pinColorEffect)||(0,gs.qD)(e?.pinColorEffect),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`,transform:"translate(-50%, -50%)"}}),AL=(t,e="")=>{const{childWidth:i,contentPosition:o,contentAnimation:a}=t;let l="0px",n="0px",s="-50%",r="0px",b={transform:"translate(-50%, 40px)"};"top"===o?b={transform:"translate(-50%, calc(-100% - 40px))"}:"left"===o?b={transform:"translate(calc(-100% - 40px), -50%)"}:"right"===o&&(b={transform:"translate(40px, -50%)"});let c="" | |
| 3961 | -;if("ablocks-hotspot-fadeIn"===a)c="ablocks-hotspot-fadeIn 1.0s ease forwards";else if("ablocks-hotspot-fadeGrow"===a)switch(c="ablocks-hotspot-fadeGrow 0.5s ease",o){case"top":l=s="-50%",n=r="calc(-100% - 40px)";break;case"bottom":l=s="-50%",n=r="40px";break;case"left":l=s="calc(-100% - 40px)",n=r="-50%";break;case"right":l=s="40px",n=r="-50%"}else["ablocks-hotspot-slideInTop","ablocks-hotspot-slideInBottom","ablocks-hotspot-slideInLeft","ablocks-hotspot-slideInRight"].includes(a)&&(c="ablocks-hotspot-slideIn 0.5s ease forwards");let d="";switch("%"===i.valueUnit&&(d=` ${i["value"+e]}${i["valueUnit"+e]||"px"}`),o){case"top":switch(l="-50%",s="-50%",n="calc(-100% - 40px)",r="calc(-100% - 40px)",a){case"ablocks-hotspot-slideInLeft":l="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-50% + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(-100% - 60px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-100% + 40px)"}break;case"bottom":switch(l="-50%",s="-50%", | |
| 3962 | -n="40px",r="40px",a){case"ablocks-hotspot-slideInLeft":l="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-50% + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(40px - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(40px + 40px)"}break;case"left":switch(l="calc(-100% - 40px)",s="calc(-100% - 40px)",n="-50%",r="-50%",a){case"ablocks-hotspot-slideInLeft":l="calc(-100% - 40px - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(-100% - 40px + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-50% + 40px)"}break;case"right":switch(l="40px",s="40px",n="-50%",r="-50%",a){case"ablocks-hotspot-slideInLeft":l="calc(40px - 40px)";break;case"ablocks-hotspot-slideInRight":l="calc(40px + 40px)";break;case"ablocks-hotspot-slideInTop":n="calc(-50% - 40px)";break;case"ablocks-hotspot-slideInBottom":n="calc(-50% + 40px)"}} | |
| 3963 | -const u=t.lists[t.activeIndex],p="Mobile"===e?u?.xAxisMob??u?.xAxisTab??u?.xAxis:"Tablet"===e?u?.xAxisTab??u?.xAxis:u?.xAxis;return{animation:c,top:`${"Mobile"===e?u?.yAxisMob??u?.yAxisTab??u?.yAxis:"Tablet"===e?u?.yAxisTab??u?.yAxis:u?.yAxis}%`,left:`${p}%`,transform:b.transform,width:d,"--ablocks-hotspot-translateX-start":l,"--ablocks-hotspot-translateY-start":n,"--ablocks-hotspot-translateX-end":s,"--ablocks-hotspot-translateY-end":r}},LL=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.childWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})};return{background:(0,gs.qD)(t?.backgroundColor),...i,...(0,H.qD)(t?.commonBoxShadow,"box-shadow",e)}},DL=(t,e="")=>{const{commonBoxShadow:i}=t;return{...(0,H.a9)(i,"box-shadow",e)}};function NL(t){const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:wL.UU,attributes:e, | |
| 3964 | -children:[(0,L.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,z.__)("Background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||a}),o?.map(t=>(0,L.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`),"data-tooltip-index":t.id,"data-xaxis":JSON.stringify({desktop:t.xAxis,tablet:t.xAxisTab,mobile:t.xAxisMob}),"data-yaxis":JSON.stringify({desktop:t.yAxis,tablet:t.yAxisTab,mobile:t.yAxisMob}),"data-trigger":n},t.id)),(0,L.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,L.jsx)(C.InnerBlocks.Content,{}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close",children:(0,L.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("path",{ | |
| 3965 | -d:"M13.7307 15.4458L5.53795 7.25305C5.25803 6.97313 5.19161 6.5753 5.39143 6.37548C5.59125 6.17565 5.98909 6.24208 6.26901 6.522L14.4618 14.7148C14.7417 14.9947 14.8081 15.3925 14.6083 15.5924C14.4085 15.7922 14.0107 15.7258 13.7307 15.4458Z",fill:"#74777C"}),(0,L.jsx)("path",{d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}NL.propTypes={},NL.defaultProps={};function IL(t){const{attributes:e}=t,{block_id:i,lists:o,backgroundImage:a,contentTrigger:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:"ablocks/image-hotspot",attributes:e,children:[(0,L.jsx)("img",{className:"ablocks-image-hotspot__bg-image",alt:(0,z.__)("Background","ablocks"),src:e.imageSizes[e.selectedImageSize]?.url||e.imageSizes[e.selectedImageSize]?.source_url||a | |
| 3966 | -}),o?.map(t=>(0,L.jsx)("div",{className:s()("ablocks-image-hotspot__pin",`ablocks-image-hotspot-list-${t.id}`),"data-tooltip-index":t.id,"data-xaxis":t.xAxis,"data-yaxis":t.yAxis,"data-trigger":n},t.id)),(0,L.jsxs)("div",{className:"ablocks-image-hotspot__tooltip-content",children:[(0,L.jsx)(C.InnerBlocks.Content,{}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close",children:(0,L.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("path",{d:"M13.7307 15.4458L5.53795 7.25305C5.25803 6.97313 5.19161 6.5753 5.39143 6.37548C5.59125 6.17565 5.98909 6.24208 6.26901 6.522L14.4618 14.7148C14.7417 14.9947 14.8081 15.3925 14.6083 15.5924C14.4085 15.7922 14.0107 15.7258 13.7307 15.4458Z",fill:"#74777C"}),(0,L.jsx)("path",{ | |
| 3967 | -d:"M5.39169 15.5924C5.19187 15.3925 5.25829 14.9947 5.53821 14.7148L13.731 6.522C14.0109 6.24208 14.4087 6.17565 14.6086 6.37548C14.8084 6.5753 14.742 6.97313 14.4621 7.25305L6.26927 15.4458C5.98935 15.7258 5.59152 15.7922 5.39169 15.5924Z",fill:"#74777C"})]})})]})]})})}IL.propTypes={},IL.defaultProps={},(0,M.xV)(wL.UU)&&(0,o.registerBlockType)(wL.UU,{attributes:wL.uK,icon:(0,L.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)("path",{ | |
| 4012 | +xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:bD}]});var cD=i(4851);function dD(t){const{attributes:e,setAttributes:i,clientId:o}=t,{contentWidth:a,backgroundColor:n,contentPadding:s}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(D.InspectorControls,{children:[(0,I.jsx)(V,{children:(0,I.jsxs)("div",{ | |
| 4013 | +className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Filterable Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:o})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Hotspot Child","ablocks"),initialOpen:!0,children:[(0,I.jsx)(_t,{label:(0,L.__)("Width","ablocks"),attributeName:"contentWidth",attributeValue:a,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(r=a?.valueUnit||"px","px"===r?1600:"%"===r||"vw"===r?100:"rem"===r||"em"===r?160:1600),step:1,attributeDefaultValue:cD.Q,autoSyncRange:!1}),(0, | |
| 4014 | +I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"backgroundColor",attributeValue:n,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:s,setAttributes:i}),(0,I.jsx)(It,{Margin:"30px"}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})});var r}dD.propTypes={},dD.defaultProps={};const uD={UU:"ablocks/image-hotspot-child",$t:["ablocks/image-hotspot"],uK:{block_id:{type:"string",default:""},hotspotId:{type:"number",default:0},backgroundColor:{type:"string",default:""},contentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentBorder:{type:"object",default:{borderStyle:"default", | |
| 4015 | +borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"", | |
| 4016 | +bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},contentPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"", | |
| 4017 | +leftMobile:"",unitMobile:""}}}};function pD(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:uD.UU,attributes:e,children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/heading",{heading:(0,L.__)("Content Title","ablocks")}],["ablocks/button",{text:(0,L.__)("Buy Now","ablocks")}]],templateLock:!1})})})}pD.propTypes={},pD.defaultProps={};const mD=(t,e="")=>{const{contentWidth:i}=t,o={};return"%"===i.valueUnit&&(o.width=` ${i["value"+e]}${i["valueUnit"+e]||"px"}`),{...o}},hD=(t,e="")=>({...{...(0,Eb.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})},background:(0,Hs.qD)(t?.backgroundColor),...(0,y.qD)(t?.contentBorder,e),...(0,c.qD)(t?.contentPadding,"padding",e)}),gD=(t,e="")=>({...(0,y.a9)(t?.contentBorder,e)});function fD(t){const{attributes:e}=t,{block_id:i}=e;return(0,I.jsx)(hc,{blockId:i,name:uD.UU,attributes:e,children:(0, | |
| 4018 | +I.jsx)(D.InnerBlocks.Content,{})})}fD.propTypes={},fD.defaultProps={},(0,M.xV)(uD.UU,uD.$t[0])&&(0,o.registerBlockType)(uD.UU,{icon:(0,I.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{ | |
| 3968 | 4019 | d:"M21.0165 5.02311C20.7241 4.73069 20.3342 4.63321 19.9443 4.63321H3.95823C3.47085 4.63321 3.17843 4.73069 2.886 5.02311C2.59357 5.31554 2.49609 5.60797 2.49609 6.09535V19.2546C2.49609 19.6445 2.69105 20.0344 2.886 20.3268C3.17843 20.6193 3.56833 20.7167 3.95823 20.7167H20.0418C20.4317 20.7167 20.8216 20.5218 21.114 20.3268C21.4064 20.0344 21.5039 19.6445 21.5039 19.2546V6.09535C21.5039 5.60797 21.309 5.31554 21.0165 5.02311ZM3.95823 19.2546V16.7202L6.49261 14.1859C7.17494 14.7707 8.05222 15.1606 9.02698 15.1606C9.80679 15.1606 10.4891 14.9657 11.1715 14.4783L15.9478 19.2546H3.95823ZM10.5866 10.3843C10.9765 10.3843 11.3664 10.6767 11.3664 11.1641C11.3664 11.554 11.074 11.8464 10.6841 11.9439H10.5866H9.80679V12.7237C9.80679 12.8212 9.80679 12.9187 9.70931 13.0161C9.61184 13.3086 9.31941 13.5035 9.02698 13.5035C8.63708 13.5035 8.24718 13.2111 8.24718 12.7237V11.9439H7.46737C7.17494 11.9439 6.97999 11.8464 6.88251 11.6515C6.78504 11.554 6.68756 11.3591 6.68756 11.1641C6.68756 10.6767 7.07746 10.3843 7.46737 10.3843H8.24718V9.60448C8.24718 9.21458 8.63708 8.82468 9.02698 8.82468C9.41689 8.82468 9.80679 9.21458 9.80679 9.60448V10.3843H10.5866ZM20.0418 19.2546H18.0922L14.7781 15.9404L16.6301 14.0884L20.0418 17.5V19.2546ZM20.0418 15.453L17.7023 13.1136C17.6049 13.0161 17.4099 12.8212 17.215 12.8212C16.9225 12.6262 16.7276 12.6262 16.6301 12.6262C16.4352 12.6262 16.2402 12.6262 16.0453 12.7237C15.8503 12.8212 15.7528 12.9187 15.5579 13.0161L13.7058 14.8682L12.2437 13.406C12.7311 12.7237 12.926 12.0414 12.926 11.1641C12.926 9.01963 11.1715 7.26506 9.02698 7.26506C6.88251 7.26506 5.12794 9.01963 5.12794 11.1641C5.12794 11.8464 5.3229 12.4313 5.51785 12.9187L3.95823 14.5758V6.09535H20.0418V15.453Z", |
| 3969 | -fill:"#13191B"})}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__pin:after",{animation:i.animationType}),i.lists.forEach(e=>{t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${e.id}`,CL(e,i),CL(e,i,"Tablet"),CL(e,i,"Mobile")),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${e.id}:after`,((t,e)=>({"background-color":(0,gs.qD)(t.pinColor)||(0,gs.qD)(e?.pinColor),width:`${t.pinSize||e.pinSize}px`,height:`${t.pinSize||e.pinSize}px`}))(e,i)),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${e.id}:hover`,((t,e)=>({"background-color":(0,gs.qD)(t.pinHoverColor)||(0, | |
| 3970 | -gs.qD)(e?.pinHoverColor),transform:"translate(-50%, -50%)","--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(e,i)),t.addClassStyles(`{{WRAPPER}} .ablocks-image-hotspot-list-${e.id}:hover:after`,((t,e)=>({"background-color":(0,gs.qD)(t.pinHoverColor)||(0,gs.qD)(e?.pinHoverColor),"--ablocks-hotspot-effect-max-scale":t.pinHoverSize||e.pinHoverSize}))(e,i))}),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip-content",AL(i),AL(i,"Tablet"),AL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",LL(i),LL(i,"Tablet"),LL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",DL(i),DL(i,"Tablet"),DL(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(jL,{...t}),(0,L.jsx)(zL,{...t})]})},save:NL,deprecated:[{attributes:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0 | |
| 3971 | -},imageSizes:{type:"object",default:[]},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9"},pinColorEffect:{type:"string",default:"#d9d9d9"},pinHoverColor:{type:"string",default:"#d9d9d9"},pinSize:{type:"number",default:15},pinHoverSize:{type:"number",default:1.5},lists:{type:"array",default:[{id:0,text:"Your title here 0",xAxis:35,yAxis:32,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite"},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn"},contentTrigger:{type:"string",default:"onClick"},contentPosition:{type:"string",default:"bottom"},backgroundColor:{type:"string",default:"white"},childWidth:{type:"object",default:{value:200,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},commonBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"", | |
| 3972 | -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",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:""}}, | |
| 3973 | -_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:"", | |
| 3974 | -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:"", | |
| 3975 | -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:"", | |
| 3976 | -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:"", | |
| 3977 | -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:"", | |
| 3978 | -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:"", | |
| 3979 | -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:{ | |
| 3980 | -type:"string",default:""}},save:IL}]});var VL=i(4851);function OL(t){const{attributes:e,setAttributes:i,clientId:o}=t,{contentWidth:a,backgroundColor:n,contentPadding:s}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Filterable Blocks Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:o})]})}),(0,L.jsxs)(D,{title:(0,z.__)("Hotspot Child","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"contentWidth",attributeValue:a,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1,attributeObjectKey:"value", | |
| 3981 | -unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:(r=a?.valueUnit||"px","px"===r?1600:"%"===r||"vw"===r?100:"rem"===r||"em"===r?160:1600),step:1,attributeDefaultValue:VL.Q,autoSyncRange:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"backgroundColor",attributeValue:n,setAttributes:i,resetHandler:()=>{i({backgroundColor:""})},onChangeHandler:(t,e)=>{i({backgroundColor:e})}}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"contentPadding",attributeValue:s,setAttributes:i}),(0,L.jsx)(Nt,{Margin:"30px"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]})]})});var r}OL.propTypes={},OL.defaultProps={};const YL={UU:"ablocks/image-hotspot-child",$t:["ablocks/image-hotspot"],uK:{block_id:{type:"string",default:""}, | |
| 3982 | -hotspotId:{type:"number",default:0},backgroundColor:{type:"string",default:""},contentWidth:{type:"object",default:{value:"",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},contentBorder:{type:"object",default:{borderStyle:"default",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:"", | |
| 3983 | -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:""}},contentPadding:{ | |
| 3984 | -type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}}};function XL(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:YL.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/heading",{heading:(0,z.__)("Content Title","ablocks")}],["ablocks/button",{text:(0,z.__)("Buy Now","ablocks")}]],templateLock:!1})})})}XL.propTypes={},XL.defaultProps={};const BL=(t,e="")=>{const{contentWidth:i}=t,o={};return"%"===i.valueUnit&&(o.width=` ${i["value"+e]}${i["valueUnit"+e]||"px"}`),{...o}},EL=(t,e="")=>({...{...(0,Ob.qD)({attributeValue:t.contentWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}, | |
| 3985 | -background:(0,gs.qD)(t?.backgroundColor),...(0,y.qD)(t?.contentBorder,e),...(0,c.qD)(t?.contentPadding,"padding",e)}),FL=(t,e="")=>({...(0,y.a9)(t?.contentBorder,e)});function qL(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(dc,{blockId:i,name:YL.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})}qL.propTypes={},qL.defaultProps={},(0,M.xV)(YL.UU,YL.$t[0])&&(0,o.registerBlockType)(YL.UU,{icon:(0,L.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)("path",{ | |
| 3986 | -d:"M21.0165 5.02311C20.7241 4.73069 20.3342 4.63321 19.9443 4.63321H3.95823C3.47085 4.63321 3.17843 4.73069 2.886 5.02311C2.59357 5.31554 2.49609 5.60797 2.49609 6.09535V19.2546C2.49609 19.6445 2.69105 20.0344 2.886 20.3268C3.17843 20.6193 3.56833 20.7167 3.95823 20.7167H20.0418C20.4317 20.7167 20.8216 20.5218 21.114 20.3268C21.4064 20.0344 21.5039 19.6445 21.5039 19.2546V6.09535C21.5039 5.60797 21.309 5.31554 21.0165 5.02311ZM3.95823 19.2546V16.7202L6.49261 14.1859C7.17494 14.7707 8.05222 15.1606 9.02698 15.1606C9.80679 15.1606 10.4891 14.9657 11.1715 14.4783L15.9478 19.2546H3.95823ZM10.5866 10.3843C10.9765 10.3843 11.3664 10.6767 11.3664 11.1641C11.3664 11.554 11.074 11.8464 10.6841 11.9439H10.5866H9.80679V12.7237C9.80679 12.8212 9.80679 12.9187 9.70931 13.0161C9.61184 13.3086 9.31941 13.5035 9.02698 13.5035C8.63708 13.5035 8.24718 13.2111 8.24718 12.7237V11.9439H7.46737C7.17494 11.9439 6.97999 11.8464 6.88251 11.6515C6.78504 11.554 6.68756 11.3591 6.68756 11.1641C6.68756 10.6767 7.07746 10.3843 7.46737 10.3843H8.24718V9.60448C8.24718 9.21458 8.63708 8.82468 9.02698 8.82468C9.41689 8.82468 9.80679 9.21458 9.80679 9.60448V10.3843H10.5866ZM20.0418 19.2546H18.0922L14.7781 15.9404L16.6301 14.0884L20.0418 17.5V19.2546ZM20.0418 15.453L17.7023 13.1136C17.6049 13.0161 17.4099 12.8212 17.215 12.8212C16.9225 12.6262 16.7276 12.6262 16.6301 12.6262C16.4352 12.6262 16.2402 12.6262 16.0453 12.7237C15.8503 12.8212 15.7528 12.9187 15.5579 13.0161L13.7058 14.8682L12.2437 13.406C12.7311 12.7237 12.926 12.0414 12.926 11.1641C12.926 9.01963 11.1715 7.26506 9.02698 7.26506C6.88251 7.26506 5.12794 9.01963 5.12794 11.1641C5.12794 11.8464 5.3229 12.4313 5.51785 12.9187L3.95823 14.5758V6.09535H20.0418V15.453Z", | |
| 3987 | -fill:"#13191B"})}),attributes:YL.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}}",BL(i),BL(i,"Tablet"),BL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",EL(i),EL(i,"Tablet"),EL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",FL(i),FL(i,"Tablet"),FL(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(OL,{...t}),(0,L.jsx)(XL,{...t})]})},save:qL});const $L=(0,Ob.D$)({attributeName:"bothGap",defaultValue:30,copyStyle:!0});function GL(t){ | |
| 3988 | -const{attributes:e,setAttributes:i}=t,{dashboard_page:o,sidebarBorder:a,sidebarBackground:n,userSidebarBorder:s,userTypography:b,userTextColor:c,sidebarUserBackground:d,menuListActiveBackground:u,menuListActiveTextColor:p,menuListHoverBackground:m,menuListHoverTextColor:h,menuListBackground:g,menuListTextColor:f,menuListTypography:y,menuListBorder:T,menuListPadding:H,contentBackground:x,breadcrumbColor:k,contentPadding:v,breadcrumbtTypography:_,contentBorder:R}=e,{frontend_dashboard_page:S}=M.W0;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("General Setting","ablocks"),initialOpen:!1,children:[(0,L.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,L.jsx)("i",{children:(0,z.__)("These feature will only works in editor","ablocks")})}),(0,L.jsx)(Ut,{options:(0,r.useSelect)(t=>{const e=t("core").getEntityRecords("postType","page",{parent:S, | |
| 3989 | -per_page:-1,order:"asc",orderby:"title"});return e?e.map(t=>({label:t.title.rendered,value:t.slug})):null},[S])||[],label:(0,z.__)("Active Dashboard Pages","ablocks"),attributeValue:o,attributeName:"dashboard_page",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"bothGap",attributeValue:e?.bothGap,setAttributes:i,attributeDefaultValue:$L})]}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Sidebar Design","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"sidebarBackground",attributeValue:n||"#ddd",setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"sidebarBorder",attributeValue:e?.sidebarBorder,setAttributes:i})]}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Sidebar Header","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0, | |
| 3990 | -z.__)("Color","ablocks"),attributeName:"userTextColor",attributeValue:c||"#000000",setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"userTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"sidebarUserBackground",attributeValue:d,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"userSidebarBorder",attributeValue:e?.userSidebarBorder,setAttributes:i})]}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Menu Items","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"menuListTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"menuListTextColor",attributeValue:f||"#000000", | |
| 3991 | -setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListBackground",attributeValue:g,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"menuListHoverTextColor",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListHoverBackground",attributeValue:m,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Menu Setting Active Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"menuListActiveTextColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListActiveBackground",attributeValue:u,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"menuListPadding",attributeValue:H, | |
| 3992 | -setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"menuListBorder",attributeValue:e?.menuListBorder,setAttributes:i})]}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Content Area","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"contentBackground",attributeValue:x||"#ddd",setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"contentPadding",attributeValue:v,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Breadcrumbs","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"breadcrumbtTypography",attributeValue:_,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{ | |
| 3993 | -label:(0,z.__)("Color","ablocks"),attributeName:"breadcrumbColor",attributeValue:k,setAttributes:i})]})]})})})}(0,y.D$)("sidebarBorder",!0),(0,y.D$)("userSidebarBorder",!0),(0,y.D$)("menuListBorder",!0),(0,y.D$)("contentBorder",!0),(0,P.D$)("userTypography",!0),(0,P.D$)("breadcrumbtTypography",!0),(0,P.D$)("menuListTypography",!0),(0,c.D$)("menuListPadding",!0),(0,c.D$)("contentPadding",!0),Mr.Ay,GL.propTypes={};const ZL={UU:"ablocks/frontend-dashboard",uK:{block_id:{type:"string",default:""},dashboard_page:{type:"string",default:""},sidebarBackground:{type:"string",default:""},sidebarUserBackground:{type:"string",default:""},contentBackground:{type:"string",default:""},userTextColor:{type:"string",default:""},breadcrumbColor:{type:"string",default:""},menuListActiveBackground:{type:"string",default:""},menuListActiveTextColor:{type:"string",default:""},menuListHoverBackground:{type:"string",default:""},menuListHoverTextColor:{type:"string",default:""},menuListBackground:{ | |
| 4020 | +fill:"#13191B"})}),attributes:uD.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{const t=new C(i,l);return t.addClassStyles("{{WRAPPER}}",mD(i),mD(i,"Tablet"),mD(i,"Mobile"),t.customDeviceMap(t=>mD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active",hD(i),hD(i,"Tablet"),hD(i,"Mobile"),t.customDeviceMap(t=>hD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-image-hotspot__tooltip--active:hover",gD(i),gD(i,"Tablet"),gD(i,"Mobile"),t.customDeviceMap(t=>gD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(dD,{...t}),(0,I.jsx)(pD,{...t})]})},save:fD});const yD=(0,Eb.D$)({attributeName:"bothGap",defaultValue:30,copyStyle:!0});function TD(t){ | |
| 4021 | +const{attributes:e,setAttributes:i}=t,{dashboard_page:o,sidebarBorder:a,sidebarBackground:n,userSidebarBorder:s,userTypography:b,userTextColor:c,sidebarUserBackground:d,menuListActiveBackground:u,menuListActiveTextColor:p,menuListHoverBackground:m,menuListHoverTextColor:h,menuListBackground:g,menuListTextColor:f,menuListTypography:y,menuListBorder:T,menuListPadding:H,contentBackground:x,breadcrumbColor:k,contentPadding:v,breadcrumbtTypography:_,contentBorder:R}=e,{frontend_dashboard_page:S}=M.W0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("General Setting","ablocks"),initialOpen:!1,children:[(0,I.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,I.jsx)("i",{children:(0,L.__)("These feature will only works in editor","ablocks")})}),(0,I.jsx)(Ut,{options:(0,r.useSelect)(t=>{const e=t("core").getEntityRecords("postType","page",{parent:S, | |
| 4022 | +per_page:-1,order:"asc",orderby:"title"});return e?e.map(t=>({label:t.title.rendered,value:t.slug})):null},[S])||[],label:(0,L.__)("Active Dashboard Pages","ablocks"),attributeValue:o,attributeName:"dashboard_page",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"bothGap",attributeValue:e?.bothGap,setAttributes:i,attributeDefaultValue:yD})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Sidebar Design","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"sidebarBackground",attributeValue:n||"#ddd",setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"sidebarBorder",attributeValue:e?.sidebarBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Sidebar Header","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0, | |
| 4023 | +L.__)("Color","ablocks"),attributeName:"userTextColor",attributeValue:c||"#000000",setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"userTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"sidebarUserBackground",attributeValue:d,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"userSidebarBorder",attributeValue:e?.userSidebarBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Menu Items","ablocks"),initialOpen:!1,children:[(0,I.jsx)(It,{}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"menuListTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuListTextColor",attributeValue:f||"#000000", | |
| 4024 | +setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListBackground",attributeValue:g,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuListHoverTextColor",attributeValue:h,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListHoverBackground",attributeValue:m,setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Menu Setting Active Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"menuListActiveTextColor",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"menuListActiveBackground",attributeValue:u,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"menuListPadding",attributeValue:H, | |
| 4025 | +setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"menuListBorder",attributeValue:e?.menuListBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Content Area","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"contentBackground",attributeValue:x||"#ddd",setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!1,attributeName:"contentPadding",attributeValue:v,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"contentBorder",attributeValue:e?.contentBorder,setAttributes:i})]}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Breadcrumbs","ablocks"),initialOpen:!1,children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"breadcrumbtTypography",attributeValue:_,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Ws,{ | |
| 4026 | +label:(0,L.__)("Color","ablocks"),attributeName:"breadcrumbColor",attributeValue:k,setAttributes:i})]})]})})})}(0,y.D$)("sidebarBorder",!0),(0,y.D$)("userSidebarBorder",!0),(0,y.D$)("menuListBorder",!0),(0,y.D$)("contentBorder",!0),(0,U.D$)("userTypography",!0),(0,U.D$)("breadcrumbtTypography",!0),(0,U.D$)("menuListTypography",!0),(0,c.D$)("menuListPadding",!0),(0,c.D$)("contentPadding",!0),_r.Ay,TD.propTypes={};const HD={UU:"ablocks/frontend-dashboard",uK:{block_id:{type:"string",default:""},dashboard_page:{type:"string",default:""},sidebarBackground:{type:"string",default:""},sidebarUserBackground:{type:"string",default:""},contentBackground:{type:"string",default:""},userTextColor:{type:"string",default:""},breadcrumbColor:{type:"string",default:""},menuListActiveBackground:{type:"string",default:""},menuListActiveTextColor:{type:"string",default:""},menuListHoverBackground:{type:"string",default:""},menuListHoverTextColor:{type:"string",default:""},menuListBackground:{ | |
| 3994 | 4027 | type:"string",default:""},menuListTextColor:{type:"string",default:""},bothGap:{type:"number",default:30},sidebarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", |
| 3995 | 4028 | unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},userSidebarBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"", |
| 3996 | 4029 | 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:"", |
| 3997 | 4030 | rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},menuListBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"", |
| @@ -4008,29 +4041,29 @@ | ||
| 4008 | 4041 | 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:"", |
| 4009 | 4042 | 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:"", |
| 4010 | 4043 | 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", |
| 4011 | 4044 | 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}, |
| 4012 | -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function KL(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:ZL.UU,attributes:e,children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/frontend-dashboard",httpMethod:"POST",attributes:e})})})})}KL.propTypes={};const JL=(t,e="")=>{const i={};t?.sidebarBackground&&(i.background=(0,gs.qD)(t?.sidebarBackground));const o=(0,M.Zy)(t.sidebarBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},QL=(t,e="")=>{const i={};t?.userTextColor&&(i.color=(0,gs.qD)(t?.userTextColor)),t?.sidebarUserBackground&&(i.background=(0,gs.qD)(t?.sidebarUserBackground));const o=(0,M.Zy)(t.userSidebarBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.userTypography,{weight:"400" | |
| 4013 | -}),l=t.userTypographyGlobal?t.userTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,P.qD)(a,e,l)}},tD=(t,e="")=>{const i={};t?.menuListTextColor&&(i.color=(0,gs.qD)(t?.menuListTextColor)),t?.menuListBackground&&(i.background=(0,gs.qD)(t?.menuListBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.menuListTypography,{weight:"400"}),l=t.menuListTypographyGlobal?t.menuListTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.menuListPadding,"padding",e),...(0,P.qD)(a,e,l)}},eD=(t,e="")=>{const i={};t?.menuListHoverTextColor&&(i.color=(0,gs.qD)(t?.menuListHoverTextColor)),t?.menuListHoverBackground&&(i.background=(0,gs.qD)(t?.menuListHoverBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},iD=(t,e="")=>{const i={};return t?.menuListActiveTextColor&&(i.color=(0,gs.qD)(t?.menuListActiveTextColor)),t?.menuListActiveBackground&&(i.background=(0, | |
| 4014 | -gs.qD)(t?.menuListActiveBackground)),{...i}},oD=(t,e="")=>{const i={};t?.contentBackground&&(i.background=(0,gs.qD)(t?.contentBackground));const o=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.contentPadding,"padding",e)}},aD=(t,e="")=>{const i=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},lD=(t,e="")=>{const i={};t?.breadcrumbColor&&(i.color=(0,gs.qD)(t?.breadcrumbColor));const o=(0,M.Zy)(t.breadcrumbtTypography,{weight:"400"}),a=t.breadcrumbtTypographyGlobal?t.breadcrumbtTypographyGlobal:"";return{...i,...(0,P.qD)(o,e,a)}},nD=(t,e="")=>{const i={};return t?.bothGap&&(i.gap=`${t?.bothGap}px`),i.display="flex",i["flex-direction"]="Tablet"===e||"Mobile"===e?"column":"row",{...i}};(0,o.registerBlockType)(ZL.UU,{title:"Frontend Dashboard",attributes:ZL.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--frontend-dashboard"}),edit:function(t){ | |
| 4015 | -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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-sidebar",JL(i,""),JL(i,"Tablet"),JL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-user",QL(i,""),QL(i,"Tablet"),QL(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a",tD(i,""),tD(i,"Tablet"),tD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a:hover",eD(i,""),eD(i,"Tablet"),eD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item--current a",iD(i,""),iD(i,"Tablet"),iD(i,"Mobile")), | |
| 4016 | -t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content",oD(i,""),oD(i,"Tablet"),oD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content:hover",aD(i,""),aD(i,"Tablet"),aD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li",lD(i,""),lD(i,"Tablet"),lD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li + li::before",lD(i,""),lD(i,"Tablet"),lD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--frontend-dashboard",nD(i,""),nD(i,"Tablet"),nD(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(GL,{...t}),(0,L.jsx)(KL,{...t})]})},save:()=>null});const sD=[{label:(0,z.__)("1 Columns","ablocks"),value:1},{label:(0,z.__)("2 Columns","ablocks"),value:2},{label:(0,z.__)("3 Columns","ablocks"),value:3},{label:(0,z.__)("4 Columns","ablocks"),value:4},{label:(0,z.__)("5 Columns","ablocks"),value:5},{label:(0, | |
| 4017 | -z.__)("6 Columns","ablocks"),value:6},{label:(0,z.__)("7 Columns","ablocks"),value:7},{label:(0,z.__)("8 Columns","ablocks"),value:8},{label:(0,z.__)("9 Columns","ablocks"),value:9},{label:(0,z.__)("10 Columns","ablocks"),value:10}],rD=[{label:(0,z.__)("Fade In","ablocks"),value:"fade-in"},{label:(0,z.__)("Slide Up","ablocks"),value:"slide-up"},{label:(0,z.__)("Zoom In","ablocks"),value:"zoom-in"},{label:(0,z.__)("Rotate","ablocks"),value:"rotate"},{label:(0,z.__)("Slide-in from Left","ablocks"),value:"slide-in-left"},{label:(0,z.__)("Slide-in from Right","ablocks"),value:"slide-in-right"}],bD=[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],cD=(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20", | |
| 4018 | -fill:"none",children:[(0,L.jsx)("g",{clipPath:"url(#clip0_9663_5064)",children:(0,L.jsx)("path",{d:"M16.25 7.5L10 13.75L3.75 7.5",stroke:"#13191B",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,L.jsx)("defs",{children:(0,L.jsx)("clipPath",{id:"clip0_9663_5064",children:(0,L.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]});var dD=i(29419);function uD(t){ | |
| 4019 | -const{attributes:e,setAttributes:i}=t,{filterList:o,enableFilter:a,filterButtonTypography:n,filterButtonColor:s,filterButtonColorH:r,filterButtonBackground:b,filterButtonBackgroundH:c,filterButtonBorder:d,filterButtonPadding:u,searchMenuPadding:p,searchMenuMargin:m,searchMenuBorder:h,filterButtonMargin:g,filterButtonGap:f,filterAlignment:y,gridColumns:T,cardHeight:H,itemShows:x,activeClassBackground:k,activeClassBorder:v,loadMoreButton:_,animationDuration:R,loadMoreButtonText:S,loadMoreButtonBackground:W,loadMoreButtonTextColor:U,loadMoreButtonTextColorH:P,loadMoreButtonBackgroundH:j,moreButtonAlignment:w,dataPerPageShow:A,noMoreItemsText:N,gridStyle:I,itemGap:O,activeClassColor:Y,animation:X,layout:B,searchPlaceHolder:E,searchMenuColor:F,searchMenuColorH:q,searchMenuBackground:$,searchMenuBackgroundH:G,searchNotFoundText:Z,loadMoreButtonGap:K}=e,J=(t,e,a)=>{const l=o.map(i=>"isActive"===a&&e?{...i,[a]:i.id===t}:i.id===t?{...i,[a]:e}:i);i({filterList:l}) | |
| 4020 | -},Q=o?.length?o[o.length-1].id+1:0;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Load More Button","ablocks"),initialOpen:!0,children:[M.zX?(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Load More Button","ablocks"),attributeValue:_,setAttributes:i,attributeName:"loadMoreButton"}):(0,L.jsx)(Ur,{isResponsive:!1,label:(0,z.__)("Load More Button","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0,z.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")}),_&&(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"moreButtonAlignment",attributeValue:w,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center", | |
| 4021 | -value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"loadMoreButtonText",attributeValue:S,setAttributes:i,isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("No More Items Label","ablocks"),attributeName:"noMoreItemsText",attributeValue:N,setAttributes:i,isInline:!1}),(0,L.jsx)(js,{label:(0,z.__)("Number of Items","ablocks"),attributeName:"dataPerPageShow",attributeValue:A,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),min:0,max:200,unitValue:K,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"loadMoreButtonGap",attributeValue:K,attributeDefaultValue:dD.iA,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"moreButtonTypography",attributeValue:e?.moreButtonTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0, | |
| 4022 | -L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColor",attributeValue:U||"#000000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackground",attributeValue:W||"#ddd",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColorH",attributeValue:P,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackgroundH",attributeValue:j,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{ | |
| 4023 | -attributeName:"moreButtonBorder",attributeValue:e?.moreButtonBorder,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"moreButtonPadding",attributeValue:e?.moreButtonPadding,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"moreButtonboxShadow",attributeValue:e?.moreButtonboxShadow,setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("filterable Cards","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Filter","ablocks"),attributeValue:a,setAttributes:i,attributeName:"enableFilter"}),(0,L.jsx)(js,{min:0,label:(0,z.__)("Items to show","ablocks"),attributeName:"itemShows",attributeValue:x,setAttributes:i}),(0,L.jsx)(Ut,{min:0,label:(0,z.__)("Columns","ablocks"),attributeName:"gridColumns",options:sD,attributeValue:T,setAttributes:i}),(0,L.jsx)(Ut,{ | |
| 4024 | -min:0,label:(0,z.__)("Grid Style","ablocks"),attributeName:"gridStyle",options:[{label:(0,z.__)("Grid","ablocks"),value:"grid"},{label:(0,z.__)("Masonry","ablocks"),value:"masonry"}],attributeValue:I,setAttributes:i}),M.zX?a&&(0,L.jsx)(Ut,{min:0,label:(0,z.__)("Layout","ablocks"),attributeName:"layout",options:[{label:(0,z.__)("Filter","ablocks"),value:"filter"},{label:(0,z.__)("Filter & Search","ablocks"),value:"filter&search"}],attributeValue:B,setAttributes:i}):(0,L.jsx)(Ur,{isResponsive:!1,label:(0,z.__)("Layout","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0,z.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")}),"filter&search"===B&&(0,L.jsx)(ql,{label:(0,z.__)("Not Found Text","ablocks"),attributeName:"searchNotFoundText",attributeValue:Z,setAttributes:i,isInline:!1}),"grid"===I&&(0,L.jsx)(js,{label:(0, | |
| 4025 | -z.__)("Items Height","ablocks"),min:0,max:1600,attributeName:"cardHeight",attributeValue:H,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Item Gap","ablocks"),min:0,max:100,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemGap",attributeValue:O,attributeDefaultValue:dD.Qk,setAttributes:i}),M.zX?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{min:0,label:(0,z.__)("Animation","ablocks"),attributeName:"animation",options:rD,attributeValue:X,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Animation Duration(ms)","ablocks"),attributeName:"animationDuration",attributeValue:R,setAttributes:i,min:0,max:1e4,step:100,isInline:!1,isResponsive:!1,attributeDefaultValue:dD.H9})]}):(0,L.jsx)(Ur,{isResponsive:!1,label:(0,z.__)("Animation","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,z.__)("PRO","ablocks"),descriptionText:(0, | |
| 4026 | -z.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")})]}),a&&(0,L.jsx)(D,{title:(0,z.__)("Filter Style","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{allowDeselect:!0,label:(0,z.__)("Alignment","ablocks"),options:bD,isInline:!1,attributeName:"filterAlignment",attributeValue:y,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),min:0,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"filterButtonGap",attributeValue:f,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"filterButtonTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 4027 | -attributeName:"filterButtonColor",attributeValue:s,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"filterButtonBackground",attributeValue:b,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"filterButtonColorH",attributeValue:r,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"filterButtonBackgroundH",attributeValue:c,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.filterButtonTransition||0,attributeName:"filterButtonTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{style:{margin:"30px"}}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"filterButtonBorder",attributeValue:d,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"), | |
| 4028 | -isResponsive:!0,attributeName:"filterButtonPadding",attributeValue:u,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"filterButtonMargin",attributeValue:g,setAttributes:i})]})})}),"filter&search"===B&&(0,L.jsx)(D,{title:(0,z.__)("Filter & Search Style","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Search Placeholder","ablocks"),attributeName:"searchPlaceHolder",attributeValue:E,setAttributes:i,isInline:!1})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Filter Menu","ablocks"),isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"searchMenuColor",attributeValue:F,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"searchMenuBackground",attributeValue:$,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 4029 | -L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"searchMenuColorH",attributeValue:q,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"searchMenuBackgroundH",attributeValue:G,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.searchMenuTransition||0,attributeName:"searchMenuTransition",setAttributes:i})]})}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"searchMenuBorder",attributeValue:h,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"searchMenuPadding",attributeValue:p,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"searchMenuMargin",attributeValue:m,setAttributes:i})]})})}),a&&(0,L.jsxs)(D,{title:(0,z.__)("Filter Active Class","ablocks"),initialOpen:!0, | |
| 4030 | -children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0,attributeName:"activeClassColor",attributeValue:Y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"activeClassBackground",attributeValue:k,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"activeClassBorder",attributeValue:v,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Filterable Controls","ablocks"),initialOpen:!0,children:[(0,L.jsx)(tf,{onDragEnd:t=>{if(!t.destination||0===t.source.index)return;const e=Array.from(o),[a]=e.splice(t.source.index,1),l=Math.max(t.destination.index,1);e.splice(l,0,a),i({filterList:e})},children:(0,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,e)=>(0,L.jsx)(Uf,{draggableId:`${t?.id}`,index:e,children:a=>(0,L.jsxs)("div",{ref:a.innerRef,...a.draggableProps,...a.dragHandleProps, | |
| 4031 | -className:"ablocks-editor-list",children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({filterList:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-editor-list__grab",children:0!==e?(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"}):""}),(0,L.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,L.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[0!==e?(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.filter(t=>t?.id!==e);i({filterList:a})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}):"",0!==e?(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--copy", | |
| 4032 | -onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:(n[n.length-1]?.id??0)+1,text:l?.text,isOpen:!1},r=[...o,s];i({filterList:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}):""]})]}),t?.isOpen&&(0,L.jsxs)("div",{className:"ablocks-editor-list__inner-content",children:[(0,L.jsx)(ql,{label:(0,z.__)("Filter Name","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"text")},disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Active as Default","ablocks"),isResponsive:!1,attributeValue:t?.isActive,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"isActive")}})]})]})},t?.id)),t.placeholder]})})}),(0,L.jsx)(V,{label:(0,z.__)("Add item","ablocks"),onClick:()=>{const t={id:Q,text:`Item ${Q}`,isActive:!1,isOpen:!1},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({filterList:[...e,t]})},className:"ablocks-add-list-item-button"})]})]})})})}uD.propTypes={};const pD={ | |
| 4045 | +_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function MD(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:o,name:HD.UU,attributes:e,children:(0,I.jsx)(eW,{children:(0,I.jsx)(tW(),{block:"ablocks/frontend-dashboard",httpMethod:"POST",attributes:e})})})})}MD.propTypes={};const xD=(t,e="")=>{const i={};t?.sidebarBackground&&(i.background=(0,Hs.qD)(t?.sidebarBackground));const o=(0,M.Zy)(t.sidebarBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e)}},kD=(t,e="")=>{const i={};t?.userTextColor&&(i.color=(0,Hs.qD)(t?.userTextColor)),t?.sidebarUserBackground&&(i.background=(0,Hs.qD)(t?.sidebarUserBackground));const o=(0,M.Zy)(t.userSidebarBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.userTypography,{weight:"400" | |
| 4046 | +}),l=t.userTypographyGlobal?t.userTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,U.qD)(a,e,l)}},vD=(t,e="")=>{const i={};t?.menuListTextColor&&(i.color=(0,Hs.qD)(t?.menuListTextColor)),t?.menuListBackground&&(i.background=(0,Hs.qD)(t?.menuListBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.menuListTypography,{weight:"400"}),l=t.menuListTypographyGlobal?t.menuListTypographyGlobal:"";return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.menuListPadding,"padding",e),...(0,U.qD)(a,e,l)}},_D=(t,e="")=>{const i={};t?.menuListHoverTextColor&&(i.color=(0,Hs.qD)(t?.menuListHoverTextColor)),t?.menuListHoverBackground&&(i.background=(0,Hs.qD)(t?.menuListHoverBackground));const o=(0,M.Zy)(t.menuListBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.a9)(o,e)}},RD=(t,e="")=>{const i={};return t?.menuListActiveTextColor&&(i.color=(0,Hs.qD)(t?.menuListActiveTextColor)),t?.menuListActiveBackground&&(i.background=(0, | |
| 4047 | +Hs.qD)(t?.menuListActiveBackground)),{...i}},SD=(t,e="")=>{const i={};t?.contentBackground&&(i.background=(0,Hs.qD)(t?.contentBackground));const o=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(o,e),...(0,c.qD)(t?.contentPadding,"padding",e)}},WD=(t,e="")=>{const i=(0,M.Zy)(t.contentBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},PD=(t,e="")=>{const i={};t?.breadcrumbColor&&(i.color=(0,Hs.qD)(t?.breadcrumbColor));const o=(0,M.Zy)(t.breadcrumbtTypography,{weight:"400"}),a=t.breadcrumbtTypographyGlobal?t.breadcrumbtTypographyGlobal:"";return{...i,...(0,U.qD)(o,e,a)}},UD=(t,e="")=>{const i={};return t?.bothGap&&(i.gap=`${t?.bothGap}px`),i.display="flex",i["flex-direction"]="Tablet"===e||"Mobile"===e?"column":"row",{...i}};(0,o.registerBlockType)(HD.UU,{title:(0,L.__)("Frontend Dashboard","ablocks"),attributes:HD.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--frontend-dashboard"}),edit:function(t){ | |
| 4048 | +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-sidebar",xD(i,""),xD(i,"Tablet"),xD(i,"Mobile"),t.customDeviceMap(t=>xD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-user",kD(i,""),kD(i,"Tablet"),kD(i,"Mobile"),t.customDeviceMap(t=>kD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a",vD(i,""),vD(i,"Tablet"),vD(i,"Mobile"),t.customDeviceMap(t=>vD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item a:hover",_D(i,""),_D(i,"Tablet"),_D(i,"Mobile"),t.customDeviceMap(t=>_D(i,t))), | |
| 4049 | +t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-menu__item--current a",RD(i,""),RD(i,"Tablet"),RD(i,"Mobile"),t.customDeviceMap(t=>RD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content",SD(i,""),SD(i,"Tablet"),SD(i,"Mobile"),t.customDeviceMap(t=>SD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-content:hover",WD(i,""),WD(i,"Tablet"),WD(i,"Mobile"),t.customDeviceMap(t=>WD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li",PD(i,""),PD(i,"Tablet"),PD(i,"Mobile"),t.customDeviceMap(t=>PD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-frontend-dashboard-breadcrumb li + li::before",PD(i,""),PD(i,"Tablet"),PD(i,"Mobile"),t.customDeviceMap(t=>PD(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block--frontend-dashboard",UD(i,""),UD(i,"Tablet"),UD(i,"Mobile"),t.customDeviceMap(t=>UD(i,t))),t.generateCSS())},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(TD,{...t}),(0,I.jsx)(MD,{ | |
| 4050 | +...t})]})},save:()=>null});const jD=[{label:(0,L.__)("1 Columns","ablocks"),value:1},{label:(0,L.__)("2 Columns","ablocks"),value:2},{label:(0,L.__)("3 Columns","ablocks"),value:3},{label:(0,L.__)("4 Columns","ablocks"),value:4},{label:(0,L.__)("5 Columns","ablocks"),value:5},{label:(0,L.__)("6 Columns","ablocks"),value:6},{label:(0,L.__)("7 Columns","ablocks"),value:7},{label:(0,L.__)("8 Columns","ablocks"),value:8},{label:(0,L.__)("9 Columns","ablocks"),value:9},{label:(0,L.__)("10 Columns","ablocks"),value:10}],wD=[{label:(0,L.__)("Fade In","ablocks"),value:"fade-in"},{label:(0,L.__)("Slide Up","ablocks"),value:"slide-up"},{label:(0,L.__)("Zoom In","ablocks"),value:"zoom-in"},{label:(0,L.__)("Rotate","ablocks"),value:"rotate"},{label:(0,L.__)("Slide-in from Left","ablocks"),value:"slide-in-left"},{label:(0,L.__)("Slide-in from Right","ablocks"),value:"slide-in-right"}],zD=[{label:(0,L.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,L.__)("Center","ablocks"), | |
| 4051 | +value:"center",icon:"center"},{label:(0,L.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,L.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],CD=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,I.jsx)("g",{clipPath:"url(#clip0_9663_5064)",children:(0,I.jsx)("path",{d:"M16.25 7.5L10 13.75L3.75 7.5",stroke:"#13191B",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,I.jsx)("defs",{children:(0,I.jsx)("clipPath",{id:"clip0_9663_5064",children:(0,I.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]});var AD=i(29419);function LD(t){ | |
| 4052 | +const{attributes:e,setAttributes:i}=t,{filterList:o,enableFilter:a,filterButtonTypography:n,filterButtonColor:s,filterButtonColorH:r,filterButtonBackground:b,filterButtonBackgroundH:c,filterButtonBorder:d,filterButtonPadding:u,searchMenuPadding:p,searchMenuMargin:m,searchMenuBorder:h,filterButtonMargin:g,filterButtonGap:f,filterAlignment:y,gridColumns:T,cardHeight:H,itemShows:x,activeClassBackground:k,activeClassBorder:v,loadMoreButton:_,animationDuration:R,loadMoreButtonText:S,loadMoreButtonBackground:W,loadMoreButtonTextColor:P,loadMoreButtonTextColorH:U,loadMoreButtonBackgroundH:j,moreButtonAlignment:w,dataPerPageShow:z,noMoreItemsText:C,gridStyle:A,itemGap:N,activeClassColor:O,animation:Y,layout:B,searchPlaceHolder:E,searchMenuColor:F,searchMenuColorH:q,searchMenuBackground:$,searchMenuBackgroundH:G,searchNotFoundText:Z,loadMoreButtonGap:K}=e,J=(t,e,a)=>{const l=o.map(i=>"isActive"===a&&e?{...i,[a]:i.id===t}:i.id===t?{...i,[a]:e}:i);i({filterList:l}) | |
| 4053 | +},Q=o?.length?o[o.length-1].id+1:0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,children:[(0,I.jsxs)(V,{title:(0,L.__)("Load More Button","ablocks"),initialOpen:!0,children:[M.zX?(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Load More Button","ablocks"),attributeValue:_,setAttributes:i,attributeName:"loadMoreButton"}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Load More Button","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")}),_&&(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"moreButtonAlignment",attributeValue:w,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,L.__)("left","ablocks"),value:"left",icon:"left"},{label:(0, | |
| 4054 | +L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("right","ablocks"),value:"right",icon:"right"}]}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"loadMoreButtonText",attributeValue:S,setAttributes:i,isInline:!1}),(0,I.jsx)(Kl,{label:(0,L.__)("No More Items Label","ablocks"),attributeName:"noMoreItemsText",attributeValue:C,setAttributes:i,isInline:!1}),(0,I.jsx)(As,{label:(0,L.__)("Number of Items","ablocks"),attributeName:"dataPerPageShow",attributeValue:z,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,max:200,unitValue:K,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"loadMoreButtonGap",attributeValue:K,attributeDefaultValue:AD.iA,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"moreButtonTypography",attributeValue:e?.moreButtonTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0, | |
| 4055 | +L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColor",attributeValue:P||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackground",attributeValue:W||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColorH",attributeValue:U,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackgroundH",attributeValue:j,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.loadMoreButtonTransition||0,attributeName:"loadMoreButtonTransition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0, | |
| 4056 | +L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"moreButtonBorder",attributeValue:e?.moreButtonBorder,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"moreButtonPadding",attributeValue:e?.moreButtonPadding,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"moreButtonboxShadow",attributeValue:e?.moreButtonboxShadow,setAttributes:i})]})})]}),(0,I.jsxs)(V,{title:(0,L.__)("filterable Cards","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Ot,{isResponsive:!1,label:(0,L.__)("Enable Filter","ablocks"),attributeValue:a,setAttributes:i,attributeName:"enableFilter"}),(0,I.jsx)(As,{min:0,label:(0,L.__)("Items to show","ablocks"),attributeName:"itemShows",attributeValue:x,setAttributes:i}),(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Columns","ablocks"), | |
| 4057 | +attributeName:"gridColumns",options:jD,attributeValue:T,setAttributes:i}),(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Grid Style","ablocks"),attributeName:"gridStyle",options:[{label:(0,L.__)("Grid","ablocks"),value:"grid"},{label:(0,L.__)("Masonry","ablocks"),value:"masonry"}],attributeValue:A,setAttributes:i}),M.zX?a&&(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Layout","ablocks"),attributeName:"layout",options:[{label:(0,L.__)("Filter","ablocks"),value:"filter"},{label:(0,L.__)("Filter & Search","ablocks"),value:"filter&search"}],attributeValue:B,setAttributes:i}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Layout","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0,L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")}),"filter&search"===B&&(0,I.jsx)(Kl,{label:(0,L.__)("Not Found Text","ablocks"),attributeName:"searchNotFoundText",attributeValue:Z, | |
| 4058 | +setAttributes:i,isInline:!1}),"grid"===A&&(0,I.jsx)(As,{label:(0,L.__)("Items Height","ablocks"),min:0,max:1600,attributeName:"cardHeight",attributeValue:H,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Item Gap","ablocks"),min:0,max:100,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemGap",attributeValue:N,attributeDefaultValue:AD.Qk,setAttributes:i}),M.zX?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Animation","ablocks"),attributeName:"animation",options:wD,attributeValue:Y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Duration(ms)","ablocks"),attributeName:"animationDuration",attributeValue:R,setAttributes:i,min:0,max:1e4,step:100,isInline:!1,isResponsive:!1,attributeDefaultValue:AD.H9})]}):(0,I.jsx)(zr,{isResponsive:!1,label:(0,L.__)("Animation","ablocks"),attributeValue:"",setAttributes:i,attributeName:"",badgeText:(0,L.__)("PRO","ablocks"),descriptionText:(0, | |
| 4059 | +L.__)("This feature is available only in the Pro version. Please upgrade to access it and unlock advanced functionality.","ablocks")})]}),a&&(0,I.jsx)(V,{title:(0,L.__)("Filter Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{allowDeselect:!0,label:(0,L.__)("Alignment","ablocks"),options:zD,isInline:!1,attributeName:"filterAlignment",attributeValue:y,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Gap","ablocks"),min:0,unitValue:f,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"filterButtonGap",attributeValue:f,setAttributes:i})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"filterButtonTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"), | |
| 4060 | +attributeName:"filterButtonColor",attributeValue:s,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"filterButtonBackground",attributeValue:b,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"filterButtonColorH",attributeValue:r,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"filterButtonBackgroundH",attributeValue:c,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.filterButtonTransition||0,attributeName:"filterButtonTransition",setAttributes:i})]})}),(0,I.jsx)(It,{style:{margin:"30px"}}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"filterButtonBorder",attributeValue:d,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"), | |
| 4061 | +isResponsive:!0,attributeName:"filterButtonPadding",attributeValue:u,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"filterButtonMargin",attributeValue:g,setAttributes:i})]})})}),"filter&search"===B&&(0,I.jsx)(V,{title:(0,L.__)("Filter & Search Style","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Search Placeholder","ablocks"),attributeName:"searchPlaceHolder",attributeValue:E,setAttributes:i,isInline:!1})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(at,{label:(0,L.__)("Filter Menu","ablocks"),isResponsive:!1}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"searchMenuColor",attributeValue:F,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"searchMenuBackground",attributeValue:$,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0, | |
| 4062 | +I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"searchMenuColorH",attributeValue:q,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"searchMenuBackgroundH",attributeValue:G,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.searchMenuTransition||0,attributeName:"searchMenuTransition",setAttributes:i})]})}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1}),(0,I.jsx)(Us,{attributeName:"searchMenuBorder",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"searchMenuPadding",attributeValue:p,setAttributes:i}),(0,I.jsx)(xt,{label:(0,L.__)("Margin","ablocks"),isResponsive:!0,attributeName:"searchMenuMargin",attributeValue:m,setAttributes:i})]})})}),a&&(0,I.jsxs)(V,{title:(0,L.__)("Filter Active Class","ablocks"),initialOpen:!0, | |
| 4063 | +children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),isGradient:!0,attributeName:"activeClassColor",attributeValue:O,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"activeClassBackground",attributeValue:k,setAttributes:i}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"activeClassBorder",attributeValue:v,setAttributes:i})]}),(0,I.jsxs)(V,{title:(0,L.__)("Filterable Controls","ablocks"),initialOpen:!0,children:[(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination||0===t.source.index)return;const e=Array.from(o),[a]=e.splice(t.source.index,1),l=Math.max(t.destination.index,1);e.splice(l,0,a),i({filterList:e})},children:(0,I.jsx)(If,{droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t?.id}`,index:e,children:a=>(0,I.jsxs)("div",{ref:a.innerRef,...a.draggableProps,...a.dragHandleProps, | |
| 4064 | +className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=o.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({filterList:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:0!==e?(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"}):""}),(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[0!==e?(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--delete",onClick:e=>((t,e)=>{t.stopPropagation();const a=o.filter(t=>t?.id!==e);i({filterList:a})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}):"",0!==e?(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy", | |
| 4065 | +onClick:e=>((t,e)=>{t.stopPropagation();const a=o.findIndex(t=>t?.id===e),l=o[a],n=Array.from(o).sort((t,e)=>t.id-e.id),s={id:(n[n.length-1]?.id??0)+1,text:l?.text,isOpen:!1},r=[...o,s];i({filterList:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}}):""]})]}),t?.isOpen&&(0,I.jsxs)("div",{className:"ablocks-editor-list__inner-content",children:[(0,I.jsx)(Kl,{label:(0,L.__)("Filter Name","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"text")},disableDynamicContent:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Active as Default","ablocks"),isResponsive:!1,attributeValue:t?.isActive,setAttributes:i,onChangeHandler:e=>{J(t?.id,e,"isActive")}})]})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:Q,text:`Item ${Q}`,isActive:!1,isOpen:!1},e=o.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({filterList:[...e,t]})},className:"ablocks-add-list-item-button"})]})]})})})}LD.propTypes={};const DD={ | |
| 4033 | 4066 | UU:"ablocks/filterable-cards",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:""},filterList:{type:"array",default:[{id:0,text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5"},animation:{type:"string",default:"fade-in"},enableFilter:{type:"boolean",default:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},filterButtonColor:{type:"string",default:""},filterButtonColorH:{type:"string",default:""},filterButtonBackground:{type:"string",default:""},filterButtonBackgroundH:{type:"string",default:""},filterButtonTransition:{type:"number",default:0},itemShows:{type:"number",default:6},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:""},searchMenuColorH:{type:"string",default:""},searchMenuBackground:{type:"string",default:""},searchMenuBackgroundH:{type:"string",default:""},searchMenuTransition:{type:"string",default:""}, |
| 4034 | 4067 | searchPlaceHolder:{type:"string",default:"Search..."},gridColumns:{type:"number",default:2},cardHeight:{type:"number"},activeClassColor:{type:"string",default:"#fff"},activeClassBackground:{type:"string",default:"#13191B"},moreButtonAlignment:{type:"string",default:"center"},loadMoreButton:{type:"boolean",default:!1},loadMoreButtonText:{type:"string",default:"Show More"},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff ",copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},dataPerPageShow:{type:"number",default:"6"},noMoreItemsText:{type:"string",default:"No More Items !"},filterButtonTypographyGlobal:{type:"string",default:""},filterButtonTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"", |
| 4035 | 4068 | fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},filterButtonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"", |
| 4036 | 4069 | 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:"", |
| @@ -4049,23 +4082,23 @@ | ||
| 4049 | 4082 | 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:"", |
| 4050 | 4083 | 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", |
| 4051 | 4084 | 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", |
| 4052 | 4085 | 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:{ |
| 4053 | -type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},mD=class{constructor(t){this.element=t,this.element&&(this.filterButtons=this.element.querySelectorAll(".filterable-filter-button"),this.cardsItems=[...this.element.querySelectorAll(".ablocks-block--filterable-cards-item")],this.showMoreButton=this.element.querySelector(".filterable-cards-showMore-button"),this.searchInput=this.element.querySelector(".filterable-searchInput"),this.searchToggleBtn=this.element.querySelector(".filterable-search-toggle-btn"),this.filterListDropdown=this.element.querySelector(".filterable-cards_filter-list-dropdown"),this.filterSearchNoItemText=this.element.querySelector(".filterable-search-item-not-found-text"),this.searchFilterS=this.element.querySelector(".filterable-search-select"), | |
| 4086 | +type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},ND=class{constructor(t){this.element=t,this.element&&(this.filterButtons=this.element.querySelectorAll(".filterable-filter-button"),this.cardsItems=[...this.element.querySelectorAll(".ablocks-block--filterable-cards-item")],this.showMoreButton=this.element.querySelector(".filterable-cards-showMore-button"),this.searchInput=this.element.querySelector(".filterable-searchInput"),this.searchToggleBtn=this.element.querySelector(".filterable-search-toggle-btn"),this.filterListDropdown=this.element.querySelector(".filterable-cards_filter-list-dropdown"),this.filterSearchNoItemText=this.element.querySelector(".filterable-search-item-not-found-text"),this.searchFilterS=this.element.querySelector(".filterable-search-select"), | |
| 4054 | 4087 | this.firstCategory=this.filterButtons[0]?.dataset.category?.toLowerCase()||"all",this.showItemNumber=parseInt(this.element?.getAttribute("itemShows")||"0",10),this.animation=this.element?.dataset.animation||"fade-in",this.layout=this.element?.dataset.layout||"filter",this.animationDuration=this.element?.dataset.animationDuration,this.perPageShowCardNumber=parseInt(this.showMoreButton?.dataset.perPage||"0",10),this.noMoreText=this.showMoreButton?.dataset.noItemText||"No more items.",this.loadMoreText=this.showMoreButton?.dataset.moreButtonText||"Show More",this.currentlyShown=this.showItemNumber,this.animationDuration=parseInt(this.element?.getAttribute("data-duration")||"500",10),this.enableFilter="true"===this.element?.getAttribute("data-enableFilter"),this.init())}filterCards(t,e){let i=0;const o="filter&search"===this.layout;this.cardsItems.forEach(a=>{ |
| 4055 | 4088 | const l=a.dataset.category?.toLowerCase()||"",n=a.querySelector("h1, h2, h3, h4, h5, h6")?.textContent.trim().toLowerCase()||"",s=!t||n.includes(t.toLowerCase()),r=e===this.firstCategory||l===e;this.toggleItem(a,(!o||s)&&r&&i<this.currentlyShown),o&&!s||!r||i++}),this.enableFilter?(this.filterSearchNoItemText.style.display=i?"none":"block",this.toggleShowMoreButton(e,t)):this.toggleShowMoreButton("all",t)}applyFilter(t,e=!0){const i=this.searchInput?.value.trim().toLowerCase()||"";e&&(this.currentlyShown=this.showItemNumber),this.filterCards(i,t)}toggleItem(t,e){t.classList.toggle(this.animation,e),t.style.display=e?"block":"none",t.style.visibility=e?"visible":"hidden"}toggleShowMoreButton(t,e=""){const i=e.toLowerCase(),o="filter&search"===this.layout,a=this.cardsItems.filter(e=>{const a=e.dataset.category?.toLowerCase()||"",l=e.querySelectorAll("h1, h2, h3, h4, h5, h6"),n=!o||[...l].some(t=>t.textContent.trim().toLowerCase().includes(i));return(t===this.firstCategory||a===t)&&n |
| 4056 | 4089 | }),l=a.slice(this.currentlyShown);if(this.showMoreButton){if(a.length<=this.showItemNumber)return void(this.showMoreButton.style.visibility="hidden");l.length>0?(this.showMoreButton.style.visibility="visible",this.showMoreButton.innerText=this.loadMoreText||"Show More"):setTimeout(()=>{this.showMoreButton.innerText=this.noMoreText||"No more items.",setTimeout(()=>{this.showMoreButton.style.visibility="hidden"},2e3)},1e3)}}handleButtonClick(t){const e=t.target.closest(".filterable-filter-button");if(!e)return;const i=e.dataset.category?.toLowerCase()||"all";this.applyFilter(i),this.filterButtons.forEach(t=>t.classList.remove("filterable-filter-button-active")),e.classList.add("filterable-filter-button-active"),this.searchFilterS&&(this.searchFilterS.innerText=e.textContent,this.filterListDropdown.style.display="none")}handleShowMoreClick(){this.currentlyShown+=this.perPageShowCardNumber |
| 4057 | 4090 | ;const t=[...this.filterButtons].find(t=>t.classList.contains("filterable-filter-button-active"))||this.filterButtons[0];if(t){const e=t.dataset.category?.toLowerCase()||"all";this.applyFilter(e,!1)}else this.applyFilter("all",!1)}handleSearchInput(t){const e=t.target.value.trim().toLowerCase(),i=[...this.filterButtons].find(t=>t.classList.contains("filterable-filter-button-active"))||this.filterButtons[0],o=i.dataset.category?.toLowerCase()||"all";this.filterCards(e,o)}initializeActiveButton(){const t=[...this.filterButtons].find(t=>t.classList.contains("filterable-filter-button-active"))||this.filterButtons[0];t?(this.applyFilter(t.dataset.category?.toLowerCase()||"all"),t.classList.add("filterable-filter-button-active")):this.applyFilter("all")}toggleSearchDropdown(){this.searchToggleBtn?.addEventListener("click",()=>{const t="none"===this.filterListDropdown.style.display||!this.filterListDropdown.style.display;this.filterListDropdown.style.display=t?"block":"none"})} |
| 4058 | -setAnimationDuration(){this.cardsItems&&this.cardsItems.forEach(t=>{t.style.setProperty("--animation-duration",`${this.animationDuration}ms`)})}init(){this.setAnimationDuration(),this.filterButtons.forEach(t=>t.addEventListener("click",t=>this.handleButtonClick(t))),this.showMoreButton?.addEventListener("click",()=>this.handleShowMoreClick()),this.searchInput?.addEventListener("input",t=>this.handleSearchInput(t)),this.initializeActiveButton(),this.toggleSearchDropdown()}};function hD({filterLists:t,layout:e,placeHolder:i}){const o=t.find(t=>!0===t.isActive);function a(t){return t.map((t,e)=>(0,L.jsx)("li",{"data-category":t.text,className:"filterable-filter-button "+(t.isActive?"filterable-filter-button-active":""),children:t.text},e))}return(0,L.jsx)(L.Fragment,{children:"filter"===e?(0,L.jsx)("ul",{className:"filterable-cards_filter",children:a(t)}):(0,L.jsxs)("div",{className:"filterable-cards-filter-wrap",children:[(0,L.jsxs)("ul",{className:"filterable-cards_filter",children:[(0, | |
| 4059 | -L.jsx)("li",{children:(0,L.jsxs)("button",{className:"filterable-search-toggle-btn",children:[(0,L.jsx)("span",{className:"filterable-search-select",children:o?.text||(0,z.__)("Select Filter","ablocks")}),(0,L.jsx)("span",{children:cD})]})}),(0,L.jsx)("div",{className:"filterable-cards_filter-list-dropdown",children:a(t)})]}),(0,L.jsx)("input",{type:"text",className:"filterable-searchInput",placeholder:i})]})})}function gD(t){const{attributes:e,clientId:i,setAttributes:o}=t,{block_id:n,filterList:s,enableFilter:b,filterableCardsNumbers:c,itemShows:d,loadMoreButton:u,loadMoreButtonText:p,dataPerPageShow:m,noMoreItemsText:h,animation:g,layout:f,searchPlaceHolder:y,searchNotFoundText:T,animationDuration:H}=e,{isDynamicEnabled:x,data:k}=Zc({attributeValue:p}),{isDynamicEnabled:v,data:_}=Zc({attributeValue:h}),{isDynamicEnabled:R,data:S}=Zc({attributeValue:T}),{isDynamicEnabled:W,data:U}=Zc({attributeValue:y}),P=(0,C.useInnerBlocksProps)({},{template:[["ablocks/filterable-cards-item",{ | |
| 4060 | -dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Latest Gadgets",allowButton:!1,des:"Showcase the latest gadgets with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{},[["ablocks/info-box",{stack:"column",heading:"Creative Designs",allowButton:!1,des:"Showcase creative designs with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Healthy Recipes",allowButton:!1,des:"Showcase top destinations with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]]],renderAppender:!1});return o({filterableCardsNumbers:(0,r.select)("core/block-editor").getBlock(i)?.innerBlocks.length||0}),(0,a.useEffect)(()=>{new mD((0,M.bu)(`.ablocks-block-${n}.ablocks-block--filterable-cards`)) | |
| 4061 | -},[n,s,b,c,d,u,p,m,h,g,f,H]),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(Nb.A,{blockId:n,name:pD.UU,attributes:e,blockProps:{itemShows:d,"data-animation":g,"data-layout":f,"data-duration":H,"data-enableFilter":b},children:[b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(hD,{filterLists:s,layout:f,placeHolder:W?U:y}),(0,L.jsx)("span",{className:"filterable-search-item-not-found-text",children:R?S:T})]}),(0,L.jsx)("div",{...P,className:"filterable-cards-wrap"}),u&&(0,L.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,L.jsx)("span",{"data-filterable-cards-numbers":c,"data-per-page":m,"data-no-item-text":v?_:h,"data-more-button-text":x?k:p,className:"filterable-cards-showMore-button",children:x?k:p})}),(0,L.jsxs)("button",{className:"ablocks-filtrable-card-add-button",onClick:()=>{const{insertBlock:t}=wp.data.dispatch("core/block-editor");t(wp.blocks.createBlock("ablocks/filterable-cards-item",{}),void 0,i)},children:[(0,L.jsx)("span",{ | |
| 4062 | -className:"ablocks-icon ablocks-icon--plus"}),(0,z.__)("Add Item","ablocks")]})]})})}gD.propTypes={},gD.defaultProps={};const fD=(t,e="")=>{const i={};return t?.filterAlignment&&(i["justify-content"]=t.filterAlignment),{...i,...(0,Gt.qD)(t?.filterAlignment,"justify-content",e),...(0,Ob.qD)({attributeValue:t.filterButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:8,property:"gap",unitDefaultValue:"px",device:e})}},yD=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonTypography,{weight:"400"}),o=t.filterButtonTypographyGlobal?t.filterButtonTypographyGlobal:"",a=(0,M.Zy)(t.filterButtonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.filterButtonPadding,{unit:"px"}),n=(0,M.Zy)(t.filterButtonMargin,{unit:"px"});return{color:(0,gs.qD)(t?.filterButtonColor),background:(0,gs.qD)(t?.filterButtonBackground),...(0,P.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)}},TD=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonBorder,{unitWidthH:"px", | |
| 4063 | -unitRadiusH:"px"}),o={color:(0,gs.qD)(t?.filterButtonColorH),background:(0,gs.qD)(t?.filterButtonBackgroundH),...(0,y.a9)(i,e)};return t?.filterButtonTransition&&(o.transition=t?.filterButtonTransition+"s"),o},HD=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.searchMenuPadding,{unit:"px"}),a=(0,M.Zy)(t?.searchMenuMargin,{unit:"px"});return{color:(0,gs.qD)(t?.searchMenuColor),background:(0,gs.qD)(t?.searchMenuBackground),...(0,y.qD)(i,e),...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"margin",e)}},MD=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={color:(0,gs.qD)(t?.searchMenuColorH),background:(0,gs.qD)(t?.searchMenuBackgroundH),...(0,y.a9)(i,e)};return t?.searchMenuTransition&&(o.transition=t?.searchMenuTransition+"s"),o},xD=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,gs.qD)(t?.activeClassColor),background:(0,gs.qD)(t?.activeClassBackground),...(0, | |
| 4064 | -y.qD)(i,e)}},kD=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},vD=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"gap",unitDefaultValue:"px",device:e})};return"grid"===t.gridStyle&&(i.display="grid","Tablet"===e?i["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?i["grid-template-columns"]="repeat(1, 1fr)":t?.gridColumns&&(i["grid-template-columns"]=`repeat(${t.gridColumns}, 1fr)`)),"masonry"===t.gridStyle&&("Tablet"===e?i["column-count"]="2":"Mobile"===e?i["column-count"]="1":t?.gridColumns&&(i["column-count"]=t.gridColumns)),i},_D=(t,e="")=>{let i={};return t?.cardHeight&&"grid"===t.gridStyle&&(i.height=`${t.cardHeight}px`),"masonry"===t.gridStyle&&(i["break-inside"]="avoid",i.width="100%",i={...i,...(0,Ob.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"margin-bottom", | |
| 4065 | -unitDefaultValue:"px",device:e})}),i},RD=(t,e="")=>{const i={...(0,Ob.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},SD=(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,gs.qD)(t?.loadMoreButtonTextColor),background:(0,gs.qD)(t?.loadMoreButtonBackground),...(0,y.qD)(o,e),...(0,H.qD)(t?.moreButtonboxShadow,e),...(0,c.qD)(i,"padding",e),...(0,P.qD)(a,e,l)}},WD=(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,gs.qD)(t?.loadMoreButtonTextColorH), | |
| 4066 | -background:(0,gs.qD)(t?.loadMoreButtonBackgroundH),...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.moreButtonboxShadow,e)}};function UD(t){const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:pD.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(hD,{filterLists:o,layout:p,placeHolder:m}),(0,L.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,L.jsx)("div",{className:"filterable-cards-wrap",children:(0,L.jsx)(C.InnerBlocks.Content,{})}),b&&n<s&&(0,L.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,L.jsx)("span",{"data-filterable-cards-numbers":s, | |
| 4067 | -"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})}UD.propTypes={};const PD={UU:"ablocks/filterable-cards",uK:{block_id:{type:"string"},filterList:{type:"array",default:[{id:0,text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5"},animation:{type:"string",default:"fade-in"},enableFilter:{type:"boolean",default:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},filterButtonColor:{type:"string",default:""},filterButtonColorH:{type:"string",default:""},filterButtonBackground:{type:"string",default:""},filterButtonBackgroundH:{type:"string",default:""},filterButtonTransition:{type:"number",default:0},itemShows:{type:"number",default:6},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:""},searchMenuColorH:{type:"string",default:""},searchMenuBackground:{type:"string", | |
| 4091 | +setAnimationDuration(){this.cardsItems&&this.cardsItems.forEach(t=>{t.style.setProperty("--animation-duration",`${this.animationDuration}ms`)})}init(){this.setAnimationDuration(),this.filterButtons.forEach(t=>t.addEventListener("click",t=>this.handleButtonClick(t))),this.showMoreButton?.addEventListener("click",()=>this.handleShowMoreClick()),this.searchInput?.addEventListener("input",t=>this.handleSearchInput(t)),this.initializeActiveButton(),this.toggleSearchDropdown()}};function ID({filterLists:t,layout:e,placeHolder:i}){const o=t.find(t=>!0===t.isActive);function a(t){return t.map((t,e)=>(0,I.jsx)("li",{"data-category":t.text,className:"filterable-filter-button "+(t.isActive?"filterable-filter-button-active":""),children:t.text},e))}return(0,I.jsx)(I.Fragment,{children:"filter"===e?(0,I.jsx)("ul",{className:"filterable-cards_filter",children:a(t)}):(0,I.jsxs)("div",{className:"filterable-cards-filter-wrap",children:[(0,I.jsxs)("ul",{className:"filterable-cards_filter",children:[(0, | |
| 4092 | +I.jsx)("li",{children:(0,I.jsxs)("button",{className:"filterable-search-toggle-btn",children:[(0,I.jsx)("span",{className:"filterable-search-select",children:o?.text||(0,L.__)("Select Filter","ablocks")}),(0,I.jsx)("span",{children:CD})]})}),(0,I.jsx)("div",{className:"filterable-cards_filter-list-dropdown",children:a(t)})]}),(0,I.jsx)("input",{type:"text",className:"filterable-searchInput",placeholder:i})]})})}function VD(t){const{attributes:e,clientId:i,setAttributes:o}=t,{block_id:n,filterList:s,enableFilter:b,filterableCardsNumbers:c,itemShows:d,loadMoreButton:u,loadMoreButtonText:p,dataPerPageShow:m,noMoreItemsText:h,animation:g,layout:f,searchPlaceHolder:y,searchNotFoundText:T,animationDuration:H}=e,{isDynamicEnabled:x,data:k}=id({attributeValue:p}),{isDynamicEnabled:v,data:_}=id({attributeValue:h}),{isDynamicEnabled:R,data:S}=id({attributeValue:T}),{isDynamicEnabled:W,data:P}=id({attributeValue:y}),U=(0,D.useInnerBlocksProps)({},{template:[["ablocks/filterable-cards-item",{ | |
| 4093 | +dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Latest Gadgets",allowButton:!1,des:"Showcase the latest gadgets with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{},[["ablocks/info-box",{stack:"column",heading:"Creative Designs",allowButton:!1,des:"Showcase creative designs with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]],["ablocks/filterable-cards-item",{dataCategory:"Item 01"},[["ablocks/info-box",{stack:"column",heading:"Healthy Recipes",allowButton:!1,des:"Showcase top destinations with style and precision! Customize visuals and text for an engaging, attention-grabbing display!"}]]]],renderAppender:!1});return o({filterableCardsNumbers:(0,r.select)("core/block-editor").getBlock(i)?.innerBlocks.length||0}),(0,a.useEffect)(()=>{new ND((0,M.bu)(`.ablocks-block-${n}.ablocks-block--filterable-cards`)) | |
| 4094 | +},[n,s,b,c,d,u,p,m,h,g,f,H]),(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(Yb.A,{blockId:n,name:DD.UU,attributes:e,blockProps:{itemShows:d,"data-animation":g,"data-layout":f,"data-duration":H,"data-enableFilter":b},children:[b&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ID,{filterLists:s,layout:f,placeHolder:W?P:y}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:R?S:T})]}),(0,I.jsx)("div",{...U,className:"filterable-cards-wrap"}),u&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":c,"data-per-page":m,"data-no-item-text":v?_:h,"data-more-button-text":x?k:p,className:"filterable-cards-showMore-button",children:x?k:p})}),(0,I.jsxs)("button",{className:"ablocks-filtrable-card-add-button",onClick:()=>{const{insertBlock:t}=wp.data.dispatch("core/block-editor");t(wp.blocks.createBlock("ablocks/filterable-cards-item",{}),void 0,i)},children:[(0,I.jsx)("span",{ | |
| 4095 | +className:"ablocks-icon ablocks-icon--plus"}),(0,L.__)("Add Item","ablocks")]})]})})}VD.propTypes={},VD.defaultProps={};const OD=(t,e="")=>{const i={};return t?.filterAlignment&&(i["justify-content"]=t.filterAlignment),{...i,...(0,Zt.qD)(t?.filterAlignment,"justify-content",e),...(0,Eb.qD)({attributeValue:t.filterButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:8,property:"gap",unitDefaultValue:"px",device:e})}},YD=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonTypography,{weight:"400"}),o=t.filterButtonTypographyGlobal?t.filterButtonTypographyGlobal:"",a=(0,M.Zy)(t.filterButtonBorder,{unitWidth:"px",unitRadius:"px"}),l=(0,M.Zy)(t.filterButtonPadding,{unit:"px"}),n=(0,M.Zy)(t.filterButtonMargin,{unit:"px"});return{color:(0,Hs.qD)(t?.filterButtonColor),background:(0,Hs.qD)(t?.filterButtonBackground),...(0,U.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"padding",e),...(0,c.qD)(n,"margin",e)}},XD=(t,e="")=>{const i=(0,M.Zy)(t.filterButtonBorder,{unitWidthH:"px", | |
| 4096 | +unitRadiusH:"px"}),o={color:(0,Hs.qD)(t?.filterButtonColorH),background:(0,Hs.qD)(t?.filterButtonBackgroundH),...(0,y.a9)(i,e)};return t?.filterButtonTransition&&(o.transition=t?.filterButtonTransition+"s"),o},BD=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidth:"px",unitRadius:"px"}),o=(0,M.Zy)(t?.searchMenuPadding,{unit:"px"}),a=(0,M.Zy)(t?.searchMenuMargin,{unit:"px"});return{color:(0,Hs.qD)(t?.searchMenuColor),background:(0,Hs.qD)(t?.searchMenuBackground),...(0,y.qD)(i,e),...(0,c.qD)(o,"padding",e),...(0,c.qD)(a,"margin",e)}},ED=(t,e="")=>{const i=(0,M.Zy)(t.searchMenuBorder,{unitWidthH:"px",unitRadiusH:"px"}),o={color:(0,Hs.qD)(t?.searchMenuColorH),background:(0,Hs.qD)(t?.searchMenuBackgroundH),...(0,y.a9)(i,e)};return t?.searchMenuTransition&&(o.transition=t?.searchMenuTransition+"s"),o},FD=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,Hs.qD)(t?.activeClassColor),background:(0,Hs.qD)(t?.activeClassBackground),...(0, | |
| 4097 | +y.qD)(i,e)}},qD=(t,e="")=>{const i=(0,M.Zy)(t.activeClassBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e)}},$D=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"gap",unitDefaultValue:"px",device:e})};return"grid"===t.gridStyle&&(i.display="grid","Tablet"===e?i["grid-template-columns"]="repeat(2, 1fr)":"Mobile"===e?i["grid-template-columns"]="repeat(1, 1fr)":t?.gridColumns&&(i["grid-template-columns"]=`repeat(${t.gridColumns}, 1fr)`)),"masonry"===t.gridStyle&&("Tablet"===e?i["column-count"]="2":"Mobile"===e?i["column-count"]="1":t?.gridColumns&&(i["column-count"]=t.gridColumns)),i},GD=(t,e="")=>{let i={};return t?.cardHeight&&"grid"===t.gridStyle&&(i.height=`${t.cardHeight}px`),"masonry"===t.gridStyle&&(i["break-inside"]="avoid",i.width="100%",i={...i,...(0,Eb.qD)({attributeValue:t.itemGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:10,property:"margin-bottom", | |
| 4098 | +unitDefaultValue:"px",device:e})}),i},ZD=(t,e="")=>{const i={...(0,Eb.qD)({attributeValue:t.loadMoreButtonGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:"",property:"margin-top",unitDefaultValue:"px",device:e})};return t?.moreButtonAlignment&&(i["justify-content"]=t?.moreButtonAlignment),i},KD=(t,e="")=>{const i=(0,M.Zy)(t?.moreButtonPadding,{unit:"px"}),o=(0,M.Zy)(t.moreButtonBorder,{unitWidth:"px",unitRadius:"px"}),a=(0,M.Zy)(t.moreButtonTypography,{weight:"400"}),l=t.moreButtonTypographyGlobal?t.moreButtonTypographyGlobal:"";return{color:(0,Hs.qD)(t?.loadMoreButtonTextColor),background:(0,Hs.qD)(t?.loadMoreButtonBackground),...(0,y.qD)(o,e),...(0,H.qD)(t?.moreButtonboxShadow,e),...(0,c.qD)(i,"padding",e),...(0,U.qD)(a,e,l)}},JD=(t,e="")=>{const i={};t.loadMoreButtonTransition&&(i["transition-duration"]=`${t.loadMoreButtonTransition}s`);const o=(0,M.Zy)(t.moreButtonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,Hs.qD)(t?.loadMoreButtonTextColorH), | |
| 4099 | +background:(0,Hs.qD)(t?.loadMoreButtonBackgroundH),...i,...(0,y.a9)(o,e),...(0,H.a9)(t?.moreButtonboxShadow,e)}};function QD(t){const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(sc,{blockId:i,name:DD.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ID,{filterLists:o,layout:p,placeHolder:m}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,I.jsx)("div",{className:"filterable-cards-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),b&&n<s&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":s, | |
| 4100 | +"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})}QD.propTypes={};const tN={UU:"ablocks/filterable-cards",uK:{block_id:{type:"string"},filterList:{type:"array",default:[{id:0,text:"All",isActive:!0},{id:1,text:"Item 01",isActive:!1}]},filterableCardsNumbers:{type:"number",default:"5"},animation:{type:"string",default:"fade-in"},enableFilter:{type:"boolean",default:!0},layout:{type:"string",default:"filter"},searchNotFoundText:{type:"string",default:"No items Found"},filterButtonColor:{type:"string",default:""},filterButtonColorH:{type:"string",default:""},filterButtonBackground:{type:"string",default:""},filterButtonBackgroundH:{type:"string",default:""},filterButtonTransition:{type:"number",default:0},itemShows:{type:"number",default:6},gridStyle:{type:"string",default:"grid"},searchMenuColor:{type:"string",default:""},searchMenuColorH:{type:"string",default:""},searchMenuBackground:{type:"string", | |
| 4068 | 4101 | default:""},searchMenuBackgroundH:{type:"string",default:""},searchMenuTransition:{type:"string",default:""},searchPlaceHolder:{type:"string",default:"Search..."},gridColumns:{type:"number",default:2},cardHeight:{type:"number"},activeClassColor:{type:"string",default:"#fff"},activeClassBackground:{type:"string",default:"#13191B"},moreButtonAlignment:{type:"string",default:"center"},loadMoreButton:{type:"boolean",default:!1},loadMoreButtonText:{type:"string",default:"Show More"},loadMoreButtonTextColor:{type:"string",default:"#fff",copyStyle:!0},loadMoreButtonTextColorH:{type:"string",default:"#fff ",copyStyle:!0},loadMoreButtonBackground:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonBackgroundH:{type:"string",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{type:"number",default:"",copyStyle:!0},dataPerPageShow:{type:"number",default:"6"},noMoreItemsText:{type:"string",default:"No More Items !"},filterButtonTypography:{type:"object",default:{fontFamily:"", |
| 4069 | 4102 | weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},filterButtonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"", |
| 4070 | 4103 | 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:"", |
| 4071 | 4104 | commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},activeClassBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"", |
| @@ -4082,42 +4115,42 @@ | ||
| 4082 | 4115 | 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:"", |
| 4083 | 4116 | 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:"", |
| 4084 | 4117 | 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", |
| 4085 | 4118 | 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", |
| 4086 | -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 jD(t){ | |
| 4087 | -const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:PD.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(hD,{filterLists:o,layout:p,placeHolder:m}),(0,L.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,L.jsx)("div",{className:"filterable-cards-wrap",children:(0,L.jsx)(C.InnerBlocks.Content,{})}),b&&n<s&&(0,L.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,L.jsx)("span",{"data-filterable-cards-numbers":s,"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})} | |
| 4088 | -function wD(t){const{attributes:e,setAttributes:i,clientId:o}=t,{dataCategory:a}=e,n=(0,r.useSelect)(t=>{const{getBlock:e,getBlockParents:i}=t("core/block-editor"),a=i(o);if(!a.length)return null;for(const t of a){const i=e(t);if("ablocks/filterable-cards"===i?.name)return i.attributes}return null},[o]),s=n?.filterList&&Array.isArray(n.filterList)?n.filterList.map(t=>({label:t.text||"all",value:t.text||""})):[];return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Filterable Blocks Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:o})]})})}),(0, | |
| 4089 | -L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{title:(0,z.__)("Filterable Controls","ablocks"),initialOpen:!0,children:(0,L.jsx)(Ut,{min:0,label:(0,z.__)("Control Name","ablocks"),attributeName:"dataCategory",options:s,attributeValue:a,setAttributes:i})})})})]})}jD.propTypes={},(0,M.xV)(pD.UU)&&(0,o.registerBlockType)(pD.UU,{title:(0,z.__)("Filterable Cards","ablocks"),attributes:pD.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--filterable-card"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 4090 | -null===t?"":(t.addClassStyles("{{WRAPPER}} .filterable-cards_filter , {{WRAPPER}} .filterable-cards-filter-wrap",fD(i),fD(i,"Tablet"),fD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button",yD(i),yD(i,"Tablet"),yD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button:hover",TD(i),TD(i,"Tablet"),TD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn ,{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",HD(i),HD(i,"Tablet"),HD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn:hover , {{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",MD(i),MD(i,"Tablet"),MD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput::placeholder ",(t=>({color:(0,gs.qD)(t?.searchMenuColor)}))(i)), | |
| 4091 | -t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active",xD(i),xD(i,"Tablet"),xD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active:hover",kD(i),kD(i,"Tablet"),kD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap",vD(i),vD(i,"Tablet"),vD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap > .ablocks-block--filterable-cards-item",_D(i),_D(i,"Tablet"),_D(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards-load-more-wrapper",RD(i),RD(i,"Tablet"),RD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button",SD(i),SD(i,"Tablet"),SD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button:hover",WD(i),WD(i,"Tablet"),WD(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(uD,{...t}),(0,L.jsx)(gD,{...t})]})},save:UD, | |
| 4092 | -deprecated:[{attributes:PD.uK,save:jD}]}),wD.propTypes={};const zD={UU:"ablocks/filterable-cards-item",$t:["ablocks/filterable-cards"],uK:{block_id:{type:"string"},dataCategory:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 4093 | -customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 4094 | -isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", | |
| 4095 | -hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 4096 | -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:"", | |
| 4097 | -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:"", | |
| 4098 | -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", | |
| 4099 | -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, | |
| 4100 | -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 CD(t){const{attributes:e}=t,{block_id:i,dataCategory:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:zD.UU,attributes:e,blockProps:{"data-category":o},children:(0,L.jsx)(C.InnerBlocks,{template:[["ablocks/info-box",{stack:"column",heading:"Demo Title 01",allowButton:!1}]],templateLock:!1})})})}function AD(t){const{attributes:e}=t,{block_id:i,dataCategory:o}=e,a=o?o.toLowerCase():"";return(0,L.jsx)(l().Fragment,{children:(0, | |
| 4101 | -L.jsx)(eR,{blockId:i,name:zD.UU,attributes:e,blockProps:{"data-category":a},children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}CD.propTypes={},AD.propTypes={},(0,M.xV)(zD.UU,zD.$t[0])&&(0,o.registerBlockType)(zD.UU,{title:(0,z.__)("Filterable Card","ablocks"),attributes:zD.uK,icon:(0,L.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd", | |
| 4102 | -d:"M14.0369 3.37184C14.0369 2.81302 14.4899 2.36 15.0487 2.36H21.6381C22.197 2.36 22.65 2.81303 22.65 3.37184V4.41446C22.65 4.71472 22.5166 4.99951 22.2859 5.19177L20.1399 6.98009L19.7872 9.4234C19.7398 9.75139 19.5349 10.0353 19.2387 10.1836L18.3167 10.6451C17.687 10.9603 16.9359 10.5519 16.8582 9.85206L16.5383 6.97285L14.401 5.19177C14.1703 4.99953 14.0369 4.71475 14.0369 4.41446V3.37184ZM15.2369 3.56H21.45V4.32633L19.3162 6.10446C19.1242 6.26448 18.9982 6.4899 18.9625 6.73714L18.6135 9.15463L18.021 9.45121L17.7226 6.76506C17.6937 6.50528 17.5654 6.26681 17.3647 6.09952L15.2369 4.32633V3.56Z",fill:"#13191B"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd", | |
| 4103 | -d:"M3.84811 7.25628C3.24163 7.25628 2.74998 7.74793 2.74998 8.35441V19.1432C2.74998 19.7497 3.24162 20.2413 3.84811 20.2413H18.2332C18.8397 20.2413 19.3313 19.7497 19.3313 19.1432V13.2993C19.3313 12.9127 19.6447 12.5993 20.0313 12.5993C20.4179 12.5993 20.7313 12.9127 20.7313 13.2993V19.1432C20.7313 20.5229 19.6129 21.6413 18.2332 21.6413H3.84811C2.46843 21.6413 1.34998 20.5229 1.34998 19.1432V8.35441C1.34998 6.97473 2.46843 5.85628 3.84811 5.85628H12.3892C12.7758 5.85628 13.0892 6.16968 13.0892 6.55628C13.0892 6.94288 12.7758 7.25628 12.3892 7.25628H3.84811Z",fill:"#13191B"}),(0,L.jsx)("path",{d:"M13.0635 10.6021C13.0635 11.5952 12.2584 12.4002 11.2653 12.4002C10.2722 12.4002 9.46719 11.5952 9.46719 10.6021C9.46719 9.60899 10.2722 8.80394 11.2653 8.80394C12.2584 8.80394 13.0635 9.60899 13.0635 10.6021Z",fill:"#13191B"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd", | |
| 4104 | -d:"M4.97186 14.8726C4.97186 14.5002 5.27376 14.1983 5.64616 14.1983H16.435C16.8074 14.1983 17.1093 14.5002 17.1093 14.8726C17.1093 15.245 16.8074 15.5469 16.435 15.5469H5.64616C5.27376 15.5469 4.97186 15.245 4.97186 14.8726Z",fill:"#13191B"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.3204 18.0194C6.3204 17.647 6.63819 17.3451 7.03019 17.3451H14.6013C14.9933 17.3451 15.3111 17.647 15.3111 18.0194C15.3111 18.3918 14.9933 18.6937 14.6013 18.6937H7.03019C6.63819 18.6937 6.3204 18.3918 6.3204 18.0194Z",fill:"#13191B"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new j(i,l).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(wD,{...t}),(0,L.jsx)(CD,{...t})]})},save:AD});var LD=i(68267);const DD=[{label:(0,z.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0, | |
| 4105 | -z.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,z.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,z.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],ND=[{label:(0,z.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,z.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,z.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],ID=((0,z.__)("Checkout","ablocks"),(0,z.__)("Donation","ablocks"),(0,z.__)("Subscription","ablocks"),[{label:(0,z.__)("USD","ablocks"),value:"USD"},{label:(0,z.__)("AED","ablocks"),value:"AED"},{label:(0,z.__)("AFN*","ablocks"),value:"AFN"},{label:(0,z.__)("ALL","ablocks"),value:"ALL"},{label:(0,z.__)("AMD","ablocks"),value:"AMD"},{label:(0,z.__)("ANG","ablocks"),value:"ANG"},{label:(0,z.__)("AOA*","ablocks"),value:"AOA"},{label:(0,z.__)("ARS*","ablocks"),value:"ARS"},{label:(0,z.__)("AUD","ablocks"),value:"AUD"},{label:(0, | |
| 4106 | -z.__)("AWG","ablocks"),value:"AWG"},{label:(0,z.__)("AZN","ablocks"),value:"AZN"},{label:(0,z.__)("BAM","ablocks"),value:"BAM"},{label:(0,z.__)("BBD","ablocks"),value:"BBD"},{label:(0,z.__)("BDT","ablocks"),value:"BDT"},{label:(0,z.__)("BGN","ablocks"),value:"BGN"},{label:(0,z.__)("BIF","ablocks"),value:"BIF"},{label:(0,z.__)("BMD","ablocks"),value:"BMD"},{label:(0,z.__)("BND","ablocks"),value:"BND"},{label:(0,z.__)("BOB*","ablocks"),value:"BOB"},{label:(0,z.__)("BRL*","ablocks"),value:"BRL"},{label:(0,z.__)("BSD","ablocks"),value:"BSD"},{label:(0,z.__)("BWP","ablocks"),value:"BWP"},{label:(0,z.__)("BYN","ablocks"),value:"BYN"},{label:(0,z.__)("BZD","ablocks"),value:"BZD"},{label:(0,z.__)("CAD","ablocks"),value:"CAD"},{label:(0,z.__)("CDF","ablocks"),value:"CDF"},{label:(0,z.__)("CHF","ablocks"),value:"CHF"},{label:(0,z.__)("CLP*","ablocks"),value:"CLP"},{label:(0,z.__)("CNY","ablocks"),value:"CNY"},{label:(0,z.__)("COP*","ablocks"),value:"COP"},{label:(0,z.__)("CRC*","ablocks"), | |
| 4107 | -value:"CRC"},{label:(0,z.__)("CVE*","ablocks"),value:"CVE"},{label:(0,z.__)("CZK","ablocks"),value:"CZK"},{label:(0,z.__)("DJF*","ablocks"),value:"DJF"},{label:(0,z.__)("DKK","ablocks"),value:"DKK"},{label:(0,z.__)("DOP","ablocks"),value:"DOP"},{label:(0,z.__)("DZD","ablocks"),value:"DZD"},{label:(0,z.__)("EGP","ablocks"),value:"EGP"},{label:(0,z.__)("ETB","ablocks"),value:"ETB"},{label:(0,z.__)("EUR","ablocks"),value:"EUR"},{label:(0,z.__)("FJD","ablocks"),value:"FJD"},{label:(0,z.__)("FKP*","ablocks"),value:"FKP"},{label:(0,z.__)("GBP","ablocks"),value:"GBP"},{label:(0,z.__)("GEL","ablocks"),value:"GEL"},{label:(0,z.__)("GIP","ablocks"),value:"GIP"},{label:(0,z.__)("GMD","ablocks"),value:"GMD"},{label:(0,z.__)("GNF*","ablocks"),value:"GNF"},{label:(0,z.__)("GTQ*","ablocks"),value:"GTQ"},{label:(0,z.__)("GYD","ablocks"),value:"GYD"},{label:(0,z.__)("HKD","ablocks"),value:"HKD"},{label:(0,z.__)("HNL*","ablocks"),value:"HNL"},{label:(0,z.__)("HTG","ablocks"),value:"HTG"},{label:(0, | |
| 4108 | -z.__)("HUF","ablocks"),value:"HUF"},{label:(0,z.__)("IDR","ablocks"),value:"IDR"},{label:(0,z.__)("ILS","ablocks"),value:"ILS"},{label:(0,z.__)("INR","ablocks"),value:"INR"},{label:(0,z.__)("ISK","ablocks"),value:"ISK"},{label:(0,z.__)("JMD","ablocks"),value:"JMD"},{label:(0,z.__)("JPY","ablocks"),value:"JPY"},{label:(0,z.__)("KES","ablocks"),value:"KES"},{label:(0,z.__)("KGS","ablocks"),value:"KGS"},{label:(0,z.__)("KHR","ablocks"),value:"KHR"},{label:(0,z.__)("KMF","ablocks"),value:"KMF"},{label:(0,z.__)("KRW","ablocks"),value:"KRW"},{label:(0,z.__)("KYD","ablocks"),value:"KYD"},{label:(0,z.__)("KZT","ablocks"),value:"KZT"},{label:(0,z.__)("LAK*","ablocks"),value:"LAK"},{label:(0,z.__)("LBP","ablocks"),value:"LBP"},{label:(0,z.__)("LKR","ablocks"),value:"LKR"},{label:(0,z.__)("LRD","ablocks"),value:"LRD"},{label:(0,z.__)("LSL","ablocks"),value:"LSL"},{label:(0,z.__)("MAD","ablocks"),value:"MAD"},{label:(0,z.__)("MDL","ablocks"),value:"MDL"},{label:(0,z.__)("MGA","ablocks"), | |
| 4109 | -value:"MGA"},{label:(0,z.__)("MKD","ablocks"),value:"MKD"},{label:(0,z.__)("MMK","ablocks"),value:"MMK"},{label:(0,z.__)("MNT","ablocks"),value:"MNT"},{label:(0,z.__)("MOP","ablocks"),value:"MOP"},{label:(0,z.__)("MUR*","ablocks"),value:"MUR"},{label:(0,z.__)("MVR","ablocks"),value:"MVR"},{label:(0,z.__)("MWK","ablocks"),value:"MWK"},{label:(0,z.__)("MXN","ablocks"),value:"MXN"},{label:(0,z.__)("MYR","ablocks"),value:"MYR"},{label:(0,z.__)("MZN","ablocks"),value:"MZN"},{label:(0,z.__)("NAD","ablocks"),value:"NAD"},{label:(0,z.__)("NGN","ablocks"),value:"NGN"},{label:(0,z.__)("NIO*","ablocks"),value:"NIO"},{label:(0,z.__)("NOK","ablocks"),value:"NOK"},{label:(0,z.__)("NPR","ablocks"),value:"NPR"},{label:(0,z.__)("NZD","ablocks"),value:"NZD"},{label:(0,z.__)("PAB*","ablocks"),value:"PAB"},{label:(0,z.__)("PEN*","ablocks"),value:"PEN"},{label:(0,z.__)("PGK","ablocks"),value:"PGK"},{label:(0,z.__)("PHP","ablocks"),value:"PHP"},{label:(0,z.__)("PKR","ablocks"),value:"PKR"},{label:(0, | |
| 4110 | -z.__)("PLN","ablocks"),value:"PLN"},{label:(0,z.__)("PYG*","ablocks"),value:"PYG"},{label:(0,z.__)("QAR","ablocks"),value:"QAR"},{label:(0,z.__)("RON","ablocks"),value:"RON"},{label:(0,z.__)("RSD","ablocks"),value:"RSD"},{label:(0,z.__)("RUB","ablocks"),value:"RUB"},{label:(0,z.__)("RWF","ablocks"),value:"RWF"},{label:(0,z.__)("SAR","ablocks"),value:"SAR"},{label:(0,z.__)("SBD","ablocks"),value:"SBD"},{label:(0,z.__)("SCR","ablocks"),value:"SCR"},{label:(0,z.__)("SEK","ablocks"),value:"SEK"},{label:(0,z.__)("SGD","ablocks"),value:"SGD"},{label:(0,z.__)("SHP*","ablocks"),value:"SHP"},{label:(0,z.__)("SLE","ablocks"),value:"SLE"},{label:(0,z.__)("SOS","ablocks"),value:"SOS"},{label:(0,z.__)("SRD*","ablocks"),value:"SRD"},{label:(0,z.__)("STD*","ablocks"),value:"STD"},{label:(0,z.__)("SZL","ablocks"),value:"SZL"},{label:(0,z.__)("THB","ablocks"),value:"THB"},{label:(0,z.__)("TJS","ablocks"),value:"TJS"},{label:(0,z.__)("TOP","ablocks"),value:"TOP"},{label:(0,z.__)("TRY","ablocks"), | |
| 4111 | -value:"TRY"},{label:(0,z.__)("TTD","ablocks"),value:"TTD"},{label:(0,z.__)("TWD","ablocks"),value:"TWD"},{label:(0,z.__)("TZS","ablocks"),value:"TZS"},{label:(0,z.__)("UAH","ablocks"),value:"UAH"},{label:(0,z.__)("UGX","ablocks"),value:"UGX"},{label:(0,z.__)("UYU*","ablocks"),value:"UYU"},{label:(0,z.__)("UZS","ablocks"),value:"UZS"},{label:(0,z.__)("VND","ablocks"),value:"VND"},{label:(0,z.__)("VUV","ablocks"),value:"VUV"},{label:(0,z.__)("WST","ablocks"),value:"WST"},{label:(0,z.__)("XAF","ablocks"),value:"XAF"},{label:(0,z.__)("XCD","ablocks"),value:"XCD"},{label:(0,z.__)("XOF*","ablocks"),value:"XOF"},{label:(0,z.__)("XPF*","ablocks"),value:"XPF"},{label:(0,z.__)("YER","ablocks"),value:"YER"},{label:(0,z.__)("ZAR","ablocks"),value:"ZAR"},{label:(0,z.__)("ZMW","ablocks"),value:"ZMW"}]);function VD(t){ | |
| 4112 | -const{attributes:e,setAttributes:i}=t,{buttonType:o,text:n,position:s,alignment:r,buttonSize:b,textShadow:c,typography:d,textColor:u,textColorH:p,background:m,backgroundH:h,padding:g,iconPosition:f,showIcon:y,iconSpace:T,stripeApi:H,itemName:x,price:k,currency:v,quantity:_,shippingPrice:R,hasTax:S,tax:W,taxId:U,redirectionAfterPayment:P,openInNewTab:j,customMessage:w,errorMessage:D}=e;return(0,a.useEffect)(()=>{H?(0,M.In)({action:"ablocks/stripe_get_tax_rates",api_key:H}).then(t=>{if(t.data.success){const e=t?.data?.data.data;if(e.length>0){const t=e.map(t=>({label:t.display_name,value:t.id}));i({tax:t})}else i({tax:[{label:(0,z.__)("No tax found.","ablocks"),value:""}]})}else i({tax:[{label:(0,z.__)("No tax found.","ablocks"),value:""}]})}):i({tax:[{label:(0,z.__)("No tax found.","ablocks"),value:""}]})},[H,S]),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i, | |
| 4113 | -docs_url:"https://ablocks.pro/docs/ablocks-stripe-button-block/",children:[(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Pricing & Payments","ablocks"),initialOpen:!0,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Stripe API","ablocks"),attributeName:"stripeApi",attributeValue:H,setAttributes:i,placeholder:"",isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ql,{label:(0,z.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:x,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(js,{label:(0,z.__)("Product Price","ablocks"),attributeName:"price",attributeValue:k,setAttributes:i,isInline:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Currency","ablocks"),options:ID,isResponsive:!1,attributeValue:v||"usd",attributeName:"currency",setAttributes:i}),(0,L.jsx)("div",{className:"ablocks-stripe-settings-msg",children:(0,z.__)("Currencies marked with * are not supported by American Express.","ablocks")}),(0,L.jsx)(js,{label:(0, | |
| 4114 | -z.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:_,setAttributes:i,isInline:!0}),(0,L.jsx)(js,{label:(0,z.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:R,setAttributes:i,isInline:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Add Tax","ablocks"),attributeValue:S,setAttributes:i,attributeName:"hasTax",isResponsive:!1}),S&&(0,L.jsx)(Ut,{label:(0,z.__)("Select Tax","ablocks"),options:W,isResponsive:!1,attributeValue:U,attributeName:"taxId",setAttributes:i})]})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Button","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:DD,isInline:!1}),"stretch"===s?.value&&(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:ND,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),options:[{label:(0, | |
| 4115 | -z.__)("Default","ablocks"),value:"#635bff"},{label:(0,z.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,z.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,z.__)("Success","ablocks"),value:"#198754"},{label:(0,z.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,z.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:o||"Primary",attributeName:"buttonType",setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"text",attributeValue:n,setAttributes:i,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),options:[{label:(0,z.__)("Extra small","ablocks"),value:"xs"},{label:(0,z.__)("Small","ablocks"),value:"sm"},{label:(0,z.__)("Medium","ablocks"),value:"md"},{label:(0,z.__)("Large","ablocks"),value:"lg"},{label:(0,z.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:b||"sm",attributeName:"buttonSize",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:y,setAttributes:i, | |
| 4116 | -attributeName:"showIcon",isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u||"#000000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:m||"#ddd",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0, | |
| 4117 | -attributeName:"backgroundH",attributeValue:h,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),y&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0, | |
| 4118 | -z.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Icon position","ablocks"),options:[{label:(0,z.__)("Before","ablocks"),value:"left"},{label:(0,z.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:T,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:LD.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Ub,{label:(0,z.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:P,setAttributes:i, | |
| 4119 | -placeholder:"https://ablocks.pro/",isInline:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Open in New Tab","ablocks"),attributeValue:j,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Custom Message","ablocks"),attributeValue:w,setAttributes:i,attributeName:"customMessage",isResponsive:!1}),w&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:D,setAttributes:i,isInline:!1})})]})]})})})}(0,z.__)("Daily","ablocks"),(0,z.__)("Weekly","ablocks"),(0,z.__)("Monthly","ablocks"),(0,z.__)("Yearly","ablocks"),VD.propTypes={};const OD={UU:"ablocks/stripe-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},postId:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#635bff"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""}, | |
| 4119 | +xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function eN(t){ | |
| 4120 | +const{attributes:e}=t,{block_id:i,filterList:o,enableFilter:a,itemShows:n,filterableCardsNumbers:s,loadMoreButtonText:r,loadMoreButton:b,dataPerPageShow:c,noMoreItemsText:d,animation:u,layout:p,searchPlaceHolder:m,searchNotFoundText:h,animationDuration:g}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsxs)(hc,{blockId:i,name:tN.UU,attributes:e,blockProps:{itemShows:n,"data-animation":u,"data-layout":p,"data-duration":g,"data-enableFilter":a},children:[a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ID,{filterLists:o,layout:p,placeHolder:m}),(0,I.jsx)("span",{className:"filterable-search-item-not-found-text",children:h})]}),(0,I.jsx)("div",{className:"filterable-cards-wrap",children:(0,I.jsx)(D.InnerBlocks.Content,{})}),b&&n<s&&(0,I.jsx)("div",{className:"filterable-cards-load-more-wrapper",children:(0,I.jsx)("span",{"data-filterable-cards-numbers":s,"data-per-page":c,"data-no-item-text":d,"data-more-button-text":r,className:"filterable-cards-showMore-button",children:r})})]})})} | |
| 4121 | +function iN(t){const{attributes:e,setAttributes:i,clientId:o}=t,{dataCategory:a}=e,n=(0,r.useSelect)(t=>{const{getBlock:e,getBlockParents:i}=t("core/block-editor"),a=i(o);if(!a.length)return null;for(const t of a){const i=e(t);if("ablocks/filterable-cards"===i?.name)return i.attributes}return null},[o]),s=n?.filterList&&Array.isArray(n.filterList)?n.filterList.map(t=>({label:t.text||"all",value:t.text||""})):[];return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(V,{children:(0,I.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,I.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,I.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,L.__)("Explore Filterable Blocks Options","ablocks")}),(0,I.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,L.__)("Access the Filterable block setting to customize menus for easy navigation.","ablocks")})]}),(0,I.jsx)(jb,{clientId:o})]})})}),(0, | |
| 4122 | +I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:i,children:(0,I.jsx)(V,{title:(0,L.__)("Filterable Controls","ablocks"),initialOpen:!0,children:(0,I.jsx)(Ut,{min:0,label:(0,L.__)("Control Name","ablocks"),attributeName:"dataCategory",options:s,attributeValue:a,setAttributes:i})})})})]})}eN.propTypes={},(0,M.xV)(DD.UU)&&(0,o.registerBlockType)(DD.UU,{title:(0,L.__)("Filterable Cards","ablocks"),attributes:DD.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--filterable-card"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{} | |
| 4123 | +;return t.addClassStyles("{{WRAPPER}} .filterable-cards_filter , {{WRAPPER}} .filterable-cards-filter-wrap",OD(i),OD(i,"Tablet"),OD(i,"Mobile"),e(t=>OD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button",YD(i),YD(i,"Tablet"),YD(i,"Mobile"),e(t=>YD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button:hover",XD(i),XD(i,"Tablet"),XD(i,"Mobile"),e(t=>XD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn ,{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",BD(i),BD(i,"Tablet"),BD(i,"Mobile"),e(t=>BD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-search-toggle-btn:hover , {{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput",ED(i),ED(i,"Tablet"),ED(i,"Mobile"),e(t=>ED(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-filter-wrap .filterable-searchInput::placeholder ",(t=>({color:(0,Hs.qD)(t?.searchMenuColor)}))(i)), | |
| 4124 | +t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active",FD(i),FD(i,"Tablet"),FD(i,"Mobile"),e(t=>FD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards_filter .filterable-filter-button.filterable-filter-button-active:hover",qD(i),qD(i,"Tablet"),qD(i,"Mobile"),e(t=>qD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap",$D(i),$D(i,"Tablet"),$D(i,"Mobile"),e(t=>$D(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-wrap > .ablocks-block--filterable-cards-item",GD(i),GD(i,"Tablet"),GD(i,"Mobile"),e(t=>GD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-load-more-wrapper",ZD(i),ZD(i,"Tablet"),ZD(i,"Mobile"),e(t=>ZD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button",KD(i),KD(i,"Tablet"),KD(i,"Mobile"),e(t=>KD(i,t))),t.addClassStyles("{{WRAPPER}} .filterable-cards-showMore-button:hover",JD(i),JD(i,"Tablet"),JD(i,"Mobile"),e(t=>JD(i,t))),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{ | |
| 4125 | +children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(LD,{...t}),(0,I.jsx)(VD,{...t})]})},save:QD,deprecated:[{attributes:tN.uK,save:eN}]}),iN.propTypes={};const oN={UU:"ablocks/filterable-cards-item",$t:["ablocks/filterable-cards"],uK:{block_id:{type:"string"},dataCategory:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"", | |
| 4126 | +widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 4127 | +unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"", | |
| 4128 | +positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 4129 | +imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"", | |
| 4130 | +vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"", | |
| 4131 | +xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{ | |
| 4132 | +type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}}, | |
| 4133 | +_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function aN(t){const{attributes:e}=t,{block_id:i,dataCategory:o}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(tP,{blockId:i,name:oN.UU,attributes:e,blockProps:{"data-category":o},children:(0,I.jsx)(D.InnerBlocks,{template:[["ablocks/info-box",{stack:"column",heading:"Demo Title 01",allowButton:!1}]],templateLock:!1})})})}function lN(t){ | |
| 4134 | +const{attributes:e}=t,{block_id:i,dataCategory:o}=e,a=o?o.toLowerCase():"";return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(dR,{blockId:i,name:oN.UU,attributes:e,blockProps:{"data-category":a},children:(0,I.jsx)(D.InnerBlocks.Content,{})})})}aN.propTypes={},lN.propTypes={},(0,M.xV)(oN.UU,oN.$t[0])&&(0,o.registerBlockType)(oN.UU,{title:(0,L.__)("Filterable Card","ablocks"),attributes:oN.uK,icon:(0,I.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd", | |
| 4135 | +d:"M14.0369 3.37184C14.0369 2.81302 14.4899 2.36 15.0487 2.36H21.6381C22.197 2.36 22.65 2.81303 22.65 3.37184V4.41446C22.65 4.71472 22.5166 4.99951 22.2859 5.19177L20.1399 6.98009L19.7872 9.4234C19.7398 9.75139 19.5349 10.0353 19.2387 10.1836L18.3167 10.6451C17.687 10.9603 16.9359 10.5519 16.8582 9.85206L16.5383 6.97285L14.401 5.19177C14.1703 4.99953 14.0369 4.71475 14.0369 4.41446V3.37184ZM15.2369 3.56H21.45V4.32633L19.3162 6.10446C19.1242 6.26448 18.9982 6.4899 18.9625 6.73714L18.6135 9.15463L18.021 9.45121L17.7226 6.76506C17.6937 6.50528 17.5654 6.26681 17.3647 6.09952L15.2369 4.32633V3.56Z",fill:"#13191B"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd", | |
| 4136 | +d:"M3.84811 7.25628C3.24163 7.25628 2.74998 7.74793 2.74998 8.35441V19.1432C2.74998 19.7497 3.24162 20.2413 3.84811 20.2413H18.2332C18.8397 20.2413 19.3313 19.7497 19.3313 19.1432V13.2993C19.3313 12.9127 19.6447 12.5993 20.0313 12.5993C20.4179 12.5993 20.7313 12.9127 20.7313 13.2993V19.1432C20.7313 20.5229 19.6129 21.6413 18.2332 21.6413H3.84811C2.46843 21.6413 1.34998 20.5229 1.34998 19.1432V8.35441C1.34998 6.97473 2.46843 5.85628 3.84811 5.85628H12.3892C12.7758 5.85628 13.0892 6.16968 13.0892 6.55628C13.0892 6.94288 12.7758 7.25628 12.3892 7.25628H3.84811Z",fill:"#13191B"}),(0,I.jsx)("path",{d:"M13.0635 10.6021C13.0635 11.5952 12.2584 12.4002 11.2653 12.4002C10.2722 12.4002 9.46719 11.5952 9.46719 10.6021C9.46719 9.60899 10.2722 8.80394 11.2653 8.80394C12.2584 8.80394 13.0635 9.60899 13.0635 10.6021Z",fill:"#13191B"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd", | |
| 4137 | +d:"M4.97186 14.8726C4.97186 14.5002 5.27376 14.1983 5.64616 14.1983H16.435C16.8074 14.1983 17.1093 14.5002 17.1093 14.8726C17.1093 15.245 16.8074 15.5469 16.435 15.5469H5.64616C5.27376 15.5469 4.97186 15.245 4.97186 14.8726Z",fill:"#13191B"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.3204 18.0194C6.3204 17.647 6.63819 17.3451 7.03019 17.3451H14.6013C14.9933 17.3451 15.3111 17.647 15.3111 18.0194C15.3111 18.3918 14.9933 18.6937 14.6013 18.6937H7.03019C6.63819 18.6937 6.3204 18.3918 6.3204 18.0194Z",fill:"#13191B"})]}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>new C(i,l).generateCSS(),[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(iN,{...t}),(0,I.jsx)(aN,{...t})]})},save:lN});var nN=i(68267);const sN=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0, | |
| 4138 | +L.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],rN=[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,L.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],bN=((0,L.__)("Checkout","ablocks"),(0,L.__)("Donation","ablocks"),(0,L.__)("Subscription","ablocks"),[{label:(0,L.__)("USD","ablocks"),value:"USD"},{label:(0,L.__)("AED","ablocks"),value:"AED"},{label:(0,L.__)("AFN*","ablocks"),value:"AFN"},{label:(0,L.__)("ALL","ablocks"),value:"ALL"},{label:(0,L.__)("AMD","ablocks"),value:"AMD"},{label:(0,L.__)("ANG","ablocks"),value:"ANG"},{label:(0,L.__)("AOA*","ablocks"),value:"AOA"},{label:(0,L.__)("ARS*","ablocks"),value:"ARS"},{label:(0,L.__)("AUD","ablocks"),value:"AUD"},{label:(0, | |
| 4139 | +L.__)("AWG","ablocks"),value:"AWG"},{label:(0,L.__)("AZN","ablocks"),value:"AZN"},{label:(0,L.__)("BAM","ablocks"),value:"BAM"},{label:(0,L.__)("BBD","ablocks"),value:"BBD"},{label:(0,L.__)("BDT","ablocks"),value:"BDT"},{label:(0,L.__)("BGN","ablocks"),value:"BGN"},{label:(0,L.__)("BIF","ablocks"),value:"BIF"},{label:(0,L.__)("BMD","ablocks"),value:"BMD"},{label:(0,L.__)("BND","ablocks"),value:"BND"},{label:(0,L.__)("BOB*","ablocks"),value:"BOB"},{label:(0,L.__)("BRL*","ablocks"),value:"BRL"},{label:(0,L.__)("BSD","ablocks"),value:"BSD"},{label:(0,L.__)("BWP","ablocks"),value:"BWP"},{label:(0,L.__)("BYN","ablocks"),value:"BYN"},{label:(0,L.__)("BZD","ablocks"),value:"BZD"},{label:(0,L.__)("CAD","ablocks"),value:"CAD"},{label:(0,L.__)("CDF","ablocks"),value:"CDF"},{label:(0,L.__)("CHF","ablocks"),value:"CHF"},{label:(0,L.__)("CLP*","ablocks"),value:"CLP"},{label:(0,L.__)("CNY","ablocks"),value:"CNY"},{label:(0,L.__)("COP*","ablocks"),value:"COP"},{label:(0,L.__)("CRC*","ablocks"), | |
| 4140 | +value:"CRC"},{label:(0,L.__)("CVE*","ablocks"),value:"CVE"},{label:(0,L.__)("CZK","ablocks"),value:"CZK"},{label:(0,L.__)("DJF*","ablocks"),value:"DJF"},{label:(0,L.__)("DKK","ablocks"),value:"DKK"},{label:(0,L.__)("DOP","ablocks"),value:"DOP"},{label:(0,L.__)("DZD","ablocks"),value:"DZD"},{label:(0,L.__)("EGP","ablocks"),value:"EGP"},{label:(0,L.__)("ETB","ablocks"),value:"ETB"},{label:(0,L.__)("EUR","ablocks"),value:"EUR"},{label:(0,L.__)("FJD","ablocks"),value:"FJD"},{label:(0,L.__)("FKP*","ablocks"),value:"FKP"},{label:(0,L.__)("GBP","ablocks"),value:"GBP"},{label:(0,L.__)("GEL","ablocks"),value:"GEL"},{label:(0,L.__)("GIP","ablocks"),value:"GIP"},{label:(0,L.__)("GMD","ablocks"),value:"GMD"},{label:(0,L.__)("GNF*","ablocks"),value:"GNF"},{label:(0,L.__)("GTQ*","ablocks"),value:"GTQ"},{label:(0,L.__)("GYD","ablocks"),value:"GYD"},{label:(0,L.__)("HKD","ablocks"),value:"HKD"},{label:(0,L.__)("HNL*","ablocks"),value:"HNL"},{label:(0,L.__)("HTG","ablocks"),value:"HTG"},{label:(0, | |
| 4141 | +L.__)("HUF","ablocks"),value:"HUF"},{label:(0,L.__)("IDR","ablocks"),value:"IDR"},{label:(0,L.__)("ILS","ablocks"),value:"ILS"},{label:(0,L.__)("INR","ablocks"),value:"INR"},{label:(0,L.__)("ISK","ablocks"),value:"ISK"},{label:(0,L.__)("JMD","ablocks"),value:"JMD"},{label:(0,L.__)("JPY","ablocks"),value:"JPY"},{label:(0,L.__)("KES","ablocks"),value:"KES"},{label:(0,L.__)("KGS","ablocks"),value:"KGS"},{label:(0,L.__)("KHR","ablocks"),value:"KHR"},{label:(0,L.__)("KMF","ablocks"),value:"KMF"},{label:(0,L.__)("KRW","ablocks"),value:"KRW"},{label:(0,L.__)("KYD","ablocks"),value:"KYD"},{label:(0,L.__)("KZT","ablocks"),value:"KZT"},{label:(0,L.__)("LAK*","ablocks"),value:"LAK"},{label:(0,L.__)("LBP","ablocks"),value:"LBP"},{label:(0,L.__)("LKR","ablocks"),value:"LKR"},{label:(0,L.__)("LRD","ablocks"),value:"LRD"},{label:(0,L.__)("LSL","ablocks"),value:"LSL"},{label:(0,L.__)("MAD","ablocks"),value:"MAD"},{label:(0,L.__)("MDL","ablocks"),value:"MDL"},{label:(0,L.__)("MGA","ablocks"), | |
| 4142 | +value:"MGA"},{label:(0,L.__)("MKD","ablocks"),value:"MKD"},{label:(0,L.__)("MMK","ablocks"),value:"MMK"},{label:(0,L.__)("MNT","ablocks"),value:"MNT"},{label:(0,L.__)("MOP","ablocks"),value:"MOP"},{label:(0,L.__)("MUR*","ablocks"),value:"MUR"},{label:(0,L.__)("MVR","ablocks"),value:"MVR"},{label:(0,L.__)("MWK","ablocks"),value:"MWK"},{label:(0,L.__)("MXN","ablocks"),value:"MXN"},{label:(0,L.__)("MYR","ablocks"),value:"MYR"},{label:(0,L.__)("MZN","ablocks"),value:"MZN"},{label:(0,L.__)("NAD","ablocks"),value:"NAD"},{label:(0,L.__)("NGN","ablocks"),value:"NGN"},{label:(0,L.__)("NIO*","ablocks"),value:"NIO"},{label:(0,L.__)("NOK","ablocks"),value:"NOK"},{label:(0,L.__)("NPR","ablocks"),value:"NPR"},{label:(0,L.__)("NZD","ablocks"),value:"NZD"},{label:(0,L.__)("PAB*","ablocks"),value:"PAB"},{label:(0,L.__)("PEN*","ablocks"),value:"PEN"},{label:(0,L.__)("PGK","ablocks"),value:"PGK"},{label:(0,L.__)("PHP","ablocks"),value:"PHP"},{label:(0,L.__)("PKR","ablocks"),value:"PKR"},{label:(0, | |
| 4143 | +L.__)("PLN","ablocks"),value:"PLN"},{label:(0,L.__)("PYG*","ablocks"),value:"PYG"},{label:(0,L.__)("QAR","ablocks"),value:"QAR"},{label:(0,L.__)("RON","ablocks"),value:"RON"},{label:(0,L.__)("RSD","ablocks"),value:"RSD"},{label:(0,L.__)("RUB","ablocks"),value:"RUB"},{label:(0,L.__)("RWF","ablocks"),value:"RWF"},{label:(0,L.__)("SAR","ablocks"),value:"SAR"},{label:(0,L.__)("SBD","ablocks"),value:"SBD"},{label:(0,L.__)("SCR","ablocks"),value:"SCR"},{label:(0,L.__)("SEK","ablocks"),value:"SEK"},{label:(0,L.__)("SGD","ablocks"),value:"SGD"},{label:(0,L.__)("SHP*","ablocks"),value:"SHP"},{label:(0,L.__)("SLE","ablocks"),value:"SLE"},{label:(0,L.__)("SOS","ablocks"),value:"SOS"},{label:(0,L.__)("SRD*","ablocks"),value:"SRD"},{label:(0,L.__)("STD*","ablocks"),value:"STD"},{label:(0,L.__)("SZL","ablocks"),value:"SZL"},{label:(0,L.__)("THB","ablocks"),value:"THB"},{label:(0,L.__)("TJS","ablocks"),value:"TJS"},{label:(0,L.__)("TOP","ablocks"),value:"TOP"},{label:(0,L.__)("TRY","ablocks"), | |
| 4144 | +value:"TRY"},{label:(0,L.__)("TTD","ablocks"),value:"TTD"},{label:(0,L.__)("TWD","ablocks"),value:"TWD"},{label:(0,L.__)("TZS","ablocks"),value:"TZS"},{label:(0,L.__)("UAH","ablocks"),value:"UAH"},{label:(0,L.__)("UGX","ablocks"),value:"UGX"},{label:(0,L.__)("UYU*","ablocks"),value:"UYU"},{label:(0,L.__)("UZS","ablocks"),value:"UZS"},{label:(0,L.__)("VND","ablocks"),value:"VND"},{label:(0,L.__)("VUV","ablocks"),value:"VUV"},{label:(0,L.__)("WST","ablocks"),value:"WST"},{label:(0,L.__)("XAF","ablocks"),value:"XAF"},{label:(0,L.__)("XCD","ablocks"),value:"XCD"},{label:(0,L.__)("XOF*","ablocks"),value:"XOF"},{label:(0,L.__)("XPF*","ablocks"),value:"XPF"},{label:(0,L.__)("YER","ablocks"),value:"YER"},{label:(0,L.__)("ZAR","ablocks"),value:"ZAR"},{label:(0,L.__)("ZMW","ablocks"),value:"ZMW"}]);function cN(t){ | |
| 4145 | +const{attributes:e,setAttributes:i}=t,{buttonType:o,text:n,position:s,alignment:r,buttonSize:b,textShadow:c,typography:d,textColor:u,textColorH:p,background:m,backgroundH:h,padding:g,iconPosition:f,showIcon:y,iconSpace:T,stripeApi:H,itemName:x,price:k,currency:v,quantity:_,shippingPrice:R,hasTax:S,tax:W,taxId:P,redirectionAfterPayment:U,openInNewTab:j,customMessage:w,errorMessage:z}=e;return(0,a.useEffect)(()=>{H?(0,M.In)({action:"ablocks/stripe_get_tax_rates",api_key:H}).then(t=>{if(t.data.success){const e=t?.data?.data.data;if(e.length>0){const t=e.map(t=>({label:t.display_name,value:t.id}));i({tax:t})}else i({tax:[{label:(0,L.__)("No tax found.","ablocks"),value:""}]})}else i({tax:[{label:(0,L.__)("No tax found.","ablocks"),value:""}]})}):i({tax:[{label:(0,L.__)("No tax found.","ablocks"),value:""}]})},[H,S]),(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i, | |
| 4146 | +docs_url:"https://ablocks.pro/docs/ablocks-stripe-button-block/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Pricing & Payments","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Stripe API","ablocks"),attributeName:"stripeApi",attributeValue:H,setAttributes:i,placeholder:"",isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(It,{}),(0,I.jsx)(Kl,{label:(0,L.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:x,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,I.jsx)(As,{label:(0,L.__)("Product Price","ablocks"),attributeName:"price",attributeValue:k,setAttributes:i,isInline:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Currency","ablocks"),options:bN,isResponsive:!1,attributeValue:v||"usd",attributeName:"currency",setAttributes:i}),(0,I.jsx)("div",{className:"ablocks-stripe-settings-msg",children:(0,L.__)("Currencies marked with * are not supported by American Express.","ablocks")}),(0,I.jsx)(As,{label:(0, | |
| 4147 | +L.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:_,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:R,setAttributes:i,isInline:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Add Tax","ablocks"),attributeValue:S,setAttributes:i,attributeName:"hasTax",isResponsive:!1}),S&&(0,I.jsx)(Ut,{label:(0,L.__)("Select Tax","ablocks"),options:W,isResponsive:!1,attributeValue:P,attributeName:"taxId",setAttributes:i})]})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"position",attributeValue:s,setAttributes:i,options:sN,isInline:!1}),"stretch"===s?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:r,setAttributes:i,options:rN,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0, | |
| 4148 | +L.__)("Default","ablocks"),value:"#635bff"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:o||"Primary",attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"text",attributeValue:n,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:b||"sm",attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:y,setAttributes:i, | |
| 4149 | +attributeName:"showIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:u||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:m||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:p,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0, | |
| 4150 | +attributeName:"backgroundH",attributeValue:h,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),y&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0, | |
| 4151 | +L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:f||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:T,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:nN.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,I.jsx)(zb,{label:(0,L.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:U,setAttributes:i, | |
| 4152 | +placeholder:"https://ablocks.pro/",isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Open in New Tab","ablocks"),attributeValue:j,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Custom Message","ablocks"),attributeValue:w,setAttributes:i,attributeName:"customMessage",isResponsive:!1}),w&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:z,setAttributes:i,isInline:!1})})]})]})})})}(0,L.__)("Daily","ablocks"),(0,L.__)("Weekly","ablocks"),(0,L.__)("Monthly","ablocks"),(0,L.__)("Yearly","ablocks"),cN.propTypes={};const dN={UU:"ablocks/stripe-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},postId:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#635bff"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""}, | |
| 4120 | 4153 | background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},stripeApi:{type:"string",default:""},itemName:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"0"},shippingPrice:{type:"number",default:"0"},hasTax:{type:"boolean",default:!1},tax:{type:"array",default:[]},taxId:{type:"string",default:""},redirectionAfterPayment:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string", |
| 4121 | 4154 | default:"M155.3 154.6c0-22.3 18.6-30.9 48.4-30.9 43.4 0 98.5 13.3 141.9 36.7V26.1C298.3 7.2 251.1 0 203.8 0 88.1 0 11 60.4 11 161.4c0 157.9 216.8 132.3 216.8 200.4 0 26.4-22.9 34.9-54.7 34.9-47.2 0-108.2-19.5-156.1-45.5v128.5a396.09 396.09 0 0 0 156 32.4c118.6 0 200.3-51 200.3-153.6 0-170.2-218-139.7-218-203.9z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-stripe"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"", |
| 4122 | 4155 | right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number", |
| 4123 | 4156 | default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"", |
| @@ -4131,16 +4164,16 @@ | ||
| 4131 | 4164 | 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:{ |
| 4132 | 4165 | 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:"", |
| 4133 | 4166 | 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:"", |
| 4134 | 4167 | 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, |
| 4135 | -startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function YD(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:n,iconPosition:r,iconClass:b,showIcon:c,alignment:d,iconImageID:u,iconImageUrl:p}=e,m=(0,C.useBlockProps)();return(0,a.useEffect)(()=>{const t=wp.data.select("core/editor").getCurrentPostId();i({postId:t})},[]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:d,setAttributes:i})}),(0,L.jsx)(Nb.A,{blockId:o,name:OD.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsxs)("div",{className:s()("ablocks-stripe-button",`ablocks-stripe-button--${n}`,{ | |
| 4136 | -[`ablocks-stripe-button--icon-${r}`]:b&&r||u&&p}),children:[c&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(Yc,{...m,tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-stripe-button__text",onChange:t=>i({text:t})})]})})]})}YD.propTypes={};const XD=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},BD=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,gs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,gs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0, | |
| 4137 | -H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,P.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},ED=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,gs.qD)(t?.textColorH),background:(0,gs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},FD=t=>({fill:(0,gs.qD)(t?.textColorH)}),qD=t=>({...(0,pc.qD)(t?.textShadow)});function $D(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,L.jsx)(oc,{blockId:i,name:OD.UU,attributes:e,children:(0,L.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,L.jsx)("input",{type:"hidden",name:"action",value:"submit_stripe_form"}),(0,L.jsx)("input",{ | |
| 4138 | -type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,L.jsx)("input",{type:"hidden",name:"current_url"}),(0,L.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(C.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,L.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}$D.propTypes={};function GD(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,L.jsx)(dc,{blockId:i,name:"ablocks/stripe-button",attributes:e,children:(0,L.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,L.jsx)("input",{type:"hidden",name:"action", | |
| 4139 | -value:"submit_stripe_form"}),(0,L.jsx)("input",{type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,L.jsx)("input",{type:"hidden",name:"current_url"}),(0,L.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(C.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,L.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}GD.propTypes={},(0,M.xV)(OD.UU)&&(0,o.registerBlockType)(OD.UU,{title:"Stripe Button",attributes:OD.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null | |
| 4140 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",XD(i,""),XD(i,"Tablet"),XD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button",BD(i),BD(i,"Tablet"),BD(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover",ED(i,""),ED(i,"Tablet"),ED(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",FD(i),FD(i),FD(i)),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button .ablocks-stripe-button__text",qD(i),qD(i),qD(i)),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0, | |
| 4141 | -vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0,vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Tablet")),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(VD,{...t}),(0,L.jsx)(YD,{...t})]})},save:$D,deprecated:[{attributes:{block_id:{type:"string",default:""},postId:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#635bff"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{ | |
| 4142 | -type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},stripeApi:{type:"string",default:""},itemName:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"0"},shippingPrice:{type:"number",default:"0"},hasTax:{type:"boolean",default:!1},tax:{type:"array",default:[]},taxId:{type:"string",default:""},redirectionAfterPayment:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string", | |
| 4168 | +startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function uN(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:n,iconPosition:r,iconClass:b,showIcon:c,alignment:d,iconImageID:u,iconImageUrl:p}=e,m=(0,D.useBlockProps)();return(0,a.useEffect)(()=>{const t=wp.data.select("core/editor").getCurrentPostId();i({postId:t})},[]),(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:d,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:dN.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:s()("ablocks-stripe-button",`ablocks-stripe-button--${n}`,{ | |
| 4169 | +[`ablocks-stripe-button--icon-${r}`]:b&&r||u&&p}),children:[c&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)($c,{...m,tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-stripe-button__text",onChange:t=>i({text:t})})]})})]})}uN.propTypes={};const pN=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},mN=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,Hs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,Hs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0, | |
| 4170 | +H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,U.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},hN=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.textColorH),background:(0,Hs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},gN=t=>({fill:(0,Hs.qD)(t?.textColorH)}),fN=t=>({...(0,fc.qD)(t?.textShadow)});function yN(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,I.jsx)(sc,{blockId:i,name:dN.UU,attributes:e,children:(0,I.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,I.jsx)("input",{type:"hidden",name:"action",value:"submit_stripe_form"}),(0,I.jsx)("input",{ | |
| 4171 | +type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,I.jsx)("input",{type:"hidden",name:"current_url"}),(0,I.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,I.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}yN.propTypes={};function TN(t){const{attributes:e}=t,{block_id:i,postId:o,buttonSize:a,iconPosition:l,iconClass:n,showIcon:r,iconImageID:b,iconImageUrl:c,text:d,openInNewTab:u,errorMessage:p}=e;return(0,I.jsx)(hc,{blockId:i,name:"ablocks/stripe-button",attributes:e,children:(0,I.jsxs)("form",{className:"ablocks-stripe-form",method:"post",id:"stripe-form","data-ablocks__block-id":i,"data-ablocks__post-id":o,"data-ablocks__open-new-tab":u,"data-ablocks__error-msg":p,children:[(0,I.jsx)("input",{type:"hidden",name:"action", | |
| 4172 | +value:"submit_stripe_form"}),(0,I.jsx)("input",{type:"hidden",name:"widget_id",value:"97cb6e5"}),(0,I.jsx)("input",{type:"hidden",name:"current_url"}),(0,I.jsxs)("button",{type:"submit",className:s()("ablocks-stripe-button",`ablocks-stripe-button--${a}`,{[`ablocks-stripe-button--icon-${l}`]:n&&l||b&&c}),children:[r&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-stripe-button__text",value:d})]}),(0,I.jsx)("div",{className:"ablocks-stripe-button__error"})]})})}TN.propTypes={},(0,M.xV)(dN.UU)&&(0,o.registerBlockType)(dN.UU,{title:(0,L.__)("Stripe Button","ablocks"),attributes:dN.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--block-button"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null | |
| 4173 | +;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}}",pN(i,""),pN(i,"Tablet"),pN(i,"Mobile"),e(t=>pN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button",mN(i),mN(i,"Tablet"),mN(i,"Mobile"),e(t=>mN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover",hN(i,""),hN(i,"Tablet"),hN(i,"Mobile"),e(t=>hN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",gN(i),gN(i),gN(i),e(t=>gN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-stripe-button .ablocks-stripe-button__text",fN(i),fN(i),fN(i),e(t=>fN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0, | |
| 4174 | +Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Tablet"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Tablet"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(cN,{...t}),(0,I.jsx)(uN,{...t})]})},save:yN,deprecated:[{attributes:{block_id:{type:"string",default:""},postId:{type:"number",default:""},text:{ | |
| 4175 | +type:"string",default:"Buy now"},buttonType:{type:"string",default:"#635bff"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},stripeApi:{type:"string",default:""},itemName:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"0"},shippingPrice:{type:"number",default:"0"},hasTax:{type:"boolean",default:!1},tax:{type:"array",default:[]},taxId:{type:"string",default:""},redirectionAfterPayment:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string", | |
| 4143 | 4176 | default:"M155.3 154.6c0-22.3 18.6-30.9 48.4-30.9 43.4 0 98.5 13.3 141.9 36.7V26.1C298.3 7.2 251.1 0 203.8 0 88.1 0 11 60.4 11 161.4c0 157.9 216.8 132.3 216.8 200.4 0 26.4-22.9 34.9-54.7 34.9-47.2 0-108.2-19.5-156.1-45.5v128.5a396.09 396.09 0 0 0 156 32.4c118.6 0 200.3-51 200.3-153.6 0-170.2-218-139.7-218-203.9z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-stripe"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{ |
| 4144 | 4177 | isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0, |
| 4145 | 4178 | 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:"", |
| 4146 | 4179 | 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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},typography:{type:"object",default:{fontFamily:"", |
| @@ -4152,21 +4185,21 @@ | ||
| 4152 | 4185 | 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:"", |
| 4153 | 4186 | 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:"", |
| 4154 | 4187 | 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", |
| 4155 | 4188 | customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean", |
| 4156 | -default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,L.jsx)(GD,{...t})}]});var ZD=i(56027);const KD=t=>(0,r.useSelect)(e=>e("core").getEntityRecords("postType",t,{per_page:-1}),[]),JD=[{value:"left",label:(0,z.__)("Left","ablocks")},{value:"right",label:(0,z.__)("Right","ablocks")}],QD=[{value:"left",label:(0,z.__)("Left","ablocks")},{value:"right",label:(0,z.__)("Right","ablocks")}],tN=[{label:(0,z.__)("Left","ablocks"),value:"ltr"},{label:(0,z.__)("Right","ablocks"),value:"rtl"}],eN=[{label:(0,z.__)("Normal","ablocks"),value:"normal"},{label:(0,z.__)("Small Shape","ablocks"),value:"small"},{label:(0,z.__)("Medium Shape","ablocks"),value:"medium"},{label:(0,z.__)("Large Shape","ablocks"),value:"large"}],iN=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Box","ablocks"),value:"box"}],oN=[{label:(0,z.__)("Up","ablocks"),value:"up"},{label:(0, | |
| 4157 | -z.__)("Down","ablocks"),value:"down"}],aN=[{value:"posts",label:(0,z.__)("Posts","ablocks")},{value:"pages",label:(0,z.__)("Pages","ablocks")},{value:"customText",label:(0,z.__)("Custom Text","ablocks")}];function lN(t){const{attributes:e,setAttributes:i}=t,{labelTypography:o,labelTextShadow:a,labelTextStroke:n,tickerTypography:s,tickerTextShadow:r,tickerTextStroke:b,labelColor:c,labelBackgroundColor:d,labelColorH:u,labelBackgroundColorH:p,labelPosition:m,stickyLabelTag:h,stickyLabel:g,isShowLabel:f,labelPadding:y,tickerHeight:T,showTickerNavigator:H,navigatorPosition:M,navigatorBgColor:x,navigatorColor:k,tickerListStyle:v,isShowTime:_,tickerColor:R,tickerColorH:S,tickerBgColorH:W,tickerBgColor:U,slideSpeed:P,slideDirection:j,selectedPosts:w,selectedPages:N,tickerType:I,queryType:O,isPauseOnOver:Y,isPositionSticky:X,stickyPosition:B,tickerLabelShape:E,lists:F,listIconsClasses:q,postLink:$,pageLink:G}=e,Z=t=>t?t.map(t=>({value:t.id,label:t.title.rendered | |
| 4158 | -})):[],K=Z(KD("page")),J=Z(KD("post")),Q=!J||!K,tt=F?.length?F[F.length-1].id+1:0;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-news-ticker-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("General","ablocks"),initialOpen:!0,children:(0,L.jsxs)(L.Fragment,{children:["marquee"===I&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Direction","ablocks"),options:tN,isSearch:!0,attributeName:"slideDirection",attributeValue:j,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Speed (Slow To Fast)","ablocks"),attributeName:"slideSpeed",attributeValue:P,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]}),(0,L.jsx)(Vt,{label:(0,z.__)("Pause On Hover","ablocks"),attributeName:"isPauseOnOver",attributeValue:Y,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Position sticky","ablocks"),attributeName:"isPositionSticky", | |
| 4159 | -attributeValue:X,setAttributes:i,isResponsive:!1,allowDeselect:!1}),X&&(0,L.jsx)(Ut,{label:(0,z.__)("Select Position","ablocks"),options:oN,attributeName:"stickyPosition",attributeValue:B,setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Label","ablocks"),attributeName:"isShowLabel",attributeValue:f,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Navigator","ablocks"),attributeName:"showTickerNavigator",attributeValue:H,setAttributes:i,isResponsive:!1,allowDeselect:!1}),"customText"!==O&&(0,L.jsx)(Vt,{label:(0,z.__)("Show Time","ablocks"),attributeName:"isShowTime",attributeValue:_,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),(0,L.jsxs)(D,{title:(0,z.__)("Query Builder","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Query Type","ablocks"),options:aN,attributeName:"queryType",attributeValue:O,setAttributes:i,isSearchable:!0}),"posts"===O&&(0,L.jsx)(L.Fragment,{children:Q?(0,L.jsx)(A.Spinner,{}):(0, | |
| 4160 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Selected Posts","ablocks"),options:J,attributeName:"selectedPosts",attributeValue:w,setAttributes:i,isMulti:!0,isSearchable:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Post Link","ablocks"),attributeName:"postLink",attributeValue:$,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),"pages"===O&&(0,L.jsx)(L.Fragment,{children:Q?(0,L.jsx)(A.Spinner,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Selected Pages","ablocks"),options:K,attributeName:"selectedPages",attributeValue:N,setAttributes:i,isMulti:!0,isSearchable:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Page Link","ablocks"),attributeName:"pageLink",attributeValue:G,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),"customText"===O&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(tf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(F),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({lists:e})},children:(0,L.jsx)(zf,{ | |
| 4161 | -droppableId:"droppable",children:t=>(0,L.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[F?.map((t,e)=>(0,L.jsx)(Uf,{draggableId:`${t?.id}`,index:e,children:e=>(0,L.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=F.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,L.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,L.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,L.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,L.jsx)("span",{ | |
| 4162 | -className:"ablocks-icon ablocks-icon--delete",onClick:e=>{return o=e,a=t?.id,o.stopPropagation(),void i({lists:F.filter(t=>t?.id!==a)});var o,a},role:"presentation",onKeyDown:()=>{}}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const o=F.findIndex(t=>t?.id===e),a=F[o],l=Array.from(F).sort((t,e)=>t.id-e.id),n={id:(l[l.length-1]?.id??0)+1,text:a?.text,link:a.link,iconColor:a.iconColor,textColor:a.textColor,markerColor:a.markerColor,isOpen:!1},s=[...F,n],r=[...q,q[o]];i({lists:s,listIconsClasses:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,L.jsxs)("div",{className:"ablocks-editor-list__inner-content",children:[(0,L.jsx)(ae,{label:(0,z.__)("Text","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>((t,e,o)=>{const a=F.map(i=>i.id===t?{...i,[o]:e}:i);i({lists:a})})(t?.id,e,"text"),placeholder:(0,z.__)("Enter your text","ablocks")}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"), | |
| 4163 | -attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,o)=>{((t,e,o)=>{const a=[...F],l={...t,[e]:o};a[t?.id]=l,i({lists:a})})(t,"link",{...t.link,[e]:o})}})]})]})},t?.id)),t.placeholder]})})}),(0,L.jsx)(V,{label:(0,z.__)("Add item","ablocks"),onClick:()=>{const t={id:tt,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},e=F.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t],listIconsClasses:[...q]})},className:"ablocks-add-list-item-button"})]})]}),H&&(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(D,{title:(0,z.__)("Ticker Navigator","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Navigator Position","ablocks"),options:QD,attributeName:"navigatorPosition",attributeValue:M,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"navigatorColor",attributeValue:k,setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 4164 | -z.__)("Background Color","ablocks"),attributeName:"navigatorBgColor",attributeValue:x,setAttributes:i})]})}),f&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(D,{title:(0,z.__)("Ticker Label","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:f&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Sticky Label","ablocks"),attributeName:"stickyLabel",attributeValue:g,setAttributes:i,placeholder:"Breaking News"}),(0,L.jsx)(Ut,{label:(0,z.__)("Ticker Shape","ablocks"),options:eN,attributeName:"tickerLabelShape",attributeValue:E,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Label Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"stickyLabelTag",attributeValue:h,setAttributes:i,onChangeHandler:t=>i({stickyLabelTag:t})}),(0,L.jsx)(Ut,{label:(0,z.__)("Label Position","ablocks"),options:JD,attributeName:"labelPosition",attributeValue:m,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Padding","ablocks"),attributeName:"labelPadding", | |
| 4165 | -attributeValue:y,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:(et=y?.valueUnit||"px","px"===et?50:"em"===et||"rem"===et?5:50),step:1,isInline:!1,isResponsive:!0,attributeDefaultValue:ZD.id})]})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:c,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"labelBackgroundColor",attributeValue:d,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"labelColorH",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"labelBackgroundColorH",attributeValue:p,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1, | |
| 4166 | -isInline:!1,isResponsive:!1,attributeValue:e?.labelColorTransition||0,attributeName:"labelColorTransition",setAttributes:i})]})}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"labelTextShadow",attributeValue:a,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"labelTextStroke",attributeValue:n,setAttributes:i,isResponsive:!0})]})})})}),(0,L.jsx)(D,{title:(0,z.__)("Ticker Body","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ut,{label:(0,z.__)("Ticker List Style","ablocks"),options:iN,attributeName:"tickerListStyle",attributeValue:v,setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Content Height","ablocks"),attributeName:"tickerHeight",attributeValue:T,setAttributes:i, | |
| 4167 | -hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:ZD.Ez,autoSyncRange:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"tickerColor",attributeValue:R,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"tickerBgColor",attributeValue:U,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"tickerTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"tickerTextShadow",attributeValue:r,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"tickerTextStroke",attributeValue:b,setAttributes:i,isResponsive:!0})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 4168 | -attributeName:"tickerColorH",attributeValue:S,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"tickerBgColorH",attributeValue:W,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.tickerColorTransition||0,attributeName:"tickerColorTransition",setAttributes:i})]})})]})})})]})})});var et}lN.propTypes={},lN.defaultProps={};const nN={UU:"ablocks/news-ticker",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},stickyLabel:{type:"string",default:"Breaking News"},stickyLabelTag:{type:"string",default:"div"},labelPosition:{type:"string",default:"left"},queryType:{type:"string",default:"customText"},selectedPosts:{type:"array",default:[]},postLink:{type:"boolean",default:!1},selectedPages:{type:"array",default:[]},pageLink:{type:"boolean",default:!1},customText:{type:"string",default:""},lists:{type:"array", | |
| 4189 | +default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,I.jsx)(TN,{...t})}]});var HN=i(56027);const MN=t=>(0,r.useSelect)(e=>e("core").getEntityRecords("postType",t,{per_page:-1}),[]),xN=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],kN=[{value:"left",label:(0,L.__)("Left","ablocks")},{value:"right",label:(0,L.__)("Right","ablocks")}],vN=[{label:(0,L.__)("Left","ablocks"),value:"ltr"},{label:(0,L.__)("Right","ablocks"),value:"rtl"}],_N=[{label:(0,L.__)("Normal","ablocks"),value:"normal"},{label:(0,L.__)("Small Shape","ablocks"),value:"small"},{label:(0,L.__)("Medium Shape","ablocks"),value:"medium"},{label:(0,L.__)("Large Shape","ablocks"),value:"large"}],RN=[{label:(0,L.__)("None","ablocks"),value:"none"},{label:(0,L.__)("Circle","ablocks"),value:"circle"},{label:(0,L.__)("Box","ablocks"),value:"box"}],SN=[{label:(0,L.__)("Up","ablocks"),value:"up"},{label:(0, | |
| 4190 | +L.__)("Down","ablocks"),value:"down"}],WN=[{value:"posts",label:(0,L.__)("Posts","ablocks")},{value:"pages",label:(0,L.__)("Pages","ablocks")},{value:"customText",label:(0,L.__)("Custom Text","ablocks")}];function PN(t){const{attributes:e,setAttributes:i}=t,{labelTypography:o,labelTextShadow:a,labelTextStroke:n,tickerTypography:s,tickerTextShadow:r,tickerTextStroke:b,labelColor:c,labelBackgroundColor:d,labelColorH:u,labelBackgroundColorH:p,labelPosition:m,stickyLabelTag:h,stickyLabel:g,isShowLabel:f,labelPadding:y,tickerHeight:T,showTickerNavigator:H,navigatorPosition:M,navigatorBgColor:x,navigatorColor:k,tickerListStyle:v,isShowTime:_,tickerColor:R,tickerColorH:S,tickerBgColorH:W,tickerBgColor:P,slideSpeed:U,slideDirection:j,selectedPosts:w,selectedPages:z,tickerType:C,queryType:A,isPauseOnOver:O,isPositionSticky:Y,stickyPosition:B,tickerLabelShape:E,lists:F,listIconsClasses:q,postLink:$,pageLink:G}=e,Z=t=>t?t.map(t=>({value:t.id,label:t.title.rendered | |
| 4191 | +})):[],K=Z(MN("page")),J=Z(MN("post")),Q=!J||!K,tt=F?.length?F[F.length-1].id+1:0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-news-ticker-block/",children:[(0,I.jsx)(V,{title:(0,L.__)("General","ablocks"),initialOpen:!0,children:(0,I.jsxs)(I.Fragment,{children:["marquee"===C&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Direction","ablocks"),options:vN,isSearch:!0,attributeName:"slideDirection",attributeValue:j,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Speed (Slow To Fast)","ablocks"),attributeName:"slideSpeed",attributeValue:U,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Pause On Hover","ablocks"),attributeName:"isPauseOnOver",attributeValue:O,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Position sticky","ablocks"),attributeName:"isPositionSticky", | |
| 4192 | +attributeValue:Y,setAttributes:i,isResponsive:!1,allowDeselect:!1}),Y&&(0,I.jsx)(Ut,{label:(0,L.__)("Select Position","ablocks"),options:SN,attributeName:"stickyPosition",attributeValue:B,setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Label","ablocks"),attributeName:"isShowLabel",attributeValue:f,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Navigator","ablocks"),attributeName:"showTickerNavigator",attributeValue:H,setAttributes:i,isResponsive:!1,allowDeselect:!1}),"customText"!==A&&(0,I.jsx)(Ot,{label:(0,L.__)("Show Time","ablocks"),attributeName:"isShowTime",attributeValue:_,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),(0,I.jsxs)(V,{title:(0,L.__)("Query Builder","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Query Type","ablocks"),options:WN,attributeName:"queryType",attributeValue:A,setAttributes:i,isSearchable:!0}),"posts"===A&&(0,I.jsx)(I.Fragment,{children:Q?(0,I.jsx)(N.Spinner,{}):(0, | |
| 4193 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Selected Posts","ablocks"),options:J,attributeName:"selectedPosts",attributeValue:w,setAttributes:i,isMulti:!0,isSearchable:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Post Link","ablocks"),attributeName:"postLink",attributeValue:$,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),"pages"===A&&(0,I.jsx)(I.Fragment,{children:Q?(0,I.jsx)(N.Spinner,{}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Selected Pages","ablocks"),options:K,attributeName:"selectedPages",attributeValue:z,setAttributes:i,isMulti:!0,isSearchable:!0}),(0,I.jsx)(Ot,{label:(0,L.__)("Page Link","ablocks"),attributeName:"pageLink",attributeValue:G,setAttributes:i,isResponsive:!1,allowDeselect:!1})]})}),"customText"===A&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(sf,{onDragEnd:t=>{if(!t.destination)return;const e=Array.from(F),[o]=e.splice(t.source.index,1);e.splice(t.destination.index,0,o),i({lists:e})},children:(0,I.jsx)(If,{ | |
| 4194 | +droppableId:"droppable",children:t=>(0,I.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[F?.map((t,e)=>(0,I.jsx)(Af,{draggableId:`${t?.id}`,index:e,children:e=>(0,I.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-list",children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__wrapper",onClick:()=>(t=>{const e=F.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({lists:e})})(t?.id),role:"presentation",onKeyDown:()=>{},style:{borderBottom:t?.isOpen&&"1px solid #ddd"},children:[(0,I.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,I.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,I.jsx)("span",{className:"ablocks-list-text",children:t?.text.length>20?t?.text.slice(0,20)+"...":t?.text})]}),(0,I.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,I.jsx)("span",{ | |
| 4195 | +className:"ablocks-icon ablocks-icon--delete",onClick:e=>{return o=e,a=t?.id,o.stopPropagation(),void i({lists:F.filter(t=>t?.id!==a)});var o,a},role:"presentation",onKeyDown:()=>{}}),(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--copy",onClick:e=>((t,e)=>{t.stopPropagation();const o=F.findIndex(t=>t?.id===e),a=F[o],l=Array.from(F).sort((t,e)=>t.id-e.id),n={id:(l[l.length-1]?.id??0)+1,text:a?.text,link:a.link,iconColor:a.iconColor,textColor:a.textColor,markerColor:a.markerColor,isOpen:!1},s=[...F,n],r=[...q,q[o]];i({lists:s,listIconsClasses:r})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,I.jsxs)("div",{className:"ablocks-editor-list__inner-content",children:[(0,I.jsx)(le,{label:(0,L.__)("Text","ablocks"),attributeValue:t?.text,setAttributes:i,onChangeHandler:e=>((t,e,o)=>{const a=F.map(i=>i.id===t?{...i,[o]:e}:i);i({lists:a})})(t?.id,e,"text"),placeholder:(0,L.__)("Enter your text","ablocks")}),(0,I.jsx)(zb,{label:(0,L.__)("Link","ablocks"), | |
| 4196 | +attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,o)=>{((t,e,o)=>{const a=[...F],l={...t,[e]:o};a[t?.id]=l,i({lists:a})})(t,"link",{...t.link,[e]:o})}})]})]})},t?.id)),t.placeholder]})})}),(0,I.jsx)(X,{label:(0,L.__)("Add item","ablocks"),onClick:()=>{const t={id:tt,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconColor:"",textColor:"",markerColor:"",isOpen:!1},e=F.map(t=>t.isOpen?{...t,isOpen:!t.isOpen}:t);i({lists:[...e,t],listIconsClasses:[...q]})},className:"ablocks-add-list-item-button"})]})]}),H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(V,{title:(0,L.__)("Ticker Navigator","ablocks"),initialOpen:!1,children:[(0,I.jsx)(Ut,{label:(0,L.__)("Navigator Position","ablocks"),options:kN,attributeName:"navigatorPosition",attributeValue:M,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"navigatorColor",attributeValue:k,setAttributes:i}),(0,I.jsx)(Ws,{label:(0, | |
| 4197 | +L.__)("Background Color","ablocks"),attributeName:"navigatorBgColor",attributeValue:x,setAttributes:i})]})}),f&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(V,{title:(0,L.__)("Ticker Label","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Sticky Label","ablocks"),attributeName:"stickyLabel",attributeValue:g,setAttributes:i,placeholder:"Breaking News"}),(0,I.jsx)(Ut,{label:(0,L.__)("Ticker Shape","ablocks"),options:_N,attributeName:"tickerLabelShape",attributeValue:E,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Tag","ablocks"),options:St,isSearch:!0,attributeName:"stickyLabelTag",attributeValue:h,setAttributes:i,onChangeHandler:t=>i({stickyLabelTag:t})}),(0,I.jsx)(Ut,{label:(0,L.__)("Label Position","ablocks"),options:xN,attributeName:"labelPosition",attributeValue:m,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Padding","ablocks"),attributeName:"labelPadding", | |
| 4198 | +attributeValue:y,setAttributes:i,hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:(et=y?.valueUnit||"px","px"===et?50:"em"===et||"rem"===et?5:50),step:1,isInline:!1,isResponsive:!0,attributeDefaultValue:HN.id})]})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:c,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBackgroundColor",attributeValue:d,setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"labelColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"labelBackgroundColorH",attributeValue:p,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1, | |
| 4199 | +isInline:!1,isResponsive:!1,attributeValue:e?.labelColorTransition||0,attributeName:"labelColorTransition",setAttributes:i})]})}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"labelTextShadow",attributeValue:a,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"labelTextStroke",attributeValue:n,setAttributes:i,isResponsive:!0})]})})})}),(0,I.jsx)(V,{title:(0,L.__)("Ticker Body","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ut,{label:(0,L.__)("Ticker List Style","ablocks"),options:RN,attributeName:"tickerListStyle",attributeValue:v,setAttributes:i})}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_t,{label:(0,L.__)("Content Height","ablocks"),attributeName:"tickerHeight",attributeValue:T,setAttributes:i, | |
| 4200 | +hasUnit:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:HN.Ez,autoSyncRange:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"tickerColor",attributeValue:R,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tickerBgColor",attributeValue:P,setAttributes:i}),(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"tickerTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"tickerTextShadow",attributeValue:r,setAttributes:i,isResponsive:!1}),(0,I.jsx)(vc,{label:(0,L.__)("Text Stroke","ablocks"),attributeName:"tickerTextStroke",attributeValue:b,setAttributes:i,isResponsive:!0})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"), | |
| 4201 | +attributeName:"tickerColorH",attributeValue:S,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background Color","ablocks"),attributeName:"tickerBgColorH",attributeValue:W,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.tickerColorTransition||0,attributeName:"tickerColorTransition",setAttributes:i})]})})]})})})]})})});var et}PN.propTypes={},PN.defaultProps={};const UN={UU:"ablocks/news-ticker",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},stickyLabel:{type:"string",default:"Breaking News"},stickyLabelTag:{type:"string",default:"div"},labelPosition:{type:"string",default:"left"},queryType:{type:"string",default:"customText"},selectedPosts:{type:"array",default:[]},postLink:{type:"boolean",default:!1},selectedPages:{type:"array",default:[]},pageLink:{type:"boolean",default:!1},customText:{type:"string",default:""},lists:{type:"array", | |
| 4169 | 4202 | default:[{id:0,text:"Stay updated with the latest trends!",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},isOpen:!1}]},markerType:{type:"string",default:"icon"},listIconsClasses:{type:"array",default:[]},slideDirection:{type:"string",default:"ltr"},slideSpeed:{type:"number",default:2},labelColor:{type:"string",default:"white"},labelBackgroundColor:{type:"string",default:"black"},labelColorH:{type:"string",default:""},labelBackgroundColorH:{type:"string",default:""},labelColorTransition:{type:"number",default:""},tickerColor:{type:"string",default:"black"},tickerBgColor:{type:"string",default:"#E5E5E6"},tickerColorH:{type:"string",default:""},tickerBgColorH:{type:"string",default:""},tickerColorTransition:{type:"number",default:""},tickerType:{type:"string",default:"marquee"},navigatorBgColor:{type:"string",default:""},navigatorColor:{type:"string",default:"#000000"},showTickerNavigator:{type:"boolean",default:!1}, |
| 4170 | 4203 | navigatorPosition:{type:"string",default:"right"},tickerListStyle:{type:"string",default:"none"},isPauseOnOver:{type:"boolean",default:!1},isPositionSticky:{type:"boolean",default:!1},stickyPosition:{type:"string",default:"up"},isShowLabel:{type:"boolean",default:!0},tickerLabelShape:{type:"string",default:"normal"},labelPadding:{type:"object",default:{value:10,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},isShowTime:{type:"boolean",default:!1},tickerHeight:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px", |
| 4171 | 4204 | lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},labelTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},tickerTypographyGlobal:{type:"string",default:""},tickerTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"", |
| 4172 | 4205 | lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},tickerTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},tickerTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"", |
| @@ -4176,61 +4209,61 @@ | ||
| 4176 | 4209 | 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:"", |
| 4177 | 4210 | 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, |
| 4178 | 4211 | 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:"", |
| 4179 | 4212 | 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:"", |
| 4180 | -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"}}}},sN=class{constructor(t,e={}){this.marqueeElement=t, | |
| 4213 | +animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},jN=class{constructor(t,e={}){this.marqueeElement=t, | |
| 4181 | 4214 | this.marqueeElement&&(this.marqueeContent=this.marqueeElement.querySelector(".ablocks-block-news-ticker_marquee--content"),this.slideSpeed=e.slideSpeed||Number(this.marqueeElement.getAttribute("data-slide-speed"))||1,this.slideDirection=e.slideDirection||this.marqueeElement.getAttribute("data-slide-direction")||"ltr",this.isPauseOnOver=e.isPauseOnOver||!1,this.currentPosition="rtl"===this.slideDirection?-this.marqueeContent.offsetWidth:0,this.isPaused=!1,this.updateDimensions(),this.animationFrameId=null,this.handlePause=this.pauseAnimation.bind(this),this.handleResume=this.resumeAnimation.bind(this),this.handleTogglePause=this.togglePause.bind(this),this.handleNext=this.moveNext.bind(this),this.handlePrev=this.movePrev.bind(this),this.handleResize=this.updateDimensions.bind(this),this.bindEvents(),this.startAnimation(),window.addEventListener("resize",this.handleResize))}bindEvents(){this.isPauseOnOver&&(this.marqueeContent.addEventListener("mouseenter",this.handlePause), |
| 4182 | 4215 | this.marqueeContent.addEventListener("mouseleave",this.handleResume));const t=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__pause");t&&t.addEventListener("click",this.handleTogglePause);const e=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__next");e&&e.addEventListener("click",this.handleNext);const i=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__prev");i&&i.addEventListener("click",this.handlePrev)}removeHoverEvents(){this.marqueeContent.removeEventListener("mouseenter",this.handlePause),this.marqueeContent.removeEventListener("mouseleave",this.handleResume)}updateDimensions(){this.contentWidth=this.marqueeContent.offsetWidth,this.parentWidth=this.marqueeContent.parentElement.offsetWidth}startAnimation(){const t=()=>{this.isPaused||("rtl"===this.slideDirection?(this.currentPosition+=this.slideSpeed, |
| 4183 | 4216 | this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)):(this.currentPosition-=this.slideSpeed,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`),this.animationFrameId=window.requestAnimationFrame(t)};this.animationFrameId=window.requestAnimationFrame(t)}pauseAnimation(){this.isPaused=!0,window.cancelAnimationFrame(this.animationFrameId)}resumeAnimation(){this.isPaused&&(this.isPaused=!1,this.startAnimation())}togglePause(){this.isPaused?this.resumeAnimation():this.pauseAnimation()}moveNext(){"rtl"===this.slideDirection?(this.currentPosition+=50,this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)):(this.currentPosition-=50,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`}movePrev(){ |
| 4184 | -"rtl"===this.slideDirection?(this.currentPosition-=50,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)):(this.currentPosition+=50,this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`}destroy(){this.removeHoverEvents();const t=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__pause");t&&t.removeEventListener("click",this.handleTogglePause);const e=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__next");e&&e.removeEventListener("click",this.handleNext);const i=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__prev");i&&i.removeEventListener("click",this.handlePrev),window.cancelAnimationFrame(this.animationFrameId),window.removeEventListener("resize",this.handleResize)}};function rN(t){ | |
| 4185 | -const{attributes:e,setAttributes:i,className:o=""}=t,{block_id:a,slideSpeed:n,stickyLabel:s,stickyLabelTag:r,slideDirection:b,selectedPosts:c,selectedPages:d,isPauseOnOver:u,queryType:p,lists:m,_position:h,_width:g,postLink:f,pageLink:y,navigatorColor:T}=e;let H=0;(0,Ot.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${a}`);let e;return t&&(e=new sN(t,{slideSpeed:n,slideDirection:b,isPauseOnOver:u,currentPosition:H})),()=>{e&&(H=e.currentPosition,e.destroy())}},[u,n,b,a]),(0,Ot.useEffect)(()=>{"posts"===p?i({selectedPages:[]}):"pages"===p&&i({selectedPosts:[]})},[p]);const x=(t,e)=>{const i="object"==typeof e&&null!==e?e:[e];return t?t.filter(t=>i.includes(t.id)):[]},k=x(KD("page"),d),v=x(KD("post"),c),_=t=>{const e=new Date(t),i=new Date,o=Math.floor((i-e)/1e3),a={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(const t in a){const e=Math.floor(o/a[t]);if(e>=1)return`${e} ${t}${e>1?"s":""} ago`}return"Just now" | |
| 4186 | -},{positionType:R}=h,{widthType:S}=g,W=`${"fixed"===R?"ablocks-block-news-ticker--fixed":"absolute"===R?"ablocks-block-news-ticker--absolute":""} ${"auto"===S?"ablocks-block-news-ticker--auto":"default"===S?"ablocks-block-news-ticker--default":""}`,U=v.length>0||k.length>0||"customText"===p&&m.length>0;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:a,name:nN.UU,attributes:{...e},className:W,children:(0,L.jsxs)("div",{className:`ablocks-block-news-ticker${o}`,"data-slide-speed":n,children:[(0,L.jsx)(Yc,{tagName:r,value:s,className:"ablocks-block-news-ticker__label",onChange:t=>i({stickyLabel:t}),placeholder:(0,z.__)("Breaking News","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-block-news-ticker__marquee",children:[(0,L.jsx)("div",{className:"ablocks-block-news-ticker_marquee--content",children:(0,L.jsxs)("ul",{className:"ablocks-block-news-ticker__list",children:["customText"===p&&(0,L.jsx)(L.Fragment,{children:m.map(t=>t.link?.href?.length>0?(0,L.jsx)("a",{ | |
| 4187 | -href:t.link.href,target:t.link.linkTarget?"_blank":"_self",rel:t.link.linkTarget?"noopener noreferrer":void 0,children:(0,L.jsx)("li",{className:"ablocks-block-news-ticker__custom-text",children:t.text})},`list-${t.id}`):(0,L.jsx)("li",{className:"ablocks-block-news-ticker__custom-text",children:t.text},`list-${t.id}`))}),U?(0,L.jsxs)(L.Fragment,{children:[v.map(t=>f?(0,L.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,L.jsxs)("li",{children:[t.title.rendered,(0,L.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`post-${t.id}`)},t.id):(0,L.jsxs)("li",{children:[t.title.rendered,(0,L.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`post-${t.id}`)),k.map(t=>y?(0,L.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,L.jsxs)("li",{children:[t.title.rendered,(0,L.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`page-${t.id}`)},t.id):(0,L.jsxs)("li",{ | |
| 4188 | -children:[t.title.rendered,(0,L.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`page-${t.id}`))]}):(0,L.jsx)("li",{children:(0,z.__)("No items selected","ablocks")})]})}),(0,L.jsxs)("div",{className:"ablocks-block-news-ticker--icons",children:[(0,L.jsx)("button",{"aria-label":(0,z.__)("Previous Button","ablocks"),title:(0,z.__)("Previous Button","ablocks"),className:"ablocks-block-news-ticker--icons__prev",children:(0,L.jsx)("svg",{width:"24",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)("path",{ | |
| 4189 | -d:"M18.119 22.1309C18.2003 22.2122 18.2648 22.3087 18.3088 22.415C18.3528 22.5212 18.3755 22.635 18.3755 22.75C18.3755 22.865 18.3528 22.9788 18.3088 23.085C18.2648 23.1913 18.2003 23.2878 18.119 23.3691C18.0378 23.4504 17.9412 23.5148 17.835 23.5588C17.7288 23.6028 17.615 23.6255 17.5 23.6255C17.385 23.6255 17.2712 23.6028 17.165 23.5588C17.0587 23.5148 16.9622 23.4504 16.8809 23.3691L8.13092 14.6191C8.04957 14.5378 7.98503 14.4413 7.941 14.3351C7.89696 14.2288 7.8743 14.115 7.8743 14C7.8743 13.885 7.89696 13.7712 7.941 13.6649C7.98503 13.5587 8.04957 13.4622 8.13092 13.3809L16.8809 4.63094C17.0451 4.46675 17.2678 4.37451 17.5 4.37451C17.7322 4.37451 17.9549 4.46675 18.119 4.63094C18.2832 4.79512 18.3755 5.01781 18.3755 5.25C18.3755 5.48219 18.2832 5.70488 18.119 5.86906L9.98702 14L18.119 22.1309Z",fill:(0,gs.qD)(T)})})}),(0,L.jsx)("button",{"aria-label":(0,z.__)("Pause Button","ablocks"),title:(0,z.__)("Pause Button","ablocks"),className:"ablocks-block-news-ticker--icons__pause", | |
| 4190 | -children:(0,L.jsxs)("svg",{width:"28",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("rect",{x:"9",y:"4",width:"1.55556",height:"19.25",fill:(0,gs.qD)(T)}),(0,L.jsx)("rect",{x:"18.2",y:"4",width:"1.55556",height:"19.25",fill:(0,gs.qD)(T)})]})}),(0,L.jsx)("button",{"aria-label":(0,z.__)("Next Button","ablocks"),title:(0,z.__)("Next Button","ablocks"),className:"ablocks-block-news-ticker--icons__next",children:(0,L.jsx)("svg",{width:"24",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)("path",{ | |
| 4191 | -d:"M19.8691 14.6191L11.1191 23.3691C11.0378 23.4504 10.9413 23.5148 10.835 23.5588C10.7288 23.6028 10.615 23.6255 10.5 23.6255C10.385 23.6255 10.2712 23.6028 10.165 23.5588C10.0587 23.5148 9.96223 23.4504 9.88094 23.3691C9.79964 23.2878 9.73515 23.1913 9.69115 23.085C9.64716 22.9788 9.62451 22.865 9.62451 22.75C9.62451 22.635 9.64716 22.5212 9.69115 22.415C9.73515 22.3087 9.79964 22.2122 9.88094 22.1309L18.013 14L9.88094 5.86906C9.71675 5.70488 9.62451 5.48219 9.62451 5.25C9.62451 5.01781 9.71675 4.79512 9.88094 4.63094C10.0451 4.46675 10.2678 4.37451 10.5 4.37451C10.7322 4.37451 10.9549 4.46675 11.1191 4.63094L19.8691 13.3809C19.9504 13.4622 20.015 13.5587 20.059 13.6649C20.103 13.7712 20.1257 13.885 20.1257 14C20.1257 14.115 20.103 14.2288 20.059 14.3351C20.015 14.4413 19.9504 14.5378 19.8691 14.6191Z",fill:(0,gs.qD)(T)})})})]})]})]})})})}rN.propTypes={},rN.defaultProps={};const bN=(t,e="")=>{const{labelPosition:i,isShowLabel:o,tickerLabelShape:a}=t,l={...(0,Ob.qD)({ | |
| 4192 | -attributeValue:t?.labelPadding,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"padding",device:e})};switch("right"===i?(l.right="0",l.left="auto"):(l.left="0",l.right="auto"),l.display=o?"flex":"none",a){case"small":l["clip-path"]="polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%)";break;case"medium":l["clip-path"]="polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%)";break;case"large":l["clip-path"]="polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%)";break;default:l["clip-path"]=""}const n=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,gs.qD)(t?.labelColor),background:(0,gs.qD)(t?.labelBackgroundColor),...l,...(0,P.qD)(t?.labelTypography,e,n),...(0,fc.qD)(t?.labelTextStroke,e),...(0,pc.qD)(t?.labelTextShadow)}},cN=t=>({color:(0,gs.qD)(t?.labelColorH),background:(0,gs.qD)(t?.labelBackgroundColorH),...(0,Ob.qD)({attributeValue:t?.labelColorTransition,attributeObjectKey:"value",defaultValue:0, | |
| 4193 | -unitDefaultValue:"s",property:"transition-duration"})}),dN=(t,e="")=>{const{tickerHeight:i,isPositionSticky:o,stickyPosition:a}=t,l=(0,M.Zy)(i,{value:50,valueUnit:"px"}),n={...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"height",device:e})};return o&&"up"===a?(n.position="fixed",n.top="32px",n.left="0",n.width="100%"):o&&"down"===a&&(n.position="fixed",n.bottom="0",n.left="0",n.width="100%"),n},uN=t=>({background:(0,gs.qD)(t?.navigatorBgColor)}),pN=(t,e)=>{const i={};switch(t?.tickerListStyle){case"none":default:i["list-style"]="none";break;case"circle":i["list-style"]="circle";break;case"box":i["list-style"]="square"}const o=t.tickerTypographyGlobal?t.tickerTypographyGlobal:"";return{...i,...(0,P.qD)(t?.tickerTypography,e,o),...(0,fc.qD)(t?.tickerTextStroke,e),...(0,pc.qD)(t?.tickerTextShadow)}};(0,M.xV)(nN.UU)&&(0,o.registerBlockType)(nN.UU,{attributes:nN.uK,edit:function(t){ | |
| 4194 | -const{isSelected:e,attributes: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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label",bN(i),bN(i,"Tablet"),bN(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label:hover",cN(i),cN(i),cN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee",(t=>({color:(0,gs.qD)(t?.tickerColor),background:(0,gs.qD)(t?.tickerBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee:hover",(t=>({color:(0,gs.qD)(t?.tickerColorH),background:(0,gs.qD)(t?.tickerBgColorH),...(0,Ob.qD)({attributeValue:t?.tickerColorTransition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}))(i)), | |
| 4195 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker",dN(i),dN(i,"Tablet"),dN(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons",(t=>{const e={};return e.display=t?.showTickerNavigator?"flex":"none","right"===t?.navigatorPosition?(e.right="0",e.left="auto"):(e.left="0",e.right="auto"),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__prev",uN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__next",uN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__pause",uN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__list",pN(i),pN(i,"Tablet"),pN(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--date",(t=>{const e={};return e.display=t?.isShowTime?"inline":"none",e})(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(lN,{...t}),(0,L.jsx)(rN,{...t})]})},icon:(0,L.jsx)("span",{ | |
| 4196 | -className:"ablocks-icon ablocks-icon--news-ticker"}),save:()=>null});var mN=i(60273);const hN=[{label:(0,z.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,z.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,z.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],gN=[{label:(0,z.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,z.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,z.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],fN=[{label:(0,z.__)("Checkout","ablocks"),value:"_xclick"},{label:(0,z.__)("Donation","ablocks"),value:"_donations"},{label:(0,z.__)("Subscription","ablocks"),value:"_xclick-subscriptions"}],yN=[{label:(0,z.__)("USD","ablocks"),value:"USD"},{label:(0,z.__)("AUD","ablocks"),value:"AUD"},{label:(0,z.__)("BRL","ablocks"),value:"BRL"},{label:(0, | |
| 4197 | -z.__)("CAD","ablocks"),value:"CAD"},{label:(0,z.__)("CNY","ablocks"),value:"CNY"},{label:(0,z.__)("CZK","ablocks"),value:"CZK"},{label:(0,z.__)("DKK","ablocks"),value:"DKK"},{label:(0,z.__)("EUR","ablocks"),value:"EUR"},{label:(0,z.__)("HKD","ablocks"),value:"HKD"},{label:(0,z.__)("HUF","ablocks"),value:"HUF"},{label:(0,z.__)("ILS","ablocks"),value:"ILS"},{label:(0,z.__)("JPY","ablocks"),value:"JPY"},{label:(0,z.__)("MYR","ablocks"),value:"MYR"},{label:(0,z.__)("MXN","ablocks"),value:"MXN"},{label:(0,z.__)("TWD","ablocks"),value:"TWD"},{label:(0,z.__)("NZD","ablocks"),value:"NZD"},{label:(0,z.__)("NOK","ablocks"),value:"NOK"},{label:(0,z.__)("PHP","ablocks"),value:"PHP"},{label:(0,z.__)("PLN","ablocks"),value:"PLN"},{label:(0,z.__)("GBP","ablocks"),value:"GBP"},{label:(0,z.__)("SGD","ablocks"),value:"SGD"},{label:(0,z.__)("SEK","ablocks"),value:"SEK"},{label:(0,z.__)("CHF","ablocks"),value:"CHF"},{label:(0,z.__)("THB","ablocks"),value:"THB"}],TN=[{label:"Daily",value:"D"},{ | |
| 4198 | -label:"Weekly",value:"W"},{label:"Monthly",value:"M"},{label:"Yearly",value:"Y"}];function HN(t){const{attributes:e,setAttributes:i}=t,{buttonType:o,text:a,position:n,alignment:s,buttonSize:r,textShadow:b,typography:c,textColor:d,textColorH:u,background:p,backgroundH:m,padding:h,iconPosition:g,showIcon:f,iconSpace:y,paypalAccount:T,trxType:H,itemName:M,price:x,currency:k,quantity:v,shippingPrice:_,tax:R,isAmountFixed:S,isAutoRenewal:W,billingCycle:U,redirectionAfterPayment:P,sandboxMode:j,sandboxEmail:w,openInNewTab:D,customMessage:N,errorMessage:I}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-paypal-button/",children:[(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Pricing & Payments","ablocks"),initialOpen:!0,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("PayPal Account","ablocks"),attributeName:"paypalAccount",attributeValue:T,setAttributes:i, | |
| 4199 | -placeholder:"[email protected]",isInline:!1,disableDynamicContent:!0}),(0,L.jsx)("span",{className:"ablocks-paypal-settings-msg",children:(0,z.__)("Transactions through your PayPal button will be registered to this account.","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("Transaction Type","ablocks"),options:fN,isResponsive:!1,attributeValue:H,attributeName:"trxType",setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:M,setAttributes:i,isInline:!1,disableDynamicContent:!0}),("_xclick"===H||"_xclick-subscriptions"===H)&&(0,L.jsx)(js,{label:(0,z.__)("Price","ablocks"),attributeName:"price",attributeValue:x,setAttributes:i,isInline:!0}),"_donations"===H&&S&&(0,L.jsx)(js,{label:(0,z.__)("Amount","ablocks"),attributeName:"price",attributeValue:x,setAttributes:i,isInline:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Currency","ablocks"),options:yN,isResponsive:!1,attributeValue:k||"usd",attributeName:"currency",setAttributes:i | |
| 4200 | -}),"_xclick"===H&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(js,{label:(0,z.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:v,setAttributes:i,isInline:!0}),(0,L.jsx)(js,{label:(0,z.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:_,setAttributes:i,isInline:!0}),(0,L.jsx)(js,{label:(0,z.__)("Tax (%)","ablocks"),attributeName:"tax",attributeValue:R,setAttributes:i,isInline:!0})]}),"_donations"===H&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Vt,{label:(0,z.__)("Fixed Amount","ablocks"),attributeValue:S,setAttributes:i,attributeName:"isAmountFixed",isResponsive:!1})}),"_xclick-subscriptions"===H&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Auto Renewal","ablocks"),attributeValue:W,setAttributes:i,attributeName:"isAutoRenewal",isResponsive:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Billing Cycle","ablocks"),options:TN,isResponsive:!1,attributeValue:U||"M",attributeName:"billingCycle",setAttributes:i})]})]})}),(0,L.jsx)(A.PanelBody,{ | |
| 4201 | -title:(0,z.__)("Button","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),attributeName:"position",attributeValue:n,setAttributes:i,options:hN,isInline:!1}),"stretch"===n?.value&&(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,options:gN,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),options:[{label:"Default",value:"#032e82"},{label:"Danger",value:"#dc3545"},{label:"Info",value:"#0dcaf0"},{label:"Success",value:"#198754"},{label:"Warning",value:"#fd7e14"},{label:"Primary",value:"#0d6efd"}],isResponsive:!1,attributeValue:o||"Primary",attributeName:"buttonType",setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"text",attributeValue:a,setAttributes:i,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),options:[{label:"Extra small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium", | |
| 4202 | -value:"md"},{label:"Large",value:"lg"},{label:"Extra large",value:"xl"}],isResponsive:!1,attributeValue:r||"sm",attributeName:"buttonSize",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:f,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:d||"#000000",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:p||"#ddd", | |
| 4203 | -setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:m,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:h,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"), | |
| 4204 | -attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),f&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Icon position","ablocks"),options:[{label:"Before",value:"left"},{label:"After",value:"right"}],isResponsive:!1,attributeValue:g||"left",attributeName:"iconPosition",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Icon spacing","ablocks"),min:0,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:y,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:mN.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Nd,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,L.jsxs)(A.PanelBody,{title:(0, | |
| 4205 | -z.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Ub,{label:(0,z.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:P,setAttributes:i,placeholder:"https://ablocks.pro/",isInline:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Sandbox Mode","ablocks"),attributeValue:j,setAttributes:i,attributeName:"sandboxMode",isResponsive:!1}),j&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Sandbox Email","ablocks"),attributeName:"sandboxEmail",attributeValue:w,setAttributes:i,isInline:!1}),(0,L.jsx)("span",{className:"ablocks-paypal-settings-msg",children:"This is the email provided by PayPal when setting up a sandbox through your developer account. It allows you to simulate and test the purchase process."})]}),(0,L.jsx)(Vt,{label:(0,z.__)("Open in New Tab","ablocks"),attributeValue:D,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Custom Message","ablocks"),attributeValue:N, | |
| 4206 | -setAttributes:i,attributeName:"customMessage",isResponsive:!1}),N&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:I,setAttributes:i,isInline:!1,disableDynamicContent:!0})})]})]})})})}HN.propTypes={};const MN={UU:"ablocks/paypal-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string",default:""},price:{type:"number",default:"0"},currency:{ | |
| 4207 | -type:"string",default:"USD"},quantity:{type:"number",default:"1"},shippingPrice:{type:"number",default:"0"},tax:{type:"number",default:"0"},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string", | |
| 4208 | -default:"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-paypal"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{type:"string", | |
| 4209 | -default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{type:"object", | |
| 4210 | -default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default", | |
| 4211 | -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:"", | |
| 4212 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}, | |
| 4213 | -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:""}},position:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"", | |
| 4214 | -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSpace:{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",widthTypeTablet:"",widthTypeMobile:"", | |
| 4215 | -customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px", | |
| 4216 | -unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"", | |
| 4217 | -hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 4217 | +"rtl"===this.slideDirection?(this.currentPosition-=50,this.currentPosition<-this.contentWidth&&(this.currentPosition=this.parentWidth)):(this.currentPosition+=50,this.currentPosition>this.parentWidth&&(this.currentPosition=-this.contentWidth)),this.marqueeContent.style.transform=`translateX(${this.currentPosition}px)`}destroy(){this.removeHoverEvents();const t=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__pause");t&&t.removeEventListener("click",this.handleTogglePause);const e=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__next");e&&e.removeEventListener("click",this.handleNext);const i=this.marqueeElement.querySelector(".ablocks-block-news-ticker--icons__prev");i&&i.removeEventListener("click",this.handlePrev),window.cancelAnimationFrame(this.animationFrameId),window.removeEventListener("resize",this.handleResize)}};function wN(t){ | |
| 4218 | +const{attributes:e,setAttributes:i,className:o=""}=t,{block_id:a,slideSpeed:n,stickyLabel:s,stickyLabelTag:r,slideDirection:b,selectedPosts:c,selectedPages:d,isPauseOnOver:u,queryType:p,lists:m,_position:h,_width:g,postLink:f,pageLink:y,navigatorColor:T}=e;let H=0;(0,Yt.useEffect)(()=>{const t=(0,M.bu)(`.ablocks-block-${a}`);let e;return t&&(e=new jN(t,{slideSpeed:n,slideDirection:b,isPauseOnOver:u,currentPosition:H})),()=>{e&&(H=e.currentPosition,e.destroy())}},[u,n,b,a]),(0,Yt.useEffect)(()=>{"posts"===p?i({selectedPages:[]}):"pages"===p&&i({selectedPosts:[]})},[p]);const x=(t,e)=>{const i="object"==typeof e&&null!==e?e:[e];return t?t.filter(t=>i.includes(t.id)):[]},k=x(MN("page"),d),v=x(MN("post"),c),_=t=>{const e=new Date(t),i=new Date,o=Math.floor((i-e)/1e3),a={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(const t in a){const e=Math.floor(o/a[t]);if(e>=1)return`${e} ${t}${e>1?"s":""} ago`}return"Just now" | |
| 4219 | +},{positionType:R}=h,{widthType:S}=g,W=`${"fixed"===R?"ablocks-block-news-ticker--fixed":"absolute"===R?"ablocks-block-news-ticker--absolute":""} ${"auto"===S?"ablocks-block-news-ticker--auto":"default"===S?"ablocks-block-news-ticker--default":""}`,P=v.length>0||k.length>0||"customText"===p&&m.length>0;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(Yb.A,{blockId:a,name:UN.UU,attributes:{...e},className:W,children:(0,I.jsxs)("div",{className:`ablocks-block-news-ticker${o}`,"data-slide-speed":n,children:[(0,I.jsx)($c,{tagName:r,value:s,className:"ablocks-block-news-ticker__label",onChange:t=>i({stickyLabel:t}),placeholder:(0,L.__)("Breaking News","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-block-news-ticker__marquee",children:[(0,I.jsx)("div",{className:"ablocks-block-news-ticker_marquee--content",children:(0,I.jsxs)("ul",{className:"ablocks-block-news-ticker__list",children:["customText"===p&&(0,I.jsx)(I.Fragment,{children:m.map(t=>t.link?.href?.length>0?(0,I.jsx)("a",{ | |
| 4220 | +href:t.link.href,target:t.link.linkTarget?"_blank":"_self",rel:t.link.linkTarget?"noopener noreferrer":void 0,children:(0,I.jsx)("li",{className:"ablocks-block-news-ticker__custom-text",children:t.text})},`list-${t.id}`):(0,I.jsx)("li",{className:"ablocks-block-news-ticker__custom-text",children:t.text},`list-${t.id}`))}),P?(0,I.jsxs)(I.Fragment,{children:[v.map(t=>f?(0,I.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,I.jsxs)("li",{children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`post-${t.id}`)},t.id):(0,I.jsxs)("li",{children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`post-${t.id}`)),k.map(t=>y?(0,I.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,I.jsxs)("li",{children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`page-${t.id}`)},t.id):(0,I.jsxs)("li",{ | |
| 4221 | +children:[t.title.rendered,(0,I.jsx)("span",{className:"ablocks-block-news-ticker--date",children:_(t.date)})]},`page-${t.id}`))]}):(0,I.jsx)("li",{children:(0,L.__)("No items selected","ablocks")})]})}),(0,I.jsxs)("div",{className:"ablocks-block-news-ticker--icons",children:[(0,I.jsx)("button",{"aria-label":(0,L.__)("Previous Button","ablocks"),title:(0,L.__)("Previous Button","ablocks"),className:"ablocks-block-news-ticker--icons__prev",children:(0,I.jsx)("svg",{width:"24",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{ | |
| 4222 | +d:"M18.119 22.1309C18.2003 22.2122 18.2648 22.3087 18.3088 22.415C18.3528 22.5212 18.3755 22.635 18.3755 22.75C18.3755 22.865 18.3528 22.9788 18.3088 23.085C18.2648 23.1913 18.2003 23.2878 18.119 23.3691C18.0378 23.4504 17.9412 23.5148 17.835 23.5588C17.7288 23.6028 17.615 23.6255 17.5 23.6255C17.385 23.6255 17.2712 23.6028 17.165 23.5588C17.0587 23.5148 16.9622 23.4504 16.8809 23.3691L8.13092 14.6191C8.04957 14.5378 7.98503 14.4413 7.941 14.3351C7.89696 14.2288 7.8743 14.115 7.8743 14C7.8743 13.885 7.89696 13.7712 7.941 13.6649C7.98503 13.5587 8.04957 13.4622 8.13092 13.3809L16.8809 4.63094C17.0451 4.46675 17.2678 4.37451 17.5 4.37451C17.7322 4.37451 17.9549 4.46675 18.119 4.63094C18.2832 4.79512 18.3755 5.01781 18.3755 5.25C18.3755 5.48219 18.2832 5.70488 18.119 5.86906L9.98702 14L18.119 22.1309Z",fill:(0,Hs.qD)(T)})})}),(0,I.jsx)("button",{"aria-label":(0,L.__)("Pause Button","ablocks"),title:(0,L.__)("Pause Button","ablocks"),className:"ablocks-block-news-ticker--icons__pause", | |
| 4223 | +children:(0,I.jsxs)("svg",{width:"28",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("rect",{x:"9",y:"4",width:"1.55556",height:"19.25",fill:(0,Hs.qD)(T)}),(0,I.jsx)("rect",{x:"18.2",y:"4",width:"1.55556",height:"19.25",fill:(0,Hs.qD)(T)})]})}),(0,I.jsx)("button",{"aria-label":(0,L.__)("Next Button","ablocks"),title:(0,L.__)("Next Button","ablocks"),className:"ablocks-block-news-ticker--icons__next",children:(0,I.jsx)("svg",{width:"24",height:"50",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{ | |
| 4224 | +d:"M19.8691 14.6191L11.1191 23.3691C11.0378 23.4504 10.9413 23.5148 10.835 23.5588C10.7288 23.6028 10.615 23.6255 10.5 23.6255C10.385 23.6255 10.2712 23.6028 10.165 23.5588C10.0587 23.5148 9.96223 23.4504 9.88094 23.3691C9.79964 23.2878 9.73515 23.1913 9.69115 23.085C9.64716 22.9788 9.62451 22.865 9.62451 22.75C9.62451 22.635 9.64716 22.5212 9.69115 22.415C9.73515 22.3087 9.79964 22.2122 9.88094 22.1309L18.013 14L9.88094 5.86906C9.71675 5.70488 9.62451 5.48219 9.62451 5.25C9.62451 5.01781 9.71675 4.79512 9.88094 4.63094C10.0451 4.46675 10.2678 4.37451 10.5 4.37451C10.7322 4.37451 10.9549 4.46675 11.1191 4.63094L19.8691 13.3809C19.9504 13.4622 20.015 13.5587 20.059 13.6649C20.103 13.7712 20.1257 13.885 20.1257 14C20.1257 14.115 20.103 14.2288 20.059 14.3351C20.015 14.4413 19.9504 14.5378 19.8691 14.6191Z",fill:(0,Hs.qD)(T)})})})]})]})]})})})}wN.propTypes={},wN.defaultProps={};const zN=(t,e="")=>{const{labelPosition:i,isShowLabel:o,tickerLabelShape:a}=t,l={...(0,Eb.qD)({ | |
| 4225 | +attributeValue:t?.labelPadding,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:10,unitDefaultValue:"px",property:"padding",device:e})};switch("right"===i?(l.right="0",l.left="auto"):(l.left="0",l.right="auto"),l.display=o?"flex":"none",a){case"small":l["clip-path"]="polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%)";break;case"medium":l["clip-path"]="polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%)";break;case"large":l["clip-path"]="polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%)";break;default:l["clip-path"]=""}const n=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,Hs.qD)(t?.labelColor),background:(0,Hs.qD)(t?.labelBackgroundColor),...l,...(0,U.qD)(t?.labelTypography,e,n),...(0,Mc.qD)(t?.labelTextStroke,e),...(0,fc.qD)(t?.labelTextShadow)}},CN=t=>({color:(0,Hs.qD)(t?.labelColorH),background:(0,Hs.qD)(t?.labelBackgroundColorH),...(0,Eb.qD)({attributeValue:t?.labelColorTransition,attributeObjectKey:"value",defaultValue:0, | |
| 4226 | +unitDefaultValue:"s",property:"transition-duration"})}),AN=(t,e="")=>{const{tickerHeight:i,isPositionSticky:o,stickyPosition:a}=t,l=(0,M.Zy)(i,{value:50,valueUnit:"px"}),n={...(0,Eb.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:l.value,unitDefaultValue:l.valueUnit,property:"height",device:e})};return o&&"up"===a?(n.position="fixed",n.top="32px",n.left="0",n.width="100%"):o&&"down"===a&&(n.position="fixed",n.bottom="0",n.left="0",n.width="100%"),n},LN=t=>({background:(0,Hs.qD)(t?.navigatorBgColor)}),DN=(t,e)=>{const i={};switch(t?.tickerListStyle){case"none":default:i["list-style"]="none";break;case"circle":i["list-style"]="circle";break;case"box":i["list-style"]="square"}const o=t.tickerTypographyGlobal?t.tickerTypographyGlobal:"";return{...i,...(0,U.qD)(t?.tickerTypography,e,o),...(0,Mc.qD)(t?.tickerTextStroke,e),...(0,fc.qD)(t?.tickerTextShadow)}};(0,M.xV)(UN.UU)&&(0,o.registerBlockType)(UN.UU,{attributes:UN.uK,edit:function(t){ | |
| 4227 | +const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{};return t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label",zN(i),zN(i,"Tablet"),zN(i,"Mobile"),e(t=>zN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__label:hover",CN(i),CN(i),CN(i),e(t=>CN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee",(t=>({color:(0,Hs.qD)(t?.tickerColor),background:(0,Hs.qD)(t?.tickerBgColor)}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__marquee:hover",(t=>({color:(0,Hs.qD)(t?.tickerColorH),background:(0,Hs.qD)(t?.tickerBgColorH),...(0,Eb.qD)({attributeValue:t?.tickerColorTransition, | |
| 4228 | +attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}))(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker",AN(i),AN(i,"Tablet"),AN(i,"Mobile"),e(t=>AN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons",(t=>{const e={};return e.display=t?.showTickerNavigator?"flex":"none","right"===t?.navigatorPosition?(e.right="0",e.left="auto"):(e.left="0",e.right="auto"),e})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__prev",LN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__next",LN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--icons__pause",LN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker__list",DN(i),DN(i,"Tablet"),DN(i,"Mobile"),e(t=>DN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-block-news-ticker--date",(t=>{const e={};return e.display=t?.isShowTime?"inline":"none",e})(i)),t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0, | |
| 4229 | +I.jsx)("style",{children:s}),e&&(0,I.jsx)(PN,{...t}),(0,I.jsx)(wN,{...t})]})},icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--news-ticker"}),save:()=>null});var NN=i(60273);const IN=[{label:(0,L.__)("Left","ablocks"),value:"left",icon:"arrow-left"},{label:(0,L.__)("Center","ablocks"),value:"center",icon:"wrap"},{label:(0,L.__)("Right","ablocks"),value:"right",icon:"arrow-right"},{label:(0,L.__)("Stretch","ablocks"),value:"stretch",icon:"align-center"}],VN=[{label:(0,L.__)("start","ablocks"),value:"start",icon:"left"},{label:(0,L.__)("center","ablocks"),value:"center",icon:"center"},{label:(0,L.__)("end","ablocks"),value:"end",icon:"right"},{label:(0,L.__)("space-between","ablocks"),value:"space-between",icon:"justify"}],ON=[{label:(0,L.__)("Checkout","ablocks"),value:"_xclick"},{label:(0,L.__)("Donation","ablocks"),value:"_donations"},{label:(0,L.__)("Subscription","ablocks"),value:"_xclick-subscriptions"}],YN=[{label:(0,L.__)("USD","ablocks"),value:"USD"},{label:(0, | |
| 4230 | +L.__)("AUD","ablocks"),value:"AUD"},{label:(0,L.__)("BRL","ablocks"),value:"BRL"},{label:(0,L.__)("CAD","ablocks"),value:"CAD"},{label:(0,L.__)("CNY","ablocks"),value:"CNY"},{label:(0,L.__)("CZK","ablocks"),value:"CZK"},{label:(0,L.__)("DKK","ablocks"),value:"DKK"},{label:(0,L.__)("EUR","ablocks"),value:"EUR"},{label:(0,L.__)("HKD","ablocks"),value:"HKD"},{label:(0,L.__)("HUF","ablocks"),value:"HUF"},{label:(0,L.__)("ILS","ablocks"),value:"ILS"},{label:(0,L.__)("JPY","ablocks"),value:"JPY"},{label:(0,L.__)("MYR","ablocks"),value:"MYR"},{label:(0,L.__)("MXN","ablocks"),value:"MXN"},{label:(0,L.__)("TWD","ablocks"),value:"TWD"},{label:(0,L.__)("NZD","ablocks"),value:"NZD"},{label:(0,L.__)("NOK","ablocks"),value:"NOK"},{label:(0,L.__)("PHP","ablocks"),value:"PHP"},{label:(0,L.__)("PLN","ablocks"),value:"PLN"},{label:(0,L.__)("GBP","ablocks"),value:"GBP"},{label:(0,L.__)("SGD","ablocks"),value:"SGD"},{label:(0,L.__)("SEK","ablocks"),value:"SEK"},{label:(0,L.__)("CHF","ablocks"),value:"CHF" | |
| 4231 | +},{label:(0,L.__)("THB","ablocks"),value:"THB"}],XN=[{label:(0,L.__)("Daily","ablocks"),value:"D"},{label:(0,L.__)("Weekly","ablocks"),value:"W"},{label:(0,L.__)("Monthly","ablocks"),value:"M"},{label:(0,L.__)("Yearly","ablocks"),value:"Y"}];function BN(t){const{attributes:e,setAttributes:i}=t,{buttonType:o,text:a,position:n,alignment:s,buttonSize:r,textShadow:b,typography:c,textColor:d,textColorH:u,background:p,backgroundH:m,padding:h,iconPosition:g,showIcon:f,iconSpace:y,paypalAccount:T,trxType:H,itemName:M,price:x,currency:k,quantity:v,shippingPrice:_,tax:R,isAmountFixed:S,isAutoRenewal:W,billingCycle:P,redirectionAfterPayment:U,sandboxMode:j,sandboxEmail:w,openInNewTab:z,customMessage:C,errorMessage:A}=e;return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsxs)(_b,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-paypal-button/",children:[(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Pricing & Payments","ablocks"),initialOpen:!0, | |
| 4232 | +children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("PayPal Account","ablocks"),attributeName:"paypalAccount",attributeValue:T,setAttributes:i,placeholder:"[email protected]",isInline:!1,disableDynamicContent:!0}),(0,I.jsx)("span",{className:"ablocks-paypal-settings-msg",children:(0,L.__)("Transactions through your PayPal button will be registered to this account.","ablocks")}),(0,I.jsx)(It,{}),(0,I.jsx)(Ut,{label:(0,L.__)("Transaction Type","ablocks"),options:ON,isResponsive:!1,attributeValue:H,attributeName:"trxType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Item Name","ablocks"),attributeName:"itemName",attributeValue:M,setAttributes:i,isInline:!1,disableDynamicContent:!0}),("_xclick"===H||"_xclick-subscriptions"===H)&&(0,I.jsx)(As,{label:(0,L.__)("Price","ablocks"),attributeName:"price",attributeValue:x,setAttributes:i,isInline:!0}),"_donations"===H&&S&&(0,I.jsx)(As,{label:(0,L.__)("Amount","ablocks"),attributeName:"price",attributeValue:x, | |
| 4233 | +setAttributes:i,isInline:!0}),(0,I.jsx)(Ut,{label:(0,L.__)("Currency","ablocks"),options:YN,isResponsive:!1,attributeValue:k||"usd",attributeName:"currency",setAttributes:i}),"_xclick"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(As,{label:(0,L.__)("Quantity","ablocks"),attributeName:"quantity",attributeValue:v,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Shipping Price","ablocks"),attributeName:"shippingPrice",attributeValue:_,setAttributes:i,isInline:!0}),(0,I.jsx)(As,{label:(0,L.__)("Tax (%)","ablocks"),attributeName:"tax",attributeValue:R,setAttributes:i,isInline:!0})]}),"_donations"===H&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ot,{label:(0,L.__)("Fixed Amount","ablocks"),attributeValue:S,setAttributes:i,attributeName:"isAmountFixed",isResponsive:!1})}),"_xclick-subscriptions"===H&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ot,{label:(0,L.__)("Auto Renewal","ablocks"),attributeValue:W,setAttributes:i,attributeName:"isAutoRenewal",isResponsive:!1}),(0,I.jsx)(Ut,{ | |
| 4234 | +label:(0,L.__)("Billing Cycle","ablocks"),options:XN,isResponsive:!1,attributeValue:P||"M",attributeName:"billingCycle",setAttributes:i})]})]})}),(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Button","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Jt,{label:(0,L.__)("Position","ablocks"),attributeName:"position",attributeValue:n,setAttributes:i,options:IN,isInline:!1}),"stretch"===n?.value&&(0,I.jsx)(Jt,{label:(0,L.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,options:VN,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Type","ablocks"),options:[{label:(0,L.__)("Default","ablocks"),value:"#032e82"},{label:(0,L.__)("Danger","ablocks"),value:"#dc3545"},{label:(0,L.__)("Info","ablocks"),value:"#0dcaf0"},{label:(0,L.__)("Success","ablocks"),value:"#198754"},{label:(0,L.__)("Warning","ablocks"),value:"#fd7e14"},{label:(0,L.__)("Primary","ablocks"),value:"#0d6efd"}],isResponsive:!1,attributeValue:o||"Primary", | |
| 4235 | +attributeName:"buttonType",setAttributes:i}),(0,I.jsx)(Kl,{label:(0,L.__)("Text","ablocks"),attributeName:"text",attributeValue:a,setAttributes:i,isInline:!1}),(0,I.jsx)(Ut,{label:(0,L.__)("Sizes","ablocks"),options:[{label:(0,L.__)("Extra small","ablocks"),value:"xs"},{label:(0,L.__)("Small","ablocks"),value:"sm"},{label:(0,L.__)("Medium","ablocks"),value:"md"},{label:(0,L.__)("Large","ablocks"),value:"lg"},{label:(0,L.__)("Extra large","ablocks"),value:"xl"}],isResponsive:!1,attributeValue:r||"sm",attributeName:"buttonSize",setAttributes:i}),(0,I.jsx)(Ot,{label:(0,L.__)("Show Icon","ablocks"),attributeValue:f,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]}),style:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(wc,{label:(0,L.__)("Typography","ablocks"),attributeName:"typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,I.jsx)(Hc,{label:(0,L.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0, | |
| 4236 | +I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,I.jsx)(At,{normal:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColor",attributeValue:d||"#000000",setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"background",attributeValue:p||"#ddd",setAttributes:i})]}),hover:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeName:"textColorH",attributeValue:u,setAttributes:i}),(0,I.jsx)(Ws,{label:(0,L.__)("Background","ablocks"),isGradient:!0,attributeName:"backgroundH",attributeValue:m,setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.transition||0,attributeName:"transition",setAttributes:i})]})}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0, | |
| 4237 | +I.jsx)(Us,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(xt,{label:(0,L.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:h,setAttributes:i}),(0,I.jsx)(It,{}),(0,I.jsx)(at,{label:(0,L.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,I.jsx)(jr,{label:(0,L.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})}),f&&(0,I.jsx)(N.PanelBody,{title:(0,L.__)("Icon","ablocks"),initialOpen:!1,children:(0,I.jsx)(Ub,{content:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Yd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i}),(0,I.jsx)(Ut,{label:(0,L.__)("Icon position","ablocks"),options:[{label:(0,L.__)("Before","ablocks"),value:"left"},{label:(0,L.__)("After","ablocks"),value:"right"}],isResponsive:!1,attributeValue:g||"left",attributeName:"iconPosition",setAttributes:i}),(0,I.jsx)(_t,{label:(0,L.__)("Icon spacing","ablocks"),min:0,max:100, | |
| 4238 | +hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSpace",attributeValue:y,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:NN.e,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Bd,{label:(0,L.__)("Icon","ablocks"),attributes:e,setAttributes:i})})})}),(0,I.jsxs)(N.PanelBody,{title:(0,L.__)("Additional Options","ablocks"),initialOpen:!1,children:[(0,I.jsx)(zb,{label:(0,L.__)("Redirection After Payment","ablocks"),attributeName:"redirectionAfterPayment",attributeValue:U,setAttributes:i,placeholder:"https://ablocks.pro/",isInline:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Sandbox Mode","ablocks"),attributeValue:j,setAttributes:i,attributeName:"sandboxMode",isResponsive:!1}),j&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Kl,{label:(0,L.__)("Sandbox Email","ablocks"),attributeName:"sandboxEmail",attributeValue:w,setAttributes:i,isInline:!1}),(0,I.jsx)("span",{ | |
| 4239 | +className:"ablocks-paypal-settings-msg",children:"This is the email provided by PayPal when setting up a sandbox through your developer account. It allows you to simulate and test the purchase process."})]}),(0,I.jsx)(Ot,{label:(0,L.__)("Open in New Tab","ablocks"),attributeValue:z,setAttributes:i,attributeName:"openInNewTab",isResponsive:!1}),(0,I.jsx)(Ot,{label:(0,L.__)("Custom Message","ablocks"),attributeValue:C,setAttributes:i,attributeName:"customMessage",isResponsive:!1}),C&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Kl,{label:(0,L.__)("Error Message","ablocks"),attributeName:"errorMessage",attributeValue:A,setAttributes:i,isInline:!1,disableDynamicContent:!0})})]})]})})})}BN.propTypes={};const EN={UU:"ablocks/paypal-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{ | |
| 4240 | +type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"1"},shippingPrice:{type:"number",default:"0"},tax:{type:"number",default:"0"},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{ | |
| 4241 | +type:"string",default:"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-paypal"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{ | |
| 4242 | +type:"string",default:""},iconHoverColor:{type:"string",default:""},iconHoverBgColor:{type:"string",default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px",transitionDuration:""}},iconBoxShadow:{ | |
| 4243 | +type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default", | |
| 4244 | +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:"", | |
| 4245 | +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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"", | |
| 4246 | +unitMobile:""}},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:""}},position:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},alignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"", | |
| 4247 | +vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},iconSpace:{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",widthTypeTablet:"", | |
| 4248 | +widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 4249 | +unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"", | |
| 4250 | +positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 4218 | 4251 | 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:"", |
| 4219 | 4252 | 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:"", |
| 4220 | 4253 | 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:{ |
| 4221 | 4254 | 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"}}, |
| 4222 | -_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 xN(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:a,iconPosition:n,iconClass:r,showIcon:b,alignment:c,iconImageID:d,iconImageUrl:u}=e;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:c,setAttributes:i})}),(0,L.jsx)(Nb.A,{blockId:o,name:MN.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily, | |
| 4223 | -weight:e.typography?.weight}],children:(0,L.jsxs)("div",{className:s()("ablocks-paypal-button",`ablocks-paypal-button--${a}`,{[`ablocks-paypal-button--icon-${n}`]:r&&n||d&&u}),children:[b&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(Yc,{tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-paypal-button__text",onChange:t=>i({text:t})})]})})]})}xN.propTypes={};const kN=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},vN=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,gs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{ | |
| 4224 | -weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,gs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,P.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},_N=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,gs.qD)(t?.textColorH),background:(0,gs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},RN=t=>({color:(0,gs.qD)(t?.dropCapsTextColor)}),SN=t=>({...(0,pc.qD)(t?.textShadow)});function WN(t){ | |
| 4225 | -const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,L.jsx)(oc,{blockId:i,name:MN.UU,attributes:e,children:(0,L.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,L.jsx)("input",{type:"hidden",name:"business",value:c}),(0,L.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,L.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,L.jsx)("input",{type:"hidden",name:"custom",value:v}),(0,L.jsx)("input",{type:"hidden",name:"currency_code",value:m}),(0,L.jsx)("input",{type:"hidden",name:"return",value:M | |
| 4226 | -}),"_xclick"===d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("input",{type:"hidden",name:"amount",value:p}),(0,L.jsx)("input",{type:"hidden",name:"quantity",value:h}),(0,L.jsx)("input",{type:"hidden",name:"shipping",value:g})]}),"_donations"===d&&(0,L.jsx)(L.Fragment,{children:y?(0,L.jsx)("input",{type:"hidden",name:"amount",value:p}):(0,L.jsx)("input",{type:"hidden",name:"amount",value:""})}),"_xclick-subscriptions"===d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("input",{type:"hidden",name:"a3",value:p}),(0,L.jsx)("input",{type:"hidden",name:"p3",value:"1"}),(0,L.jsx)("input",{type:"hidden",name:"t3",value:H}),(0,L.jsx)("input",{type:"hidden",name:"src",value:T}),(0,L.jsx)("input",{type:"hidden",name:"no_note",value:"1"})]}),f&&(0,L.jsx)("input",{type:"hidden",name:"tax_rate",value:f}),(0,L.jsxs)("button",{className:s()("ablocks-paypal-button",`ablocks-paypal-button--${o}`,{[`ablocks-paypal-button--icon-${a}`]:l&&a||r&&b}),type:"submit",children:[n&&(0,L.jsx)(Vd,{attributes:e}),(0, | |
| 4227 | -L.jsx)(C.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}WN.propTypes={};function UN(t){const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,L.jsx)(dc,{blockId:i,name:"ablocks/paypal-button",attributes:e,children:(0,L.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,L.jsx)("input",{type:"hidden",name:"business",value:c}),(0,L.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,L.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,L.jsx)("input",{type:"hidden", | |
| 4228 | -name:"custom",value:v}),(0,L.jsx)("input",{type:"hidden",name:"currency_code",value:m}),(0,L.jsx)("input",{type:"hidden",name:"return",value:M}),"_xclick"===d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("input",{type:"hidden",name:"amount",value:p}),(0,L.jsx)("input",{type:"hidden",name:"quantity",value:h}),(0,L.jsx)("input",{type:"hidden",name:"shipping",value:g})]}),"_donations"===d&&(0,L.jsx)(L.Fragment,{children:y?(0,L.jsx)("input",{type:"hidden",name:"amount",value:p}):(0,L.jsx)("input",{type:"hidden",name:"amount",value:""})}),"_xclick-subscriptions"===d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("input",{type:"hidden",name:"a3",value:p}),(0,L.jsx)("input",{type:"hidden",name:"p3",value:"1"}),(0,L.jsx)("input",{type:"hidden",name:"t3",value:H}),(0,L.jsx)("input",{type:"hidden",name:"src",value:T}),(0,L.jsx)("input",{type:"hidden",name:"no_note",value:"1"})]}),f&&(0,L.jsx)("input",{type:"hidden",name:"tax_rate",value:f}),(0,L.jsxs)("button",{ | |
| 4229 | -className:s()("ablocks-paypal-button",`ablocks-paypal-button--${o}`,{[`ablocks-paypal-button--icon-${a}`]:l&&a||r&&b}),type:"submit",children:[n&&(0,L.jsx)(Vd,{attributes:e}),(0,L.jsx)(C.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}UN.propTypes={},(0,M.xV)(MN.UU)&&(0,o.registerBlockType)(MN.UU,{title:"Paypal Button",attributes:MN.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--paypal"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",kN(i,""),kN(i,"Tablet"),kN(i,"Mobile")), | |
| 4230 | -t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button",vN(i),vN(i,"Tablet"),vN(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover",_N(i,""),_N(i,"Tablet"),_N(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",RN(i),RN(i),RN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button .ablocks-paypal-button__text",SN(i),SN(i),SN(i)),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,vd.PT)(i),(0,vd.PT)(i,"Tablet"),(0,vd.PT)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,vd.fW)(i),(0,vd.fW)(i,"Tablet"),(0,vd.fW)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,vd.J_)(i),(0,vd.J_)(i,"Tablet"),(0,vd.J_)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,vd.eG)(i),(0, | |
| 4231 | -vd.eG)(i,"Tablet"),(0,vd.eG)(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,vd.RV)(i),(0,vd.RV)(i,"Tablet"),(0,vd.RV)(i,"Mobile")),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(HN,{...t}),(0,L.jsx)(xN,{...t})]})},save:WN,deprecated:[{attributes:{block_id:{type:"string",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string", | |
| 4232 | -default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"1"},shippingPrice:{type:"number",default:"0"},tax:{type:"number",default:"0"},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string", | |
| 4255 | +_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function FN(t){const{attributes:e,setAttributes:i}=t,{block_id:o,buttonSize:a,iconPosition:n,iconClass:r,showIcon:b,alignment:c,iconImageID:d,iconImageUrl:u}=e;return(0,I.jsxs)(l().Fragment,{children:[(0,I.jsx)(D.BlockControls,{children:(0,I.jsx)(Jc,{attributeValue:c,setAttributes:i})}),(0,I.jsx)(Yb.A,{blockId:o,name:EN.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily, | |
| 4256 | +weight:e.typography?.weight}],children:(0,I.jsxs)("div",{className:s()("ablocks-paypal-button",`ablocks-paypal-button--${a}`,{[`ablocks-paypal-button--icon-${n}`]:r&&n||d&&u}),children:[b&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)($c,{tagName:"span",identifier:"text",value:e.text,withoutInteractiveFormatting:!0,placeholder:e.text,className:"ablocks-paypal-button__text",onChange:t=>i({text:t})})]})})]})}FN.propTypes={};const qN=(t,e="")=>{const{position:i}=t,o={};return"stretch"!==i["value"+e]&&(o["text-align"]=i["value"+e]),{...o}},$N=(t,e="")=>{const{position:i,alignment:o,iconSpace:a}=t,l={};"stretch"===i["value"+e]&&(l.width="100%"),o["value"+e]&&(l["justify-content"]=o["value"+e]),l.background=t?.background?(0,Hs.qD)(t?.background):t?.buttonType;const n=a["valueUnit"+e]||"px";""!==a["value"+e]&&void 0!==a["value"+e]&&(l["column-gap"]=`${a["value"+e]}${n}`);const s=(0,M.Zy)(t?.padding,{unit:"px"}),r=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"}),b=(0,M.Zy)(t.typography,{ | |
| 4257 | +weight:"400"}),d=t.typographyGlobal?t.typographyGlobal:"";return{...l,color:(0,Hs.qD)(t?.textColor),...(0,y.qD)(r,e),...(0,H.qD)(t?.boxShadow,e),...(0,c.qD)(s,"padding",e),...(0,U.qD)(b,e,d),...(0,c.qD)(t?.padding,"padding",e)}},GN=(t,e="")=>{const i={};t.transition&&(i["transition-duration"]=`${t.transition}s`);const o=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,Hs.qD)(t?.textColorH),background:(0,Hs.qD)(t?.backgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},ZN=t=>({color:(0,Hs.qD)(t?.dropCapsTextColor)}),KN=t=>({...(0,fc.qD)(t?.textShadow)});function JN(t){ | |
| 4258 | +const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,I.jsx)(sc,{blockId:i,name:EN.UU,attributes:e,children:(0,I.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,I.jsx)("input",{type:"hidden",name:"business",value:c}),(0,I.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,I.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,I.jsx)("input",{type:"hidden",name:"custom",value:v}),(0,I.jsx)("input",{type:"hidden",name:"currency_code",value:m}),(0,I.jsx)("input",{type:"hidden",name:"return",value:M | |
| 4259 | +}),"_xclick"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}),(0,I.jsx)("input",{type:"hidden",name:"quantity",value:h}),(0,I.jsx)("input",{type:"hidden",name:"shipping",value:g})]}),"_donations"===d&&(0,I.jsx)(I.Fragment,{children:y?(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}):(0,I.jsx)("input",{type:"hidden",name:"amount",value:""})}),"_xclick-subscriptions"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"a3",value:p}),(0,I.jsx)("input",{type:"hidden",name:"p3",value:"1"}),(0,I.jsx)("input",{type:"hidden",name:"t3",value:H}),(0,I.jsx)("input",{type:"hidden",name:"src",value:T}),(0,I.jsx)("input",{type:"hidden",name:"no_note",value:"1"})]}),f&&(0,I.jsx)("input",{type:"hidden",name:"tax_rate",value:f}),(0,I.jsxs)("button",{className:s()("ablocks-paypal-button",`ablocks-paypal-button--${o}`,{[`ablocks-paypal-button--icon-${a}`]:l&&a||r&&b}),type:"submit",children:[n&&(0,I.jsx)(Fd,{attributes:e}),(0, | |
| 4260 | +I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}JN.propTypes={};function QN(t){const{attributes:e}=t,{block_id:i,buttonSize:o,iconPosition:a,iconClass:l,showIcon:n,iconImageID:r,iconImageUrl:b,paypalAccount:c,trxType:d,itemName:u,price:p,currency:m,quantity:h,shippingPrice:g,tax:f,isAmountFixed:y,isAutoRenewal:T,billingCycle:H,redirectionAfterPayment:M,sandboxMode:x,openInNewTab:k,customMessage:v,errorMessage:_}=e,R=x?"https://www.sandbox.paypal.com/cgi-bin/webscr":"https://www.paypal.com/cgi-bin/webscr";return(0,I.jsx)(hc,{blockId:i,name:"ablocks/paypal-button",attributes:e,children:(0,I.jsxs)("form",{action:R,method:"post",target:k?"_blank":"_self",className:"ablocks-paypal-button__form","data-ablocks__error-msg":_,children:[(0,I.jsx)("input",{type:"hidden",name:"business",value:c}),(0,I.jsx)("input",{type:"hidden",name:"cmd",value:d}),(0,I.jsx)("input",{type:"hidden",name:"item_name",value:u}),(0,I.jsx)("input",{type:"hidden", | |
| 4261 | +name:"custom",value:v}),(0,I.jsx)("input",{type:"hidden",name:"currency_code",value:m}),(0,I.jsx)("input",{type:"hidden",name:"return",value:M}),"_xclick"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}),(0,I.jsx)("input",{type:"hidden",name:"quantity",value:h}),(0,I.jsx)("input",{type:"hidden",name:"shipping",value:g})]}),"_donations"===d&&(0,I.jsx)(I.Fragment,{children:y?(0,I.jsx)("input",{type:"hidden",name:"amount",value:p}):(0,I.jsx)("input",{type:"hidden",name:"amount",value:""})}),"_xclick-subscriptions"===d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"hidden",name:"a3",value:p}),(0,I.jsx)("input",{type:"hidden",name:"p3",value:"1"}),(0,I.jsx)("input",{type:"hidden",name:"t3",value:H}),(0,I.jsx)("input",{type:"hidden",name:"src",value:T}),(0,I.jsx)("input",{type:"hidden",name:"no_note",value:"1"})]}),f&&(0,I.jsx)("input",{type:"hidden",name:"tax_rate",value:f}),(0,I.jsxs)("button",{ | |
| 4262 | +className:s()("ablocks-paypal-button",`ablocks-paypal-button--${o}`,{[`ablocks-paypal-button--icon-${a}`]:l&&a||r&&b}),type:"submit",children:[n&&(0,I.jsx)(Fd,{attributes:e}),(0,I.jsx)(D.RichText.Content,{tagName:"span",className:"ablocks-paypal-button__text",value:e.text})]})]})})}QN.propTypes={},(0,M.xV)(EN.UU)&&(0,o.registerBlockType)(EN.UU,{title:(0,L.__)("Paypal Button","ablocks"),attributes:EN.uK,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--paypal"}),edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l}=t,{block_id:n}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l}),i?.blockVersion||o({blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;if(t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l),null===t)return"";const e=e=>"function"==typeof t.customDeviceMap?t.customDeviceMap(e):{} | |
| 4263 | +;return t.addClassStyles("{{WRAPPER}}",qN(i,""),qN(i,"Tablet"),qN(i,"Mobile"),e(t=>qN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button",$N(i),$N(i,"Tablet"),$N(i,"Mobile"),e(t=>$N(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover",GN(i,""),GN(i,"Tablet"),GN(i,"Mobile"),e(t=>GN(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon",ZN(i),ZN(i),ZN(i),e(t=>ZN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-paypal-button .ablocks-paypal-button__text",KN(i),KN(i),KN(i),e(t=>KN(i))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap",(0,Ud.PT)(i),(0,Ud.PT)(i,"Tablet"),(0,Ud.PT)(i,"Mobile"),e(t=>(0,Ud.PT)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap:hover",(0,Ud.fW)(i),(0,Ud.fW)(i,"Tablet"),(0,Ud.fW)(i,"Mobile"),e(t=>(0,Ud.fW)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon",(0,Ud.J_)(i),(0,Ud.J_)(i,"Tablet"),(0,Ud.J_)(i,"Mobile"),e(t=>(0,Ud.J_)(i,t))), | |
| 4264 | +t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon",(0,Ud.eG)(i),(0,Ud.eG)(i,"Tablet"),(0,Ud.eG)(i,"Mobile"),e(t=>(0,Ud.eG)(i,t))),t.addClassStyles("{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover",(0,Ud.RV)(i),(0,Ud.RV)(i,"Tablet"),(0,Ud.RV)(i,"Mobile"),e(t=>(0,Ud.RV)(i,t))),(0,b.applyFilters)("ablocks.button.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(BN,{...t}),(0,I.jsx)(FN,{...t})]})},save:JN,deprecated:[{attributes:{block_id:{type:"string",default:""},text:{type:"string",default:"Buy now"},buttonType:{type:"string",default:"#032e82"},buttonSize:{type:"string",default:"md"},textColor:{type:"string",default:"#FFFFFF"},textColorH:{type:"string",default:""},background:{type:"string",default:""},backgroundH:{ | |
| 4265 | +type:"string",default:""},transition:{type:"number",default:""},showIcon:{type:"boolean",default:!0},iconPosition:{type:"string",default:"left"},paypalAccount:{type:"string",default:""},trxType:{type:"string",default:"_xclick"},itemName:{type:"string",default:""},sku:{type:"string",default:""},price:{type:"number",default:"0"},currency:{type:"string",default:"USD"},quantity:{type:"number",default:"1"},shippingPrice:{type:"number",default:"0"},tax:{type:"number",default:"0"},isAmountFixed:{type:"boolean",default:!1},isAutoRenewal:{type:"boolean",default:!0},billingCycle:{type:"string",default:"M"},redirectionAfterPayment:{type:"string",default:""},sandboxMode:{type:"boolean",default:!1},sandboxEmail:{type:"string",default:""},openInNewTab:{type:"boolean",default:!0},customMessage:{type:"boolean",default:!1},errorMessage:{type:"string",default:"No payment method connected. Contact seller."},iconSvgPath:{type:"string", | |
| 4233 | 4266 | default:"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z",source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},iconSvgViewBox:{type:"string",default:"0 0 384 512",source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"},iconClass:{type:"string",default:"fab fa-paypal"},iconImageUrl:{type:"string",default:""},iconImageID:{type:"number",default:0},iconImageSize:{type:"string",default:""},iconColor:{type:"string",default:"#ffffff"},iconBgColor:{type:"string", |
| 4234 | 4267 | default:""},iconType:{type:"string",default:"default"},iconShape:{type:"string",default:"circle"},iconPadding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderRadius:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconBorderWidth:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},iconSize:{type:"number",default:"16"},iconRotate:{type:"number",default:0},iconSizing:{type:"object",default:{value:"16",valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconRotated:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},iconRotateHover:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"deg",valueUnitTablet:"",valueUnitMobile:""}},icontransitionDuration:{type:"number",default:0},iconImageWidth:{type:"number",default:0},link:{type:"object", |
| 4235 | 4268 | default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", |
| 4236 | 4269 | 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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"", |
| @@ -4242,13 +4275,13 @@ | ||
| 4242 | 4275 | 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:"", |
| 4243 | 4276 | 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:"", |
| 4244 | 4277 | 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, |
| 4245 | 4278 | 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:"", |
| 4246 | -blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,L.jsx)(UN,{...t})}]});const PN=[{label:(0,z.__)("Viewport","ablocks"),value:"viewport"},{label:(0,z.__)("Click","ablocks"),value:"click"},{label:(0,z.__)("Hover","ablocks"),value:"hover"},{label:(0,z.__)("None","ablocks"),value:"none"}],jN=[{label:(0,z.__)("Animation","ablocks"),value:"animation"},{label:(0,z.__)("Section","ablocks"),value:"section"},{label:(0,z.__)("Parent Element","ablocks"),value:"parent"}],wN=[{label:(0,z.__)("Do Nothing","ablocks"),value:"nothing"},{label:(0,z.__)("Pause","ablocks"),value:"pause"},{label:(0,z.__)("Reverse","ablocks"),value:"reverse"}],zN=[{label:(0,z.__)("Upload","ablocks"),value:"upload"},{label:(0, | |
| 4247 | -z.__)("Custom","ablocks"),value:"custom"}];function CN(t){const{attributes:e,setAttributes:o}=t,{animationSource:n,asset_url:s,custom_url:r,uploaded_json:b}=e,c=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t,e=!0;return i.e(7530).then(i.t.bind(i,49891,23)).then(({default:i})=>{e&&c.current&&(t=i.loadAnimation({container:c.current,renderer:"svg",loop:!0,autoplay:!0,path:b?.url}))}),()=>{e=!1,t&&t.destroy()}},[b,c.current]);const d=()=>{if(b&&null===c.current){const t=b;o({uploaded_json:null}),o({uploaded_json:t})}};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:o,children:(0,L.jsxs)(D,{title:(0,z.__)("Animation Settings","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vb,{label:(0,z.__)("Animation Source","ablocks"),setAttributes:o,attributeName:"animationSource",attributeValue:n,options:zN,isResponsive:!1,allowDeselect:!1}),"custom"===n&&(0,L.jsx)(ql,{label:(0,z.__)("Custom JSON URL","ablocks"), | |
| 4248 | -attributeName:"custom_url",attributeValue:r,setAttributes:o,placeholder:(0,z.__)("Enter Lottie JSON URL","ablocks"),isInline:!1}),"upload"===n&&(0,L.jsxs)("div",{className:"ablocks-media-upload-container",children:[e.uploaded_json&&(0,L.jsx)("div",{className:"ablocks-media-upload-container__inner-file-wrapper",children:(0,L.jsx)(ql,{label:(0,z.__)("File Name","ablocks"),attributeName:"uploaded_json_display",attributeValue:e.uploaded_json.title,setAttributes:o,isInline:!1,readOnly:!0})}),(0,L.jsx)(C.MediaUploadCheck,{children:(0,L.jsx)(C.MediaUpload,{onSelect:t=>o({uploaded_json:t}),allowedTypes:["application/json"],render:({open:t})=>(0,L.jsxs)("div",{className:"ablocks-media-upload-container__inner",children:[(0,L.jsx)("div",{ref:c,style:{width:"100%",height:"100%"},children:d()}),e.uploaded_json?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.Button,{onClick:t,className:"ablocks-media-upload-container__inner-replace",children:(0,z.__)("Replace","ablocks")}),(0,L.jsx)("span",{ | |
| 4249 | -className:"ablocks-icon ablocks-icon--delete ablocks-media-upload-container__inner-remove",onClick:()=>o({uploaded_json:null})})]}):(0,L.jsx)(A.Button,{onClick:t,className:"ablocks-media-upload-container__inner-upload",children:(0,z.__)("Upload JSON File","ablocks")})]})})})]}),(0,L.jsx)(vt,{label:(0,z.__)("Animation Speed","ablocks"),min:0,max:3,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.animationSpeed||1,attributeName:"animationSpeed",setAttributes:o}),(0,L.jsx)(Ut,{label:(0,z.__)("Trigger","ablocks"),options:PN,isResponsive:!1,attributeValue:e?.trigger||"viewport",attributeName:"trigger",setAttributes:o}),"hover"===e?.trigger&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Hover Area","ablocks"),options:jN,isResponsive:!1,attributeValue:e?.hoverArea||"animation",attributeName:"hoverArea",setAttributes:o}),(0,L.jsx)(Ut,{label:(0,z.__)("On Hover Out","ablocks"),options:wN,isResponsive:!1,attributeValue:e?.onHoverOut||"nothing", | |
| 4250 | -attributeName:"onHoverOut",setAttributes:o})]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{label:(0,z.__)("Reverse in Finish","ablocks"),attributeValue:e?.reverse,setAttributes:o,attributeName:"reverse",isResponsive:!1}),!e?.loop&&(0,L.jsx)("span",{className:"ablocks-reverse-msg",children:(0,L.jsx)("p",{children:(0,z.__)("Reverse works when loop animation is true","ablocks")})}),(0,L.jsx)(Vt,{label:(0,z.__)("Loop Animation","ablocks"),attributeValue:e?.loop,setAttributes:o,attributeName:"loop",isResponsive:!1})]})})})})}CN.propTypes={},CN.defaultProps={};const AN={UU:"ablocks/lottie-animation",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:2},asset_url:{type:"string",default:""},custom_url:{type:"string",default:""},uploaded_json:{type:"object",default:""},trigger:{type:"string",default:"viewport"},hoverArea:{type:"string",default:"animation"},onHoverOut:{type:"string",default:"nothing"},reverse:{type:"boolean",default:!1},loop:{type:"boolean",default:!1},animationSpeed:{ | |
| 4279 | +blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""}},save:t=>(0,I.jsx)(QN,{...t})}]});const tI=[{label:(0,L.__)("Viewport","ablocks"),value:"viewport"},{label:(0,L.__)("Click","ablocks"),value:"click"},{label:(0,L.__)("Hover","ablocks"),value:"hover"},{label:(0,L.__)("None","ablocks"),value:"none"}],eI=[{label:(0,L.__)("Animation","ablocks"),value:"animation"},{label:(0,L.__)("Section","ablocks"),value:"section"},{label:(0,L.__)("Parent Element","ablocks"),value:"parent"}],iI=[{label:(0,L.__)("Do Nothing","ablocks"),value:"nothing"},{label:(0,L.__)("Pause","ablocks"),value:"pause"},{label:(0,L.__)("Reverse","ablocks"),value:"reverse"}],oI=[{label:(0,L.__)("Upload","ablocks"),value:"upload"},{label:(0, | |
| 4280 | +L.__)("Custom","ablocks"),value:"custom"}];function aI(t){const{attributes:e,setAttributes:o}=t,{animationSource:n,asset_url:s,custom_url:r,uploaded_json:b}=e,c=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t,e=!0;return i.e(7530).then(i.t.bind(i,49891,23)).then(({default:i})=>{e&&c.current&&(t=i.loadAnimation({container:c.current,renderer:"svg",loop:!0,autoplay:!0,path:b?.url}))}),()=>{e=!1,t&&t.destroy()}},[b,c.current]);const d=()=>{if(b&&null===c.current){const t=b;o({uploaded_json:null}),o({uploaded_json:t})}};return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(D.InspectorControls,{children:(0,I.jsx)(_b,{attributes:e,setAttributes:o,children:(0,I.jsxs)(V,{title:(0,L.__)("Animation Settings","ablocks"),initialOpen:!0,children:[(0,I.jsx)(Wb,{label:(0,L.__)("Animation Source","ablocks"),setAttributes:o,attributeName:"animationSource",attributeValue:n,options:oI,isResponsive:!1,allowDeselect:!1}),"custom"===n&&(0,I.jsx)(Kl,{label:(0,L.__)("Custom JSON URL","ablocks"), | |
| 4281 | +attributeName:"custom_url",attributeValue:r,setAttributes:o,placeholder:(0,L.__)("Enter Lottie JSON URL","ablocks"),isInline:!1}),"upload"===n&&(0,I.jsxs)("div",{className:"ablocks-media-upload-container",children:[e.uploaded_json&&(0,I.jsx)("div",{className:"ablocks-media-upload-container__inner-file-wrapper",children:(0,I.jsx)(Kl,{label:(0,L.__)("File Name","ablocks"),attributeName:"uploaded_json_display",attributeValue:e.uploaded_json.title,setAttributes:o,isInline:!1,readOnly:!0})}),(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:t=>o({uploaded_json:t}),allowedTypes:["application/json"],render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-media-upload-container__inner",children:[(0,I.jsx)("div",{ref:c,style:{width:"100%",height:"100%"},children:d()}),e.uploaded_json?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.Button,{onClick:t,className:"ablocks-media-upload-container__inner-replace",children:(0,L.__)("Replace","ablocks")}),(0,I.jsx)("span",{ | |
| 4282 | +className:"ablocks-icon ablocks-icon--delete ablocks-media-upload-container__inner-remove",onClick:()=>o({uploaded_json:null})})]}):(0,I.jsx)(N.Button,{onClick:t,className:"ablocks-media-upload-container__inner-upload",children:(0,L.__)("Upload JSON File","ablocks")})]})})})]}),(0,I.jsx)(_t,{label:(0,L.__)("Animation Speed","ablocks"),min:0,max:3,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:e?.animationSpeed||1,attributeName:"animationSpeed",setAttributes:o}),(0,I.jsx)(Ut,{label:(0,L.__)("Trigger","ablocks"),options:tI,isResponsive:!1,attributeValue:e?.trigger||"viewport",attributeName:"trigger",setAttributes:o}),"hover"===e?.trigger&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ut,{label:(0,L.__)("Hover Area","ablocks"),options:eI,isResponsive:!1,attributeValue:e?.hoverArea||"animation",attributeName:"hoverArea",setAttributes:o}),(0,I.jsx)(Ut,{label:(0,L.__)("On Hover Out","ablocks"),options:iI,isResponsive:!1,attributeValue:e?.onHoverOut||"nothing", | |
| 4283 | +attributeName:"onHoverOut",setAttributes:o})]}),(0,I.jsx)(It,{}),(0,I.jsx)(Ot,{label:(0,L.__)("Reverse in Finish","ablocks"),attributeValue:e?.reverse,setAttributes:o,attributeName:"reverse",isResponsive:!1}),!e?.loop&&(0,I.jsx)("span",{className:"ablocks-reverse-msg",children:(0,I.jsx)("p",{children:(0,L.__)("Reverse works when loop animation is true","ablocks")})}),(0,I.jsx)(Ot,{label:(0,L.__)("Loop Animation","ablocks"),attributeValue:e?.loop,setAttributes:o,attributeName:"loop",isResponsive:!1})]})})})})}aI.propTypes={},aI.defaultProps={};const lI={UU:"ablocks/lottie-animation",uK:{block_id:{type:"string"},blockVersion:{type:"number",default:2},asset_url:{type:"string",default:""},custom_url:{type:"string",default:""},uploaded_json:{type:"object",default:""},trigger:{type:"string",default:"viewport"},hoverArea:{type:"string",default:"animation"},onHoverOut:{type:"string",default:"nothing"},reverse:{type:"boolean",default:!1},loop:{type:"boolean",default:!1},animationSpeed:{ | |
| 4251 | 4284 | type:"number",default:1},timesLoop:{type:"number",default:""},animationSource:{type:"string",default:"upload"},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{ |
| 4252 | 4285 | 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:"", |
| 4253 | 4286 | 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:"", |
| 4254 | 4287 | 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:"", |
| @@ -4255,16 +4288,16 @@ | ||
| 4255 | 4288 | 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:""}}, |
| 4256 | 4289 | _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, |
| 4257 | 4290 | 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:"", |
| 4258 | 4291 | 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, |
| 4259 | -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function LN(t){const{attributes:e,setAttributes:o}=t,{block_id:l,animationSource:n,asset_url:s,custom_url:r,uploaded_json:b,trigger:c,hoverArea:d,onHoverOut:u,reverse:p,loop:m,animationSpeed:h}=e,[g,f]=(0,a.useState)(""),y=(0,a.useRef)(null),T=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!y.current)return;const t=()=>{T.current?.play()},e=()=>{T.current&&("reverse"===u?(T.current.setDirection(-1),T.current.play()):"pause"===u?T.current.pause():"stop"===u&&T.current.stop())},o=()=>{ | |
| 4292 | +yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function nI(t){const{attributes:e,setAttributes:o}=t,{block_id:l,animationSource:n,asset_url:s,custom_url:r,uploaded_json:b,trigger:c,hoverArea:d,onHoverOut:u,reverse:p,loop:m,animationSpeed:h}=e,[g,f]=(0,a.useState)(""),y=(0,a.useRef)(null),T=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!y.current)return;const t=()=>{T.current?.play()},e=()=>{T.current&&("reverse"===u?(T.current.setDirection(-1),T.current.play()):"pause"===u?T.current.pause():"stop"===u&&T.current.stop())},o=()=>{ | |
| 4260 | 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()} |
| 4261 | -},[n,s,r,b,c,d,u,p,m]),(0,a.useEffect)(()=>{T.current&&T.current.setSpeed(h||1)},[h]),(0,L.jsxs)(Nb.A,{blockId:l,name:AN.UU,attributes:{...e,className:"ablocks-prevent-select"},children:[(0,L.jsx)("div",{ref:y,style:{width:"100%",height:"100%",cursor:"click"===c?"pointer":"default"}}),!b&&"upload"===n&&(0,L.jsx)(C.MediaUploadCheck,{children:(0,L.jsx)(C.MediaUpload,{onSelect:t=>o({uploaded_json:t}),allowedTypes:["application/json"],value:b?.id,render:({open:t})=>(0,L.jsxs)("div",{className:"ablocks-image-upload",children:[(0,L.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,z.__)("Lottie Animation","ablocks")}),(0,L.jsx)("p",{className:"ablocks-image-upload__description",children:(0,z.__)("Upload a JSON file or pick one from your media library","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,L.jsx)("button",{onClick:t,className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0, | |
| 4262 | -z.__)("Upload JSON","ablocks")}),(0,L.jsx)("button",{onClick:()=>o({animationSource:"custom"}),className:"ablocks-image-upload__button ablocks-image-upload__button--url",children:(0,z.__)("Use URL Instead","ablocks")})]})]})})}),!r&&"custom"===n&&(0,L.jsxs)("div",{className:"ablocks-image-upload",children:[(0,L.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,z.__)("Enter Lottie URL","ablocks")}),(0,L.jsx)("p",{className:"ablocks-image-upload__description",children:(0,z.__)("Paste the URL of your Lottie JSON animation","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,L.jsx)("input",{type:"text",className:"ablocks-image-upload__input",placeholder:"https://example.com/animation.json",value:g,onChange:t=>f(t.target.value)}),(0,L.jsx)("button",{onClick:()=>o({custom_url:g}),className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0,z.__)("Use This URL","ablocks")})]})]})]})}function DN(t){ | |
| 4263 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:AN.UU,attributes:e,children:(0,L.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})})})}DN.propTypes={},DN.defaultProps={},(0,M.xV)(AN.UU)&&(0,o.registerBlockType)(AN.UU,{title:"Lottie Animation",attributes:AN.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 4264 | -null===t?"":t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(CN,{...t}),(0,L.jsx)(LN,{...t})]})},save:DN,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--lottie-animation"})});const NN=[{label:(0,z.__)("Left","ablocks"),value:"normal"},{label:(0,z.__)("Right","ablocks"),value:"reverse"},{label:(0,z.__)("Up","ablocks"),value:"up"},{label:(0,z.__)("Down","ablocks"),value:"down"}];function IN(t){const{attributes:e,setAttributes:i}=t,{pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b,enableShadow:c}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-marquee-block/",children:(0,L.jsxs)(D,{title:(0,z.__)("Marquee","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Marquee Direction","ablocks"),options:NN,isSearch:!1,attributeName:"marqueeDirection",attributeValue:a, | |
| 4265 | -setAttributes:i,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Gap","ablocks"),attributeName:"gap",attributeValue:b,setAttributes:i,isResponsive:!0,min:0,max:100,step:1,isInline:!1,autoSyncRange:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Pause On Hover","ablocks"),attributeName:"pauseOnHover",attributeValue:o,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Enable Shadow","ablocks"),attributeName:"enableShadow",attributeValue:c,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)("u",{style:{paddingBottom:"20px",display:"block"},children:(0,L.jsx)("i",{children:(0,z.__)("These feature will only works in frontend","ablocks")})}),(0,L.jsx)(Vt,{label:(0,z.__)("Loop","ablocks"),attributeName:"loop",attributeValue:s,setAttributes:i,isResponsive:!1,allowDeselect:!1}),s&&(0,L.jsx)(vt,{label:(0,z.__)("Loop Count","ablocks"),attributeName:"loopCount",attributeValue:r,setAttributes:i,min:1,max:200,step:1,isInline:!1,isResponsive:!1}),(0,L.jsx)(vt,{label:(0, | |
| 4266 | -z.__)("Speed (Fast To Slow)(ms)","ablocks"),attributeName:"marqueeSpeed",attributeValue:n,setAttributes:i,min:0,max:50,step:1,isInline:!1,isResponsive:!1})]})})})})}IN.propTypes={};const VN={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:{ | |
| 4294 | +},[n,s,r,b,c,d,u,p,m]),(0,a.useEffect)(()=>{T.current&&T.current.setSpeed(h||1)},[h]),(0,I.jsxs)(Yb.A,{blockId:l,name:lI.UU,attributes:{...e,className:"ablocks-prevent-select"},children:[(0,I.jsx)("div",{ref:y,style:{width:"100%",height:"100%",cursor:"click"===c?"pointer":"default"}}),!b&&"upload"===n&&(0,I.jsx)(D.MediaUploadCheck,{children:(0,I.jsx)(D.MediaUpload,{onSelect:t=>o({uploaded_json:t}),allowedTypes:["application/json"],value:b?.id,render:({open:t})=>(0,I.jsxs)("div",{className:"ablocks-image-upload",children:[(0,I.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,L.__)("Lottie Animation","ablocks")}),(0,I.jsx)("p",{className:"ablocks-image-upload__description",children:(0,L.__)("Upload a JSON file or pick one from your media library","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,I.jsx)("button",{onClick:t,className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0, | |
| 4295 | +L.__)("Upload JSON","ablocks")}),(0,I.jsx)("button",{onClick:()=>o({animationSource:"custom"}),className:"ablocks-image-upload__button ablocks-image-upload__button--url",children:(0,L.__)("Use URL Instead","ablocks")})]})]})})}),!r&&"custom"===n&&(0,I.jsxs)("div",{className:"ablocks-image-upload",children:[(0,I.jsx)("h2",{className:"ablocks-image-upload__title",children:(0,L.__)("Enter Lottie URL","ablocks")}),(0,I.jsx)("p",{className:"ablocks-image-upload__description",children:(0,L.__)("Paste the URL of your Lottie JSON animation","ablocks")}),(0,I.jsxs)("div",{className:"ablocks-image-upload__buttons",children:[(0,I.jsx)("input",{type:"text",className:"ablocks-image-upload__input",placeholder:"https://example.com/animation.json",value:g,onChange:t=>f(t.target.value)}),(0,I.jsx)("button",{onClick:()=>o({custom_url:g}),className:"ablocks-image-upload__button ablocks-image-upload__button--primary",children:(0,L.__)("Use This URL","ablocks")})]})]})]})}function sI(t){ | |
| 4296 | +const{attributes:e}=t,{block_id:i,animationSource:o="default",asset_url:a,custom_url:n,uploaded_json:s,trigger:r,loop:b,reverse:c,animationSpeed:d}=e,u=(()=>{switch(o){case"custom":return n;case"upload":return s?.url;default:return a}})();return(0,I.jsx)(l().Fragment,{children:(0,I.jsx)(sc,{blockId:i,name:lI.UU,attributes:e,children:(0,I.jsx)("div",{className:"ablocks-lottie-container","data-animation-source":o,"data-asset-url":u,"data-trigger":r,"data-loop":b,"data-reverse":c,"data-animation-speed":d})})})}sI.propTypes={},sI.defaultProps={},(0,M.xV)(lI.UU)&&(0,o.registerBlockType)(lI.UU,{title:(0,L.__)("Lottie Animation","ablocks"),attributes:lI.uK,edit:function(t){const{isSelected:e,attributes:i,setAttributes:o,clientId:l,block_id:n}=t;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof A?2===i?.blockVersion||t instanceof C||(t=new C(i,l)):t=new A(i,l):t=2===i?.blockVersion?new A(i,l):new C(i,l), | |
| 4297 | +null===t?"":t.generateCSS()},[i]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{children:s}),e&&(0,I.jsx)(aI,{...t}),(0,I.jsx)(nI,{...t})]})},save:sI,icon:(0,I.jsx)("span",{className:"ablocks-icon ablocks-icon--lottie-animation"})});const rI=[{label:(0,L.__)("Left","ablocks"),value:"normal"},{label:(0,L.__)("Right","ablocks"),value:"reverse"},{label:(0,L.__)("Up","ablocks"),value:"up"},{label:(0,L.__)("Down","ablocks"),value:"down"}];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:{ | |
| 4267 | 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:"", |
| 4268 | 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:"", |
| 4269 | 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:"", |
| 4270 | 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:"", |
| @@ -4270,12 +4303,12 @@ | ||
| 4270 | 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:"", |
| 4271 | 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:"", |
| 4272 | 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:"", |
| 4273 | 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:{ |
| 4274 | -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"}}}},ON=({addNewMarquee:t})=>(0, | |
| 4275 | -L.jsx)(C.BlockControls,{children:(0,L.jsx)("div",{className:"ablocks-block-marquee-dropdown-toolbar-menu",children:(0,L.jsx)(A.ToolbarButton,{onClick:()=>{t()},children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})});function YN(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,C.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,L.jsxs)(l().Fragment,{ | |
| 4276 | -children:[(0,L.jsx)(ON,{addNewMarquee:g}),(0,L.jsx)(Nb.A,{blockId:s,name:VN.UU,attributes:e,children:(0,L.jsx)("div",{...h,className:"ablocks-block-marquee",ref:d,children:(0,L.jsxs)("div",{className:"ablocks-block-marquee__children",children:[(0,L.jsx)("div",{className:"ablocks-block-marquee__children-child",children:m}),(0,L.jsx)("div",{role:"presentation",onClick:g,children:(0,L.jsx)("button",{className:"ablocks-block-marquee__custom-btn",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"})})})]})})})]})}const XN=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.gap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!1,defaultValue:12,unitDefaultValue:"px",property:"gap",device:e})});function BN(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:VN.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-block-marquee", | |
| 4277 | -"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,L.jsx)("div",{className:"ablocks-block-marquee__children",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})})})}BN.propTypes={},BN.defaultProps={};const EN={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:{ | |
| 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:{ | |
| 4278 | 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:"", |
| 4279 | 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:"", |
| 4280 | 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:"", |
| 4281 | 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:"", |
| @@ -4281,82 +4314,82 @@ | ||
| 4281 | 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:"", |
| 4282 | 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", |
| 4283 | 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, |
| 4284 | 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", |
| 4285 | -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 FN(t){const{attributes:e}=t,{block_id:i,pauseOnHover:o,marqueeDirection:a,marqueeSpeed:n,loop:s,loopCount:r,gap:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:EN.UU,attributes:e,children:(0,L.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,L.jsx)("div",{ | |
| 4286 | -className:"ablocks-block-marquee__children",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})})})}function qN(t){const{attributes:e}=t,{}=e;return(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Marquee Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Marquee blocks settings for customizing marquee effortlessly.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})})})}FN.propTypes={},FN.defaultProps={},(0,M.xV)(VN.UU)&&(0,o.registerBlockType)(VN.UU,{attributes:VN.uK,icon:(0,L.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({ | |
| 4287 | -blockVersion:2})},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-marquee .ablocks-block-marquee__children-child",XN(i),XN(i,"Tablet"),XN(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(IN,{...t}),(0,L.jsx)(YN,{...t})]})},save:BN,deprecated:[{attributes:EN.uK,save:FN}]}),qN.propTypes={};const $N={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:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{ | |
| 4288 | -type:"object",default:{isLinked:!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:"", | |
| 4289 | -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:"", | |
| 4290 | -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:"", | |
| 4291 | -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:"", | |
| 4292 | -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", | |
| 4293 | -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, | |
| 4294 | -scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0", | |
| 4295 | -yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[], | |
| 4296 | -items:{type:"object"}}}};function GN(t){const{attributes:e,clientId:i}=t,{block_id:a}=e,l=(0,C.useBlockProps)(),n={renderAppender:(0,r.select)("core/block-editor").getBlockOrder(i).length>0?void 0:C.InnerBlocks.ButtonBlockAppender,allowedBlocks:(0,o.getBlockTypes)().filter(t=>!t.parent).map(t=>t.name)},s=(0,C.useInnerBlocksProps)(l,{...n});return(0,L.jsx)(K_,{blockId:a,name:$N.UU,attributes:e,children:(0,L.jsx)("div",{...s})})}function ZN(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(eR,{blockId:i,name:$N.UU,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})}GN.propTypes={},GN.defaultProps={},ZN.propTypes={},ZN.defaultProps={},(0,M.xV)($N.UU,$N.$t[0])&&(0,o.registerBlockType)($N.UU,{title:"Marquee Child",attributes:$N.uK,icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--block-video"}),edit:function(t){const{isSelected:e,attributes:i,clientId:o}=t,l=(0,a.useMemo)(()=>new j(i,o).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{ | |
| 4297 | -children:l}),e&&(0,L.jsx)(qN,{...t}),(0,L.jsx)(GN,{...t})]})},save:ZN});var KN=i(88297);const JN=[{label:(0,z.__)("Row","ablocks"),value:"row",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,z.__)("Column","ablocks"),value:"column",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,z.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,z.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],QN=[{label:(0,z.__)("Flex Start","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Flex End","ablocks"),value:"flex-end",icon:"right"},{label:(0,z.__)("Space Between","ablocks"),value:"space-between",icon:"justify"}],tI=[{label:(0,z.__)("Current URL","ablocks"), | |
| 4298 | -value:"current-url"},{label:(0,z.__)("Custom URL","ablocks"),value:"custom-url"}],eI=[{label:(0,z.__)("Current URL","ablocks"),value:"current-url"},{label:(0,z.__)("Custom URL","ablocks"),value:"custom-url"}];function iI(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-logout-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Logout","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(n||p)&&(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Direction","ablocks"), | |
| 4299 | -options:JN,attributeName:"direction",attributeValue:d,setAttributes:i}),(0,L.jsx)(Kt,{allowDeselect:!0,label:(0,z.__)("Alignment","ablocks"),options:QN,isInline:!1,attributeName:"labelAlignment",attributeValue:b,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Logout Label","ablocks"),attributeName:"logOutLabel",attributeValue:o,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Login Label","ablocks"),attributeName:"logInLabel",attributeValue:a,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Avatar","ablocks"),attributeName:"isShowAvatar",attributeValue:n,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Display Name","ablocks"),attributeName:"isShowName",attributeValue:p,setAttributes:i,isResponsive:!1,allowDeselect:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Redirect After Logout","ablocks"),options:tI,isSearch:!1,attributeName:"logoutRedirect",attributeValue:h,setAttributes:i, | |
| 4300 | -isInline:!1}),"custom-url"===h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Custom UR","ablocks"),attributeName:"logoutCustomUrl",attributeValue:g,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)("p",{className:"ablocks-notes",children:(0,z.__)("Only works on the same domain for security reasons.","ablocks")})]}),(0,L.jsx)(Ut,{label:(0,z.__)("Redirect After Login","ablocks"),options:eI,isSearch:!1,attributeName:"loginRedirect",attributeValue:f,setAttributes:i,isInline:!1}),"custom-url"===f&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Custom UR","ablocks"),attributeName:"loginCustomUrl",attributeValue:y,setAttributes:i,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)("p",{className:"ablocks-notes",children:(0,z.__)("Only works on the same domain for security reasons.","ablocks")})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"logOutLabelBgColor", | |
| 4301 | -attributeValue:r,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Label","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"logOutLabelColor",attributeValue:s,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:x,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"labelTextShadow",attributeValue:k,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"labelTextStroke",attributeValue:v,setAttributes:i,isResponsive:!0}),p&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Display Name","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"nameColor",attributeValue:m,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"nameTypography", | |
| 4302 | -attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"nameTextShadow",attributeValue:H,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"nameTextStroke",attributeValue:M,setAttributes:i,isResponsive:!0})]})]})})}),n&&(0,L.jsx)(D,{title:(0,z.__)("Avatar","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("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:KN.P6,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeValue:u,hasUnit:!0,isResponsive:!0,unitOptions:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}], | |
| 4303 | -attributeName:"avatarWidth",setAttributes:i,isInline:!1,min:0,max:200,attributeDefaultValue:KN.Yn,autoSyncRange:!0})]})}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"avatarBorder",attributeValue:e?.avatarBorder,setAttributes:i})]})})})})]})})})}iI.propTypes={},iI.defaultProps={};const oI="ablocks/logout";function aI(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:oI,attributes:{...e,className:"ablocks-prevent-select"},children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/logout",httpMethod:"POST",attributes:e})})})})}aI.propTypes={},aI.defaultProps={};const lI=(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,gs.qD)(t?.logOutLabelBgColor),...i,...(0, | |
| 4304 | -Gt.qD)(t?.labelAlignment,"justify-content",e)}},nI=(t,e="")=>{const i={...(0,Ob.qD)({attributeValue:t.avatarWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.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)}},sI=(t,e="")=>{const i=(0,M.Zy)(t.avatarBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function rI(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0, | |
| 4305 | -z.__)("QR Code Content","ablocks"),initialOpen:!0,children:[(0,L.jsx)(ql,{label:(0,z.__)("QR Code Value","ablocks"),attributeName:"qrValue",attributeValue:a,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Error Level","ablocks"),options:[{label:(0,z.__)("Low (7%)","ablocks"),value:"L"},{label:(0,z.__)("Medium (15%)","ablocks"),value:"M"},{label:(0,z.__)("Qurtile (25%)","ablocks"),value:"Q"},{label:(0,z.__)("High (30%)","ablocks"),value:"H"}],isSearch:!0,attributeName:"qrLevel",attributeValue:s,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("QR Code Size","ablocks"),min:m?150:0,max:500,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"qrSize",attributeValue:p,setAttributes:i,attributeObjectKey:"qrSize"}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Logo Setting","ablocks"),attributeValue:m,setAttributes:i,attributeName:"isImage"}),(0,L.jsx)(vs,{label:(0, | |
| 4306 | -z.__)("ForeGround Color","ablocks"),attributeName:"fgColor",attributeValue:r,setAttributes:i})]}),m&&(0,L.jsxs)(D,{title:(0,z.__)("Image Setting","ablocks"),initialOpen:!0,children:[(0,L.jsx)(As,{allowedTypes:["image"],attributeValue:e,attributeName:"imageSrc",onSelectImageHandler:t=>i({imageSrc:t.url,imgId:t.id}),onRemoveImageHandler:()=>{i({imageSrc:void 0})}}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Excavate","ablocks"),attributeValue:f,setAttributes:i,attributeName:"excavateValue"}),(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,z.__)("Logo Dimension","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vt,{label:(0,z.__)("Logo Width","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"logoWidth",attributeValue:c,setAttributes:i,attributeObjectKey:"logoWidth"}),(0,L.jsx)(vt,{label:(0,z.__)("Logo Height","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!1, | |
| 4307 | -attributeName:"logoHeight",attributeValue:u,setAttributes:i,attributeObjectKey:"logoHeight"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Image Opacity","ablocks"),min:0,max:1,hasUnit:!1,isInline:!1,step:.1,isResponsive:!1,attributeName:"logoOpacity",attributeValue:d,setAttributes:i,attributeObjectKey:"logoOpacity"}),(0,L.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,z.__)("Logo Position","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vt,{label:(0,z.__)("Position X","ablocks"),min:-250,max:500,hasUnit:!1,isInline:!1,step:1,isResponsive:!1,attributeName:"positionX",attributeValue:h,setAttributes:i,attributeObjectKey:"positionX"}),(0,L.jsx)(vt,{label:(0,z.__)("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)(oI)&&(0,o.registerBlockType)(oI,{attributes:KN.Ay,icon:(0,L.jsx)("span",{ | |
| 4308 | -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;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__label",((t,e="")=>{const i=(0,M.Zy)(t.labelTypography,{weight:"400"}),o=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0,gs.qD)(t?.logOutLabelColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.labelTextStroke,e),...(0,pc.qD)(t?.labelTextShadow)}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-logout",lI(i),lI(i,"Tablet"),lI(i,"Mobile")),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, | |
| 4309 | -gs.qD)(t?.nameColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.nameTextStroke,e),...(0,pc.qD)(t?.nameTextShadow)}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__avatar",nI(i),nI(i,"Tablet"),nI(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-log-out__avatar:hover",sI(i),sI(i,"Tablet"),sI(i,"Mobile")),t.generateCSS())},[i,l]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(iI,{...t}),(0,L.jsx)(aI,{...t})]})},save:()=>null}),rI.propTypes={};const bI={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", | |
| 4310 | -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:"",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:"", | |
| 4311 | -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:"", | |
| 4312 | -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:"", | |
| 4313 | -hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"", | |
| 4314 | -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, | |
| 4315 | -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:"", | |
| 4316 | -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, | |
| 4317 | -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:{ | |
| 4318 | -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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"}}}},cI=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}] | |
| 4319 | -;var dI,uI=Object.defineProperty,pI=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,hI=Object.prototype.propertyIsEnumerable,gI=(t,e,i)=>e in t?uI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,fI=(t,e)=>{for(var i in e||(e={}))mI.call(e,i)&&gI(t,i,e[i]);if(pI)for(var i of pI(e))hI.call(e,i)&&gI(t,i,e[i]);return t},yI=(t,e)=>{var i={};for(var o in t)mI.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&pI)for(var o of pI(t))e.indexOf(o)<0&&hI.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,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) | |
| 4320 | -;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++){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) | |
| 4321 | -;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);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)) | |
| 4322 | -;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);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){ | |
| 4323 | -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=[];for(let t=0;t<c[0].length;t++)c.forEach((e,i)=>{(t!=b-n||i>=r)&&u.push(e[t])});return a(u.length==s),u}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let i=0;for(let e=this.size-1;e>=1;e-=2){6==e&&(e=5);for(let a=0;a<this.size;a++)for(let l=0;l<2;l++){const n=e-l,s=e+1&2?a:this.size-1-a | |
| 4324 | -;!this.isFunction[s][n]&&i<8*t.length&&(this.modules[s][n]=o(t[i>>>3],7-(7&i)),i++)}}a(i==8*t.length)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let e=0;e<this.size;e++)for(let i=0;i<this.size;i++){let o;switch(t){case 0:o=(i+e)%2==0;break;case 1:o=e%2==0;break;case 2:o=i%3==0;break;case 3:o=(i+e)%3==0;break;case 4:o=(Math.floor(i/3)+Math.floor(e/2))%2==0;break;case 5:o=i*e%2+i*e%3==0;break;case 6:o=(i*e%2+i*e%3)%2==0;break;case 7:o=((i+e)%2+i*e%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[e][i]&&o&&(this.modules[e][i]=!this.modules[e][i])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let o=!1,a=0,l=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[i][n]==o?(a++,5==a?t+=e.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,l),o||(t+=this.finderPenaltyCountPatterns(l)*e.PENALTY_N3),o=this.modules[i][n],a=1);t+=this.finderPenaltyTerminateAndCount(o,a,l)*e.PENALTY_N3}for(let i=0;i<this.size;i++){ | |
| 4325 | -let o=!1,a=0,l=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[n][i]==o?(a++,5==a?t+=e.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,l),o||(t+=this.finderPenaltyCountPatterns(l)*e.PENALTY_N3),o=this.modules[n][i],a=1);t+=this.finderPenaltyTerminateAndCount(o,a,l)*e.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let o=0;o<this.size-1;o++){const a=this.modules[i][o];a==this.modules[i][o+1]&&a==this.modules[i+1][o]&&a==this.modules[i+1][o+1]&&(t+=e.PENALTY_N2)}let i=0;for(const t of this.modules)i=t.reduce((t,e)=>t+(e?1:0),i);const o=this.size*this.size,l=Math.ceil(Math.abs(20*i-10*o)/o)-1;return a(0<=l&&l<=9),t+=l*e.PENALTY_N4,a(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(1==this.version)return[];{const t=Math.floor(this.version/7)+2,e=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*t-2));let i=[6];for(let o=this.size-7;i.length<t;o-=e)i.splice(1,0,o);return i}}static getNumRawDataModules(t){ | |
| 4326 | -if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version number out of range");let i=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;i-=(25*e-10)*e-55,t>=7&&(i-=36)}return a(208<=i&&i<=29648),i}static getNumDataCodewords(t,i){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let i=[];for(let e=0;e<t-1;e++)i.push(0);i.push(1);let o=1;for(let a=0;a<t;a++){for(let t=0;t<i.length;t++)i[t]=e.reedSolomonMultiply(i[t],o),t+1<i.length&&(i[t]^=i[t+1]);o=e.reedSolomonMultiply(o,2)}return i}static reedSolomonComputeRemainder(t,i){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 | |
| 4327 | -;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,e.PENALTY_N3=40,e.PENALTY_N4=10, | |
| 4328 | -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]], | |
| 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){ | |
| 4338 | +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 | +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 | +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:"", | |
| 4344 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +;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 | +;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=[] | |
| 4357 | +;for(let t=0;t<c[0].length;t++)c.forEach((e,i)=>{(t!=b-n||i>=r)&&u.push(e[t])});return a(u.length==s),u}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let i=0;for(let e=this.size-1;e>=1;e-=2){6==e&&(e=5);for(let a=0;a<this.size;a++)for(let l=0;l<2;l++){const n=e-l,s=e+1&2?a:this.size-1-a;!this.isFunction[s][n]&&i<8*t.length&&(this.modules[s][n]=o(t[i>>>3],7-(7&i)),i++)}}a(i==8*t.length)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let e=0;e<this.size;e++)for(let i=0;i<this.size;i++){let o;switch(t){case 0:o=(i+e)%2==0;break;case 1:o=e%2==0;break;case 2:o=i%3==0;break;case 3:o=(i+e)%3==0;break;case 4:o=(Math.floor(i/3)+Math.floor(e/2))%2==0;break;case 5:o=i*e%2+i*e%3==0;break;case 6:o=(i*e%2+i*e%3)%2==0;break;case 7:o=((i+e)%2+i*e%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[e][i]&&o&&(this.modules[e][i]=!this.modules[e][i])}}getPenaltyScore(){let t=0 | |
| 4358 | +;for(let i=0;i<this.size;i++){let o=!1,a=0,l=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[i][n]==o?(a++,5==a?t+=e.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,l),o||(t+=this.finderPenaltyCountPatterns(l)*e.PENALTY_N3),o=this.modules[i][n],a=1);t+=this.finderPenaltyTerminateAndCount(o,a,l)*e.PENALTY_N3}for(let i=0;i<this.size;i++){let o=!1,a=0,l=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[n][i]==o?(a++,5==a?t+=e.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,l),o||(t+=this.finderPenaltyCountPatterns(l)*e.PENALTY_N3),o=this.modules[n][i],a=1);t+=this.finderPenaltyTerminateAndCount(o,a,l)*e.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let o=0;o<this.size-1;o++){const a=this.modules[i][o];a==this.modules[i][o+1]&&a==this.modules[i+1][o]&&a==this.modules[i+1][o+1]&&(t+=e.PENALTY_N2)}let i=0;for(const t of this.modules)i=t.reduce((t,e)=>t+(e?1:0),i);const o=this.size*this.size,l=Math.ceil(Math.abs(20*i-10*o)/o)-1;return a(0<=l&&l<=9),t+=l*e.PENALTY_N4, | |
| 4359 | +a(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(1==this.version)return[];{const t=Math.floor(this.version/7)+2,e=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*t-2));let i=[6];for(let o=this.size-7;i.length<t;o-=e)i.splice(1,0,o);return i}}static getNumRawDataModules(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version number out of range");let i=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;i-=(25*e-10)*e-55,t>=7&&(i-=36)}return a(208<=i&&i<=29648),i}static getNumDataCodewords(t,i){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let i=[];for(let e=0;e<t-1;e++)i.push(0);i.push(1);let o=1;for(let a=0;a<t;a++){for(let t=0;t<i.length;t++)i[t]=e.reedSolomonMultiply(i[t],o),t+1<i.length&&(i[t]^=i[t+1]);o=e.reedSolomonMultiply(o,2)}return i}static reedSolomonComputeRemainder(t,i){ | |
| 4360 | +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 | +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]], | |
| 4329 | 4362 | 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)} |
| 4330 | 4363 | 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 |
| 4331 | -;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})(dI||(dI={})),(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={}))})(dI||(dI={})),(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 | |
| 4332 | -})(e=t.QrSegment||(t.QrSegment={}))})(dI||(dI={}));var TI=dI,HI={L:TI.QrCode.Ecc.LOW,M:TI.QrCode.Ecc.MEDIUM,Q:TI.QrCode.Ecc.QUARTILE,H:TI.QrCode.Ecc.HIGH},MI=128,xI="L",kI="#FFFFFF",vI="#000000",_I=!1,RI=1;function SI(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 WI(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 UI({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(...TI.QrSegment.makeSegments(e)),t),[]);return TI.QrCode.encodeSegments(o,HI[e],i,void 0,void 0,r)},[t,e,i,r]) | |
| 4333 | -;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 PI=function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}return!0}(),jI=a.forwardRef(function(t,e){ | |
| 4334 | -const i=t,{value:o,size:l=MI,level:n=xI,bgColor:s=kI,fgColor:r=vI,includeMargin:b=_I,minVersion:c=RI,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}=UI({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=WI(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, | |
| 4335 | -PI?e.fill(new Path2D(SI(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=fI({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",fI({style:S,height:l,width:l,ref:H,role:"img"},g)),W)});jI.displayName="QRCodeCanvas";var wI=a.forwardRef(function(t,e){const i=t,{value:o,size:l=MI,level:n=xI,bgColor:s=kI,fgColor:r=vI,includeMargin:b=_I,minVersion:c=RI,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}=UI({value:o,level:n,minVersion:c,boostLevel:d,includeMargin:b,marginSize:p, | |
| 4336 | -imageSettings:m,size:l});let H=f,M=null;null!=m&&null!=T&&(null!=T.excavation&&(H=WI(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=SI(H,g);return a.createElement("svg",fI({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 zI(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}=Zc({attributeValue:r});return(0,a.useEffect)(()=>{const t=setTimeout(()=>{const t=o.current||document.getElementById(`${n}123`) | |
| 4337 | -;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,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:s,setAttributes:i,options:cI})}),(0,L.jsx)(Nb.A,{blockId:n,name:bI.UU,attributes:e,children:(0,L.jsx)(wI,{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})})]})} | |
| 4338 | -wI.displayName="QRCodeSVG",zI.propTypes={};const CI=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}};function AI(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:bI.UU,attributes:e,children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:h,width:p,height:m,"aria-hidden":"true",role:"img",focusable:"false",children:[(0,L.jsx)("path",{d:u&&u.length>0?u[0]:"",fill:o,shapeRendering:"crispEdges"}),(0,L.jsx)("path",{d:u&&u.length>0?u[1]:"",fill:a,shapeRendering:"crispEdges"}),b&&(0,L.jsx)("image",{href:g,height:T,width:H,x:f,y,opacity:n})]})})})}AI.propTypes={},(0,o.registerBlockType)(bI.UU,{title:"QR Code",attributes:bI.uK,icon:(0,L.jsx)("span",{ | |
| 4339 | -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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}.ablocks-block--qr-code .ablocks-block-container",CI(i,""),CI(i,"Tablet"),CI(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(rI,{...t}),(0,L.jsx)(zI,{...t})]})},save:AI});var LI=i(71651);function DI(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}while(t.includes(o));return o}function c(t){function e(e){ | |
| 4340 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Manage Datasets","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[o?.labels?.map((t,e)=>(0,L.jsxs)("div",{className:"ablocks-chart-block-input-label",children:[(0,L.jsx)(ql,{label:(0,z.__)(`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,L.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};i({data:l})}})]})),(0,L.jsxs)("button",{ | |
| 4341 | -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,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),"Add new dataset"]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(vs,{label:(0, | |
| 4342 | -z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(D,{title:(0,z.__)(`Dataset value ${e+1}`,"ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("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,L.jsx)(Nt,{}),(0, | |
| 4343 | -L.jsx)("h3",{className:"ablocks-chart-block-values-title",children:"Values"}),t?.data?.map((t,a)=>(0,L.jsx)(ql,{label:(0,z.__)(`${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,L.jsxs)("div",{className:"ablocks-chart-block-values-actions",children:[(0,L.jsx)("button",{className:"ablocks-chart-block-duplicate-button",onClick:()=>{i({data:{...o,datasets:[...o.datasets,t]}})},children:"Duplicate"}),(0,L.jsx)("button",{className:"ablocks-chart-block-remove-button",onClick:()=>{i({data:{...o,datasets:o.datasets.filter((t,i)=>i!==e)}})},children:"Remove"})]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeValue:t.backgroundColor,onChangeHandler:(t,a)=>{const l=a.startsWith("var:preset")?a.split("|")[1]:a;i({data:{...o, | |
| 4344 | -datasets:o.datasets.map((t,i)=>i===e?{...t,backgroundColor:l}:t)}})},showGlobal:!1}),(0,L.jsx)(vs,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Ut,{label:(0,z.__)("Point style","ablocks"),options:[{label:(0,z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Cross","ablocks"),value:"cross"},{label:(0,z.__)("Cross Rot","ablocks"),value:"crossRot"},{label:(0,z.__)("Dash","ablocks"),value:"dash"},{label:(0,z.__)("Line","ablocks"),value:"line"},{label:(0,z.__)("Rect","ablocks"),value:"rect"},{label:(0, | |
| 4345 | -z.__)("Rect Rounded","ablocks"),value:"rectRounded"},{label:(0,z.__)("Rect Rot","ablocks"),value:"rectRot"},{label:(0,z.__)("Star","ablocks"),value:"star"},{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsxs)("button",{className:"ablocks-chart-block-add-button",onClick:()=>{i({data:{...o, | |
| 4346 | -datasets:[...o.datasets,{label:(0,z.__)("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,L.jsx)("span",{className:"ablocks-icon ablocks-icon--plus"}),(0,z.__)("Add dataset value","ablocks")]})]}),(0,L.jsx)(D,{title:(0,z.__)("Chart settings","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Chart type","ablocks"),options:[{label:(0,z.__)("Bar","ablocks"),value:"bar"},{label:(0,z.__)("Line","ablocks"),value:"line"},{label:(0,z.__)("Pie","ablocks"),value:"pie"},{label:(0,z.__)("Polar area","ablocks"),value:"polarArea"},{label:(0,z.__)("Radar","ablocks"),value:"radar"}],attributeName:"chartType",attributeValue:n,setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Allow title","ablocks"),attributeValue:a.plugins.title.display, | |
| 4347 | -onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,display:t}}}})},attributeName:"allowTitle"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("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,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("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,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeValue:s,onChangeHandler:(t,e)=>{ | |
| 4348 | -const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({chartBG:o})},showGlobal:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeValue:r,attributeName:"chartWidth",setAttributes:i,attributeObjectKey:"value",isInline:!1,min:0,max:100,unitOptions:[{value:"%",label:"%"}],hasUnit:!0,isResponsive:!0,attributeDefaultValue:LI.Xb}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("X-axis grid size","ablocks"), | |
| 4349 | -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,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("Y-axis grid size","ablocks"),attributeValue:a.scales.y.grid.lineWidth??"1",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,y:{ | |
| 4350 | -...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,L.jsx)(D,{title:(0,z.__)("X-axis Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("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,z.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("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}}}}})}})]}), | |
| 4351 | -style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Ut,{label:(0,z.__)("Font weight","ablocks"),options:[{label:(0,z.__)("Normal","ablocks"),value:"normal"},{label:(0,z.__)("Bold","ablocks"),value:"bold"},{label:(0,z.__)("Lighter","ablocks"),value:"lighter"},{label:(0,z.__)("Bolder","ablocks"),value:"bolder"}],attributeValue:a.scales.x.title.font.weight??"normal",onChangeHandler:(t,e)=>{i({options:{...a, | |
| 4352 | -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,L.jsx)(D,{title:(0,z.__)("Y-axis Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("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,z.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("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, | |
| 4353 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:a.scales.y.title.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,scales:{...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,color:o}}}}})},showGlobal:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Font size","ablocks"),attributeValue:a.scales.y.title.font.size??"0",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,font:{...a.scales.y.title.font,size:t}}}}}})},min:0,max:50,isInline:!1,hasUnit:!1,isResponsive:!1,autoSyncRange:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Font weight","ablocks"),options:[{label:(0,z.__)("Normal","ablocks"),value:"normal"},{label:(0,z.__)("Bold","ablocks"),value:"bold"},{label:(0,z.__)("Lighter","ablocks"),value:"lighter"},{label:(0,z.__)("Bolder","ablocks"),value:"bolder"}],attributeValue:a.scales.y.title.font.weight??"normal",onChangeHandler:(t,e)=>{i({options:{...a,scales:{ | |
| 4354 | -...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,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeValue:a.plugins.title.text,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,title:{...a.plugins.title,text:t}}}})},placeholder:(0,z.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0, | |
| 4355 | -z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Ut,{label:(0,z.__)("Font weight","ablocks"),options:[{label:(0,z.__)("Normal","ablocks"),value:"normal"},{label:(0,z.__)("Bold","ablocks"),value:"bold"},{label:(0,z.__)("Lighter","ablocks"),value:"lighter"},{label:(0,z.__)("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, | |
| 4356 | -L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(D,{title:(0,z.__)("Sub Title","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Sub Title","ablocks"),attributeValue:a.plugins.subtitle.text,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,text:t}}}})},placeholder:(0,z.__)("Enter your title","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Start","ablocks"),value:"start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("End","ablocks"),value:"end",icon:"right"}], | |
| 4357 | -attributeValue:a.plugins.subtitle.align,onChangeHandler:t=>{i({options:{...a,plugins:{...a.plugins,subtitle:{...a.plugins.subtitle,align:t}}}})}})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Ut,{label:(0,z.__)("Font weight","ablocks"),options:[{label:(0,z.__)("Normal","ablocks"),value:"normal"},{label:(0,z.__)("Bold","ablocks"),value:"bold"},{label:(0,z.__)("Lighter","ablocks"),value:"lighter"},{label:(0, | |
| 4358 | -z.__)("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,L.jsx)(vt,{label:(0,z.__)("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]})})})}DI.propTypes={};const NI={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", | |
| 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 | |
| 4373 | +}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 | +;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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +...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 | +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 | +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, | |
| 4386 | +I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ws,{label:(0,L.__)("Color","ablocks"),attributeValue:a.scales.y.title.color,onChangeHandler:(t,e)=>{const o=e.startsWith("var:preset")?e.split("|")[1]:e;i({options:{...a,scales:{...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,color:o}}}}})},showGlobal:!1}),(0,I.jsx)(_t,{label:(0,L.__)("Font size","ablocks"),attributeValue:a.scales.y.title.font.size??"0",onChangeHandler:(t,e)=>{i({options:{...a,scales:{...a.scales,y:{...a.scales.y,title:{...a.scales.y.title,font:{...a.scales.y.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.y.title.font.weight??"normal",onChangeHandler:(t,e)=>{i({options:{...a,scales:{ | |
| 4387 | +...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 | +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 | +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 | +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", | |
| 4359 | 4392 | 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:{ |
| 4360 | 4393 | 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:"", |
| 4361 | 4394 | 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:"", |
| 4362 | 4395 | 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:"", |
| @@ -4364,56 +4397,35 @@ | ||
| 4364 | 4397 | 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, |
| 4365 | 4398 | 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:"", |
| 4366 | 4399 | 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, |
| 4367 | 4400 | 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:{ |
| 4368 | -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 II(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, | |
| 4369 | -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,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{}),(0,L.jsxs)(Nb.A,{blockId:n,name:NI.UU,attributes:e,children:[p&&(0,L.jsx)(A.Spinner,{}),(0,L.jsx)("canvas",{className:"ablocks-chart-canvas",ref:h,style:{display:"block",boxSizing:"border-box",background:u}})]})]})}const VI=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e)}),OI=(t,e="")=>{const{chartHeight:i,chartWidth:o,chartType:a}=t,l={...(0,Ob.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={ | |
| 4370 | -...(0,Ob.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 YI(t){const{attributes:e}=t,{block_id:i,chartType:o,chartBG:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:NI.UU,attributes:e,blockProps:{"data-chart-type":o,"data-data":JSON.stringify(e.data),"data-options":JSON.stringify(e.options)},children:(0,L.jsx)("canvas",{style:`display: block;box-sizing: border-box;background: ${a};`,className:"ablocks-chart-canvas"})})})}YI.propTypes={};function XI(t){const{attributes:e}=t,{block_id:i,chartType:o,chartBG:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{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,L.jsx)("canvas",{ | |
| 4371 | -style:`display: block;box-sizing: border-box;background: ${a};`,className:"ablocks-chart-canvas"})})})}XI.propTypes={},(0,M.xV)(NI.UU)&&(0,o.registerBlockType)(NI.UU,{title:"Chart",attributes:NI.uK,icon:(0,L.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;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",VI(i),VI(i,"Tablet"),VI(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-chart-canvas",OI(i),OI(i,"Tablet"),OI(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(DI,{...t}),(0,L.jsx)(II,{...t})]})},save:YI,deprecated:[{attributes:{ | |
| 4372 | -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:{size:14}},grid:{display:!0,color:"gray",lineWidth:1},title:{display:!0,text:"Y-Axis Label",color:"darkgreen",align:"center", | |
| 4373 | -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:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0, | |
| 4374 | -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, | |
| 4375 | -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:"",topRadiusHTablet:"", | |
| 4376 | -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:"", | |
| 4377 | -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:"", | |
| 4378 | -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:"", | |
| 4379 | -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:"", | |
| 4380 | -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:{ | |
| 4381 | -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:XI}]});var BI=i(9233);(0,z.__)("Thumbnail","ablocks"),(0,z.__)("Medium","ablocks"),(0,z.__)("Large","ablocks"),(0,z.__)("Full","ablocks"),(0,z.__)("Custom","ablocks"),(0,z.__)("None","ablocks"),(0,z.__)("Custom","ablocks");const EI=[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Custom URL","ablocks"),value:"custom"}],FI=[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Fill","ablocks"),value:"fill"},{label:(0, | |
| 4382 | -z.__)("Cover","ablocks"),value:"cover"},{label:(0,z.__)("Contain","ablocks"),value:"contain"}],qI=[{label:(0,z.__)("Static","ablocks"),value:"static"},{label:(0,z.__)("Zoom in","ablocks"),value:"zoomin"},{label:(0,z.__)("Slide","ablocks"),value:"slide"},{label:(0,z.__)("Gray scale","ablocks"),value:"grayscale"},{label:(0,z.__)("Blur","ablocks"),value:"blur"}],$I=[{label:(0,z.__)("Original","ablocks"),value:"original"},{label:(0,z.__)("Square - 1:1","ablocks"),value:"1/1"},{label:(0,z.__)("Standard - 4:3","ablocks"),value:"4/3"},{label:(0,z.__)("Portrait - 3:4","ablocks"),value:"3/4"},{label:(0,z.__)("Classic - 3:2","ablocks"),value:"3/2"},{label:(0,z.__)("Classic Portrait - 2:3","ablocks"),value:"2/3"},{label:(0,z.__)("Wide - 16:9","ablocks"),value:"16/9"},{label:(0,z.__)("Tall - 9:16","ablocks"),value:"9/16"}];function GI(t){ | |
| 4383 | -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=at(),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:U}=(0,r.useSelect)(t=>{const{getMedia:e}=t(ge.store);return{image:W&&o?e(W):null}},[o,W]),P=(0,L.jsxs)(L.Fragment,{children:[R?.length>0&&(0,L.jsx)(Ut,{label:(0,z.__)("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} | |
| 4384 | -})(U,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,L.jsx)(Ut,{label:(0,z.__)("Aspect ratio","ablocks"),isResponsive:!0,options:$I,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,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:h,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center", | |
| 4385 | -icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Featured Image Dimensions","ablocks"),isHeader:!0}),(0,L.jsx)(ql,{label:(0,z.__)("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,z.__)("Auto","ablocks"),isInline:!1,isResponsive:!0,disableDynamicContent:!0}),(0,L.jsx)(ql,{ | |
| 4386 | -label:(0,z.__)("Height","ablocks"),attributeName:"height",attributeValue:x["showHeight"+k]?x["height"+k]:"",placeholder:(0,z.__)("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,L.jsx)(Ut,{label:(0,z.__)("Object fit","ablocks"),isResponsive:!0,options:FI,attributeName:"objectFit",attributeValue:e.objectFit,attributeObjectKey:"value",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ql,{label:(0,z.__)("Title","ablocks"),attributeName:"imgTitle",attributeValue:e.imgTitle,setAttributes:i,isInline:!1,context:s}),(0,L.jsx)(Ut,{label:(0,z.__)("Link","ablocks"),options:EI,attributeObjectKey:"linkDestination", | |
| 4387 | -attributeValue:e?.imgLink,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,linkDestination:t}})}}),"custom"===H&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Image link","ablocks"),attributeName:"imgLink",attributeValue:M,isInline:!1,setAttributes:i,onChangeHandler:t=>{i({imgLink:{...e?.imgLink,href:t}})},disableDynamicContent:!0}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Open in new tab","ablocks"),attributeValue:e?.imgLink,setAttributes:i,attributeName:"imgLink",attributeObjectKey:"linkTarget"})]}),(0,L.jsxs)("div",{className:"ablocks-alt-text-control",children:[(0,L.jsxs)("div",{className:"ablocks-alt-text-control__header",children:[(0,L.jsx)("span",{children:(0,z.__)("Alt Text","ablocks")}),(0,L.jsx)("span",{onClick:()=>{i({imgAltText:""})},onKeyDown:()=>{},role:"presentation",className:"ablocks-alt-text-control__clear",children:(0,z.__)("clear","ablocks")})]}),(0,L.jsx)(ql,{attributeName:"imgAltText",attributeValue:e.imgAltText,setAttributes:i, | |
| 4388 | -isInline:!1,context:s})]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("On Hover image","ablocks"),options:qI,attributeName:"onHoverImg",attributeValue:e.onHoverImg,setAttributes:i})]}),j=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Filter & Opacity","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:g,attributeName:"cssFilter",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacity",attributeValue:u,setAttributes:i,attributeDefaultValue:BI.ke})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ly,{label:(0,z.__)("CSS Filters","ablocks"),isResponsive:!0,attributeValue:f,attributeName:"cssHoverFilter",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"opacityH",attributeValue:p, | |
| 4389 | -setAttributes:i,attributeDefaultValue:BI.md}),(0,L.jsx)(vt,{label:(0,z.__)("Transition duration(ms)","ablocks"),min:0,max:10,step:.5,isInline:!1,isResponsive:!1,setAttributes:i,attributeName:"filterTransitionDuration",attributeValue:T,attributeDefaultValue:BI.yy})]})}),(0,L.jsx)(Nt,{margin:"20"}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i}),(0,L.jsx)(Uv,{note:(0,z.__)("Border hover worked only frontend","ablocks")}),(0,L.jsx)(Nt,{margin:"20"}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:y,setAttributes:i}),(0,L.jsx)(Uv,{note:(0,z.__)("Box shadow hover worked only frontend","ablocks")})]});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{title:(0, | |
| 4390 | -z.__)("Featured Image","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:P,style:j})})})})})}GI.propTypes={};const ZI={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:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"", | |
| 4391 | -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:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"", | |
| 4392 | -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:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"", | |
| 4393 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px", | |
| 4394 | -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:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object", | |
| 4395 | -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:"", | |
| 4396 | -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:{ | |
| 4397 | -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:"", | |
| 4398 | -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:"", | |
| 4399 | -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:"", | |
| 4400 | -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:"", | |
| 4401 | -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:"", | |
| 4402 | -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"}}}},KI=t=>parseInt(t||0,10)||0;function JI(t){const{attributes:e,context:i}=t,{block_id:o}=e,l=(0,r.useSelect)(t=>{const o=t("core/editor"),a=t("core/edit-site")?.getEditedPostContext?.()??{},l=KI(i?.postId||o?.getCurrentPostId?.()||a?.postId||e?.postId);if(l)return l | |
| 4403 | -;const n=i?.postType||a?.postType||o?.getCurrentPostType?.()||"post",s=t("core")?.getEntityRecords?.("postType",n,{per_page:1,order:"desc",orderby:"date"});return KI(s?.[0]?.id)},[i?.postId,i?.postType,e?.postId])||0,n=(0,a.useMemo)(()=>l?{post_id:l}:{},[l]);return(0,L.jsx)(Nb.A,{blockId:o,name:ZI.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight}],children:(0,L.jsx)(BS(),{block:ZI.UU,httpMethod:"POST",attributes:e,urlQueryArgs:n},`fi-ssr-${l}`)})}const QI=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}},tV=(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},eV=(t,e="")=>{const{opacity:i,onHoverImg:o}=t,a={},l={...(0,Ob.qD)({attributeValue:i,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})} | |
| 4404 | -;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,ay.qD)(t?.cssFilter,e),...(0,H.qD)(t?.boxShadow,e)}},iV=(t,e="")=>{const{onHoverImg:i,opacityH:o}=t,a={},l={...(0,Ob.qD)({attributeValue:o,defaultValue:1,property:"opacity",unitDefaultValue:"",device:e})},n={...(0,Ob.qD)({attributeValue:t.transitionDuration,defaultValue:.5,property:"transitionDuration",unitDefaultValue:"",device:e})},s={...(0,Ob.qD)({attributeValue:t.filterTransitionDuration,defaultValue:.5, | |
| 4405 | -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{...a,...l,...(0,y.a9)(r,e),...(0, | |
| 4406 | -ay.qD)(t?.cssHoverFilter,e),...(0,H.a9)(t?.boxShadow,e)}};(0,M.xV)(ZI.UU)&&(0,o.registerBlockType)(ZI.UU,{title:(0,z.__)("Featured Image","ablocks"),attributes:ZI.uK,icon:(0,L.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 w(i,l);return t.addClassStyles("{{WRAPPER}}",QI(i),QI(i,"Tablet"),QI(i,"Mobile")),t.addClassStyles("{{WRAPPER}}",tV(i),tV(i,"Tablet"),tV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-container > .ablocks-block--featured-image > .ablocks-featured-image",eV(i),eV(i,"Tablet"),eV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--featured-image img:hover",iV(i),iV(i,"Tablet"),iV(i,"Mobile")),(0,b.applyFilters)("ablocks.featuredImage.inlineCSS",t.generateCSS(),i)},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0, | |
| 4407 | -L.jsx)(GI,{...t}),(0,L.jsx)(JI,{...t})]})},save:()=>null});var oV=i(58372);function aV(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Breadcrumbs Settings","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Home Text Change","ablocks"), | |
| 4408 | -attributeName:"homeBreadcrumbs",attributeValue:o,setAttributes:i,isInline:!1,placeholder:(0,z.__)("Home","ablocks"),disableDynamicContent:!1}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"positionBreadcrumb",attributeValue:a,setAttributes:i,options:[{label:"Start",value:"start",icon:"arrow-left"},{label:"Center",value:"center",icon:"wrap"},{label:"End",value:"end",icon:"arrow-right"}],isInline:!1}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Before Text/Image","ablocks"),attributeValue:g,setAttributes:i,attributeName:"beforeTextImage"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable FAQ Schema (SEO)","ablocks"),attributeValue:e?.enableFaqSchema,setAttributes:i,attributeName:"enableFaqSchema"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"breadcrumbTitleTypography",attributeValue:v,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!0, | |
| 4409 | -attributeName:"breadcrumbTitlecolor",attributeValue:n,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Space Between","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"breadcrumbSpaceBetween",attributeValue:e?.breadcrumbSpaceBetween,setAttributes:i,attributeDefaultValue:oV.sk}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!0,attributeName:"breadcrumbItemBackground",attributeValue:x,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"breadcrumbItemPadding",attributeValue:M,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Border Radius","ablocks"),isResponsive:!0,attributeName:"BreadcrumbBorderRadius",attributeValue:H,setAttributes:i})]})})}),(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Link Style","ablocks"),initialOpen:!1,children:(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Link Color","ablocks"),isGradient:!0,attributeName:"breadcrumbLinkcolor",attributeValue:s,setAttributes:i}), | |
| 4410 | -hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Link Color","ablocks"),isGradient:!0,attributeName:"breadcrumbHoverLinkcolor",attributeValue:r,setAttributes:i})})}),(0,L.jsxs)(A.PanelBody,{title:(0,z.__)("Separator Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ql,{label:(0,z.__)("Separator Change","ablocks"),attributeName:"SeparatorChange",attributeValue:c,setAttributes:i,isInline:!1,placeholder:(0,z.__)(">","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(vs,{label:(0,z.__)("Separator Color","ablocks"),isGradient:!0,attributeName:"breadcrumbseparatorcolor",attributeValue:b,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Separator Size","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"breadcrumbseparsize",attributeValue:e?.breadcrumbseparsize,setAttributes:i,attributeDefaultValue:oV.St})]}),g&&(0,L.jsx)(A.PanelBody,{title:(0,z.__)("Before Text/Image","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{ | |
| 4411 | -label:(0,z.__)("Select Text/Image","ablocks"),attributeName:"beforeBreadcrumbTextImage",attributeValue:m,setAttributes:i,options:[{label:"Select option",value:""},{label:"Text",value:"text"},{label:"Image",value:"image"}]}),"image"===e.beforeBreadcrumbTextImage&&(0,L.jsx)(As,{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,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"beforeBreadcrumbText",attributeValue:h,setAttributes:i,isInline:!1,placeholder:(0,z.__)("Home","ablocks"),disableDynamicContent:!1}),e.beforeBreadcrumbTextImage&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Before Separator","ablocks"),attributeValue:k,setAttributes:i,attributeName:"beforeSeparator"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0, | |
| 4412 | -z.__)("Background Color","ablocks"),isGradient:!0,attributeName:"beforeBreadcrumbBackgroundcolor",attributeValue:f,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"beforeBreadcrumbPaddingcolor",attributeValue:y,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Border Radius","ablocks"),isResponsive:!0,attributeName:"beforeBreadcrumbBorderRadius",attributeValue:T,setAttributes:i})]})})})]})})})}aV.propTypes={};const lV={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:{type:"string",default:""},breadcrumbHoverLinkcolor:{type:"string",default:""},beforeSeparator:{type:"boolean",default:!1},breadcrumbItemBackground:{type:"string",default:""},breadcrumbLinkcolor:{type:"string",default:""},breadcrumbseparatorcolor:{type:"string",default:""}, | |
| 4413 | -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:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px", | |
| 4414 | -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:"",leftMobile:"",unitMobile:""}},beforeBreadcrumbPaddingcolor:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"", | |
| 4415 | -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:""}},_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:"", | |
| 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:{ | |
| 4406 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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){ | |
| 4416 | +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 | +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:"", | |
| 4424 | +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 | +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 | +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 | +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:"", | |
| 4416 | 4428 | 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:"",rightWidthHTablet:"", |
| 4417 | 4429 | 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:"", |
| 4418 | 4430 | 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:"",imgAttachment:"",imgRepeat:"", |
| 4419 | 4431 | 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:"", |
| @@ -4419,233 +4431,257 @@ | ||
| 4419 | 4431 | 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:"", |
| 4420 | 4432 | 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:"", |
| 4421 | 4433 | 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, |
| 4422 | 4434 | 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:"", |
| 4423 | -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 nV(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:lV.UU,attributes:e,typography:[{fontFamily:e.breadcrumbTitleTypography?.fontFamily, | |
| 4424 | -weight:e.breadcrumbTitleTypography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/breadcrumb",httpMethod:"POST",attributes:e})})})})}nV.propTypes={};const sV=(t,e="")=>{const i={};return t?.breadcrumbSpaceBetween&&(i.gap=`${t?.breadcrumbSpaceBetween}px`),{...i,...(0,Gt.qD)(t?.positionBreadcrumb,"justify-content",e)}},rV=(t,e="")=>({...(0,Gt.qD)(t?.positionBreadcrumb,"justify-content",e)}),bV=(t,e="")=>{const i={},o=(0,M.Zy)(t.breadcrumbTitleTypography,{weight:"500"}),a=t.breadcrumbTitleTypographyGlobal?t.breadcrumbTitleTypographyGlobal:"";return t?.breadcrumbTitlecolor&&(i.color=(0,gs.qD)(t?.breadcrumbTitlecolor)),t?.breadcrumbItemBackground&&(i.backgroundColor=(0,gs.qD)(t?.breadcrumbItemBackground)),{...i,...(0,P.qD)(o,e,a),...(0,Gt.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, | |
| 4425 | -gs.qD)(t?.breadcrumbLinkcolor)),{...i}},dV=(t,e="")=>{const i={};return t?.breadcrumbHoverLinkcolor&&(i.color=(0,gs.qD)(t?.breadcrumbHoverLinkcolor)),{...i}},uV=(t,e="")=>{const i={};return t?.breadcrumbseparatorcolor&&(i.color=(0,gs.qD)(t?.breadcrumbseparatorcolor)),t?.breadcrumbseparsize&&(i.fontsize=`${t?.breadcrumbseparsize}px`),{...i}},pV=(t,e="")=>{const i={};return t?.beforeBreadcrumbBackgroundcolor&&(i.backgroundColor=(0,gs.qD)(t?.beforeBreadcrumbBackgroundcolor)),{...i,...(0,c.qD)(t?.beforeBreadcrumbPaddingcolor,"padding",e),...(0,c.qD)(t?.beforeBreadcrumbBorderRadius,"border-radius",e)}};(0,M.xV)(lV.UU)&&(0,o.registerBlockType)(lV.UU,{title:"Breadcrumb",attributes:lV.uK,icon:(0,L.jsx)("span",{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 j(i,l) | |
| 4426 | -;return t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs",sV(i),sV(i,"Tablet"),sV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span",rV(i),rV(i,"Tablet"),bV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a",cV(i),cV(i,"Tablet"),cV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ablocks-breadcrumbs span a:hover",dV(i),dV(i,"Tablet"),dV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__item",bV(i),bV(i,"Tablet"),bV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs__separator",uV(i),uV(i,"Tablet"),uV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-breadcrumbs___before-image , {{WRAPPER}} .ablocks-breadcrumbs__before-text",pV(i),pV(i,"Tablet"),pV(i,"Mobile")),(0,b.applyFilters)("ablocks.breadcrumb.inlineCSS",t.generateCSS(),i)},[i]);return(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)(aV,{...t}),(0,L.jsx)("style",{children:s}),(0,L.jsx)(nV,{...t})]})},save:()=>null});const mV=(0,Ob.D$)({ | |
| 4427 | -attributeName:"iconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),hV=(0,Ob.D$)({attributeName:"innerCircleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:250,defaultValueTablet:200,defaultValueMobile:120,copyStyle:!0}),gV=(0,Ob.D$)({attributeName:"itemButtonSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:150,defaultValueTablet:120,defaultValueMobile:80,copyStyle:!0}),fV=(0,Ob.D$)({attributeName:"itemPosition",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,defaultValueTablet:30,defaultValueMobile:20,copyStyle:!0}),yV=(0,Ob.D$)({attributeName:"circleSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:450,defaultValueTablet:350,defaultValueMobile:250,copyStyle:!0}),TV=(0,Ob.D$)({attributeName:"dividerWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),HV=(0,Ob.D$)({attributeName:"imgWidth", | |
| 4428 | -attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),MV=(0,Ob.D$)({attributeName:"itemSpacing",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),xV=(0,Ob.D$)({attributeName:"imgRadius",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),kV=(0,Ob.D$)({attributeName:"imgHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),vV=(0,Ob.D$)({attributeName:"dividerWeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:5,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),_V=((0,z.__)("Title","ablocks"),(0,z.__)("Info Title","ablocks"),(0,z.__)("Info Description","ablocks"),(0,Gt.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, | |
| 4429 | -y.D$)("circleBorder",!0),(0,y.D$)("layoutBorder",!0),(0,H.D$)("circleBoxShadow"),(0,H.D$)("layoutBoxShadow"),(0,P.D$)("itemTypography",!0),(0,P.D$)("titleTypography",!0),(0,P.D$)("textTypography",!0),Mr.Ay,(0,z.__)("Full","ablocks"),(0,z.__)("Large","ablocks"),(0,z.__)("Medium","ablocks"),(0,z.__)("Thumbnail","ablocks"),[{label:"Solid",value:"solid"},{label:"Double",value:"double"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}]),RV=[{value:"default",label:"Default"},{value:"stacked",label:"Stacked"},{value:"framed",label:"Framed"}],SV=[{label:"Circle",value:"circle"},{label:"Square",value:"square"}],WV=t=>{const{iconAttributes:e,index:i,listProperties:o,inlineColor:a}=t;let l;{const t=e?.[i];l=(0,L.jsx)(Vd,{customIconData:t,style:{color:a||(o?.iconColor?(0,gs.qD)(o?.iconColor):""),fill:o?.iconColor?(0,gs.qD)(o?.iconColor):""}})}return l};function UV(t){ | |
| 4430 | -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:U,divider:P,dividerPatternUrl:j,dividerWeight:w,dividerWidth:A,borderColor:N,selectedImageSize:I,circleBorder:O,alignment:Y,circlePadding:X,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:at,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=()=>{ | |
| 4431 | -const t=o.length?Math.max(...o.map(t=>t.id))+1:0,e={id:t,iconTitle:(0,z.sprintf)((0,z.__)("Title %d","ablocks"),t),link:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""},iconTitleColor:"",iconColor:"",buttonBgColor:"",title:(0,z.sprintf)((0,z.__)("Info Title %d","ablocks"),t),titleColor:"",dividerColor:"",description:(0,z.sprintf)((0,z.__)("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:[...U,""],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) | |
| 4432 | -},[l,o.length]),(0,L.jsx)(React.Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-list-block/",children:[(0,L.jsx)(D,{title:(0,z.__)(" General","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Infographic Alignment","ablocks"),options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}],attributeName:"alignment",attributeValue:Y,setAttributes:i,isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("Default Item Title","ablocks"),attributeName:"itemTitle",attributeValue:n,setAttributes:i,placeholder:(0,z.__)("Enter your item title","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Default Item Text","ablocks"),attributeName:"itemText",attributeValue:s,setAttributes:i,placeholder:(0,z.__)("Enter your item text","ablocks"), | |
| 4433 | -disableDynamicContent:!0}),(0,L.jsx)(ot,{label:(0,z.__)(" Default Image","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(As,{allowedTypes:["image"],attributeValue:e,attributeName:"defaultImg",onSelectImageHandler:t=>i({defaultImg:t.url}),onRemoveImageHandler:t=>{i({defaultImg:""})},setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Default Item","ablocks"),options:[{label:(0,z.__)("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,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)(" Show Icon In Button","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showIconInButton"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)(" Show text In Button","ablocks"),attributeValue:r,setAttributes:i,attributeName:"showTextInButton"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)(" Enable Segments Type","ablocks"),attributeValue:l,setAttributes:i, | |
| 4434 | -attributeName:"enableSegments"}),!l&&(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Animation","ablocks"),attributeValue:d,setAttributes:i,attributeName:"animation"}),d&&!l&&(0,L.jsx)(js,{label:(0,z.__)("Animation Speed","ablocks"),attributeName:"animationSpeed",attributeValue:p,min:.1,step:.1,placeHolder:20,setAttributes:i,disableDynamicContent:!0}),(0,L.jsx)(Ut,{label:(0,z.__)("Item Trigger Type","ablocks"),options:[{label:(0,z.__)("Hover","ablocks"),value:"mouseenter"},{label:(0,z.__)("Click","ablocks"),value:"click"}],attributeName:"itemTrigger",attributeValue:u,setAttributes:i,onChangeHandler:t=>i({itemTrigger:t})})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Circle Size","ablocks"),min:_.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"circleSize",attributeValue:R,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:yV}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{ | |
| 4435 | -attributeName:"circleBorder",attributeValue:O,setAttributes:i,hasBorderRadius:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"circlePadding",attributeValue:X,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"circleBoxShadow",attributeValue:B,setAttributes:i}),(0,L.jsx)(vt,{label:l?(0,z.__)("Segment Inner Item Size","ablocks"):(0,z.__)("Item Button Size","ablocks"),min:1,max:R?.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemButtonSize",attributeValue:v,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:gV}),!l&&(0,L.jsx)(vt,{label:(0,z.__)("item Position","ablocks"),min:1,step:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemPosition",attributeValue:F,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:fV}),(0,L.jsx)(Wc,{label:(0, | |
| 4436 | -z.__)("Typography","ablocks"),attributeName:"itemTypography",attributeValue:E,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Item Color","ablocks"),attributeName:"itemColor",attributeValue:$,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Item Button Color","ablocks"),attributeName:"itemButtonColor",attributeValue:q,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Inner Circle Size","ablocks"),min:1,max:R?.value,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"innerCircleSize",attributeValue:_,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:hV})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Layout","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)(" Enable Title","ablocks"),attributeValue:m,setAttributes:i,attributeName:"layoutShowTitle"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Enable Divider","ablocks"),attributeValue:P,setAttributes:i, | |
| 4437 | -attributeName:"divider"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)(" Enable Text","ablocks"),attributeValue:h,setAttributes:i,attributeName:"layoutShowText"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)(" Enable Image","ablocks"),attributeValue:g,setAttributes:i,attributeName:"layoutShowImage"}),(0,L.jsx)(Ut,{label:(0,z.__)(" Image Position","ablocks"),options:[{label:(0,z.__)("Bottom","ablocks"),value:"bottom"},{label:(0,z.__)("Top","ablocks"),value:"top"}],attributeName:"layoutImagePosition",attributeValue:f,setAttributes:i,onChangeHandler:t=>i({layoutImagePosition:t})})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("BG Color","ablocks"),attributeName:"layoutColor",attributeValue:Z,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"layoutBorder",attributeValue:K,setAttributes:i,hasBorderRadius:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0, | |
| 4438 | -attributeName:"layoutPadding",attributeValue:G,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"layoutBoxShadow",attributeValue:J,setAttributes:i})]})})}),(0,L.jsx)(D,{title:(0,z.__)(" Infographic Setting","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(tf,{onDragEnd:t=>{if(!t.destination)return;const e=mt(o,t.source.index,t.destination.index),a=mt(U,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,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsxs)("div",{ref:t.innerRef,...t.droppableProps,children:[o?.map((t,a)=>(0,L.jsx)(Uf,{draggableId:`${t?.id}`,index:a,children:n=>(0,L.jsxs)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,className:"ablocks-editor-list",children:[(0, | |
| 4439 | -L.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,L.jsxs)("div",{className:"ablocks-editor-list__content-wrapper",children:[(0,L.jsx)("span",{className:"ablocks-editor-list__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,L.jsx)("span",{className:"ablocks-list-text",children:t?.iconTitle.length>20?t?.iconTitle.slice(0,20)+"...":t?.iconTitle})]}),(0,L.jsxs)("div",{className:"ablocks-editor-list__options-wrapper",children:[(0,L.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;const l=o.filter((t,e)=>e!==a),n=U.filter((t,e)=>e!==a),s=(W||[]).filter((t,e)=>e!==a) | |
| 4440 | -;i({itemLists:l,listIconsClasses:n,listIcons:s})})(e,t?.id)},role:"presentation",onKeyDown:()=>{}}),(0,L.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=[...U,U[a]||""],c=[...W||[],(W||[])[a]||{path:"",viewBox:""}];i({itemLists:r,listIconsClasses:b,listIcons:c})})(e,t?.id),role:"presentation",onKeyDown:()=>{}})]})]}),t?.isOpen&&(0,L.jsx)("div",{className:"ablocks-editor-list__inner-content",children:(0,L.jsx)(Rb,{content:(0, | |
| 4441 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Button Label","ablocks"),attributeValue:t?.iconTitle,setAttributes:i,onChangeHandler:e=>ut(t?.id,e,"iconTitle"),placeholder:(0,z.__)("Enter your icon title","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(Ld,{label:(0,z.__)("Button Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:e=>((t,e)=>{let a=[];switch(t.substring(2,3)){case"r":a=Wd;break;case"s":a=Pd;break;case"b":a=Ud}const l=a[t.substring(7)],n=`0 0 ${l[0]} ${l[1]}`,s=l[4],r=[...W||[]],b=[...U||[]],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=U||[],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})})(a),getIconClass:()=>U?.[a],legacySupport:!0}),(0,L.jsx)(ql,{ | |
| 4442 | -label:(0,z.__)("Title","ablocks"),attributeValue:t?.title,setAttributes:i,onChangeHandler:e=>ut(t?.id,e,"title"),placeholder:(0,z.__)("Enter your title","ablocks"),disableDynamicContent:!0}),l&&(0,L.jsx)(js,{label:(0,z.__)("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,L.jsx)(ae,{label:(0,z.__)("Description","ablocks"),attributeValue:t?.description,setAttributes:i,onChangeHandler:e=>ut(t?.id,e,"description"),placeholder:(0,z.__)("Enter your description","ablocks"),disableDynamicContent:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Image","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(As,{allowedTypes:["image"],attributeValue:t,attributeObjectKey:"backgroundImage",disableDynamicContent:!0,attributeName:"backgroundImage",onSelectImageHandler:t=>{ | |
| 4443 | -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,L.jsx)(js,{label:(0,z.__)("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,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:t.link,setAttributes:i,onChangeHandler:(e,i)=>ht(t,"link",{...t.link,[e]:i})})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Button label color","ablocks"),attributeName:"iconTitleColor",attributeValue:t.iconTitleColor,setAttributes:i,resetHandler:()=>ht(t,"iconTitleColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Button Icon color","ablocks"),attributeName:"iconColor", | |
| 4444 | -attributeValue:t.iconColor,setAttributes:i,resetHandler:()=>ht(t,"iconColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Button BG Color","ablocks"),attributeName:"buttonBgColor",attributeValue:t.buttonBgColor,setAttributes:i,resetHandler:()=>ht(t,"buttonBgColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Title color","ablocks"),attributeName:"titleColor",attributeValue:t.titleColor,setAttributes:i,resetHandler:()=>ht(t,"titleColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Divider color","ablocks"),attributeName:"dividerColor",attributeValue:t.dividerColor,setAttributes:i,resetHandler:()=>ht(t,"dividerColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}}),(0,L.jsx)(vs,{label:(0,z.__)("Description color","ablocks"),attributeName:"descriptionColor",attributeValue:t.descriptionColor,setAttributes:i,resetHandler:()=>ht(t,"descriptionColor"),onChangeHandler:(e,i)=>{ht(t,e,i)}})]})})})]})},t?.id)),t.placeholder]})})}),(0, | |
| 4445 | -L.jsx)(V,{label:(0,z.__)("Add item","ablocks"),onClick:pt,className:"ablocks-add-list-item-button"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Item Spacing","ablocks"),attributeName:"itemSpacing",attributeObjectKey:"value",attributeValue:at,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:MV})," ",l&&(0,L.jsx)(Mt,{label:(0,z.__)("Item Adjustable Margin","ablocks"),isResponsive:!0,attributeName:"segMargin",attributeValue:M,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Title Color","ablocks"),attributeName:"titleColor",attributeValue:Q,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Title Typography","ablocks"),attributeName:"titleTypography",attributeValue:tt,setAttributes:i,isResponsive:!0,attributes:e}),P&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Divider Style","ablocks"),options:_V,attributeName:"dividerPatternUrl",attributeValue:j,onChangeHandler:t=>{ | |
| 4446 | -const e=_V?.find(e=>e.value===t);i({dividerPatternUrl:e.value,dividerType:e.type})}}),(0,L.jsx)(vt,{label:(0,z.__)("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:vV,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Divider Width","ablocks"),attributeName:"dividerWidth",attributeObjectKey:"value",attributeValue:A,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:TV}),(0,L.jsx)(vs,{label:(0,z.__)("Divider Color","ablocks"),attributeName:"borderColor",attributeValue:N,setAttributes:i})]}),(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeName:"textColor",attributeValue:et,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Text Typography","ablocks"),attributeName:"textTypography", | |
| 4447 | -attributeValue:it,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vt,{label:(0,z.__)("Image Radius","ablocks"),attributeName:"imgRadius",attributeObjectKey:"value",attributeValue:st,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:xV}),(0,L.jsx)(vt,{label:(0,z.__)("Image Width","ablocks"),attributeName:"imgWidth",attributeObjectKey:"value",attributeValue:lt,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:HV}),(0,L.jsx)(vt,{label:(0,z.__)("Image Height","ablocks"),attributeName:"imgHeight",attributeObjectKey:"value",attributeValue:nt,setAttributes:i,hasUnit:!0,step:1,min:1,max:100,isInline:!1,autoSyncRange:!0,attributeDefaultValue:kV}),(0,L.jsx)(Ut,{label:(0,z.__)(" Image Type ","ablocks"),options:[{label:(0,z.__)("Cover","ablocks"),value:"cover"},{label:(0,z.__)("Contain","ablocks"),value:"contain"}],attributeName:"layoutImageType",attributeValue:rt,setAttributes:i, | |
| 4448 | -onChangeHandler:t=>i({layoutImageType:t})})]})})}),(0,L.jsx)(D,{title:(0,z.__)("Icon","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("View","ablocks"),options:RV,attributeName:"iconType",attributeValue:x,setAttributes:i}),dt&&(0,L.jsx)(Ut,{label:(0,z.__)("Shape","ablocks"),options:SV,attributeValue:k,attributeName:"iconShape",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),min:0,max:300,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"iconSize",attributeValue:y,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:mV,unitOptions:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"iconColor",attributeValue:T,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Primary Color","ablocks"),attributeName:"iconBackgroundColor",attributeValue:S,setAttributes:i}),(0, | |
| 4449 | -L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:H,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})})})]})})})}UV.propTypes={};const PV={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:{type:"boolean",default:!0},layoutShowImage:{type:"boolean",default:!1}, | |
| 4450 | -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},dividerPatternUrl:{type:"string",default:"solid"},borderColor:{ | |
| 4451 | -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:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"", | |
| 4452 | -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:""}},layoutBorder:{type:"object", | |
| 4453 | -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:"", | |
| 4454 | -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:""}},circlePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"", | |
| 4455 | -bottomMobile:"",leftMobile:"",unitMobile:""}},layoutPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},circleBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},layoutBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},alignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},padding:{type:"object",default:{ | |
| 4456 | -isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},segMargin:{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:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"", | |
| 4457 | -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:""}},itemTypographyGlobal:{type:"string",default:""},itemTypography:{ | |
| 4458 | -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"}},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:"", | |
| 4459 | -lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},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"}},iconSize:{type:"object",default:{value:20,valueTablet:"", | |
| 4460 | -valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},innerCircleSize:{type:"object",default:{value:300,valueTablet:260,valueMobile:150}},itemButtonSize:{type:"object",default:{value:150,valueTablet:120,valueMobile:80}},itemPosition:{type:"object",default:{value:50,valueTablet:30,valueMobile:20}},circleSize:{type:"object",default:{value:450,valueTablet:350,valueMobile:250}},dividerWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},itemSpacing:{type:"object",default:{value:1,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},imgRadius:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},imgWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},imgHeight:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px", | |
| 4461 | -valueUnitTablet:"",valueUnitMobile:""}},dividerWeight:{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:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"", | |
| 4462 | -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, | |
| 4463 | -commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px", | |
| 4464 | -hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 4465 | -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:"", | |
| 4466 | -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:"", | |
| 4467 | -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:"", | |
| 4468 | -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", | |
| 4469 | -ease:"none",x:0,y:0,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 jV({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,L.jsx)(L.Fragment,{children:t>=0&&i?.[t]?(0,L.jsxs)(L.Fragment,{children:[d&&"top"===u&&i[t].backgroundImage&&(0,L.jsxs)(L.Fragment,{children:[" ",(0,L.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"}, | |
| 4470 | -src:i[t].backgroundImage,loading:"lazy"})," "]}),r&&(0,L.jsx)(C.RichText.Content,{tagName:"h2",className:"ablocks-interactive-inner-heading",value:i[t].title,style:{color:(0,gs.qD)(i[t].titleColor)}}),b&&(0,L.jsx)("div",{className:" ablocks-interactive-divider ablocks-divider__pattern-css ",style:{"--ablocks-divider-pattern-color":`${(0,gs.qD)(i[t].dividerColor)}`}}),c&&(0,L.jsx)(C.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:i[t].description,style:{color:(0,gs.qD)(i[t].descriptionColor)}}),d&&"bottom"===u&&i[t].backgroundImage&&(0,L.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"},src:i[t].backgroundImage,loading:"lazy"})]}):(0,L.jsxs)(L.Fragment,{children:[d&&m&&"top"===u&&(0,L.jsx)("img",{src:m,loading:"lazy",style:{objectFit:"cover"}}),r&&(0,L.jsx)(C.RichText.Content,{tagName:"h2",className:"ablocks-interactive-inner-heading",value:o}),b&&(0,L.jsx)("div",{className:" ablocks-interactive-divider ablocks-divider__pattern-css " | |
| 4471 | -}),c&&(0,L.jsx)(C.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:a}),d&&m&&"bottom"===u&&(0,L.jsx)("img",{src:m,loading:"lazy",style:{objectFit:"cover"}})]})})}function wV({index:t,attributes:e,list:i}){const{listIcons:o,defaultImg:a,showTextInButton:l,showIconInButton:n,itemColor:s}=e;return(0,L.jsxs)("div",{className:"ablocks-interactive-item-content",children:[n&&(0,L.jsx)(WV,{index:t,iconAttributes:o,listProperties:i,inlineColor:i?.iconColor}),l&&(0,L.jsx)(C.RichText.Content,{tagName:"span",value:i?.iconTitle,className:"ablocks-interactive__item-text",style:{color:(0,gs.qD)(i?.iconTitleColor)||s}})]},i?.id)}function zV({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,L.jsx)(L.Fragment,{children:t>=0&&i?.[t]?(0,L.jsxs)(L.Fragment,{children:[c&&"top"===d&&(0, | |
| 4472 | -L.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"},loading:"lazy",src:i[t].backgroundImage}),s&&(0,L.jsx)(C.RichText.Content,{tagName:"h2",className:"ablocks-interactive-inner-heading",value:i[t]?.title||"",style:{color:(0,gs.qD)(i[t]?.titleColor)||void 0}}),r&&(0,L.jsx)("div",{className:" ablocks-interactive-divider ablocks-divider__pattern-css ",style:{"border-bottom-color":i[t]?.dividerColor?.trim()||void 0}}),b&&(0,L.jsx)(C.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:i[t].description,style:{color:(0,gs.qD)(i[t].descriptionColor)}}),c&&"bottom"===d&&(0,L.jsx)("img",{style:{height:i[t].selectedImageSize,objectFit:"cover"},src:i[t].backgroundImage,loading:"lazy"})]}):(0,L.jsxs)(L.Fragment,{children:[c&&"top"===d&&(0,L.jsx)("img",{src:p,loading:"lazy",style:{objectFit:"cover"}}),s&&(0,L.jsx)(C.RichText.Content,{tagName:"h2",className:"ablocks-interactive-inner-heading",value:o}),r&&(0,L.jsx)("div",{ | |
| 4473 | -className:" ablocks-interactive-divider ablocks-divider__pattern-css "}),b&&(0,L.jsx)(C.RichText.Content,{tagName:"p",className:"ablocks-interactive-inner-paragraph",value:a}),c&&"bottom"===d&&(0,L.jsx)("img",{src:p,loading:"lazy",style:{objectFit:"cover"}})]})})}function CV(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:U}=e,[P,j]=(0,a.useState)(!1),[w,z]=(0,a.useState)(x);(0,a.useEffect)(()=>{z(x)},[x]);const A=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,...(0,Wb.jM)(a)}),l | |
| 4474 | -},D=t=>"mouseenter"===k?{onMouseEnter:()=>z(t)}:{onClick:()=>z(t)},N=s.length,I=at();let V=_?.value?_?.value:50;"Tablet"===I?V=_?.valueTablet?_?.valueTablet:30:"Mobile"===I&&(V=_?.valueMobile?_?.valueMobile:20);const O=Math.min(y?.value??450,y?.value??450)*Number((V/100).toFixed(2));return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:n,setAttributes:i})}),(0,L.jsx)(Nb.A,{blockId:o,name:PV.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-interactive-circle-wrapper",children:(0,L.jsxs)("div",{className:"ablocks-interactive-circle",children:[0==r&&(0,L.jsx)("div",{className:"ablocks-interactive-circle-content",children:(0,L.jsx)(jV,{activeSegment:w,attributes:e})}),(0,L.jsxs)("div",{className:1==r?"ablocks-interactive-segments":"ablocks-interactive-items",onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),style:!r&&R?{animation:`ring-rotate ${v}s linear infinite`,animationPlayState:P?"paused":"running"}:{},children:[r&&(0, | |
| 4475 | -L.jsxs)(L.Fragment,{children:[(0,L.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,L.jsxs)("a",{...A(t.link),children:[(0,L.jsx)("div",{className:"ablocks-interactive-segment",style:{backgroundColor:t.buttonBgColor,transform:`rotate(${l}deg) skewY(${a}deg)`},...D(i),children:(0,L.jsx)("div",{style:{transform:`rotate(${0==n?-l:n}deg)`},className:"ablocks-interactive-segment-content ablocks-interactive-item-content",children:(0,L.jsx)(wV,{index:i,attributes:e,list:t})})},t.id)," "]})})}),(0,L.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,L.jsx)(jV,{activeSegment:w,attributes:e})})," "]}),!r&&s?.map((t,i)=>{const o=(360/N*i-90)*Math.PI/180,a=Math.cos(o)*O,l=Math.sin(o)*O;return(0,L.jsx)("div",{className:"ablocks-interactive-item","data-title":t.title,"data-index":i, | |
| 4476 | -"data-text":t.description,addEv:!0,...D(i),style:{left:`calc(50% + ${a}px)`,top:`calc(50% + ${l}px`},children:(0,L.jsxs)("a",{...A(t.link),children:[(0,L.jsx)("div",{style:{...!r&&R?{animation:`inner-counter-rotate ${v}s linear infinite`,animationPlayState:P?"paused":"running"}:{},backgroundColor:t?.buttonBgColor},className:"ablocks-interactive-item-inner ablocks-interactive-item-content",children:(0,L.jsx)(wV,{index:i,attributes:e,list:t})})," "]})},t.id)})]})]})})})]})}CV.propTypes={};const AV=(t,e="")=>{const i={},{alignment:o}=t;return i["justify-content"]=`${o?.["value"+e]||"center"}`,i.display="flex",{...i}},LV=(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}},DV=(t,e="")=>{const i=(0,M.Zy)(t?.circlePadding,{unit:"px"});"default"===t?.circleBorder?.borderStyle&&""===t?.circleBorder?.borderColor&&(t.circleBorder={...t.circleBorder,borderColor:"#ad15e0", | |
| 4477 | -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)}},NV=(t,e="")=>{const i=(0,M.Zy)(t?.segMargin,{unit:"px"});return{...(0,c.qD)(i,"margin",e)}},IV=(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)}},VV=(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},OV=(t,e="")=>{const{iconSize:i,iconColor:o,iconType:a,iconShape:l,iconBackgroundColor:n}=t,s={};"stacked"===a?(s.background=(0,gs.qD)(t?.iconBackgroundColor)||"#ddd",s.padding=".2em",s.color=(0,gs.qD)(t?.iconColor)||"#000000","circle"===l&&(s["border-radius"]="50px")):"framed"===a&&(s.background=(0,gs.qD)(t?.iconBackgroundColor)||"transparent",s.padding=".2em",s.color=(0, | |
| 4478 | -gs.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,gs.qD)(t?.iconColor),s.fill=(0,gs.qD)(t?.iconColor)),""!==n&&void 0!==n&&(s.background=(0,gs.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,Ob.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)}},YV=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},XV=(t,e)=>{const i=(0,M.Zy)(t.itemTypography,{weight:"400"}),o=t.itemTypographyGlobal?t.itemTypographyGlobal:[];return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.itemColor)}},BV=(t,e)=>({background:(0,gs.qD)(t?.itemButtonColor)}),EV=(t,e="")=>{const{itemSpacing:i,innerCircleSize:o}=t,a={},l=(0, | |
| 4479 | -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,gs.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,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:1,hasUnit:!0,unitDefaultValue:"px",property:"row-gap",device:e}),...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({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), | |
| 4480 | -...(0,H.qD)(t?.layoutBoxShadow,e)}},FV=(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)}},qV=(t,e="")=>{const i={};i.color=(0,gs.qD)(t?.titleColor);const o=(0,M.Zy)(t.titleTypography,{weight:"400"}),a=t.titleTypographyGlobal?t.titleTypographyGlobal:[];return{...i,...(0,P.qD)(o,e,a)}},$V=(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,gs.qD)(n),{...i,...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"--ablocks-divider-pattern-weight",device:e}),...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}},GV=(t,e="")=>{const i={};i.color=(0,gs.qD)(t?.textColor);const o=(0,M.Zy)(t.textTypography,{ | |
| 4481 | -weight:"400"}),a=t.textTypographyGlobal?t.textTypographyGlobal:[];return{...i,...(0,P.qD)(o,e,a)}},ZV=(t,e="")=>{const i={},{layoutImageType:o,imgHeight:a,imgWidth:l,imgRadius:n,itemLists:s}=t;return i["object-fit"]=o,{...i,...(0,Ob.qD)({attributeValue:n,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"border-radius",device:e}),...(0,Ob.qD)({attributeValue:l,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:a,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}},KV=(t,e="")=>{const i={},{circleSize:o,enableSegments:a}=t;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 JV({attributes:t}){ | |
| 4482 | -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,...(0,Wb.jM)(a)}),l},U=t=>"mouseenter"===H?{onMouseEnter:()=>setActiveSegment(t)}:{onClick:()=>setActiveSegment(t)};return(0,L.jsx)(l().Fragment,{ | |
| 4483 | -children:(0,L.jsx)(oc,{blockId:e,name:PV.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,L.jsx)("div",{className:"ablocks-interactive-circle-wrapper",children:(0,L.jsxs)("div",{className:"ablocks-interactive-circle",children:[0==a&&(0,L.jsx)("div",{className:"ablocks-interactive-circle-content",children:(0,L.jsx)(zV,{activeSegment:T,attributes:t})}),(0,L.jsxs)("div",{className:1==a?"ablocks-interactive-segments":"ablocks-interactive-items",children:[a&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ablocks-interactive-segments-inner",children:o?.map((e,i)=>(0,L.jsxs)("a",{...W(e.link),children:[(0, | |
| 4484 | -L.jsx)("div",{className:"ablocks-interactive-segment",style:{backgroundColor:e.buttonBgColor},...U(i),children:(0,L.jsx)("div",{style:{transform:`rotate(${e.itemButtonTransition}deg)`},className:"ablocks-interactive-segment-content ablocks-interactive-item-content",children:(0,L.jsx)(wV,{index:i,attributes:t,list:e},i)})},e.id)," "]}))}),(0,L.jsx)("div",{className:"ablocks-interactive-circle-inner",children:(0,L.jsx)(zV,{activeSegment:T,attributes:t})})," "]}),!a&&o?.map((e,i)=>(0,L.jsx)("div",{className:"ablocks-interactive-item","data-title":e.title,"data-index":i,"data-text":e.description,...U(i),children:(0,L.jsxs)("a",{...W(e.link),children:[(0,L.jsx)("div",{className:"ablocks-interactive-item-inner ablocks-interactive-item-content",style:{backgroundColor:e.buttonBgColor},children:(0,L.jsx)(wV,{index:i,attributes:t,list:e},i)})," "]})},e.id))]})]})})})})}JV.propTypes={},(0,M.xV)(PV.UU)&&(0,o.registerBlockType)(PV.UU,{title:"Infographic Block",attributes:PV.uK,icon:(0, | |
| 4485 | -L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-wrapper",LV(i),LV(i,"Tablet"),LV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment-content.ablocks-interactive-item-content",NV(i),NV(i,"Tablet"),NV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segments",KV(i),KV(i,"Tablet"),KV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle",DV(i),DV(i,"Tablet"),DV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle:hover",IV(i),IV(i,"Tablet"),IV(i,"Mobile")), | |
| 4486 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-container",AV(i),AV(i,"Tablet"),AV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-inner",BV(i),BV(i),BV(i)),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-segment",BV(i),BV(i),BV(i)),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner",EV(i),EV(i,"Tablet"),EV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner:hover",FV(i),FV(i,"Tablet"),FV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner h2",qV(i),qV(i,"Tablet"),qV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner .ablocks-divider__pattern-css",$V(i),$V(i,"Tablet"),$V(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner p",GV(i),GV(i,"Tablet"),GV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-inner img",ZV(i),ZV(i,"Tablet"),ZV(i,"Mobile")), | |
| 4487 | -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content",EV(i),EV(i,"Tablet"),EV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content:hover",FV(i),FV(i,"Tablet"),FV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content h2",qV(i),qV(i,"Tablet"),qV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content .ablocks-divider__pattern-css",$V(i),$V(i,"Tablet"),$V(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content p",GV(i),GV(i,"Tablet"),GV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-circle-content img",ZV(i),ZV(i,"Tablet"),ZV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content",VV(i),VV(i,"Tablet"),VV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-svg-icon",OV(i),OV(i,"Tablet"),OV(i,"Mobile")), | |
| 4488 | -t.addClassStyles("{{WRAPPER}} .ablocks-interactive-items-content .ablocks-svg-icon:hover",YV(i),YV(i,"Tablet"),YV(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-interactive-item-content .ablocks-interactive__item-text",XV(i),XV(i,"Tablet"),XV(i,"Mobile")),(0,b.applyFilters)("ablocks.itemLists.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(UV,{...t}),(0,L.jsx)(CV,{...t})]})},save:JV});const QV=[{name:"custom",title:"Custom Blank Form",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/form-builder/blankForm.svg",alt:(0,z.__)("Custom Blank Form","ablocks")}),attributes:{formType:"customform",formActions:["email","submission"],submissionMetaData:["userIp","userAgent"]},scope:["block"],innerBlocks:[]},{name:"contact",title:"Simple Contact Form",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/form-builder/contactForm.svg",alt:(0,z.__)("Simple Contact Form","ablocks")}),attributes:{formType:"contact", | |
| 4489 | -formActions:["email","submission"],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:"Registration Form",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/form-builder/registrationForm.svg",alt:(0,z.__)("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 | |
| 4490 | -}],["ablocks/form-input",{name:"email",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:"Login Form",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/form-builder/loginForm.svg",alt:(0,z.__)("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", | |
| 4491 | -name:"password",placeholder:"Password",type:"password",inputType:"Password",nameChangeable:!1}],["ablocks/form-checkbox",{name:"rememberme",label:"Remember Me"}]]},{name:"subscription",title:"Subscription Form",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/form-builder/subcriptionForm.svg",alt:(0,z.__)("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:"Multi Step Form",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/form-builder/multiStepForm.svg",alt:(0,z.__)("Multi Step Form","ablocks")}),attributes:{formType:"multistep",buttonText:"Subscription",buttonSize:"small",formActions:["email","submission"],submissionMetaData:["userIp","userAgent"]},scope:["block"], | |
| 4492 | -innerBlocks:[["ablocks/form-multi-step"]]},{name:"forget_password",title:"Forget Password Form",icon:(0,L.jsx)("img",{src:M.hq+"assets/images/form-builder/forgetPasswordForm.svg",alt:(0,z.__)("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}]]}],tO=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}];function eO(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({ | |
| 4493 | -mailchimpListIdOptions:[...i.mailchimpListIdOptions,...e],mailchimpValidateApi:!0})}else o({mailchimpListIdOptions:[{label:"select options",value:"default"}],mailchimpValidateApi:!1})}}function iO(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 oO(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})}} | |
| 4494 | -function aO(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 lO(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 nO(t,e,i,o){try{ | |
| 4495 | -const a=await(0,M.In)({action:"ablocks/form_builder_action_setting_data",type:t,api:e});"mailchimp"===t&&eO(t,a,o,i),"mailerlite"===t&&iO(t,a,o,i),"drip"===t&&oO(t,a,o,i),"getresponse"===t&&aO(t,a,o,i),"convertkit"===t&&lO("convertkit",a,o,i)}catch(e){"mailchimp"===t&&i({mailchimpListIdOptions:[{label:"select options",value:"default"}]})}}const sO=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&&eO(t,o,i,e),"mailerlite"===t&&!0===o.data.success&&iO(t,o,i,e),"drip"===t&&!0===o.data.success&&oO(t,o,i,e),"getresponse"===t&&!0===o.data.success&&aO("getresponse",o,i,e),"convertkit"===t&&!0===o.data.success&&lO("convertkit",o,i,e)},rO=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){ | |
| 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)({ | |
| 4438 | +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"), | |
| 4441 | +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.__)("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:{ | |
| 4446 | +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 | +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 | +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 | +},_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", | |
| 4450 | +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:"", | |
| 4451 | +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", | |
| 4452 | +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:"", | |
| 4453 | +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 | +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 | +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 | +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){ | |
| 4464 | +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 | +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 | +},[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 | +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, | |
| 4471 | +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 | +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 | +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 | +;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 | +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 | +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 | +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 | +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:{ | |
| 4484 | +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 | +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 | +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 | +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, | |
| 4488 | +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:""}},circlePadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 4489 | +bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},layoutPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},circleBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},layoutBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},alignment:{type:"object", | |
| 4490 | +default:{value:"center",valueTablet:"",valueMobile:""}},padding:{type:"object",default:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"}},segMargin:{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:"", | |
| 4491 | +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:"", | |
| 4492 | +transitionDuration:""}},itemTypographyGlobal:{type:"string",default:""},itemTypography:{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"}},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:"", | |
| 4493 | +fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},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", | |
| 4494 | +wordSpacingUnitMobile:"px"}},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},innerCircleSize:{type:"object",default:{value:300,valueTablet:260,valueMobile:150}},itemButtonSize:{type:"object",default:{value:150,valueTablet:120,valueMobile:80}},itemPosition:{type:"object",default:{value:50,valueTablet:30,valueMobile:20}},circleSize:{type:"object",default:{value:450,valueTablet:350,valueMobile:250}},dividerWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},itemSpacing:{type:"object",default:{value:1,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},imgRadius:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},imgWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}}, | |
| 4495 | +imgHeight:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},dividerWeight:{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:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"", | |
| 4496 | +customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", | |
| 4497 | +unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"", | |
| 4498 | +hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"", | |
| 4499 | +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 | +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 | +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 | +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 | +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 | +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"], | |
| 4524 | +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 | +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 | +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){ | |
| 4496 | 4531 | 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", |
| 4497 | -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})}}},bO=[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Small","ablocks"),value:"small"},{label:(0,z.__)("Medium","ablocks"),value:"medium"},{label:(0,z.__)("Large","ablocks"),value:"large"},{label:(0,z.__)("Extra Large","ablocks"),value:"extra-large"},{label:(0,z.__)("Full Width","ablocks"),value:"full-width"}],cO=t=>M.zX?t:(0,L.jsxs)("div",{style:{justifyContent:"left"},className:"ablocks-pro-toggle__label-control",children:[(0,L.jsx)(ot,{label:t,isResponsive:!1}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--lock"})]}),dO=[{label:(0,z.__)("Collect Submission","ablocks"),value:"submission"},{label:(0,z.__)("Mailchimp","ablocks"), | |
| 4498 | -value:"mailchimp"},{label:cO((0,z.__)("Mailerlite","ablocks")),value:"mailerlite",isDisabled:!M.zX},{label:cO((0,z.__)("Drip","ablocks")),value:"drip",isDisabled:!M.zX},{label:cO((0,z.__)("GetResponse","ablocks")),value:"getResponse",isDisabled:!M.zX},{label:cO((0,z.__)("Convertkit","ablocks")),value:"convertkit",isDisabled:!M.zX},{label:cO((0,z.__)("Webhook","ablocks")),value:"webhook",isDisabled:!M.zX}],uO=[{label:(0,z.__)("Default","ablocks"),value:"default"},{label:(0,z.__)("Custom","ablocks"),value:"custom"}],pO=[{label:(0,z.__)("User IP","ablocks"),value:"userIp"},{label:(0,z.__)("User Agent","ablocks"),value:"userAgent"}],mO=({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, | |
| 4499 | -L.jsx)("div",{className:"ablocks-form-builder-action-after-submition",children:s&&(0,L.jsx)("div",{className:"ablocks-form-builder-action-after-submition__action-types-section",children:(0,L.jsx)(Ut,{label:(0,z.__)("Action Types","ablocks"),className:"ablocks-form-builder-action-after-submition__action-types-select",isMulti:!0,options:dO,attributeName:"formActions",attributeValue:i||[],setAttributes:e})})})},hO=(0,L.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,L.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,L.jsx)("circle",{cx:"12",cy:"5",r:"1"}),(0,L.jsx)("circle",{cx:"12",cy:"19",r:"1"})]}),gO=({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=>{ | |
| 4500 | -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,L.jsxs)("div",{className:"ablocks-form-builder-action-button",ref:d,children:[(0,L.jsx)("button",{onClick:()=>r(!s),className:n?"ablocks-form-builder-action-button-quill-trigger":"ablocks-form-builder-action-button__trigger",children:n?(0,L.jsxs)(L.Fragment,{children:["Add Shortcode"," ",(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-down"})]}):hO}),s&&(0,L.jsxs)("div",{className:`ablocks-form-builder-action-button__dropdown ablocks-form-builder-action-button__dropdown--${b}`,children:[(0,L.jsxs)("div",{className:"ablocks-form-builder-action-button__section",children:[(0, | |
| 4501 | -L.jsx)("strong",{className:"ablocks-form-builder-action-button__title",children:(0,z.__)("Form input tags","ablocks")}),t?.length>0?t.map((t,e)=>(0,L.jsx)("div",{className:"ablocks-form-builder-action-button__item",onClick:()=>p(t?.value),children:t?.label},e)):(0,L.jsx)("div",{className:"ablocks-form-builder-action-button__empty",children:(0,z.__)("No tags available","ablocks")})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder-action-button__section",children:[(0,L.jsx)("strong",{className:"ablocks-form-builder-action-button__title",children:(0,z.__)("Generic tags","ablocks")}),e?.length>0?e.map((t,e)=>(0,L.jsx)("div",{className:"ablocks-form-builder-action-button__item",onClick:()=>p(t?.value),children:t?.label},e)):(0,L.jsx)("div",{className:"ablocks-form-builder-action-button__empty",children:(0,z.__)("No tags available","ablocks")})]})]})]}) | |
| 4502 | -},fO=({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,L.jsxs)("div",{className:"ablocks-form-builder-form-group",children:["select"!==e&&(0,L.jsx)(L.Fragment,{children:a&&"label"===l?(0,L.jsxs)("div",{className:"ablocks-form-builder-form-label-row",children:[(0,L.jsx)("label",{className:"ablocks-form-builder-form-label",children:t}),(0,L.jsx)(gO,{formTags:c,genericTags:n,attributes:s,setAttributes:r,targetKey:b})]}):(0,L.jsx)("label",{className:"ablocks-form-builder-form-label",children:t})}),(0,L.jsxs)("div",{className:"ablocks-form-builder-row",children:[(0,L.jsx)("div",{style:{width:a&&"side"===l?"95%":"100%"},className:"ablocks-form-builder-row__filed",children:(()=>{switch(e){case"select":return(0,L.jsx)(Ut,{label:t,isResponsive:!1,isMulti:!!h,className:"ablocks-form-builder-form-select-control",options:u, | |
| 4503 | -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,L.jsx)("textarea",{className:"ablocks-form-builder-form-textarea",value:i,onChange:o,placeholder:d,rows:p});default:return(0,L.jsx)("input",{className:"ablocks-form-builder-form-input",type:e,value:i,placeholder:d,onChange:o})}})()}),a&&"side"===l&&(0,L.jsx)(gO,{formTags:c,genericTags:n,attributes:s,setAttributes:r,targetKey:b})]}),m&&(0,L.jsx)("p",{className:"ablocks-form-builder-action-after-submission-notice",children:(0,z.__)(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, | |
| 4504 | -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")&&sO("mailchimp",e,t)},[i]),(0,a.useEffect)(()=>{"custom"===H&&""===o||"default"===l||"default"!==g&&void 0!==g||rO("mailchimp","custom"===H?o:void 0,l,e)},[l,H,o]),(0,a.useEffect)(()=>{"custom"===H&&""!==o&&nO("mailchimp",o,e,t)},[H,o]),(0,a.useEffect)(()=>{if(0!==r.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,z.__)("None","ablocks"),value:"default"},{label:(0,z.__)("Email","ablocks"),value:"email"}]}),Array.isArray(r)&&0!==r.length){const t=r.map(t=>({label:t.name?.toUpperCase()||(0,z.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,z.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[r]),(0,L.jsx)("div",{className:"ablocks-form-builder__mailchimp ablocks-form-builder__mailchimp--panel",children:(0,L.jsxs)("div",{ | |
| 4505 | -className:"ablocks-form-builder__mailchimp__panel",children:[(0,L.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,L.jsx)("h3",{className:"ablocks-form-builder__mailchimp__panel-title",children:(0,z.__)("Mailchimp","ablocks")}),(0,L.jsx)("span",{className:"ablocks-form-builder__mailchimp__panel-chevron","aria-hidden":"true"})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder__mailchimp__panel-body",hidden:!y,children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__mailchimp__option-list",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__mailchimp__option",children:[(0,L.jsx)("input",{id:M,className:"ablocks-form-builder__mailchimp__option-radio",type:"radio",name:"mailchimpApiMode",checked:"default"===H,onChange:()=>e({mailchimpOption:"default"})}),(0,L.jsxs)("label",{htmlFor:M,children:[(0,L.jsx)("div",{ | |
| 4506 | -className:"ablocks-form-builder__mailchimp__option-title",children:(0,z.__)("Default API Key","ablocks")}),(0,L.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-desc",children:(0,z.__)("Lorem ipsum dorem","ablocks")})]})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder__mailchimp__option",children:[(0,L.jsx)("input",{id:x,className:"ablocks-form-builder__mailchimp__option-radio",type:"radio",name:"mailchimpApiMode",checked:"custom"===H,onChange:()=>e({mailchimpOption:"custom"})}),(0,L.jsxs)("label",{htmlFor:x,children:[(0,L.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-title",children:(0,z.__)("Custom API Key","ablocks")}),(0,L.jsx)("div",{className:"ablocks-form-builder__mailchimp__option-desc",children:(0,z.__)("Add a custom API key for this Mailchimp integration","ablocks")})]})]})]}),"custom"===H&&(0,L.jsx)("div",{className:"ablocks-form-builder__mailchimp__api-card",children:(0,L.jsx)(fO,{label:(0,z.__)("Custom API Key","ablocks"),type:"text", | |
| 4507 | -value:o,onChange:t=>e({mailchimpApiKey:t.target.value}),placeholder:(0,z.__)("Enter mailchimp API key","ablocks"),attributes:t,setAttributes:e})}),k&&("default"===H?(0,L.jsxs)("div",{className:"ablocks-form-builder__mailchimp__api-card",children:[(0,L.jsx)("div",{className:"ablocks-form-builder__mailchimp__audience",children:(0,L.jsx)(fO,{label:(0,z.__)("Audience","ablocks"),type:"select",value:l,onChange:t=>e({mailchimpListId:t.target.value}),options:b,attributes:t,setAttributes:e})}),"default"!==l&&h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fO,{label:(0,z.__)("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,L.jsx)(fO,{label:(0,z.__)("Tags","ablocks"),type:"textarea",value:n,onChange:t=>e({mailchimpTags:t.target.value}),placeholder:(0,z.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e}),(0,L.jsx)("div",{ | |
| 4508 | -className:"ablocks-form-builder-form-group",children:(0,L.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,L.jsx)("input",{type:"checkbox",checked:s,onChange:t=>e({showDoubleOpt:t.target.checked})}),(0,z.__)("Double Opt-in","ablocks")]})}),(0,L.jsxs)("div",{className:"field-map-section",children:[(0,L.jsx)("h4",{className:"field-map-title",children:(0,z.__)("Field Map","ablocks")}),(0,L.jsx)("hr",{className:"field-map-divider"}),(0,L.jsx)(fO,{label:(0,z.__)("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,L.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, | |
| 4509 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ablocks-form-builder__mailchimp__audience",children:(0,L.jsx)(fO,{label:(0,z.__)("Audience","ablocks"),type:"select",value:l,onChange:t=>e({mailchimpListId:t.target.value}),options:b,attributes:t,setAttributes:e})}),"default"!==l&&h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fO,{label:(0,z.__)("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,L.jsx)(fO,{label:(0,z.__)("Tags","ablocks"),type:"textarea",value:n,onChange:t=>e({mailchimpTags:t.target.value}),placeholder:(0,z.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e}),(0,L.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,L.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,L.jsx)("input",{type:"checkbox",checked:s,onChange:t=>e({showDoubleOpt:t.target.checked})}),(0, | |
| 4510 | -z.__)("Double Opt-in","ablocks")]})}),(0,L.jsxs)("div",{className:"field-map-section",children:[(0,L.jsx)("h4",{className:"field-map-title",children:(0,z.__)("Field Map","ablocks")}),(0,L.jsx)("hr",{className:"field-map-divider"}),(0,L.jsx)(fO,{label:(0,z.__)("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,L.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 TO({attributes:t,setAttributes:e}){ | |
| 4511 | -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")&&sO("mailerlite",e,t)},[l,i]),(0,a.useEffect)(()=>{"default"===r||"default"!==c&&void 0!==c||rO("mailerlite",n,r,e)},[r]),(0,a.useEffect)(()=>{""!==n&&nO("mailerlite",n,e,t)},[n]),(0,a.useEffect)(()=>{if(0!==p.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,z.__)("None","ablocks"),value:"default"},{label:(0,z.__)("Email","ablocks"),value:"email"}]}),Array.isArray(p)&&0!==p.length){const t=p.map(t=>({label:t.name?.toUpperCase()||(0,z.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,z.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[p]),(0,L.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0, | |
| 4512 | -L.jsx)(fO,{label:(0,z.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({mailerliteOption:t.target.value}),options:uO,attributes:t,setAttributes:e}),"custom"===l&&(0,L.jsx)(fO,{label:(0,z.__)("Custom Api Key","ablocks"),type:"text",value:n,onChange:t=>e({mailerliteApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===l||""!==n)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fO,{label:(0,z.__)("Group","ablocks"),type:"select",value:r,onChange:t=>e({mailerliteGroupId:t.target.value}),options:b,attributes:t,setAttributes:e}),"default"!==r&&!0===s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"mailerlite-section__field-map-group",children:[(0,L.jsx)("label",{className:"mailerlite-section__label",children:(0,z.__)("Field Map","ablocks")}),(0,L.jsx)("hr",{className:"mailerlite-section__divider"}),t?.mailerliteMapFields&&t?.mailerliteMapSelects&&t?.mailerliteMapFields.map((i,a)=>{const l=c?.[i.key]||"";return(0,L.jsx)("div",{ | |
| 4513 | -className:"mailerlite-section__field-group",children:(0,L.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,L.jsx)("div",{className:"mailerlite-section__toggle-group",children:(0,L.jsxs)("label",{className:"mailerlite-section__toggle-label",children:[(0,L.jsx)("input",{type:"checkbox",checked:!!u,onChange:t=>e({allowReSubscribe:t.target.checked})}),(0,z.__)("Allow Re-Subscribe","ablocks")]})})]})]})]})}function HO({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")&&sO("drip",e,t)},[i,l]),(0,a.useEffect)(()=>{""!==n&&nO("drip",n,e,t)},[n]),(0,L.jsxs)("div",{className:"ablock-form-builder-actions-wrapper", | |
| 4514 | -children:[(0,L.jsx)(fO,{label:(0,z.__)("Api Key","ablocks"),type:"select",value:l,onChange:t=>e({dripOption:t.target.value}),options:uO,attributes:t,setAttributes:e}),"custom"===l&&(0,L.jsx)(fO,{label:(0,z.__)("Custom Api Key","ablocks"),type:"text",value:n,onChange:t=>e({dripApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===l||""!==n)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fO,{label:(0,z.__)("Account","ablocks"),type:"select",value:r,onChange:t=>e({dripAccountId:t.target.value}),options:b,attributes:t,setAttributes:e}),"default"!==r&&!0===s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h4",{className:"drip-section__label",children:(0,z.__)("Field Map","ablocks")}),(0,L.jsx)("hr",{className:"drip-section__divider"}),(0,L.jsx)(fO,{label:(0,z.__)("Email","ablocks"),type:"select",value:c,onChange:t=>e({dripEmailSelects:t.target.value}),options:o,attributes:t,setAttributes:e}),(0,L.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,L.jsxs)("label",{ | |
| 4515 | -className:"ablocks-form-builder-form-label",children:[(0,L.jsx)("input",{type:"checkbox",checked:d,onChange:t=>e({showFormFields:t.target.checked})}),(0,z.__)("Form Field","ablocks")]})}),(0,L.jsx)(fO,{label:(0,z.__)("Tags","ablocks"),type:"textarea",value:u,onChange:t=>e({dripTags:t.target.value}),placeholder:(0,z.__)("Add comma separated tags","ablocks"),attributes:t,setAttributes:e})]})]})]})}function MO({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,z.__)("Automatically captured for security and verification purposes.","ablocks"),userAgent:(0,z.__)("Browser and device information collected to improve user experience and compatibility.","ablocks")};return pO.map(e=>({value:e.value,title:e.label,description:t[e.value]||""}))},[]),r=t=>o.includes(t);return(0,L.jsx)("div",{className:"ablocks-form-builder__submission ablocks-form-builder__submission--panel",children:(0,L.jsxs)("div",{ | |
| 4516 | -className:"ablocks-form-builder__submission__panel",children:[(0,L.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,L.jsx)("h3",{className:"ablocks-form-builder__submission__panel-title",children:(0,z.__)("Submission","ablocks")}),(0,L.jsx)("span",{className:"ablocks-form-builder__submission__panel-chevron","aria-hidden":"true"})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder__submission__panel-body",hidden:!l,children:[s.map(t=>(0,L.jsxs)("div",{className:"ablocks-form-builder__submission__row",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__submission__row-text",children:[(0,L.jsx)("div",{className:"ablocks-form-builder__submission__row-title",children:t.title}),(0,L.jsx)("div",{className:"ablocks-form-builder__submission__row-desc",children:t.description})]}),(0,L.jsxs)("label",{className:"ablocks-form-builder__submission__toggle",children:[(0, | |
| 4517 | -L.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,L.jsx)("span",{className:"ablocks-form-builder__submission__toggle-ui","aria-hidden":"true"})]})]},t.value)),"subscription"===i&&(0,L.jsxs)("div",{className:"ablocks-form-builder__submission__row",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__submission__row-text",children:[(0,L.jsx)("div",{className:"ablocks-form-builder__submission__row-title",children:(0,z.__)("Email Verification","ablocks")}),(0,L.jsx)("div",{className:"ablocks-form-builder__submission__row-desc",children:(0,z.__)("A verification email has been sent to the provided address. Please confirm to complete your submission.","ablocks")})]}),(0,L.jsxs)("label",{className:"ablocks-form-builder__submission__toggle",children:[(0,L.jsx)("input",{type:"checkbox",checked:!!t?.emailVerification,onChange:t=>e({emailVerification:t.target.checked | |
| 4518 | -}),"aria-label":(0,z.__)("Email Verification","ablocks")}),(0,L.jsx)("span",{className:"ablocks-form-builder__submission__toggle-ui","aria-hidden":"true"})]})]})]})]})})}function xO({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")&&sO("getresponse",e,t)},[i,s]),(0,a.useEffect)(()=>{"default"===d||"default"!==u&&void 0!==u||rO("getresponse",l,d,e)},[d]),(0,a.useEffect)(()=>{""!==r&&nO("getresponse",r,e,t)},[r]),(0,a.useEffect)(()=>{if(0!==p.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,z.__)("None","ablocks"),value:"default"},{label:(0,z.__)("Email","ablocks"),value:"email"}]}),Array.isArray(p)&&0!==p.length){const t=p.map(t=>({label:t.name?.toUpperCase()||(0, | |
| 4519 | -z.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,z.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[p]),(0,L.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,L.jsx)(fO,{label:(0,z.__)("Api Key","ablocks"),type:"select",value:s,onChange:t=>e({getResponseOption:t.target.value}),options:uO,attributes:t,setAttributes:e}),"custom"===s&&(0,L.jsx)(fO,{label:(0,z.__)("Custom Api Key","ablocks"),type:"text",value:r,onChange:t=>e({getResponseApiKey:t.target.value}),attributes:t,setAttributes:e}),("default"===s||""!==r)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fO,{label:(0,z.__)("List","ablocks"),type:"select",value:d,onChange:t=>e({getResponseListId:t.target.value}),options:c,attributes:t,setAttributes:e}),"default"!==d&&!0===b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fO,{label:(0,z.__)("Day Of Cycle","ablocks"),type:"number",value:t?.getResponseDayCycle||"",onChange:t=>e({ | |
| 4520 | -getResponseDayCycle:parseInt(t.target.value,10)||0}),attributes:t,setAttributes:e}),(0,L.jsxs)("div",{className:"getresponse-section__field-map-group",children:[(0,L.jsx)("label",{className:"getresponse-section__label",children:(0,z.__)("Field Mapping","ablocks")}),(0,L.jsx)("hr",{className:"getresponse-section__divider"}),t?.getResponseMapFields&&t?.getResponseMapSelects&&t?.getResponseMapFields.map((i,a)=>{const l=u?.[i.key];return(0,L.jsxs)("div",{className:"ablocks-form-builder-form-group",children:[(0,L.jsx)("label",{className:"ablocks-form-builder-form-label",children:i.name}),(0,L.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 kO({attributes:t,setAttributes:e}){const{webhookLink:i}=t;return(0, | |
| 4521 | -L.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,L.jsx)(fO,{label:(0,z.__)("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,L.jsx)("div",{className:"ablocks-form-builder-form-group",children:(0,L.jsxs)("label",{className:"ablocks-form-builder-form-label",children:[(0,L.jsx)("input",{type:"checkbox",checked:!!i.linkTarget,onChange:t=>{const o=t.target.checked;e({webhookLink:{...i,linkTarget:o}})}}),(0,L.jsx)("span",{style:{marginLeft:"8px"},children:(0,z.__)("Open in new window","ablocks")})]})})]})}function vO({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 | |
| 4522 | -;return(0,a.useEffect)(()=>{i.includes("convertkit")&&sO("convertkit",e,t)},[n]),(0,a.useEffect)(()=>{""!==s&&nO("convertkit",s,e,t)},[s]),(0,a.useEffect)(()=>{if(0!==h.filter(t=>t.inputType?.toLowerCase().includes("email")).length&&e({mapEmailOptions:[{label:(0,z.__)("None","ablocks"),value:"default"},{label:(0,z.__)("Email","ablocks"),value:"email"}]}),Array.isArray(h)&&0!==h.length){const t=h.map(t=>({label:t.name?.toUpperCase()||(0,z.__)("Default Label","ablocks"),value:t.name||"default-value"}));t.push({label:(0,z.__)("None","ablocks"),value:"default"}),e({mapOtherOptions:[...t]})}},[h]),(0,L.jsxs)("div",{className:"ablock-form-builder-actions-wrapper",children:[(0,L.jsx)(fO,{label:(0,z.__)("Api Key","ablocks"),type:"select",value:n,onChange:t=>e({convertkitOption:t.target.value}),options:uO,attributes:t,setAttributes:e}),"custom"===n&&(0,L.jsx)(fO,{label:(0,z.__)("Custom Api Key","ablocks"),type:"text",value:s,onChange:t=>e({convertkitApiKey:t.target.value}),attributes:t, | |
| 4523 | -setAttributes:e}),("default"===n||""!==s)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fO,{label:(0,z.__)("List","ablocks"),type:"select",value:b,onChange:t=>e({convertkitFormId:t.target.value}),options:c,attributes:t,setAttributes:e}),"default"!==b&&!0===r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h4",{className:"convertkit-section__label",children:(0,z.__)("Field Map","ablocks")}),(0,L.jsx)("hr",{className:"convertkit-section__divider"}),(0,L.jsx)(fO,{label:(0,z.__)("Email","ablocks"),type:"select",value:d,onChange:t=>e({convertkitEmailSelects:t.target.value}),options:l,attributes:t,setAttributes:e}),(0,L.jsx)(fO,{label:(0,z.__)("First Name","ablocks"),type:"select",value:u,onChange:t=>e({convertkitFirstNameSelects:t.target.value}),options:o,attributes:t,setAttributes:e}),(0,L.jsx)(fO,{label:(0,z.__)("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, | |
| 4524 | -setAttributes:e})]})]})]})}const _O=[{label:"User Email",value:"user_email"},{label:"Admin Email",value:"admin_email"}],RO=[{label:"All Data",value:"all-fields"},{label:"Site Name",value:"site_name"}],SO=[{label:"Site Name",value:"site_name"}],WO=(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},UO=({attributes:t,setAttributes:e,childAttributes:i,innerBlockDetails:o=[]})=>{const{link:l,confirmationType:n}=t,s=n||"success",[r,b]=(0,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,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__message-card", | |
| 4525 | -children:[(0,L.jsx)(fO,{label:(0,z.__)("Confirmation message","ablocks"),type:"textarea",value:t?.confirmationNotice,onChange:t=>e({confirmationNotice:t.target.value}),showAction:!0,genericTags:SO,formTags:WO(i,o),attributes:t,setAttributes:e,targetKey:"confirmationNotice",notice:(0,z.__)("This message will be displayed to users after successful form submission","ablocks"),rows:4}),(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__after-row",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__after-text",children:[(0,L.jsx)("div",{className:"ablocks-form-builder__confirmation__after-title",children:(0,z.__)("After form submission","ablocks")}),(0,L.jsx)("div",{className:"ablocks-form-builder__confirmation__after-desc",children:(0,z.__)("Show or hide the form after submission","ablocks")})]}),(0,L.jsx)(Ut,{label:"",isResponsive:!1,className:"ablocks-form-builder__confirmation__after-select",attributeValue:t?.afterFormSubmission||"hide",options:[{ | |
| 4526 | -label:(0,z.__)("Hide Form","ablocks"),value:"hide"},{label:(0,z.__)("Reset Form","ablocks"),value:"reset"}],onChangeHandler:t=>e({afterFormSubmission:t})})]})]}),h=(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__option "+("redirect"===s?"is-active":""),children:[(0,L.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,L.jsxs)("label",{htmlFor:u,className:"ablocks-form-builder__confirmation__option-content",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__option-title",children:[(0,L.jsx)("span",{children:(0,z.__)("Redirect","ablocks")}),!M.zX&&(0,L.jsx)("span",{className:"ablocks-form-builder__confirmation__pro-badge",children:(0,z.__)("Pro","ablocks")})]}),(0,L.jsx)("div",{className:"ablocks-form-builder__confirmation__option-desc",children:(0, | |
| 4527 | -z.__)("Send users to a different page after submission","ablocks")})]})]});return(0,L.jsx)("div",{className:"ablocks-form-builder__confirmation ablocks-form-builder__confirmation--panel",children:(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__panel",children:[(0,L.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,L.jsx)("h3",{className:"ablocks-form-builder__confirmation__panel-title",children:(0,z.__)("Form Confirmation","ablocks")}),(0,L.jsx)("span",{className:"ablocks-form-builder__confirmation__panel-chevron","aria-hidden":"true"})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__panel-body",hidden:!r,children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__option-list",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__option "+("success"===s?"is-active":""),children:[(0, | |
| 4528 | -L.jsx)("input",{id:d,className:"ablocks-form-builder__confirmation__option-radio",type:"radio",name:"confirmationType",checked:"success"===s,onChange:()=>e({confirmationType:"success"})}),(0,L.jsxs)("label",{htmlFor:d,className:"ablocks-form-builder__confirmation__option-content",children:[(0,L.jsx)("div",{className:"ablocks-form-builder__confirmation__option-title",children:(0,z.__)("Success message","ablocks")}),(0,L.jsx)("div",{className:"ablocks-form-builder__confirmation__option-desc",children:(0,z.__)("Show a confirmation message on the current page","ablocks")})]})]}),M.zX?h:(0,L.jsx)(X,{tooltipText:(0,z.__)("This feature requires Pro activation.","ablocks"),position:"top",children:h})]}),"redirect"===s&&(0,L.jsxs)("div",{className:"ablocks-form-builder__confirmation__redirect",children:[(0,L.jsx)(fO,{label:(0,z.__)("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 | |
| 4529 | -}),(0,L.jsxs)("div",{className:"ablocks-form-builder-form-group ablocks-form-builder__confirmation__open-new-window",children:[(0,L.jsx)("input",{id:p,type:"checkbox",checked:!!l?.linkTarget,onChange:t=>{const i=t.target.checked;e({link:{...l,linkTarget:i}})}}),(0,L.jsx)("label",{htmlFor:p,className:"ablocks-form-builder-form-label",children:(0,z.__)("Open in new window","ablocks")})]}),!!l?.linkTarget&&m]}),"success"===s&&c&&m]})]})})};var PO=i(75827),jO=i(62682),wO=i.n(jO);const zO=PO.default.import("blots/block");class CO extends zO{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}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}static value(t){const{src:e,custom:i}=t.dataset;return{src:e,custom:i}}}CO.blotName="imageBlot",CO.className="image-uploading",CO.tagName="span",PO.default.register({"formats/imageBlot":CO});const AO=CO;class LO{constructor(t,e){this.quill=t,this.options=e, | |
| 4530 | -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/*"),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){ | |
| 4531 | -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;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(), | |
| 4532 | -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,AO.blotName,`${t}`,"user")}insertToEditor(t){const e=this.range,i=this.calculatePlaceholderInsertLength();this.quill.deleteText(e.index,i,"user"),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() | |
| 4533 | -;this.quill.deleteText(t.index,e,"user")}}window.ImageUploader=LO;const DO=LO;var NO=i(59792),IO=i(64036),VO=i.n(IO),OO=i(73117),YO=i.n(OO);const XO=PO.default.import("blots/block/embed");class BO extends XO{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")}}BO.blotName="customVideo",BO.tagName="video",PO.default.register(BO);class EO extends XO{static create(t){const e=super.create();return e.setAttribute("src",t),e.setAttribute("controls",!0),e.setAttribute("class","ablocks-custom-audio"),e.setAttribute("data-blot-formatter-unclickable-bound",!0),e}static value(t){return t.getAttribute("src")}}EO.blotName="customAudio",EO.tagName="audio",PO.default.register(EO);class FO extends XO{static create(t){const e=super.create();return e.innerHTML=t,e}static value(t){return t.innerHTML}} | |
| 4534 | -FO.blotName="customHTML",FO.tagName="div",PO.default.register(FO);const qO=PO.default.import("formats/image");function $O({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 PO.default(`#editor-container--${i}`,{modules:{toolbar:{container:[[{font:[]}],[{header:["1","2","3","4","5","6"]}],[{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" | |
| 4535 | -}],["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,z.__)("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;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]) | |
| 4536 | -;const h=t=>{let e;e||(e=window.wp.media((t=>{switch(t){case"image":default:return{title:(0,z.__)("Choose Image","ablocks"),button:{text:(0,z.__)("Choose Image","ablocks")},multiple:!1};case"pdf":return{title:(0,z.__)("Choose PDF","ablocks"),button:{text:(0,z.__)("Choose PDF","ablocks")},multiple:!1};case"mp3":return{title:(0,z.__)("Choose Audio","ablocks"),button:{text:(0,z.__)("Choose Audio","ablocks")},multiple:!1};case"video":return{title:(0,z.__)("Choose Video","ablocks"),button:{text:(0,z.__)("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=>{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,z.__)("Download PDF","ablocks")}</a>`)},y=t=>{const e=n.current.getSelection() | |
| 4537 | -;n.current.insertEmbed(e.index,"customVideo",t)},T=t=>{const e=n.current.getSelection();n.current.insertEmbed(e.index,"customAudio",t)};return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)("div",{id:`editor-container--${i}`})})}PO.default.register("modules/imageUploader",DO),PO.default.register("modules/imageResize",wO()),PO.default.register("modules/blotFormatter",NO.Ay),PO.default.register("modules/htmlEditButton",YO()),PO.default.register("modules/table",VO()),PO.default.register(class extends qO{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),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) | |
| 4538 | -;const GO={size:I().string};function ZO({size:t="md"}){return(0,L.jsx)("div",{className:`ablocks-preloader ablocks-preloader--${t}`,children:(0,L.jsx)(A.Spinner,{})})}ZO.propTypes=GO;const KO=({attributes:t,setAttributes:e,childAttributes:i,innerBlockDetails:o=[]})=>{const[a,l]=(0,Ot.useState)([]),[n,s]=(0,Ot.useState)([]),[b,c]=(0,Ot.useState)(null),[d,u]=(0,Ot.useState)(!0),[p,m]=(0,Ot.useState)(!1),[h,g]=(0,Ot.useState)(!1),[f,y]=(0,Ot.useState)(!1),[T,H]=(0,Ot.useState)(null),{createNotice:x}=(0,r.useDispatch)("core/notices"),k="AttributeEmailOne",v="AttributeEmailTwo",{email_template_id:_}=t,R="subscription"===t.formType,S=(0,Ot.useCallback)(async()=>{if(!_)return l([]),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)} | |
| 4539 | -},[_,R]),W=(0,Ot.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"]}),c(null),S())}catch(t){}else x("error",(0,z.__)('Please enter a valid "To" email address before saving the template.',"ablocks"),{type:"snackbar"})},[x,_,S,e]),U=(0,Ot.useCallback)(async t=>{try{const e={action:"ablocks/delete_template",email_template_id:_,slug:t},i=await(0,M.In)(e) | |
| 4540 | -;i?.data?.success&&(b&&b.slug===t&&c(null),S())}catch(t){}},[b,_,S]),P=(0,Ot.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}),"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", | |
| 4541 | -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,Ot.useEffect)(()=>{f&&!h&&(n.includes(v)&&n.includes(k)||P())},[P,k,v,f,h,n]),(0,Ot.useEffect)(()=>{S()},[S]);const j=a.length>0,w=!!b&&a.some(t=>t.slug===b.slug);return(0,L.jsxs)(L.Fragment,{children:[T&&(0,L.jsxs)(A.Modal,{title:(0,z.__)("Delete template","ablocks"),onRequestClose:()=>H(null),className:"ablocks-form-builder__email-notifications__delete-modal",children:[(0,L.jsx)("p",{children:(0,z.__)("Are you sure you want to delete this template?","ablocks")}),(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__delete-actions",children:[(0,L.jsx)(A.Button,{variant:"secondary",onClick:()=>H(null),children:(0, | |
| 4542 | -z.__)("Cancel","ablocks")}),(0,L.jsx)(A.Button,{variant:"primary",isDestructive:!0,onClick:async()=>{await U(T.slug),H(null)},children:(0,z.__)("Delete","ablocks")})]})]}),(0,L.jsx)("div",{className:"ablocks-form-builder__email-notifications ablocks-form-builder__email-notifications--panel",children:(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__panel",children:[b?(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__config-header",children:[(0,L.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__back",onClick:()=>{m(!1),c(null)},"aria-label":(0,z.__)("Back","ablocks"),children:(0,L.jsx)("span",{className:"dashicons dashicons-arrow-left-alt2","aria-hidden":"true"})}),(0,L.jsx)("h3",{className:"ablocks-form-builder__email-notifications__panel-title",children:(0,z.__)("Email Configuration","ablocks")})]}):(0,L.jsxs)("button",{type:"button", | |
| 4543 | -className:"ablocks-form-builder__email-notifications__panel-header "+(d?"is-open":"is-collapsed"),onClick:()=>u(t=>!t),"aria-expanded":d,children:[(0,L.jsx)("h3",{className:"ablocks-form-builder__email-notifications__panel-title",children:(0,z.__)("Email notifications","ablocks")}),(0,L.jsx)("span",{className:"ablocks-form-builder__email-notifications__panel-chevron","aria-hidden":"true"})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__panel-body",hidden:!b&&!d,children:[b&&(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__editor",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__editor-body",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__grid",children:[(0,L.jsx)(fO,{label:(0,z.__)("From name","ablocks"),type:"text",value:b.from_name||"",onChange:t=>c({...b,from_name:t.target.value}),showAction:!0,formTags:WO(i,o),genericTags:SO,attributes:{...t,from_name:b.from_name}, | |
| 4544 | -setAttributes:t=>c(e=>({...e,from_name:t.from_name})),targetKey:"from_name"}),(0,L.jsx)("div",{className:"ablocks-form-builder__email-notifications__send-as",children:(0,L.jsx)(Ut,{label:(0,z.__)("Send as","ablocks"),isResponsive:!1,className:"ablocks-form-builder__email-notifications__send-as-select",options:[{label:(0,z.__)("HTML","ablocks"),value:"html"},{label:(0,z.__)("Plain","ablocks"),value:"plain"}],attributeValue:b.format||"html",onChangeHandler:t=>c(e=>({...e,format:t}))})})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__card",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__from-email",children:[(0,L.jsxs)("button",{type:"button",className:"ablocks-form-builder__email-notifications__ccbcc-toggle",onClick:()=>m(t=>!t),children:[(0,z.__)("Cc","ablocks")," ",(0,z.__)("Bcc","ablocks")]}),(0,L.jsx)(fO,{label:(0,z.__)("From email","ablocks"),type:"email",value:b.from||"",onChange:t=>c({...b,from:t.target.value}), | |
| 4545 | -showAction:!0,formTags:WO(i,o,!0),genericTags:_O,attributes:{...t,from:b.from},setAttributes:t=>c(e=>({...e,from:t.from})),targetKey:"from",notice:(0,z.__)("Notifications can use only one From Email so please enter a single address.","ablocks")})]}),p&&(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__ccbcc",children:[(0,L.jsx)(fO,{label:(0,z.__)("Cc","ablocks"),type:"email",value:b.cc||"",onChange:t=>c(e=>({...e,cc:t.target.value})),showAction:!0,formTags:WO(i,o,!0),genericTags:_O,attributes:{...t,cc:b.cc},setAttributes:t=>c(e=>({...e,cc:t.cc})),targetKey:"cc",notice:(0,z.__)("Comma separated values are also accepted.","ablocks")}),(0,L.jsx)(fO,{label:(0,z.__)("Bcc","ablocks"),type:"email",value:b.bcc||"",onChange:t=>c(e=>({...e,bcc:t.target.value})),showAction:!0,formTags:WO(i,o,!0),genericTags:_O,attributes:{...t,bcc:b.bcc},setAttributes:t=>c(e=>({...e,bcc:t.bcc})),targetKey:"bcc",notice:(0,z.__)("Comma separated values are also accepted.","ablocks")})]}),(0, | |
| 4546 | -L.jsx)(fO,{label:(0,z.__)("Subject","ablocks"),type:"text",value:b.subject||"",onChange:t=>c({...b,subject:t.target.value}),showAction:!0,formTags:WO(i,o),genericTags:SO,attributes:{...t,subject:b.subject},setAttributes:t=>c(e=>({...e,subject:t.subject})),targetKey:"subject"}),(0,L.jsxs)("div",{className:"ablocks-form-builder-form-group",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder-editor-label",children:[(0,L.jsx)("div",{className:"ablocks-form-builder-form-label",children:(0,z.__)("Message","ablocks")}),(0,L.jsx)(gO,{formTags:WO(i,o),genericTags:RO,attributes:{...t,body:b.body},setAttributes:t=>c(e=>({...e,body:t.body})),targetKey:"body",isQuillEditor:!0})]}),(0,L.jsx)($O,{defaultValue:b.body||"",saveValueHandler:t=>{c(e=>({...e,body:t}))},suffix:`formbuilder-message-${b.slug}`},`editor-message-${b.slug}`)]})]}),(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__card",children:[(0,L.jsx)(fO,{label:(0,z.__)("To","ablocks"),type:"email", | |
| 4547 | -value:b.to||"",onChange:t=>c({...b,to:t.target.value}),showAction:!0,formTags:WO(i,o,!0),genericTags:_O,attributes:{...t,to:b.to},setAttributes:t=>c(e=>({...e,to:t.to})),targetKey:"to",notice:(0,z.__)("Comma separated values are also accepted.","ablocks")}),(0,L.jsx)(fO,{label:(0,z.__)("Reply-To","ablocks"),type:"email",value:b.reply_to||"",onChange:t=>c(e=>({...e,reply_to:t.target.value})),showAction:!0,formTags:WO(i,o,!0),genericTags:_O,attributes:{...t,reply_to:b.reply_to},setAttributes:t=>c(e=>({...e,reply_to:t.reply_to})),targetKey:"reply_to",notice:(0,z.__)("Notifications can use only one Reply-To so please enter a single address.","ablocks")})]})]}),(0,L.jsx)("div",{className:"ablocks-form-builder__email-notifications__editor-footer",children:(0,L.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__save",onClick:()=>W(b),children:(0,z.__)(w?"Save Template":"Create Template","ablocks")})})]}),!b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{ | |
| 4548 | -className:"ablocks-form-builder__email-templates-list ablocks-form-builder__email-notifications__table",children:(0,L.jsxs)("table",{"aria-busy":h,children:[(0,L.jsx)("thead",{children:(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{children:(0,z.__)("Name","ablocks")}),(0,L.jsx)("th",{children:(0,z.__)("Subject","ablocks")}),(0,L.jsx)("th",{children:(0,z.__)("Status","ablocks")}),(0,L.jsx)("th",{children:(0,z.__)("Action","ablocks")})]})}),(0,L.jsx)("tbody",{children:h?(0,L.jsx)("tr",{children:(0,L.jsx)("td",{colSpan:"4",className:"ablocks-form-builder__email-notifications__loading-cell",children:(0,L.jsx)("div",{className:"kzui-table__loader",children:(0,L.jsx)(ZO,{})})})}):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,L.jsxs)("tr",{children:[(0,L.jsx)("td",{className:"ablocks-form-builder__email-notifications__name",children:i||"—"}),(0,L.jsx)("td",{ | |
| 4549 | -className:"ablocks-form-builder__email-notifications__subject",children:t.subject||"—"}),(0,L.jsx)("td",{className:"ablocks-form-builder__email-notifications__status-cell",children:(0,L.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,z.__)("Enable","ablocks"),value:"enabled"},{label:(0,z.__)("Disable","ablocks"),value:"disabled"}],onChangeHandler:e=>W({...t,status:"enabled"===e})})}),(0,L.jsxs)("td",{className:"ablocks-form-builder__email-notifications__actions",children:[(0,L.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__icon-btn",onClick:()=>(t=>{m(!(!t?.cc&&!t?.bcc)),c({...t})})(t),title:(0,z.__)("Edit template","ablocks"),children:(0,L.jsx)("span",{className:"dashicons dashicons-edit"})}),(0,L.jsx)("button",{type:"button",className:"ablocks-form-builder__email-notifications__icon-btn is-danger", | |
| 4550 | -onClick:()=>H(t),title:(0,z.__)("Delete template","ablocks"),children:(0,L.jsx)("span",{className:"dashicons dashicons-trash"})})]})]},t.slug)}):(0,L.jsx)("tr",{children:(0,L.jsx)("td",{colSpan:"4",children:(0,L.jsxs)("div",{className:"ablocks-form-builder__email-notifications__empty",children:[(0,L.jsx)("span",{className:"ablocks-form-builder__email-notifications__empty-icon",children:"💬"}),(0,L.jsx)("strong",{children:(0,z.__)("No email templates yet","ablocks")}),(0,L.jsx)("span",{children:(0,z.__)("Create your first email template to send notifications for form submissions.","ablocks")})]})})})})]})}),(0,L.jsx)("div",{className:"ablocks-form-builder__email-notifications__footer",children:(0,L.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||"", | |
| 4551 | -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,L.jsx)("span",{"aria-hidden":"true",children:"+"}),(0,z.__)("Add New Email Template","ablocks")]})})]})]})]})})]})};function JO(t){const{attributes:e}=t,[i,o]=(0,a.useState)("general"),[n,s]=(0,a.useState)([{name:"general",icon:"ablocks-icon",title:(0,z.__)("General","ablocks")},{name:"from_confirmation",icon:"ablocks-icon",title:(0,z.__)("Form Confirmation","ablocks")},{name:"from_email_notifications",icon:"ablocks-icon",title:(0,z.__)("Email Notifications","ablocks")}]);(0,a.useEffect)(()=>{const{formActions:t=[]}=e,i=[{name:"general",icon:"ablocks-icon",title:(0,z.__)("General","ablocks")},{name:"from_confirmation",icon:"ablocks-icon",title:(0,z.__)("Form Confirmation","ablocks")}],o=[{name:"from_email_notifications",icon:"ablocks-icon",title:(0, | |
| 4552 | -z.__)("Email Notifications","ablocks")}],a=t?.map(t=>{switch(t){case"webhook":return{name:"webhook",icon:"ablocks-icon",title:(0,z.__)("Webhook","ablocks")};case"mailchimp":return{name:"mailchimp",icon:"ablocks-icon",title:(0,z.__)("Mailchimp","ablocks")};case"mailerlite":return{name:"mailerlite",icon:"ablocks-icon",title:(0,z.__)("MailerLite","ablocks")};case"drip":return{name:"drip",icon:"ablocks-icon",title:(0,z.__)("Drip","ablocks")};case"submission":return{name:"submssion",icon:"ablocks-icon",title:(0,z.__)("Submission","ablocks")};case"getResponse":return{name:"getResponse",icon:"ablocks-icon ",title:(0,z.__)("GetResponse","ablocks")};case"convertkit":return{name:"convertkit",icon:"ablocks-icon",title:(0,z.__)("convertkit","ablocks")};case"from_confirmation":return{name:"from_confirmation",icon:"ablocks-icon",title:(0,z.__)("Form Confirmation","ablocks")};case"from_email_notifications":return{name:"from_email_notifications",icon:"ablocks-icon",title:(0, | |
| 4553 | -z.__)("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,L.jsx)(l().Fragment,{children:(0,L.jsx)("div",{className:"ablocks-form-builder-action-setting",children:(0,L.jsx)("div",{className:"ablocks-form-builder-action-setting__settings",children:(0,L.jsx)("div",{className:"ablocks-form-builder-action-setting__page-content",children:(0,L.jsxs)("div",{className:"ablocks-form-builder-action-setting__page-content--settings",children:[(0,L.jsx)("div",{className:"ablocks-form-builder-action-setting__tab-panel",children:n.map((t,e)=>{const a=i===t.name;return(0,L.jsx)("div",{className:"ablocks-form-builder-action-setting__tab-panel-item "+(a?"ablocks-form-builder-action-setting__tab-panel-item--open":""),children:(0,L.jsxs)("button",{onClick:()=>o(t.name), | |
| 4554 | -className:"ablocks-form-builder-action-setting__tab-item "+(a?"ablocks-form-builder-action-setting__tab-item--active":""),children:[(0,L.jsx)("span",{className:t.icon}),t.title]})},e)})}),(0,L.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,L.jsx)(mO,{...t});case"from_confirmation":return(0,L.jsx)(UO,{...t});case"from_email_notifications":return(0,L.jsx)(KO,{...t});case"mailchimp":return(0,L.jsx)(yO,{...t});case"mailerlite":return(0,L.jsx)(TO,{...t});case"drip":return(0,L.jsx)(HO,{...t});case"submssion":return(0,L.jsx)(MO,{...t});case"getResponse":return(0,L.jsx)(xO,{...t});case"webhook":return(0,L.jsx)(kO,{...t});case"convertkit":return(0,L.jsx)(vO,{...t});default:return null}})(i)})]})})})})})} | |
| 4555 | -const QO=["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 tY(t){const e=[];return t.attributes?.name&&e.push(t.attributes.name),t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...tY(t))}),e}function eY(t){return t.map(t=>({name:t.name,clientId:t.clientId,attributes:t.attributes,innerBlocks:t.innerBlocks&&t.innerBlocks.length?eY(t.innerBlocks):[]}))}function iY(t){return t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?eY(t.innerBlocks).flatMap(t=>tY(t)).filter(Boolean):[])}function oY(t){const e=[];return QO.includes(t.name)&&e.push(t.attributes?.name||""),t.innerBlocks&&t.innerBlocks.length>0&&t.innerBlocks.forEach(t=>{e.push(...oY(t))}),e}function aY(t){ | |
| 4556 | -const e=t.filter(t=>QO.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=>oY(t)):[]);return[...e,...i.filter(t=>""===t.trim())]}var lY=i(90198);const nY=(0,Ob.D$)({attributeName:"labelSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),sY=((0,Ob.D$)({attributeName:"helperTextSpacing",isResponsive:!0,defaultValue:10,copyStyle:!0}),(0,Ob.D$)({attributeName:"inputIconPosition",isResponsive:!1,defaultValue:75,copyStyle:!0})),rY=(0,Ob.D$)({attributeName:"navigatorSpacing",isResponsive:!1,defaultValue:10,copyStyle:!0}),bY=(0,Ob.D$)({attributeName:"rowsSpacing",isResponsive:!0,defaultValue:0,copyStyle:!0});(0,Ob.D$)({attributeName:"buttonHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0});function cY(t){ | |
| 4557 | -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:U,subscriberToUser:P,adminNotify:j,rowsSpacing:w,inputAlignment:N,labelAlignment:I,buttonSize:V,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:at,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, | |
| 4558 | -a.useState)(!1);(0,a.useEffect)(()=>{"custom"===e?.formType&&i({customForm:!0})},[e.formType]);const xt="forget_password"===b||"login"===b||"registration"===b,kt=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(o),[o]),_t=function(t){return t.map(t=>({name:t.name,attributes:t.attributes,clientId:t.clientId}))}(kt),Rt=iY(kt);return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,L.jsxs)(D,{title:(0,z.__)("General","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vb,{isInline:!0,label:(0,z.__)("Form Direction","ablocks"),options:[{label:(0,z.__)("Row","ablocks"),value:"row",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-right"})},{label:(0,z.__)("Column","ablocks"),value:"column",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-down"})},{label:(0,z.__)("Row Reverse","ablocks"),value:"row-reverse",icon:(0,L.jsx)("span",{ | |
| 4559 | -className:"ablocks-icon ablocks-icon--arrow-left"})},{label:(0,z.__)("Column Reverse","ablocks"),value:"column-reverse",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--arrow-up"}),tooltipPosition:"top-left"}],attributeName:"dir",attributeValue:n,setAttributes:i}),(et||"multi-step"===b)&&(0,L.jsx)(ql,{label:(0,z.__)("Form Name","ablocks"),attributeValue:s,attributeName:"formName",setAttributes:i,isInline:!1}),"registration"===b&&S.length>1&&(0,L.jsx)(Ut,{label:(0,z.__)("Select User Roles","ablocks"),isResponsive:!1,options:S,attributeValue:W,attributeName:"roleSlug",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Labels","ablocks"),attributeValue:U,setAttributes:i,attributeName:"showLabels",isResponsive:!1}),"subscription"===b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Convert Subscriber to User","ablocks"),attributeValue:P,setAttributes:i,attributeName:"subscriberToUser",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0, | |
| 4560 | -z.__)("Admin Notification","ablocks"),attributeValue:j,setAttributes:i,attributeName:"adminNotify",isResponsive:!1})]}),(0,L.jsx)(vt,{label:(0,z.__)("Rows Spacing","ablocks"),attributeName:"rowsSpacing",attributeValue:w,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:bY}),(0,L.jsx)(Kt,{label:(0,z.__)("Label Alignment","ablocks"),attributeName:"labelAlignment",attributeValue:I,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Kt,{label:(0,z.__)("Input Text Alignment","ablocks"),attributeName:"inputAlignment",attributeValue:N,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),xt&&(0,L.jsx)(Vt,{label:(0,z.__)("Navigator Access","ablocks"),attributeValue:tt,setAttributes:i,attributeName:"navigatorAccess", | |
| 4561 | -isResponsive:!1}),"registration"===b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Redirect After Register","ablocks"),attributeValue:Q,setAttributes:i,attributeName:"registerRedirect",isResponsive:!1}),Q&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("u",{style:{paddingBottom:"10px",display:"block"},children:(0,L.jsxs)("i",{children:[(0,L.jsx)("b",{children:"Note:"})," Only URLs from this website are allowed. External links will not work."]})}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:J,setAttributes:i,noFollowIOn:!1})]})]}),"login"===b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Redirect After Login","ablocks"),attributeValue:K,setAttributes:i,attributeName:"loginRedirect",isResponsive:!1}),K&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("u",{style:{paddingBottom:"10px",display:"block"},children:(0,L.jsxs)("i",{children:[(0,L.jsx)("b",{children:"Note:" | |
| 4562 | -})," Only URLs from this website are allowed. External links will not work."]})}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:J,setAttributes:i,noFollowIOn:!1})]})]})]}),tt&&(0,L.jsxs)(D,{title:(0,z.__)("Navigator","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ql,{label:(0,z.__)("Home Label","ablocks"),attributeName:"homeLabel",setAttributes:i,attributeValue:mt,isInline:!1,disableDynamicContent:!0}),("forget_password"===b||"registration"===b)&&(0,L.jsx)(ql,{label:(0,z.__)("Login Label","ablocks"),attributeName:"loginLabel",setAttributes:i,attributeValue:bt,isInline:!1,disableDynamicContent:!0}),"login"===b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Register Label","ablocks"),attributeName:"registerLabel",setAttributes:i,attributeValue:ct,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Forget Password Label","ablocks"),attributeName:"forgetPasswordLabel",setAttributes:i,attributeValue:dt,isInline:!1, | |
| 4563 | -disableDynamicContent:!0})]}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:at,setAttributes:i,attributeName:"navigatorIconShow",isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"navigatorTypography",attributeValue:nt,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"navigatorColor",attributeValue:lt,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"navigatorAlignment",attributeValue:st,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),attributeName:"navigatorSpacing",attributeValue:rt,setAttributes:i,min:1,max:100,isInline:!1,isResponsive:!1,attributeDefaultValue:rY}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"navigatorPadding", | |
| 4564 | -attributeValue:it,setAttributes:i})]}),U&&(0,L.jsxs)(D,{title:(0,z.__)("Labels","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"labelColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),attributeName:"labelSpacing",attributeValue:u,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:nY}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Position","ablocks"),attributeName:"inputIconPosition",attributeValue:x,setAttributes:i,min:1,max:100,isInline:!1,isResponsive:!1,attributeDefaultValue:sY})]}),(0,L.jsxs)(D,{title:(0,z.__)("Helper text","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"helperTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{ | |
| 4565 | -label:(0,z.__)("Color","ablocks"),attributeName:"helperTextColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Spacing","ablocks"),attributeName:"helperTextSpacing",attributeValue:m,setAttributes:i,min:0,max:100,isInline:!1,isResponsive:!0,attributeDefaultValue:nY})]}),(0,L.jsxs)(D,{title:(0,z.__)("Input","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"inputColor",attributeValue:f,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Placeholder Color","ablocks"),attributeName:"inputPlaceholderColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"inputBgColor",attributeValue:g,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"inputTypography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"inputPadding",attributeValue:H, | |
| 4566 | -setAttributes:i}),(0,L.jsx)(ot,{label:"Border",isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"inputBorder",attributeValue:T,setAttributes:i})]}),(0,L.jsx)(D,{title:(0,z.__)("Submit Button","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Label","ablocks"),attributeName:"buttonText",setAttributes:i,attributeValue:$,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Sizes","ablocks"),isResponsive:!1,options:bO,attributeValue:V,attributeName:"buttonSize",setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Position","ablocks"),attributeName:"buttonAlignment",attributeValue:Z,setAttributes:i,isInline:!1,options:[{label:"flex-start",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"flex-end",value:"flex-end",icon:"right"}]}),(0,L.jsx)(Kt,{label:(0,z.__)("Text Alignment","ablocks"),attributeName:"buttonTextAlignment",attributeValue:G,setAttributes:i,isInline:!1,options:[{label:"left",value:"left", | |
| 4567 | -icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:F,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:E,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"buttonColor",attributeValue:O,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"buttonBgColor",attributeValue:Y,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"buttonHColor",attributeValue:X,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"buttonBgHColor",attributeValue:B,setAttributes:i})]}) | |
| 4568 | -}),(0,L.jsx)(ot,{label:"Border",isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:q,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Success & Error Styles","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Vt,{label:(0,z.__)("Demo Success","ablocks"),attributeValue:pt,setAttributes:i,attributeName:"showSuccessDemo",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Demo Error","ablocks"),attributeValue:ut,setAttributes:i,attributeName:"showErrorDemo",isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"successErrorTypography",attributeValue:ht,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"successErrorAlignment",attributeValue:gt,setAttributes:i,isInline:!1,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0, | |
| 4569 | -attributeName:"successErrorPadding",attributeValue:ft,setAttributes:i}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Success Color","ablocks"),attributeName:"successColor",attributeValue:k,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Success Background","ablocks"),attributeName:"successBackground",attributeValue:v,setAttributes:i})]}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Error Color","ablocks"),attributeName:"errorColor",attributeValue:_,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Error Background","ablocks"),attributeName:"errorBackground",attributeValue:R,setAttributes:i})]})]}),yt&&(0,L.jsx)("div",{onClick:()=>Ht(!0),children:(0,L.jsx)(D,{title:(0,z.__)("Action After Submit","ablocks"),initialOpen:!1})}),Tt&&(0,L.jsx)(A.Modal,{title:"Form Settings",onRequestClose:()=>Ht(!1),className:"ablocks-form-builder-modal",children:(0,L.jsx)(JO,{setAttributes:i,attributes:e,childAttributes:_t,innerBlockDetails:Rt})})]})})})}(0, | |
| 4570 | -P.D$)("labelTypography",!0),(0,P.D$)("helperTextTypography",!0),(0,Gt.D$)("labelAlignment",!0,{value:"left"}),(0,Gt.D$)("inputAlignment",!0,{value:"left"}),(0,Gt.D$)("buttonAlignment",!0,{value:"center"}),(0,Gt.D$)("buttonTextAlignment",!0,{value:"center"}),(0,Gt.D$)("navigatorAlignment",!0,{value:"left"}),(0,Gt.D$)("successErrorAlignment",!0,{value:"center"}),(0,lY.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,P.D$)("inputTypography",!0),(0,P.D$)("navigatorTypography",!0),(0,P.D$)("successErrorTypography",!0),(0,Wb.D$)("link"),(0,Wb.D$)("webhookLink"),(0,P.D$)("buttonTypography",!0),(0,y.D$)("buttonBorder",!0),Mr.Ay;const dY={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:"" | |
| 4571 | -},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",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", | |
| 4572 | -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",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:[{ | |
| 4573 | -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:{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", | |
| 4574 | -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",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:""}, | |
| 4575 | -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",path:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}},navigatorIconShow:{type:"boolean",default:!0}, | |
| 4576 | -forgetPasswordLabel:{type:"string",default:"Lost Your Password"},loginLabel:{type:"string",default:"Log in"},registerLabel:{type:"string",default:"Register"},homeLabel:{type:"string",default:"Go to home"},errorBackground:{type:"string",default:"#D03739"},errorColor:{type:"string",default:"#ffffff"},successColor:{type:"string",default:"#fffff"},successBackground:{type:"string",default:"#00935B"},showErrorDemo:{type:"boolean",default:!1},showSuccessDemo:{type:"boolean",default:!1},userRoles:{type:"array",default:[]},roleSlug:{type:"string",default:""},confirmationNotice:{type:"string",default:"Form successfully submitted!"},afterFormSubmission:{type:"string",default:"reset"},customUrl:{type:"string",default:""},confirmationType:{type:"string",default:"success"},labelAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},inputAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonTextAlignment:{type:"object",default:{value:"center", | |
| 4577 | -valueTablet:"",valueMobile:""}},navigatorAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},successErrorAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},rowsSpacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},buttonHeight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},labelSpacing:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},helperTextSpacing:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},inputIconPosition:{type:"number",default:75},navigatorSpacing:{type:"number",default:10},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},webhookLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"", | |
| 4578 | -keyValue:"",linkClass:""}},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"}},helperTextTypographyGlobal:{type:"string",default:""},helperTextTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px", | |
| 4579 | -fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},inputTypographyGlobal:{type:"string",default:""},inputTypography:{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:"", | |
| 4580 | -wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},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"}},navigatorTypographyGlobal:{type:"string",default:""},navigatorTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px", | |
| 4581 | -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"}},successErrorTypographyGlobal:{type:"string",default:""},successErrorTypography:{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", | |
| 4582 | -wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",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:"", | |
| 4583 | -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:""}},buttonBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 4584 | -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:"", | |
| 4585 | -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:""}},inputPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigatorPadding:{type:"object",default:{isLinked:!0, | |
| 4586 | -isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},successErrorPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dir:{type:"object",default:{value:"column",valueTablet:"",valueMobile:""}},_margin:{ | |
| 4587 | -type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 4588 | -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:"", | |
| 4589 | -leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{ | |
| 4590 | -backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"", | |
| 4591 | -imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"", | |
| 4592 | -rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"", | |
| 4593 | -rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px", | |
| 4594 | -scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}}, | |
| 4595 | -_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function uY(t){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:U}=(0,r.useDispatch)("core/block-editor"),[P,j]=(0,a.useState)(!1),w=(0,a.useRef)(1),z=(0,a.useRef)(wp.data.select("core/block-editor").getBlocks(n)),A=(0,r.useSelect)(t=>t("core/block-editor").getBlocks(n),[n]),D=function(t){ | |
| 4596 | -const e=t.map(t=>t.attributes?.name).filter(Boolean),i=t.flatMap(t=>t.innerBlocks&&t.innerBlocks.length>0?t.innerBlocks.flatMap(t=>tY(t)):[]),o=[...e,...i],a=o.filter((t,e)=>o.indexOf(t)!==e);return[...new Set(a)]}(A),N=aY(A);(0,a.useEffect)(()=>{const t=A.map(t=>({name:t.attributes.name,inputType:t.attributes.inputType}));i({childDetails:t})},[A]);const I=["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({ | |
| 4597 | -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);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({ | |
| 4598 | -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={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(!P)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(I.includes(t.name)){const e=`field-${Math.floor(1e3*Math.random())+1}`;let i | |
| 4599 | -;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)},[P]);const O=(0,C.useInnerBlocksProps)({className:"ablocks-form-builder__fields"},{allowedBlocks:I}),Y=-1!==["login","registration","forget_password"].indexOf(c)?c:"submit";return(0,a.useEffect)(()=>{o&&(()=>{const t=(0,r.select)("core/block-editor").getBlocks(n);t.length>0&&t.forEach(t=>{const e=t.clientId;U(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,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:d,setAttributes:i,options:tO})}),(0,L.jsxs)(Nb.A,{blockId:s, | |
| 4600 | -name:dY.UU,attributes:e,children:[D.length>0&&(0,L.jsxs)("div",{className:"ablocks-form-builder-duplicatedname",children:['⚠️ Some field name are duplicated: "',D.join(", "),'" . Please make each field name unique to avoid conflicts.']}),N.length>0&&(0,L.jsx)("div",{className:"ablocks-form-builder-duplicatedname",children:'⚠️ Some field "Name" are empty. Please provide a name its Requried ! .'}),(0,L.jsxs)("form",{id:`ablocks-form-builder-${s}`,className:"ablocks-form-builder",method:"post",children:[(0,L.jsx)("input",{type:"hidden",name:"security",value:""}),(0,L.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${Y}_handler`}),(0,L.jsx)("input",{type:"hidden",name:"current_post_id",value:g}),(0,L.jsx)("input",{type:"hidden",name:"block_id",value:s}),!0===m||!0===h?(0,L.jsx)("input",{type:"hidden",name:"redirect_url",value:f?.href}):null,(0,L.jsx)("div",{...O}),"multi-step"!==c&&(0,L.jsx)("button",{ | |
| 4601 | -className:`ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${u}`,type:"button",children:p})]}),(_||v)&&(0,L.jsx)("div",{className:"ablocks-block--form-builder__feedback-message ablocks-block--form-builder__"+(v?"error":"success"),children:(0,L.jsx)("p",{className:(v?"error":"success")+"-msg",children:v?"Oops! Something went wrong while submitting the form. Please try again later.":"Congratulations! Your form has been submitted successfully!"})}),y&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===c&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,L.jsx)("a",{href:"#",children:x}),"|",(0,L.jsx)("a",{href:"#",children:T})]}),("registration"===c||"forget_password"===c)&&(0,L.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,L.jsx)("a",{href:"#",children:H})}),("registration"===c||"forget_password"===c||"login"===c)&&(0,L.jsx)("div",{ | |
| 4602 | -className:"ablocks-block--form-builder__navigator-home-page",children:(0,L.jsxs)("a",{href:"#",children:[S&&(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:k.viewBox,className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,L.jsx)("path",{d:k.path})}),R]})})]})]})]})}const pY=t=>{const{clientId:e,setAttributes:i,defaultVariation:a}=t,{replaceInnerBlocks:l}=(0,r.useDispatch)("core/block-editor");return(0,L.jsxs)("div",{className:"ablocks-form-builder-block-variation-picker",children:[(0,L.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,L.jsx)(C.__experimentalBlockVariationPicker,{label:(0,z.__)("Please Select a Form Type","ablocks"),variations:QV,onSelect:t=>((t=a)=>{t.attributes&&i({...t.attributes,variationSelected:!1,formType:t.name,formActions:t.attributes.formActions||""}),t.innerBlocks&&l(e,(0, | |
| 4603 | -o.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))})(t)})]})},mY=(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}},hY=(t,e="")=>{const i={};return"multi-step"!==t?.formType&&(i.display="flex",i["flex-wrap"]="wrap",i["row-gap"]="2px",i["column-gap"]="Mobile"===e?"4px":"8px"),{...i}},gY=(t,e="")=>{const i={};return"multi-step"===t?.formType&&(i.display="none"),{...i}},fY=(t,e="")=>{const{rowsSpacing:i}=t;return{...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,property:"margin-top",defaultValue:0,unitDefaultValue:"px",device:e}),...(0,Ob.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" | |
| 4604 | -}),s=t.labelTypographyGlobal?t.labelTypographyGlobal:"",r={color:(0,gs.qD)(t?.labelColor),...(0,P.qD)(n,e,s),...(0,Gt.qD)(l,"text-align",e),...(0,Ob.qD)({attributeValue:o,attributeObjectKey:"value",isResponsive:!0,property:"margin-bottom",defaultValue:10,unitDefaultValue:"px",device:e})};return r["margin-bottom"]&&(r["margin-bottom"]=r["margin-bottom"]+" !important"),a||(r.display="none"),r},TY=(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,gs.qD)(t?.helperTextColor),...(0,Gt.qD)(a,"text-align",e),...(0,P.qD)(n,e,s),...(0,Ob.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},HY=(t,e="")=>{ | |
| 4605 | -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",unitRadius:"px"});return{color:(0,gs.qD)(t?.inputColor),background:(0,gs.qD)(t?.inputBgColor),...n,...(0,Gt.qD)(l,"text-align",e),...(0,P.qD)(s,e,r),...(0,y.qD)(d,e),...(0,c.qD)(b,"padding",e)}},MY=(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)}},xY=(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)}},kY=(t,e="")=>{const{inputAlignment:i,inputTypography:o}=t,a=(0,M.Zy)(o,{weight:"400"}),l=t.inputTypographyGlobal?t.inputTypographyGlobal:"";return{color:(0, | |
| 4606 | -gs.qD)(t?.inputPlaceholderColor),...(0,Gt.qD)(i,"text-align",e),...(0,P.qD)(a,e,l)}},vY=(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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBgColor),...(0,y.qD)(s,e),...(0,P.qD)(a,e,l),...(0,c.qD)(n,"padding",e)}},_Y=(t,e="")=>{const{buttonTextAlignment:i,buttonAlignment:o}=t;return{...(0,Gt.qD)(i,"text-align",e),...(0,Gt.qD)(o,"align-self",e)}},RY=(t,e="")=>{const{buttonBorder:i}=t;return{color:(0,gs.qD)(t?.buttonHColor),background:(0,gs.qD)(t?.buttonBgHColor),...(0,y.a9)(i,e)}},SY=(t,e)=>{const{inputIconPosition:i}=t;return{...(0,Ob.qD)({attributeValue:i,isResponsive:!1,property:"top",defaultValue:75,unitDefaultValue:"%",device:e})}},WY=(t,e)=>{const i=(0,M.Zy)(t?.navigatorPadding,{unit:"px"}),o=(0,M.Zy)(t?.navigatorTypography,{weight:"400" | |
| 4607 | -}),a=t.navigatorTypographyGlobal?t.navigatorTypographyGlobal:"";return{color:(0,gs.qD)(t?.navigatorColor),...(0,P.qD)(o,e,a),...(0,c.qD)(i,"padding",e),...(0,Gt.qD)(t.navigatorAlignment,"text-align",e)}},UY=(t,e)=>{const{navigatorSpacing:i}=t;return{...(0,Ob.qD)({attributeValue:i,isResponsive:!1,property:"margin-bottom",defaultValue:20,unitDefaultValue:"px",device:e})}},PY=t=>({color:(0,gs.qD)(t?.errorColor),background:(0,gs.qD)(t?.errorBackground)}),jY=t=>({color:(0,gs.qD)(t?.successColor),background:(0,gs.qD)(t?.successBackground)}),wY=(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,P.qD)(i,e,o),...(0,c.qD)(a,"padding",e),...(0,Gt.qD)(t.successErrorAlignment,"text-align",e)}},zY={UU:"ablocks/form-builder",uK:{block_id:{type:"string",default:""},variationSelected:{type:"boolean",default:!0},postId:{type:"number",default:""},showLabels:{ | |
| 4608 | -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",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}"}, | |
| 4609 | -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",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"}]}, | |
| 4610 | -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:{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", | |
| 4611 | -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",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", | |
| 4612 | -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",path:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}},navigatorIconShow:{type:"boolean",default:!0},forgetPasswordLabel:{type:"string", | |
| 4613 | -default:"Lost Your Password"},loginLabel:{type:"string",default:"Log in"},registerLabel:{type:"string",default:"Register"},homeLabel:{type:"string",default:"Go to home"},errorBackground:{type:"string",default:"#D03739"},errorColor:{type:"string",default:"#ffffff"},successColor:{type:"string",default:"#fffff"},successBackground:{type:"string",default:"#00935B"},showErrorDemo:{type:"boolean",default:!1},showSuccessDemo:{type:"boolean",default:!1},userRoles:{type:"array",default:[]},roleSlug:{type:"string",default:""},labelAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},inputAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonTextAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},navigatorAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonAlignment:{type:"object",default:{value:"flex-end",valueTablet:"",valueMobile:""}},successErrorAlignment:{type:"object", | |
| 4614 | -default:{value:"center",valueTablet:"",valueMobile:""}},rowsSpacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},buttonHeight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},labelSpacing:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},helperTextSpacing:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},inputIconPosition:{type:"number",default:60},navigatorSpacing:{type:"number",default:10},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},webhookLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},labelTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", | |
| 4615 | -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"}},helperTextTypography:{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", | |
| 4616 | -wordSpacingUnitMobile:"px"}},inputTypography:{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"}},buttonTypography:{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:"", | |
| 4617 | -lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},navigatorTypography:{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"}},successErrorTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"", | |
| 4618 | -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"}},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", | |
| 4619 | -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:"", | |
| 4620 | -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:"",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:"", | |
| 4621 | -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:"", | |
| 4622 | -unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},inputPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigatorPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},successErrorPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"", | |
| 4623 | -bottomMobile:"",leftMobile:"",unitMobile:""}},buttonPadding:{type:"object",default:{isLinked:!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:{ | |
| 4624 | -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:"", | |
| 4625 | -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", | |
| 4626 | -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:"", | |
| 4627 | -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:"", | |
| 4628 | -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:"", | |
| 4629 | -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:"", | |
| 4630 | -yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default", | |
| 4631 | -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)(dY.UU)&&(0,o.registerBlockType)(dY.UU,{attributes:dY.uK,icon:(0,L.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;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 4632 | -null===t?"":(t.addClassStyles("{{WRAPPER}} > .ablocks-block-container > .ablocks-form-builder",mY(i),mY(i,"Tablet"),mY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__field",fY(i),fY(i,"Tablet"),fY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__label",yY(i),yY(i,"Tablet"),yY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__helper-text",TY(i),TY(i,"Tablet"),TY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input , {{WRAPPER}} .ablocks-form-builder__select , {{WRAPPER}} .ablocks-form-builder-datepicker-input , {{WRAPPER}} .ablocks-form-builder-timepicker-input ",HY(i),HY(i,"Tablet"),HY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:hover",MY(i),MY(i,"Tablet"),MY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input:focus",xY(i),xY(i,"Tablet"),xY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input::placeholder",kY(i),kY(i,"Tablet"),kY(i,"Mobile")), | |
| 4633 | -t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon,{{WRAPPER}} .ablocks-form-builder__input-toggle-password",SY(i),SY(i,"Tablet"),SY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",_Y(i),_Y(i,"Tablet"),_Y(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button",vY(i),vY(i,"Tablet"),vY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__submit-button:hover",RY(i),RY(i,"Tablet"),RY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .block-editor-block-list__layout",hY(i),hY(i,"Tablet"),hY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-form-builder__fields.block-editor-block-list__layout > .block-list-appender",gY(i),gY(i,"Tablet"),gY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator",WY(i),WY(i,"Tablet"),WY(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__navigator-redirect-page",UY(i),UY(i,"Tablet"),UY(i,"Mobile")), | |
| 4634 | -t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__error",PY(i),PY(i),PY(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__success",jY(i),jY(i),jY(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block--form-builder__feedback-message",wY(i),wY(i,"Tablet"),wY(i,"Mobile")),t.generateCSS())},[i]);return i.variationSelected?(0,L.jsx)(pY,{...t}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:b}),e&&(0,L.jsx)(cY,{...t}),(0,L.jsx)(uY,{...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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(oc,{blockId:i,name:dY.UU,attributes:e,children:[(0,L.jsxs)("form",{id:`ablocks-form-builder-${i}`,className:"ablocks-form-builder", | |
| 4635 | -method:"post",children:[(0,L.jsx)("input",{type:"hidden",name:"security",value:""}),(0,L.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${T}_handler`}),(0,L.jsx)("input",{type:"hidden",name:"current_post_id",value:r}),(0,L.jsx)("input",{type:"hidden",name:"block_id",value:i}),!0===c||!0===d?(0,L.jsx)("input",{type:"hidden",name:"redirect_url",value:b?.href}):null,(0,L.jsx)("div",{className:"ablocks-form-builder__fields",children:(0,L.jsx)(C.InnerBlocks.Content,{})}),"multi-step"!==n&&(0,L.jsx)("button",{className:`ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${a}`,type:"submit",children:s})]}),(0,L.jsx)("div",{className:"ablocks-block--form-builder__feedback-message"}),u&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===n&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,L.jsx)("a",{href:"{{ablocks_link_registration_page}}",children:h}),"|",(0, | |
| 4636 | -L.jsx)("a",{href:"{{ablocks_link_forget_password_page}}",children:p})]}),("registration"===n||"forget_password"===n)&&(0,L.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,L.jsx)("a",{href:"{{ablocks_link_login_page}}",children:m})}),("registration"===n||"forget_password"===n||"login"===n)&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator-home-page",children:[y&&(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:g.viewBox,className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,L.jsx)("path",{d:g.path})}),(0,L.jsx)("a",{href:"{{ablocks_link_home}}",children:f})]})]})]})})},deprecated:[{attributes:zY.uK,save:function(t){ | |
| 4637 | -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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(dc,{blockId:i,name:zY.UU,attributes:e,children:[(0,L.jsxs)("form",{id:`ablocks-form-builder-${i}`,className:"ablocks-form-builder",method:"post",children:[(0,L.jsx)("input",{type:"hidden",name:"security",value:""}),(0,L.jsx)("input",{type:"hidden",name:"action",value:`ablocks/form_builder_${y}_handler`}),(0,L.jsx)("input",{type:"hidden",name:"current_post_id",value:s}),(0,L.jsx)("input",{type:"hidden",name:"block_id",value:i}),!0===b||!0===c?(0,L.jsx)("input",{type:"hidden",name:"redirect_url",value:r?.href}):null,(0,L.jsx)(C.InnerBlocks.Content,{}),"multi-step"!==a&&(0,L.jsx)("button",{ | |
| 4638 | -className:`ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${o}`,type:"submit",children:n})]}),(0,L.jsx)("div",{className:"ablocks-block--form-builder__feedback-message"}),d&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator",children:["login"===a&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:[(0,L.jsx)("a",{href:"{{ablocks_link_registration_page}}",children:m}),"|",(0,L.jsx)("a",{href:"{{ablocks_link_forget_password_page}}",children:u})]}),("registration"===a||"forget_password"===a)&&(0,L.jsx)("div",{className:"ablocks-block--form-builder__navigator-redirect-page",children:(0,L.jsx)("a",{href:"{{ablocks_link_login_page}}",children:p})}),("registration"===a||"forget_password"===a||"login"===a)&&(0,L.jsxs)("div",{className:"ablocks-block--form-builder__navigator-home-page",children:[f&&(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:h.viewBox, | |
| 4639 | -className:"ablocks-svg-icon ablocks-block--form-builder__arrow-icon",children:(0,L.jsx)("path",{d:h.path})}),(0,L.jsx)("a",{href:"{{ablocks_link_home}}",children:g})]})]})]})})}}],variations:QV});const CY=[{label:(0,z.__)("Text","ablocks"),value:"Text"},{label:(0,z.__)("Number","ablocks"),value:"Number"},{label:(0,z.__)("Username","ablocks"),value:"Username"},{label:(0,z.__)("Email","ablocks"),value:"Email"},{label:(0,z.__)("URL","ablocks"),value:"URL"}],AY=((0,z.__)("first_name","ablocks"),(0,z.__)("last_name","ablocks"),(0,z.__)("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"}}),LY=(0,Ob.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),DY=(0,Ob.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),NY=(0,Ob.D$)({attributeName:"inputWidth",attributeObjectKey:"value", | |
| 4640 | -isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),IY=(0,z.__)("name","ablocks");function VY(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&&CY.length>0&&i({inputType:CY[0].value})},[s,i]),(0,a.useEffect)(()=>{let t;switch(s){case"Text":t=(0,z.__)("Text","ablocks");break;case"Number":t=(0,z.__)("Number","ablocks");break;case"URL":t=(0,z.__)("URL","ablocks");break;case"Username":t=(0,z.__)("Username","ablocks");break;case"Email":t="email"===m?(0,z.__)("Email","ablocks"):(0,z.__)("Confirm Email","ablocks");break;default:t=(0,z.__)("Name","ablocks")}const e=[(0,z.__)("Name","ablocks"),(0,z.__)("Text","ablocks"),(0,z.__)("Number","ablocks"),(0,z.__)("URL","ablocks"),(0,z.__)("Username","ablocks"),(0,z.__)("Email","ablocks"),(0, | |
| 4641 | -z.__)("Confirm Email","ablocks")];b&&!e.includes(b)||i({label:t})},[s,m]);const H=(t,e)=>t?"URL"===e?(0,z.sprintf)(/* translators: %s: field label */ /* translators: %s: field label */ | |
| 4642 | -(0,z.__)("Please Enter your Valid %s","ablocks"),t):(0,z.sprintf)(/* translators: %s: field label */ /* translators: %s: field label */ | |
| 4643 | -(0,z.__)("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===IY||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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area", | |
| 4644 | -children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,L.jsx)(D,{title:(0,z.__)("Input","ablocks"),initialOpen:!0,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Field type","ablocks"),isResponsive:!1,options:CY,attributeName:"inputType",attributeValue:s,setAttributes:i,disabled:k}),(0,L.jsx)(vt,{label:(0,z.__)("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:NY | |
| 4645 | -}),"Email"===s&&!1===k&&(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,label:(0,z.__)("Email Type","ablocks"),options:[{label:(0,z.__)("Email","ablocks"),value:"email"},{label:(0,z.__)("Confirm Email","ablocks"),value:"confirm_email"}],attributeName:"emailType",attributeValue:m,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("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,L.jsx)(ql,{label:(0,z.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:h,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Placeholder","ablocks"),attributeName:"placeholder",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Required","ablocks"), | |
| 4646 | -attributeValue:n,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,L.jsx)(ql,{label:(0,z.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:g,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:c,setAttributes:i,attributeName:"showIcon",isResponsive:!1})]})}),c&&(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Icon","ablocks"),children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,L.jsx)(vs,{label:(0,z.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"inputIconSize",attributeValue:d,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:LY}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Space","ablocks"),attributeName:"inputIconSpace",attributeValue:p,setAttributes:i,isInline:!1,min:1,max:100, | |
| 4647 | -step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:DY})]})]})]})})}(0,z.__)("Name","ablocks"),(0,z.__)("This field is required","ablocks"),(0,y.D$)("border",!0),(0,vd.D$)("icon",{size:28}),(0,lY.D$)("emailType",!1,{value:"email"}),Mr.Ay;const OY={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, | |
| 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, | |
| 4536 | +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",{ | |
| 4540 | +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",{ | |
| 4551 | +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 | +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",{ | |
| 4561 | +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 | +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 | +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/*"), | |
| 4566 | +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"]}],[{ | |
| 4570 | +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 | +;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([]), | |
| 4574 | +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 | +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 | +"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 | +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 | +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,{})})}) | |
| 4584 | +}):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 | +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 | +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 | +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){ | |
| 4592 | +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 | +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 | +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 | +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 | +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, | |
| 4602 | +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 | +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 | +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", | |
| 4607 | +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 | +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 | +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 | +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", | |
| 4611 | +path:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}},navigatorIconShow:{type:"boolean",default:!0},forgetPasswordLabel:{type:"string",default:"Lost Your Password"},loginLabel:{type:"string",default:"Log in"},registerLabel:{type:"string",default:"Register"},homeLabel:{type:"string",default:"Go to home"},errorBackground:{type:"string",default:"#D03739"},errorColor:{type:"string",default:"#ffffff"},successColor:{type:"string",default:"#fffff"},successBackground:{type:"string",default:"#00935B"},showErrorDemo:{type:"boolean",default:!1},showSuccessDemo:{type:"boolean",default:!1},userRoles:{type:"array",default:[]},roleSlug:{type:"string",default:""},confirmationNotice:{type:"string",default:"Form successfully submitted!"},afterFormSubmission:{type:"string",default:"reset"},customUrl:{ | |
| 4612 | +type:"string",default:""},confirmationType:{type:"string",default:"success"},labelAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},inputAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonTextAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},navigatorAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},successErrorAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},rowsSpacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},buttonHeight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},labelSpacing:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},helperTextSpacing:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},inputIconPosition:{ | |
| 4613 | +type:"number",default:75},navigatorSpacing:{type:"number",default:10},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},webhookLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},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"}}, | |
| 4614 | +helperTextTypographyGlobal:{type:"string",default:""},helperTextTypography:{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"}},inputTypographyGlobal:{type:"string",default:""},inputTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", | |
| 4615 | +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:"",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", | |
| 4616 | +wordSpacingUnitMobile:"px"}},navigatorTypographyGlobal:{type:"string",default:""},navigatorTypography:{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"}},successErrorTypographyGlobal:{type:"string",default:""},successErrorTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", | |
| 4617 | +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"}},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:"", | |
| 4618 | +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:"", | |
| 4619 | +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:"",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:"", | |
| 4620 | +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:""}},inputPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 4621 | +isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigatorPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},successErrorPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"", | |
| 4622 | +right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},dir:{type:"object",default:{value:"column",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:"", | |
| 4623 | +widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 4624 | +unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"", | |
| 4625 | +positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 4626 | +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 | +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 | +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 | +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]) | |
| 4632 | +;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 | +;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 | +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 | +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:{ | |
| 4644 | +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 | +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 | +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 | +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:{ | |
| 4648 | +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",path:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}},navigatorIconShow:{type:"boolean",default:!0},forgetPasswordLabel:{type:"string",default:"Lost Your Password"},loginLabel:{type:"string",default:"Log in"},registerLabel:{type:"string",default:"Register"},homeLabel:{type:"string",default:"Go to home"},errorBackground:{type:"string",default:"#D03739"},errorColor:{type:"string",default:"#ffffff"},successColor:{type:"string",default:"#fffff"},successBackground:{ | |
| 4649 | +type:"string",default:"#00935B"},showErrorDemo:{type:"boolean",default:!1},showSuccessDemo:{type:"boolean",default:!1},userRoles:{type:"array",default:[]},roleSlug:{type:"string",default:""},labelAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},inputAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonTextAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},navigatorAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonAlignment:{type:"object",default:{value:"flex-end",valueTablet:"",valueMobile:""}},successErrorAlignment:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},rowsSpacing:{type:"object",default:{value:0,valueTablet:"",valueMobile:""}},buttonHeight:{type:"object",default:{value:0,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},labelSpacing:{type:"object",default:{value:10,valueTablet:"", | |
| 4650 | +valueMobile:""}},helperTextSpacing:{type:"object",default:{value:10,valueTablet:"",valueMobile:""}},inputIconPosition:{type:"number",default:60},navigatorSpacing:{type:"number",default:10},link:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},webhookLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",noFollow:"",keyValue:"",linkClass:""}},labelTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"", | |
| 4651 | +wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},helperTextTypography:{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"}},inputTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"", | |
| 4652 | +fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonTypography:{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"}},navigatorTypography:{type:"object", | |
| 4653 | +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"}},successErrorTypography:{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", | |
| 4654 | +lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",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:"", | |
| 4655 | +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:""}}, | |
| 4656 | +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,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"", | |
| 4657 | +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:""}},inputPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"", | |
| 4658 | +commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},navigatorPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},successErrorPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},buttonPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"", | |
| 4659 | +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",default:{borderStyle:"default",borderStyleH:"default",borderColor:"", | |
| 4660 | +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:"", | |
| 4661 | +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", | |
| 4662 | +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 | +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 | +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 | +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",{ | |
| 4674 | +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, | |
| 4677 | +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 | +(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 | |
| 4681 | +}),"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, | |
| 4648 | 4684 | 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:"", |
| 4649 | 4685 | 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", |
| 4650 | 4686 | 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" |
| 4651 | 4687 | },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:"", |
| @@ -4657,20 +4693,53 @@ | ||
| 4657 | 4693 | 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, |
| 4658 | 4694 | 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:"", |
| 4659 | 4695 | 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, |
| 4660 | 4696 | 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:{ |
| 4661 | -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 YY(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=at(),h="Tablet"===m,g="Mobile"===m,{isDynamicEnabled:f,data:y}=Zc({attributeValue:s}),{isDynamicEnabled:T,data:H}=Zc({attributeValue:l}),{isDynamicEnabled:x,data:k}=Zc({attributeValue:b}),{isDynamicEnabled:v,data:_}=Zc({attributeValue:d | |
| 4662 | -}),{isDynamicEnabled:R,data:S}=Zc({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,z.__)("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,z.__)("Please enter a valid URL","ablocks"))}}else{t.classList.add("error-msg") | |
| 4663 | -;const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=(0,z.__)("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,z.__)("Please enter a valid URL","ablocks"))}else{t.classList.add("error-msg");const e=t.querySelector(".ablocks-block-error-msg");e&&(e.textContent=(0,z.__)("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 U=t=>{const e=g?"Mobile":h?"Tablet":"Desktop",o={...p} | |
| 4664 | -;"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{group:"block",children:(0,L.jsxs)(A.Toolbar,{children:[(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,z.__)("100%","ablocks"),onClick:()=>U(100),className:W(100)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,z.__)("75%","ablocks"),onClick:()=>U(75),className:W(75)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,z.__)("50%","ablocks"),onClick:()=>U(50),className:W(50)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,z.__)("33%","ablocks"),onClick:()=>U(33),className:W(33)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,z.__)("25%","ablocks"),onClick:()=>U(25), | |
| 4665 | -className:W(25)})]})}),(0,L.jsxs)(K_,{blockId:o,name:OY.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,L.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:x?k:b}),(""!==d||""!==_)&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:v?_:d}),c&&(0,L.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,L.jsx)(Vd,{attributes:e})}),(0,L.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:AY(f?y:s)}),n&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:R?S:u})]})]})}const XY=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Ob.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",hasUnit:!0,defaultValue:100, | |
| 4666 | -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},BY=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{...i}},EY=t=>({fill:(0,gs.qD)(t?.iconColor)}),FY=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(OY.UU,OY.$t[0])&&(0,o.registerBlockType)(OY.UU,{attributes:OY.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 j(e,i);s.addClassStyles(`.ablocks-block--child-${n}`,XY(e),XY(e,"Tablet"),XY(e,"Mobile")),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"}), | |
| 4667 | -s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",FY(e),FY(e),FY(e)),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap",BY(e),BY(e),BY(e)),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap .ablocks-svg-icon",EY(e),EY(e),EY(e));const r=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),l&&(0,L.jsx)(VY,{...t}),(0,L.jsx)(YY,{...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,L.jsxs)(eR,{blockId:e,name:OY.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,L.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:n}),""!==r&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:r}),s&&(0,L.jsx)("span",{ | |
| 4668 | -className:"ablocks-form-builder__input-icon",children:(0,L.jsx)(Vd,{attributes:t})}),(0,L.jsx)("input",{className:`ablocks-form-builder__input ${s&&"ablocks-form-builder__input-show-icon"}`,placeholder:i,name:a,autoComplete:AY(a),id:e,type:"username"===l.toLowerCase()?"text":"url"===l.toLowerCase()?"url":l.toLowerCase()}),o&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:b})]})},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--input"})});const qY=[{label:(0,z.__)("textarea","ablocks"),value:"textarea"},{label:(0,z.__)("bio","ablocks"),value:"bio"},{label:(0,z.__)("custom","ablocks"),value:"custom"}],$Y=(0,Ob.D$)({attributeName:"textAreaRow",isResponsive:!1,defaultValue:5,copyStyle:!0}),GY=(0,Ob.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function ZY(t){ | |
| 4669 | -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&&qY.length>0&&i({nameType:qY[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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0,L.jsx)("span",{ | |
| 4670 | -className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,L.jsx)(D,{title:(0,z.__)("Text Area","ablocks"),initialOpen:!0,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("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:GY}),(0,L.jsx)(Ut,{label:(0,z.__)("Name Type","ablocks"),options:qY,isSearch:!0,attributeName:"nameType",attributeValue:r,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),"custom"===r&&(0, | |
| 4671 | -L.jsx)(ql,{label:(0,z.__)("Custom Name","ablocks"),attributeName:"customName",setAttributes:i,attributeValue:d,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:p,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Placeholder","ablocks"),attributeName:"placeholder",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Rows","ablocks"),min:1,max:100,step:1,isInline:!1,isResponsive:!1,attributeName:"textAreaRow",attributeValue:e?.textAreaRow,setAttributes:i,attributeDefaultValue:$Y}),(0,L.jsx)(Vt,{label:(0,z.__)("Required","ablocks"),attributeValue:n,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,L.jsx)(ql,{label:(0,z.__)("Error Message","ablocks"), | |
| 4672 | -attributeName:"errorMsg",setAttributes:i,attributeValue:c,isInline:!1,disableDynamicContent:!0})]})})})]})})}Mr.Ay;const KY={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:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"", | |
| 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 | +}),{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 | +;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 | +;"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:"", | |
| 4709 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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:{ | |
| 4724 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +""!==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, | |
| 4739 | +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 | +...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:"", | |
| 4673 | 4742 | 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:"", |
| 4674 | 4743 | 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:"", |
| 4675 | 4744 | 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:"", |
| 4676 | 4745 | 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:"", |
| @@ -4677,65 +4746,33 @@ | ||
| 4677 | 4746 | 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:"", |
| 4678 | 4747 | 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", |
| 4679 | 4748 | 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", |
| 4680 | 4749 | 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"}}, |
| 4681 | -_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function JY(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=at(),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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{group:"block",children:(0,L.jsxs)(A.Toolbar,{children:[(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,z.__)("100%","ablocks"),onClick:()=>f(100),className:g(100)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,z.__)("75%","ablocks"),onClick:()=>f(75),className:g(75)}),(0, | |
| 4682 | -L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,z.__)("50%","ablocks"),onClick:()=>f(50),className:g(50)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,z.__)("33%","ablocks"),onClick:()=>f(33),className:g(33)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,z.__)("25%","ablocks"),onClick:()=>f(25),className:g(25)})]})}),(0,L.jsxs)(K_,{blockId:o,name:KY.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,L.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:s}),""!==r&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),(0,L.jsx)("textarea",{className:"ablocks-form-builder__input ablocks-form-builder__field__text",rows:u,placeholder:l,name:"custom"===a?c:a,id:o}),n&&(0,L.jsx)("div",{className:"ablocks-block-error-msg", | |
| 4683 | -children:b})]})]})}const QY=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Ob.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)(KY.UU,KY.$t[0])&&(0,o.registerBlockType)(KY.UU,{attributes:KY.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 j(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,QY(i),QY(i,"Tablet"),QY(i,"Mobile")),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"});const r=s.generateCSS() | |
| 4684 | -;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(ZY,{...t}),(0,L.jsx)(JY,{...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,L.jsxs)(eR,{blockId:e,name:KY.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":a},children:[(0,L.jsx)("label",{className:`ablocks-form-builder__label ${a?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==n&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:n}),(0,L.jsx)("textarea",{className:"ablocks-form-builder__input ablocks-form-builder__field__text",rows:b,placeholder:o,name:"custom"===i?r:i,id:e}),a&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:s})]})},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--textarea"})});const tX=(0,Ob.D$)({attributeName:"inputWidth",attributeObjectKey:"value", | |
| 4685 | -isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function eX(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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0, | |
| 4686 | -z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0,L.jsx)(D,{title:(0,z.__)("Checkbox","ablocks"),initialOpen:!0,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("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:tX}),(0,L.jsx)(ql,{label:(0,z.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:n,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Helper Text","ablocks"),attributeName:"helperText", | |
| 4687 | -setAttributes:i,attributeValue:r,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Default Checked","ablocks"),attributeValue:b,setAttributes:i,attributeName:"isChecked",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Required","ablocks"),attributeValue:o,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),o&&(0,L.jsx)(ql,{label:(0,z.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:c,isInline:!1})]})})})]})})}(0,z.__)("Checkbox","ablocks"),(0,z.__)("This field is required","ablocks"),(0,z.__)("Enter your message","ablocks"),Mr.Ay;const iX={UU:"ablocks/form-checkbox",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{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}, | |
| 4688 | -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:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 4689 | -customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 4690 | -isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", | |
| 4691 | -hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 4692 | -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:"", | |
| 4693 | -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:"", | |
| 4694 | -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", | |
| 4695 | -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, | |
| 4696 | -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 oX(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)(()=>{""!==u&&i({inputType:"checkbox"})},[]);const p=at(),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} | |
| 4697 | -;"Desktop"===e?o.value=t:"Tablet"===e?o.valueTablet=t:"Mobile"===e&&(o.valueMobile=t),i({inputWidth:o})};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{group:"block",children:(0,L.jsxs)(A.Toolbar,{children:[(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,z.__)("100%","ablocks"),onClick:()=>f(100),className:g(100)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,z.__)("75%","ablocks"),onClick:()=>f(75),className:g(75)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,z.__)("50%","ablocks"),onClick:()=>f(50),className:g(50)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,z.__)("33%","ablocks"),onClick:()=>f(33),className:g(33)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,z.__)("25%","ablocks"),onClick:()=>f(25), | |
| 4698 | -className:g(25)})]})}),(0,L.jsxs)(K_,{blockId:o,name:iX.UU,attributes:e,className:"ablocks-form-builder__field ablocks-form-builder__checkbox",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__field__content",children:[(0,L.jsx)("input",{type:u||"checkbox",checked:b,name:l,id:`${s.toLowerCase().replace(/ /g,"_")}_${o}`}),(0,L.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:`${s.toLowerCase().replace(/ /g,"_")}_${o}`,children:s})]}),""!==r&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),n&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:c})]})]})}const aX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Ob.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){ | |
| 4699 | -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)(iX.UU,iX.$t[0])&&(0,o.registerBlockType)(iX.UU,{attributes:iX.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 j(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,aX(i),aX(i,"Tablet"),aX(i,"Mobile")),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"});const r=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(eX,{...t}),(0,L.jsx)(oX,{...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,L.jsxs)(eR,{blockId:e,name:iX.UU,attributes:t, | |
| 4700 | -className:"ablocks-form-builder__field ablocks-form-builder__checkbox",blockProps:{"data-required":o},children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__field__content",children:[(0,L.jsx)("input",{type:"checkbox",checked:l,name:s,id:`${i.toLowerCase().replace(/ /g,"_")}_${e}`}),(0,L.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:`${i.toLowerCase().replace(/ /g,"_")}_${e}`,children:i})]}),""!==a&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:a}),o&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:n})]})},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--checkbox"})});const lX=(0,Ob.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function nX(t){const{attributes:e,setAttributes:i}=t,{isRequired:o,label:n,name:s,options:r,helperText:b,inputWidth:c}=e,[d,u]=(0, | |
| 4701 | -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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mb,{attributes:e,setAttributes:i, | |
| 4702 | -docs_url:"https://ablocks.pro/form-builder/",children:(0,L.jsxs)(D,{title:(0,z.__)("Select","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("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:lX}),(0,L.jsx)(ql,{label:(0,z.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:s,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:n,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Required","ablocks"),attributeValue:o,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),(0,L.jsx)(tf,{onDragEnd:t=>{ | |
| 4703 | -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,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsx)("div",{ref:t.innerRef,...t.droppableProps,children:r.map((t,e)=>(0,L.jsx)(Uf,{draggableId:`${t.id}`,index:e,children:e=>(0,L.jsxs)("div",{ref:e.innerRef,...e.draggableProps,...e.dragHandleProps,className:"ablocks-editor-select",children:[(0,L.jsxs)("div",{className:"ablocks-editor-select__wrapper",children:[(0,L.jsxs)("div",{className:"ablocks-editor-select__content-wrapper",role:"presentation",onClick:()=>(t=>{const e=r.map(e=>e.id===t?{...e,isOpen:!e.isOpen}:{...e,isOpen:!1});i({options:e})})(t?.id),children:[(0,L.jsx)("span",{className:"ablocks-editor-select__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,L.jsx)("span",{className:"ablocks-select-text",children:t.value})]}),(0,L.jsx)("div",{className:"ablocks-editor-select__options-wrapper",children:(0, | |
| 4704 | -L.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,L.jsx)("div",{className:"ablocks-editor-select__inner-content",children:(0,L.jsx)(ae,{label:(0,z.__)("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,z.__)("Enter your text","ablocks")})})]})},t.id))})})}),(0,L.jsxs)("div",{className:"ablocks-editor-select__new-option",children:[(0,L.jsx)("input",{value:d,onChange:t=>{u(t.target.value)}}),(0,L.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,z.__)("Add","ablocks")})]})]})})]})})}Mr.Ay;const sX={UU:"ablocks/form-select",$t:["ablocks/form-builder"],uK:{block_id:{type:"string",default:""},label:{type:"string", | |
| 4705 | -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:"",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:"", | |
| 4706 | -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:"", | |
| 4707 | -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:"", | |
| 4708 | -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:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"", | |
| 4709 | -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", | |
| 4710 | -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:"", | |
| 4711 | -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:"", | |
| 4712 | -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:"", | |
| 4713 | -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 rX(t){ | |
| 4714 | -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=at(),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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{group:"block",children:(0,L.jsxs)(A.Toolbar,{children:[(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,z.__)("100%","ablocks"),onClick:()=>h(100),className:m(100)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,z.__)("75%","ablocks"),onClick:()=>h(75),className:m(75)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,z.__)("50%","ablocks"), | |
| 4715 | -onClick:()=>h(50),className:m(50)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,z.__)("33%","ablocks"),onClick:()=>h(33),className:m(33)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,z.__)("25%","ablocks"),onClick:()=>h(25),className:m(25)})]})}),(0,L.jsxs)(K_,{blockId:o,name:sX.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0,L.jsx)("label",{className:`ablocks-form-builder__label ${l?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:n}),""!==r&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:r}),(0,L.jsx)("select",{name:a,id:o,className:"ablocks-form-builder__select",children:s?.map(t=>(0,L.jsxs)("option",{value:t.value,children:[" ",t.value," "]},t?.value))}),l&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:b})]})]})}const bX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Ob.qD)({ | |
| 4716 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{ | |
| 4717 | -className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Multi step","ablocks"),children:[n.map((t,e)=>(0,L.jsxs)("div",{className:"ablocks-editor-multi-step",children:[(0,L.jsxs)("div",{className:"ablocks-editor-multi-step__wrapper",role:"presentation",children:[(0,L.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,L.jsx)("span",{className:"ablocks-select-text",children:t.value})}),(0,L.jsx)("div",{className:"ablocks-editor-multi-step__options-wrapper",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete", | |
| 4718 | -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,L.jsx)("div",{className:"ablocks-editor-select__inner-content",children:(0,L.jsx)(ae,{label:(0,z.__)("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,z.__)("Enter your text","ablocks")})})]},e)),(0,L.jsxs)("div",{className:"ablocks-editor-multi-step__new-option",children:[(0,L.jsx)("input",{value:c,onChange:t=>d(t.target.value)}),(0,L.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,z.__)("Add","ablocks")})]})]})]})})})}(0,M.xV)(sX.UU,sX.$t[0])&&(0,o.registerBlockType)(sX.UU,{attributes:sX.uK,edit:function(t){ | |
| 4719 | -const{isSelected:e,attributes: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 j(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,bX(i),bX(i,"Tablet"),bX(i,"Mobile")),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"});const r=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(nX,{...t}),(0,L.jsx)(rX,{...t})]})},save:function({attributes:t}){const{block_id:e,name:i,isRequired:o,options:a,label:l,helperText:n,errorMsg:s}=t;return(0,L.jsxs)(eR,{blockId:e,name:sX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,L.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==n&&(0,L.jsx)("label",{ | |
| 4720 | -className:"ablocks-form-builder__helper-text",htmlFor:e,children:n}),(0,L.jsxs)("div",{children:[(0,L.jsx)("select",{name:i||e,id:e,className:"ablocks-form-builder__select",children:a?.map(t=>(0,L.jsxs)("option",{value:t.value,children:[" ",t.value," "]},t?.value))}),o&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:s})]})]})},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--select"})});const dX=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}],uX=((0,z.__)("Contact form","ablocks"),(0,z.__)("Subscription form","ablocks"),(0,z.__)("RSVP form","ablocks"),(0,z.__)("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"}] | |
| 4721 | -},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",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default", | |
| 4722 | -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:"", | |
| 4723 | -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:"",vOffsetMobile:"", | |
| 4724 | -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:"",imgIdMobileH:"",imgUrlH:"", | |
| 4725 | -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:{ | |
| 4726 | -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, | |
| 4727 | -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:"", | |
| 4728 | -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, | |
| 4729 | -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}}),pX=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"),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), | |
| 4730 | -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,z.__)("Submit","ablocks"),this.nextButton.innerText=this.submitText):(this.nextButton.innerText=(0,z.__)("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")),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", | |
| 4731 | -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=>{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)} | |
| 4732 | -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 mX(t){const{attributes:e,setAttributes:i}=t,{block_id:o,alignment:n,steps:s,submitButtonText:b,submitButtonSize:c}=e,d=(0,C.useInnerBlocksProps)({},{allowedBlocks:["ablocks/form-multi-step-child"],template:[["ablocks/form-multi-step-child"]],renderAppender:!1}),u=(0,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 pX(t,!0))},[s,u]),(0,a.useEffect)(()=>{p.current?.updateSubmitText(b)},[b]),(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:n,setAttributes:i,options:dX})}),(0,L.jsxs)(K_,{blockId:o,name:uX.UU,attributes:e,children:[(0,L.jsxs)("div",{className:"ablocks-form-multi-step","data-step":s.length, | |
| 4733 | -"data-submit-text":b,children:[(0,L.jsx)("div",{className:"ablocks-form-multi-step__progress",children:s?.map((t,e)=>(0,L.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,L.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,L.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,L.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,L.jsx)("div",{className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,L.jsx)("div",{...d})]}),(0,L.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,L.jsxs)("button",{type:"button",className:"ablocks-form-multi-step__prev-btn",children:["<-"," ",(0,z.__)("Back","ablocks")]}),(0,L.jsxs)("button",{type:"button",className:`ablocks-form-multi-step__next-btn ablocks-form-builder__submit-button ablocks-form-builder__submit-button--${c}`,children:[(0,z.__)("Next","ablocks")," ","->"]})]})]})]})}function hX(t){ | |
| 4734 | -const{attributes:e,setAttributes:i}=t;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{})]})})})}(0,M.xV)(uX.UU,uX.$t[0])&&(0,o.registerBlockType)(uX.UU,{attributes:uX.uK,icon:(0,L.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,L.jsx)("path",{ | |
| 4735 | -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 j(i,l).generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(cX,{...t}),(0,L.jsx)(mX,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i,steps:o,submitButtonText:a,submitButtonSize:n}=e,s=C.useInnerBlocksProps.save();return(0,L.jsx)(l().Fragment,{children:(0, | |
| 4736 | -L.jsx)(eR,{blockId:i,name:uX.UU,attributes:e,children:(0,L.jsxs)("form",{children:[(0,L.jsxs)("div",{className:"ablocks-form-multi-step","data-step":o.length,"data-submit-text":a,children:[(0,L.jsx)("div",{className:"ablocks-form-multi-step__progress",children:o?.map((t,e)=>(0,L.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,L.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,L.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,L.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,L.jsx)("div",{className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,L.jsx)("div",{...s})]}),(0,L.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,L.jsxs)("button",{className:"ablocks-form-multi-step__prev-btn",children:["<-"," ",(0,z.__)("Back","ablocks")]}),(0,L.jsxs)("button",{className:"ablocks-form-multi-step__next-btn",children:[(0, | |
| 4737 | -z.__)("Next","ablocks")," ","->"]}),(0,L.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:{ | |
| 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, | |
| 4753 | +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 | +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, | |
| 4757 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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, | |
| 4774 | +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:{ | |
| 4738 | 4775 | 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:"", |
| 4739 | 4776 | 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:{ |
| 4740 | 4777 | 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:"", |
| 4741 | 4778 | 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:"", |
| @@ -4741,11 +4778,11 @@ | ||
| 4741 | 4778 | 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:"", |
| 4742 | 4779 | 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:"", |
| 4743 | 4780 | 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:"", |
| 4744 | 4781 | 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:"", |
| 4745 | -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=C.useInnerBlocksProps.save();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:uX.UU,attributes:e,children:(0,L.jsxs)("form",{children:[(0,L.jsxs)("div",{className:"ablocks-form-multi-step","data-step":o.length,children:[(0,L.jsx)("div",{ | |
| 4746 | -className:"ablocks-form-multi-step__progress",children:o?.map((t,e)=>(0,L.jsxs)("div",{className:"ablocks-form-multi-step__step-wrapper",children:[(0,L.jsxs)("div",{className:"ablocks-form-multi-step__step ",children:[(0,L.jsx)("div",{className:"ablocks-form-multi-step__step-number",children:e+1}),(0,L.jsx)("span",{className:"ablocks-form-multi-step__step-title",children:t.value})]}),(0,L.jsx)("div",{className:"ablocks-form-multi-step__divider",children:">"})]},t.id))}),(0,L.jsx)("div",{...a})]}),(0,L.jsxs)("div",{className:"ablocks-form-multi-step__btns",children:[(0,L.jsxs)("button",{className:"ablocks-form-multi-step__prev-btn",children:["<-"," Back"]}),(0,L.jsxs)("button",{className:"ablocks-form-multi-step__next-btn",children:["Next ","->"]})]})]})})})},migrate:t=>({...t,submitButtonText:"Submit",submitButtonSize:"default"})}]});const gX=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{ | |
| 4747 | -icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}],fX=((0,z.__)("Contact form","ablocks"),(0,z.__)("Subscription form","ablocks"),(0,z.__)("RSVP form","ablocks"),(0,z.__)("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:"", | |
| 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:"", | |
| 4748 | 4785 | 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:"", |
| 4749 | 4786 | 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:""}}, |
| 4750 | 4787 | _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:"", |
| 4751 | 4788 | 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", |
| @@ -4751,18 +4788,18 @@ | ||
| 4751 | 4788 | 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", |
| 4752 | 4789 | 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:"", |
| 4753 | 4790 | 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:"", |
| 4754 | 4791 | 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:"", |
| 4755 | -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,C.useInnerBlocksProps)({className:"ablocks-form-multi-step-child"},{renderAppender:C.InnerBlocks.ButtonBlockAppender, | |
| 4756 | -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,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:a,setAttributes:i,options:gX})}),(0,L.jsx)(K_,{blockId:o,name:fX.UU,attributes:e,children:(0,L.jsx)("div",{...n})})]})}(0,M.xV)(fX.UU,fX.$t[0])&&(0,o.registerBlockType)(fX.UU,{attributes:fX.uK,icon:(0,L.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,L.jsx)("path",{ | |
| 4757 | -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 j(i,l).generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(hX,{...t}),(0,L.jsx)(yX,{...t})]})},save:function(t){const{attributes:e}=t,{block_id:i}=e,o=C.useInnerBlocksProps.save({className:"ablocks-form-multi-step-child"});return(0,L.jsx)(l().Fragment,{children:(0, | |
| 4758 | -L.jsx)(eR,{blockId:i,name:fX.UU,attributes:e,children:(0,L.jsx)("div",{...o})})})}});const TX=[{label:(0,z.__)("Full Width","ablocks"),value:100},{label:(0,z.__)("Two Columns","ablocks"),value:50},{label:(0,z.__)("Three Columns","ablocks"),value:33},{label:(0,z.__)("Four Columns","ablocks"),value:25}],HX=t=>{const{markerType:e,iconAttributes:i,index:o,listProperties:a}=t;let l;if("icon"===e){const t=i?.[o];l=(0,L.jsx)(Vd,{customIconData:t,style:{color:a?.["iconColor"+o]?a?.["iconColor"+o]:"",fill:a?.["iconColor"+o]?a?.["iconColor"+o]:""}})}return l},MX=(0,Ob.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function xX(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, | |
| 4759 | -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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:(0, | |
| 4760 | -L.jsxs)(D,{title:(0,z.__)("Multi Select Block Settings","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("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:MX}),(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,label:(0,z.__)("Option Type","ablocks"),options:[{label:(0,z.__)("Checkbox","ablocks"),value:"checkbox"},{label:(0,z.__)("Radio","ablocks"),value:"radio"}],attributeName:"inputType",attributeValue:d,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Name","ablocks"),attributeName:"name",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Label","ablocks"),attributeName:"label",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Helper Text","ablocks"), | |
| 4761 | -attributeName:"helperText",setAttributes:i,attributeValue:c,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Required","ablocks"),attributeValue:r,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("Choice Width","ablocks"),options:TX,isSearch:!0,attributeName:"optionWidth",attributeValue:u,setAttributes:i}),"radio"!==d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(js,{label:(0,z.__)("Minimum Value","ablocks"),attributeName:"minimumValue",attributeValue:f,setAttributes:i}),(0,L.jsx)(js,{label:(0,z.__)("Maximum Value","ablocks"),attributeName:"maximumValue",attributeValue:g,setAttributes:i})]}),(0,L.jsx)(tf,{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,L.jsx)(zf,{droppableId:"droppable",children:t=>(0,L.jsx)("div",{ref:t.innerRef,...t.droppableProps,children:s.map((t,o)=>(0,L.jsx)(Uf,{draggableId:`${t.id}`,index:o, | |
| 4762 | -children:a=>(0,L.jsxs)("div",{ref:a.innerRef,...a.draggableProps,...a.dragHandleProps,className:"ablocks-editor-radio",children:[(0,L.jsxs)("div",{className:"ablocks-editor-radio__wrapper",role:"presentation",onKeyDown:()=>{},children:[(0,L.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,L.jsx)("span",{className:"ablocks-editor-radio__grab",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--move"})}),(0,L.jsx)("span",{className:"ablocks-radio-text",children:t.value})]}),(0,L.jsx)("div",{className:"ablocks-editor-radio__options-wrapper",children:(0,L.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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{ | |
| 4763 | -className:"ablocks-editor-radio__inner-content",children:(0,L.jsx)(ae,{label:(0,z.__)("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,z.__)("Enter your text","ablocks")})}),"icon"===p&&(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i,onChangeHandler:t=>((t,e)=>{let o=[];switch(t.substring(2,3)){case"r":o=Wd;break;case"s":o=Pd;break;case"b":o=Ud}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, | |
| 4764 | -L.jsxs)("div",{className:"ablocks-editor-radio__new-option",children:[(0,L.jsx)("input",{value:T,onChange:t=>{H(t.target.value)}}),(0,L.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,z.__)("Add","ablocks")})]})]})})]})})}(0,vd.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}),Mr.Ay;const kX={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?" | |
| 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, | |
| 4796 | +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, | |
| 4799 | +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 | +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?" | |
| 4765 | 4802 | },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:{ |
| 4766 | 4803 | 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:"", |
| 4767 | 4804 | 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", |
| 4768 | 4805 | 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:"", |
| @@ -4769,21 +4806,21 @@ | ||
| 4769 | 4806 | 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:"", |
| 4770 | 4807 | 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:"", |
| 4771 | 4808 | 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:"", |
| 4772 | 4809 | 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", |
| 4773 | -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 vX(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"})},[]) | |
| 4774 | -;const m=at(),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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{group:"block",children:(0,L.jsxs)(A.Toolbar,{children:[(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,z.__)("100%","ablocks"),onClick:()=>y(100),className:f(100)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,z.__)("75%","ablocks"),onClick:()=>y(75),className:f(75)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,z.__)("50%","ablocks"),onClick:()=>y(50),className:f(50)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-33",children:"33%"}), | |
| 4775 | -label:(0,z.__)("33%","ablocks"),onClick:()=>y(33),className:f(33)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,z.__)("25%","ablocks"),onClick:()=>y(25),className:f(25)})]})}),(0,L.jsxs)(K_,{blockId:o,name:kX.UU,attributes:e,className:"ablocks-form-builder__radio-field ablocks-form-builder__field",children:[(0,L.jsx)("p",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:l}),""!==b&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",children:b}),(0,L.jsx)("div",{className:"ablocks-form-builder__radio-all-options",children:r?.map((t,e)=>(0,L.jsxs)("div",{className:"ablocks-form-builder__radio-option",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__radio-content",children:[(0,L.jsx)(HX,{markerType:d,index:e,iconAttributes:u,listProperties:t}),(0,L.jsxs)("label",{htmlFor:o,children:[" ",t.value," "]})]}),(0,L.jsx)("input",{type:c,name:s,value:t.value, | |
| 4776 | -htmlFor:o})]},e))})]})]})}const _X=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Ob.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},RX=t=>{const e={};return t?.optionWidth&&(e.width=t?.optionWidth-6+"%"),{...e}};(0,M.xV)(kX.UU,kX.$t[0])&&(0,o.registerBlockType)(kX.UU,{attributes:kX.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 j(i,l);s.addClassStyles(`.ablocks-block--child-${n}`,_X(i),_X(i,"Tablet"),_X(i,"Mobile")),e&&s.addClassStyles(`.ablocks-block--child-${n}`,{border:"2px solid #007cba",padding:"0px 6px 0px"},{border:"2px solid #007cba", | |
| 4777 | -padding:"0px 6px 0px"},{border:"2px solid #007cba",padding:"0px 6px 0px"}),s.addClassStyles("{{WRAPPER}} .ablocks-form-builder__radio-option",RX(i),RX(i),RX(i));const r=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(xX,{...t}),(0,L.jsx)(vX,{...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,L.jsxs)(eR,{blockId:e,name:kX.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,L.jsx)("p",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:i}),""!==n&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",children:n}),(0,L.jsx)("div",{className:"ablocks-form-builder__radio-all-options", | |
| 4778 | -children:l?.map((t,i)=>(0,L.jsxs)("div",{className:"ablocks-form-builder__radio-option",children:[(0,L.jsxs)("div",{className:"ablocks-form-builder__radio-content",children:[(0,L.jsx)(HX,{markerType:r,index:i,iconAttributes:b,listProperties:t}),(0,L.jsxs)("label",{htmlFor:e,children:[" ",t.value," "]})]}),(0,L.jsx)("input",{type:s,name:`${a}[${"radio"===s?0:i}]`,value:t.value,id:i})]},i))})]})},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--multi-choice"})});const SX=(0,Ob.D$)({attributeName:"inputIconSize",isResponsive:!1,defaultValue:28,copyStyle:!0}),WX=(0,Ob.D$)({attributeName:"inputIconSpace",isResponsive:!1,defaultValue:38,copyStyle:!0}),UX=(0,Ob.D$)({attributeName:"passwordShowHideIconSize",isResponsive:!1,defaultValue:18,copyStyle:!0}),PX=(0,Ob.D$)({attributeName:"inputWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0});function jX(t){ | |
| 4779 | -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,z.__)("Password","ablocks"):(0,z.__)("Confirm Password","ablocks")})},[T]),(0,a.useEffect)(()=>{i({label:"password"===T?(0,z.__)("Password","ablocks"):(0,z.__)("Confirm Password","ablocks"),name:"confirm_password"!==s?"password":"confirm_password",passwordType:"confirm_password"===s?"confirm_password":"password"})},[]),(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Explore Form Builder Options","ablocks")}),(0, | |
| 4780 | -L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("Design and customize forms easily for login, registration, and more.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Nt,{}),(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/form-builder/",children:[(0,L.jsx)(D,{title:(0,z.__)("Password","ablocks"),initialOpen:!0,children:(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("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:PX}),"login"!==y&&(0,L.jsx)(vb,{allowDeselect:!1,isResponsive:!1,label:(0,z.__)("Password Type","ablocks"),options:[{label:(0,z.__)("Password","ablocks"),value:"password"},{label:(0,z.__)("Confirm Password","ablocks"),value:"confirm_password"}],attributeName:"passwordType", | |
| 4781 | -attributeValue:T,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Label Name","ablocks"),attributeName:"label",setAttributes:i,attributeValue:b,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Helper Text","ablocks"),attributeName:"helperText",setAttributes:i,attributeValue:r,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Placeholder","ablocks"),attributeName:"placeholder",setAttributes:i,attributeValue:o,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Required","ablocks"),attributeValue:n,setAttributes:i,attributeName:"isRequired",isResponsive:!1}),n&&(0,L.jsx)(ql,{label:(0,z.__)("Error Message","ablocks"),attributeName:"errorMsg",setAttributes:i,attributeValue:f,isInline:!1,disableDynamicContent:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:p,setAttributes:i,attributeName:"showIcon",isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Password Show & Hide Toggle","ablocks"),attributeValue:m, | |
| 4782 | -setAttributes:i,attributeName:"passwordShowHideToggle",isResponsive:!1})]})}),p&&(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Icon","ablocks"),children:[(0,L.jsx)(Ld,{label:(0,z.__)("Icon","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,L.jsx)(vs,{label:(0,z.__)("Primary Color","ablocks"),attributeName:"iconColor",attributeValue:c,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"inputIconSize",attributeValue:d,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:SX}),(0,L.jsx)(vt,{label:(0,z.__)("Icon Space","ablocks"),attributeName:"inputIconSpace",attributeValue:u,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:WX})]}),m&&(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Password Show & Hide Icon","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"passwordShowHideIconSize",attributeValue:h,setAttributes:i,isInline:!1, | |
| 4783 | -min:1,max:100,step:1,isResponsive:!1,hasUnit:!1,attributeDefaultValue:UX}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"passwordIconColor",attributeValue:g,setAttributes:i}),(0,L.jsx)(Ld,{label:(0,z.__)("Password Show","ablocks"),attributes:e,setAttributes:i,attributePrefix:"passwordShow",legacySupport:!0}),(0,L.jsx)(Ld,{label:(0,z.__)("Password Hide","ablocks"),attributes:e,setAttributes:i,attributePrefix:"passwordHide",legacySupport:!0})]})]})]})})}(0,y.D$)("border",!0),(0,vd.D$)("icon",{size:28,hasNoSelectorOrSource:!0}),(0,vd.D$)("passwordShow",{ | |
| 4784 | -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,vd.D$)("passwordHide",{ | |
| 4785 | -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,lY.D$)("passwordType",!1,{value:"password"}),Mr.Ay;const wX={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:{ | |
| 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 | +;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"},{ | |
| 4818 | +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",{ | |
| 4821 | +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:{ | |
| 4786 | 4823 | 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:"", |
| 4787 | 4824 | 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:"", |
| 4788 | 4825 | 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", |
| 4789 | 4826 | 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, |
| @@ -4801,241 +4838,244 @@ | ||
| 4801 | 4838 | 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:""}}, |
| 4802 | 4839 | _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, |
| 4803 | 4840 | 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:"", |
| 4804 | 4841 | 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, |
| 4805 | -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function zX(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", | |
| 4806 | -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=at(),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, | |
| 4807 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{group:"block",children:(0,L.jsxs)(A.Toolbar,{children:[(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-100",children:"100%"}),label:(0,z.__)("100%","ablocks"),onClick:()=>y(100),className:f(100)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-75",children:"75%"}),label:(0,z.__)("75%","ablocks"),onClick:()=>y(75),className:f(75)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-50",children:"50%"}),label:(0,z.__)("50%","ablocks"),onClick:()=>y(50),className:f(50)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-33",children:"33%"}),label:(0,z.__)("33%","ablocks"),onClick:()=>y(33),className:f(33)}),(0,L.jsx)(A.ToolbarButton,{icon:(0,L.jsx)("span",{className:"icon-25",children:"25%"}),label:(0,z.__)("25%","ablocks"),onClick:()=>y(25),className:f(25)})]})}),(0,L.jsxs)(K_,{blockId:o,name:wX.UU,attributes:e,className:"ablocks-form-builder__field",children:[(0, | |
| 4808 | -L.jsx)("label",{className:`ablocks-form-builder__label ${n?"ablocks-form-builder__label--required":""} `,htmlFor:o,children:r}),""!==d&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:o,children:d}),b&&(0,L.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,L.jsx)(Vd,{attributePrefix:"icon",attributes:e})}),(0,L.jsx)("input",{className:`ablocks-form-builder__input ${b&&"ablocks-form-builder__input-show-icon"}`,placeholder:l,name:s,id:o,type:"password"}),c&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--show-password",children:(0,L.jsx)(Vd,{attributePrefix:"passwordShow",attributes:e})}),(0,L.jsx)("div",{className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--hide-password",children:(0,L.jsx)(Vd,{attributePrefix:"passwordHide",attributes:e})})]}),n&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:u | |
| 4809 | -})]})]})}const CX=(t,e="")=>{const i={"box-sizing":"border-box"},o=(0,Ob.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},AX=t=>{const{inputIconSize:e}=t,i={};return e&&(i["font-size"]=`${e}px`),{fill:(0,gs.qD)(t?.iconColor),...i}},LX=t=>{const{inputIconSpace:e}=t,i={};return i["padding-left"]=`${e}px`,{...i}};(0,M.xV)(wX.UU,wX.$t[0])&&(0,o.registerBlockType)(wX.UU,{attributes:wX.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 j(i,l) | |
| 4810 | -;r.addClassStyles(`.ablocks-block--child-${n}`,CX(i),CX(i,"Tablet"),CX(i,"Mobile")),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.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-icon .ablocks-icon-wrap",AX(i),AX(i),AX(i)),r.addClassStyles("{{WRAPPER}} .ablocks-form-builder__input-show-icon",LX(i),LX(i),LX(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,gs.qD)(t?.passwordIconColor),...i}})(i));const b=r.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:b}),e&&(0,L.jsx)(jX,{...t}),(0,L.jsx)(zX,{...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 | |
| 4811 | -;return(0,L.jsxs)(eR,{blockId:e,name:wX.UU,attributes:t,className:"ablocks-form-builder__field",blockProps:{"data-required":o},children:[(0,L.jsx)("label",{className:`ablocks-form-builder__label ${o?"ablocks-form-builder__label--required":""} `,htmlFor:e,children:l}),""!==r&&(0,L.jsx)("label",{className:"ablocks-form-builder__helper-text",htmlFor:e,children:r}),n&&(0,L.jsx)("span",{className:"ablocks-form-builder__input-icon",children:(0,L.jsx)(Vd,{attributePrefix:"icon",attributes:t})}),(0,L.jsx)("input",{className:`ablocks-form-builder__input ${n&&"ablocks-form-builder__input-show-icon"}`,placeholder:i,name:a,id:e,type:"password"}),o&&(0,L.jsx)("div",{className:"ablocks-block-error-msg",children:b}),s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--show-password",children:(0,L.jsx)(Vd,{attributePrefix:"passwordShow",attributes:t})}),(0,L.jsx)("div",{ | |
| 4812 | -className:" ablocks-form-builder__input-toggle-password ablocks-form-builder__input-toggle--hide-password",children:(0,L.jsx)(Vd,{attributePrefix:"passwordHide",attributes:t})})]})]})},icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--password"})});var DX=i(99512);function NX(t){const{allowedTypes:e,attributeValue:i,attributeName:o,onSelectImageHandler:a,onRemoveImageHandler:l,deviceType:n=""}=t;let s;const r=i[o+n]||i[o],b=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.MediaUpload,{allowedTypes:e,value:null,onSelect:t=>{a(t)},render:({open:t})=>(0,L.jsx)("div",{className:"ablocks-background-audio--upload__replace",children:(0,L.jsx)(V,{onClick:t,label:(0,z.__)("Replace Audio","ablocks"),isShowPrimaryLabel:!0})})}),(0,L.jsx)(V,{onClick:()=>l(),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--delete"})})]});return s=r?(0,L.jsxs)("div",{className:"ablocks-audio-wrapper",children:[(0,L.jsxs)("audio",{controls:!0,className:"ablocks-audio",children:[(0, | |
| 4813 | -L.jsx)("source",{src:r}),(0,z.__)("Your browser does not support the audio element.","ablocks")]}),b]}):(0,L.jsx)(C.MediaUpload,{allowedTypes:e,value:o+n,onSelect:t=>{a(t)},render:({open:t})=>(0,L.jsxs)("div",{className:"ablocks-placeholder-audio-wrapper",children:[(0,L.jsx)("img",{className:"ablocks-placeholder-image",src:M.hq+"/assets/images/placeholder-image.svg",alt:""}),(0,L.jsx)("div",{className:"ablocks-background-audio--upload__replace",children:(0,L.jsx)(V,{onClick:t,label:(0,z.__)("Choose Audio…","ablocks"),isShowPrimaryLabel:!0})})]})}),s}const IX=[{label:(0,z.__)("Youtube","ablocks"),value:"youtube"},{label:(0,z.__)("Audio","ablocks"),value:"audio"},{label:(0,z.__)("Self hosted","ablocks"),value:"selfHosted"},{label:(0,z.__)("Vimeo","ablocks"),value:"vimeo"}];function VX(t){ | |
| 4814 | -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=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{title:(0,z.__)("Video","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Source","ablocks"),options:IX,isResponsive:!1,attributeValue:o,attributeName:"videoSource",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Autoplay","ablocks"),isResponsive:!1,attributeValue:k,attributeName:"autoplay",setAttributes:i}),"youtube"===o&&(0,L.jsx)(Vt,{label:(0, | |
| 4815 | -z.__)("Mute","ablocks"),isResponsive:!1,attributeValue:v,attributeName:"mute",setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Loop","ablocks"),isResponsive:!1,attributeValue:_,attributeName:"loop",setAttributes:i}),"youtube"===o&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:s,attributeName:"youtubeUrl",setAttributes:i})}),"vimeo"===o&&(0,L.jsx)(ql,{label:(0,z.__)("Link","ablocks"),placeholder:"",attributeValue:b,attributeName:"vimeoUrl",setAttributes:i}),"selfHosted"===o&&(0,L.jsx)(qs,{allowedTypes:["video"],attributeValue:e,deviceType:R,onSelectImageHandler:t=>{i({videoUrl:t?.url})},onRemoveImageHandler:()=>{i({videoUrl:void 0})},attributeName:"videoUrl"}),"audio"===o&&(0,L.jsx)(NX,{allowedTypes:["audio"],attributeValue:e,attributeName:"audioUrl",onSelectImageHandler:t=>{i({audioUrl:t.url})},onRemoveImageHandler:()=>{i({audioUrl:""})},deviceType:""}),"youtube"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("label",{ | |
| 4816 | -children:(0,z.__)("Poster Image","ablocks")}),(0,L.jsx)(As,{allowedTypes:["image"],attributeValue:e,onSelectImageHandler:t=>{i({posterImage:t.url})},onRemoveImageHandler:()=>{i({posterImage:void 0})},attributeName:"posterImage"})]}),"youtube"===o&&(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-video--times-wrapper",children:[(0,L.jsx)(ql,{label:(0,z.__)("Start","ablocks"),placeholder:"55",attributeValue:c,attributeName:"videoStartTime",setAttributes:i}),(0,L.jsx)("span",{className:"ablocks-control-field-description",children:(0,z.__)("Specify a start time (in seconds)","ablocks")}),(0,L.jsx)(ql,{label:(0,z.__)("End","ablocks"),placeholder:"65",attributeValue:d,attributeName:"videoEndTime",setAttributes:i}),(0,L.jsx)("span",{className:"ablocks-control-field-description",children:(0,z.__)("Specify a end time (in seconds)","ablocks")})]})})]}),style:(0,L.jsxs)(L.Fragment,{children:["youtube"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0, | |
| 4817 | -z.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"youtubePlayPauseIconSize",attributeValue:n,setAttributes:i,attributeDefaultValue:DX.mX}),(0,L.jsx)(vs,{label:(0,z.__)("Playbutton Color","ablocks"),attributeName:"youtubeUiColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"youtubeIconSize",attributeValue:a,setAttributes:i,attributeDefaultValue:DX.o4}),(0,L.jsx)(vs,{label:(0,z.__)("Progressbar Background","ablocks"),attributeName:"playerbgColor",attributeValue:e?.playerbgColor,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Progressbar Color","ablocks"),attributeName:"youtubeProgressColor",attributeValue:r,setAttributes:i})]}),"selfHosted"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"selfHostedIconSize",attributeValue:y, | |
| 4818 | -setAttributes:i,attributeDefaultValue:DX.oF}),(0,L.jsx)(vs,{label:(0,z.__)("Playbutton Color","ablocks"),attributeName:"selfVideoUiColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"selfHostedPlayIconSize",attributeValue:T,setAttributes:i,attributeDefaultValue:DX.IK}),(0,L.jsx)(vs,{label:(0,z.__)("Progressbar Background","ablocks"),attributeName:"selfVideobgColor",attributeValue:m,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Progressbar Color","ablocks"),attributeName:"selfVideoProgressUiColor",attributeValue:H,setAttributes:i})]}),"vimeo"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Playbutton Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"vimeoIconSize",attributeValue:f,setAttributes:i,attributeDefaultValue:DX.$w}),(0,L.jsx)(vs,{label:(0,z.__)("Playbutton Color","ablocks"),attributeName:"vimeoUiColor",attributeValue:h, | |
| 4819 | -setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Progressbar Size","ablocks"),min:0,max:100,isInline:!1,isResponsive:!1,attributeName:"vimeoPlayIconSize",attributeValue:x,setAttributes:i,attributeDefaultValue:DX.JA}),(0,L.jsx)(vs,{label:(0,z.__)("ProgressBar Background","ablocks"),attributeName:"vimeobgColor",attributeValue:g,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("ProgressBar Color","ablocks"),attributeName:"vimeoProgressUiColor",attributeValue:M,setAttributes:i})]})]})})})})})})}VX.propTypes={},VX.defaultProps={};const OX="ablocks/player",YX=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, | |
| 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 | +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.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",{ | |
| 4853 | +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, | |
| 4820 | 4857 | 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",()=>{ |
| 4821 | 4858 | !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){ |
| 4822 | -return t?t.split(":").reverse().reduce((t,e,i)=>t+parseFloat(e)*60**i,0):NaN}destroy(){this.mainPlayer?.destroy()}},XX=({audioUrl:t,autoplay:e,mute:i,loop:o})=>(0,L.jsx)("div",{children:(0,L.jsx)("audio",{id:"audio",controls:!0,autoPlay:e,muted:i,loop:o,children:(0,L.jsx)("source",{src:t,type:"audio/mp3"})})}),BX={videoUrl:I().string};function EX(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,L.jsx)("div",{className:"ablocks-block-selfhosted-container",children:(0,L.jsxs)("video",{id:"selfHostedVideo",playsInline:!0,controls:!0,autoPlay:a,muted:l,loop:n,children:[(0,L.jsx)("source",{src:e+s,type:"video/mp4"}),"Your browser does not support the video tag."]})})}EX.propTypes=BX,EX.defaultProps={videoUrl:""};const FX=({youtubeUrl:t,videoStartTime:e,videoEndTime:i,autoplay:o,mute:a,loop:l})=>{const n=function(t=""){ | |
| 4823 | -const e=t?.match(/(?:youtu\.be\/|youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return e?e[1]:null}(t);return(0,L.jsx)("div",{className:"ablocks-block-youtube-container",children:(0,L.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})})},qX=({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,L.jsx)("div",{className:"ablocks-block-vimeo-container",children:(0,L.jsx)("div",{id:"vimeo","data-plyr-provider":"vimeo","data-plyr-embed-id":a,"data-autoplay":e,"data-mute":i,"data-loop":o})})};function $X(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,L.jsx)(FX,{youtubeUrl:e?.youtubeUrl, | |
| 4824 | -videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m},`${e.youtubeUrl}-${c}-${d}-${u}-${p}-${m}`);break;case"audio":h=(0,L.jsx)(XX,{audioUrl:s,autoplay:u,mute:p,loop:m},`${s}-${u}-${p}-${m}`);break;case"selfHosted":h=(0,L.jsx)(EX,{videoUrl:n,videoStartTime:c,videoEndTime:d,autoplay:u,mute:p,loop:m},`${n}-${c}-${d}-${u}-${p}-${m}`);break;case"vimeo":h=(0,L.jsx)(qX,{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 YX(e)),()=>{t?.destroy()}},[o,n,b,r,c,d,u,p,m]),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:OX,attributes:{...e,className:"ablocks-prevent-select"},children:h})})}$X.propTypes={},$X.defaultProps={};const GX=(t,e)=>{const i={};return t?.youtubeUiColor&&(i["--plyr-color-main"]=(0,gs.qD)(t?.youtubeUiColor)),t?.youtubePlayPauseIconSize&&(i["--plyr-control-icon-size"]=`${t?.youtubePlayPauseIconSize}px`),i | |
| 4825 | -},ZX=t=>{const e={};return t?.youtubeProgressColor&&(e["--plyr-color-main"]=(0,gs.qD)(t?.youtubeProgressColor)),t?.youtubeIconSize&&(e["--plyr-control-icon-size"]=`${t?.youtubeIconSize}px`),t?.playerbgColor&&(e["--plyr-video-controls-background"]=(0,gs.qD)(t?.playerbgColor),e.padding="0"),e},KX=(t,e)=>{const i={};return t?.selfVideoProgressUiColor&&(i["--plyr-color-main"]=(0,gs.qD)(t?.selfVideoProgressUiColor)),t?.selfHostedPlayIconSize&&(i["--plyr-control-icon-size"]=`${t?.selfHostedPlayIconSize}px`),t?.selfVideobgColor&&(i["--plyr-video-controls-background"]=(0,gs.qD)(t?.selfVideobgColor),i.padding="0"),i},JX=(t,e)=>{const i={};return t?.selfVideoUiColor&&(i["--plyr-color-main"]=t?.selfVideoUiColor),t?.selfHostedIconSize&&(i["--plyr-control-icon-size"]=`${t?.selfHostedIconSize}px`),i},QX=(t,e)=>{const i={};return t?.vimeoProgressUiColor&&(i["--plyr-color-main"]=(0,gs.qD)(t?.vimeoProgressUiColor)),t?.vimeoPlayIconSize&&(i["--plyr-control-icon-size"]=`${t?.vimeoPlayIconSize}px`), | |
| 4826 | -t?.vimeobgColor&&(i["--plyr-video-controls-background"]=(0,gs.qD)(t?.vimeobgColor),i.padding="0"),i},tB=(t,e)=>{const i={};return t?.vimeoUiColor&&(i["--plyr-color-main"]=(0,gs.qD)(t?.vimeoUiColor)),t?.vimeoIconSize&&(i["--plyr-control-icon-size"]=`${t?.vimeoIconSize}px`),i},eB=(t,e)=>{const i={};return t?.posterImage&&(i["background-image"]=`url(${t.posterImage}) !important`),i["background-size"]="cover",i};function iB(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,L.jsx)(FX,{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,L.jsx)(XX,{audioUrl:a,autoplay:b,mute:c,loop:d},`${a}-${b}-${c}-${d}`);break;case"selfHosted":u=(0,L.jsx)(EX,{videoUrl:e?.videoUrl,videoStartTime:s,videoEndTime:r,autoplay:b,mute:c,loop:d},`${e?.videoUrl}-${s}-${r}-${b}-${c}-${d}`) | |
| 4827 | -;break;case"vimeo":u=(0,L.jsx)(qX,{vimeoUrl:n,autoplay:b,mute:c,loop:d},`${n}-${b}-${c}-${d}`);break;default:u=null}return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:OX,attributes:e,children:u})})}iB.propTypes={},iB.defaultProps={},(0,M.xV)(OX)&&(0,o.registerBlockType)(OX,{attributes:DX.Ay,icon:(0,L.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;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-youtube-container > .plyr--video > .plyr__controls",ZX(i),ZX(i),ZX(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-youtube-container > .plyr--youtube > .plyr__control--overlaid",GX(i),GX(i),GX(i)), | |
| 4828 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--video > .plyr__controls",KX(i),KX(i),KX(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-selfhosted-container > .plyr--html5 > .plyr__control--overlaid",JX(i),JX(i),JX(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--video > .plyr__controls",QX(i),QX(i),QX(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-vimeo-container > .plyr--vimeo > .plyr__control--overlaid",tB(i),tB(i),tB(i)),t.addClassStyles("{{WRAPPER}} .plyr__poster",eB(i),eB(i),eB(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(VX,{...t}),(0,L.jsx)($X,{...t})]})},save:iB});var oB=i(96931);function aB(t){const{attributes:e,setAttributes:i}=t,{floatAlignment:o,floatMargin:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(D,{title:(0,z.__)("Academy Container Setting","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{ | |
| 4829 | -label:(0,z.__)("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:oB.O,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"floatAlignment",attributeValue:o,setAttributes:i,options:[{label:"left",value:"left",icon:"arrow-left"},{label:"none",value:"none",icon:"wrap"},{label:"right",value:"right",icon:"arrow-right"}],isInline:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"floatMargin",attributeValue:a,setAttributes:i})]})})})}aB.propTypes={};const lB={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:{ | |
| 4830 | -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:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"", | |
| 4831 | -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, | |
| 4832 | -commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px", | |
| 4833 | -hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 4834 | -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:"", | |
| 4835 | -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:"", | |
| 4836 | -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:"", | |
| 4837 | -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", | |
| 4838 | -ease:"none",x:0,y:0,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 nB(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]);const r=o?void 0:()=>(0,L.jsx)(C.InnerBlocks.ButtonBlockAppender,{});return(0,L.jsx)(BW,{blockId:l,name:lB.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,L.jsx)("div",{className:"academy-inner-container",children:(0,L.jsx)(C.InnerBlocks,{ | |
| 4839 | -allowedBlocks:["ablocks/academy-certificate-text","core/image","ablocks/academy-certificate-id","core/spacer","ablocks/academy-container"],templateLock:!1,renderAppender:r})})})}nB.propTypes={};const sB=[{name:"academy-default",title:(0,z.__)("1 column","ablocks"),description:(0,z.__)("Preset academy container with flex layout and default attributes.","ablocks"),icon:(0,L.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,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",{ | |
| 4840 | -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,z.__)("2 column","ablocks"),description:(0,z.__)("Preset academy container with flex layout and default attributes.","ablocks"),icon:(0,L.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, | |
| 4841 | -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:""}},[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:99,valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"", | |
| 4842 | -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:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},[["ablocks/academy-container",{variationSelected:!0,containerWidth:{value:99,valueUnit:"%",valueTablet:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{ | |
| 4843 | -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,z.__)("3 Columns","ablocks"),description:(0,z.__)("Preset academy container with three evenly sized inner containers.","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-3"}),attributes:{variationSelected:!0,blockVersion:2,containerWidth:{value:232,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"left",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"0",right:"0",bottom:"0",left:"50",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 4844 | -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:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px", | |
| 4845 | -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:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"", | |
| 4846 | -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:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0, | |
| 4847 | -common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]]],scope:["block"]},{name:"academy-three-columns",title:(0,z.__)("4 Columns","ablocks"),description:(0,z.__)("Preset academy container with three evenly sized inner containers.","ablocks"),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--column-4"}),attributes:{variationSelected:!0,blockVersion:2,containerWidth:{value:174,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"left",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:"", | |
| 4848 | -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:"",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:"", | |
| 4849 | -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:"",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:"", | |
| 4850 | -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:"",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:"", | |
| 4851 | -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:"",valueMobile:"",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"",valueTablet:"",valueMobile:""},floatMargin:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 4852 | -bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}}]]]],scope:["block"]}],rB=({clientId:t,setAttributes:e,defaultVariation:i=sB[0]})=>{const{replaceInnerBlocks:a}=(0,r.useDispatch)("core/block-editor");return(0,L.jsx)("div",{className:"ablocks-academy-variation-picker",children:(0,L.jsx)(C.__experimentalBlockVariationPicker,{label:(0,z.__)("Choose float layout","ablocks"),instructions:"",variations:sB,onSelect:(l=i)=>{l.attributes&&e({...l.attributes,variationSelected:!0}),l.innerBlocks&&a(t,(0,o.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))}})})},bB=(t,e="")=>{const{containerWidth:i}=t,o={...(0,Ob.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,Gt.qD)(t?.floatAlignment,"float",e),...(0,c.qD)(t?.floatMargin,"margin",e)}};function cB(t){ | |
| 4853 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(dc,{blockId:i,name:lB.UU,attributes:e,children:(0,L.jsx)("div",{className:"academy-inner-container",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}cB.propTypes={},((0,M.xV)(lB.UU,lB.$t[0],"academy_lms")||(0,M.xV)(lB.UU,lB.$t[0],"quizpress"))&&(0,o.registerBlockType)(lB.UU,{title:"Certificate Container",attributes:lB.uK,icon:(0,L.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]);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 j(i,l);return t.addClassStyles("{{WRAPPER}} .academy-inner-container > div > div > .block-editor-block-list__block",bB(i),bB(i,"Tablet"),bB(i,"Mobile")),(0, | |
| 4854 | -b.applyFilters)("ablocks.academy-container.inlineCSS",t.generateCSS(),i)},[i,l,c,d]);if(!c&&!d)return(0,L.jsx)(rB,{...t});const p=s()("ablocks-block--academy-container");return(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)(aB,{...t}),u&&(0,L.jsx)("style",{children:u}),(0,L.jsx)(nB,{...t,className:p})]})},save:cB});const dB=({type:t,attributes:e,setAttributes:i,academyTerms:o})=>{let a=(0,z.__)("Course Ids","ablocks"),l="course_ids",n=e?.course_ids||"",s=(0,z.__)("Course Categories","ablocks"),r="course_categories",b=e?.course_categories||"",c=(0,z.__)("Course Tags","ablocks"),d="course_tags",u=e?.course_tags||"";"exclude"===t&&(a=(0,z.__)("Exclude Course Ids","ablocks"),l="course_exclude_ids",n=e?.course_exclude_ids||"",s=(0,z.__)("Exclude Course Categories","ablocks"),r="course_exclude_categories",b=e?.course_exclude_categories||"",c=(0,z.__)("Exclude Course Tags","ablocks"),d="course_exclude_tags",u=e?.course_exclude_tags||"");const p=o.categories||[],m=o.tags||[];return(0, | |
| 4855 | -L.jsxs)("div",{className:"ablocks-course-settings-include-exclude-options",children:[(0,L.jsx)(ae,{label:a,attributeName:l,attributeValue:n,onChangeHandler:t=>i({[l]:t||void 0}),placeholder:(0,z.__)("Enter Course id's separated by comma","ablocks")}),(0,L.jsx)("i",{children:(0,z.__)("Enter Course id's separated by comma","ablocks")}),(0,L.jsx)(Ut,{isMulti:!0,options:p,label:s,attributeValue:b||[],attributeName:r,setAttributes:i}),(0,L.jsx)(Ut,{isMulti:!0,options:m,label:c,attributeValue:u||[],attributeName:d,setAttributes:i})]})},uB=[{label:(0,z.__)("2","ablocks"),value:2},{label:(0,z.__)("3","ablocks"),value:3},{label:(0,z.__)("4","ablocks"),value:4},{label:(0,z.__)("6","ablocks"),value:6},{label:(0,z.__)("12","ablocks"),value:12}],pB=[{label:(0,z.__)("Beginner","ablocks"),value:"beginner"},{label:(0,z.__)("Intermediate","ablocks"),value:"intermediate"},{label:(0,z.__)("Expert","ablocks"),value:"experts"}],mB=[{label:(0,z.__)("Free","ablocks"),value:"free"},{label:(0, | |
| 4856 | -z.__)("Paid","ablocks"),value:"paid"}],hB=[{label:(0,z.__)("Date","ablocks"),value:"date"},{label:(0,z.__)("Product Title","ablocks"),value:"title"},{label:(0,z.__)("Modified Date","ablocks"),value:"modified"}],gB=[{label:(0,z.__)("Descending","ablocks"),value:"DESC"},{label:(0,z.__)("Ascending","ablocks"),value:"ASC"}];function fB(t){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:U,card_padding:P,card_hover_padding:j,wish_icon_background:w,wish_icon_color:A,wish_icon_hover_color:N}=e,I={attributes:e,setAttributes:i,academyTerms:o},V=[{title:(0, | |
| 4857 | -z.__)("Include","ablocks"),name:"include",render:(0,L.jsx)(dB,{type:"include",...I})},{title:(0,z.__)("Exclude","ablocks"),name:"exclude",render:(0,L.jsx)(dB,{type:"exclude",...I})}];return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Layout Options","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{options:uB,label:(0,z.__)("Course Columns","ablocks"),attributeValue:a,attributeName:"course_columns",setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Pagination","ablocks"),attributeValue:n,setAttributes:i,attributeName:"show_pagination"})]}),(0,L.jsxs)(D,{title:(0,z.__)("Course Query","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Ut,{isMulti:!0, | |
| 4858 | -options:pB,label:(0,z.__)("Difficulty Level","ablocks"),attributeValue:s,attributeName:"difficulty_levels",setAttributes:i}),(0,L.jsx)(Ut,{isMulti:!0,options:mB,label:(0,z.__)("Price Type","ablocks"),attributeValue:r,attributeName:"price_types",setAttributes:i}),(0,L.jsx)(Ut,{options:hB,label:(0,z.__)("Order By","ablocks"),attributeValue:b,attributeName:"order_by",setAttributes:i}),(0,L.jsx)(Ut,{options:gB,label:(0,z.__)("Order","ablocks"),attributeValue:c,attributeName:"course_order",setAttributes:i}),(0,L.jsx)($l,{tabs:V})]}),(0,L.jsxs)(D,{title:(0,z.__)("Course Card","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Category","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"cat_typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"category_color",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 4859 | -z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"category_hover_color",attributeValue:p,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Title","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Author","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"author_typography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"author_color",attributeValue:y,setAttributes:i}),(0, | |
| 4860 | -L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"author_hover_color",attributeValue:T,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"rating_typography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"rating_color",attributeValue:M,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"rating_hover_color",attributeValue:x,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Price","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"price_typography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"price_color",attributeValue:v, | |
| 4861 | -setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"price_hover_color",attributeValue:_,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Margin Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!1,attributeName:"card_margin",attributeValue:W,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"card_padding",attributeValue:P,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!1,attributeName:"card_hover_margin",attributeValue:U,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"card_hover_padding",attributeValue:j,setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Course Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ir,{ | |
| 4862 | -isResponsive:!0,attributeName:"card_background",attributeValue:R,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"card_border",attributeValue:S,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Wishlist Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"wish_icon_color",attributeValue:A,setAttributes:i}),hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),isGradient:!1,attributeName:"wish_icon_hover_color",attributeValue:N,setAttributes:i})}),(0,L.jsx)(ot,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ir,{isResponsive:!0,attributeName:"wish_icon_background",attributeValue:w,setAttributes:i})]})]})})})}fB.propTypes={};const yB={UU:"ablocks/academy-courses",uK:{block_id:{type:"string", | |
| 4863 | -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"},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:{ | |
| 4864 | -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:"",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:"", | |
| 4865 | -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"}},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", | |
| 4866 | -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",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:{ | |
| 4867 | -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"}},card_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:"", | |
| 4868 | -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:"", | |
| 4869 | -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:""}},card_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:"", | |
| 4870 | -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:"", | |
| 4871 | -leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},card_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:""}},card_hover_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:""}},card_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0, | |
| 4872 | -common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},card_hover_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:""}},wish_icon_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:"", | |
| 4873 | -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:"", | |
| 4874 | -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:""}},_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:"", | |
| 4875 | -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:"", | |
| 4876 | -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:"", | |
| 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:"", | |
| 4868 | +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 | +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:"", | |
| 4877 | 4870 | 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:"", |
| 4878 | 4871 | 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:"", |
| 4879 | 4872 | 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:"", |
| 4880 | 4873 | 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:"", |
| 4881 | 4874 | 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:"", |
| 4882 | -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 TB(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:yB.UU,attributes:e,typography:[{ | |
| 4883 | -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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-courses",httpMethod:"POST",attributes:e})})})})}TB.propTypes={};const HB=(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)}),MB=(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)}),xB=(t,e="")=>({color:(0,gs.qD)(t?.wish_icon_color),...(0,d.qD)(t?.wish_icon_background,"background",e) | |
| 4884 | -}),kB=(t,e="")=>({color:(0,gs.qD)(t?.wish_icon_hover_color),...(0,d.a9)(t?.wish_icon_background,"background",e)}),vB=(t,e="")=>{const i=(0,M.Zy)(t.cat_typography,{weight:"400"}),o=t.cat_typographyGlobal?t.cat_typographyGlobal:"";return{color:(0,gs.qD)(t?.category_color),...(0,P.qD)(i,e,o)}},_B=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,gs.qD)(t?.title_color),...(0,P.qD)(i,e,o)}},RB=(t,e="")=>{const i=(0,M.Zy)(t.author_typography,{weight:"400"}),o=t.author_typographyGlobal?t.author_typographyGlobal:"";return{color:(0,gs.qD)(t?.author_color),...(0,P.qD)(i,e,o)}},SB=(t,e="")=>{const i=(0,M.Zy)(t.rating_typography,{weight:"400"}),o=t.rating_typographyGlobal?t.rating_typographyGlobal:"";return{color:(0,gs.qD)(t?.rating_color),...(0,P.qD)(i,e,o)}},WB=(t,e="")=>{const i=(0,M.Zy)(t.price_typography,{weight:"400"}),o=t.price_typographyGlobal?t.price_typographyGlobal:"";return{color:(0, | |
| 4885 | -gs.qD)(t?.price_color),...(0,P.qD)(i,e,o)}};function UB(t){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:U,input_field_border:P,input_field_padding:j,form_padding:w,form_border:A,login_btn_hover_color:N,login_btn_bg_hover_color:I}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Form Settings","ablocks"),initialOpen:!0, | |
| 4886 | -children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Form Title","ablocks"),attributeValue:o,setAttributes:i,attributeName:"form_title"}),(0,L.jsx)(ql,{label:(0,z.__)("Username Label","ablocks"),attributeValue:r,setAttributes:i,attributeName:"username_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Username Placeholder","ablocks"),attributeValue:b,setAttributes:i,attributeName:"username_placeholder"}),(0,L.jsx)(ql,{label:(0,z.__)("Password Label","ablocks"),attributeValue:c,setAttributes:i,attributeName:"password_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Password Placeholder","ablocks"),attributeValue:d,setAttributes:i,attributeName:"password_placeholder"}),(0,L.jsx)(ql,{label:(0,z.__)("Remember Label","ablocks"),attributeValue:u,setAttributes:i,attributeName:"remember_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Login Button Label","ablocks"),attributeValue:p,setAttributes:i,attributeName:"login_button_label"}),(0,L.jsx)(ql,{label:(0, | |
| 4887 | -z.__)("Reset Password Label","ablocks"),attributeValue:m,setAttributes:i,attributeName:"reset_password_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Student Register Url","ablocks"),attributeValue:h,setAttributes:i,attributeName:"student_register_url"}),(0,L.jsx)(ql,{label:(0,z.__)("Login Redirect Url","ablocks"),attributeValue:g,setAttributes:i,attributeName:"login_redirect_url"}),(0,L.jsx)(ql,{label:(0,z.__)("Logout Redirect Url","ablocks"),attributeValue:f,setAttributes:i,attributeName:"logout_redirect_url"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Logged in Message","ablocks"),attributeValue:y,setAttributes:i,attributeName:"show_logged_in_message"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ir,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"form_bg_color",attributeValue:_,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"), | |
| 4888 | -isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"form_padding",attributeValue:w,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_border",attributeValue:A,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Form Title Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color", | |
| 4889 | -attributeValue:s,setAttributes:i})})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Input Field Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Input Label","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"input_field_label_typography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_label_color",attributeValue:x,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"input_field_label_hover_color",attributeValue:v,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Input Field","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 4890 | -isGradient:!1,attributeName:"inputFieldColor",attributeValue:U,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:W,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"input_field_padding",attributeValue:j,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"input_field_border",attributeValue:P,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"login_btn_typography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0, | |
| 4891 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_color",attributeValue:T,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_color",attributeValue:H,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_hover_color",attributeValue:N,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_hover_color",attributeValue:I,setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Form Footer Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"form_footer_title_typography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"form_footer_title_color", | |
| 4892 | -attributeValue:S,setAttributes:i})]})]})})})}(0,M.xV)(yB.UU,"","academy_lms")&&(0,o.registerBlockType)(yB.UU,{title:"Courses",attributes:yB.uK,icon:(0,L.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 | |
| 4893 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__meta--categroy a",vB(i),vB(i,"Tablet"),vB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__meta--categroy:hover a",(t=>({color:(0,gs.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",_B(i),_B(i,"Tablet"),_B(i,"Mobile")),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=>({color:(0,gs.qD)(t?.title_hover_color)}))(i)), | |
| 4894 | -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",RB(i),RB(i,"Tablet"),RB(i,"Mobile")),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,gs.qD)(t?.author_hover_color)}))(i)), | |
| 4895 | -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",SB(i,"Tablet"),SB(i,"Tablet"),SB(i,"Mobile")),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,gs.qD)(t?.rating_hover_color)}))(i)), | |
| 4896 | -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",HB(i),HB(i,"Tablet"),HB(i,"Tablet")),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",MB(i),MB(i,"Tablet"),MB(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__price",WB(i),WB(i,"Tablet"),WB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-courses--grid .academy-course .academy-course__price:hover",(t=>({color:(0,gs.qD)(t?.price_hover_color)}))(i)), | |
| 4897 | -t.addClassStyles("{{WRAPPER}} .academy-courses .academy-course__header .academy-course-header-meta .academy-course__wishlist",xB(i),xB(i,"Tablet"),xB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-courses .academy-course__header .academy-course-header-meta .academy-course__wishlist:hover",kB(i),kB(i,"Tablet"),kB(i,"Mobile")),(0,b.applyFilters)("ablocks.academy-courses.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:H}),e&&(0,L.jsx)(fB,{academyTerms:y,...t}),(0,L.jsx)(TB,{...t})]})},save:()=>null}),UB.propTypes={};const PB={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",default:"Username or Email Address"},username_placeholder:{type:"string",default:"Username or Email Address"},password_label:{type:"string",default:"Password"},password_placeholder:{ | |
| 4898 | -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"},form_footer_title_color:{type:"string",default:"#000"},input_field_bg_color:{type:"string",default:"#fff"},inputFieldColor:{type:"string",default:"#333"},login_btn_typographyGlobal:{ | |
| 4899 | -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:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px", | |
| 4900 | -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:"", | |
| 4901 | -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:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"", | |
| 4902 | -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:"",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"}}, | |
| 4903 | -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:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},input_field_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"", | |
| 4904 | -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:"", | |
| 4905 | -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_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, | |
| 4906 | -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:"", | |
| 4907 | -topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},input_field_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:""}},form_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:"", | |
| 4908 | -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:"",rightWidth:"", | |
| 4909 | -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:"", | |
| 4910 | -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:"", | |
| 4911 | -imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"", | |
| 4912 | -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:"", | |
| 4913 | -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:"", | |
| 4914 | -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", | |
| 4915 | -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}, | |
| 4916 | -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function jB(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:PB.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-login-form",httpMethod:"POST",attributes:e})})})})}jB.propTypes={};const wB=(t,e="")=>({...(0,d.qD)(t?.form_bg_color,"background",e),...(0,y.qD)(t?.form_border,e),...(0, | |
| 4917 | -c.qD)(t?.form_padding,"padding",e)}),zB=(t,e="")=>({color:(0,gs.qD)(t?.inputFieldColor),background:(0,gs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.input_field_border,e),...(0,c.qD)(t?.input_field_padding,"padding",e)}),CB=t=>({color:(0,gs.qD)(t?.inputFieldColor)}),AB=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e),...(0,y.a9)(t?.form_border,e)}),LB=t=>({color:(0,gs.qD)(t?.login_btn_hover_color),background:(0,gs.qD)(t?.login_btn_bg_hover_color)}),DB=(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,gs.qD)(t?.login_btn_color),background:(0,gs.qD)(t?.login_btn_bg_color),...(0,P.qD)(i,e,o)}},NB=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,gs.qD)(t?.title_color),...(0,P.qD)(i,e,o)}},IB=(t,e="")=>{const i=(0,M.Zy)(t.form_footer_title_typography,{weight:"400" | |
| 4918 | -}),o=t.form_footer_title_typographyGlobal?t.form_footer_title_typographyGlobal:"";return{color:(0,gs.qD)(t?.form_footer_title_color),...(0,P.qD)(i,e,o)}},VB=(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,gs.qD)(t?.input_field_label_color),...(0,P.qD)(i,e,o)}},OB=t=>({color:(0,gs.qD)(t?.input_field_label_hover_color)});function YB(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e, | |
| 4919 | -setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Form Input Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(ot,{label:(0,z.__)("Input Field Label","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"input_label_typhography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"input_label_color",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"input_label_hover_color",attributeValue:y,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Input Field","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1, | |
| 4920 | -attributeName:"input_field_color",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:c,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Placeholder Color","ablocks"),isGradient:!1,attributeName:"input_field_placeholder_color",attributeValue:m,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_field_border",attributeValue:d,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Form Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ir,{label:(0,z.__)("Background Color","ablocks"),isResponsive:!0,attributeName:"form_background",attributeValue:h,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_padding",attributeValue:g,setAttributes:i | |
| 4921 | -}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_border",attributeValue:f,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Form Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"form_button_typhography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_color",attributeValue:r,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!0,attributeName:"form_button_background",attributeValue:s,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_hover_color", | |
| 4922 | -attributeValue:H,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!0,attributeName:"form_button_hover_background",attributeValue:T,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_button_padding",attributeValue:u,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_button_border",attributeValue:p,setAttributes:i})]})]})})})}(0,M.xV)(PB.UU,"","academy_lms")&&(0,o.registerBlockType)(PB.UU,{title:"Login Form",attributes:PB.uK,icon:(0,L.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,input_field_label_color:s}=i;(0,a.useEffect)(()=>{n&&n===l||o({block_id:l})},[n,l]) | |
| 4923 | -;const r=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button",DB(i),DB(i,"Tablet"),DB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button:hover",LB(i),LB(i),LB(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",IB(i),IB(i,"Tablet"),IB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading ",NB(i),NB(i,"Tablet"),NB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading:hover",(t=>({color:(0,gs.qD)(t?.title_hover_color)}))(i)), | |
| 4924 | -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",VB(i),VB(i,"Tablet"),VB(i,"Mobile")),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",OB(i),OB(i),OB(i)),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper",wB(i),wB(i,"Tablet"),wB(i,"Tablet")), | |
| 4925 | -t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input",zB(i),zB(i,"Tablet"),zB(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input::placeholder",CB(i),CB(i),CB(i)),t.addClassStyles("{{WRAPPER}} .academy-login-form-wrapper:hover",AB(i),AB(i,"Tablet"),AB(i,"Tablet")),(0,b.applyFilters)("ablocks.academy-login-form.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(UB,{...t}),(0,L.jsx)(jB,{...t})]})},save:()=>null}),YB.propTypes={};const XB={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"}, | |
| 4926 | -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:"",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:{ | |
| 4927 | -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",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:"", | |
| 4928 | -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, | |
| 4929 | -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:{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, | |
| 4930 | -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:"", | |
| 4931 | -bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},form_button_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:""}},form_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:""}},form_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"", | |
| 4932 | -imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"", | |
| 4933 | -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:""}},form_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 4934 | -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:"", | |
| 4935 | -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:""}},card_hover_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:""}},card_hover_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"", | |
| 4936 | -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",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 4937 | -customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 4938 | -isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", | |
| 4939 | -hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 4940 | -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:"", | |
| 4941 | -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:"", | |
| 4942 | -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", | |
| 4943 | -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, | |
| 4944 | -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 BB(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:XB.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-student-registration-form",httpMethod:"POST",attributes:e | |
| 4945 | -})})})})}BB.propTypes={};const EB=(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,gs.qD)(t?.form_button_color),background:(0,gs.qD)(t?.form_button_background),...(0,P.qD)(i,e,o),...(0,y.qD)(t?.form_button_border,e)}},FB=(t,e="")=>({color:(0,gs.qD)(t?.form_button_hover_color),background:(0,gs.qD)(t?.form_button_hover_background),...(0,y.a9)(t?.form_button_border,e)}),qB=t=>({color:(0,gs.qD)(t?.input_field_placeholder_color)}),$B=(t,e="")=>({color:(0,gs.qD)(t?.input_field_color),background:(0,gs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.form_field_border,e)}),GB=(t,e="")=>({...(0,y.a9)(t?.form_field_border,e)}),ZB=(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)}),KB=(t,e="")=>({...(0,d.a9)(t?.form_background,"background",e),...(0,y.a9)(t?.form_border,e)}),JB=(t,e="")=>{const i=(0, | |
| 4946 | -M.Zy)(t.input_label_typhography,{weight:"400"}),o=t.input_label_typhographyGlobal?t.input_label_typhographyGlobal:"";return{color:(0,gs.qD)(t?.input_label_color),...(0,P.qD)(i,e,o)}},QB=t=>({color:(0,gs.qD)(t?.input_label_hover_color)});function tE(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{title:(0,z.__)("Search Options","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(ql,{label:(0,z.__)("Placeholder","ablocks"),attributeValue:o,attributeName:"placeholder",setAttributes:i})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"search_typography",attributeValue:s,setAttributes:i,isResponsive:!0, | |
| 4947 | -attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!0,attributeName:"search_box_color",attributeValue:n,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Placeholder Color","ablocks"),isResponsive:!0,attributeName:"search_placeholder_color",attributeValue:r,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),isResponsive:!0,attributeName:"search_icon_color",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!0,attributeName:"search_background_color",attributeValue:a,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border option","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"search_border",attributeValue:c,setAttributes:i})]})})})})})})}(0,M.xV)(XB.UU,"","academy_lms")&&(0,o.registerBlockType)(XB.UU,{title:"Student Registration Form",attributes:XB.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}), | |
| 4948 | -edit:function(t){const{isSelected:e,attributes: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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group label",JB(i),JB(i,"Tablet"),JB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group label:hover",QB(i),QB(i),QB(i)),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input",$B(i),$B(i,"Tablet"),$B(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input:hover",GB(i),GB(i,"Tablet"),GB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group input::placeholder",qB(i),qB(i),qB(i)), | |
| 4949 | -t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button",EB(i),EB(i,"Tablet"),EB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form--student .academy-form-group button:hover",FB(i),FB(i,"Tablet"),FB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form",ZB(i),ZB(i,"Tablet"),ZB(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form:hover",KB(i),KB(i,"Tablet"),KB(i,"Mobile")),(0,b.applyFilters)("ablocks.academy-student-registration-form.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(YB,{...t}),(0,L.jsx)(BB,{...t})]})},save:()=>null}),tE.propTypes={};const eE={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"},search_placeholder_color:{type:"string",default:"#444"},search_icon_color:{ | |
| 4950 | -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,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"", | |
| 4951 | -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:"", | |
| 4952 | -leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"", | |
| 4953 | -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:"", | |
| 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, | |
| 4877 | +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 | +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 | +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 | +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, | |
| 4881 | +valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"left",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",{ | |
| 4882 | +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:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""} | |
| 4883 | +},[["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:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"", | |
| 4884 | +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"]},{name:"academy-three-columns",title:(0,L.__)("4 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-4"}),attributes:{variationSelected:!0,blockVersion:2,containerWidth:{value:174,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""},floatAlignment:{value:"left", | |
| 4885 | +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 | +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 | +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 | +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, | |
| 4897 | +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 | +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 | +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 | +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 | +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 | +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 | +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", | |
| 4905 | +lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},card_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:"", | |
| 4906 | +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:"", | |
| 4907 | +externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},card_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:"", | |
| 4908 | +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:""}},card_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0, | |
| 4909 | +common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},card_hover_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:""}},card_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:""}},card_hover_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"", | |
| 4910 | +left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},wish_icon_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:"", | |
| 4911 | +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, | |
| 4912 | +videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_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", | |
| 4913 | +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:"", | |
| 4914 | +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:"", | |
| 4915 | +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:"", | |
| 4916 | +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 | +_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 | +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 | +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){ | |
| 4923 | +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 | +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 | +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 | +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 | +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 | +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 | +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", | |
| 4936 | +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 | +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 | +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 | +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:"", | |
| 4940 | +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:"",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:"", | |
| 4941 | +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:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},input_field_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 4942 | +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:"", | |
| 4943 | +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_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:"", | |
| 4944 | +topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 4945 | +isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},input_field_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:""}},form_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:"", | |
| 4946 | +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",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"", | |
| 4947 | +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:"", | |
| 4948 | +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"} | |
| 4949 | +},_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:"", | |
| 4950 | +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 | +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 | +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 | +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,{ | |
| 4957 | +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 | +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 | +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:"", | |
| 4965 | +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 | +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 | +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 | +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, | |
| 4969 | +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_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"", | |
| 4970 | +rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},form_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:""}},form_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:"", | |
| 4971 | +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:"", | |
| 4972 | +imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},form_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:"", | |
| 4954 | 4973 | 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:"", |
| 4955 | -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:"", | |
| 4956 | -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:"", | |
| 4957 | -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, | |
| 4958 | -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:"", | |
| 4959 | -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:"", | |
| 4960 | -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 iE(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i, | |
| 4961 | -name:eE.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-course-search",httpMethod:"POST",attributes:e})})})})}iE.propTypes={};const oE=(t,e="")=>{const i=(0,M.Zy)(t.search_typography,{weight:"400"}),o=t.search_typographyGlobal?t.search_typographyGlobal:"";return{color:(0,gs.qD)(t?.search_box_color),background:(0,gs.qD)(t?.search_background_color),...(0,P.qD)(i,e,o),...(0,y.qD)(t?.search_border,e)}},aE=(t,e="")=>({...(0,y.a9)(t?.search_border,e)}),lE=t=>({color:(0,gs.qD)(t?.search_placeholder_color)}),nE=t=>({color:(0,gs.qD)(t?.search_icon_color)});function sE(t){ | |
| 4962 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Form Input Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(ot,{label:(0,z.__)("Input Field Label","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"input_label_typhography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"input_label_color",attributeValue:a,setAttributes:i}),(0, | |
| 4963 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Input Field","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_color",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:c,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Placeholder Color","ablocks"),isGradient:!1,attributeName:"input_field_placeholder_color",attributeValue:m,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_field_border",attributeValue:d,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Form Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ir,{label:(0,z.__)("Background Color","ablocks"),isResponsive:!0,attributeName:"form_background",attributeValue:h,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"), | |
| 4964 | -isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_padding",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_border",attributeValue:f,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Form Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"form_button_typhography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_color",attributeValue:r,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"form_button_background",attributeValue:s,setAttributes:i})] | |
| 4965 | -}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"form_button_hover_color",attributeValue:y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"form_button_hover_background",attributeValue:T,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_button_padding",attributeValue:u,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_button_border",attributeValue:p,setAttributes:i})]})]})})})}(0,M.xV)(eE.UU,"","academy_lms")&&(0,o.registerBlockType)(eE.UU,{title:"Course Searchbar",attributes:eE.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){ | |
| 4966 | -const{isSelected:e,attributes: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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input",oE(i),oE(i,"Tablet"),oE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input:hover",aE(i),aE(i,"Tablet"),aE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-input::placeholder",lE(i),lE(i),lE(i)),t.addClassStyles("{{WRAPPER}} .academy-search-form-wrap .academy-search-form__field-icon span",nE(i),nE(i),nE(i)),(0,b.applyFilters)("ablocks.academy-course-search.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{ | |
| 4967 | -children:s}),e&&(0,L.jsx)(tE,{...t}),(0,L.jsx)(iE,{...t})]})},save:()=>null}),sE.propTypes={};const rE={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:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", | |
| 4968 | -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",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"", | |
| 4969 | -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:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0, | |
| 4970 | -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:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 4974 | +rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},card_hover_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:""}},card_hover_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:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"", | |
| 4975 | +leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"", | |
| 4976 | +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, | |
| 4977 | +isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", | |
| 4978 | +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:"", | |
| 4979 | +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 | +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 | +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 | +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){ | |
| 4985 | +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"}, | |
| 4989 | +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, | |
| 4971 | 4990 | 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:"", |
| 4972 | -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_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:""}},form_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 4973 | -isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},form_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:"", | |
| 4974 | -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:"", | |
| 4975 | -vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},form_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:"", | |
| 4976 | -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:""}},card_hover_padding:{type:"object",default:{isLinked:!0, | |
| 4977 | -isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},card_hover_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:""}},_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:"", | |
| 4978 | -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, | |
| 4979 | -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:"", | |
| 4980 | -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:"", | |
| 4981 | -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:"", | |
| 4982 | -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", | |
| 4983 | -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:"", | |
| 4984 | -scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 4985 | -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 bE(t){const{attributes:e}=t,{block_id:i}=e;return(0, | |
| 4986 | -L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:rE.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-instructor-registration-form",httpMethod:"POST",attributes:e})})})})}bE.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,gs.qD)(t?.form_button_color),background:(0,gs.qD)(t?.form_button_background),...(0,P.qD)(i,e,o),...(0,y.qD)(t?.form_button_border,e)}},dE=(t,e="")=>({color:(0,gs.qD)(t?.form_button_hover_color),background:(0,gs.qD)(t?.form_button_hover_background),...(0,y.a9)(t?.form_button_border,e)}),uE=t=>({color:(0,gs.qD)(t?.input_field_placeholder_color)}),pE=(t,e="")=>({color:(0,gs.qD)(t?.input_field_color), | |
| 4987 | -background:(0,gs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.form_field_border,e)}),mE=(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)}),gE=(t,e="")=>({...(0,d.a9)(t?.form_background,"background",e),...(0,y.a9)(t?.form_border,e)}),fE=(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,gs.qD)(t?.input_label_color),...(0,P.qD)(i,e,o)}};function yE(t){const{attributes:e,setAttributes:i}=t,{src:o,width:a,height:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{title:(0,z.__)("PDF Options","ablocks"),initialOpen:!0,children:[(0,L.jsx)(ql,{label:(0,z.__)("Source","ablocks"),attributeValue:o,attributeName:"src",setAttributes:i}),(0,L.jsx)(ql,{label:(0, | |
| 4988 | -z.__)("Width","ablocks"),attributeValue:a,attributeName:"width",setAttributes:i,disableDynamicContent:!0}),(0,L.jsx)(ql,{label:(0,z.__)("Height","ablocks"),attributeValue:n,attributeName:"height",setAttributes:i,disableDynamicContent:!0})]})})})})}(0,M.xV)(rE.UU,"","academy_lms")&&(0,o.registerBlockType)(rE.UU,{title:"Instructor Registration Form",attributes:rE.uK,icon:(0,L.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;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group label",fE(i),fE(i,"Tablet"),fE(i,"Mobile")), | |
| 4989 | -t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input",pE(i),pE(i,"Tablet"),pE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input:hover",mE(i),mE(i,"Tablet"),mE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input::placeholder",uE(i),uE(i),uE(i)),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button",cE(i),cE(i,"Tablet"),cE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button:hover",dE(i),dE(i,"Tablet"),dE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form",hE(i),hE(i,"Tablet"),hE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-reg-form:hover",gE(i),gE(i,"Tablet"),gE(i,"Mobile")),(0,b.applyFilters)("ablocks.academy-instructor-registration-form.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0, | |
| 4990 | -L.jsx)(sE,{...t}),(0,L.jsx)(bE,{...t})]})},save:()=>null}),yE.propTypes={};const TE={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:"",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"}}, | |
| 4991 | -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"}},_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:{ | |
| 4992 | -type:"object",default:{isLinked:!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:"", | |
| 4993 | -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:"", | |
| 4994 | -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:"", | |
| 4995 | -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:"", | |
| 4996 | -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", | |
| 4997 | -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, | |
| 4998 | -scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0", | |
| 4999 | -yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[], | |
| 5000 | -items:{type:"object"}}}};function HE(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:TE.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-pdf",httpMethod:"POST",attributes:e})})})})}function ME(t){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:U}=e;return(0,L.jsx)(l().Fragment,{ | |
| 5001 | -children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Form Options","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Form Title","ablocks"),attributeName:"form_title",attributeValue:o,setAttributes:i,isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("Username Label","ablocks"),attributeName:"username_label",attributeValue:a,setAttributes:i,isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("Reset Button Label","ablocks"),attributeName:"reset_button_label",attributeValue:n,setAttributes:i,isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("Login Label","ablocks"),attributeName:"login_button_label",attributeValue:s,setAttributes:i,isInline:!1}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Logged in message","ablocks"),attributeValue:r,setAttributes:i,attributeName:"show_logged_in_message"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ct,{normal:(0, | |
| 5002 | -L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:"form_background_color",attributeValue:b,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:"form_background_hover_color",attributeValue:S,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"form_padding",attributeValue:c,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"form_border",attributeValue:d,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Form Header & Footer","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Form Header Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 5003 | -attributeName:"form_title_typography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"form_title_color",attributeValue:v,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Form Footer Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"form_footer_title_typography",attributeValue:_,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"form_footer_title_color",attributeValue:R,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Input Field Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Label Option","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"label_typography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0, | |
| 5004 | -z.__)("Color","ablocks"),isGradient:!1,attributeName:"label_color",attributeValue:p,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Input Field Option","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"input_field_typography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_color",attributeValue:m,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"input_padding",attributeValue:f,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"input_border",attributeValue:g,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{ | |
| 5005 | -label:(0,z.__)("Typography","ablocks"),attributeName:"button_typography",attributeValue:T,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"button_color",attributeValue:y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"button_background_color",attributeValue:H,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"button_hover_color",attributeValue:U,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"button_background_hover_color",attributeValue:W,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0, | |
| 5006 | -L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"button_padding",attributeValue:M,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"button_border",attributeValue:x,setAttributes:i})]})]})})})}HE.propTypes={},(0,M.xV)(TE.UU,"","academy_lms")&&(0,o.registerBlockType)(TE.UU,{title:"PDF",attributes:TE.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(0,b.applyFilters)("ablocks.academy-pdf.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0, | |
| 5007 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(yE,{...t}),(0,L.jsx)(HE,{...t})]})},save:()=>null}),ME.propTypes={};const xE={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",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"}, | |
| 5008 | -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",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", | |
| 5009 | -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"}},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", | |
| 5010 | -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",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:"", | |
| 5011 | -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"}},card_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:"", | |
| 5012 | -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:"", | |
| 5013 | -imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},form_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, | |
| 5014 | -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:"", | |
| 5015 | -bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},input_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:"", | |
| 5016 | -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:""}},button_border:{ | |
| 4991 | +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 | +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, | |
| 4993 | +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:"",topRadiusHTablet:"", | |
| 4994 | +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:"", | |
| 4995 | +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 | +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 | +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 | +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){ | |
| 5001 | +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 | +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 | +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:"", | |
| 5007 | +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 | +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 | +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:{ | |
| 5017 | 5010 | 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:"", |
| 5018 | -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:""}},card_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"", | |
| 5019 | -topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},button_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:""}},form_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:""}},input_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:"", | |
| 5020 | -leftMobile:"",unitMobile:""}},wish_icon_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:"", | |
| 5021 | -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:""}},_margin:{type:"object",default:{isLinked:!0, | |
| 5022 | -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:"", | |
| 5023 | -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:"", | |
| 5024 | -rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none", | |
| 5025 | -backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"", | |
| 5026 | -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:"", | |
| 5027 | -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:"", | |
| 5028 | -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", | |
| 5029 | -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", | |
| 5030 | -default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function kE(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:xE.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-password-reset-form",httpMethod:"POST",attributes:e})})})})}kE.propTypes={} | |
| 5031 | -;const vE=(t,e="")=>({background:(0,gs.qD)(t?.form_background_color),...(0,y.qD)(t?.form_border,e),...(0,c.qD)(t?.form_padding,"padding",e)}),_E=(t,e="")=>({background:(0,gs.qD)(t?.form_background_hover_color),...(0,y.a9)(t?.form_border,e)}),RE=(t,e="")=>{const i=(0,M.Zy)(t.label_typography,{weight:"400"}),o=t.label_typographyGlobal?t.label_typographyGlobal:"";return{color:(0,gs.qD)(t?.label_color),...(0,P.qD)(i,e,o)}},SE=(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,gs.qD)(t?.input_field_color),...(0,P.qD)(i,e,o),...(0,c.qD)(t?.input_padding,"padding",e),...(0,y.qD)(t?.input_border,e)}},WE=(t,e="")=>({...(0,y.a9)(t?.input_border,e)}),UE=(t,e="")=>{const i=(0,M.Zy)(t.button_typography,{weight:"400"}),o=t.button_typographyGlobal?t.button_typographyGlobal:"";return{color:(0,gs.qD)(t?.button_color),background:(0,gs.qD)(t?.button_background_color),...(0,P.qD)(i,e,o),...(0, | |
| 5032 | -c.qD)(t?.button_padding,"padding",e),...(0,y.qD)(t?.button_border,e)}},PE=(t,e="")=>({color:(0,gs.qD)(t?.button_hover_color),background:(0,gs.qD)(t?.button_background_hover_color),...(0,y.a9)(t?.button_border,e)}),jE=(t,e="")=>{const i=(0,M.Zy)(t.form_title_typography,{weight:"400"}),o=t.form_title_typographyGlobal?t.form_title_typographyGlobal:"";return{color:(0,gs.qD)(t?.form_title_color),...(0,P.qD)(i,e,o)}},wE=(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,gs.qD)(t?.form_footer_title_color),...(0,P.qD)(i,e,o)}};(0,M.xV)(xE.UU,"","academy_lms")&&(0,o.registerBlockType)(xE.UU,{title:"Password Reset",attributes:xE.uK,icon:(0,L.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}) | |
| 5033 | -},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper",vE(i),vE(i,"Tablet"),vE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper:hover",_E(i),_E(i,"Tablet"),_E(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group label",RE(i),RE(i,"Tablet"),RE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input",SE(i),SE(i,"Tablet"),SE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input:hover",WE(i),WE(i,"Tablet"),WE(i,"Mobile")), | |
| 5034 | -t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button",UE(i),UE(i,"Tablet"),UE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button:hover",PE(i),PE(i,"Tablet"),PE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper h2.academy-password-reset-form-heading",jE(i),jE(i,"Tablet"),jE(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form-info a",wE(i),wE(i,"Tablet"),wE(i,"Mobile")),(0,b.applyFilters)("ablocks.academy-password-reset-form.editorInlineCSS",null,i,t)||t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(ME,{...t}),(0,L.jsx)(kE,{...t})]})},save:()=>null});var zE=i(53036);function CE(t){ | |
| 5035 | -const{attributes:e,setAttributes:i}=t,o=at(),{imageWidth:a,imageHeight:n,alignment:s,imageOpacityH:r,imageOpacity:b,boxShadow:c,border:d}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("General","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Image Dimensions","ablocks"),isHeader:!0}),(0,L.jsx)(vt,{label:(0,z.__)("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:zE.C$,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"imageHeight", | |
| 5036 | -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:zE.FN,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacity",attributeValue:b,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Opacity Hover","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacityH",attributeValue:r,setAttributes:i})})}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"), | |
| 5037 | -isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:c,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:d,setAttributes:i})]})})})})})})}CE.propTypes={};const AE={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:"", | |
| 5011 | +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_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"", | |
| 5012 | +topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},form_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:""}},form_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:"", | |
| 5013 | +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:"", | |
| 5014 | +imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},form_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:"", | |
| 5015 | +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:"", | |
| 5016 | +unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},card_hover_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:""}},card_hover_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:""}},_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:"", | |
| 5017 | +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:"", | |
| 5018 | +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:"", | |
| 5019 | +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:"", | |
| 5020 | +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:"", | |
| 5021 | +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 | +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 | +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 | +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:"", | |
| 5030 | +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 | +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 | +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 | +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", | |
| 5034 | +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:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"", | |
| 5035 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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", | |
| 5047 | +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 | +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 | +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 | +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:"", | |
| 5051 | +letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},card_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", | |
| 5052 | +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:"", | |
| 5053 | +videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},form_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:"", | |
| 5054 | +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:""}},input_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 5055 | +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:"", | |
| 5056 | +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:""}},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:"", | |
| 5057 | +topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 5058 | +isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},card_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:""}},button_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:"", | |
| 5059 | +bottomMobile:"",leftMobile:"",unitMobile:""}},form_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:""}},input_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:""}},wish_icon_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"", | |
| 5060 | +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:"", | |
| 5061 | +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:""}},_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, | |
| 5062 | +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, | |
| 5063 | +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:"",topRadiusHTablet:"", | |
| 5064 | +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:"", | |
| 5065 | +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 | +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 | +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 | +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:"", | |
| 5038 | 5078 | 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", |
| 5039 | 5079 | 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:"", |
| 5040 | 5080 | 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:"", |
| 5041 | 5081 | 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:"", |
| @@ -5044,50 +5084,50 @@ | ||
| 5044 | 5084 | 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:"", |
| 5045 | 5085 | 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:"", |
| 5046 | 5086 | 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", |
| 5047 | 5087 | 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}, |
| 5048 | -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function LE(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:AE.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-course-media",httpMethod:"POST",attributes:e})})})})}LE.propTypes={};const DE=(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,Ob.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100, | |
| 5049 | -unitDefaultValue:"%",property:"height",device:e})}},NE=(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)(AE.UU,"","academy_lms")&&(0,o.registerBlockType)(AE.UU,{title:"Course Media",attributes:AE.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-default-featured-image,\n\t\t\t{{WRAPPER}} .plyr--video",DE(i),DE(i,"Tablet"),DE(i,"Mobile")), | |
| 5050 | -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 ",NE(i),NE(i,"Tablet"),NE(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(CE,{...t}),(0,L.jsx)(LE,{...t})]})},save:()=>null});var IE=i(41607);window.wp.htmlEntities;const VE=({offset:t,onChange:e})=>(0,L.jsx)(js,{label:(0,z.__)("Offset","ablocks"),attributeValue:t,onChangeHandler:t=>{isNaN(t)||t<0||t>100||e(t)}});function OE(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(ge.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, | |
| 5051 | -Ot.useMemo)(()=>(t||[]).map(({labels:t,slug:e})=>({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(ge.store);return o(t)?.taxonomies?.length>0?i({type:t,per_page:-1}):[]},[t]);return(0,Ot.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,z.__)("The <main> element should be used for the primary content of your document only.","ablocks"),section:(0, | |
| 5052 | -z.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.","ablocks"),aside:(0,z.__)("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"),U=(0,a.useRef)(s);(0,a.useEffect)(()=>{if(!S||!s)return;const t=U.current;s!==t&&W(S,{taxonomy_term_items:[]}),U.current=s},[s,S]);const{inherit:P}=n;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0, | |
| 5053 | -z.__)("Loop Builder","ablocks"),initialOpen:!0,children:(0,L.jsx)(vb,{isResponsive:!1,allowDeselect:!1,label:(0,z.__)("Query Type","ablocks"),options:[{value:!0,label:(0,z.__)("Inherit","ablocks")},{value:!1,label:(0,z.__)("Custom","ablocks")}],attributeName:"inherit",attributeValue:n?.inherit,setAttributes:t=>{i({query:{...n,...t}})}})}),!n?.inherit&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(D,{title:(0,z.__)("Query","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Post Types","ablocks"),isResponsive:!1,options:p,attributeValue:s,onChangeHandler:t=>{i({query:{...n,postType:t}})}}),(0,L.jsx)(Ut,{label:(0,z.__)("Order By","ablocks"),options:[{label:(0,z.__)("Newest to oldest","ablocks"),value:"date/desc"},{label:(0,z.__)("Oldest to newest","ablocks"),value:"date/asc"},{label:(0,z.__)("A → Z","ablocks"),value:"title/asc"},{label:(0,z.__)("Z → A","ablocks"),value:"title/desc"}],attributeValue:`${d}/${c}`,onChangeHandler:t=>{const[e,o]=t.split("/");i({query:{...n, | |
| 5054 | -orderBy:e,order:o}})}}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Display","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(js,{label:(0,z.__)("Posts Per Page","ablocks"),attributeValue:b,onChangeHandler:t=>{i({query:{...n,perPage:t}})}}),(0,L.jsx)(VE,{offset:u,onChange:t=>{i({query:{...n,offset:t}})}})]}),x&&(0,L.jsx)(D,{title:(0,z.__)("Taxonomy Filter","ablocks"),initialOpen:!0,children:x&&m.map((t,e)=>{const o=t.slug;return(0,L.jsxs)("div",{className:"ablcks-taxonomies-select",children:[(0,L.jsx)("label",{className:"ablocks-taxonomies-label",children:t?.labels?.name}),(0,L.jsx)(Pl,{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), | |
| 5055 | -placeholder:(0,z.__)("Select terms…","ablocks"),closeMenuOnSelect:!1})]},e)})})]})]})}),(0,L.jsx)(C.InspectorControls,{group:"advanced",children:(0,L.jsx)(A.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,z.__)("HTML element","ablocks"),options:[{label:(0,z.__)("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 YE="ablocks/loop-builder",XE=[{name:"normal-loo",title:(0,z.__)("Normal Loop","ablocks"),icon:(0,L.jsx)("img",{src:M.hq+"assets/images/loop-builder/normal-loop.svg",alt:(0,z.__)("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",{ | |
| 5056 | -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"}}]]],["core/query-pagination"]],scope:["block"]},{name:"filterable-loop",title:(0,z.__)("Filterable Loop","ablocks"),icon:(0,L.jsx)("img",{src:M.hq+"assets/images/loop-builder/filterable-loop.svg",alt:(0,z.__)("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:{ | |
| 5057 | -href:"ablocks_dc:link|post-url:ablocks_dc"}}]]],["ablocks/loop-load-more"]],scope:["block"]}];function BE({attributes:t,setAttributes:e}){const{queryId:i,query:o,tagName:l="div",query:{inherit:n}={},selectedVariation:s}=t,{__unstableMarkNextChangeAsNotPersistent:b}=(0,r.useDispatch)(C.store),c=(0,eH.useInstanceId)(BE),d=(0,C.useBlockProps)(),{postsPerPage:u}=(0,r.useSelect)(t=>{const{getSettings:e}=t(C.store),{getEntityRecord:i,getEntityRecordEdits:o,canUser:a}=t(ge.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=XE.find(e=>e.name===t.selectedVariation),h=(0,C.useInnerBlocksProps)(d,{template:m?m.innerBlocks:[],templateLock:!1});return(0, | |
| 5058 | -L.jsxs)(l,{...d,children:[!s&&(0,L.jsxs)("div",{className:"ablocks-query-loop-selector",children:[(0,L.jsx)("h3",{className:"ablocks-query-loop-selector-title",children:(0,z.__)("Choose a template or start from blank","ablocks")}),(0,L.jsx)("div",{className:"ablocks-query-loop-variations",children:XE.map(t=>(0,L.jsxs)("div",{className:"ablocks-query-loop-option",onClick:()=>e({selectedVariation:t.name}),role:"button",tabIndex:0,children:[(0,L.jsx)("div",{className:"ablocks-query-loop-option-icon",children:t.icon}),(0,L.jsx)("span",{className:"ablocks-query-loop-option-title",children:t.title})]},t.name))})]}),s&&(0,L.jsx)("div",{...h})]})}function EE(t){const{attributes:e,setAttributes:i}=t,{block_id:o}=e;return(0,L.jsx)(React.Fragment,{children:(0,L.jsx)(Nb.A,{blockId:o,name:YE,attributes:e,children:(0,L.jsx)(BE,{attributes:e,setAttributes:i})})})}(0,o.registerBlockType)(YE,{attributes:IE.A,icon:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24", | |
| 5059 | -height:"24",viewBox:"0 0 24 24",children:[(0,L.jsx)("path",{d:"M16 15L24 15 20 20zM8 9L0 9 4 4z"}),(0,L.jsx)("path",{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 j(i,l).generateCSS(),[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(OE,{...t}),(0,L.jsx)(EE,{...t})]})},save:function(t){const{attributes:e}=t,{tagName:i="div"}=e,o=C.useBlockProps.save(),a=C.useInnerBlocksProps.save(o),{block_id:n}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:n,name:YE,attributes:e,children:(0,L.jsx)(i,{...a})})})}});var FE=i(62882);function qE(t){ | |
| 5060 | -const{attributes:e,setAttributes:i,clientId:o}=t,{templateGridColumns:a,gridStyle:l,itemGap:n,padding:s}=e;return(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Access Loop Builder Settings","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("This is a child block. Click below to manage the full loop builder.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsxs)(D,{title:(0,z.__)("Grid","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("Columns","ablocks"),min:1,max:4,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"templateGridColumns",attributeValue:a,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:FE.E4}),(0,L.jsx)(vt,{label:(0, | |
| 5061 | -z.__)("Item Gap","ablocks"),min:0,max:100,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"itemGap",attributeValue:n,attributeDefaultValue:FE.Qk,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Template Styles","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"bgColor",attributeValue:e?.bgColor,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:s,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:e?.border,setAttributes:i})]})]})})}const $E="ablocks/loop-template";function GE(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=GE(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}const ZE=function(){ | |
| 5062 | -for(var t,e,i=0,o="",a=arguments.length;i<a;i++)(t=arguments[i])&&(e=GE(t))&&(o&&(o+=" "),o+=e);return o},KE=(0,L.jsx)(Uc.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)(Uc.Path,{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"})}),JE=(0,L.jsx)(Uc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L.jsx)(Uc.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"})}),QE=[["ablocks/heading"],["ablocks/paragraph"],["ablocks/image"]];function tF({classList:t}){const e=(0,C.useInnerBlocksProps)({className:ZE("ablocks-loop-template-item",t)},{template:QE,__unstableDisableLayoutClassNames:!0});return(0,L.jsx)("div",{...e})} | |
| 5063 | -const eF=(0,Ot.memo)(function({blocks:t,blockContextId:e,classList:i,isHidden:o,setActiveBlockContextId:a}){const l=(0,C.__experimentalUseBlockPreview)({blocks:t,props:{className:ZE("ablocks-loop-template-item",i)}}),n=()=>{a(e)},s={display:o?"none":void 0};return(0,L.jsx)("div",{...l,tabIndex:0,role:"button",onClick:n,onKeyPress:n,style:s})});function iF({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,Ot.useState)(),{posts:R,blocks:S}=(0,r.useSelect)(t=>{const{getEntityRecords:r,getTaxonomies:h}=t(ge.store),{getBlocks:H}=t(C.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",{ | |
| 5064 | -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])=>{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,Ot.useMemo)(()=>R?.map(t=>({postType:t.type,postId:t.id,classList:t.class_list??""})),[R]),U=(0,C.useBlockProps)({className:ZE(M,{ | |
| 5065 | -[`columns-${k}`]:"grid"===x&&k})});if(!R)return(0,L.jsx)("div",{...U,children:(0,L.jsx)(A.Spinner,{})});if(!R.length)return(0,L.jsx)("div",{...U,children:(0,z.__)("No results found.","ablocks")});const P=e=>t({layout:{...H,...e}}),j=[{icon:KE,title:(0,z._x)("List view","Post template block display setting","ablocks"),onClick:()=>P({type:"default"}),isActive:"default"===x||"constrained"===x},{icon:JE,title:(0,z._x)("Grid view","Post template block display setting","ablocks"),onClick:()=>P({type:"grid",columnCount:k}),isActive:"grid"===x}];return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.ToolbarGroup,{controls:j})}),(0,L.jsx)("div",{...U,children:W&&W.map(t=>(0,L.jsxs)(C.BlockContextProvider,{value:t,children:[t.postId===(v||W[0]?.postId)?(0,L.jsx)(tF,{classList:t.classList}):null,(0,L.jsx)(eF,{blocks:S,blockContextId:t.postId,classList:t.classList,setActiveBlockContextId:_,isHidden:t.postId===(v||W[0]?.postId)})]},t.postId))})]})}function oF(t){ | |
| 5066 | -const{attributes:e,clientId:i,context:o,setAttributes:a,__unstableLayoutClassNames:l}=t,{block_id:n}=e;return(0,L.jsx)("div",{className:"ablocks-loop-template-child ablocks-loop-template-child__editor",children:(0,L.jsx)(K_,{blockId:n,name:$E,attributes:e,children:(0,L.jsx)(iF,{clientId:i,context:o,setAttributes:a,attributes:e,__unstableLayoutClassNames:l})})})}oF.propTypes={};const aF=(t,e="")=>{const i={...(0,Ob.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,Ob.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},lF=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0, | |
| 5067 | -M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.bgColor),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e)}},nF=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};function sF(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(eR,{blockId:i,name:$E,attributes:e,children:(0,L.jsx)(C.InnerBlocks.Content,{})})})}sF.propTypes={},sF.defaultProps={};const rF=(0,L.jsx)(Uc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L.jsx)(Uc.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)($E,{attributes:FE.Ay,icon:rF,edit:function(t){const{isSelected: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)(()=>{ | |
| 5068 | -if(""!==i.gridColumns&&2!==Number(i.gridColumns)){const t={value:"",valueTablet:2,valueMobile:1};t.value=Number(i.gridColumns),o({templateGridColumns:t}),o({gridColumns:""})}},[]);const s=(0,a.useMemo)(()=>{const t=new j(i,l);return t.addClassStyles("{{WRAPPER}} .wp-block-ablocks-loop-template ",aF(i),aF(i,"Tablet"),aF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item",lF(i),lF(i,"Tablet"),lF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-template-item:hover",nF(i),nF(i,"Tablet"),nF(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(qE,{...t}),(0,L.jsx)(oF,{...t})]})},save:sF});var bF=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, | |
| 5069 | -r.useSelect)(t=>{const{getBlock:e,getBlockParents:i}=t("core/block-editor"),a=i(o);if(!a.length)return null;for(const t of a){const i=e(t);if("ablocks/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,z.__)("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,L.jsxs)(C.InspectorControls,{children:[(0,L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{ | |
| 5070 | -className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Access Loop Builder Settings","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("This is a child block. Click below to manage the full loop builder.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Taxonomies","ablocks"),initialOpen:!0,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"components-base-control",children:[(0,L.jsx)("label",{className:"components-base-control__label",children:(0,z.__)("Select Taxonomy","ablocks")}),(0,L.jsx)(Pl,{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,z.__)("Select a taxonomy…","ablocks")})]}),p&&(0, | |
| 5071 | -L.jsxs)("div",{className:"components-base-control",children:[(0,L.jsx)("label",{className:"components-base-control__label",children:(0,z.__)("Select Terms","ablocks")}),(0,L.jsx)(Pl,{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,z.__)("Select terms…","ablocks"),closeMenuOnSelect:!1})]}),(0,L.jsx)(vb,{allowDeselect:!0,isResponsive:!1,label:(0,z.__)("Button Alignment","ablocks"),options:[{value:"row",label:(0,z.__)("Row","ablocks")},{value:"column",label:(0,z.__)("Column","ablocks")},{value:"row-reverse",label:(0,z.__)("Reverse","ablocks")}],attributeName:"buttonAlignment",attributeValue:s,setAttributes:i}),"column"!=s&&(0,L.jsx)(Kt,{label:(0,z.__)("Row Alignment","ablocks"),options:[{label:(0,z.__)("Left","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0, | |
| 5072 | -z.__)("Right","ablocks"),value:"flex-end",icon:"right"}],attributeName:"rowAlignBtn",attributeValue:c,setAttributes:i,isInline:!1}),"column"===s&&(0,L.jsx)(Kt,{label:(0,z.__)("Button Alignment","ablocks"),options:[{label:(0,z.__)("Left","ablocks"),value:"flex-start",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Right","ablocks"),value:"flex-end",icon:"right"}],attributeName:"filterBtnAlignment",attributeValue:b,setAttributes:i,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("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:bF.f})]})}),(0,L.jsx)(D,{title:(0,z.__)("Filter","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0, | |
| 5073 | -z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"filterBtnBorder",attributeValue:e?.filterBtnBorder,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"filterButtonPadding",attributeValue:e?.filterButtonPadding,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"filterButtonMargin",attributeValue:e?.filterButtonMargin,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"filterBtnTextColor",attributeValue:e?.filterBtnTextColor,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"filterBtnBgColor",attributeValue:e?.filterBtnBgColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:e?.typography,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,L.jsx)(D,{title:(0, | |
| 5074 | -z.__)("Active Style Filter","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"activeBtnBorder",attributeValue:e?.activeBtnBorder||0,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"activeBtnTextColor",attributeValue:e?.activeBtnTextColor,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"activeBtnBgColor",attributeValue:e?.activeBtnBgColor,setAttributes:i})]})})})]})]})}cF.propTypes={},cF.defaultProps={};const dF="ablocks/loop-filter";function uF(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:i,name:dF,attributes:e, | |
| 5075 | -children:o.length>0?o.map((t,e)=>{const o=n===t.value;return(0,L.jsx)("span",{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,L.jsx)("p",{children:(0,z.__)("No Filter Selected","ablocks")})})})}uF.propTypes={},uF.defaultProps={};const pF=(t,e="")=>{const i={...(0,Ob.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},mF=(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, | |
| 5076 | -M.Zy)(t?.filterButtonMargin,{unit:"px"}),n=(0,M.Zy)(t?.filterButtonPadding,{unit:"px"});return{color:(0,gs.qD)(t?.filterBtnTextColor),background:(0,gs.qD)(t?.filterBtnBgColor),...(0,P.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"margin",e),...(0,c.qD)(n,"padding",e)}},hF=(t,e="")=>{const i=(0,M.Zy)(t.filterBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},gF=(t,e="")=>{const i=(0,M.Zy)(t.activeBtnBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,gs.qD)(t?.activeBtnTextColor),background:(0,gs.qD)(t?.activeBtnBgColor),...(0,y.qD)(i,e)}},fF=(t,e="")=>{const i=(0,M.Zy)(t.activeBtnBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}};(0,o.registerBlockType)(dF,{attributes:bF.A,icon:rF,edit:function(t){const{isSelected:e,attributes: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 j(i,l) | |
| 5077 | -;return t.addClassStyles("{{WRAPPER}}",pF(i),pF(i,"Tablet"),pF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter",mF(i),mF(i,"Tablet"),mF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter:hover",hF(i),hF(i,"Tablet"),hF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active",gF(i),gF(i,"Tablet"),gF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-term-filter--active:hover",fF(i),fF(i,"Tablet"),fF(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(cF,{...t}),(0,L.jsx)(uF,{...t})]})},save:()=>null});var yF=i(4788);function TF(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,L.jsx)(l().Fragment,{children:(0,L.jsxs)(C.InspectorControls,{children:[(0, | |
| 5078 | -L.jsx)(D,{children:(0,L.jsxs)("div",{className:"ablocks-modal-triger",children:[(0,L.jsxs)("div",{className:"ablocks-modal-triger-area",children:[(0,L.jsx)("p",{className:"ablocks-modal-triger-area__title",children:(0,z.__)("Access Loop Builder Settings","ablocks")}),(0,L.jsx)("span",{className:"ablocks-modal-triger-area__title--des",children:(0,z.__)("This is a child block. Click below to manage the full loop builder.","ablocks")})]}),(0,L.jsx)(Sb,{clientId:t?.clientId})]})}),(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{title:(0,z.__)("Load More Button","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"moreButtonAlignment",attributeValue:c,isResponsive:!1,setAttributes:i,isInline:!1,options:[{label:(0,z.__)("Left","ablocks"),value:"left",icon:"left"},{label:(0,z.__)("Center","ablocks"),value:"center",icon:"center"},{label:(0,z.__)("Right","ablocks"), | |
| 5079 | -value:"right",icon:"right"}]}),(0,L.jsx)(ql,{label:(0,z.__)("Text","ablocks"),attributeName:"loadMoreButtonText",attributeValue:a,setAttributes:i,isInline:!1}),(0,L.jsx)(ql,{label:(0,z.__)("No More Items Label","ablocks"),attributeName:"noMoreItemsText",attributeValue:d,setAttributes:i,isInline:!1}),(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"moreButtonTypography",attributeValue:e?.moreButtonTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColor",attributeValue:s||"#000000", | |
| 5080 | -setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackground",attributeValue:n||"#ddd",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"loadMoreButtonTextColorH",attributeValue:r,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!0,attributeName:"loadMoreButtonBackgroundH",attributeValue:b,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"moreButtonBorder",attributeValue:e?.moreButtonBorder,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0, | |
| 5081 | -attributeName:"moreButtonPadding",attributeValue:e?.moreButtonPadding,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"moreButtonboxShadow",attributeValue:e?.moreButtonboxShadow,setAttributes:i})]})})})})]})})}TF.propTypes={},TF.defaultProps={};const HF="ablocks/loop-load-more";function MF(t){const{attributes:e,setAttributes:i,context:o}=t,{block_id:a,loadMoreButtonText:n,noMoreItemsText:s}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(K_,{blockId:a,name:HF,attributes:e,blockProps:{"data-no-item-text":s,"data-more-button-text":n},children:(0,L.jsx)(Yc,{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})})})}MF.propTypes={},MF.defaultProps={};const xF=(t,e="")=>{const i={ | |
| 5082 | -...(0,Ob.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},kF=(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,gs.qD)(t?.loadMoreButtonTextColor),background:(0,gs.qD)(t?.loadMoreButtonBackground),...(0,y.qD)(o,e),...(0,H.qD)(t?.moreButtonboxShadow,e),...(0,c.qD)(i,"padding",e),...(0,P.qD)(a,e,l)}},vF=(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,gs.qD)(t?.loadMoreButtonTextColorH),background:(0,gs.qD)(t?.loadMoreButtonBackgroundH),...i,...(0, | |
| 5083 | -y.a9)(o,e),...(0,H.a9)(t?.moreButtonboxShadow,e)}};(0,o.registerBlockType)(HF,{attributes:yF.A,icon:rF,edit:function(t){const{isSelected:e,attributes: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 j(i,l);return t.addClassStyles("{{WRAPPER}}",xF(i),xF(i,"Tablet"),xF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text",kF(i),kF(i,"Tablet"),kF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-loop-load-more__text:hover",vF(i),vF(i,"Tablet"),vF(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(TF,{...t}),(0,L.jsx)(MF,{...t})]})},save:()=>null});const _F=(0,Ob.D$)({attributeName:"barHeightSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:40,defaultValueTablet:30,defaultValueMobile:30,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),RF=((0,Gt.D$)("alignment",!0,{value:"center",valueTablet:"", | |
| 5084 | -valueMobile:""}),(0,lY.D$)("layout",!1,{value:"bar"}),(0,P.D$)("contentTypography",!0),(0,pc.D$)("contentTextShadow"),(0,fc.D$)("contentTextStroke",!0),(0,y.D$)("barBorder",!0),Mr.Ay,[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}]),SF=[{value:"bar",label:(0,z.__)("Bar","ablocks")},{value:"circle",label:(0,z.__)("Circle","ablocks")}],WF=[{value:"left",label:(0,z.__)("Left","ablocks")},{value:"right",label:(0,z.__)("Right","ablocks")}],UF=[{value:"entire_page",label:(0,z.__)("Entire Page","ablocks")},{value:"selector",label:(0,z.__)("Selector","ablocks")}];function PF(t){ | |
| 5085 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-progress-tracker-block/",children:[(0,L.jsx)(D,{title:(0,z.__)("Progress Tracker","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:["circle"===o&&(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:g,setAttributes:i,options:RF,isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vb,{label:(0,z.__)("Layout","ablocks"),setAttributes:i,attributeName:"layout",attributeValue:o,options:SF,onChangeHandler:t=>{ | |
| 5086 | -"circle"===t&&i({mediaPosition:"top"}),i({layout:t})},isResponsive:!1,allowDeselect:!1}),"circle"===o&&(0,L.jsx)("em",{children:"Note : Change content color to see the Circle percentage"}),(0,L.jsx)(Ut,{label:(0,z.__)("Direction","ablocks"),options:WF,isSearch:!0,attributeName:"direction",attributeValue:n,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Progress relative to","ablocks"),options:UF,isSearch:!1,attributeName:"progressRelative",attributeValue:s,setAttributes:i,isInline:!1}),"circle"===o&&"selector"===s&&(0,L.jsx)("em",{children:"Note : This setting only work in frontend"}),"selector"===s&&(0,L.jsx)(ql,{label:(0,z.__)("Selector","ablocks"),isInline:!1,placeholder:(0,z.__)("#id","ablocks"),attributeName:"progressRelativeSelector",attributeValue:r,setAttributes:i}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Percentage","ablocks"),attributeName:"isShowPercentage",attributeValue:a,setAttributes:i,isResponsive:!1,allowDeselect:!1})]}),style:(0,L.jsxs)(l().Fragment,{ | |
| 5087 | -children:["bar"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Progress Color","ablocks"),attributeName:"barProgressColor",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"barBackgroundColor",attributeValue:c,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"barHeightSize",attributeValue:d,setAttributes:i,hasUnit:!0,min:10,max:100,step:1,isInline:!1,unitOptions:[{value:"px",label:"px"}],attributeDefaultValue:_F}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"barBorder",attributeValue:e?.barBorder,setAttributes:i})]}),"circle"===o&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Progress Color","ablocks"),attributeName:"circleProgressColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),attributeName:"circleBackgroundColor",attributeValue:p, | |
| 5088 | -setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Circle size","ablocks"),attributeName:"circleSize",attributeValue:m,setAttributes:i,min:50,max:500,step:1,isInline:!1,isResponsive:!1}),(0,L.jsx)(vt,{label:(0,z.__)("Stroke size","ablocks"),attributeName:"circleStrokeSize",attributeValue:h,setAttributes:i,min:5,max:150,step:1,isInline:!1,isResponsive:!1})]})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Content","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"contentColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"contentTextShadow",attributeValue:T,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"contentTextStroke",attributeValue:H,setAttributes:i,isResponsive:!0})]})]})})})} | |
| 5089 | -PF.propTypes={},PF.defaultProps={};const jF={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:{ | |
| 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})=>({ | |
| 5091 | +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 | +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 | +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=>{ | |
| 5109 | +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 | +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 | +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 | +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,{ | |
| 5118 | +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 | +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, | |
| 5128 | +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:{ | |
| 5090 | 5130 | 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", |
| 5091 | 5131 | 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:"", |
| 5092 | 5132 | 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", |
| 5093 | 5133 | 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:"", |
| @@ -5097,68 +5137,68 @@ | ||
| 5097 | 5137 | 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:"", |
| 5098 | 5138 | 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", |
| 5099 | 5139 | 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", |
| 5100 | 5140 | 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:{ |
| 5101 | -type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},wF=({barColor:t,trackColor:e,isShowPercentage:i,circleSize:o})=>{const a=o/2,l=2*Math.PI*a;return(0,L.jsx)("div",{className:"ablocks-block-progress-circle",children:(0,L.jsxs)("div",{className:"ablocks-block-progress-circle__wrapper",children:[(0,L.jsxs)("svg",{className:"ablocks-block-progress-circle__svg",width:o,height:o,style:{rotate:"-90deg"},children:[(0,L.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,L.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,L.jsx)("div",{className:"ablocks-block-progress__text",children:"0%"})]})})},zF=({attributes:t})=>{ | |
| 5102 | -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,L.jsxs)(L.Fragment,{children:["circle"===o&&(0,L.jsx)(wF,{barColor:n,trackColor:l,isShowPercentage:i,circleSize:a}),"bar"===o&&(0,L.jsx)("div",{className:`ablocks-block-progress-bar-track ${s}`,children:(0,L.jsx)("div",{className:"ablocks-block-progress-bar",style:{width:"20%"},children:i&&(0,L.jsx)("span",{className:"ablocks-block-progress__text",children:" "})})})]})};function CF(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){ | |
| 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){ | |
| 5103 | 5143 | 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 |
| 5104 | -;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,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:jF.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,L.jsx)(zF,{attributes:e})})})}CF.propTypes={};const AF=(t,e="")=>{const i="Mobile"===e?t?.alignment?.valueMobile:t?.alignment?.value;let o,a="Tablet"===e?t?.alignment?.valueTablet:i | |
| 5105 | -;switch(a=a||"center",a){case"left":default:o="flex-start";break;case"center":o="center";break;case"right":o="flex-end"}return{display:"flex","justify-content":o}},LF=(t,e="")=>{const{barHeightSize:i}=t,o=(0,M.Zy)(t.barBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.barBackgroundColor),...(0,Ob.qD)({attributeValue:i,attributeObjectKey:"value",isResponsive:!0,defaultValue:40,unitDefaultValue:"px",property:"height",device:e}),...(0,y.qD)(o,e)}},DF=(t,e="")=>{const i=(0,M.Zy)(t?.barBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,y.a9)(i,e)}},NF=(t,e="")=>{const i=(0,M.Zy)(t.contentTypography,{weight:"400"}),o=t.contentTypographyGlobal?t.contentTypographyGlobal:"";return{color:(0,gs.qD)(t?.contentColor),...(0,P.qD)(i,e,o),...(0,fc.qD)(t?.contentTextStroke,e),...(0,pc.qD)(t?.contentTextShadow)}},IF={UU:"ablocks/progress-tracker",uK:{block_id:{type:"string"},progressValue:{type:"number",default:100},maxValue:{type:"number",default:100},barColor:{type:"string", | |
| 5106 | -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:"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:"", | |
| 5107 | -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",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"", | |
| 5108 | -topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 5109 | -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",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:"", | |
| 5110 | -bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"", | |
| 5111 | -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:"", | |
| 5112 | -leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"", | |
| 5113 | -imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"", | |
| 5114 | -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", | |
| 5115 | -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:"", | |
| 5116 | -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:"", | |
| 5117 | -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)(jF.UU)&&(0,o.registerBlockType)(jF.UU,{attributes:jF.uK,icon:(0,L.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 | |
| 5118 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle",AF(i),AF(i,"Tablet"),AF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress__text",NF(i),NF(i,"Tablet"),NF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track ",LF(i),LF(i,"Tablet"),LF(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-bar-track:hover",DF(i),DF(i,"Tablet"),DF(i,"Mobile")),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,gs.qD)(t?.barProgressColor),...i}})(i)),t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle__svg-bar",(t=>({stroke:(0,gs.qD)(t?.circleProgressColor)}))(i)), | |
| 5119 | -t.addClassStyles("{{WRAPPER}} .ablocks-block-progress-circle__svg-track",(t=>({stroke:(0,gs.qD)(t?.circleBackgroundColor),...(0,Ob.qD)({attributeValue:t?.circleStrokeSize,attributeObjectKey:"value",defaultValue:10,unitDefaultValue:"px",property:"stroke-width"})}))(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(PF,{...t}),(0,L.jsx)(CF,{...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,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:jF.UU,attributes:e,blockProps:{"data-layout":n,"data-progress-relative":d, | |
| 5120 | -"data-progress-relative-selector":u,"data-direction":o},className:m,children:"circle"===n?(0,L.jsx)(wF,{progress:0,barColor:r,trackColor:b,isShowPercentage:a,direction:o,circleSize:c}):(0,L.jsx)("div",{className:`ablocks-block-progress-bar-track ${h}`,children:(0,L.jsx)("div",{className:"ablocks-block-progress-bar",children:a&&(0,L.jsx)("span",{className:"ablocks-block-progress__text",children:"0%"})})})})})},deprecated:[{attributes:IF.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,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:IF.UU,attributes:e,blockProps:{"data-layout":n,"data-progress-relative":d, | |
| 5121 | -"data-progress-relative-selector":u,"data-direction":o},className:m,children:"circle"===n?(0,L.jsx)(wF,{progress:0,barColor:r,trackColor:b,isShowPercentage:a,direction:o,circleSize:c}):(0,L.jsx)("div",{className:`ablocks-block-progress-bar-track ${h}`,children:(0,L.jsx)("div",{className:"ablocks-block-progress-bar",children:a&&(0,L.jsx)("span",{className:"ablocks-block-progress__text",children:"0%"})})})})})}}]});const VF=({label:t,selectedImage:e,options:i,onChange:o})=>{const[a,l]=(0,Ot.useState)(e);(0,Ot.useEffect)(()=>{e&&l(e)},[e]);const n=`image-radio-control-${t.replace(/\s+/g,"-").toLowerCase()}`;return(0,L.jsx)(A.BaseControl,{label:t,id:n,children:(0,L.jsx)("div",{className:"ablocks-block--certificate__image-radio-control",children:i.map(t=>(0,L.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,L.jsx)("img",{ | |
| 5122 | -src:t.value,alt:t.label})},t.value))})})},OF=(0,Ob.D$)({attributeName:"containerWidth",defaultValue:80,copyStyle:!0});function YF(t){const{attributes:e,setAttributes:i}=t,{backgroundImage:o,pageSize:a,pageOrientation:n,certificate_padding:s,imageOptions:r}=e,b=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Certificate Background","ablocks"),initialOpen:!0,children:[(0,L.jsx)(VF,{label:(0,z.__)("Select a Certificate Image","ablocks"),selectedImage:o,options:r,attributes:e,onChange:(t,e)=>{i({backgroundImage:e})}}),(0,L.jsx)(As,{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,L.jsxs)(D,{title:(0, | |
| 5123 | -z.__)("Certificate Layout","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{label:(0,z.__)("Page Size","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("A4","ablocks"),value:"A4"},{label:(0,z.__)("Letter","ablocks"),value:"Letter"}],attributeValue:a,attributeName:"pageSize",setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("Page Orientation","ablocks"),isResponsive:!1,options:[{label:(0,z.__)("Portrait","ablocks"),value:"P"},{label:(0,z.__)("Landscape","ablocks"),value:"L"}],attributeValue:n,attributeName:"pageOrientation",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Container Width","ablocks"),min:1,max:100,hasUit:!1,isInlnine:!1,isResponsive:!1,attributeName:"containerWidth",attributeValue:e?.containerWidth,setAttributes:i,attributeDefaultValue:OF}),(0,L.jsx)(Mt,{label:(0,z.__)("Certificate Padding","ablocks"),isResponsive:!1,attributeName:"certificate_padding",attributeValue:s,setAttributes:i})]})]})})})}(0,c.D$)("certificate_padding",!0),Mr.Ay,YF.propTypes={};const XF={ | |
| 5124 | -UU:"ablocks/academy-certificate",uK:{block_id:{type:"string",default:""},backgroundImage:{type:"string",default:""},pageSize:{type:"string",default:"A4"},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:{ | |
| 5125 | -isLinked:!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:"", | |
| 5126 | -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:"", | |
| 5127 | -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:"", | |
| 5128 | -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:"", | |
| 5129 | -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:"", | |
| 5130 | -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:"", | |
| 5131 | -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:{ | |
| 5132 | -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 BF(t){ | |
| 5133 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:XF.UU,attributes:e,typography:[{fontFamily:e.search_typography?.fontFamily,weight:e.search_typography?.weight}],children:(0,L.jsx)("div",{className:"ablocks-block--certificate__background-image",children:(0,L.jsx)("div",{className:"ablocks-block--certificate__background-image-inner-block",children:(0,L.jsx)(C.InnerBlocks,{allowedBlocks:["ablocks/academy-certificate-text","core/image","ablocks/academy-certificate-id","core/spacer","ablocks/academy-container"],templateLock:!1})})})})})}BF.propTypes={};const EF=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", | |
| 5134 | -"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["background-repeat"]="round !important"),e},FF=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},qF=(t,e="")=>{const i={...(0,c.qD)(t?.certificate_padding,"padding",e)};return t?.containerWidth&&(i.width=`${t?.containerWidth}%`),i};function $F(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(dc,{blockId:i,name:XF.UU,attributes:e,children:(0,L.jsx)("div",{ | |
| 5135 | -className:"ablocks-block--certificate__background-image",children:(0,L.jsx)("div",{className:"ablocks-block--certificate__background-image-inner-block",children:(0,L.jsx)(C.InnerBlocks.Content,{})})})})}$F.propTypes={},((0,M.xV)(XF.UU,"","academy_lms")||(0,M.xV)(XF.UU,"","quizpress"))&&(0,o.registerBlockType)(XF.UU,{title:"Certificate",attributes:XF.uK,icon:(0,L.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] | |
| 5136 | -})),o({imageOptions:e})}},[n]),(0,a.useEffect)(()=>{!r&&s.length>0&&o({backgroundImage:s[0].value})},[s,r]);const c=new j(i,l);c.addClassStyles("{{WRAPPER}}",FF(i),FF(i),FF(i)),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image",EF(i),EF(i),EF(i)),c.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__background-image-inner-block",qF(i),qF(i,"Tablet"),qF(i,"Mobile"));const d=c.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:d}),e&&(0,L.jsx)(YF,{...t}),(0,L.jsx)(BF,{...t})]})},save:$F}),(0,z.__)("Align text left","ablocks"),(0,z.__)("Align text center","ablocks"),(0,z.__)("Align text right","ablocks"),(0,z.__)("Align text justify","ablocks");const GF={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"]}, | |
| 5137 | -"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",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 ZF(t){const{attributes:e,setAttributes:i}=t,{alignment:o,typography:a}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{title:(0,z.__)("Verification ID Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Kt,{label:(0, | |
| 5138 | -z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography",attributeValue:a,setAttributes:i,isResponsive:!0,showOnlyCustomFonts:!0,customFontsOption:GF,attributes:e})]})})})})}ZF.propTypes={};const KF={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:"", | |
| 5139 | -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:"%",customWidthUnitTablet:"", | |
| 5140 | -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, | |
| 5141 | -commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px", | |
| 5142 | -hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 5143 | -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:"", | |
| 5144 | -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:"", | |
| 5145 | -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:"", | |
| 5146 | -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", | |
| 5147 | -ease:"none",x:0,y:0,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 JF(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:KF.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsx)("span",{className:"ablocks-block--certificate__verification-id",children:"[verification_id]"})})})}JF.propTypes={};const QF=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a={...(0, | |
| 5148 | -Gt.qD)(t?.alignment,"text-align",e),...(0,P.qD)(i,e,o)};return a.width="100%",a.display="block",a};function tq(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(dc,{blockId:i,name:KF.UU,attributes:e,children:(0,L.jsx)("span",{className:"ablocks-block--certificate__verification-id",children:"#{{verification_id}}"})})}tq.propTypes={},(0,M.xV)(KF.UU,KF.$t[0],"academy_lms")&&(0,o.registerBlockType)(KF.UU,{title:"Certificate ID",attributes:KF.uK,icon:(0,L.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 j(i,l);s.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__verification-id",QF(i),QF(i,"Tablet"),QF(i,"Mobile"));const r=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:r}),e&&(0,L.jsx)(ZF,{...t}),(0,L.jsx)(JF,{...t})]})},save:tq}) | |
| 5149 | -;const eq=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}],iq={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"},{ | |
| 5150 | -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 oq(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,L.jsx)(L.Fragment,{children:"qp_certificate"===u?(0,L.jsx)(L.Fragment,{children:(0,z.sprintf)( | |
| 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"}, | |
| 5146 | +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 | +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 | +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 | +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:"", | |
| 5150 | +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:"",leftWidthH:"", | |
| 5151 | +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:"", | |
| 5152 | +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:"", | |
| 5153 | +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 | +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 | +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 | +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"}, | |
| 5164 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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:"", | |
| 5179 | +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 | +_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 | +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 | +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 | +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 | +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 | +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 | +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)( | |
| 5151 | 5191 | // translators: %1$s learner, %2$s: quiz title, %3$s completion date, %4$s total questions, |
| 5152 | 5192 | // translators: %1$s learner, %2$s: quiz title, %3$s completion date, %4$s total questions, |
| 5153 | -(0,z.__)("Customize certificate with these values: %1$s, %2$s, %3$s, %4$s","ablocks"),"{{learner}}","{{quiz_title}}","{{completion_date}}","{{total_questions}}")}):(0,L.jsxs)(L.Fragment,{children:[(0,z.sprintf)( | |
| 5193 | +(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)( | |
| 5154 | 5194 | // translators: %1$s learner, %2$s: course title, %3$s instructor, %4$s course place, %5$s completion date, %6$s verification ID |
| 5155 | 5195 | // translators: %1$s learner, %2$s: course title, %3$s instructor, %4$s course place, %5$s completion date, %6$s verification ID |
| 5156 | -(0,z.__)("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,L.jsx)("br",{}),(0,z.sprintf)( | |
| 5196 | +(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)( | |
| 5157 | 5197 | // translators: %s verification ID |
| 5158 | 5198 | // translators: %s verification ID |
| 5159 | -(0,z.__)("Academy LMS Pro Codes: %s","ablocks"),"{{verification_id}}")]})});return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{title:(0,z.__)("Title","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),description:p,attributeName:"heading",attributeValue:o,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("HTML Tag","ablocks"),options:Rt,isSearch:!0,attributeName:"headingTag",attributeValue:a,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:n,setAttributes:i,isInline:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 5160 | -attributeName:"typography",attributeValue:s,setAttributes:i,isResponsive:!0,showOnlyCustomFonts:!0,customFontsOption:iq,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:b,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"textStroke",attributeValue:c,setAttributes:i,isResponsive:!0})]})})})})})})}oq.propTypes={};const aq={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:"", | |
| 5199 | +(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:"", | |
| 5161 | 5201 | 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:"", |
| 5162 | 5202 | 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:"", |
| 5163 | 5203 | 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:"", |
| 5164 | 5204 | 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:"", |
| @@ -5166,16 +5206,16 @@ | ||
| 5166 | 5206 | 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:"", |
| 5167 | 5207 | 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:"", |
| 5168 | 5208 | 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", |
| 5169 | 5209 | 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}, |
| 5170 | -_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function lq(t){const{attributes:e,setAttributes:i}=t,{block_id:o,headingTag:a,alignment:n}=e;return(0,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:n,setAttributes:i,options:eq})}),(0,L.jsx)(BW,{blockId:o,name:aq.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsx)(C.RichText,{tagName:a,value:e.heading,className:"ablocks-block--certificate__heading-text",onChange:t=>i({heading:t}),placeholder:(0,z.__)("Enter your title…","ablocks")})})]})}lq.propTypes={};const nq=(t,e="")=>({...(0,Gt.qD)(t?.alignment,"text-align",e)}),sq=(t,e="")=>{const i=(0,M.Zy)(t.typography,{weight:"400"}),o=t.typographyGlobal?t.typographyGlobal:"",a={...(0,P.qD)(i,e,o),...(0, | |
| 5171 | -fc.qD)(t?.textStroke,e),...(0,pc.qD)(t?.textShadow)};return a.margin="0px",a.padding="0px",a};function rq(t){const{attributes:e}=t,{block_id:i,headingTag:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:aq.UU,attributes:e,children:(0,L.jsx)(C.RichText.Content,{tagName:o,className:"ablocks-block--certificate__heading-text",value:e.heading})})})}rq.propTypes={},((0,M.xV)(aq.UU,aq.$t[0],"academy_lms")||(0,M.xV)(aq.UU,aq.$t[0],"quizpress"))&&(0,o.registerBlockType)(aq.UU,{title:"Certificate Text",attributes:aq.uK,icon:(0,L.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 j(i,l);s.addClassStyles("{{WRAPPER}}",nq(i),nq(i,"Tablet"),nq(i,"Mobile"));const r=sq(i);i?.textColor&&(r.color=i.textColor), | |
| 5172 | -s.addClassStyles("{{WRAPPER}} .ablocks-block--certificate__heading-text",r,sq(i,"Tablet"),sq(i,"Mobile"));const b=s.generateCSS();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:b}),e&&(0,L.jsx)(oq,{...t}),(0,L.jsx)(lq,{...t})]})},save:rq});var bq=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,z.__)("Select a Course","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0, | |
| 5173 | -L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Course Options","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(Ut,{options:S,label:(0,z.__)("Select Course","ablocks"),attributeValue:s,attributeName:"course_id",setAttributes:i}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"heading_typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:b,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_color_hover",attributeValue:c,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0, | |
| 5174 | -z.__)("Curriculum Header","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"title_color",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"title_bg",attributeValue:k,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"title_color_hover",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"title_bg_hover",attributeValue:v,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0, | |
| 5175 | -z.__)("Course Content Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"contentTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"contentColor",attributeValue:o,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"lesson_list_bg",attributeValue:h,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"contentColorH",attributeValue:a,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"lesson_list_hover",attributeValue:g,setAttributes:i})]})})]})})}),(0,L.jsxs)(D,{title:(0, | |
| 5176 | -z.__)("Icon Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)("h2",{className:"ablocks-settings-section-title",children:(0,z.__)("Lock Icon Style","ablocks")}),(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0,z.__)("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:bq.Yi}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"lock_icon_color",attributeValue:y,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"lock_icon_hover",attributeValue:f,setAttributes:i})})})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Read Icon Style","ablocks"),isResponsive:!1, | |
| 5177 | -isHeader:!0}),(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:0,max:200,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"readIconSize",attributeValue:H,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:bq.xY}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"read_icon_color",attributeValue:M,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"read_icon_hover",attributeValue:x,setAttributes:i})})})]})})]})]})})})}cq.propTypes={};const dq={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"}, | |
| 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, | |
| 5213 | +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 | +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 | +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"}, | |
| 5178 | 5218 | 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:"", |
| 5179 | 5219 | 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", |
| 5180 | 5220 | 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", |
| 5181 | 5221 | 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:"", |
| @@ -5185,232 +5225,234 @@ | ||
| 5185 | 5225 | 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", |
| 5186 | 5226 | 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:"", |
| 5187 | 5227 | 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:"", |
| 5188 | 5228 | 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", |
| 5189 | -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 uq(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:dq.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{ | |
| 5190 | -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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-course-curriculums",httpMethod:"POST",attributes:e})})})})}uq.propTypes={};const pq=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography,{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.heading_color)}},mq=(t,e="")=>({color:(0,gs.qD)(t?.heading_color_hover)}),hq=(t,e="")=>{const i=(0,M.Zy)(t?.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,gs.qD)(t?.title_color),background:(0,gs.qD)(t?.title_bg),...(0,P.qD)(i,e,o)}},gq=(t,e="")=>({color:(0,gs.qD)(t?.title_color_hover),background:(0,gs.qD)(t?.title_bg_hover)}),fq=(t,e="")=>{const i=(0, | |
| 5191 | -M.Zy)(t?.contentTypography,{weight:"400"});return t.contentTypographyGlobal&&t.contentTypographyGlobal,{...(0,P.qD)(i,e,i),color:(0,gs.qD)(t?.contentColor)}},yq=(t,e="")=>({color:(0,gs.qD)(t?.contentColorH)}),Tq=(t,e="")=>({background:(0,gs.qD)(t?.lesson_list_bg)||"#fff"}),Hq=(t,e="")=>({background:(0,gs.qD)(t?.lesson_list_hover)||"#fff"}),Mq=(t,e="")=>({color:(0,gs.qD)(t?.lock_icon_color),...(0,Ob.qD)({attributeValue:t?.lock_icon_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),xq=(t,e="")=>({color:(0,gs.qD)(t?.lock_icon_hover)}),kq=(t,e="")=>({color:(0,gs.qD)(t?.read_icon_color),...(0,Ob.qD)({attributeValue:t?.readIconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),vq=(t,e="")=>({color:(0,gs.qD)(t?.read_icon_hover)});(0,M.xV)(dq.UU,"","academy_lms")&&(0,o.registerBlockType)(dq.UU,{title:"Course Curriculums", | |
| 5192 | -attributes:dq.uK,icon:(0,L.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=new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--curriculum .academy-curriculum-title",pq(i,""),pq(i,"Tablet"),pq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--curriculum .academy-curriculum-title:hover",mq(i,""),mq(i,"Tablet"),mq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title",hq(i,""),hq(i,"Tablet"),hq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-accordion a.academy-accordion__title:hover",gq(i,""),gq(i,"Tablet"),gq(i,"Mobile")), | |
| 5193 | -t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title",fq(i,""),fq(i,"Tablet"),fq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-entry-title:hover",yq(i,""),yq(i,"Tablet"),yq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item",Tq(i,""),Tq(i,"Tablet"),Tq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item:hover",Hq(i,""),Hq(i,"Tablet"),Hq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i",Mq(i,""),Mq(i,"Tablet"),Mq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-control .academy-btn-play i:hover",xq(i,""),xq(i,"Tablet"),xq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",kq(i,""),kq(i,"Tablet"),kq(i,"Mobile")), | |
| 5194 | -t.addClassStyles("{{WRAPPER}} .academy-lesson-list__item .academy-entry-content .academy-icon::before",vq(i,""),vq(i,"Tablet"),vq(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(cq,{...t}),(0,L.jsx)(uq,{...t})]})},save:()=>null});var _q=i(75799);function Rq(t){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:U,listColorH:P,listColor:j,listTypography:w,startSize:A,startT:N,starColorH:I,starColor:V,fillBg:O,fillBgH:Y,fillT:X,fillAT:B,fillABg:E,fillABgH:F}=e,q=at(),$=(0, | |
| 5195 | -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,z.__)("Select a Course","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Heading Style Options","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"heading_typography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1, | |
| 5196 | -attributeName:"heading_hover_color",attributeValue:n,setAttributes:i})})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Rating Section","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"section_bg",attributeValue:p,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"section_bg_hover",attributeValue:m,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:u,attributeName:"transition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:b, | |
| 5197 | -setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Boz Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:c,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:d,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Average Rating","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Rating Icon Size","ablocks"),min:0,step:1,max:100,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:x,attributeName:"rating_size",setAttributes:i,attributeDefaultValue:_q.Dz}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"section_width",attributeObjectKey:"value",attributeValue:v,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",unitOptions:[{value:"px",label:"px"},{value:"%",label:"%"},{ | |
| 5198 | -value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vw",label:"vw"}],min:0,max:["vw","%"].includes(v["valueUnit"+q]??"%")?100:1600,attributeDefaultValue:_q.sj,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"section_height",attributeObjectKey:"value",attributeValue:k,setAttributes:i,isInline:!1,hasUnit:!0,attributeDataType:"object",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:_q.r6,autoSyncRange:!0})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"avg_typography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0, | |
| 5199 | -z.__)("Color","ablocks"),isResponsive:!1,attributeName:"avg_color",attributeValue:g,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"avg_color_hover",attributeValue:y,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:f,attributeName:"avg_transition",setAttributes:i})]})}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"rating_color",attributeValue:T,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"rating_color_hover",attributeValue:H,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"), | |
| 5200 | -min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:M,attributeName:"rating_transition",setAttributes:i})]})})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Text","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"total_typography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"total_rating_color",attributeValue:S,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"total_rating_hover",attributeValue:W,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:_, | |
| 5201 | -attributeName:"total_transition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Fill Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"fillBg",attributeValue:O,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillBgH",attributeValue:Y,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:X,attributeName:"fillT",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Active Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0, | |
| 5202 | -L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"fillABg",attributeValue:E,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillABgH",attributeValue:F,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:B,attributeName:"fillAT",setAttributes:i})]})})]}),(0,L.jsx)(D,{title:(0,z.__)("Feedback Overview","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:0,max:500,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:A,attributeName:"startSize",setAttributes:i,attributeDefaultValue:_q.Dz}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:w,setAttributes:i,isResponsive:!0, | |
| 5203 | -attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:j,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:P,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:U,attributeName:"listT",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:V,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0, | |
| 5204 | -z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:I,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:N,attributeName:"startT",setAttributes:i})]})})]})})})]})})})}Rq.propTypes={};const Sq={UU:"ablocks/academy-course-reviews",uK:{block_id:{type:"string",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", | |
| 5205 | -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:{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"}}, | |
| 5206 | -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",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:"", | |
| 5207 | -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:"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", | |
| 5208 | -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:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0, | |
| 5209 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"", | |
| 5210 | -unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},transition:{type:"number",default:0},avg_transition:{type:"number",default:0},startT:{type:"number",default:0},rating_transition:{type:"number",default:0},total_transition:{type:"number",default:0},listT:{type:"number",default:0},fillT:{type:"number",default:0},fillAT:{type:"number",default:0},rating_size:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},section_height:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},section_width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"", | |
| 5211 | -valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},startSize:{type:"object",default:{value:12,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",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"", | |
| 5212 | -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, | |
| 5213 | -commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px", | |
| 5214 | -hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 5215 | -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:"", | |
| 5216 | -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:"", | |
| 5217 | -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:"", | |
| 5218 | -maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{ | |
| 5219 | -type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function Wq(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:Sq.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-course-reviews",httpMethod:"POST",attributes:e})})})})}Wq.propTypes={};const Uq=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typography,{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.heading_color)}},Pq=(t,e="")=>({color:(0, | |
| 5220 | -gs.qD)(t?.heading_color_hover)}),jq=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.section_bg)||"#fff",...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.section_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.section_height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},wq=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,gs.qD)(t?.section_bg_hover)||"#fff",...(0,H.a9)(t?.boxShadow,e),...(0,y.a9)(i,e),...(0,Ob.qD)({attributeValue:t?.transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}},zq=(t,e="")=>{const i=(0, | |
| 5221 | -M.Zy)(t?.avg_typography,{weight:"400"}),o=t.avg_typographyGlobal?t.avg_typographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.avg_color)}},Cq=(t,e="")=>({color:(0,gs.qD)(t?.avg_color_hover),...(0,Ob.qD)({attributeValue:t?.avg_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Aq=(t,e="")=>({color:(0,gs.qD)(t?.rating_color),...(0,Ob.qD)({attributeValue:t?.rating_size,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),Lq=(t,e="")=>({color:(0,gs.qD)(t?.rating_color_hover),...(0,Ob.qD)({attributeValue:t?.rating_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Dq=(t,e="")=>{const i=(0,M.Zy)(t?.total_typography,{weight:"400"}),o=t.total_typographyGlobal?t.total_typographyGlobal:"";return{color:(0, | |
| 5222 | -gs.qD)(t?.total_rating_color),...(0,P.qD)(i,e,o)}},Nq=(t,e="")=>({color:(0,gs.qD)(t?.total_rating_hover),...(0,Ob.qD)({attributeValue:t?.total_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Iq=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography,{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.listColor)}},Vq=(t,e="")=>({color:(0,gs.qD)(t?.listColorH),...(0,Ob.qD)({attributeValue:t?.listT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Oq=(t,e="")=>({color:(0,gs.qD)(t?.starColor),...(0,Ob.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),Yq=(t,e="")=>({color:(0,gs.qD)(t?.starColorH),...(0,Ob.qD)({attributeValue:t?.startT, | |
| 5223 | -attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Xq=(t,e="")=>({background:(0,gs.qD)(t?.fillBg)||"#e7e7e7"}),Bq=(t,e="")=>({background:(0,gs.qD)(t?.fillBgH)||"#e7e7e7",...(0,Ob.qD)({attributeValue:t?.fillT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),Eq=(t,e="")=>({background:(0,gs.qD)(t?.fillABg)||"#f4c150"}),Fq=(t,e="")=>({background:(0,gs.qD)(t?.fillABgH)||"#f4c150",...(0,Ob.qD)({attributeValue:t?.fillT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});(0,M.xV)(Sq.UU,"","academy_lms")&&(0,o.registerBlockType)(Sq.UU,{title:"Course Reviews",attributes:Sq.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/academy-lms.svg",alt:"logo"}),edit:function(t){ | |
| 5224 | -const{isSelected:e,attributes: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 w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .feedback-title",Uq(i,""),Uq(i,"Tablet"),Uq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .feedback-title:hover",Pq(i,""),Pq(i,"Tablet"),Pq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings",jq(i,""),jq(i,"Tablet"),jq(i,"Mobile")),t.addClassStyles("{{WRAPPER}}.academy-single-course__content-item--feedback .academy-student-course-feedback-ratings:hover",wq(i,""),wq(i,"Tablet"),wq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating",zq(i,""),zq(i,"Tablet"),zq(i,"Mobile")), | |
| 5225 | -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating:hover",Cq(i,""),Cq(i,"Tablet"),Cq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-html .academy-icon::before",Aq(i,""),Aq(i,"Tablet"),Aq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-html .academy-icon:hover::before",Lq(i,""),Lq(i,"Tablet"),Lq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-total",Dq(i,""),Dq(i,"Tablet"),Dq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-avg-rating-total:hover",Nq(i,""),Nq(i,"Tablet"),Nq(i,"Mobile")), | |
| 5226 | -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",Iq(i,""),Iq(i,"Tablet"),Iq(i,"Mobile")), | |
| 5227 | -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",Vq(i,""),Vq(i,"Tablet"),Vq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-icon",Oq(i,""),Oq(i,"Tablet"),Oq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-icon:hover",Yq(i,""),Yq(i,"Tablet"),Yq(i,"Mobile")), | |
| 5228 | -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill",Xq(i,""),Xq(i,"Tablet"),Xq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill",Bq(i,""),Bq(i,"Tablet"),Bq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--feedback .academy-student-course-feedback-ratings .academy-ratings-list-item .academy-ratings-list-item-fill-bar",Eq(i,""),Eq(i,"Tablet"),Eq(i,"Mobile")),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",Fq(i,""),Fq(i,"Tablet"),Fq(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Rq,{ | |
| 5229 | -...t}),(0,L.jsx)(Wq,{...t})]})},save:()=>null});var qq=i(72045);function $q(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:U,formBorder:P,formBtnTypography:j,formBtnColorH:w,formBtnColor:A,formBtnBgH:N,formBtnBg:I,formBtnT:V,formBtnPadding:O}=e,Y=at(),X=(0,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,z.__)("Select a Course","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0, | |
| 5230 | -z.__)("Layout Options","ablocks"),initialOpen:!0,children:(0,L.jsx)(Ut,{options:E,label:(0,z.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})}),(0,L.jsx)(D,{title:(0,z.__)("Average Rating Section","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0,z.__)("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",label:"vw"}],min:0,max:["vw","%"].includes(a["valueUnit"+Y]??"%")?100:1600,attributeDefaultValue:qq.sectionWidth,autoSyncRange:!0}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"review_bg", | |
| 5231 | -attributeValue:b,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"review_bg_hover",attributeValue:s,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"box_transition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:c,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:d,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border", | |
| 5232 | -attributeValue:u,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Button Setting","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"review_btn_typography",attributeValue:g,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"review_btn",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"review_btn_bg",attributeValue:T,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"review_btn_hover",attributeValue:m,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"review_btn_bg_hover",attributeValue:y, | |
| 5233 | -setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:h,attributeName:"btn_transition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Section Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"button_padding",attributeValue:f,setAttributes:i})]}),(0,L.jsx)(D,{title:(0,z.__)("From Section","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0,z.__)("Star Width","ablocks"),min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:k,attributeName:"startSize",setAttributes:i,attributeDefaultValue:qq.U2}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1, | |
| 5234 | -attributeName:"starColor",attributeValue:M,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:H,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:x,attributeName:"startT",setAttributes:i})]})})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("From Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"formTypography",attributeValue:v,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"formBg",attributeValue:_,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1, | |
| 5235 | -attributeName:"formColor",attributeValue:W,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"formBgH",attributeValue:R,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"formColorH",attributeValue:U,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:S,attributeName:"formTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"formBorder",attributeValue:P,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Form Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"formBtnTypography",attributeValue:j,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0, | |
| 5236 | -L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"formBtnColor",attributeValue:A,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"formBtnBg",attributeValue:I,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"formBtnColorH",attributeValue:w,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"formBtnBgH",attributeValue:N,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:V,attributeName:"formBtnT",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0, | |
| 5237 | -L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"formBtnPadding",attributeValue:O,setAttributes:i})]})]})})})}$q.propTypes={};const Gq={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"},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:{ | |
| 5238 | -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:"",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", | |
| 5239 | -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:"",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:{ | |
| 5240 | -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:"",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, | |
| 5241 | -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:""}},formBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 5242 | -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:"", | |
| 5243 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},formBtnPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 5244 | -isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},button_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:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},box_width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},startSize:{type:"object",default:{value:16, | |
| 5245 | -valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},box_transition:{type:"number",default:0},btn_transition:{type:"number",default:0},startT:{type:"number",default:0},formTransition:{type:"number",default:0},formBtnT:{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:"", | |
| 5246 | -customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px", | |
| 5247 | -unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"", | |
| 5248 | -hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 5249 | -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:"", | |
| 5250 | -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:"", | |
| 5251 | -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:{ | |
| 5252 | -type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}}, | |
| 5253 | -_hide_on_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 Zq(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:Gq.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-review-form",httpMethod:"POST",attributes:e})})})})}Zq.propTypes={};const Kq=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0, | |
| 5254 | -gs.qD)(t?.review_bg),...(0,H.qD)(t?.boxShadow,e),...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,Ob.qD)({attributeValue:t?.box_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e})}},Jq=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{background:(0,gs.qD)(t?.review_bg_hover),...(0,y.a9)(i,e),...(0,H.a9)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.box_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}},Qq=(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,gs.qD)(t?.review_btn),background:(0,gs.qD)(t?.review_btn_bg),...(0,c.qD)(i,"padding",e),...(0,P.qD)(o,e,a)}},t$=(t,e="")=>({color:(0,gs.qD)(t?.review_btn_hover),background:(0, | |
| 5255 | -gs.qD)(t?.review_btn_hover_bg),...(0,Ob.qD)({attributeValue:t?.btn_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),e$=(t,e="")=>({color:(0,gs.qD)(t?.starColor)||"#f4c150",...(0,Ob.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:40,unitDefaultValue:"px",property:"font-size",device:e})}),i$=(t,e="")=>({color:(0,gs.qD)(t?.starColorH)||"#f4c150"}),o$=(t,e="")=>{const i=(0,M.Zy)(t?.formTypography??[],{weight:"400"}),o=t.formTypographyGlobal?t.formTypographyGlobal:"",a=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{color:(0,gs.qD)(t?.formColor)||"#444",background:(0,gs.qD)(t?.fromBg)||"#E5E4E6",...(0,P.qD)(i,e,o),...(0,y.qD)(a,e)}},a$=(t,e="")=>{const i=(0,M.Zy)(t.formBorder??[],{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,gs.qD)(t?.formColorH)||"#444",background:(0,gs.qD)(t?.fromBgH)||"#E5E4E6",...(0,y.a9)(i,e),...(0,Ob.qD)({ | |
| 5256 | -attributeValue:t?.formTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}},l$=(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,gs.qD)(t?.formBtnColor),background:(0,gs.qD)(t?.formBtnBg),...(0,c.qD)(i,"padding",e),...(0,P.qD)(o,e,a)}},n$=(t,e="")=>({color:(0,gs.qD)(t?.formBtnColorH),background:(0,gs.qD)(t?.formBtnBgH),...(0,Ob.qD)({attributeValue:t?.formBtnT,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});function s$(t){ | |
| 5257 | -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):[],U=W?W.map(t=>({label:t.title?.rendered,value:t.id})):[];return U.unshift({label:(0,z.__)("Select a Course","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Avatar Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("Avatar Height","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:n,attributeName:"avatarHeight",setAttributes:i | |
| 5258 | -}),(0,L.jsx)(vt,{label:(0,z.__)("Avatar Width","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:a,attributeName:"avatarWidth",setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Author Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"authorTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"authorColor",attributeValue:c,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"authorHoverColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1, | |
| 5259 | -attributeValue:s,attributeName:"authorTransition",setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Date Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"dateTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"dateColor",attributeValue:m,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"dateHoverColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:u,attributeName:"dateTransition",setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0, | |
| 5260 | -z.__)("Description Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"desColor",attributeValue:T,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"desHoverColor",attributeValue:f,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:g,attributeName:"desTransition",setAttributes:i})]})})]}),(0,L.jsx)(D,{title:(0,z.__)("Rating Summary","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0, | |
| 5261 | -z.__)("star Icon size","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:v,attributeName:"iconSize",setAttributes:i}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"sumTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Summary Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"sumColor",attributeValue:M,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"sumColorH",attributeValue:x,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:H,attributeName:"sumTransition",setAttributes:i})]})}),(0, | |
| 5262 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"iconColor",attributeValue:_,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"iconColorH",attributeValue:R,setAttributes:i})})})]})})})]})})})}(0,M.xV)(Gq.UU,"","academy_lms")&&(0,o.registerBlockType)(Gq.UU,{title:"Reviews Form",attributes:Gq.uK,icon:(0,L.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?new w(i,l):new j(i,l), | |
| 5263 | -t?(t.addClassStyles("{{WRAPPER}} .academy-review-form,\n\t\t\t {{WRAPPER}}.academy-review-form--open-form .comment-respond",Kq(i,""),Kq(i,"Tablet"),Kq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-form:hover,\n\t\t\t{{WRAPPER}} .academy-review-form--open-form .comment-respond:hover",Jq(i,""),Jq(i,"Tablet"),Jq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review",Qq(i,""),Qq(i,"Tablet"),Qq(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review:hover",t$(i,""),t$(i,"Tablet"),t$(i,"Mobile")),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",e$(i,""),e$(i,"Tablet"),e$(i,"Mobile")), | |
| 5264 | -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,""),i$(i,"Tablet"),i$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea",o$(i,""),o$(i,"Tablet"),o$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea:hover",a$(i,""),a$(i,"Tablet"),a$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]",l$(i,""),l$(i,"Tablet"),l$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-form input[type=submit]:hover",n$(i,""),n$(i,"Tablet"),n$(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)($q,{...t}),(0,L.jsx)(Zq,{...t})]})},save:()=>null}),s$.propTypes={};const r$={UU:"ablocks/academy-review-list", | |
| 5265 | -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:""},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:"", | |
| 5266 | -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:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},dateTypography:{ | |
| 5267 | -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:{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", | |
| 5268 | -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:{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:"", | |
| 5269 | -unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"", | |
| 5270 | -topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 5271 | -isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"", | |
| 5272 | -imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"", | |
| 5273 | -imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"",rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"", | |
| 5274 | -rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"",rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"", | |
| 5275 | -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", | |
| 5276 | -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 b$(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:r$.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily, | |
| 5277 | -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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-review-list",httpMethod:"POST",attributes:e})})})})}b$.propTypes={};const c$=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.avatarHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"px",property:"height",device:e}),...(0,Ob.qD)({attributeValue:t?.avatarWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:50,unitDefaultValue:"px",property:"width",device:e})}),d$=(t,e="")=>{const i=(0,M.Zy)(t?.authorTypography??"",{weight:"400"}),o=t.authorTypographyGlobal?t.authorTypographyGlobal:"";return{color:(0,gs.qD)(t?.authorColor)||"#111",...(0,P.qD)(i,e,o)}},u$=(t,e="")=>({color:(0, | |
| 5278 | -gs.qD)(t?.authorHoverColor)||"#111",...(0,Ob.qD)({attributeValue:t?.authorTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),p$=(t,e="")=>{const i=(0,M.Zy)(t?.dateTypography??"",{weight:"400"}),o=t.dateTypographyGlobal?t.dateTypographyGlobal:"";return{color:(0,gs.qD)(t?.dateColor)||"#111",...(0,P.qD)(i,e,o)}},m$=(t,e="")=>({color:(0,gs.qD)(t?.dateHoverColor)||"#111",...(0,Ob.qD)({attributeValue:t?.dateTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),h$=(t,e="")=>{const i=(0,M.Zy)(t?.desTypography??"",{weight:"400"}),o=t.desTypographyGlobal?t.desTypographyGlobal:"";return{color:(0,gs.qD)(t?.desColor)||"#111",...(0,P.qD)(i,e,o)}},g$=(t,e="")=>({color:(0,gs.qD)(t?.desHoverColor)||"#111",...(0,Ob.qD)({attributeValue:t?.desTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0, | |
| 5279 | -unitDefaultValue:"s",property:"transition-duration",device:e})}),f$=(t,e="")=>{const i=(0,M.Zy)(t?.sumTypography??[],{weight:"400"}),o=t.sumTypographyGlobal?t.sumTypographyGlobal:"";return{color:(0,gs.qD)(t?.sumColor)||"#111",...(0,P.qD)(i,e,o)}},y$=(t,e="")=>({color:(0,gs.qD)(t?.sumColorH)||"#111",...(0,Ob.qD)({attributeValue:t?.sumTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),T$=(t,e="")=>({color:(0,gs.qD)(t?.iconColor)||"#f4c150",...(0,Ob.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:16,unitDefaultValue:"px",property:"font-size",device:e})}),H$=(t,e="")=>({color:(0,gs.qD)(t?.btnTextColor)||"#f4c150"});function M$(t){ | |
| 5280 | -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,z.__)("Select a Course","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Layout Options","ablocks"),initialOpen:!0,children:(0,L.jsx)(Ut,{options:x,label:(0,z.__)("Select Course","ablocks"),attributeValue:o,attributeName:"course_id",setAttributes:i})}),(0,L.jsxs)(D,{title:(0,z.__)("Heading Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 5281 | -attributeName:"headingTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"headingColor",attributeValue:b,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"headingColorH",attributeValue:s,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"headingTransition",setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("list Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0, | |
| 5282 | -L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:p,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:u,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:c,attributeName:"listTransition",setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Tab Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"tabTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1, | |
| 5283 | -attributeName:"tabColor",attributeValue:h,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"tabColorH",attributeValue:g,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:f,attributeName:"tabTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Margin","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"listMargin",attributeValue:T,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"listBorder",attributeValue:y,setAttributes:i})]})]})})})}(0,M.xV)(r$.UU,"","academy_lms")&&(0,o.registerBlockType)(r$.UU,{title:"Review List",attributes:r$.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon", | |
| 5284 | -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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail img",c$(i,""),c$(i,"Tablet"),c$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author",d$(i,""),d$(i,"Tablet"),d$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author:hover",u$(i,""),u$(i,"Tablet"),u$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date",p$(i,""),p$(i,"Tablet"),p$(i,"Mobile")), | |
| 5285 | -t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date:hover",m$(i,""),m$(i,"Tablet"),m$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p",h$(i,""),h$(i,"Tablet"),h$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p:hover",g$(i,""),g$(i,"Tablet"),g$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review_container",f$(i,""),f$(i,"Tablet"),f$(i,"Mobile")),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")), | |
| 5286 | -t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i",T$(i,""),T$(i,"Tablet"),T$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i:hover",H$(i,""),H$(i,"Tablet"),H$(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(s$,{...t}),(0,L.jsx)(b$,{...t})]})},save:()=>null}),i(92731),M$.propTypes={};const x$={UU:"ablocks/academy-addition-info",uK:{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"},headingTypographyGlobal:{type:"string",default:""}, | |
| 5287 | -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",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:"", | |
| 5288 | -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",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:{ | |
| 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){ | |
| 5235 | +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 | +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 | +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, | |
| 5240 | +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 | +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 | +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", | |
| 5245 | +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 | +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 | +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 | +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:"", | |
| 5249 | +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, | |
| 5250 | +commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},transition:{type:"number",default:0},avg_transition:{ | |
| 5251 | +type:"number",default:0},startT:{type:"number",default:0},rating_transition:{type:"number",default:0},total_transition:{type:"number",default:0},listT:{type:"number",default:0},fillT:{type:"number",default:0},fillAT:{type:"number",default:0},rating_size:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},section_height:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},section_width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},startSize:{type:"object",default:{value:12,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:"", | |
| 5252 | +commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"", | |
| 5253 | +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, | |
| 5254 | +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:"", | |
| 5255 | +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 | +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 | +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 | +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, | |
| 5271 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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:"", | |
| 5283 | +leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},formBorder:{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:"", | |
| 5284 | +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:"", | |
| 5285 | +unitRadiusHMobile:"",transitionDuration:""}},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},formBtnPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},button_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:""}}, | |
| 5286 | +boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},box_width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},startSize:{type:"object",default:{value:16,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},box_transition:{type:"number",default:0},btn_transition:{type:"number",default:0},startT:{type:"number",default:0},formTransition:{type:"number",default:0},formBtnT:{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:"", | |
| 5287 | +unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px", | |
| 5288 | +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:"", | |
| 5289 | +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", | |
| 5290 | +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 | +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 | +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 | +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, | |
| 5299 | +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 | +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 | +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 | +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:""}, | |
| 5307 | +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 | +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 | +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 | +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:{ | |
| 5311 | +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:"", | |
| 5312 | +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:"", | |
| 5313 | +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:"", | |
| 5314 | +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 | +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 | +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 | +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, | |
| 5322 | +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 | +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:{ | |
| 5328 | +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 | +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 | +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 | +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:"", | |
| 5332 | +rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},listMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},headingTransition:{type:"number",default:0},listTransition:{type:"number",default:0},tabTransition:{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:"", | |
| 5333 | +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, | |
| 5334 | +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:"", | |
| 5335 | +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:"", | |
| 5336 | +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 | +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 | +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 | +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, | |
| 5346 | +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 | +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 | +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 | +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 | +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 | +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:"", | |
| 5354 | +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", | |
| 5355 | +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 | +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 | +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 | +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 | |
| 5363 | +}),(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:""}, | |
| 5367 | +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 | +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 | +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 | +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:"", | |
| 5371 | +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:"",imgAttachment:"",imgRepeat:"", | |
| 5372 | +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 | +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 | +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 | +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){ | |
| 5378 | +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 | +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 | +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 | +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 | +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:{ | |
| 5385 | +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 | +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 | +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 | +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:{ | |
| 5389 | +type:"object",default:{value:14,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",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{ | |
| 5289 | 5390 | 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:"", |
| 5290 | -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:""}},listMargin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"", | |
| 5291 | -bottomMobile:"",leftMobile:"",unitMobile:""}},headingTransition:{type:"number",default:0},listTransition:{type:"number",default:0},tabTransition:{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:"", | |
| 5292 | -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, | |
| 5293 | -commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px", | |
| 5294 | -hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 5295 | -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:"", | |
| 5296 | -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:"", | |
| 5297 | -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:"", | |
| 5298 | -maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{ | |
| 5299 | -type:"boolean",default:!1},_custom_css:{type:"string",default:""}}};function k$(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{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},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-addition-info",httpMethod:"POST",attributes:e})})})})}k$.propTypes={};const v$=(t,e="")=>{const i=(0,M.Zy)(t?.headingTypography??"",{weight:"400"}),o=t.headingTypographyGlobal?t.headingTypographyGlobal:"";return{color:(0,gs.qD)(t?.headingColor)||"#111",...(0,P.qD)(i,e,o)}},_$=(t,e="")=>({color:(0, | |
| 5300 | -gs.qD)(t?.headingColorH)||"#111",...(0,Ob.qD)({attributeValue:t?.headingTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),R$=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography??"",{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,gs.qD)(t?.listColor)||"#111",...(0,P.qD)(i,e,o)}},S$=(t,e="")=>({color:(0,gs.qD)(t?.listColorH)||"#111",...(0,Ob.qD)({attributeValue:t?.listTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),W$=(t,e="")=>{const i=(0,M.Zy)(t?.tabTypography??"",{weight:"400"}),o=t.tabTypographyGlobal?t.tabTypographyGlobal:"";return{color:(0,gs.qD)(t?.tabColor)||"#111",...(0,P.qD)(i,e,o)}},U$=(t,e="")=>({color:(0,gs.qD)(t?.tabColorH)||"#111",...(0,Ob.qD)({attributeValue:t?.tabTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0, | |
| 5301 | -unitDefaultValue:"s",property:"transition-duration",device:e})}),P$=(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)}},j$=(t,e="")=>({color:(0,gs.qD)(t?.activeColorH)||"#111"});(0,M.xV)(x$.UU,"","academy_lms")&&(0,o.registerBlockType)(x$.UU,{title:"Addition Info",attributes:x$.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title",v$(i,""),v$(i,"Tablet"),v$(i,"Mobile")), | |
| 5302 | -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title:hover",_$(i,""),_$(i,"Tablet"),_$(i,"Mobile")),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",R$(i,""),R$(i,"Tablet"),R$(i,"Mobile")),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",S$(i,""),S$(i,"Tablet"),S$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a",W$(i,""),W$(i,"Tablet"),W$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a:hover",U$(i,""),U$(i,"Tablet"),U$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active",P$(i,""),P$(i,"Tablet"),P$(i,"Mobile")), | |
| 5303 | -t.addClassStyles("{{WRAPPER}} .academy-tabs-nav li.active:hover",j$(i,""),j$(i,"Tablet"),j$(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(M$,{...t}),(0,L.jsx)(k$,{...t})]})},save:()=>null});var w$=i(37807);function z$(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Avatar Style","ablocks"),initialOpen:!0,children:[(0,L.jsx)(vt,{label:(0,z.__)("Avatar Height","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:o,attributeName:"avatarH",setAttributes:i,attributeDefaultValue:w$.Ae}),(0,L.jsx)(vt,{label:(0, | |
| 5304 | -z.__)("Avatar Width","ablocks"),min:0,max:200,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:a,attributeName:"avatarW",setAttributes:i,attributeDefaultValue:w$.Hy})]}),(0,L.jsxs)(D,{title:(0,z.__)("Title Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"titleColor",attributeValue:s,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"titleColorH",attributeValue:b,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n, | |
| 5305 | -attributeName:"titleTransition",setAttributes:i})]})})]}),(0,L.jsx)(D,{title:(0,z.__)("Review style","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0,z.__)("Icon size","ablocks"),min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:m,attributeName:"star_size",setAttributes:i,attributeDefaultValue:w$.Sg}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"textTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Review Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"textColor",attributeValue:d,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"textColorH",attributeValue:u,setAttributes:i | |
| 5306 | -}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:p,attributeName:"textTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Icon color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"star_color",attributeValue:g,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"star_colorH",attributeValue:h,setAttributes:i})})})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Instructor Name Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"insTypography",attributeValue:f,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0, | |
| 5307 | -L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"insColor",attributeValue:y,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"insColorH",attributeValue:T,setAttributes:i})})})]})]})})})}z$.propTypes={};const C$={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:""}, | |
| 5308 | -titleTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},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:"", | |
| 5309 | -lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},insTypography:{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"}},titleTransition:{type:"number",default:0},textTransition:{type:"number",default:0},avatarH:{type:"object",default:{value:62, | |
| 5310 | -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:"",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:{ | |
| 5311 | -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:"", | |
| 5312 | -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:{ | |
| 5313 | -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:"", | |
| 5314 | -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:"", | |
| 5315 | -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:"", | |
| 5316 | -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:"", | |
| 5317 | -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:"", | |
| 5318 | -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 A$(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:C$.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-course-instructor",httpMethod:"POST",attributes:e})})})})}A$.propTypes={};const L$=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.avatarH,attributeObjectKey:"value", | |
| 5319 | -isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px",property:"height",device:e}),...(0,Ob.qD)({attributeValue:t?.avatarW,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:62,unitDefaultValue:"px",property:"width",device:e})}),D$=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography??"",{weight:"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,gs.qD)(t?.titleColor)||"#111",...(0,P.qD)(i,e,o)}},N$=(t,e="")=>({color:(0,gs.qD)(t?.titleColorH)||"#111",...(0,Ob.qD)({attributeValue:t?.titleTransition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),I$=(t,e="")=>{const i=(0,M.Zy)(t?.textTypography??[],{weight:"400"}),o=t.textTypographyGlobal?t.textTypographyGlobal:"";return{color:(0,gs.qD)(t?.textColor)||"#111",...(0,P.qD)(i,e,o)}},V$=(t,e="")=>({color:(0,gs.qD)(t?.star_color)||"#111",...(0,Ob.qD)({attributeValue:t?.star_size,attributeObjectKey:"value", | |
| 5320 | -isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})}),O$=(t,e="")=>{const i=(0,M.Zy)(t?.insTypography??[],{weight:"400"}),o=t.insTypographyGlobal?t.insTypographyGlobal:"";return{color:(0,gs.qD)(t?.insColor)||"#111",...(0,P.qD)(i,e,o)}};function Y$(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Overview Heading","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"heading_typography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1, | |
| 5321 | -attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_colorH",attributeValue:s,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"heading_transition",setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Description Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"description_typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"description_color",attributeValue:r,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1, | |
| 5322 | -attributeName:"description_colorH",attributeValue:b,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:d,attributeName:"description_transition",setAttributes:i})]})})]})]})})})}(0,M.xV)(C$.UU,"","academy_lms")&&(0,o.registerBlockType)(C$.UU,{title:"Course Instructor",attributes:C$.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__thumbnail img",L$(i,""),L$(i,"Tablet"),L$(i,"Mobile")), | |
| 5323 | -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",D$(i,""),D$(i,"Tablet"),D$(i,"Mobile")),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",N$(i,""),N$(i,"Tablet"),N$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span",I$(i,""),I$(i,"Tablet"),I$(i,"Mobile")), | |
| 5324 | -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating .academy-group-star .academy-icon:before",V$(i,""),V$(i,"Tablet"),V$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-name a",O$(i,""),O$(i,"Tablet"),O$(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(z$,{...t}),(0,L.jsx)(A$,{...t})]})},save:()=>null}),Y$.propTypes={};const X$={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:""},description_typographyGlobal:{type:"string", | |
| 5325 | -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",fontSizeUnitMobile:"px",lineHeightTablet:"", | |
| 5326 | -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:"",bottomMobile:"",leftMobile:"",unitMobile:""}}, | |
| 5327 | -_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:"", | |
| 5328 | -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", | |
| 5329 | -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:"", | |
| 5330 | -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:"", | |
| 5331 | -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:"", | |
| 5332 | -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:"", | |
| 5333 | -yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"0",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default", | |
| 5334 | -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 B$(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{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},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-course-description",httpMethod:"POST",attributes:e})})})})}B$.propTypes={};const E$=(t,e="")=>{const i=(0, | |
| 5335 | -M.Zy)(t?.heading_typography??"",{weight:"400"}),o=t.heading_typographyGlobal?t.heading_typographyGlobal:"";return{color:(0,gs.qD)(t?.heading_color)||"#111",...(0,P.qD)(i,e,o)}},F$=(t,e="")=>({color:(0,gs.qD)(t?.heading_colorH)||"#111",...(0,Ob.qD)({attributeValue:t?.heading_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})}),q$=(t,e="")=>{const i=(0,M.Zy)(t?.description_color??"",{weight:"400"}),o=t.description_colorGlobal?t.description_colorGlobal:"";return{color:(0,gs.qD)(t?.description_color)||"#111",...(0,P.qD)(i,e,o)}},$$=(t,e="")=>({color:(0,gs.qD)(t?.description_colorH)||"#444",...(0,Ob.qD)({attributeValue:t?.description_transition,attributeObjectKey:"value",isResponsive:!1,hasUnit:!1,defaultValue:0,unitDefaultValue:"s",property:"transition-duration",device:e})});function G$(t){ | |
| 5336 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Content Style","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Icon Size","ablocks"),min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:s,attributeName:"iconSize",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Button Icon Size","ablocks"),min:0,max:100,step:1,hasUnit:!0,isInline:!1,isResponsive:!0,attributeValue:v,attributeName:"buttonIconSize",setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{ | |
| 5337 | -children:[(0,L.jsx)(ot,{label:(0,z.__)("Content Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"contentBg",attributeValue:n,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"contentBgH",attributeValue:a,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Transition Duration(ms)","ablocks"),min:0,max:5,step:.1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:o,attributeName:"contentTransition",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"iconColor",attributeValue:r,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0, | |
| 5338 | -z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"iconColorH",attributeValue:b,setAttributes:i})})})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("List Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:d,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:u,setAttributes:i})})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Share Button","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"shareTypography",attributeValue:f,setAttributes:i, | |
| 5339 | -isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"shareColor",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"shareBg",attributeValue:p,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"shareColorH",attributeValue:g,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"shareBgH",attributeValue:m,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"shareBorder",attributeValue:T,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"), | |
| 5340 | -isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"sharePadding",attributeValue:y,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("WishList Button","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"wishlistColor",attributeValue:x,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"wishlistBg",attributeValue:H,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"wishlistColorH",attributeValue:k,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),isResponsive:!1,attributeName:"wishlistBgH",attributeValue:M,setAttributes:i})]})})]})]})})})}(0, | |
| 5341 | -M.xV)(X$.UU,"","academy_lms")&&(0,o.registerBlockType)(X$.UU,{title:"Course Description",attributes:X$.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description-title",E$(i,""),E$(i,"Tablet"),E$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description-title:hover",F$(i,""),F$(i,"Tablet"),F$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description p\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--description ",q$(i,""),q$(i,"Tablet"),q$(i,"Mobile")), | |
| 5342 | -t.addClassStyles("{{WRAPPER}} .academy-single-course__content-item--description p:hover\n\t\t\t{{WRAPPER}} .academy-single-course__content-item--description:hover",$$(i,""),$$(i,"Tablet"),$$(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Y$,{...t}),(0,L.jsx)(B$,{...t})]})},save:()=>null}),i(61392),G$.propTypes={};const Z$={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:{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:{ | |
| 5343 | -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",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},shareTypography:{type:"object",default:{fontFamily:"",weight:"400",transform:"",style:"",decoration:"",fontSize:"", | |
| 5344 | -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:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"", | |
| 5345 | -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:"", | |
| 5346 | -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:{type:"object",default:{value:14,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"", | |
| 5347 | -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:"", | |
| 5348 | -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:"", | |
| 5349 | -leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"", | |
| 5350 | -imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 5351 | -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, | |
| 5352 | -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:"", | |
| 5353 | -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", | |
| 5354 | -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 K$(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:Z$.UU,attributes:e,typography:[{ | |
| 5355 | -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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/academy-enroll-content",httpMethod:"POST",attributes:e})})})})}K$.propTypes={};const J$=(t,e="")=>({background:(0,gs.qD)(t?.contentBg)||"#fff"}),Q$=(t,e="")=>({color:(0,gs.qD)(t?.iconColor)||"#595959",...(0,Ob.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})}),tG=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography??[],{weight:"400"}),o=t.listTypographyGlobal?t.listTypographyGlobal:"";return{color:(0,gs.qD)(t?.listColor)||"#111",...(0, | |
| 5356 | -P.qD)(i,e,o)}},eG=(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,gs.qD)(t?.shareColor)||"#fff",background:(0,gs.qD)(t?.shareBg)||"#7b68ee",...(0,P.qD)(i,e,o),...(0,y.qD)(l,e),...(0,c.qD)(a,"padding",e)}},iG=(t,e="")=>({color:(0,gs.qD)(t?.wishlistColor)||"#fff",background:(0,gs.qD)(t?.wishlistBg)||"#7b68ee"}),oG=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.buttonIconSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:14,unitDefaultValue:"px",property:"font-size",device:e})});(0,M.xV)(Z$.UU,"","academy_lms")&&(0,o.registerBlockType)(Z$.UU,{title:"Enroll Content",attributes:Z$.uK,icon:(0,L.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, | |
| 5357 | -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 w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists",J$(i,""),J$(i,"Tablet"),J$(i,"Mobile")),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",Q$(i,""),Q$(i,"Tablet"),Q$(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__content-lists li",tG(i,""),tG(i,"Tablet"),tG(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn",eG(i,""),eG(i,"Tablet"),eG(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-course__wishlist",iG(i,""),iG(i,"Tablet"),iG(i,"Mobile")), | |
| 5358 | -t.addClassStyles("{{WRAPPER}} .academy-widget-enroll__wishlist-and-share .academy-btn i.academy-icon",oG(i,""),oG(i,"Tablet"),oG(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(G$,{...t}),(0,L.jsx)(K$,{...t})]})},save:()=>null});const aG=window.wp.plugins,lG=window.wp.editPost,nG=window.wp.keyboardShortcuts;var sG=i(14030) | |
| 5359 | -;const rG=[...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"] | |
| 5360 | -;M.W0?.enabled_block_copy_paste_style&&(0,Yr.KU)()&&(0,aG.registerPlugin)("ablocks-block-copy-paste-styles",{render:()=>{const{registerShortcut:t}=(0,r.useDispatch)(nG.store);return(0,a.useEffect)(()=>{t({name:"ablocks/copy-styles",category:"block",description:(0,z.__)("Copy Block Styles","ablocks"),keyCombination:{modifier:"primaryShift",character:"c"}}),t({name:"ablocks/paste-styles",category:"block",description:(0,z.__)("Paste Block Styles","ablocks"),keyCombination:{modifier:"primaryShift",character:"v"}})},[]),(0,nG.useShortcut)("ablocks/copy-styles",t=>{(0,sG._)(),t.preventDefault()}),(0,nG.useShortcut)("ablocks/paste-styles",t=>{(0,sG.G)(),t.preventDefault()}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(lG.PluginBlockSettingsMenuItem,{allowedBlocks:rG,icon:"admin-page",label:(0,z.__)("aBlocks Copy Styles","ablocks"),onClick:sG._}),(0,L.jsx)(lG.PluginBlockSettingsMenuItem,{allowedBlocks:rG,icon:"admin-appearance",label:(0,z.__)("aBlocks Paste Styles","ablocks"),onClick:sG.G})]})} | |
| 5361 | -}),(0,aG.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) | |
| 5391 | +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:"", | |
| 5392 | +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:"", | |
| 5393 | +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 | +_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 | +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 | +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) | |
| 5362 | 5404 | ;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") |
| 5363 | -;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,L.jsx)(L.Fragment,{}))});const bG={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"},dG=({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,L.jsxs)("div",{className:"ablocks-bpm",children:[(0,L.jsxs)("div",{className:"ablocks-bpm__head",style:{display:"flex",gap:8,marginBottom:6,fontSize:11,fontWeight:600, | |
| 5364 | -textTransform:"uppercase",letterSpacing:"0.03em",color:"var(--abpm-muted, #6b7280)"},children:[(0,L.jsx)("span",{style:{flex:1},children:(0,z.__)("Label","ablocks")}),(0,L.jsx)("span",{style:{width:90},children:(0,z.__)("Min","ablocks")}),(0,L.jsx)("span",{style:{width:90},children:(0,z.__)("Max","ablocks")}),(0,L.jsx)("span",{style:{width:98}})]}),0===i.length&&(0,L.jsx)("p",{style:{margin:"0 0 8px",color:"var(--abpm-muted, #6b7280)",fontSize:13},children:(0,z.__)("No custom breakpoints yet.","ablocks")}),i.map((t,l)=>{return(0,L.jsxs)("div",{className:"ablocks-bpm__row",style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,L.jsx)("input",{type:"text",placeholder:(0,z.__)("e.g. Laptop","ablocks"),value:t.label||"",onChange:t=>o(l,"label",t.target.value),style:{...cG,flex:1}}),(0,L.jsx)("input",{type:"number",placeholder:"–",value:t.minWidth??"",onChange:t=>o(l,"minWidth",t.target.value),style:{...cG,width:90}}),(0,L.jsx)("input",{type:"number",placeholder:"–", | |
| 5365 | -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,L.jsx)("button",{type:"button",title:(0,z.__)("Move up","ablocks"),disabled:0===l,onClick:()=>a(l,-1),style:{...bG,opacity:0===l?.4:1},children:"↑"}),(0,L.jsx)("button",{type:"button",title:(0,z.__)("Move down","ablocks"),disabled:l===i.length-1,onClick:()=>a(l,1),style:{...bG,opacity:l===i.length-1?.4:1},children:"↓"}),(0,L.jsx)("button",{type:"button",title:(0,z.__)("Remove","ablocks"),onClick:()=>(t=>e(i.filter((e,i)=>i!==t)))(l),style:{...bG,color:"#ef4444"},children:"×"})]},t.key||l);var n}),(0,L.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, | |
| 5366 | -z.__)("+ Add breakpoint","ablocks")}),(0,L.jsx)("p",{style:{margin:"8px 0 0",color:"var(--abpm-muted, #6b7280)",fontSize:12},children:(0,z.__)("Set a min and/or max width. Order controls the cascade (top = widest).","ablocks")})]})},uG={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"}},pG=t=>(0, | |
| 5367 | -r.dispatch)("core/edit-post")?.__experimentalSetPreviewDeviceType?.(t);(0,aG.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(q)?.getCustomDevice()||null,devices:t(q)?.getDevices()||[]}),[]),o="Desktop"!==t?t:e||"Desktop",[l,n]=(0,a.useState)(!1),[s,b]=(0,a.useState)([]),[c,d]=(0,a.useState)(!1),u=(0,L.jsxs)("div",{className:"ablocks-bp-switcher",style:uG.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,L.jsx)("button",{type:"button",style:uG.item(o===t.id),title:e?`${t.label} (${e})`:t.label,onClick:()=>(t=>{F.includes(t.id)?((0,r.dispatch)(q).setCustomDevice(null),pG(t.id)):(pG("Desktop"),(0,r.dispatch)(q).setCustomDevice(t.id))})(t),children:F.includes(t.id)?(0,L.jsx)("span",{className:`ablocks-icon ablocks-icon--${$(t.id)}`,style:{ | |
| 5368 | -fontSize:"15px",lineHeight:1}}):(0,L.jsx)("span",{style:{fontSize:"11px",fontWeight:700},children:t.max||t.min})},t.id)}),(0,L.jsx)("button",{type:"button",style:uG.manage,title:(0,z.__)("Manage breakpoints","ablocks"),onClick:async()=>{const t=await(0,M.In)({action:"ablocks/breakpoints/get"}).then(t=>t?.data?.data);b(Array.isArray(t?.custom)?t.custom:[]),n(!0)},children:(0,L.jsx)("span",{className:"dashicons dashicons-admin-generic",style:{fontSize:"16px",width:"16px",height:"16px"}})})]});return(0,L.jsxs)(L.Fragment,{children:[(0,co.createPortal)(u,document.body),l&&(0,L.jsxs)(A.Modal,{title:(0,z.__)("Responsive Breakpoints","ablocks"),onRequestClose:()=>n(!1),className:"ablocks-bp-modal",children:[(0,L.jsx)(dG,{value:s,onChange:b}),(0,L.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:16},children:[(0,L.jsx)(A.Button,{variant:"tertiary",onClick:()=>n(!1),children:(0,z.__)("Cancel","ablocks")}),(0,L.jsx)(A.Button,{variant:"primary",isBusy:c, | |
| 5369 | -onClick:async()=>{d(!0);try{await(t=s,(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)(q).setDevices(e.devices),e}))}finally{d(!1),n(!1)}var t},children:(0,z.__)("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":{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 | |
| 5370 | -}),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={...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}, | |
| 5371 | -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);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||""), | |
| 5372 | -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":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, | |
| 5373 | -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":{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}, | |
| 5374 | -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||{},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} | |
| 5375 | -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={...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}, | |
| 5376 | -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":{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), | |
| 5377 | -n&&(i.starIconRotated={...i?.starIconRotated||{},value:n},i.starIconRotate=void 0);break}}return i}),(0,z.__)("All","ablocks"),(0,z.__)("Free","ablocks");const mG=({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})=>{if(!t.success)throw r("error",(0,z.__)("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,L.jsxs)("aside",{className:"ablocks-demo-importer-category-sidebar",children:[(0,L.jsx)("div",{className:"ablocks-demo-importer-logo",children:(0,L.jsx)("img",{ | |
| 5378 | -alt:"ablocks-demo-importer-logo",src:b})}),(0,L.jsx)("ul",{className:"ablocks-demo-importer-category-sidebar__items",children:c?.map((t,o)=>(0,L.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,L.jsxs)("span",{children:["(",u(t),")"]})]},o))})]})},hG={title:I().string,subtitle:I().string,largeModalMarginTop:I().string,isOpen:I().bool,isEnabledHeader:I().bool,isEnabledResizer:I().bool,onAfterOpen:I().func,onRequestClose:I().func,style:I().object,externalComponent:I().object,suffix:I().string,size:I().string,isSmallAvailable:I().bool,isLargeAvailable:I().bool};function gG({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, | |
| 5379 | -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;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nj(),{isOpen:b,onAfterOpen:n,onRequestClose:r,contentLabel:i,style:g,shouldCloseOnOverlayClick:!1,ariaHideApp:!0,children:(0,L.jsxs)("div",{className:f,children:[c&&(0,L.jsxs)("div",{className:"ablocks-react-modal__head",children:[i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h3",{className:"ablocks-react-modal__head-title",children:i}),o&&(0,L.jsxs)("p",{children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"}),o]})] | |
| 5380 | -}),(0,L.jsx)("div",{className:"ablocks-react-modal-buttons",children:(0,L.jsx)(V,{type:"button",onClick:()=>r(),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),className:"ablocks-btn-close-modal"})})]}),(0,L.jsxs)("div",{className:y,children:[!c&&(0,L.jsx)(V,{type:"button",onClick:()=>r(),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close"}),className:"ablocks-btn-close-modal"}),t]})]})})})}document.getElementById("ablockswrap")?Nj().setAppElement("#ablockswrap"):document.getElementById("ablocksLessonsWrap")?Nj().setAppElement("#ablocksLessonsWrap"):document.getElementById("ablocksFrontendDashWrap")?Nj().setAppElement("#ablocksFrontendDashWrap"):document.getElementById("ablocksFrontendModalWrap")&&Nj().setAppElement("#ablocksFrontendModalWrap"),gG.propTypes=hG | |
| 5381 | -;const fG=({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,L.jsxs)(gG,{isOpen:n,suffix:"ablocks-demo-importer-dependency",onRequestClose:()=>t(!1),title:(0,z.__)("Dependencies list","ablocks"),children:[e.length&&e?.map((t,e)=>{const i=t?.status?.activated&&t?.status?.installed,o=i?(0,z.__)("Installed and Activated","ablocks"):(0,z.__)("Install and Activate","ablocks");return(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-demo-importer-dependency--card",children:[(0,L.jsxs)("h3",{className:"ablocks-demo-importer-dependency--card__title",children:[i?"✅":"⚠️"," ",t?.name]}),(0,L.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,L.jsx)(A.Spinner,{}):o})]},e)})}),(0, | |
| 5382 | -L.jsxs)("div",{className:"ablocks-demo-importer-dependency-detail",children:[(0,L.jsx)("p",{className:"ablocks-demo-importer-dependency-detail--text",children:r?(0,z.__)("You're good to go","ablocks"):(0,z.__)("All dependencies are not installed and activated","ablocks")}),(0,L.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,L.jsx)(A.Spinner,{}):(0,L.jsx)(L.Fragment,{children:r?(0,z.__)("Import Now","ablocks"):(0,z.__)("Install & activate","ablocks")})})]})]});var yG=i(31921);const TG={label:I().oneOfType([I().object,I().string]),size:I().string,className:I().string,preset:I().string,bg:I().string,onClick:I().func,type:I().string,link:I().string,isLoading:I().bool,loadingLabel:I().string,loadingStatus:I().string,icon:I().any,iconPosition:I().string,border:I().string,borderRadius:I().string,isCircle:I().bool, | |
| 5383 | -isDisabled:I().bool,style:I().object,suffix:I().string,target:I().string,isPro:I().bool},HG=({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),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,L.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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.Spinner,{}),r&&(0,L.jsx)("span",{className:"ablocks-btn--label",children:r})]}):(0,L.jsx)(L.Fragment,{ | |
| 5384 | -children:t&&(0,L.jsx)("span",{className:"ablocks-btn--label",children:t})}),"right"===c&&b,!y&&(0,L.jsx)("span",{className:"ablocks-pro-badge",children:(0,z.__)("PRO","ablocks")})]})}return(0,L.jsxs)("button",{className:i||H.join(" "),type:l,onClick:a,disabled:p||s,style:h,id:T,children:["right"!==c&&!s&&b,s?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A.Spinner,{}),r&&(0,L.jsx)("span",{className:"ablocks-btn--label",children:r})]}):(0,L.jsx)(L.Fragment,{children:t&&(0,L.jsx)("span",{className:"ablocks-btn--label",children:t})}),"right"===c&&!s&&b,!y&&(0,L.jsx)("span",{className:"ablocks-pro-badge",children:(0,z.__)("PRO","ablocks")})]})};HG.propTypes=TG;const MG=HG,xG=({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,L.jsxs)(L.Fragment,{ | |
| 5385 | -children:[(0,L.jsx)("div",{className:"ablocks-demo-importer-view-header",children:(0,L.jsxs)("div",{className:"ablocks-demo-importer-view-header-title",children:[(0,L.jsx)(MG,{suffix:"back-btn",preset:"white",size:"sm",onClick:()=>l(!1),icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"})}),(0,L.jsx)("h3",{children:o?.title?o?.title:e[0]?.title})]})}),(0,L.jsxs)("div",{className:"ablocks-demo-importer-view-template",children:[(0,L.jsx)("div",{className:"ablocks-demo-importer-view--template-placeholder",children:(0,L.jsx)(yG.LazyLoadImage,{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,L.jsxs)("div",{className:"ablocks-demo-importer-view--template-items",children:[(0,L.jsxs)("div",{className:"ablocks-demo-importer-view",children:[(0,L.jsxs)("p",{className:"ablocks-demo-importer-view__header", | |
| 5386 | -children:[(0,L.jsx)("span",{className:"ablocks-demo-importer-view__title",children:b.title}),(0,L.jsx)("span",{className:"ablocks-demo-importer-view__sub-header",children:b.cost_type})]}),(0,L.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,L.jsxs)("div",{className:"ablocks-demo-importer-item "+(o===t?"ablocks-demo-importer-item--active":""),role:"presentation",onClick:()=>{a(t)},children:[(0,L.jsxs)("div",{className:"ablocks-demo-importer-view-template-thumbnail",children:[(0,L.jsx)("div",{className:"ablocks-demo-importer-thumbnail__image",children:(0,L.jsx)("div",{className:"ablocks-demo-importer-thumbnail-placeholder",style:i??c})}),t.isPro&&(0,L.jsx)("div",{className:"pro-badge",children:(0,z.__)("Pro","ablocks")})]}),(0,L.jsx)("h4",{ | |
| 5387 | -className:"ablocks-demo-importer-title",children:t.title})]},e)})})]}),(0,L.jsx)("div",{className:"ablocks-demo-importer-view-actions",children:(0,L.jsxs)("div",{className:"ablocks-demo-importer-view-actions__container",children:[(0,L.jsxs)("div",{className:"ablocks-demo-importer-view-actions__container__checkbox",children:[(0,L.jsx)("input",{id:"select-page",type:"checkbox",checked:d,onChange:()=>s({itemId:o.post_id,isChecked:!n.isChecked})}),(0,L.jsx)("label",{htmlFor:"select-page",children:(0,z.__)("Import with image","ablocks")})]}),(0,L.jsx)("button",{onClick:()=>{i(o,!0,r)},className:"ablocks-demo-import-btn--import-theme",children:t?.currentIndex===r?(0,L.jsx)(A.Spinner,{}):(0,z.__)("Import Theme","ablocks")}),(0,L.jsx)(MG,{label:(0,z.__)("Live Preview","ablocks"),type:"link",target:"_blank",link:o?.demo_url,size:"md",suffix:"live-preview"})]})})]})]})]})},kG={placeholder:I().string,onSearchHandler:I().func};function vG({placeholder:t=(0, | |
| 5388 | -z.__)("Search…","ablocks"),defaultValue:e="",onSearchHandler:i=()=>{}}){const[o,n]=(0,a.useState)(e),s=(0,a.useCallback)(ie(t=>{i(t)},1e3),[i]);return(0,L.jsx)(l().Fragment,{children:(0,L.jsxs)("div",{className:"ablocks-search-component",children:[(0,L.jsx)("span",{className:"ablocks-search-component__search ablocks-icon ablocks-icon--search"}),(0,L.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,L.jsx)("button",{onClick:()=>{o&&(n(""),s(""))},className:"ablocks-search-component__control",children:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--close"})})]})})}vG.propTypes=kG;const _G=({tabs:t,selectedTab:e,setSelectedTemplatePages:i,setTemplatePage:o,searchTerm:a,onInputChangeHandler:l,setPaginationData:n,setSearchTerm:s,setSelectedTab:r,setSelectedCategory:b})=>(0,L.jsxs)("header",{className:"ablocks-demo-importer-library-header", | |
| 5389 | -children:[(0,L.jsx)("div",{className:"ablocks-demo-importer-library-header-tabs",children:t.map((t,a)=>(0,L.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,L.jsx)(vG,{placeholder:(0,z.sprintf)(/* translators: %s: selected tab name (e.g. "templates") */ /* translators: %s: selected tab name (e.g. "templates") */ | |
| 5390 | -(0,z.__)("Search %s…","ablocks"),e.toLowerCase()),defaultValue:a,onSearchHandler:t=>{s(t.trim()),l(t.trim())}})]}),RG=({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,U]=(0,a.useState)({currentIndex:null,isLoading:!1}),[P,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",C="template"===i?(0,z.__)("View","ablocks"):(0,z.__)("Import","ablocks"),D=ie(t=>{d("",t)},1e3),N=async(t,e=null)=>{let i;U({currentIndex:e,isLoading:!0});for(let e=0;e<t.length;e++){const o=t[e];i=await(0,M.In)({ | |
| 5391 | -action:"ablocks/install_and_active",dependency:o}).catch(t=>{U({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),U({currentIndex:null,isLoading:!1})}}else U({currentIndex:null,isLoading:!1}),u("error",(0,z.__)("Something went wrong!","ablocks"))},I=async(t,e=null)=>{U({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),U({currentIndex:null,isLoading:!1}))}else U({currentIndex:null,isLoading:!1})}catch(t){return U({currentIndex:null,isLoading:!1}),!1}},V=async(t={},e=!1,o=null)=>{U({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){ | |
| 5392 | -if("template"===i)return void I(l.data,o);I(t,o)}else b(l.data.pages),_(l.data.pages[0]),U({currentIndex:null,isLoading:!1})}catch(t){U({currentIndex:null,isLoading:!1}),u("error",t.message)}},O=async(t,e=null,o=!1)=>{U({currentIndex:e,isLoading:!0});let a={id:t?.id??t?.post_id};return(P||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)),U({currentIndex:null,isLoading:!1}),H(!1),p(!1),u("success",(0,z.sprintf)( | |
| 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":{ | |
| 5412 | +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 | +...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 | +;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 | +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 | +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 | +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 | +...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 | |
| 5422 | +;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 | +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 | +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 | +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 | +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)({ | |
| 5433 | +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 | +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)( | |
| 5393 | 5435 | // translators: %s: selectedTab |
| 5394 | 5436 | // translators: %s: selectedTab |
| 5395 | -(0,z.__)("%s inserted successfully!","ablocks"),i)),y({itemId:null,isChecked:!1})}else U({currentIndex:null,isLoading:!1}),u("error",(0,z.__)("Content is missing!","ablocks"))}).catch(t=>{U({currentIndex:null,isLoading:!1}),u("error",t.message)})};return(0,L.jsxs)("main",{className:"ablocks-demo-importer-content",children:[!r&&(0,L.jsx)(_G,{setSelectedCategory:m,tabs:t,selectedTab:i,setSelectedTemplatePages:b,setTemplatePage:_,searchTerm:n,onInputChangeHandler:D,setPaginationData:e,setSearchTerm:s,setSelectedTab:l}),c?(0,L.jsx)("div",{className:"ablocks-loading-spinner",children:(0,L.jsx)(A.Spinner,{})}):(0,L.jsx)(L.Fragment,{children:r?(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(xG,{selectedTab:i,importDemo:O,installDependencies:N,importLoading:W,fetchTemplateData:V,templatePage:v,templatePages:r,setTemplatePage:_,selectedItem:x,currentIndex:R,importWithImage:f,setImportWithImage:y,setSelectedTemplatePages:b})}):(0,L.jsx)("div",{className:"ablocks-demo-importer-wrap",children:(0, | |
| 5396 | -L.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,L.jsxs)("div",{className:"ablocks-demo-importer-item",children:[(0,L.jsxs)("div",{className:"ablocks-demo-importer-thumbnail "+(W?.currentIndex===e&&x===t?"ablocks-thumbnail-active":""),children:[(0,L.jsxs)("div",{className:"ablocks-demo-importer-overlay",children:[(0,L.jsx)(MG,{onClick:()=>{k(t),S(e),"template"!==i?I(t,e):V(t,!1,e)},suffix:"card-import",isLoading:W?.currentIndex===e&&x===t,label:C}),"template"!==i&&(0,L.jsxs)("div",{className:"ablocks-demo-importer-overlay--import-with-image",children:[(0,L.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 | |
| 5397 | -})}}),(0,L.jsx)("label",{htmlFor:"select-card",children:(0,z.__)("Import with Image","ablocks")})]})]}),(0,L.jsx)("div",{className:"ablocks-demo-importer-thumbnail__image",children:(0,L.jsx)("div",{className:"ablocks-demo-importer-thumbnail-placeholder",style:a??w})}),t.isPro&&(0,L.jsx)("div",{className:"pro-badge",children:(0,z.__)("Pro","ablocks")})]}),(0,L.jsx)("h4",{className:"ablocks-demo-importer-title",children:t.title})]},e)})})})}),T&&(0,L.jsx)(fG,{openModal:T,isOpenModal:H,data:h,selectedItem:x,selectedTab:i,importDemo:O,installDependencies:N,importLoading:W,fetchTemplateData:V,templatePage:v,currentIndex:R,allDependenciesIsInstalled:P}),0===o.length&&(0,L.jsx)("p",{className:"no-results",children:(0,z.__)("No results found","ablocks")})]})},SG={totalItems:I().number,currentPageNumber:I().number,fetchHandler:I().func,rowsPerPage:I().number},WG=({totalItems:t=0,currentPageNumber:e=1,fetchHandler:i=()=>{},rowsPerPage:o=10})=>{const[l,n]=(0, | |
| 5398 | -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,L.jsxs)("div",{className:"ablocks-pagination",children:[d&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(V,{icon:(0,L.jsxs)("span",{children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"})]}),onClick:()=>{u(1)}}),(0,L.jsx)(V,{icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-left"}),onClick:()=>{u(l-1)}})]}),b.length>1&&(0,L.jsx)("ul",{className:"ablocks-pagination-list",children:(()=>{const t=[];if(b.length<=5)b.forEach((e,i)=>{const o=(0,L.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, | |
| 5399 | -L.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,L.jsx)("li",{className:"ablocks-pagination-list__item ablocks-pagination-list__item-dots",children:"..."},"dots"));const e=(0,L.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,L.jsx)("li",{className:"ablocks-pagination-list__item",onClick:()=>{u(1)},role:"presentation",children:1},1);t.push(e),t.push((0,L.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,L.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,L.jsx)("li",{className:"ablocks-pagination-list__item",onClick:()=>{u(1)}, | |
| 5400 | -role:"presentation",children:1},1);t.push(e),t.push((0,L.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,L.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,L.jsx)("li",{className:"ablocks-pagination-list__item ablocks-pagination-list__item-dots",children:"..."},"dots-end"));const i=(0,L.jsx)("li",{className:"ablocks-pagination-list__item",onClick:()=>{u(s)},role:"presentation",children:s},s);t.push(i)}return t})()}),c&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(V,{icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"}),onClick:()=>{u(l+1)}}),(0,L.jsx)(V,{icon:(0,L.jsxs)("span",{children:[(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"}),(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--angle-right"})]}), | |
| 5401 | -onClick:()=>{u(b.length)}})]})]})};WG.propTypes=SG;const UG=WG,PG=[{label:(0,z.__)("Pattern","ablocks"),value:"pattern"},{label:(0,z.__)("Template","ablocks"),value:"template"},{label:(0,z.__)("Page","ablocks"),value:"page"}],jG=(wG=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, | |
| 5402 | -r.useDispatch)("core/notices"),R=(t,e="success")=>{v(e,t,{type:"snackbar",isDismissible:!0})},S=!f&&""===d;return(0,L.jsxs)("div",{className:"ablocks-demo-importer-library",children:[(0,L.jsxs)("div",{className:"ablocks-demo-importer-library-body",children:[!f&&(0,L.jsx)(mG,{showSnackbar:R,selectedTab:o,selectedCategory:n,setSelectedCategory:s,selectedType:b,setSelectedType:c,setSearchTerm:u,setPaginationData:H}),(0,L.jsx)(RG,{tabs:PG,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,L.jsx)(UG,{totalItems:T.total,currentPageNumber:T.page,fetchHandler:t=>x(t)}),(0,L.jsx)(A.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,L.jsx)("div",{className:"ablocks-loading-spinner",children:(0, | |
| 5403 | -L.jsx)(A.Spinner,{})}):(0,L.jsx)(wG,{...t})});var wG;(0,aG.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,z.__)("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,L.jsx)(L.Fragment,{children:t&&(0,L.jsxs)(gG,{suffix:"ablocks-demo-importer",isOpen:t, | |
| 5404 | -onRequestClose:()=>e(!1),title:(0,z.__)("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,L.jsx)(MG,{icon:(0,L.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,L.jsx)(jG,{setIsOpen:e,isSyncLoading:i})]})})}});const zG=({type:t,attributes:e,setAttributes:i,storeEngineTerms:o})=>{let a=(0,z.__)("products Ids","ablocks"),l="products_ids",n=e?.products_ids||"",s=(0,z.__)("products Categories","ablocks"),r="products_categories",b=e?.products_categories||"",c=(0,z.__)("products Tags","ablocks"),d="products_tags",u=e?.products_tags||"";"exclude"===t&&(a=(0,z.__)("Exclude products Ids","ablocks"),l="products_exclude_ids",n=e?.products_exclude_ids||"",s=(0, | |
| 5405 | -z.__)("Exclude products Categories","ablocks"),r="products_exclude_categories",b=e?.products_exclude_categories||"",c=(0,z.__)("Exclude products Tags","ablocks"),d="products_exclude_tags",u=e?.products_exclude_tags||"");const p=o.categories||[],m=o.tags||[];return(0,L.jsxs)("div",{className:"ablocks-products-settings-include-exclude-options",children:[(0,L.jsx)(ae,{label:a,attributeName:l,attributeValue:n,onChangeHandler:t=>i({[l]:t||void 0}),placeholder:(0,z.__)("Enter products id's separated by comma","ablocks"),disableDynamicContent:!0}),(0,L.jsx)("i",{children:(0,z.__)("Enter products id's separated by comma","ablocks")}),(0,L.jsx)(Ut,{isMulti:!0,options:p,label:s,attributeValue:b||[],attributeName:r,setAttributes:i}),(0,L.jsx)(Ut,{isMulti:!0,options:m,label:c,attributeValue:u||[],attributeName:d,setAttributes:i})]})},CG=[{label:(0,z.__)("2","ablocks"),value:2},{label:(0,z.__)("3","ablocks"),value:3},{label:(0,z.__)("4","ablocks"),value:4},{label:(0,z.__)("6","ablocks"),value:6},{ | |
| 5406 | -label:(0,z.__)("12","ablocks"),value:12}],AG=((0,z.__)("Beginner","ablocks"),(0,z.__)("Intermediate","ablocks"),(0,z.__)("Expert","ablocks"),(0,z.__)("Free","ablocks"),(0,z.__)("Paid","ablocks"),[{label:(0,z.__)("Date","ablocks"),value:"date"},{label:(0,z.__)("Product Title","ablocks"),value:"title"},{label:(0,z.__)("Modified Date","ablocks"),value:"modified"}]),LG=[{label:(0,z.__)("Descending","ablocks"),value:"DESC"},{label:(0,z.__)("Ascending","ablocks"),value:"ASC"}];function DG(t){ | |
| 5407 | -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:U}=e,P={attributes:e,setAttributes:i,storeEngineTerms:o},j=[{title:(0,z.__)("Include","ablocks"),name:"include",render:(0,L.jsx)(zG,{type:"include",...P})},{title:(0,z.__)("Exclude","ablocks"),name:"exclude",render:(0,L.jsx)(zG,{type:"exclude",...P})}];return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Layout Options","ablocks"),initialOpen:!0,children:[(0,L.jsx)(Ut,{ | |
| 5408 | -options:CG,label:(0,z.__)("Products Columns","ablocks"),attributeValue:a,attributeName:"products_columns",setAttributes:i}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Pagination","ablocks"),attributeValue:n,setAttributes:i,attributeName:"show_pagination"})]}),(0,L.jsxs)(D,{title:(0,z.__)("Product Query","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Ut,{options:AG,label:(0,z.__)("Order By","ablocks"),attributeValue:s,attributeName:"order_by",setAttributes:i}),(0,L.jsx)(Ut,{options:LG,label:(0,z.__)("Order","ablocks"),attributeValue:b,attributeName:"products_order",setAttributes:i}),(0,L.jsx)($l,{tabs:j})]}),(0,L.jsxs)(D,{title:(0,z.__)("Products Card","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1 | |
| 5409 | -}),(0,L.jsx)(Kt,{label:(0,z.__)("Text Align","ablocks"),attributeName:"titleTextAlign",attributeValue:W,setAttributes:i,isInline:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:d,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:u,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Price","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Kt,{label:(0,z.__)("Text Align","ablocks"),attributeName:"priceTextAlign",attributeValue:U,setAttributes:i,isInline:!1}),(0,L.jsx)(Wc,{label:(0, | |
| 5410 | -z.__)("Typography","ablocks"),attributeName:"price_typography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"price_color",attributeValue:m,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Margin , Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"card_margin",attributeValue:y,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"card_padding",attributeValue:H,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mt,{label:(0,z.__)("Margin","ablocks"),isResponsive:!0,attributeName:"card_hover_margin",attributeValue:T,setAttributes:i}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"card_hover_padding",attributeValue:M,setAttributes:i})]})})]}),(0, | |
| 5411 | -L.jsx)(D,{title:(0,z.__)("Products Background","ablocks"),initialOpen:!1,children:(0,L.jsx)(ir,{isResponsive:!0,attributeName:"card_background",attributeValue:h,setAttributes:i})}),(0,L.jsxs)(D,{title:(0,z.__)("Products Border","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"card_border",attributeValue:g,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Products Cart Button","ablocks"),initialOpen:!1,children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,unitValue:S,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:S,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"cart_border",attributeValue:f,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Button Typography","ablocks"),attributeName:"cart_button_typography",attributeValue:x,setAttributes:i,isResponsive:!0,attributes:e | |
| 5412 | -}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),isGradient:!1,attributeName:"cart_button_text_color",attributeValue:R,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"cart_button_color",attributeValue:k,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Hover Color","ablocks"),isGradient:!1,attributeName:"cart_button_text_hover_color",attributeValue:_,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover Color","ablocks"),isGradient:!1,attributeName:"cart_button_hover_color",attributeValue:v,setAttributes:i})]})})]})]})})})}DG.propTypes={};const NG={UU:"ablocks/storeengine-products",uK:{block_id:{type:"string",default:""},products_ids:{type:"array",default:[]},products_categories:{type:"array",default:[]},products_tags:{ | |
| 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, | |
| 5440 | +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 | +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 | +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 | |
| 5451 | +}),(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 | +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 | +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:{ | |
| 5413 | 5455 | 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:""}, |
| 5414 | 5456 | 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:"", |
| 5415 | 5457 | 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", |
| 5416 | 5458 | 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", |
| @@ -5431,144 +5473,145 @@ | ||
| 5431 | 5473 | 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:""}}, |
| 5432 | 5474 | _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, |
| 5433 | 5475 | 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:"", |
| 5434 | 5476 | 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, |
| 5435 | -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function IG(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:NG.UU,attributes:e,typography:[{fontFamily:e.cat_typography?.fontFamily,weight:e.cat_typography?.weight},{fontFamily:e.title_typography?.fontFamily,weight:e.title_typography?.weight},{fontFamily:e.author_typography?.fontFamily,weight:e.author_typography?.weight},{fontFamily:e.rating_typography?.fontFamily,weight:e.rating_typography?.weight},{fontFamily:e.price_typography?.fontFamily,weight:e.price_typography?.weight}],children:(0, | |
| 5436 | -L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-products",httpMethod:"POST",attributes:e})})})})}IG.propTypes={};const VG=(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)}),OG=(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)}),YG=(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,gs.qD)(t.title_color),...(0,P.qD)(o,e,a)}},XG=(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,gs.qD)(t.price_color),...(0,P.qD)(o,e,a)} | |
| 5437 | -},BG=(t,e="")=>{const i=t?.cart_button_typographyGlobal?t?.cart_button_typographyGlobal:"",o=t?.cart_button_typography?(0,P.qD)(t?.cart_button_typography,e,i):[];return{...(0,y.qD)(t?.cart_border,e),color:(0,gs.qD)(t.cart_button_text_color),background:(0,gs.qD)(t?.cart_button_color),...o,...(0,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}},EG=(t,e="")=>({color:(0,gs.qD)(t.cart_button_text_hover_color),background:(0,gs.qD)(t?.cart_button_hover_color)});function FG(t){ | |
| 5438 | -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:U,form_border:P,login_btn_hover_color:j,login_btn_bg_hover_color:w,inputFieldColorH:A,input_field_bg_hover_color:N}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Form Settings","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0, | |
| 5439 | -z.__)("Form Title","ablocks"),attributeValue:o,setAttributes:i,attributeName:"form_title"}),(0,L.jsx)(ql,{label:(0,z.__)("Username Label","ablocks"),attributeValue:r,setAttributes:i,attributeName:"username_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Username Placeholder","ablocks"),attributeValue:b,setAttributes:i,attributeName:"username_placeholder"}),(0,L.jsx)(ql,{label:(0,z.__)("Password Label","ablocks"),attributeValue:c,setAttributes:i,attributeName:"password_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Password Placeholder","ablocks"),attributeValue:d,setAttributes:i,attributeName:"password_placeholder"}),(0,L.jsx)(ql,{label:(0,z.__)("Remember Label","ablocks"),attributeValue:u,setAttributes:i,attributeName:"remember_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Login Button Label","ablocks"),attributeValue:p,setAttributes:i,attributeName:"login_button_label"}),(0,L.jsx)(ql,{label:(0,z.__)("Reset Password Label","ablocks"),attributeValue:m,setAttributes:i,attributeName:"reset_password_label"}),(0, | |
| 5440 | -L.jsx)(ql,{label:(0,z.__)("Login Redirect Url","ablocks"),attributeValue:h,setAttributes:i,attributeName:"login_redirect_url"}),(0,L.jsx)(ql,{label:(0,z.__)("Logout Redirect Url","ablocks"),attributeValue:g,setAttributes:i,attributeName:"logout_redirect_url"}),(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Show Logged in Message","ablocks"),attributeValue:f,setAttributes:i,attributeName:"show_logged_in_message"})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ir,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"form_bg_color",attributeValue:v,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"form_padding",attributeValue:U,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0, | |
| 5441 | -L.jsx)(Rs,{attributeName:"form_border",attributeValue:P,setAttributes:i})]})})}),(0,L.jsxs)(D,{title:(0,z.__)("Form Title Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"title_typography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"title_color",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"title_hover_color",attributeValue:s,setAttributes:i})})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Input Field Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Input Label","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 5442 | -attributeName:"input_field_label_typography",attributeValue:x,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"input_field_label_color",attributeValue:M,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"input_field_label_hover_color",attributeValue:k,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Input Field","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"inputFieldColor",attributeValue:R,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"input_field_bg_color",attributeValue:_, | |
| 5443 | -setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Hover color","ablocks"),isGradient:!1,attributeName:"inputFieldColorH",attributeValue:A,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Hover background","ablocks"),isGradient:!1,attributeName:"input_field_bg_hover_color",attributeValue:N,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,attributeName:"input_field_padding",attributeValue:W,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"input_field_border",attributeValue:S,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Button Style","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"login_btn_typography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e | |
| 5444 | -}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_color",attributeValue:y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_color",attributeValue:T,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"login_btn_hover_color",attributeValue:j,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!1,attributeName:"login_btn_bg_hover_color",attributeValue:w,setAttributes:i})]})})]})]})})})}(0,M.xV)(NG.UU,"","storeengine")&&(0,o.registerBlockType)(NG.UU,{title:"Products",attributes:NG.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}),edit:function(t){ | |
| 5445 | -const{isSelected:e,attributes: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 j(i,l);return t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product",VG(i),VG(i,"Tablet"),VG(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product:hover",OG(i),OG(i,"Tablet"),OG(i,"Mobile")), | |
| 5446 | -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 ",YG(i),YG(i,"Tablet"),YG(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-ajax__amount .storeengine-product__simple-price",XG(i),XG(i,"Tablet"),XG(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn",BG(i),BG(i,"Tablet"),BG(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn:hover",EG(i),EG(i,"Tablet"),EG(i,"Mobile")),(0,b.applyFilters)("ablocks.storeengine-products.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:c}),e&&(0,L.jsx)(DG,{storeEngineTerms:s,...t}),(0,L.jsx)(IG,{...t})]})},save:()=>null}),FG.propTypes={};const qG={ | |
| 5447 | -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",default:"#6F5DD6"},login_btn_hover_color:{type:"string",default:"#fff"},title_color:{type:"string",default:"#000"}, | |
| 5448 | -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",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px", | |
| 5449 | -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:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 5450 | -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:"", | |
| 5451 | -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:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"", | |
| 5452 | -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:"", | |
| 5453 | -letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},input_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:"",rightWidthHMobile:"",bottomWidthHMobile:"", | |
| 5454 | -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_border:{type:"object",default:{borderStyle:"default", | |
| 5455 | -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:"", | |
| 5456 | -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:""}},input_field_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:"", | |
| 5457 | -leftMobile:"",unitMobile:""}},form_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:""}},_width:{type:"object", | |
| 5458 | -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:"", | |
| 5459 | -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:{ | |
| 5460 | -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:"", | |
| 5461 | -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:"", | |
| 5462 | -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:"", | |
| 5463 | -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:"", | |
| 5464 | -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:"", | |
| 5465 | -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 $G(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:qG.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},{ | |
| 5466 | -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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-login-form",httpMethod:"POST",attributes:e})})})})}$G.propTypes={};const GG=(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)}),ZG=(t,e="")=>({color:(0,gs.qD)(t?.inputFieldColor),background:(0,gs.qD)(t?.input_field_bg_color),...(0,y.qD)(t?.input_field_border,e),...(0,c.qD)(t?.input_field_padding,"padding",e)}),KG=t=>({color:(0,gs.qD)(t?.inputFieldColor)}),JG=(t,e="")=>({...(0,d.a9)(t?.form_bg_color,"background",e)}),QG=t=>({color:(0,gs.qD)(t?.login_btn_hover_color),background:(0,gs.qD)(t?.login_btn_bg_hover_color)}),tZ=(t,e="")=>{const i=(0,M.Zy)(t.login_btn_typography,{weight:"400" | |
| 5467 | -}),o=t.login_btn_typographyGlobal?t.login_btn_typographyGlobal:"";return{color:(0,gs.qD)(t?.login_btn_bg_color),...(0,P.qD)(i,e,o)}},eZ=(t,e="")=>{const i=(0,M.Zy)(t.title_typography,{weight:"400"}),o=t.title_typographyGlobal?t.title_typographyGlobal:"";return{color:(0,gs.qD)(t?.title_color),...(0,P.qD)(i,e,o)}},iZ=(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,gs.qD)(t?.form_footer_title_color),...(0,P.qD)(i,e,o)}},oZ=(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,gs.qD)(t?.input_field_label_color),...(0,P.qD)(i,e,o)}},aZ=t=>({color:(0,gs.qD)(t?.input_field_label_hover_color)});function lZ(t){ | |
| 5468 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{title:(0,z.__)("Table Background","ablocks"),initialOpen:!0,children:[" ",(0,L.jsx)(ot,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeName:"tableBackground",attributeValue:o,setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:a,attributeName:"tableBackgroundH",setAttributes:i}),(0,L.jsx)(vt,{label:(0, | |
| 5469 | -z.__)("Transition Duration (ms)","ablocks"),min:0,max:5,step:.01,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:n,attributeName:"tableTransition",setAttributes:i})]})})]}),(0,L.jsxs)(D,{title:(0,z.__)("Table Child Control","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Title","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"productTilteTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:r,attributeName:"productTitleColor",setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeValue:b,attributeName:"productTitleColorH",setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0, | |
| 5470 | -z.__)("Product SubTitle","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"productsubTitleTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:d,attributeName:"productSubTiteColor",setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeValue:u,attributeName:"productSubTiteColorH",setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Product Price","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"productPriceTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0, | |
| 5471 | -isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:m,attributeName:"productPriceColor",setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:h,attributeName:"productPriceColorH",setAttributes:i})})})]})]})})})}(0,M.xV)(qG.UU,"","storeengine")&&(0,o.registerBlockType)(qG.UU,{title:"Login Form",attributes:qG.uK,icon:(0,L.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 j(i,l);return t.addClassStyles("{{WRAPPER}} storeengine-login-form-wrapper .storeengine-form-group button",tZ(i),tZ(i,"Tablet"),tZ(i,"Mobile")), | |
| 5472 | -t.addClassStyles("{{WRAPPER}} storeengine-login-form-wrapper .storeengine-form-group button:hover",QG(i),QG(i),QG(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",iZ(i),iZ(i,"Tablet"),iZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-heading",eZ(i),eZ(i,"Tablet"),eZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-heading:hover",(t=>({color:(0,gs.qD)(t?.title_hover_color)}))(i)),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group label",oZ(i),oZ(i,"Tablet"),oZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group label:hover ",aZ(i),aZ(i),aZ(i)),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper",GG(i),GG(i,"Tablet"),GG(i,"Tablet")), | |
| 5473 | -t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper:hover",JG(i),JG(i,"Tablet"),JG(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input",ZG(i),ZG(i,"Tablet"),ZG(i,"Tablet")),t.addClassStyles("{{WRAPPER}} .storeengine-login-form-wrapper .storeengine-login-form .storeengine-form-group input::placeholder",KG(i),KG(i),KG(i)),(0,b.applyFilters)("ablocks.storeengine-login-form.editorInlineCSS",null,i,t)||t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(FG,{...t}),(0,L.jsx)($G,{...t})]})},save:()=>null}),lZ.propTypes={};const nZ={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:{type:"string",default:""},tableHeaderBackground:{type:"string",default:""},tableHeaderBackgroundH:{ | |
| 5474 | -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",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 5475 | -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:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", | |
| 5476 | -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",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px", | |
| 5477 | -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:""}},_border:{type:"object",default:{borderStyle:"default", | |
| 5478 | -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:"", | |
| 5479 | -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:"",vOffsetMobile:"", | |
| 5480 | -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:"",imgIdMobileH:"",imgUrlH:"", | |
| 5481 | -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:{ | |
| 5482 | -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, | |
| 5483 | -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:"", | |
| 5484 | -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, | |
| 5485 | -easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function sZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:nZ.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{ | |
| 5486 | -block:"ablocks/storeengine-cart-list",httpMethod:"POST",attributes:e})})})})}sZ.propTypes={};const rZ=(t,e="")=>({background:(0,gs.qD)(t?.tableBackground)}),bZ=(t,e="")=>({background:(0,gs.qD)(t?.tableHeaderBackground)}),cZ=(t,e="")=>{const i=(0,M.Zy)(t?.tableHeaderTypography,{"font-weight":"400"}),o=t.tableHeaderTypographyGlobal?t.tableHeaderTypographyGlobal:"";return{...(0,P.qD)(i,e,o)}},dZ=(t,e="")=>{const i=t?.productTitleTypography?t?.productTitleTypography:[],o=t.productTitleTypographyGlobal?t.productTitleTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.productTitleColor)}},uZ=(t,e="")=>{const i=(0,M.Zy)(t?.productsubTitleTypography??"",{"font-weight":"400"}),o=t.productsubTitleTypographyGlobal?t.productsubTitleTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.productSubTitleColor)}},pZ=(t,e="")=>{const i=(0,M.Zy)(t?.productPriceTypography,{"font-weight":"400"}),o=t.productPriceTypographyGlobal?t.productPriceTypographyGlobal:"";return{color:(0, | |
| 5487 | -gs.qD)(t?.productPriceColor),...(0,P.qD)(i,e,o)}};(0,M.xV)(nZ.UU,"","storeengine")&&(0,o.registerBlockType)(nZ.UU,{title:"Cart List",attributes:nZ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-cart-table",rZ(i),rZ(i,"Tablet"),rZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-cart-table .storeengine-cart-table__head tr",bZ(i),bZ(i,"Tablet"),bZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-cart-list-table-shortcode .storeengine-cart-table__head tr th",cZ(i),cZ(i,"Tablet"),cZ(i,"Mobile")), | |
| 5488 | -t.addClassStyles("{{WRAPPER}} .storeengine-cart-product .storeengine-cart-product__content .storeengine-cart-product-title a",dZ(i),dZ(i,"Tablet"),dZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-cart-product__content .storeengine-cart-product-price",uZ(i),uZ(i,"Tablet"),uZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-cart-list-table-shortcode .storeengine-cart-table__body-td .storeengine-price bdi",pZ(i),pZ(i,"Tablet"),pZ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(lZ,{...t}),(0,L.jsx)(sZ,{...t})]})},save:()=>null});var mZ=i(78696);function hZ(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0, | |
| 5489 | -L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Layout","ablocks"),children:[(0,L.jsx)(vb,{isResponsive:!1,allowDeselect:!0,label:(0,z.__)("Flex Direction","ablocks"),options:[{value:"row",label:(0,z.__)("Horizontal","ablocks")},{value:"column",label:(0,z.__)("Vertical","ablocks")}],attributeName:"direction",attributeValue:o,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"formAlignment",attributeValue:a,setAttributes:i,isInline:!1})]}),(0,L.jsx)(D,{title:(0,z.__)("Input Box Style","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"inputWidth",attributeValue:n,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:mZ.do,autoSyncRange:!0})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1, | |
| 5490 | -isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"inputBorder",attributeValue:s,setAttributes:i})]})})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:500,hasUnit:!1,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:f,setAttributes:i,attributeObjectKey:"value",attributeDefaultValue:mZ.D_,autoSyncRange:!0}),(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Button Text","ablocks"),attributeName:"buttonTitle",attributeValue:p,setAttributes:i,isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Button Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:d,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 5491 | -z.__)("Color","ablocks"),attributeValue:b,attributeName:"buttonColor",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:u,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Text Hover","ablocks"),attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Button Typography","ablocks"),attributeName:"buttonTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:h,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})}),(0, | |
| 5492 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:g,setAttributes:i})]})]})})})}hZ.propTypes={};const gZ={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:""},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:""}, | |
| 5493 | -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"}},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:"", | |
| 5494 | -topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0, | |
| 5495 | -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:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"", | |
| 5496 | -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:"", | |
| 5497 | -leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},inputBorderH:{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:"", | |
| 5498 | -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:""}},formAlignment:{type:"object",default:{ | |
| 5499 | -value:"left",valueTablet:"",valueMobile:""}},direction:{type:"string",default:"column"},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},inputWidth:{type:"object",default:{value:200,valueTablet:100,valueMobile:80,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},buttonWidth:{type:"object",default:{value:200,valueTablet:100,valueMobile:80,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, | |
| 5500 | -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, | |
| 5501 | -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:"",topRadiusHTablet:"", | |
| 5502 | -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:"", | |
| 5503 | -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:"", | |
| 5504 | -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:"", | |
| 5505 | -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:"", | |
| 5506 | -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:{ | |
| 5507 | -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 fZ(t){ | |
| 5508 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:gZ.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-coupon-form",httpMethod:"POST",attributes:e})})})})}fZ.propTypes={};const yZ=(t,e="")=>{const i={},{formAlignment:o}=t;return""!==t.direction&&(i["flex-direction"]=t.direction),o[`value${e}`]&&(i["justify-content"]=o[`value${e}`]),i},TZ=(t,e="")=>{const i=(0,M.Zy)(t.inputBorder,{unitWidth:"px",unitRadius:"px"});return{...(0,Ob.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0, | |
| 5509 | -property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,y.qD)(i,e)}},HZ=(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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(a,e),...(0,P.qD)(i,e,o),...(0,c.qD)(l,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e})}};function MZ(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0, | |
| 5510 | -L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Layout","ablocks"),children:(0,L.jsx)(vt,{label:(0,z.__)("Select Width","ablocks"),min:1,max:500,step:1,hasUnit:!1,isInline:!1,isResponsive:!1,attributeValue:d,setAttributes:i,attributeName:"selectWidth"})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Select Style","ablocks"),children:[(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"selectTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"selectTextcolor",attributeValue:o,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:"selectBackground",attributeValue:s,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0, | |
| 5511 | -z.__)("Text color","ablocks"),attributeName:"selectTextcolorH",attributeValue:a,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:"selectBackgroundH",attributeValue:r,setAttributes:i})]})})]}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"selectPadding",attributeValue:b,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"selectBorder",attributeValue:c,setAttributes:i})]})]})})})}(0,M.xV)(gZ.UU,"","storeengine")&&(0,o.registerBlockType)(gZ.UU,{title:"Coupon Form",attributes:gZ.uK,icon:(0,L.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}) | |
| 5512 | -},[n,l]);const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(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.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=text]",TZ(i),TZ(i,"Tablet"),TZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-apply-coupon-form-shortcode .storeengine-ajax-apply-coupon-form input[type=submit]",HZ(i),HZ(i,"Tablet"),HZ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(hZ,{...t}),(0,L.jsx)(fZ,{...t})]})},save:()=>null}),MZ.propTypes={};const xZ={UU:"ablocks/storeengine-product-filter",uK:{block_id:{type:"string",default:""},selectTextcolor:{type:"string",default:""}, | |
| 5513 | -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:"",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:"", | |
| 5514 | -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:"",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:"", | |
| 5515 | -leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 5516 | -isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"", | |
| 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){ | |
| 5480 | +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 | +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 | +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 | +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 | +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 | +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", | |
| 5490 | +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 | +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 | +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 | +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:"", | |
| 5494 | +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_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", | |
| 5495 | +letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},input_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:"", | |
| 5496 | +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_border:{type:"object", | |
| 5497 | +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:"", | |
| 5498 | +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:""}},input_field_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:"", | |
| 5499 | +rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},form_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:"" | |
| 5500 | +}},_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:"", | |
| 5501 | +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", | |
| 5502 | +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:"", | |
| 5503 | +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 | +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 | +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 | +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){ | |
| 5510 | +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 | +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 | +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:{ | |
| 5516 | +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 | +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 | +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 | +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:"%", | |
| 5520 | +customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, | |
| 5521 | +isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", | |
| 5522 | +hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 5523 | +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 | +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 | +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 | +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, | |
| 5533 | +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 | +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 | +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 | +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:"", | |
| 5517 | 5538 | 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:"", |
| 5518 | -bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"", | |
| 5519 | -backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 5520 | -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, | |
| 5521 | -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:"", | |
| 5522 | -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", | |
| 5523 | -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:{ | |
| 5524 | -type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function kZ(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-product-filter",httpMethod:"POST",attributes:e})})})})}kZ.propTypes={};const vZ=(t,e="")=>{const i={} | |
| 5525 | -;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,gs.qD)(t?.selectTextcolor),background:(0,gs.qD)(t?.selectBackground),...i,...(0,P.qD)(o,e,a),...(0,y.qD)(l,e),...(0,c.qD)(n,"padding",e)}};(0,M.xV)(xZ.UU,"","storeengine")&&(0,o.registerBlockType)(xZ.UU,{title:"Product Filter",attributes:xZ.uK,icon:(0,L.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 j(i,l);return t.addClassStyles("{{WRAPPER}} .storeengine-products__filter .storeengine__header-ordering select",vZ(i),vZ(i,"Tablet"),vZ(i,"Mobile")),t.generateCSS()},[i]) | |
| 5526 | -;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(MZ,{...t}),(0,L.jsx)(kZ,{...t})]})},save:()=>null});var _Z=i(53490);function RZ(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Title Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0, | |
| 5527 | -isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"titleColor",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"titleColorH",attributeValue:n,setAttributes:i})})})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Label Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"labelTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"labelColor",attributeValue:r,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"labelColorH",attributeValue:b,setAttributes:i})})})] | |
| 5528 | -}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Input Style","ablocks"),children:[(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:d,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"inputBorder",attributeValue:c,setAttributes:i})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Select Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"selectTypography",attributeValue:y,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"selectTextcolor",attributeValue:u,setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 5529 | -z.__)("Background color","ablocks"),attributeName:"selectBackground",attributeValue:m,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text color","ablocks"),attributeName:"selectTextcolorH",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background color","ablocks"),attributeName:"selectBackgroundH",attributeValue:h,setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"selectPadding",attributeValue:f,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"selectBorder",attributeValue:g,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:500,hasUnit:!0,isInline:!1,isResponsive:!0,attributeName:"selectWidth",attributeValue:v,setAttributes:i,attributeObjectKey:"value", | |
| 5530 | -attributeDefaultValue:_Z.V,autoSyncRange:!0})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Button Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:M,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Text","ablocks"),attributeValue:T,attributeName:"buttonColor",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Button Background Hover","ablocks"),attributeValue:x,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Button Text Hover","ablocks"),attributeValue:H,attributeName:"buttonColorH",setAttributes:i})]})})]})]})})})}RZ.propTypes={} | |
| 5531 | -;const SZ={UU:"ablocks/storeengine-checkout-form",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},titleColor:{type:"string",default:""},titleColorH:{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", | |
| 5532 | -lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},labelTypographyGlobal:{type:"string",default:""},labelTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},buttonTypographyGlobal:{type:"string", | |
| 5533 | -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"}},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:{ | |
| 5534 | -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:"", | |
| 5535 | -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:""}},selectTypographyGlobal:{type:"string",default:""},selectTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"", | |
| 5536 | -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"}},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:"", | |
| 5537 | -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", | |
| 5538 | -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:""}},selectWidth:{type:"object",default:{value:200,valueTablet:100,valueMobile:80,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, | |
| 5539 | -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, | |
| 5540 | -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:"", | |
| 5541 | -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:"", | |
| 5542 | -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:"", | |
| 5543 | -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:"", | |
| 5544 | -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:"", | |
| 5545 | -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:{ | |
| 5546 | -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 WZ(t){ | |
| 5547 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:SZ.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-checkout-form",httpMethod:"POST",attributes:e})})})})}WZ.propTypes={};const UZ=(t,e="")=>{const i=(0,M.Zy)(t.titleTypography,{"font-weight":"400"}),o=t.titleTypographyGlobal?t.titleTypographyGlobal:"";return{color:(0,gs.qD)(t?.titleColor),...(0,P.qD)(i,e,o)}},PZ=(t,e="")=>{const i=(0,M.Zy)(t.labelTypography,{"font-weight":"400"}),o=t.labelTypographyGlobal?t.labelTypographyGlobal:"";return{color:(0, | |
| 5548 | -gs.qD)(t?.labelColor),...(0,P.qD)(i,e,o)}},jZ=(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,y.qD)(i,e)}},wZ=(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,gs.qD)(t?.selectTextcolor),background:(0,gs.qD)(t?.selectBackground),...(0,Ob.qD)({attributeValue:t?.selectWidth,attributeObjectKey:"value",isResponsive:!0,property:"width",defaultValue:18,hasUnit:!0,unitDefaultValue:"px",device:e}),...(0,P.qD)(i,e,o),...(0,y.qD)(a,e),...(0,c.qD)(l,"padding",e)}},zZ=(t,e="")=>{const i=(0,M.Zy)(t.buttonTypography,{"font-weight":"400"}),o=t.buttonTypographyGlobal?t.buttonTypographyGlobal:"";return{color:(0,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,P.qD)(i,e,o)}};function CZ(t){ | |
| 5549 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Button Hover Effect","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0, | |
| 5550 | -z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder", | |
| 5551 | -attributeValue:o,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(SZ.UU,"","storeengine")&&(0,o.registerBlockType)(SZ.UU,{title:"Checkout Form",attributes:SZ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 5552 | -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",UZ(i),UZ(i,"Tablet"),UZ(i,"Mobile")),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",PZ(i),PZ(i,"Tablet"),PZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner input,\n\t\t\t{{WRAPPER}} .storeengine-ajax-checkout-form input",jZ(i),jZ(i,"Tablet"),jZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-form-group .storeengine-form__inner select",wZ(i),wZ(i,"Tablet"),wZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-ajax-checkout-form .storeengine-checkout__order-btn button",zZ(i),zZ(i,"Tablet"),zZ(i,"Mobile")), | |
| 5553 | -t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(RZ,{...t}),(0,L.jsx)(WZ,{...t})]})},save:()=>null}),CZ.propTypes={};const AZ={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", | |
| 5554 | -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:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0, | |
| 5555 | -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:"",topRadiusHTablet:"", | |
| 5556 | -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"}},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:{ | |
| 5557 | -isLinked:!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:"", | |
| 5558 | -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:"", | |
| 5559 | -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:"", | |
| 5560 | -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:"", | |
| 5561 | -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:"", | |
| 5562 | -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:"", | |
| 5563 | -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:{ | |
| 5564 | -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 LZ(t){ | |
| 5565 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:AZ.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-continue-button",httpMethod:"POST",attributes:e})})})})}LZ.propTypes={};const DZ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},NZ=(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,{ | |
| 5566 | -unitWidth:"px",unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function IZ(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0, | |
| 5567 | -L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Button Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0, | |
| 5568 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(AZ.UU,"","storeengine")&&(0,o.registerBlockType)(AZ.UU,{title:"Continue Button",attributes:AZ.uK,icon:(0,L.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, | |
| 5569 | -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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-continue-shopping-shortcode",DZ(i),DZ(i,"Tablet"),DZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-continue-shopping-shortcode a",NZ(i),NZ(i,"Tablet"),NZ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(CZ,{...t}),(0,L.jsx)(LZ,{...t})]})},save:()=>null}),IZ.propTypes={};const VZ={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, | |
| 5570 | -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",wordSpacingUnitMobile:"px"}},buttonBorder:{type:"object",default:{borderStyle:"default", | |
| 5539 | +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:""}},inputBorderH:{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:"", | |
| 5540 | +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:"", | |
| 5541 | +topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},formAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},direction:{type:"string",default:"column"},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},inputWidth:{type:"object",default:{value:200,valueTablet:100,valueMobile:80,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},buttonWidth:{type:"object",default:{value:200,valueTablet:100,valueMobile:80,valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},_margin:{type:"object",default:{ | |
| 5542 | +isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"", | |
| 5543 | +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:"", | |
| 5544 | +rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none", | |
| 5545 | +backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"", | |
| 5546 | +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 | +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 | +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 | +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){ | |
| 5552 | +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:"", | |
| 5556 | +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 | +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 | +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 | +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:"", | |
| 5560 | +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", | |
| 5561 | +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:"", | |
| 5562 | +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 | +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 | +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 | +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){ | |
| 5569 | +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 | +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 | +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:{ | |
| 5574 | +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 | +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 | +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 | +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:"", | |
| 5578 | +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:""}},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:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px", | |
| 5579 | +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:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"", | |
| 5580 | +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:"", | |
| 5581 | +topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},selectWidth:{type:"object",default:{value:200,valueTablet:100,valueMobile:80,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:"", | |
| 5582 | +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:"", | |
| 5583 | +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", | |
| 5584 | +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:"", | |
| 5585 | +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 | +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 | +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 | +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, | |
| 5592 | +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 | +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", | |
| 5597 | +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 | +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 | +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 | +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:"", | |
| 5601 | +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:"", | |
| 5602 | +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:"", | |
| 5603 | +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 | +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 | +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 | +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, | |
| 5610 | +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, | |
| 5613 | +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", | |
| 5571 | 5614 | 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:"", |
| 5572 | 5615 | 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:"", |
| 5573 | 5616 | 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:{ |
| 5574 | 5617 | 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:"", |
| @@ -5577,130 +5620,131 @@ | ||
| 5577 | 5620 | 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:""}}, |
| 5578 | 5621 | _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, |
| 5579 | 5622 | 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:"", |
| 5580 | 5623 | 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, |
| 5581 | -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_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,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{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,L.jsx)(ES,{ | |
| 5582 | -children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-checkout-button",httpMethod:"POST",attributes:e})})})})}OZ.propTypes={};const YZ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,width:"100%",display:"flex"}},XZ=(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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),...i,...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function BZ(t){ | |
| 5583 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Table Layout","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Table Width","ablocks"),attributeName:"tableWidth",attributeValue:o,setAttributes:i,isInline:!1,min:1,max:100,step:1,isResponsive:!1}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"tableAlignment",attributeValue:a,setAttributes:i,isInline:!1})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Table First Row Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"firstTableTypography",attributeValue:c,setAttributes:i,isResponsive:!1, | |
| 5584 | -attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"tableBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:r,attributeName:"tableColor",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"tableBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("color Hover","ablocks"),attributeValue:b,attributeName:"tableColorH",setAttributes:i})]})})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Table Second Row Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Row Typography","ablocks"),attributeName:"lastTableTypography",attributeValue:d,setAttributes:i,isResponsive:!1,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"), | |
| 5585 | -isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:m,attributeName:"tableLastBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:u,attributeName:"tableLastColor",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:h,attributeName:"tableLastBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:p,attributeName:"tableLastColorH",setAttributes:i})]})})]})]})})})}(0,M.xV)(VZ.UU,"","storeengine")&&(0,o.registerBlockType)(VZ.UU,{title:"Checkout Button",attributes:VZ.uK,icon:(0,L.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]) | |
| 5586 | -;const s=(0,a.useMemo)(()=>{let t=null;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-proceed-to-checkout-shortcode",YZ(i),YZ(i,"Tablet"),YZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-proceed-to-checkout-shortcode a",XZ(i),XZ(i,"Tablet"),XZ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(IZ,{...t}),(0,L.jsx)(OZ,{...t})]})},save:()=>null}),BZ.propTypes={};const EZ={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",default:""},tableLastBackground:{type:"string",default:""}, | |
| 5587 | -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:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px", | |
| 5588 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"", | |
| 5589 | -bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"", | |
| 5590 | -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:"", | |
| 5591 | -leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"", | |
| 5592 | -imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"", | |
| 5593 | -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", | |
| 5594 | -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:"", | |
| 5595 | -scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 5596 | -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 FZ(t){const{attributes:e}=t,{block_id:i}=e;return(0, | |
| 5597 | -L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:EZ.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-cart-sub-table",httpMethod:"POST",attributes:e})})})})}FZ.propTypes={};const qZ=(t,e="")=>{const i={};return i.width=`${t?.tableWidth}%`??0,{...i}},$Z=(t,e="")=>{const{tableAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o,display:"flex"}},GZ=(t,e="")=>({background:(0,gs.qD)(t?.tableBackground)}),ZZ=(t,e="")=>{const i=(0,M.Zy)(t?.firstTableTypography??"",{"font-weight":"400" | |
| 5598 | -}),o=t.firstTableTypographyGlobal?t.firstTableTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.tableColor)}},KZ=(t,e="")=>({background:(0,gs.qD)(t?.tableLastBackground)}),JZ=(t,e="")=>{const i=(0,M.Zy)(t?.lastTableTypography??"",{"font-weight":"400"}),o=t.lastTableTypographyGlobal?t.lastTableTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.tableLastColor)}};(0,M.xV)(EZ.UU,"","storeengine")&&(0,o.registerBlockType)(EZ.UU,{title:"Cart Sub Table",attributes:EZ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 5599 | -null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode table",qZ(i),qZ(i,"Tablet"),qZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode ",$Z(i),$Z(i,"Tablet"),$Z(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr:first-child ",GZ(i),GZ(i,"Tablet"),GZ(i,"Mobile")),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",ZZ(i),ZZ(i,"Tablet"),ZZ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-cart-sub-total-table-shortcode .storeengine-cart-sub-total-table tr",KZ(i),KZ(i,"Tablet"),KZ(i,"Mobile")), | |
| 5600 | -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",JZ(i),JZ(i,"Tablet"),JZ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(BZ,{...t}),(0,L.jsx)(FZ,{...t})]})},save:()=>null});const QZ=(0,Ob.D$)({attributeName:"button_width",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"}),tK=(0,Ob.D$)({attributeName:"boxWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",unitDefaultValueTablet:"%",unitDefaultValueMobile:"%"});(0,Ob.D$)({attributeName:"radioHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px"}),(0,Ob.D$)({attributeName:"radioHeight",attributeObjectKey:"value", | |
| 5601 | -isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px"}),(0,Ob.D$)({attributeName:"elementGap",attributeObjectKey:"value",isResponsive:!0,defaultValue:12,hasUnit:!0,unitDefaultValue:"px"});function eK(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:U,radioWidth:P,buttonTextAlign:j,boxPadding:w,elementGap:A,boxBorder:N,button_display:I}=e,V=[{label:(0,z.__)("Radio","ablocks"),value:"radio"},{label:(0,z.__)("Dropdown","ablocks"),value:"dropdown"},{label:(0,z.__)("Price Range","ablocks"),value:"price_range"},{label:(0,z.__)("Hidden","ablocks"),value:"hidden"}],O=[{label:(0,z.__)("Visible","ablocks"),value:"yes"},{ | |
| 5602 | -label:(0,z.__)("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,z.__)("Select a Product","ablocks"),value:0});const B=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("General","ablocks"),children:[(0,L.jsx)(Ut,{options:X,label:(0,z.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i}),(0,L.jsx)(Ut,{options:V,label:(0,z.__)("Price Display","ablocks"),attributeValue:a,attributeName:"price_display",setAttributes:i}),(0,L.jsx)(Ut,{options:O,label:(0,z.__)("Button Display","ablocks"),attributeValue:I,attributeName:"button_display",setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Button Label","ablocks"),attributeValue:s,setAttributes:i,attributeName:"label"}),(0, | |
| 5603 | -L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("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,L.jsx)(D,{initialOpen:!1,title:(0,z.__)("Button","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,isInline:!1,isResponsive:!0,attributeName:"button_width",attributeValue:u,hasUnit:!0,setAttributes:i,attributeDefaultValue:QZ,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlign",attributeValue:y,setAttributes:i,isInline:!1}),(0,L.jsx)(Kt,{label:(0,z.__)("Text Align","ablocks"),attributeName:"buttonTextAlign",attributeValue:j,setAttributes:i,isInline:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 5604 | -attributeName:"btn_typography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeValue:b,attributeName:"button_color",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:m,attributeName:"button_bg",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Hover","ablocks"),attributeValue:c,attributeName:"button_color_hover",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:p,attributeName:"button_bg_hover",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:h,setAttributes:i}),(0, | |
| 5605 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box Shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box Shadow","ablocks"),attributeName:"boxShadow",attributeValue:f,setAttributes:i})]})})}),(0,L.jsx)(D,{initialOpen:!1,title:(0,z.__)("Price","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("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:tK,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"), | |
| 5606 | -attributeName:"priceAlign",attributeValue:T,setAttributes:i,isInline:!1}),"radio"===a&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Radio Width","ablocks"),min:0,max:200,isInline:!1,isResponsive:!0,attributeName:"radioWidth",attributeValue:P,hasUnit:!0,setAttributes:i,attributeDefaultValue:tK}),(0,L.jsx)(vt,{label:(0,z.__)("Radio Height","ablocks"),min:0,max:200,isInline:!1,isResponsive:!0,attributeName:"radioHeight",attributeValue:U,hasUnit:!0,setAttributes:i,attributeDefaultValue:tK})]}),("radio"===a||"dropdown"===a)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"boxPadding",attributeValue:w,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"boxBorder",attributeValue:N,setAttributes:i})]})]}),style:(0, | |
| 5607 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Price Text","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"priceTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:M,attributeName:"priceColor",setAttributes:i}),hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeValue:x,attributeName:"priceColorH",setAttributes:i})}),("radio"===a||"dropdown"===a)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Price Name","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"priceNameTypography",attributeValue:k,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:v,attributeName:"priceNameColor", | |
| 5608 | -setAttributes:i}),hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeValue:_,attributeName:"priceNameColorH",setAttributes:i})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box Background","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:W,attributeName:"boxBackground",setAttributes:i}),hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Background","ablocks"),attributeValue:S,attributeName:"boxBackgroundH",setAttributes:i})})]})]})})})]})})})}(0,Gt.D$)("buttonAlign",!0,{value:"left"}),(0,Gt.D$)("priceAlign",!0,{value:"left"}),(0,Gt.D$)("buttonTextAlign",!0,{value:"center"}),(0,P.D$)("btn_typography",!0),(0,P.D$)("priceTypography",!0),(0,P.D$)("priceNameTypography",!0),(0,c.D$)("padding",!0),(0,y.D$)("buttonBorder",!0),(0,H.D$)("boxShadow",!0),Mr.Ay,eK.propTypes={};const iK={UU:"ablocks/storeengine-cart-button",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2}, | |
| 5609 | -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:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""} | |
| 5610 | -},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:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"", | |
| 5611 | -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:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 5612 | -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,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0, | |
| 5613 | -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:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"", | |
| 5614 | -spreadH:"",colorH:"",transitionDuration:"0"}},boxPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},boxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"", | |
| 5615 | -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:"",rightRadiusHMobile:"", | |
| 5616 | -bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlign:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},priceAlign:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonTextAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},button_width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},boxWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},radioWidth:{type:"object",default:{value:15,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},radioHeight:{type:"object",default:{value:15,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},elementGap:{type:"object",default:{value:12,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"", | |
| 5617 | -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:"",borderColorH:"",isLinkedWidth:!0, | |
| 5618 | -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:"", | |
| 5619 | -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"}},_background:{ | |
| 5620 | -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:"", | |
| 5621 | -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:{ | |
| 5622 | -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:"", | |
| 5623 | -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:"", | |
| 5624 | -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, | |
| 5625 | -startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function oK(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:iK.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-cart-button",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}oK.propTypes={};const aK=(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"}),s={...(0,Ob.qD)({attributeValue:t?.button_width, | |
| 5626 | -attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})};return i["justify-content"]=t?.buttonTextAlign[`value${e}`]??[],{...s,...(0,P.qD)(o,e,a),...i,...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t?.boxShadow,e),color:(0,gs.qD)(t?.button_color),background:(0,gs.qD)(t?.button_bg)}},lK=(t,e="")=>({color:(0,gs.qD)(t?.button_hover_color),background:(0,gs.qD)(t?.button_bg_hover)}),nK=(t,e="")=>{const i={};return i["justify-content"]=t?.buttonAlign[`value${e}`]??[],i},sK=(t,e="")=>{const i=(0,M.Zy)(t.priceTypography,{"font-weight":"400"}),o=t.priceTypographyGlobal?t.priceTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.priceColor)}},rK=(t,e="")=>{const i=(0,M.Zy)(t?.priceNameTypography,{"font-weight":"400"}),o=t.priceNameTypographyGlobal?t.priceNameTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.priceNameColor)}},bK=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.boxWidth, | |
| 5627 | -attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e}),background:(0,gs.qD)(t?.boxBackground)}),cK=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.radioWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.radioHeight,attributeObjectKey:"value",isResponsive:!0,defaultValue:15,hasUnit:!0,unitDefaultValue:"px",property:"height",device:e})}),dK=(t,e="")=>{const i={};return i["justify-content"]=t?.priceAlign[`value${e}`]??[],i},uK=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.elementGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:12,hasUnit:!0,unitDefaultValue:"px",property:"gap",device:e})}),pK=(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 mK(t){ | |
| 5628 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Order Info","ablocks"),children:[(0,L.jsx)(ot,{label:(0,z.__)("Status Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleContentTypography",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"titleContentColor",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0, | |
| 5629 | -z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"titleContentColorH",attributeValue:n,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Details Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"detailsTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"detailsColor",attributeValue:s,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"detailsColorH",attributeValue:r,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Email Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 5630 | -attributeName:"emailTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"emailColor",attributeValue:c,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"emailColorH",attributeValue:d,setAttributes:i})})})]})})})})}(0,M.xV)(iK.UU,"","storeengine")&&(0,o.registerBlockType)(iK.UU,{title:"Add To Cart",attributes:iK.uK,icon:(0,L.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 | |
| 5631 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(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",aK(i),aK(i,"Tablet"),aK(i,"Mobile")),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",lK(i),lK(i,"Tablet"),lK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity-wrap",nK(i),nK(i,"Tablet"),nK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode .storeengine-price.amount",sK(i),sK(i,"Tablet"),sK(i,"Mobile")), | |
| 5632 | -t.addClassStyles("{{WRAPPER}} .storeengine-single-product-price-name,\n\t\t\t{{WRAPPER}} .storeengine-loop-product-price-summery .storeengine-loop-product-price-label",rK(i),rK(i,"Tablet"),rK(i,"Mobile")),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",bK(i),bK(i,"Tablet"),bK(i,"Mobile")),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.addClassStyles("{{WRAPPER}} .storeengine-single__amount",dK(i),dK(i,"Tablet"),dK(i,"Mobile")), | |
| 5633 | -t.addClassStyles("{{WRAPPER}} .storeengine-add-to-cart-shortcode",uK(i),uK(i,"Tablet"),uK(i,"Mobile")),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",pK(i,""),pK(i,"Tablet"),pK(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(eK,{...t}),(0,L.jsx)(oK,{...t})]})},save:()=>null}),mK.propTypes={};const hK={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:{ | |
| 5634 | -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:"",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:"", | |
| 5635 | -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:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 5636 | -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",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 5637 | -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:"", | |
| 5638 | -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"}},_background:{ | |
| 5639 | -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:"", | |
| 5640 | -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:{ | |
| 5641 | -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:"", | |
| 5642 | -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:"", | |
| 5643 | -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, | |
| 5644 | -startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_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,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-order-info",httpMethod:"POST",attributes:e})})})})} | |
| 5645 | -gK.propTypes={};const fK=(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,P.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,P.qD)(o,e,a),...i}},TK=(t,e="")=>{const i={};i.color=t?.emailColor??"";const o=(0,M.Zy)(t?.emailTypography,{"font-weight":"400"}),a=t?.emailTypographyGlobal?t?.emailTypographyGlobal:"";return{...(0,P.qD)(o,e,a),...i}};function HK(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{initialOpen:!0,title:(0, | |
| 5646 | -z.__)("Billing Info Style","ablocks"),children:[(0,L.jsx)(ot,{label:(0,z.__)("Heading Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"heading_typograhy",attributeValue:o,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"heading_hover_color",attributeValue:n,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Address Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"address_typograhy",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e}),(0, | |
| 5647 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"address_color",attributeValue:b,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"address_hover_color",attributeValue:r,setAttributes:i})})})]})})})})}(0,M.xV)(hK.UU,"","storeengine")&&(0,o.registerBlockType)(hK.UU,{title:"Order Info",attributes:hK.uK,icon:(0,L.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?new w(i,l):new j(i,l), | |
| 5648 | -t?(t.addClassStyles("{{WRAPPER}} .storeengine-thankyou-order-info-shortcode .storeengine-thankyou-order-info-success__content h4",fK(i),fK(i,"Tablet"),fK(i,"Mobile")),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")),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",TK(i,""),TK(i,"Tablet"),TK(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(mK,{...t}),(0,L.jsx)(gK,{...t})]})},save:()=>null}),HK.propTypes={} | |
| 5649 | -;const MK={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:"",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:{ | |
| 5650 | -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",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:{ | |
| 5651 | -isLinked:!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:"", | |
| 5652 | -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:"", | |
| 5653 | -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:"", | |
| 5654 | -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:"", | |
| 5655 | -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:"", | |
| 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){ | |
| 5626 | +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 | +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", | |
| 5630 | +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 | +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 | +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 | +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:"", | |
| 5634 | +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:"", | |
| 5635 | +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 | +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:"", | |
| 5656 | 5637 | 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:"", |
| 5657 | 5638 | 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:{ |
| 5658 | -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 xK(t){ | |
| 5659 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:MK.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-billing-info",httpMethod:"POST",attributes:e})})})})}xK.propTypes={};const kK=(t,e="")=>{const i=(0,M.Zy)(t?.heading_typograhy,"",{weight:"400"}),o=t.heading_typograhyGlobal?t.heading_typograhyGlobal:"";return{color:(0,gs.qD)(t?.heading_color),...(0,P.qD)(i,"",e,o)}},vK=(t,e="")=>{const i=(0,M.Zy)(t?.address_typograhy,"",{weight:"400"}),o=t.address_typograhyGlobal?t.address_typograhyGlobal:"";return{color:(0, | |
| 5660 | -gs.qD)(t?.address_color),...(0,P.qD)(i,"",e,o)}};function _K(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Shipping Info Style","ablocks"),children:[(0,L.jsx)(ot,{label:(0,z.__)("Heading Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"shipping_heading_typograhy",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"shipping_heading_color", | |
| 5661 | -attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"shipping_heading_hover_color",attributeValue:o,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Address Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"shipping_address_typograhy",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"shipping_address_color",attributeValue:s,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"shipping_address_hover_color",attributeValue:r,setAttributes:i})})})]})})})})}(0, | |
| 5662 | -M.xV)(MK.UU,"","storeengine")&&(0,o.registerBlockType)(MK.UU,{title:"Billing Info",attributes:MK.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .storeengine-order-billing-shortcode .storeengine-order-billing-heading",kK(i),kK(i,"Tablet"),kK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-order-billing-shortcode .storeengine-order-billing-address p",vK(i),vK(i,"Tablet"),vK(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(HK,{...t}),(0,L.jsx)(xK,{...t})]})},save:()=>null}),_K.propTypes={};const RK={UU:"ablocks/storeengine-shipping-info",uK:{block_id:{type:"string",default:""}, | |
| 5663 | -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"},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:{ | |
| 5664 | -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",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:{ | |
| 5665 | -isLinked:!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:"", | |
| 5666 | -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:"", | |
| 5667 | -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:"", | |
| 5668 | -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:"", | |
| 5669 | -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:"", | |
| 5670 | -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:"", | |
| 5671 | -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:{ | |
| 5672 | -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 SK(t){ | |
| 5673 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:RK.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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-shipping-info",httpMethod:"POST",attributes:e})})})})}SK.propTypes={};const WK=(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,gs.qD)(t?.shipping_heading_color),...(0,P.qD)(i,e,o)}},UK=(t,e="")=>{const i=(0,M.Zy)(t?.shipping_address_typograhy,"",{weight:"400" | |
| 5674 | -}),o=t.shipping_address_typograhyGlobal?t.shipping_address_typograhyGlobal:"";return{color:(0,gs.qD)(t?.shipping_address_color),...(0,P.qD)(i,e,o)}};(0,M.xV)(RK.UU,"","storeengine")&&(0,o.registerBlockType)(RK.UU,{title:"Shipping Info",attributes:RK.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-heading",WK(i,""),WK(i,"Tablet"),WK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-address p",UK(i,""),UK(i,"Tablet"),UK(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0, | |
| 5675 | -L.jsx)(_K,{...t}),(0,L.jsx)(SK,{...t})]})},save:()=>null});const PK=(0,Ob.D$)({attributeName:"imageWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0}),jK=(0,Ob.D$)({attributeName:"imageHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,unitDefaultValue:"px",hasUnit:!1,copyStyle:!0});function wK(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Layout Style","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s, | |
| 5676 | -setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:PK,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:jK,autoSyncRange:!0})]}),(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Style","ablocks"),children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 5677 | -isGradient:!1,attributeName:"productTitleColorH",attributeValue:b,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Quality Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColor",attributeValue:o,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColorH",attributeValue:a,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Price Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"discountPriceTypography",attributeValue:d, | |
| 5678 | -setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColor",attributeValue:u,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColorH",attributeValue:p,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Table Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"tableTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor", | |
| 5679 | -attributeValue:f,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",attributeValue:g,setAttributes:i})})})]})]})})})}(0,P.D$)("titleTypography",!0),(0,P.D$)("ProductTitleTypography",!0),(0,P.D$)("discountPriceTypography",!0),(0,P.D$)("qualityTypography",!0),(0,P.D$)("tableTextTypography",!0),Mr.Ay,wK.propTypes={};const zK={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:{ | |
| 5680 | -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",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:"", | |
| 5681 | -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"}},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", | |
| 5682 | -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",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", | |
| 5683 | -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"}},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:"", | |
| 5684 | -letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},imageWidth:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},imageHeight:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},_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:{ | |
| 5685 | -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:"", | |
| 5686 | -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:{ | |
| 5687 | -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:"", | |
| 5688 | -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:"", | |
| 5689 | -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:"", | |
| 5690 | -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:"", | |
| 5691 | -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:"", | |
| 5692 | -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 CK(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.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,weight:e.title_typography?.weight},{ | |
| 5693 | -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,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-order-details",httpMethod:"POST",attributes:e})})})})}CK.propTypes={};const AK=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,gs.qD)(t?.titleColor),...(0,P.qD)(i,e,o)}},LK=(t,e="")=>({color:(0,gs.qD)(t?.titleColorH)}),DK=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),NK=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{ | |
| 5694 | -weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,gs.qD)(t?.productTitleColor),...(0,P.qD)(i,e,o)}},IK=(t,e="")=>({color:(0,gs.qD)(t?.productTitleColorH)}),VK=(t,e="")=>{const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,P.qD)(i,e,o):[];return{color:(0,gs.qD)(t?.discountPriceColor),...a}},OK=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,P.qD)(i,e,o):[];return{color:(0,gs.qD)(t?.regularPriceColor),...a}},YK=(t,e="")=>{const i={};t?.regularPriceColor&&(i.color=(0,gs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,P.qD)(o,e,a):[];return{...i,...l}},XK=(t,e="")=>{const i=(0, | |
| 5695 | -M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,gs.qD)(t?.tableTextColor)||"#000",...(0,P.qD)(i,e,o)}};(0,M.xV)(zK.UU,"","storeengine")&&(0,o.registerBlockType)(zK.UU,{title:"Order Details",attributes:zK.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p",AK(i),AK(i,"Tablet"),AK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title p:hover",LK(i),LK(i,"Tablet"),LK(i,"Mobile")), | |
| 5696 | -t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content img",DK(i),DK(i,"Tablet"),DK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",NK(i),NK(i,"Tablet"),NK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__content .storeengine-order-item__title h6:hover",IK(i),IK(i,"Tablet"),IK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-order-details-shortcode .storeengine-order-item__price",VK(i),VK(i,"Tablet"),VK(i,"Mobile")),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",OK(i),OK(i,"Tablet"),OK(i,"Mobile")), | |
| 5697 | -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",YK(i),YK(i,"Tablet"),YK(i,"Mobile")),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",XK(i),XK(i,"Tablet"),XK(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(wK,{...t}),(0,L.jsx)(CK,{...t})]})},save:()=>null});var BK=i(82424);function EK(t){ | |
| 5698 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0,L.jsx)(A.ToggleControl,{label:(0,z.__)("Show order summary","ablocks"),checked:!1!==e.showSummary,onChange:t=>i({showSummary:t}),help:(0,z.__)("Show the product list, coupon field and totals beside the checkout form.","ablocks")})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Layout Style","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s,setAttributes:i,isInline:!1, | |
| 5699 | -min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:BK.uf,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:BK.vr,autoSyncRange:!0})]}),(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Style","ablocks"),children:[(0,L.jsx)(ot,{label:"Product Title",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1, | |
| 5700 | -attributeName:"productTitleColorH",attributeValue:b,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Order Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColor",attributeValue:o,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColorH",attributeValue:a,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Quality Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"qualityTypography",attributeValue:H,setAttributes:i, | |
| 5701 | -isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColor",attributeValue:y,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColorH",attributeValue:T,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Price Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"discountPriceTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColor",attributeValue:u, | |
| 5702 | -setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColorH",attributeValue:p,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Table Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"tableTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor",attributeValue:f,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",attributeValue:g,setAttributes:i})})})]})]})})})}EK.propTypes={};const FK={UU:"ablocks/storeengine-funnel-checkout",uK:{block_id:{type:"string", | |
| 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" | |
| 5645 | +}],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 | +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", | |
| 5650 | +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 | +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 | +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 | +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 | +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, | |
| 5656 | +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:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default", | |
| 5657 | +shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},boxPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},boxBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"", | |
| 5658 | +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:"", | |
| 5659 | +leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},buttonAlign:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},priceAlign:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},buttonTextAlign:{type:"object",default:{value:"center",valueTablet:"",valueMobile:""}},button_width:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},boxWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},radioWidth:{type:"object",default:{value:15,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},radioHeight:{type:"object",default:{value:15,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},elementGap:{type:"object",default:{value:12, | |
| 5660 | +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",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default", | |
| 5661 | +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:"", | |
| 5662 | +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:"",vOffsetMobile:"", | |
| 5663 | +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:"",imgIdMobileH:"",imgUrlH:"", | |
| 5664 | +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 | +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 | +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 | +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){ | |
| 5671 | +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 | +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={ | |
| 5677 | +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 | +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 | +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 | +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:"", | |
| 5681 | +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:"", | |
| 5682 | +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:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"", | |
| 5683 | +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 | +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 | +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 | +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:"", | |
| 5693 | +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 | +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 | +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 | +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:"", | |
| 5697 | +hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"", | |
| 5698 | +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 | +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 | +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 | +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, | |
| 5704 | +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"}, | |
| 5707 | +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 | +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 | +}},_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 | +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", | |
| 5711 | +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:"", | |
| 5712 | +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 | +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 | +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 | +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"), | |
| 5721 | +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 | +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 | +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 | +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 | +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 | +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"}}, | |
| 5728 | +imageWidth:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},imageHeight:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},_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:""}}, | |
| 5729 | +_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:"", | |
| 5730 | +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:"", | |
| 5731 | +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:"", | |
| 5732 | +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 | +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 | +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 | +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){ | |
| 5742 | +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 | +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 | +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", | |
| 5703 | 5747 | 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", |
| 5704 | 5748 | 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"}}, |
| 5705 | 5749 | 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", |
| 5706 | 5750 | 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:"", |
| @@ -5712,43 +5756,109 @@ | ||
| 5712 | 5756 | 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:"", |
| 5713 | 5757 | 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", |
| 5714 | 5758 | 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", |
| 5715 | 5759 | 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:{ |
| 5716 | -type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function qK(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:FK.UU,attributes:e,children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-funnel-checkout",httpMethod:"POST",attributes:e})})})})}qK.propTypes={};const $K=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0,gs.qD)(t?.titleColor),...(0,P.qD)(i,e,o)}},GK=(t,e="")=>({color:(0,gs.qD)(t?.titleColorH)}),ZK=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value", | |
| 5717 | -isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"height",device:e})}),KK=(t,e="")=>{const i=(0,M.Zy)(t?.ProductTitleTypography,{weight:"400"}),o=t?.ProductTitleTypographyGlobal?t?.ProductTitleTypographyGlobal:"";return{color:(0,gs.qD)(t?.productTitleColor),...(0,P.qD)(i,e,o)}},JK=(t,e="")=>({color:(0,gs.qD)(t?.productTitleColorH)}),QK=(t,e="")=>{const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,P.qD)(i,e,o):[];return{color:(0,gs.qD)(t?.discountPriceColor),...a}},tJ=(t,e="")=>{const i=(0,M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,P.qD)(i,e,o):[];return{color:(0,gs.qD)(t?.regularPriceColor),...a}},eJ=(t,e="")=>{const i={};t?.qualityColor&&(i.color=(0,gs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400" | |
| 5718 | -}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,P.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,gs.qD)(t?.tableTextColor)||"#000",...(0,P.qD)(i,e,o)}};(0,M.xV)(FK.UU,"","storeengine")&&(0,o.registerBlockType)(FK.UU,{title:"Funnel Checkout",attributes:FK.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title",$K(i),$K(i,"Tablet"),$K(i,"Mobile")), | |
| 5719 | -t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-summary .storeengine-ajax-checkout-form__title:hover",GK(i),GK(i,"Tablet"),GK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item-entry-left img",ZK(i),ZK(i,"Tablet"),ZK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a",KK(i),KK(i,"Tablet"),KK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item h6 a:hover",JK(i),JK(i,"Tablet"),JK(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-checkout-shortcode .storeengine-order-item__price",QK(i),QK(i,"Tablet"),QK(i,"Mobile")),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",tJ(i),tJ(i,"Tablet"),tJ(i,"Mobile")), | |
| 5720 | -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",eJ(i),eJ(i,"Tablet"),eJ(i,"Mobile")),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",iJ(i),iJ(i,"Tablet"),iJ(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(EK,{...t}),(0,L.jsx)(qK,{...t})]})},save:()=>null});var oJ=i(74748);function aJ(t){ | |
| 5721 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:[(0,L.jsx)(A.TextControl,{label:(0,z.__)("Offer title","ablocks"),value:e.offerTitle||"",onChange:t=>i({offerTitle:t}),placeholder:(0,z.__)("Uses the step’s configured title","ablocks")}),(0,L.jsx)(A.TextareaControl,{label:(0,z.__)("Offer description","ablocks"),value:e.offerDescription||"",onChange:t=>i({offerDescription:t}),placeholder:(0,z.__)("Uses the step’s configured description","ablocks"),help:(0, | |
| 5722 | -z.__)("Leave both empty to use the offer configured on the funnel step.","ablocks")})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Layout Style","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"imageWidth",attributeValue:s,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:oJ.uf,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"imageHeight",attributeValue:m,setAttributes:i,isInline:!1,min:1,max:600,step:1,isResponsive:!0,attributeDefaultValue:oJ.vr,autoSyncRange:!0})]}),(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Style","ablocks"),children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"ProductTitleTypography",attributeValue:r,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0, | |
| 5723 | -L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColor",attributeValue:c,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"productTitleColorH",attributeValue:b,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Order Title Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"titleColor",attributeValue:o,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1, | |
| 5724 | -attributeName:"titleColorH",attributeValue:a,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Quality Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"qualityTypography",attributeValue:H,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColor",attributeValue:y,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"qualityColorH",attributeValue:T,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Price Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"discountPriceTypography",attributeValue:d,setAttributes:i, | |
| 5725 | -isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColor",attributeValue:u,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"discountPriceColorH",attributeValue:p,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Table Style","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"tableTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColor",attributeValue:f, | |
| 5726 | -setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"tableTextColorH",attributeValue:g,setAttributes:i})})})]})]})})})}aJ.propTypes={};const lJ={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:""},tableTextColor:{type:"string",default:""},titleTypographyGlobal:{type:"string",default:""}, | |
| 5727 | -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:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px", | |
| 5728 | -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",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"} | |
| 5729 | -},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",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", | |
| 5730 | -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",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"", | |
| 5731 | -wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},imageWidth:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},imageHeight:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},_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:"", | |
| 5732 | -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, | |
| 5733 | -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:"", | |
| 5734 | -hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"", | |
| 5735 | -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, | |
| 5736 | -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:"", | |
| 5737 | -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, | |
| 5738 | -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:{ | |
| 5739 | -animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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 nJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(Nb.A,{blockId:i,name:lJ.UU,attributes:e,children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-funnel-offer",httpMethod:"POST",attributes:e})})})})}nJ.propTypes={};const sJ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{weight:"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{color:(0, | |
| 5740 | -gs.qD)(t?.titleColor),...(0,P.qD)(i,e,o)}},rJ=(t,e="")=>({color:(0,gs.qD)(t?.titleColorH)}),bJ=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"px",property:"width",device:e}),...(0,Ob.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,gs.qD)(t?.productTitleColor),...(0,P.qD)(i,e,o)}},dJ=(t,e="")=>({color:(0,gs.qD)(t?.productTitleColorH)}),uJ=(t,e="")=>{const i=(0,M.Zy)(t?.discountPriceTypography,{weight:"400"}),o=t?.discountPriceTypographyGlobal?t?.discountPriceTypographyGlobal:"",a=t?.discountPriceTypography?(0,P.qD)(i,e,o):[];return{color:(0,gs.qD)(t?.discountPriceColor),...a}},pJ=(t,e="")=>{const i=(0, | |
| 5741 | -M.Zy)(t?.regularPriceTypography,{weight:"400"}),o=t?.regularPriceTypographyGlobal?t?.regularPriceTypographyGlobal:"",a=t?.regularPriceTypography?(0,P.qD)(i,e,o):[];return{color:(0,gs.qD)(t?.regularPriceColor),...a}},mJ=(t,e="")=>{const i={};t?.qualityColor&&(i.color=(0,gs.qD)(t?.qualityColor));const o=(0,M.Zy)(t?.qualityTypography,{weight:"400"}),a=t?.qualityTypographyGlobal?t?.qualityTypographyGlobal:"",l=t?.qualityTypography?(0,P.qD)(o,e,a):[];return{...i,...l}},hJ=(t,e="")=>{const i=(0,M.Zy)(t?.tableTextTypography,"",{weight:"400"}),o=t?.tableTextTypographyGlobal?t?.tableTextTypographyGlobal:"";return{color:(0,gs.qD)(t?.tableTextColor)||"#000",...(0,P.qD)(i,e,o)}};function gJ(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i, | |
| 5742 | -children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0,L.jsx)(A.TextControl,{label:(0,z.__)("Button label","ablocks"),value:e.label||"",onChange:t=>i({label:t}),placeholder:(0,z.__)("Yes, add this to my order","ablocks"),help:(0,z.__)("Leave empty to use the default label.","ablocks")})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Button Hover Effect",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Color",isHeader:!0, | |
| 5743 | -isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Padding",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Border",isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{ | |
| 5744 | -label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})]})})})}(0,M.xV)(lJ.UU,"","storeengine")&&(0,o.registerBlockType)(lJ.UU,{title:"Funnel Offer",attributes:lJ.uK,icon:(0,L.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?new w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__title",sJ(i),sJ(i,"Tablet"),sJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__title:hover",rJ(i),rJ(i,"Tablet"),rJ(i,"Mobile")), | |
| 5745 | -t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content img",bJ(i),bJ(i,"Tablet"),bJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6",cJ(i),cJ(i,"Tablet"),cJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-order-item__content .storeengine-order-item__title h6:hover",dJ(i),dJ(i,"Tablet"),dJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-offer-shortcode .storeengine-funnel-offer__price",uJ(i),uJ(i,"Tablet"),uJ(i,"Mobile")),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",pJ(i),pJ(i,"Tablet"),pJ(i,"Mobile")), | |
| 5746 | -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",mJ(i),mJ(i,"Tablet"),mJ(i,"Mobile")),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",hJ(i),hJ(i,"Tablet"),hJ(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(aJ,{...t}),(0,L.jsx)(nJ,{...t})]})},save:()=>null}),gJ.propTypes={};const fJ={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:""}, | |
| 5747 | -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",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px", | |
| 5748 | -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,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0, | |
| 5749 | -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:""}},buttonAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"", | |
| 5750 | -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:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 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, | |
| 5767 | +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 | +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 | +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 | +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 | +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 | +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 | +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", | |
| 5775 | +letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},imageWidth:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},imageHeight:{type:"object",default:{value:100,valueTablet:80,valueMobile:40}},_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:"", | |
| 5776 | +customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px", | |
| 5777 | +unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"", | |
| 5778 | +hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 5779 | +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 | +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 | +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 | +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, | |
| 5786 | +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 | +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={ | |
| 5791 | +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 | +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 | +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 | +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:"", | |
| 5795 | +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:"", | |
| 5796 | +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:"", | |
| 5797 | +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:"", | |
| 5798 | +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 | +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 | +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 | +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){ | |
| 5804 | +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 | +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:"", | |
| 5808 | +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 | +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 | +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 | +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", | |
| 5812 | +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:"", | |
| 5813 | +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", | |
| 5814 | +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:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"", | |
| 5815 | +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 | +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 | +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 | +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||"", | |
| 5821 | +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 | +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:"", | |
| 5825 | +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 | +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 | +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 | +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:"", | |
| 5829 | +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:"",rightRadiusHMobile:"", | |
| 5830 | +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:"",imgYPositionUnitMobile:"", | |
| 5831 | +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 | +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 | +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 | +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){ | |
| 5837 | +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 | +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 | +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 | +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 | +_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 | +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", | |
| 5844 | +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:"", | |
| 5845 | +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 | +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 | +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 | +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, | |
| 5852 | +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.__)("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 | +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 | +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 | +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 | +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:{ | |
| 5860 | +type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},infoBoxWidth:{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:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%", | |
| 5751 | 5861 | customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0, |
| 5752 | 5862 | isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", |
| 5753 | 5863 | hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", |
| 5754 | 5864 | 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:"", |
| @@ -5754,81 +5864,63 @@ | ||
| 5754 | 5864 | 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:"", |
| 5755 | 5865 | 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:"", |
| 5756 | 5866 | 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", |
| 5757 | 5867 | 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, |
| 5758 | -delay:0,triggerType:"scroll",ease:"none",x:0,y:0,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,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:fJ.UU,attributes:e,children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-funnel-accept",httpMethod:"POST",attributes:e})})})})}yJ.propTypes={};const TJ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},HJ=(t,e="")=>{const i={};i.color=t?.buttonColor??"", | |
| 5759 | -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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function MJ(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0, | |
| 5760 | -L.jsx)(A.TextControl,{label:(0,z.__)("Button label","ablocks"),value:e.label||"",onChange:t=>i({label:t}),placeholder:(0,z.__)("No thanks","ablocks"),help:(0,z.__)("Leave empty to use the default label.","ablocks")})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Button Hover Effect","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{ | |
| 5761 | -children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0, | |
| 5762 | -z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})]})})})}(0,M.xV)(fJ.UU,"","storeengine")&&(0,o.registerBlockType)(fJ.UU,{title:"Funnel Accept",attributes:fJ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",TJ(i),TJ(i,"Tablet"),TJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",HJ(i),HJ(i,"Tablet"),HJ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{ | |
| 5763 | -children:s}),e&&(0,L.jsx)(gJ,{...t}),(0,L.jsx)(yJ,{...t})]})},save:()=>null}),MJ.propTypes={};const xJ={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:"",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", | |
| 5764 | -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,commonWidthH:"", | |
| 5765 | -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:"", | |
| 5766 | -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"}},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, | |
| 5767 | -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, | |
| 5768 | -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:"", | |
| 5769 | -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:"", | |
| 5770 | -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:"", | |
| 5771 | -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:"", | |
| 5772 | -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:"", | |
| 5773 | -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:{ | |
| 5774 | -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 kJ(t){ | |
| 5775 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:xJ.UU,attributes:e,children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-funnel-decline",httpMethod:"POST",attributes:e})})})})}kJ.propTypes={};const vJ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},_J=(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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width", | |
| 5776 | -unitDefaultValue:"%",device:e})}};function RJ(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0,L.jsx)(A.TextControl,{label:(0,z.__)("Button label","ablocks"),value:e.label||"",onChange:t=>i({label:t}),placeholder:(0,z.__)("Yes, add this to my order","ablocks"),help:(0,z.__)("Leave empty to use the default label.","ablocks")})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:d,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"), | |
| 5777 | -attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Button Hover Effect",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Color",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:r,attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Padding",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:s, | |
| 5778 | -attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Border",isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:o,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:"Box shadow",isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})]})})})}(0,M.xV)(xJ.UU,"","storeengine")&&(0,o.registerBlockType)(xJ.UU,{title:"Funnel Decline",attributes:xJ.uK,icon:(0,L.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 | |
| 5779 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}}",vJ(i),vJ(i,"Tablet"),vJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",_J(i),_J(i,"Tablet"),_J(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(MJ,{...t}),(0,L.jsx)(kJ,{...t})]})},save:()=>null}),RJ.propTypes={};const SJ={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:"", | |
| 5780 | -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:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0, | |
| 5781 | -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:"", | |
| 5782 | -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"}},buttonWidth:{type:"object",default:{value:100,valueTablet:"", | |
| 5783 | -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",borderColor:"",borderColorH:"",isLinkedWidth:!0, | |
| 5784 | -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:"", | |
| 5785 | -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"}},_background:{ | |
| 5786 | -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:"", | |
| 5787 | -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:{ | |
| 5788 | -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:"", | |
| 5789 | -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:"", | |
| 5790 | -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, | |
| 5791 | -startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function WJ(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:SJ.UU,attributes:e,children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-funnel-continue",httpMethod:"POST",attributes:e})})})})}WJ.propTypes={};const UJ=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},PJ=(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", | |
| 5792 | -unitRadius:"px"}),n=(0,M.Zy)(t?.padding,{unit:"px"});return{...i,color:(0,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,property:"width",unitDefaultValue:"%",device:e})}};function jJ(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{title:(0,z.__)("Mini Cart Style","ablocks"),isOpen:!0,children:[(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:d,setAttributes:i}),(0,L.jsx)(ot,{label:(0, | |
| 5793 | -z.__)("Icon Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"iconColor",attributeValue:o,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isGradient:!1,attributeName:"iconColorH",attributeValue:a,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Count Typography","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"countTypography",attributeValue:c,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Count Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"countBg",attributeValue:r,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 5794 | -isGradient:!1,attributeName:"countColor",attributeValue:n,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isGradient:!1,attributeName:"countBgH",attributeValue:b,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isGradient:!1,attributeName:"countColorH",attributeValue:s,setAttributes:i})]})}),(0,L.jsx)(Nt,{})]})})})})}(0,M.xV)(SJ.UU,"","storeengine")&&(0,o.registerBlockType)(SJ.UU,{title:"Funnel Continue",attributes:SJ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l), | |
| 5795 | -null===t?"":(t.addClassStyles("{{WRAPPER}}",UJ(i),UJ(i,"Tablet"),UJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-funnel-btn",PJ(i),PJ(i,"Tablet"),PJ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(RJ,{...t}),(0,L.jsx)(WJ,{...t})]})},save:()=>null}),jJ.propTypes={};const wJ={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:"", | |
| 5796 | -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:""}},_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:"", | |
| 5797 | -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:"", | |
| 5798 | -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:"", | |
| 5799 | -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", | |
| 5800 | -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:"", | |
| 5801 | -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", | |
| 5802 | -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", | |
| 5803 | -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", | |
| 5804 | -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:{ | |
| 5805 | -type:"array",default:[],items:{type:"object"}}}};function zJ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:wJ.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-mini-cart",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}zJ.propTypes={};const CJ=(t,e="")=>({color:(0,gs.qD)(t?.iconColor)}),AJ=(t,e="")=>{const i=(0,M.Zy)(t.countTypography,{weight:"400"}),o=t.countTypographyGlobal?t.countTypographyGlobal:"";return{color:(0,gs.qD)(t?.countColor),background:(0,gs.qD)(t?.countBg),...(0,P.qD)(i,e,o)}},LJ=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"});return{...(0,c.qD)(i,"padding",e)}};(0,M.xV)(wJ.UU,"","storeengine")&&(0,o.registerBlockType)(wJ.UU,{title:"Mini Cart Button",attributes:wJ.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg",alt:"logo"}), | |
| 5806 | -edit:function(t){const{isSelected:e,attributes: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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart-link svg",CJ(i),CJ(i,"Tablet"),CJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart",LJ(i),LJ(i,"Tablet"),LJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-mini-cart>button.storeengine-mini-cart-link>.storeengine-min-cart-count",AJ(i),AJ(i,"Tablet"),AJ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(jJ,{...t}),(0,L.jsx)(zJ,{...t})]})},save:()=>null});var DJ=i(57374);function NJ(t){ | |
| 5807 | -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,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,z.__)("Select a Product","ablocks"),value:0});const x=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("General","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Use Custom Product","ablocks"),attributeValue:T,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0, | |
| 5808 | -L.jsx)("i",{children:(0,z.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{options:M,label:(0,z.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("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:DJ.U,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"infoboxAlignment",attributeValue:y,setAttributes:i,isInline:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Notice Typography","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0, | |
| 5809 | -z.__)("Typography","ablocks"),attributeName:"infoTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Notice Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:n,attributeName:"boxColor",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:b,attributeName:"boxBackground",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:s,attributeName:"boxColorH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:c,attributeName:"boxBackgroundH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Link Typography","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"linkTypography",attributeValue:h, | |
| 5810 | -setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Link Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:g,attributeName:"linkColor",setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:f,attributeName:"linkColorH",setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"infoBoxPadding",attributeValue:p,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"infoBoxBorder",attributeValue:u,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box Shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0, | |
| 5811 | -z.__)("Box Shadow","ablocks"),attributeName:"infoBoxoxShadow",attributeValue:d,setAttributes:i})]})})})})})})}NJ.propTypes={};const IJ={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",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", | |
| 5812 | -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"}},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:"", | |
| 5813 | -lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},infoBoxoxShadow:{type:"object",default:{preset:"",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:"", | |
| 5814 | -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:"", | |
| 5815 | -bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},infoboxAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},infoBoxWidth:{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:"", | |
| 5816 | -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:"", | |
| 5817 | -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:"", | |
| 5818 | -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:"", | |
| 5819 | -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:"", | |
| 5820 | -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:"", | |
| 5821 | -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:"", | |
| 5822 | -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:"", | |
| 5823 | -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 VJ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:IJ.UU,attributes:e,typography:[],children:(0, | |
| 5824 | -L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-cart-notice",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}VJ.propTypes={};const OJ=(t,e="")=>{const i=(0,M.Zy)(t?.infoBoxPadding,{unit:"px"}),o=(0,M.Zy)(t.infoBoxBorder,{unitWidth:"px",unitRadius:"px"});return{color:(0,gs.qD)(t?.boxColor),background:(0,gs.qD)(t?.boxBackground),...(0,c.qD)(i,"padding",e),...(0,y.qD)(o,e),...(0,H.qD)(t?.infoBoxoxShadow,e),...(0,Ob.qD)({attributeValue:t?.infoBoxWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})}},YJ=(t,e="")=>{const i=(0,M.Zy)(t.infoTypography,{"font-weight":"400"}),o=t.infoTypographyGlobal?t.infoTypographyGlobal:"";return{...(0,P.qD)(i,e,o)}},XJ=(t,e="")=>{const i=(0,M.Zy)(t?.linkTypography,{"font-weight":"400"}),o=t.linkTypographyGlobal?t.linkTypographyGlobal:"";return{color:(0,gs.qD)(t?.linkColor),...(0,P.qD)(i,e,o)}},BJ=(t,e="")=>{ | |
| 5825 | -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)(IJ.UU,"","storeengine")&&(0,o.registerBlockType)(IJ.UU,{title:"Cart Notice",attributes:IJ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-notice--info",OJ(i),OJ(i,"Tablet"),OJ(i,"Mobile")), | |
| 5826 | -t.addClassStyles("{{WRAPPER}} .storeengine-notice .storeengine-notice--message p,\n\t\t\t{{WRAPPER}} .storeengine-notice .storeengine-notice--message i",YJ(i),YJ(i,"Tablet"),YJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-notice a,\n\t\t\t{{WRAPPER}} .storeengine-notice button",XJ(i),XJ(i,"Tablet"),XJ(i,"Mobile")),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",BJ(i),BJ(i,"Tablet"),BJ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(NJ,{...t}),(0,L.jsx)(VJ,{...t})]})},save:()=>null});var EJ=i(69993);function FJ(t){const{attributes:e,setAttributes:i}=t,o=at(),{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 | |
| 5827 | -}),[]),g=h?h.map(t=>({label:t.title?.rendered,value:t.id})):[];return g.unshift({label:(0,z.__)("Select a Product","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("General","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Use Custom Product","ablocks"),attributeValue:m,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,L.jsx)("i",{children:(0,z.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{options:g,label:(0,z.__)("Select Product","ablocks"),attributeValue:p,attributeName:"product_id",setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Image Dimensions","ablocks"),isHeader:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"), | |
| 5828 | -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:EJ.C$,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("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:EJ.FN,autoSyncRange:!0}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:s,setAttributes:i,isInline:!1})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ct,{ | |
| 5829 | -normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Opacity","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacity",attributeValue:c,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Opacity Hover","ablocks"),min:0,max:1,step:.1,isInline:!1,isResponsive:!1,attributeName:"imageOpacityH",attributeValue:b,setAttributes:i})})}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:d,setAttributes:i}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:u,setAttributes:i})]})})})})})})}FJ.propTypes={};const qJ={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}, | |
| 5830 | -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:"",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:"", | |
| 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, | |
| 5872 | +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:"", | |
| 5875 | +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 | +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 | +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 | +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, | |
| 5879 | +commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px", | |
| 5880 | +hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"", | |
| 5881 | +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 | +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 | +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 | +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){ | |
| 5888 | +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 | +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 | +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, | |
| 5893 | +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:{ | |
| 5896 | +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 | +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 | +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 | +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:"", | |
| 5900 | +topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},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, | |
| 5901 | +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:""}},buttonPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"", | |
| 5902 | +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:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"", | |
| 5903 | +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:""}},AddButtonPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 5904 | +isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},AddButtonBorder:{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:"", | |
| 5905 | +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:"", | |
| 5906 | +transitionDuration:""}},inputWidth:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},buttonWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},AddButtonWidth:{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:"", | |
| 5907 | +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:"", | |
| 5908 | +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:"", | |
| 5909 | +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:"",imgAttachment:"",imgRepeat:"", | |
| 5910 | +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 | +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 | +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 | +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=>({ | |
| 5917 | +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 | +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", | |
| 5921 | +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 | +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:"", | |
| 5831 | 5923 | 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, |
| 5832 | 5924 | 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:"", |
| 5833 | 5925 | 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:"",rightWidthHTablet:"", |
| 5834 | 5926 | 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:"", |
| @@ -5836,67 +5928,20 @@ | ||
| 5836 | 5928 | 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:"", |
| 5837 | 5929 | 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:"", |
| 5838 | 5930 | 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, |
| 5839 | 5931 | 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:"", |
| 5840 | -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 $J(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:qJ.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{ | |
| 5841 | -block:"ablocks/storeengine-product-gallery",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}$J.propTypes={};const GJ=(t,e="")=>{const i=(0,M.Zy)(t?.border,{unitWidth:"px",unitRadius:"px"});return{...i,...(0,y.qD)(i,e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.imageWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.imageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},ZJ=(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)(qJ.UU,"","storeengine")&&(0,o.registerBlockType)(qJ.UU,{title:"Product Gallery",attributes:qJ.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg", | |
| 5842 | -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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(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",GJ(i),GJ(i,"Tablet"),GJ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-gallery_wrapper .storeengine-row .storeengine-col-12 ",ZJ(i),ZJ(i,"Tablet"),ZJ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(FJ,{...t}),(0,L.jsx)($J,{...t})]})}, | |
| 5843 | -save:()=>null});var KJ=i(90723);function JJ(t){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:U,AddButtonBackground:P,AddButtonBackgroundH:j,AddButtonColor:w,AddButtonColorH:A,isCustom:N}=e,I=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),V=I?I.map(t=>({label:t.title?.rendered,value:t.id})):[];V.unshift({label:(0,z.__)("Select a Product","ablocks"),value:0});const O=at();return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{ | |
| 5844 | -initialOpen:!0,title:(0,z.__)("General","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Use Custom Product","ablocks"),attributeValue:N,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,L.jsx)("i",{children:(0,z.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{options:V,label:(0,z.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Product Price","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:d, | |
| 5845 | -attributeName:"productPriceColor",setAttributes:i}),hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeValue:c,attributeName:"productPriceColorH",setAttributes:i})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Product Title","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"ProductPriceTypography",attributeValue:b,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:n,attributeName:"titleColor",setAttributes:i}),hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeValue:s,attributeName:"titleColorH",setAttributes:i})})]})})}),(0,L.jsx)(D,{initialOpen:!1,title:(0,z.__)("Input Box","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),attributeName:"inputWidth",attributeObjectKey:"value",attributeValue:u,setAttributes:i,isInline:!1, | |
| 5846 | -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(u["valueUnit"+O]??"%")?100:1600,attributeDefaultValue:KJ.DK,autoSyncRange:!0})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Typography","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"inputTextTypography",attributeValue:h,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:p,attributeName:"inputTextColor",setAttributes:i}),hover:(0,L.jsx)(vs,{label:(0,z.__)("Hover Color","ablocks"),attributeValue:m,attributeName:"inputTextColorH",setAttributes:i})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0, | |
| 5847 | -attributeName:"inputPadding",attributeValue:g,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"inputBorder",attributeValue:f,setAttributes:i})]})})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Button Style","ablocks"),children:[(0,L.jsx)(Rb,{content:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,isInline:!1,isResponsive:!0,attributeName:"buttonWidth",attributeValue:T,hasUnit:!0,setAttributes:i,attributeDefaultValue:KJ.UM,autoSyncRange:!0})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"btnTypography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeValue:v, | |
| 5848 | -attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:x,attributeName:"buttonBackground",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Hover","ablocks"),attributeValue:_,attributeName:"buttonColorH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:k,attributeName:"buttonBackgroundH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"buttonPadding",attributeValue:H,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:y,setAttributes:i})]})}),(0,L.jsx)(ot,{label:(0,z.__)("Add to cart Button","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Rb,{content:(0, | |
| 5849 | -L.jsx)(L.Fragment,{children:(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,isInline:!1,isResponsive:!0,attributeName:"AddButtonWidth",attributeValue:S,hasUnit:!0,setAttributes:i,attributeDefaultValue:KJ.D3,autoSyncRange:!0})}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"AddBtnTypography",attributeValue:U,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeValue:w,attributeName:"AddButtonColor",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:P,attributeName:"AddButtonBackground",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Text Hover","ablocks"),attributeValue:A,attributeName:"AddButtonColorH",setAttributes:i}),(0,L.jsx)(vs,{label:(0, | |
| 5850 | -z.__)("Background Hover","ablocks"),attributeValue:j,attributeName:"AddButtonBackgroundH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"AddButtonPadding",attributeValue:W,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"AddButtonBorder",attributeValue:R,setAttributes:i})]})})]})]})})})}JJ.propTypes={};const QJ={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"}, | |
| 5851 | -inputTextColorH:{type:"string",default:"#111"},buttonBackground:{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", | |
| 5852 | -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",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", | |
| 5853 | -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"}},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:"", | |
| 5854 | -letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",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:"", | |
| 5855 | -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:"",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:"", | |
| 5856 | -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:""}},buttonPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0, | |
| 5857 | -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:"",bottomWidthHTablet:"",leftWidthHTablet:"", | |
| 5858 | -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:""}}, | |
| 5859 | -AddButtonPadding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},AddButtonBorder:{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:"", | |
| 5860 | -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:"", | |
| 5861 | -leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},inputWidth:{type:"object",default:{value:50,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},buttonWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},AddButtonWidth:{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:"", | |
| 5862 | -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:"", | |
| 5863 | -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:"", | |
| 5864 | -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:"", | |
| 5865 | -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:"", | |
| 5866 | -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:"", | |
| 5867 | -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:"", | |
| 5868 | -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:"", | |
| 5869 | -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 tQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:QJ.UU,attributes:e,typography:[],children:(0, | |
| 5870 | -L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-product-summary",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}tQ.propTypes={};const eQ=(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,Ob.qD)({attributeValue:t?.buttonWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",property:"width",device:e})},...i,...(0,P.qD)(o,e,a),...(0,c.qD)(l,"padding",e),...(0,y.qD)(n,e),...(0,H.qD)(t?.boxShadow,e)}},iQ=(t,e="")=>{const i=(0,M.Zy)(t?.titleTypography,{"font-weight":"400"}),o=t?.titleTypographyGlobal?t?.titleTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.titleColor)}},oQ=(t,e="")=>{ | |
| 5871 | -const i=(0,M.Zy)(t?.ProductPriceTypography,{"font-weight":"400"}),o=t?.ProductPriceTypographyGlobal?t?.ProductPriceTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.productPriceColor)}},aQ=(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,P.qD)(i,e,o),color:(0,gs.qD)(t?.inputTextColor),...(0,y.qD)(l,e),...(0,Ob.qD)({attributeValue:t?.inputWidth,attributeObjectKey:"value",isResponsive:!0,defaultValue:50,hasUnit:!0,unitDefaultValue:"px",property:"width",device:e})}};function lQ(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",{ | |
| 5872 | -per_page:-1}),[]),h=m?m.map(t=>({label:t.title?.rendered,value:t.id})):[];return h.unshift({label:(0,z.__)("Select a Product","ablocks"),value:0}),at(),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("General","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Use Custom Product","ablocks"),attributeValue:p,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,L.jsx)("i",{children:(0,z.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{options:h,label:(0,z.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Title Style","ablocks"), | |
| 5873 | -isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:n,attributeName:"titleColor",setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Text Hover","ablocks"),attributeValue:s,attributeName:"titleColorH",setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Description Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"descriptionTypography",attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{ | |
| 5874 | -children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:c,attributeName:"descriptionColor",setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Text Hover","ablocks"),attributeValue:d,attributeName:"descriptionColorH",setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:b,setAttributes:i})]})})})})})})}(0,M.xV)(QJ.UU,"","storeengine")&&(0,o.registerBlockType)(QJ.UU,{title:"Product Summary",attributes:QJ.uK,icon:(0,L.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 | |
| 5875 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-single__title",iQ(i),iQ(i,"Tablet"),iQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-simple-price .storeengine-price",oQ(i),oQ(i,"Tablet"),oQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-single-product-quantity input[type=number]",aQ(i),aQ(i,"Tablet"),aQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-btn--direct-checkout",eQ(i),eQ(i,"Tablet"),eQ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(JJ,{...t}),(0,L.jsx)(tQ,{...t})]})},save:()=>null}),lQ.propTypes={};const nQ={UU:"ablocks/storeengine-product-description",uK:{block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},product_id:{type:"number",default:0},titleColor:{type:"string", | |
| 5876 | -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"}},descriptionTypographyGlobal:{type:"string",default:""},descriptionTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"", | |
| 5877 | -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:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px", | |
| 5878 | -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:"", | |
| 5879 | -rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"", | |
| 5880 | -widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"", | |
| 5881 | -unitWidthH:"px",unitWidthHTablet:"",unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"", | |
| 5882 | -positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"", | |
| 5883 | -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:"", | |
| 5884 | -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:"", | |
| 5885 | -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:{ | |
| 5886 | -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"}}, | |
| 5887 | -_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,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:nQ.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-product-description",httpMethod:"POST",attributes:{...e,postId:i.postId,product_id:e.product_id?e.product_id:i.postId}})})})})}sQ.propTypes={} | |
| 5888 | -;const rQ=(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,P.qD)(o,e,i),color:(0,gs.qD)(t?.titleColor),...(0,y.qD)(a,e)}},bQ=(t,e="")=>{const i=t?.descriptionTypographyGlobal?t?.descriptionTypographyGlobal:"",o=(0,M.Zy)(t?.descriptionTypography,{"font-weight":"400"});return{...(0,P.qD)(o,e,i),color:(0,gs.qD)(t?.descriptionColor)}};(0,M.xV)(nQ.UU,"","storeengine")&&(0,o.registerBlockType)(nQ.UU,{title:"Product Description",attributes:nQ.uK,icon:(0,L.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 | |
| 5889 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-product-single__content-item h2",rQ(i),rQ(i,"Tablet"),rQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-product-single__content-item p",bQ(i),bQ(i,"Tablet"),bQ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(lQ,{...t}),(0,L.jsx)(sQ,{...t})]})},save:()=>null});var cQ=i(62511);function dQ(t){ | |
| 5890 | -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:U,fillBg:P,fillBgH:j,fillABg:w,fillABgH:A,isCustom:N}=e,I=at(),V=(0,r.useSelect)(t=>t("core").getEntityRecords("postType","storeengine_product",{per_page:-1}),[]),O=V?V.map(t=>({label:t.title?.rendered,value:t.id})):[];return O.unshift({label:(0,z.__)("Select a Product","ablocks"),value:0}),(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{title:(0,z.__)("Heading Style Options","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{ | |
| 5891 | -label:(0,z.__)("Product Selection","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Vt,{label:(0,z.__)("Use Custom Product","ablocks"),attributeValue:N,isResponsive:!1,attributeName:"isCustom",setAttributes:i}),(0,L.jsx)("i",{children:(0,z.__)("Enabled, the same selected product shows in editor and frontend.","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{options:O,label:(0,z.__)("Select Product","ablocks"),attributeValue:o,attributeName:"product_id",setAttributes:i})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"heading_color",attributeValue:a,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"heading_hover_color",attributeValue:n,setAttributes:i})})})})})}),(0,L.jsxs)(D,{title:(0,z.__)("Rating Section","ablocks"),initialOpen:!1,children:[(0,L.jsx)(ot,{label:(0, | |
| 5892 | -z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),isResponsive:!1,attributeName:"section_bg",attributeValue:d,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"section_bg_hover",attributeValue:u,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:s,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Boz Shadow","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:b,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border", | |
| 5893 | -attributeValue:c,setAttributes:i})]}),(0,L.jsxs)(D,{title:(0,z.__)("Average Rating","ablocks"),initialOpen:!1,children:[(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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"+I]??"%")?100:1600,attributeDefaultValue:cQ.sj,autoSyncRange:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Height","ablocks"),attributeName:"section_height",attributeObjectKey:"value",attributeValue:T,setAttributes:i,isInline:!1,hasUnit:!0, | |
| 5894 | -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"+I]??"vh")?100:1600,attributeDefaultValue:cQ.r6,autoSyncRange:!0})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ot,{label:(0,z.__)("Rating Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"rating_color",attributeValue:g,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"rating_color_hover",attributeValue:f,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Typography","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"avg_typography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0, | |
| 5895 | -L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"avg_color",attributeValue:m,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"avg_color_hover",attributeValue:h,setAttributes:i})})})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Text","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"total_typography",attributeValue:M,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"total_rating_color",attributeValue:x,setAttributes:i})}),hover:(0, | |
| 5896 | -L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"total_rating_hover",attributeValue:k,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Fill Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"fillBg",attributeValue:P,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillBgH",attributeValue:j,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Rating Active Style","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 5897 | -isResponsive:!1,attributeName:"fillABg",attributeValue:w,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"fillABgH",attributeValue:A,setAttributes:i})})})]}),(0,L.jsx)(D,{title:(0,z.__)("Feedback Overview","ablocks"),initialOpen:!1,children:(0,L.jsx)(Rb,{content:(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"listTypography",attributeValue:R,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"listColor",attributeValue:_, | |
| 5898 | -setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"listColorH",attributeValue:v,setAttributes:i})})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Icon Color","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),isResponsive:!1,attributeName:"starColor",attributeValue:U,setAttributes:i})}),hover:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),isResponsive:!1,attributeName:"starColorH",attributeValue:W,setAttributes:i})})})]})})})]})})})}dQ.propTypes={};const uQ={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:{ | |
| 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){ | |
| 5935 | +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 | +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 | +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, | |
| 5940 | +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 | +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:{ | |
| 5899 | 5944 | 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", |
| 5900 | 5945 | 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:"", |
| 5901 | 5946 | 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:"", |
| 5902 | 5947 | 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:"", |
| @@ -5909,51 +5954,158 @@ | ||
| 5909 | 5954 | 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:"", |
| 5910 | 5955 | 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:"", |
| 5911 | 5956 | 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:{ |
| 5912 | 5957 | 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:{ |
| 5913 | -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 pQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:uQ.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/storeengine-product-review",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, | |
| 5914 | -M.Zy)(t?.heading_typography,{weight:"400"}),o=t?.heading_typographyGlobal?t?.heading_typographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.heading_color)}},hQ=(t,e="")=>{const i=(0,M.Zy)(t?.padding,{unit:"px"}),o=(0,M.Zy)(t.border,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.section_bg)||"#fff",...(0,y.qD)(o,e),...(0,c.qD)(i,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.section_width,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"width",device:e}),...(0,Ob.qD)({attributeValue:t?.section_height,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:100,unitDefaultValue:"%",property:"height",device:e})}},gQ=(t,e="")=>{const i=(0,M.Zy)(t?.avg_typography,{weight:"400"}),o=t?.avg_typographyGlobal?t?.avg_typographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.avg_color)}},fQ=(t,e="")=>({color:(0,gs.qD)(t?.rating_color),...(0,Ob.qD)({ | |
| 5915 | -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,gs.qD)(t?.total_rating_color),...(0,P.qD)(i,e,o)}},TQ=(t,e="")=>{const i=(0,M.Zy)(t?.listTypography,{weight:"400"}),o=t?.listTypographyGlobal?t?.listTypographyGlobal:"";return{...(0,P.qD)(i,e,o),color:(0,gs.qD)(t?.listColor)}},HQ=(t,e="")=>({color:(0,gs.qD)(t?.starColor),...(0,Ob.qD)({attributeValue:t?.startSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:12,unitDefaultValue:"px",property:"font-size",device:e})}),MQ=(t,e="")=>({background:(0,gs.qD)(t?.fillBg)||"#e7e7e7"});(0,M.xV)(uQ.UU,"","storeengine")&&(0,o.registerBlockType)(uQ.UU,{title:"Product Review",attributes:uQ.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/storeengine.svg", | |
| 5916 | -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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings",hQ(i),hQ(i,"Tablet"),hQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item h2",mQ(i),mQ(i,"Tablet"),mQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating",gQ(i),gQ(i,"Tablet"),gQ(i,"Mobile")), | |
| 5917 | -t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-avg-rating-html .storeengine-icon",fQ(i),fQ(i,"Tablet"),fQ(i,"Mobile")),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.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-ratings-list-item-fill",MQ(i),MQ(i,"Tablet"),MQ(i,"Mobile")), | |
| 5918 | -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",TQ(i),TQ(i,"Tablet"),TQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .storeengine-single-product__content-item--feedback .storeengine-product-feedback-ratings .storeengine-ratings-list-item .storeengine-icon",HQ(i),HQ(i,"Tablet"),HQ(i,"Mobile")),t.generateCSS())},[i]) | |
| 5919 | -;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(dQ,{...t}),(0,L.jsx)(pQ,{...t})]})},save:()=>null});const xQ=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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,docs_url:"https://ablocks.pro/docs/ablocks-text-path-block/",children:(0,L.jsx)(D,{title:(0,z.__)("Text Path","ablocks"),initialOpen:!0,children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ae,{label:(0,z.__)("Title","ablocks"),attributeName:"text",attributeValue:a,setAttributes:i,placeholder:(0,z.__)("Enter your title","ablocks")}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Ut,{label:(0,z.__)("Path Type","ablocks"),options:[{label:(0, | |
| 5920 | -z.__)("Wave","ablocks"),value:"wave"},{label:(0,z.__)("Arc","ablocks"),value:"arc"},{label:(0,z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Line","ablocks"),value:"line"},{label:(0,z.__)("Oval","ablocks"),value:"oval"},{label:(0,z.__)("Spiral","ablocks"),value:"spiral"},{label:(0,z.__)("Custom","ablocks"),value:"custom"}],isSearch:!0,attributeName:"pathType",attributeValue:n,setAttributes:i,onChange:t=>i({pathType:t})}),"custom"===n&&(0,L.jsx)(Ld,{label:(0,z.__)("Icon Upload","ablocks"),attributes:e,setAttributes:i,legacySupport:!0}),(0,L.jsx)(vt,{label:(0,z.__)("Path Size","ablocks"),min:0,max:1e3,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"iconSize",attributeValue:f,setAttributes:i,attributeObjectKey:"iconSize"}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"alignment",attributeValue:o,setAttributes:i,isInline:!1}),(0,L.jsx)(Ub,{label:(0,z.__)("Link","ablocks"),attributeName:"link",attributeValue:b,setAttributes:i})]}),style:(0, | |
| 5921 | -L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeValue:s,isResponsive:!1,attributeName:"isShowIcon",setAttributes:i}),s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"strokeColor",attributeValue:r,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Thikness","ablocks"),min:1,max:100,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"strokeWidth",attributeValue:y,setAttributes:i,attributeObjectKey:"strokeWidth"})]}),(0,L.jsx)(vt,{label:(0,z.__)("Staring Points","ablocks"),min:0,max:500,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"offsetControl",attributeValue:T,setAttributes:i,attributeObjectKey:"offsetControl"}),(0,L.jsx)(vt,{label:(0,z.__)("Rotate","ablocks"),min:0,max:360,hasUnit:!1,isInline:!1,isResponsive:!1,attributeName:"rotate",attributeValue:H,setAttributes:i,attributeObjectKey:"rotate"}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"typography", | |
| 5922 | -attributeValue:u,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Ct,{normal:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"textColor",attributeValue:p||"#000000",setAttributes:i})}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:d,attributeName:"textColorH",setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"textShadow",attributeValue:g,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Text Stroke","ablocks"),attributeValue:m,isResponsive:!1,attributeName:"textStrokeShow",setAttributes:i}),m&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Text Stroke","ablocks"),min:0,max:10,hasUnit:!1,isInline:!1, | |
| 5923 | -isResponsive:!1,attributeName:"textStroke",attributeValue:M,setAttributes:i,attributeObjectKey:"textStroke"}),(0,L.jsx)(vs,{label:(0,z.__)("Stroke Color","ablocks"),attributeName:"strokeTextColor",attributeValue:h,setAttributes:i})]})]})})})})})})},kQ=[{icon:Pc,title:(0,z.__)("Align text left","ablocks"),align:"left"},{icon:jc,title:(0,z.__)("Align text center","ablocks"),align:"center"},{icon:wc,title:(0,z.__)("Align text right","ablocks"),align:"right"},{icon:zc,title:(0,z.__)("Align text justify","ablocks"),align:"justify"}],vQ=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":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": | |
| 5924 | -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""}},_Q=t=>{switch(t){case"wave":case"line":return 45;case"arc":case"oval":return 150;case"circle":case"spiral":return 250;default:return 100}},RQ={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",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:{ | |
| 5925 | -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:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"", | |
| 5926 | -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:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{ | |
| 5927 | -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:"", | |
| 5928 | -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:"", | |
| 5929 | -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:"", | |
| 5930 | -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:"", | |
| 5931 | -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:"", | |
| 5932 | -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:"", | |
| 5933 | -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, | |
| 5934 | -opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}},SQ=t=>{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,L.jsxs)(l().Fragment,{children:[(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(Fc,{attributeValue:o,setAttributes:i, | |
| 5935 | -options:kQ})}),(0,L.jsx)(Nb.A,{blockId:a,name:RQ.UU,attributes:e,typography:[{fontFamily:e.typography?.fontFamily,weight:e.typography?.weight}],children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ablocks-path-text-path",height:_Q(s),viewBox:"custom"===s?`${f}`:`0 0 250 ${_Q(s)}`,children:[(0,L.jsx)("path",{id:`text-path-${a}`,d:"custom"===s?p:vQ(s),fill:"none",strokeWidth:u,className:"ablocks-text-path-svg",stroke:r?(0,gs.qD)(e?.strokeColor):"transparent"}),M?(0,L.jsx)("a",{...x,children:(0,L.jsx)("text",{strokeWidth:h?m:0,stroke:(0,gs.qD)(e?.strokeTextColor)||(0,gs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,L.jsx)("textPath",{href:`#text-path-${a}`,startOffset:d,className:"ablocks-text-path-text",fill:(0,gs.qD)(e?.textColor)||(0,gs.qD)(e?.textColorH),children:n})})}):(0,L.jsx)("text",{strokeWidth:h?m:0,stroke:(0,gs.qD)(e?.strokeTextColor)||(0,gs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,L.jsx)("textPath",{ | |
| 5936 | -href:`#text-path-${a}`,startOffset:d,className:"ablocks-text-path-text",fill:(0,gs.qD)(e?.textColor)||(0,gs.qD)(e?.textColorH),children:n})})]})})]})},WQ=(t,e="")=>{const{alignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},UQ=(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,P.qD)(i,e,o),...(0,fc.qD)(a,e),...(0,pc.qD)(t?.textShadow)}},PQ=t=>({transform:`rotate(${t?.rotate}deg)`,"--width":`${t?.iconSize}px`}),jQ=(t,e="")=>({...{fill:(0,gs.qD)(t?.textColorH),...(0,Ob.qD)({attributeValue:t?.transition,attributeObjectKey:"value",defaultValue:0,unitDefaultValue:"s",property:"transition-duration"})}}),wQ={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", | |
| 5937 | -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:{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", | |
| 5938 | -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:""}},_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:"", | |
| 5939 | -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:"", | |
| 5940 | -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:"", | |
| 5941 | -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:"", | |
| 5942 | -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:"", | |
| 5943 | -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:"", | |
| 5944 | -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:"", | |
| 5945 | -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:"", | |
| 5946 | -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 zQ(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:[(0,L.jsx)(ql,{label:(0,z.__)("Bookmark Text","ablocks"),attributeName:"bookmark_text",attributeValue:a,setAttributes:i,disableDynamicContent:!1}),(0,L.jsx)(ql,{label:(0, | |
| 5947 | -z.__)("Bookmarked Text","ablocks"),attributeName:"bookmarked_text",attributeValue:n,setAttributes:i,disableDynamicContent:!1})]}),(0,L.jsx)(D,{initialOpen:!1,title:(0,z.__)("Button Style","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:m,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:s,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:r,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"), | |
| 5948 | -isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:p,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:b,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:d,attributeName:"buttonColor",setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:c,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:u,attributeName:"buttonColorH", | |
| 5949 | -setAttributes:i})]})})]})})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Badge Style","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Badge Size","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeName:"badgeSize",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i})]})]})})})}(0,o.registerBlockType)(RQ.UU,{title:"Text Path",icon:(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--text-path"}),attributes:RQ.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;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,n)):t=new w(i,n):t=2===i?.blockVersion?new w(i,n):new j(i,n), | |
| 5950 | -null===t?"":(t.addClassStyles("{{WRAPPER}}.ablocks-block--text-path .ablocks-block-container",WQ(i),WQ(i,"Tablet"),WQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text",UQ(i),UQ(i,"Tablet"),UQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-text-path-text:hover",jQ(i),jQ(i,"Tablet"),jQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ablocks-path-text-path",PQ(i),PQ(i),PQ(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(xQ,{...t}),(0,L.jsx)(SQ,{...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,L.jsx)(l().Fragment,{children:(0,L.jsx)(oc,{blockId:i,name:RQ.UU,attributes:e, | |
| 5951 | -children:(0,L.jsxs)("svg",{className:"ablocks-path-text-path",height:_Q(a),viewBox:"custom"===a?`${p}`:`0 0 250 ${_Q(a)}`,children:[(0,L.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?c:vQ(a),fill:"none",strokeWidth:b,className:"ablocks-text-path-svg",stroke:n?(0,gs.qD)(e?.strokeColor):"transparent"}),f?(0,L.jsx)("a",{...y,children:(0,L.jsx)("text",{strokeWidth:u?d:0,stroke:(0,gs.qD)(e?.strokeTextColor)||(0,gs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,L.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:r,fill:(0,gs.qD)(e?.textColor)||(0,gs.qD)(e?.textColorH),children:o})})}):(0,L.jsx)("text",{strokeWidth:u?d:0,stroke:(0,gs.qD)(e?.strokeTextColor)||(0,gs.qD)(e?.textColor),className:"ablocks-text-path-text-parent",children:(0,L.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:r,fill:(0,gs.qD)(e?.textColor)||(0,gs.qD)(e?.textColorH),children:o})})]})})})},deprecated:[{ | |
| 5952 | -attributes:wQ.uK,save:t=>{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,L.jsx)(l().Fragment,{children:(0,L.jsx)(dc,{blockId:i,name:wQ.UU,attributes:e,children:(0,L.jsx)("div",{className:"ablocks-text-path",children:(0,L.jsxs)("svg",{className:"ablocks-path-text-path",height:_Q(a),viewBox:"custom"===a?`${f}`:`0 0 250 ${_Q(a)}`,children:[(0,L.jsx)("path",{id:`text-path-${i}`,d:"custom"===a?u:vQ(a),fill:"none",strokeWidth:d,className:"ablocks-text-path-svg",stroke:n?s:"transparent"}),M?(0,L.jsx)("a",{...x,children:(0,L.jsx)("text",{strokeWidth:h?m:0,stroke:g||b,children:(0,L.jsx)("textPath",{ | |
| 5953 | -className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:c,fill:b||p,children:o})})}):(0,L.jsx)("text",{strokeWidth:h?m:0,stroke:g||b,children:(0,L.jsx)("textPath",{className:"ablocks-text-path-text",href:`#text-path-${i}`,startOffset:c,fill:b||p,children:o})})]})})})})}}]}),zQ.propTypes={};const CQ={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:"", | |
| 5954 | -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:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"", | |
| 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, | |
| 5965 | +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 | +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 | +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", | |
| 5970 | +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 | +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 | +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 | +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:""}}, | |
| 5974 | +_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:"", | |
| 5975 | +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 | +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 | +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 | +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:{ | |
| 5983 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +}),(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:"", | |
| 6000 | +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 | +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 | +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 | +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:"", | |
| 5955 | 6004 | 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:"", |
| 6005 | +leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"", | |
| 6006 | +imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px", | |
| 6007 | +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 | +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 | +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 | +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,{ | |
| 6014 | +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:""}, | |
| 6017 | +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 | +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 | +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 | +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:"", | |
| 6021 | +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:"", | |
| 6022 | +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:"", | |
| 6023 | +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:"", | |
| 6024 | +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 | +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 | +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 | +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, | |
| 6030 | +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 | +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 | +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", | |
| 6035 | +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 | +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 | +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 | +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", | |
| 6039 | +letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},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:"", | |
| 6040 | +wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},desTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},desTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{ | |
| 6041 | +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:"", | |
| 6042 | +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:{ | |
| 6043 | +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:"", | |
| 6044 | +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 | +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 | +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 | +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, | |
| 6051 | +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:{ | |
| 6054 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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){ | |
| 6064 | +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 | +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:""}, | |
| 6068 | +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 | +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 | +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 | +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, | |
| 6072 | +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:"", | |
| 6073 | +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:"", | |
| 6074 | +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 | +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 | +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 | +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"), | |
| 6083 | +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 | +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 | +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 | +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 | +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", | |
| 6089 | +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",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:"", | |
| 6090 | +top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},itemGap:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10},showTitle:{type:"boolean",default:!0},fillColor:{type:"string",default:""},iconColor:{type:"string",default:""},titleColor:{type:"string",default:""},bgColor:{type:"string",default:""},activeFillColor:{type:"string",default:""},activeIconColor:{type:"string",default:""},activeTitleColor:{type:"string",default:""},activeBGColor:{type:"string",default:""},_margin:{type:"object",default:{isLinked:!0, | |
| 6091 | +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:"", | |
| 6092 | +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:"", | |
| 6093 | +rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none", | |
| 6094 | +backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"",imgPositionHTablet:"", | |
| 6095 | +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 | +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 | +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 | +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", | |
| 6102 | +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 | +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:"", | |
| 6107 | +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:"", | |
| 5956 | 6108 | 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, |
| 5957 | 6109 | 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:"", |
| 5958 | 6110 | 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:"", |
| 5959 | 6111 | rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none", |
| @@ -5961,39 +6113,59 @@ | ||
| 5961 | 6113 | 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:"", |
| 5962 | 6114 | 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:"", |
| 5963 | 6115 | 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", |
| 5964 | 6116 | 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", |
| 5965 | -default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function AQ(t){const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:CQ.UU,attributes:e,typography:[{fontFamily:e.buttonTypography?.fontFamily,weight:e.buttonTypography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-bookmark-button",httpMethod:"POST",attributes:e})})})})}AQ.propTypes={};const LQ=(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},DQ=(t,e="")=>{const i={};i.color=t?.buttonColor??"",i.background=t?.buttonBackground??"";const o=(0,M.Zy)(t?.buttonTypography,{weight:"400" | |
| 5966 | -}),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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},NQ=(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,gs.qD)(t?.buttonColorH),background:(0,gs.qD)(t?.buttonBackgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},IQ=(t,e="")=>({...(0,Ob.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"width",unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"height",unitDefaultValue:"px",device:e})}),VQ=(t,e="")=>{const i=(0, | |
| 5967 | -gs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function OQ(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e,setAttributes:i,children:(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"bandageHeight",attributeValue:e?.bandageHeight??0,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:d,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1 | |
| 5968 | -}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Badge Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:s,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:b,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:o||{}, | |
| 5969 | -setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(CQ.UU,"","easy_content_manager")&&(0,o.registerBlockType)(CQ.UU,{title:"Bookmark Button",attributes:CQ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ablocks-block--ecm-bookmark-button",LQ(i),LQ(i,"Tablet"),LQ(i,"Mobile")), | |
| 5970 | -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button",DQ(i),DQ(i,"Tablet"),DQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button:hover",NQ(i),NQ(i,"Tablet"),NQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg",IQ(i),IQ(i,"Tablet"),IQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark button svg path",VQ(i),VQ(i),VQ(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(zQ,{...t}),(0,L.jsx)(AQ,{...t})]})},save:()=>null}),OQ.propTypes={};const YQ={UU:"ablocks/ecm-bookmark-badge",uK:{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:""},padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0, | |
| 5971 | -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:"",bottomWidthHTablet:"", | |
| 5972 | -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:"", | |
| 5973 | -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:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"", | |
| 5974 | -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:"", | |
| 5975 | -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:"", | |
| 5976 | -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:"", | |
| 5977 | -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:"", | |
| 5978 | -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:"", | |
| 5979 | -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:"", | |
| 5980 | -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:"", | |
| 5981 | -shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function XQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:YQ.UU,attributes:e,typography:[],children:(0, | |
| 5982 | -L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-bookmark-badge",httpMethod:"POST",attributes:e})})})})}XQ.propTypes={};const BQ=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},EQ=(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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}},FQ=(t,e="")=>{const i={};i.color=t?.buttonColorH??"", | |
| 5983 | -i.background=t?.buttonBackgroundH??"";const o=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...i,color:(0,gs.qD)(t?.buttonColorH),background:(0,gs.qD)(t?.buttonBackgroundH),...(0,y.a9)(o,e),...(0,H.a9)(t?.boxShadow,e)}},qQ=(t,e="")=>{const i=(0,gs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function $Q(t){const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:o,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:a,setAttributes:i, | |
| 5984 | -options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("List Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",attributeValue:s,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"listBorder",attributeValue:r,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"listBoxShadow",attributeValue:b,setAttributes:i})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"listBackground",setAttributes:i})})})}),(0,L.jsx)(D,{initialOpen:!0,title:(0, | |
| 5985 | -z.__)("Content Title","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:e?.titleColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:e?.titleTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:e?.titleTextShadow,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:e?.titleTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content Descriptions","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"desColor",attributeValue:e?.desColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"desTypography", | |
| 5986 | -attributeValue:e?.desTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:e?.desTextShadow,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Not Found Text","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"notFoundAlignment",attributeValue:e?.notFoundAlignment,setAttributes:i,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}],isInline:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"notFoundColor",attributeValue:e?.notFoundColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 5987 | -attributeName:"notFoundTypography",attributeValue:e?.notFoundTypography,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(YQ.UU,"","easy_content_manager")&&(0,o.registerBlockType)(YQ.UU,{title:"Bookmark Badge",attributes:YQ.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark",BQ(i),BQ(i,"Tablet"),BQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg",EQ(i),EQ(i,"Tablet"),EQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg path",qQ(i),qQ(i),qQ(i)), | |
| 5988 | -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark svg:hover",FQ(i),FQ(i,"Tablet"),FQ(i,"Mobile")),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(OQ,{...t}),(0,L.jsx)(XQ,{...t})]})},save:()=>null}),i(38652),$Q.propTypes={};const GQ={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",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, | |
| 5989 | -common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},listBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"", | |
| 5990 | -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:""}}, | |
| 5991 | -listBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},notFoundTypographyGlobal:{type:"string",default:""},notFoundTypography:{ | |
| 5992 | -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:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},desTypographyGlobal:{type:"string",default:""},desTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"", | |
| 5993 | -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",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"", | |
| 5994 | -leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"", | |
| 5995 | -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, | |
| 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){ | |
| 6119 | +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:"", | |
| 6123 | +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 | +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 | +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 | +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", | |
| 6127 | +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:""}},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},itemGap:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10}, | |
| 6128 | +showTitle:{type:"boolean",default:!0},fillColor:{type:"string",default:""},iconColor:{type:"string",default:""},titleColor:{type:"string",default:""},bgColor:{type:"string",default:""},activeFillColor:{type:"string",default:""},activeIconColor:{type:"string",default:""},activeTitleColor:{type:"string",default:""},activeBGColor:{type:"string",default:""},post_id:{type:"number"},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:"upvote-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:"", | |
| 6129 | +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:"", | |
| 6130 | +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:"", | |
| 6131 | +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:"", | |
| 6132 | +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:"", | |
| 6133 | +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 | +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 | +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 | +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 | +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 | +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 | +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:"", | |
| 6143 | +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 | +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 | +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 | +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", | |
| 6147 | +strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"", | |
| 6148 | +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:"", | |
| 6149 | +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"} | |
| 6150 | +},_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:"", | |
| 6151 | +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 | +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 | +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 | +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, | |
| 6158 | +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 | +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={ | |
| 6162 | +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 | +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 | +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 | +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:"", | |
| 6166 | +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:"",rightWidthTablet:"", | |
| 6167 | +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, | |
| 5996 | 6168 | isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", |
| 5997 | 6169 | 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:"", |
| 5998 | 6170 | 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:"", |
| 5999 | 6171 | 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", |
| @@ -5998,105 +6170,40 @@ | ||
| 5998 | 6170 | 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:"", |
| 5999 | 6171 | 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", |
| 6000 | 6172 | 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", |
| 6001 | 6173 | 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:""}, |
| 6002 | -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function ZQ(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:GQ.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-bookmark-list",httpMethod:"POST",attributes:e})})})})}ZQ.propTypes={};const KQ=(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,Ob.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,gs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},JQ=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{unitWidthH:"px",unitRadiusH:"px"});return{ | |
| 6003 | -...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},QQ=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},t1=(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,gs.qD)(t?.titleColor),...(0,P.qD)(o,e,a),...(0,fc.qD)(l,e),...(0,pc.qD)(t?.titleTextShadow)}},e1=(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,gs.qD)(t?.desColor),...(0,P.qD)(o,e,a),...(0,fc.qD)(l,e),...(0,pc.qD)(t?.desTextShadow)}},i1=(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:"" | |
| 6004 | -;return i&&i[`value${e}`]&&(o["text-align"]=i[`value${e}`]),{...o,color:(0,gs.qD)(t?.notFoundColor),...(0,P.qD)(a,e,l)}};function o1(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Content Setting","ablocks"),children:[(0,L.jsx)(ql,{label:(0,z.__)("Wrapper Class","ablocks"),attributeName:"wrapper_class",attributeValue:p,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeName:"show_icon",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Label","ablocks"),attributeName:"show_label",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0, | |
| 6005 | -z.__)("Label (Single)","ablocks"),attributeName:"label_single",attributeValue:d,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Label (Plural)","ablocks"),attributeName:"label_plural",attributeValue:u,setAttributes:i})]})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Count Setting","ablocks"),children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"countAlignment",attributeValue:r,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:e?.numberColor,attributeName:"numberColor",setAttributes:i})})]})]})})})}(0,M.xV)(GQ.UU,"","easy_content_manager")&&(0,o.registerBlockType)(GQ.UU,{title:"Bookmark List",attributes:GQ.uK,icon:(0,L.jsx)("img",{ | |
| 6006 | -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 w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item",KQ(i),KQ(i,"Tablet"),KQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-item:hover",JQ(i),JQ(i,"Tablet"),JQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list",QQ(i),QQ(i,"Tablet"),QQ(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-title",t1(i),t1(i,"Tablet"),t1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--bookmark__list-date",e1(i),e1(i,"Tablet"),e1(i,"Mobile")),t.addClassStyles("{{WRAPPER}}",i1(i),i1(i,"Tablet"),i1(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{ | |
| 6007 | -children:s}),e&&(0,L.jsx)($Q,{...t}),(0,L.jsx)(ZQ,{...t})]})},save:()=>null}),o1.propTypes={};const a1={UU:"ablocks/ecm-bookmark-count",uK:{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:"", | |
| 6008 | -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, | |
| 6009 | -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:"", | |
| 6010 | -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:"", | |
| 6011 | -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:"", | |
| 6012 | -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", | |
| 6013 | -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:"", | |
| 6014 | -scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px",scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"", | |
| 6015 | -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 l1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0, | |
| 6016 | -L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:a1.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-bookmark-count",httpMethod:"POST",attributes:e})})})})}l1.propTypes={};const n1=(t,e="")=>{const{countAlignment:i={}}=t,o={display:"flex"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},s1=(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,gs.qD)(t?.numberColor),background:(0,gs.qD)(t?.countBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20, | |
| 6017 | -property:"width",unitDefaultValue:"px",device:e})}};function r1(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Reaction List Title","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"reactionAlignment",options:[{value:"start",label:"start",icon:"align-left"},{value:"center",label:"Center",icon:"align-center"},{value:"end",label:"end",icon:"align-right"}],attributeValue:a,setAttributes:i,isInline:!1}),(0,L.jsx)(Ut,{label:(0,z.__)("List Type","ablocks"),options:[{label:(0,z.__)("Default","ablocks"),value:"Disc"},{label:(0, | |
| 6018 | -z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Square","ablocks"),value:"square"},{label:(0,z.__)("Decimal","ablocks"),value:"decimal"},{label:(0,z.__)("Decimal Leading Zero","ablocks"),value:"decimal-leading-zero"},{label:(0,z.__)("Lower Alpha","ablocks"),value:"lower-alpha"},{label:(0,z.__)("Upper Alpha","ablocks"),value:"upper-alpha"},{label:(0,z.__)("Lower Roman","ablocks"),value:"lower-roman"},{label:(0,z.__)("Upper Roman","ablocks"),value:"upper-roman"},{label:(0,z.__)("None","ablocks"),value:"none"}],isSearch:!0,attributeName:"reactionUlStyle",attributeValue:o,setAttributes:i})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"reacTitleColor",attributeValue:d,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"reacTitleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e})]})})}),(0,L.jsx)(D,{initialOpen:!1,title:(0,z.__)("Reaction List Style","ablocks"), | |
| 6019 | -children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"reacListColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"reacListTypography",attributeValue:s,setAttributes:i,isResponsive:!0,attributes:e})]})}),(0,L.jsx)(D,{initialOpen:!1,title:(0,z.__)("No bookmarks exist Style","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"nobookmarksColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"nobookmarksTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(a1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(a1.UU,{title:"Bookmark Count",attributes:a1.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg",alt:"logo"}),edit:function(t){ | |
| 6020 | -const{isSelected:e,attributes: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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}} .ablocks-block--ecm-bookmark-count",n1(i),n1(i,"Tablet"),n1(i,"Mobile"));const e=i?.wrapper_class||"wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,s1(i),s1(i,"Tablet"),s1(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(o1,{...t}),(0,L.jsx)(l1,{...t})]})},save:()=>null}),i(6035),r1.propTypes={};const b1={UU:"ablocks/ecm-reaction-list",uK:{reactionAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},reacTitleTypographyGlobal:{type:"string",default:""},reacTitleTypography:{type:"object",default:{fontFamily:"",weight:"", | |
| 6021 | -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",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px", | |
| 6022 | -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"}},textShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},textStroke:{ | |
| 6023 | -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,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"", | |
| 6024 | -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:"", | |
| 6025 | -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:"", | |
| 6026 | -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:"", | |
| 6027 | -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:"", | |
| 6028 | -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, | |
| 6029 | -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:"", | |
| 6030 | -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:"", | |
| 6031 | -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){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{ | |
| 6032 | -blockId:o,name:b1.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-reaction-list",httpMethod:"POST",attributes:e})})})})}c1.propTypes={};const d1=(t,e="")=>{const i=(0,M.Zy)(t.reacTitleTypography,{weight:"400"});return{color:(0,gs.qD)(t?.reacTitleColor),...(0,P.qD)(i,e)}},u1=(t,e="")=>{const i=(0,M.Zy)(t.reacTitleTypography,{weight:"400"}),o=t.reactionUlStyle?t.reactionUlStyle:"disc";return{color:(0,gs.qD)(t?.reacTitleColor),...(0,P.qD)(i,e),"list-style-type":o,...(0,Gt.qD)(t?.reactionAlignment,"text-align",e)}},p1=(t,e="")=>{const i=(0,M.Zy)(t.reacListTypography,{weight:"400"});return{color:(0,gs.qD)(t?.reacListColor),...(0,P.qD)(i,e)}},m1=(t,e="")=>{const i=(0,M.Zy)(t.nobookmarksTypography,{weight:"400"});return{color:(0,gs.qD)(t?.nobookmarksColor),flexDirection:"column",...(0,P.qD)(i,e),...(0,Gt.qD)(t?.reactionAlignment,"align-items",e)}};(0,M.xV)(b1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(b1.UU,{title:"Reaction List", | |
| 6033 | -attributes:b1.uK,icon:(0,L.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 w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}}"),t.addClassStyles("{{WRAPPER}} p.ecm-shortcode--reaction__list-title",d1(i),d1(i,"Tablet"),d1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--reaction__list",u1(i),u1(i,"Tablet"),u1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} p.ecm-shortcode--reaction__list-meta",p1(i),p1(i,"Tablet"),p1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction",m1(i),m1(i,"Tablet"),m1(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(r1,{...t}),(0,L.jsx)(c1,{...t})]})},save:()=>null});var h1=i(64608);function g1(t){ | |
| 6034 | -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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Reaction","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"justificationAlign",attributeValue:o,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Title","ablocks"),attributeValue:b,setAttributes:i,attributeName:"showTitle",isResponsive:!1}),(0,L.jsx)(vt,{label:(0, | |
| 6035 | -z.__)("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:h1.u2}),(0,L.jsx)(vt,{label:(0,z.__)("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:h1.nO})]}),style:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:m,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("BG Color","ablocks"),attributeName:"bgColor",attributeValue:h,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Icon BG Color","ablocks"),attributeName:"iconColor",attributeValue:p,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Fill Color","ablocks"), | |
| 6036 | -attributeName:"fillColor",attributeValue:u,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:a,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"border",attributeValue:c,setAttributes:i})]})})}),(0,L.jsx)(D,{initialOpen:!1,title:(0,z.__)("Active Reaction Style","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Title Color","ablocks"),attributeName:"activeTitleColor",attributeValue:y,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("active BG Color","ablocks"),attributeName:"activeBGColor",attributeValue:T,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Fill Color","ablocks"),attributeName:"activeFillColor",attributeValue:g,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Icon Color","ablocks"),attributeName:"activeIconColor",attributeValue:f,setAttributes:i}),(0,L.jsx)(Wc,{label:(0, | |
| 6037 | -z.__)("Typography","ablocks"),attributeName:"activeTitleTypography",attributeValue:n,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"activeBorder",attributeValue:d,setAttributes:i})]})})]})})})}(0,z.__)("Flex Start","ablocks"),(0,z.__)("Center","ablocks"),(0,z.__)("Flex End","ablocks"),(0,z.__)("Space Between","ablocks"),(0,z.__)("Space Around","ablocks"),(0,z.__)("Space Evenly","ablocks"),g1.propTypes={};const f1={UU:"ablocks/ecm-reaction",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:"", | |
| 6038 | -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, | |
| 6039 | -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:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0, | |
| 6040 | -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:"", | |
| 6041 | -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",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},activeTitleTypographyGlobal:{type:"string",default:""},activeTitleTypography:{type:"object",default:{fontFamily:"", | |
| 6042 | -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"}},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:""}},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:"" | |
| 6043 | -}},itemGap:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10},showTitle:{type:"boolean",default:!0},fillColor:{type:"string",default:""},iconColor:{type:"string",default:""},titleColor:{type:"string",default:""},bgColor:{type:"string",default:""},activeFillColor:{type:"string",default:""},activeIconColor:{type:"string",default:""},activeTitleColor:{type:"string",default:""},activeBGColor:{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, | |
| 6044 | -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, | |
| 6045 | -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:"",topRadiusHTablet:"", | |
| 6046 | -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:"", | |
| 6047 | -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:"", | |
| 6048 | -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:"", | |
| 6049 | -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:"", | |
| 6050 | -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:{ | |
| 6051 | -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 y1(t){ | |
| 6052 | -const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:f1.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-reaction",httpMethod:"POST",attributes:e})})})})}y1.propTypes={};const T1=(t,e="")=>({...{...(0,Ob.qD)({attributeValue:t?.itemGap,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",property:"gap",device:e})},...(0,Gt.qD)(t?.justificationAlign,"justify-content",e)}),H1=(t,e="")=>{const i={};return t.showTitle&&(i.display="block"),{...i}},M1=(t,e="")=>({...{...(0,Ob.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",property:"height",device:e}),...(0,Ob.qD)({attributeValue:t?.iconSize,attributeObjectKey:"value",isResponsive:!0,defaultValue:20,unitDefaultValue:"px",property:"width",device:e})}}),x1=(t,e="")=>({fill:`${(0,gs.qD)(t?.fillColor)} !important`,stroke:`${(0, | |
| 6053 | -gs.qD)(t?.iconColor)} !important`}),k1=(t,e="")=>({fill:`${(0,gs.qD)(t?.activeFillColor)} !important`,stroke:`${(0,gs.qD)(t?.activeIconColor)} !important`}),v1=(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,gs.qD)(t?.bgColor),color:(0,gs.qD)(t?.titleColor),...(0,P.qD)(i,e,o),...(0,y.qD)(a,e)}},_1=(t,e="")=>{const i=(0,M.Zy)(t.border,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,Ob.qD)({attributeValue:t?.transition,defaultValue:10,unitDefaultValue:"s",property:"transition-duration"}),...(0,y.a9)(i,e)}},R1=(t,e="")=>{const i=(0,M.Zy)(t.activeTitleTypography,{weight:"400"}),o=t.activeTitleTypographyGlobal?t.activeTitleTypographyGlobal:"",a=(0,M.Zy)(t.activeBorder,{unitWidth:"px",unitRadius:"px"});return{background:(0,gs.qD)(t?.activeBGColor),color:(0,gs.qD)(t?.activeTitleColor),...(0,P.qD)(i,e,o),...(0,y.qD)(a,e)}},S1=(t,e="")=>{const i=(0, | |
| 6054 | -M.Zy)(t.activeBorder,{unitWidthH:"px",unitRadiusH:"px"});return{...(0,Ob.qD)({attributeValue:t?.transition,defaultValue:10,unitDefaultValue:"s",property:"transition-duration"}),...(0,y.a9)(i,e)}};function W1(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0,L.jsx)(ql,{label:(0,z.__)("Upvote Text","ablocks"),attributeName:"text",attributeValue:o,setAttributes:i,disableDynamicContent:!1})}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Upvote Button Style","ablocks"),children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:u,setAttributes:i,options:[{label:"left",value:"flex-start", | |
| 6055 | -icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:b,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:c,attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:a,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:n,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:s,attributeName:"buttonColorH", | |
| 6056 | -setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:r,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Badge Style","ablocks"),children:[(0,L.jsx)(vt,{label:(0,z.__)("Badge Size","ablocks"),min:0,max:100,isInline:!1,hasUnit:!0,attributeName:"badgeSize",attributeValue:p||0,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i})]})]})})})}(0,M.xV)(f1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(f1.UU,{title:"Reaction",attributes:f1.uK,icon:(0,L.jsx)("img",{className:"ablocks-img-icon",src:M.hq+"assets/images/ecm-Icon.svg", | |
| 6057 | -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 w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}}"),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--reaction",T1(i),T1(i,"Tablet"),T1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} span.ecm-shortcode--reaction__label.ecm--hidden",H1(i),H1(i,"Tablet"),H1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg",M1(i),M1(i,"Tablet"),M1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} div.ecm-shortcode--reaction__icon svg path",x1(i),x1(i,"Tablet"),x1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--reaction__button--active div.ecm-shortcode--reaction__icon svg path",k1(i),k1(i,"Tablet"),k1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button",v1(i),v1(i,"Tablet"),v1(i,"Mobile")), | |
| 6058 | -t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button:hover",_1(i),_1(i,"Tablet"),_1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active",R1(i),R1(i,"Tablet"),R1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} button.ecm-shortcode--reaction__button.ecm-shortcode--reaction__button--active:hover",S1(i),S1(i,"Tablet"),S1(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(g1,{...t}),(0,L.jsx)(y1,{...t})]})},save:()=>null}),W1.propTypes={};const U1={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:{ | |
| 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){ | |
| 6176 | +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 | +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:{ | |
| 6059 | 6181 | isLinked:!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:"", |
| 6060 | 6182 | 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:"", |
| 6061 | -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:"",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:"", | |
| 6062 | -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:"",leftWidthH:"", | |
| 6063 | -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:"", | |
| 6064 | -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:"", | |
| 6065 | -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:"", | |
| 6066 | -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:"", | |
| 6067 | -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:"", | |
| 6068 | -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:"", | |
| 6069 | -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 P1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:U1.UU,attributes:e,typography:[],children:(0, | |
| 6070 | -L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-upvote",httpMethod:"POST",attributes:e})})})})}P1.propTypes={};const j1=(t,e="")=>{const{buttonAlignment:i}=t,o={display:"flex","flex-direction":"column"};return i[`value${e}`]&&(o["align-items"]=i[`value${e}`]),o},w1=(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"});return{...i,color:(0,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e)}},z1=(t,e="")=>{const i={};t?.buttonColorH&&(i.color=(0,gs.qD)(t.buttonColorH)),t?.buttonBackgroundH&&(i.background=(0,gs.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)}},C1=(t,e="")=>({...(0,Ob.qD)({ | |
| 6071 | -attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"width",unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t?.badgeSize,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:30,property:"height",unitDefaultValue:"px",device:e})}),A1=(t,e="")=>{const i=(0,gs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function L1(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Content Setting","ablocks"),children:[(0,L.jsx)(ql,{label:(0,z.__)("Wrapper Class","ablocks"),attributeName:"wrapper_class",attributeValue:p,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"), | |
| 6072 | -attributeName:"show_icon",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Label","ablocks"),attributeName:"show_label",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Label (Single)","ablocks"),attributeName:"label_single",attributeValue:d,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Label (Plural)","ablocks"),attributeName:"label_plural",attributeValue:u,setAttributes:i})]})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Upvote Count Setting","ablocks"),children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"countAlignment",attributeValue:r,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{ | |
| 6073 | -label:(0,z.__)("Color","ablocks"),attributeValue:e?.upvoteNumberColor,attributeName:"upvoteNumberColor",setAttributes:i})})]})]})})})}(0,M.xV)(U1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(U1.UU,{title:"Upvote",attributes:U1.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote",j1(i),j1(i,"Tablet"),j1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn",w1(i),w1(i,"Tablet"),w1(i,"Mobile")), | |
| 6074 | -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn:hover",z1(i),z1(i,"Tablet"),z1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg",C1(i),C1(i,"Tablet"),C1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg path",A1(i),A1(i),A1(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(W1,{...t}),(0,L.jsx)(P1,{...t})]})},save:()=>null}),L1.propTypes={};const D1={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:"", | |
| 6075 | -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, | |
| 6076 | -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:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0, | |
| 6077 | -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:"", | |
| 6078 | -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",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},activeTitleTypographyGlobal:{type:"string",default:""},activeTitleTypography:{type:"object",default:{fontFamily:"", | |
| 6079 | -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"}},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:""}},iconSize:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:"" | |
| 6080 | -}},itemGap:{type:"object",default:{value:20,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},block_id:{type:"string",default:""},blockVersion:{type:"number",default:2},transition:{type:"number",default:10},showTitle:{type:"boolean",default:!0},fillColor:{type:"string",default:""},iconColor:{type:"string",default:""},titleColor:{type:"string",default:""},bgColor:{type:"string",default:""},activeFillColor:{type:"string",default:""},activeIconColor:{type:"string",default:""},activeTitleColor:{type:"string",default:""},activeBGColor:{type:"string",default:""},post_id:{type:"number"},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:"upvote-count-wrapper"},upvoteNumberColor:{type:"string",default:""},countAlignment:{type:"object",default:{value:"left",valueTablet:"",valueMobile:""}},_margin:{ | |
| 6081 | -type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0, | |
| 6082 | -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:"", | |
| 6083 | -leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{ | |
| 6084 | -backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px",imgDisplaySizeWidthUnitTablet:"",imgDisplaySizeWidthUnitMobile:"",imgIdH:"",imgIdTabletH:"",imgIdMobileH:"",imgUrlH:"",imgUrlHTablet:"",imgUrlHMobile:"",imgSizeH:"",imgSizeHTablet:"",imgSizeHMobile:"",imgPositionH:"", | |
| 6085 | -imgPositionHTablet:"",imgPositionHMobile:"",imgXPositionUnitH:"px",imgXPositionUnitHTablet:"",imgXPositionUnitHMobile:"",imgXPositionH:"",imgXPositionHTablet:"",imgXPositionHMobile:"",imgYPositionUnitH:"px",imgYPositionUnitHTablet:"",imgYPositionUnitHMobile:"",imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""}},_zIndex:{type:"object",default:{zIndex:"",zIndexTablet:"",zIndexMobile:""}},_transform:{type:"object",default:{rotate:"", | |
| 6086 | -rotateTablet:"",rotateMobile:"",rotate3D:!1,rotate3DTablet:!1,rotate3DMobile:!1,rotateX:"",rotateXTablet:"",rotateXMobile:"",rotateY:"",rotateYTablet:"",rotateYMobile:"",rotateP:"",rotatePTablet:"",rotatePMobile:"",offsetX:"",offsetXTablet:"",offsetXMobile:"",offsetXUnit:"px",offsetXUnitTablet:"px",offsetXUnitMobile:"px",offsetY:"",offsetYTablet:"",offsetYMobile:"",offsetYUnit:"px",offsetYUnitTablet:"px",offsetYUnitMobile:"px",scaleProportions:!1,scale:"",scaleTablet:"",scaleMobile:"",scaleX:"",scaleXTablet:"",scaleXMobile:"",scaleY:"",scaleYTablet:"",scaleYMobile:"",skewX:"",skewXTablet:"",skewXMobile:"",skewY:"",skewYTablet:"",skewYMobile:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",xAnchorPointTablet:"",xAnchorPointMobile:"",yAnchorPoint:"",yAnchorPointTablet:"",yAnchorPointMobile:"",rotateH:"",rotateHTablet:"",rotateHMobile:"",rotate3DH:!1,rotate3DHTablet:!1,rotate3DHMobile:!1,rotateXH:"",rotateXHTablet:"",rotateXHMobile:"",rotateYH:"",rotateYHTablet:"",rotateYHMobile:"", | |
| 6087 | -rotatePH:"",rotatePHTablet:"",rotatePHMobile:"",offsetXH:"",offsetXHTablet:"",offsetXHMobile:"",offsetXHUnit:"px",offsetXHUnitTablet:"px",offsetXHUnitMobile:"px",offsetYH:"",offsetYHTablet:"",offsetYHMobile:"",offsetYHUnit:"px",offsetYHUnitTablet:"px",offsetYHUnitMobile:"px",scaleProportionsH:!1,scaleH:"",scaleHTablet:"",scaleHMobile:"",scaleXH:"",scaleXHTablet:"",scaleXHMobile:"",scaleYH:"",scaleYHTablet:"",scaleYHMobile:"",skewXH:"",skewXHTablet:"",skewXHMobile:"",skewYH:"",skewYHTablet:"",skewYHMobile:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",xAnchorPointHTablet:"",xAnchorPointHMobile:"",yAnchorPointH:"",yAnchorPointHTablet:"",yAnchorPointHMobile:"",transitionH:""}},_mask:{type:"object",default:{mask:!1,maskTablet:!1,maskMobile:!1,maskShape:"circle",customMaskShape:"",maskSize:"",maskSizeTablet:"",maskSizeMobile:"",maskPosition:"",maskPositionTablet:"",maskPositionMobile:"",maskRepeat:"",maskRepeatTablet:"",maskRepeatMobile:"",scaleUnit:"px",scaleUnitTablet:"px", | |
| 6088 | -scaleUnitMobile:"px",scale:"0",scaleTablet:"0",scaleMobile:"0",xPositionUnit:"px",xPositionUnitTablet:"px",xPositionUnitMobile:"px",xPosition:"",xPositionTablet:"0",xPositionMobile:"0",yPositionUnit:"px",yPositionUnitTablet:"px",yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}},_animation:{type:"object",default:{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:"",animationDelay:""}},_boxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},_gsapAnimation:{type:"object",default:{animationType:"none",duration:1,delay:0,triggerType:"scroll",ease:"none",x:0,y:0,rotation:0,rotationY:0,opacity:1,xTo:0,yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}}, | |
| 6089 | -_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function N1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:D1.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-upvote-count",httpMethod:"POST",attributes:e})})})})}N1.propTypes={};const I1=(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},V1=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,gs.qD)(t?.upvoteNumberColor)}};function O1(t){ | |
| 6090 | -const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("List Style","ablocks"),attributeName:"listStyle",attributeValue:e?.listStyle,setAttributes:i,options:[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Disc","ablocks"),value:"disc"},{label:(0,z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Square","ablocks"),value:"square"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:o,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:a, | |
| 6091 | -setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("List Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",attributeValue:s,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"listBorder",attributeValue:r,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"listBoxShadow",attributeValue:b,setAttributes:i})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:n,attributeName:"listBackground",setAttributes:i})})})}),(0,L.jsx)(D,{initialOpen:!0, | |
| 6092 | -title:(0,z.__)("Content Title","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:e?.titleColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:e?.titleTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:e?.titleTextShadow,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:e?.titleTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content Descriptions","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"desColor",attributeValue:e?.desColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"), | |
| 6093 | -attributeName:"desTypography",attributeValue:e?.desTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:e?.desTextShadow,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})})]})})})}(0,M.xV)(D1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(D1.UU,{title:"Upvote Count",attributes:D1.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t)return"" | |
| 6094 | -;t.addClassStyles("{{WRAPPER}}.ablocks-block--ecm-upvote-count",I1(i),I1(i,"Tablet"),I1(i,"Mobile"));const e=i?.wrapper_class||"upvote-count-wrapper";return t.addClassStyles(`{{WRAPPER}} .${e}`,V1(i),V1(i,"Tablet"),V1(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(L1,{...t}),(0,L.jsx)(N1,{...t})]})},save:()=>null}),i(11053),O1.propTypes={};const Y1={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, | |
| 6095 | -common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},listBorder:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"", | |
| 6096 | -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:""}}, | |
| 6097 | -listBoxShadow:{type:"object",default:{preset:"",shadowType:"default",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"default",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}},titleTypographyGlobal:{type:"string",default:""},titleTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"", | |
| 6098 | -vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},desTypographyGlobal:{type:"string",default:""},desTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},desTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},desTextStroke:{type:"object",default:{strokeWidth:"", | |
| 6183 | +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 | +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", | |
| 6185 | +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:"", | |
| 6186 | +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", | |
| 6187 | +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:"", | |
| 6188 | +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 | +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 | +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 | +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", | |
| 6195 | +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 | +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 | +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, | |
| 6201 | +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 | +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 | +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 | +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:""}}, | |
| 6205 | +titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},desTypographyGlobal:{type:"string",default:""},desTypography:{type:"object",default:{fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},desTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},desTextStroke:{type:"object",default:{strokeWidth:"", | |
| 6099 | 6206 | strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object", |
| 6100 | 6207 | 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:"", |
| 6101 | 6208 | 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:"", |
| 6102 | 6209 | 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:"", |
| @@ -6103,204 +6210,147 @@ | ||
| 6103 | 6210 | 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:""}}, |
| 6104 | 6211 | _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, |
| 6105 | 6212 | 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:"", |
| 6106 | 6213 | 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, |
| 6107 | -yTo:0,rotationTo:0,rotationYTo:0,opacityTo:1,easeTo:"none",loops:!1,numberOfRepeat:0,isSmooth:!0,startPoint:80,endPoint:10}},_hide_on_desktop:{type:"boolean",default:!1},_hide_on_tablet:{type:"boolean",default:!1},_hide_on_mobile:{type:"boolean",default:!1},_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function X1(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:Y1.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-upvote-list",httpMethod:"POST",attributes:e})})})})}X1.propTypes={};const B1=(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,Ob.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value", | |
| 6108 | -isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,gs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},E1=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{...o}},F1=(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,gs.qD)(t?.titleColor),...(0,P.qD)(o,e,a),...(0,fc.qD)(l,e),...(0,pc.qD)(t?.titleTextShadow)}},q1=(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,gs.qD)(t?.desColor),...(0,P.qD)(o,e,a),...(0,fc.qD)(l,e),...(0,pc.qD)(t?.desTextShadow)}},$1=(t,e="")=>{const i=(0,M.Zy)(t.listBorder,{ | |
| 6109 | -unitWidth:"px",unitRadius:"px"});return{...(0,y.a9)(i,e),...(0,H.a9)(t?.listBoxShadow,e)}},G1=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}};function Z1(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:[(0,L.jsx)(ql,{label:(0,z.__)("Claim Button Text","ablocks"),attributeName:"text",attributeValue:o,setAttributes:i,disableDynamicContent:!1}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:e?.listAlignment,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1})]}),(0, | |
| 6110 | -L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Button Style","ablocks"),children:[(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"buttonTypography",attributeValue:d,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background","ablocks"),attributeValue:s,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:b,attributeName:"buttonColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:n||{},setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:r,attributeName:"buttonBackgroundH", | |
| 6111 | -setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"),attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:a||{},setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]}),(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Pending Badge","ablocks"),children:[(0,L.jsx)(vs,{label:(0,z.__)("Fill Color","ablocks"),attributeValue:e?.pendingBadgeFillColor,attributeName:"pendingBadgeFillColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"pendingBadgeSize",attributeValue:e?.pendingBadgeSize||0,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1})]}),(0,L.jsxs)(D,{ | |
| 6112 | -initialOpen:!0,title:(0,z.__)("Confirmation Badge","ablocks"),children:[(0,L.jsx)(vs,{label:(0,z.__)("Fill Color","ablocks"),attributeValue:e?.confirmationBandageFillColor,attributeName:"confirmationBandageFillColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(vt,{label:(0,z.__)("Size","ablocks"),attributeName:"confirmationBandageSize",attributeValue:e?.confirmationBandageSize||0,setAttributes:i,isResponsive:!0,hasUnit:!0,isInline:!1})]})]})})})}(0,M.xV)(Y1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(Y1.UU,{title:"Upvote List",attributes:Y1.uK,icon:(0,L.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 w(i,l):new j(i,l), | |
| 6113 | -t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item",B1(i),B1(i,"Tablet"),B1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list",E1(i),E1(i,"Tablet"),E1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-title",F1(i),F1(i,"Tablet"),F1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-date",q1(i),q1(i,"Tablet"),q1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--upvote__list",G1(i),G1(i,"Tablet"),G1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--upvote__list-item:hover",$1(i),$1(i,"Tablet"),$1(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(O1,{...t}),(0,L.jsx)(X1,{...t})]})},save:()=>null}),Z1.propTypes={};const K1={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", | |
| 6114 | -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:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"", | |
| 6115 | -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:"",rightWidthHTablet:"",bottomWidthHTablet:"", | |
| 6116 | -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:"", | |
| 6117 | -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:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0, | |
| 6118 | -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, | |
| 6119 | -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:"", | |
| 6120 | -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:"", | |
| 6121 | -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:"", | |
| 6122 | -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:"", | |
| 6123 | -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:"", | |
| 6124 | -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:{ | |
| 6125 | -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 J1(t){ | |
| 6126 | -const{attributes:e}=t,{block_id:i}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:i,name:K1.UU,attributes:e,typography:[{fontFamily:e.buttonTypography?.fontFamily,weight:e.buttonTypography?.weight}],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-claim-button",httpMethod:"POST",attributes:e})})})})}J1.propTypes={},i(45352);const Q1=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"flex-start"};return i?.[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},t0=(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,gs.qD)(t?.buttonColor),background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(l,e),...(0,P.qD)(o,e,a),...(0,c.qD)(n,"padding",e),...(0,H.qD)(t?.boxShadow,e)} | |
| 6127 | -},e0=(t,e,i,o=!1)=>({fill:(0,gs.qD)(t),...o?{background:"transparent"}:{},...(0,Ob.qD)({attributeValue:e,attribute_object_key:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,unitDefaultValue:"px",property:"height",device:i}),...(0,Ob.qD)({attributeValue:e,attribute_object_key:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,unitDefaultValue:"px",property:"width",device:i})}),i0=(t,e="")=>e0(t?.pendingBadgeFillColor,t?.pendingBadgeSize,e),o0=(t,e="")=>{const{listAlignment:i}=t,o={display:"flex","align-items":"center"};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),o},a0=(t,e="")=>e0(t?.confirmationBandageFillColor,t?.confirmationBandageSize,e,!0);function l0(t){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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsx)(Mb,{attributes:e, | |
| 6128 | -setAttributes:i,children:(0,L.jsxs)(D,{initialOpen:!0,title:(0,z.__)("Button Setting","ablocks"),children:[(0,L.jsx)(ql,{label:(0,z.__)("Badge Text","ablocks"),attributeName:"text",attributeValue:a,setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Badge Fill Color","ablocks"),attributeValue:e?.badgeFillColor,attributeName:"badgeFillColor",setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Text Typo","ablocks"),attributeName:"textTypography",attributeValue:m,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(vt,{label:(0,z.__)("Text Gap","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"textGap",attributeValue:e?.textGap??0,hasUnit:!0,setAttributes:i}),(0,L.jsx)(vt,{label:(0,z.__)("Badge Icon Size","ablocks"),min:0,max:400,isInline:!1,isResponsive:!0,attributeName:"bandageHeight",attributeValue:e?.bandageHeight??0,hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"buttonAlignment",attributeValue:p,setAttributes:i,options:[{ | |
| 6129 | -label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Ct,{normal:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Badge Background","ablocks"),attributeValue:s,attributeName:"buttonBackground",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeValue:u,attributeName:"textColor",setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("Padding","ablocks"),isResponsive:!0,attributeName:"padding",attributeValue:n,setAttributes:i})]}),hover:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Background Hover","ablocks"),attributeValue:r,attributeName:"buttonBackgroundH",setAttributes:i}),(0,L.jsx)(vs,{label:(0,z.__)("Color Hover","ablocks"), | |
| 6130 | -attributeValue:c,attributeName:"buttonColorH",setAttributes:i})]})}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"buttonBorder",attributeValue:o||{},setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"boxShadow",attributeValue:e?.boxShadow,setAttributes:i})]})})})})}(0,M.xV)(K1.UU,"","easy_content_manager")&&(0,o.registerBlockType)(K1.UU,{title:"Claim Button",attributes:K1.uK,icon:(0,L.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 | |
| 6131 | -;return t?2!==i?.blockVersion||t instanceof w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim",Q1(i),Q1(i,"Tablet"),Q1(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim button",t0(i),t0(i,"Tablet"),t0(i,"Mobile")),[".ecm-shortcode--tooltip",".ecm-shortcode--tooltip svg",".ecm-shortcode--tooltip svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,i0(i),i0(i,"Tablet"),i0(i,"Mobile"))}),t.addClassStyles("{{WRAPPER}} .ablocks-block-container",o0(i),o0(i,"Tablet"),o0(i,"Mobile")),[".ecm-shortcode--claim__message",".ecm-shortcode--claim__message svg",".ecm-shortcode--claim__message svg path"].forEach(e=>{t.addClassStyles(`{{WRAPPER}} ${e}`,a0(i),a0(i,"Tablet"),a0(i,"Mobile"))}),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(Z1,{...t}),(0,L.jsx)(J1,{...t})]})},save:()=>null}), | |
| 6132 | -l0.propTypes={};const n0={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:{isLinked:!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:"", | |
| 6133 | -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:"", | |
| 6134 | -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:""}},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", | |
| 6135 | -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:"",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:"", | |
| 6136 | -bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"", | |
| 6137 | -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, | |
| 6138 | -isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"", | |
| 6139 | -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:"", | |
| 6140 | -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:"", | |
| 6141 | -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", | |
| 6142 | -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", | |
| 6143 | -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:""}, | |
| 6144 | -_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}};function s0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:n0.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-claim-badge",httpMethod:"POST",attributes:e})})})})}s0.propTypes={};const r0=(t,e="")=>{const{buttonAlignment:i}=t,o={};return i[`value${e}`]&&(o["justify-content"]=i[`value${e}`]),{display:"flex","align-items":"center",...o,...(0,Ob.qD)({attributeValue:t?.textGap,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"gap",unitDefaultValue:"px",device:e})}},b0=(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,gs.qD)(t?.buttonColor), | |
| 6145 | -background:(0,gs.qD)(t?.buttonBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.boxShadow,e),...(0,Ob.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"height",unitDefaultValue:"px",device:e}),...(0,Ob.qD)({attributeValue:t?.bandageHeight,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:20,property:"width",unitDefaultValue:"px",device:e})}},c0=(t,e="")=>{const i=(0,M.Zy)(t.buttonBorder,{unitWidthH:"px",unitRadiusH:"px"});return{color:(0,gs.qD)(t?.buttonColorH),background:(0,gs.qD)(t?.buttonBackgroundH),...(0,y.a9)(i,e),...(0,H.a9)(t?.boxShadow,e)}},d0=(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,gs.qD)(t?.textColor),...(0,P.qD)(o,e,a)}},u0=(t,e="")=>{const i=(0,gs.qD)(t?.badgeFillColor);return i?{fill:i}:{}};function p0(t){ | |
| 6146 | -const{attributes:e,setAttributes:i}=t,{listWidth:o,listAlignment:a,listBackground:n,listPadding:s,listBorder:r,listBoxShadow:b}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content","ablocks"),children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Not Found Text","ablocks"),attributeName:"not_found_text",attributeValue:e?.not_found_text,setAttributes:i}),(0,L.jsx)(Ut,{label:(0,z.__)("List Style","ablocks"),attributeName:"listStyle",attributeValue:e?.listStyle,setAttributes:i,options:[{label:(0,z.__)("None","ablocks"),value:"none"},{label:(0,z.__)("Disc","ablocks"),value:"disc"},{label:(0,z.__)("Circle","ablocks"),value:"circle"},{label:(0,z.__)("Square","ablocks"),value:"square"}]}),(0,L.jsx)(vt,{label:(0,z.__)("Width","ablocks"),min:0,max:100,isInline:!1,isResponsive:!0,attributeName:"listWidth",attributeValue:o, | |
| 6147 | -hasUnit:!0,setAttributes:i}),(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"listAlignment",attributeValue:a,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Padding","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Mt,{label:(0,z.__)("List Padding","ablocks"),isResponsive:!0,attributeName:"listPadding",attributeValue:s,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Border","ablocks"),isResponsive:!1,isHeader:!0}),(0,L.jsx)(Rs,{attributeName:"listBorder",attributeValue:r,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Box shadow","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(Sr,{label:(0,z.__)("Box shadow","ablocks"),attributeName:"listBoxShadow",attributeValue:b,setAttributes:i})]}),style:(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0, | |
| 6148 | -z.__)("Background","ablocks"),attributeValue:n,attributeName:"listBackground",setAttributes:i})})})}),(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content Title","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeName:"titleColor",attributeValue:e?.titleColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"titleTypography",attributeValue:e?.titleTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"titleTextShadow",attributeValue:e?.titleTextShadow,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"titleTextStroke",attributeValue:e?.titleTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Content Descriptions","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 6149 | -attributeName:"desColor",attributeValue:e?.desColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"desTypography",attributeValue:e?.desTypography,setAttributes:i,isResponsive:!0,attributes:e}),(0,L.jsx)(gc,{label:(0,z.__)("Text Shadow","ablocks"),attributeName:"desTextShadow",attributeValue:e?.desTextShadow,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Hc,{label:(0,z.__)("Text Stroke","ablocks"),attributeName:"desTextStroke",attributeValue:e?.desTextStroke||"",setAttributes:i,isResponsive:!0})]})}),(0,L.jsx)(D,{initialOpen:!0,title:(0,z.__)("Not Found Text","ablocks"),children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"notFoundAlignment",attributeValue:e?.notFoundAlignment,setAttributes:i,options:[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"}],isInline:!1}),(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"), | |
| 6150 | -attributeName:"notFoundColor",attributeValue:e?.notFoundColor,setAttributes:i}),(0,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),attributeName:"notFoundTypography",attributeValue:e?.notFoundTypography,setAttributes:i,isResponsive:!0,attributes:e})]})})]})})})}(0,M.xV)(n0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(n0.UU,{title:"Claim Badge",attributes:n0.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t?"":(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge",r0(i),r0(i,"Tablet"),r0(i,"Mobile")), | |
| 6151 | -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge",r0(i),r0(i,"Tablet"),r0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge__badge-text",d0(i),d0(i,"Tablet"),d0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg",b0(i),b0(i,"Tablet"),b0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge:hover svg",c0(i),c0(i,"Tablet"),c0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim-badge svg path",u0(i),u0(i),u0(i)),t.generateCSS())},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(l0,{...t}),(0,L.jsx)(s0,{...t})]})},save:()=>null}),i(93240),p0.propTypes={};const m0={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:{ | |
| 6152 | -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:"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:"", | |
| 6153 | -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, | |
| 6154 | -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",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px",fontSizeTablet:"", | |
| 6155 | -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",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"", | |
| 6156 | -wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"}},titleTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},titleTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},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"}}, | |
| 6157 | -desTextShadow:{type:"object",default:{color:"",blur:"",horizontal:"",vertical:""}},desTextStroke:{type:"object",default:{strokeWidth:"",strokeWidthTablet:"",strokeWidthMobile:"",strokeWidthUnit:"px",strokeWidthUnitTablet:"px",strokeWidthUnitMobile:"px",stroke:""}},_margin:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_padding:{type:"object",default:{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px",commonTablet:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"", | |
| 6158 | -customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}},_border:{type:"object",default:{borderStyle:"default",borderStyleH:"default",borderColor:"",borderColorH:"",isLinkedWidth:!0,isLinkedWidthTablet:!0,isLinkedWidthMobile:!0,commonWidth:"",commonWidthTablet:"",commonWidthMobile:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",topWidthTablet:"",rightWidthTablet:"",bottomWidthTablet:"",leftWidthTablet:"",topWidthMobile:"",rightWidthMobile:"",bottomWidthMobile:"",leftWidthMobile:"",unitWidth:"px",unitWidthTablet:"",unitWidthMobile:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"",leftWidthHMobile:"",unitWidthH:"px",unitWidthHTablet:"", | |
| 6159 | -unitWidthHMobile:"",isLinkedRadius:!0,isLinkedRadiusTablet:!0,isLinkedRadiusMobile:!0,commonRadius:"",commonRadiusTablet:"",commonRadiusMobile:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",topRadiusTablet:"",rightRadiusTablet:"",bottomRadiusTablet:"",leftRadiusTablet:"",topRadiusMobile:"",rightRadiusMobile:"",bottomRadiusMobile:"",leftRadiusMobile:"",unitRadius:"px",unitRadiusTablet:"",unitRadiusMobile:"",isLinkedRadiusH:!0,isLinkedRadiusHTablet:!0,isLinkedRadiusHMobile:!0,commonRadiusH:"",commonRadiusHTablet:"",commonRadiusHMobile:"",topRadiusH:"",rightRadiusH:"",bottomRadiusH:"",leftRadiusH:"",topRadiusHTablet:"",rightRadiusHTablet:"",bottomRadiusHTablet:"",leftRadiusHTablet:"",topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}},_position:{type:"object",default:{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"", | |
| 6160 | -hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px",hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}},_background:{type:"object",default:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionUnitTablet:"",imgXPositionUnitMobile:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"", | |
| 6161 | -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:"", | |
| 6162 | -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:"", | |
| 6163 | -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:{ | |
| 6164 | -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:{ | |
| 6165 | -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 h0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:m0.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-claim-list",httpMethod:"POST",attributes:e})})})})}h0.propTypes={};const g0=(t,e="")=>{const i={};i.background=t?.listBackground??"";const o=(0,M.Zy)(t.listBorder,{unitWidth:"px", | |
| 6166 | -unitRadius:"px"}),a=(0,M.Zy)(t?.listPadding,{unit:"px"});return{...i,...(0,Ob.qD)({attributeValue:t?.listWidth,attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:33,property:"width",unitDefaultValue:"%",device:e}),background:(0,gs.qD)(t?.listBackground),...(0,y.qD)(o,e),...(0,c.qD)(a,"padding",e),...(0,H.qD)(t?.listBoxShadow,e)}},f0=(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,gs.qD)(t?.titleColor),...(0,P.qD)(o,e,a),...(0,fc.qD)(l,e),...(0,pc.qD)(t?.titleTextShadow)}},T0=(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, | |
| 6167 | -color:(0,gs.qD)(t?.desColor),...(0,P.qD)(o,e,a),...(0,fc.qD)(l,e),...(0,pc.qD)(t?.desTextShadow)}},H0=(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)}},M0=(t,e="")=>{const i={};return i["list-style"]=t?.listStyle??"disc",{...i}},x0=(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,gs.qD)(t?.notFoundColor),...(0,P.qD)(a,e,l)}};function k0(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,L.jsx)(l().Fragment,{children:(0,L.jsx)(C.InspectorControls,{children:(0,L.jsxs)(Mb,{attributes:e,setAttributes:i,children:[(0,L.jsxs)(D,{initialOpen:!0,title:(0, | |
| 6168 | -z.__)("Content Setting","ablocks"),children:[(0,L.jsx)(ql,{label:(0,z.__)("Wrapper Class","ablocks"),attributeName:"wrapper_class",attributeValue:p,setAttributes:i}),(0,L.jsx)(Nt,{}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Icon","ablocks"),attributeName:"show_icon",attributeValue:c,setAttributes:i,isResponsive:!1}),(0,L.jsx)(Vt,{label:(0,z.__)("Show Label","ablocks"),attributeName:"show_label",attributeValue:b,setAttributes:i,isResponsive:!1}),b&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ql,{label:(0,z.__)("Label (Single)","ablocks"),attributeName:"label_single",attributeValue:d,setAttributes:i}),(0,L.jsx)(ql,{label:(0,z.__)("Label (Plural)","ablocks"),attributeName:"label_plural",attributeValue:u,setAttributes:i})]})]}),(0,L.jsxs)(D,{initialOpen:!1,title:(0,z.__)("Claim Count Setting","ablocks"),children:[(0,L.jsx)(Kt,{label:(0,z.__)("Alignment","ablocks"),attributeName:"countAlignment",attributeValue:r,setAttributes:i,options:[{label:"left",value:"flex-start",icon:"left"},{ | |
| 6169 | -label:"center",value:"center",icon:"center"},{label:"right",value:"flex-end",icon:"right"}],isInline:!1}),(0,L.jsx)(Nt,{}),(0,L.jsx)(ot,{label:(0,z.__)("Color","ablocks"),isHeader:!0,isResponsive:!1}),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(vs,{label:(0,z.__)("Color","ablocks"),attributeValue:e?.upvoteNumberColor,attributeName:"upvoteNumberColor",setAttributes:i})})]})]})})})}(0,M.xV)(m0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(m0.UU,{title:"Claim List",attributes:m0.uK,icon:(0,L.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 w(i,l):new j(i,l),t?(t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-item",g0(i),g0(i,"Tablet"),g0(i,"Mobile")), | |
| 6170 | -t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list",f0(i),f0(i,"Tablet"),f0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-title",y0(i),y0(i,"Tablet"),y0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-date",T0(i),T0(i,"Tablet"),T0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} ul.ecm-shortcode--claim__list",M0(i),M0(i,"Tablet"),M0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__list-item:hover",H0(i),H0(i,"Tablet"),H0(i,"Mobile")),t.addClassStyles("{{WRAPPER}} .ecm-shortcode--claim__not-found",x0(i),x0(i,"Tablet"),x0(i,"Mobile")),t.generateCSS()):""},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(p0,{...t}),(0,L.jsx)(h0,{...t})]})},save:()=>null}),k0.propTypes={};const v0={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}, | |
| 6171 | -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:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",unitTablet:"",commonMobile:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unitMobile:""}},_width:{type:"object",default:{widthType:"default", | |
| 6172 | -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:"", | |
| 6173 | -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", | |
| 6174 | -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:"", | |
| 6175 | -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:"", | |
| 6176 | -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, | |
| 6177 | -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:"", | |
| 6178 | -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:"", | |
| 6179 | -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 _0(t){const{attributes:e,context:i}=t,{block_id:o}=e;return(0,L.jsx)(l().Fragment,{children:(0,L.jsx)(BW,{blockId:o,name:v0.UU,attributes:e,typography:[],children:(0,L.jsx)(ES,{children:(0,L.jsx)(BS(),{block:"ablocks/ecm-claim-count",httpMethod:"POST",attributes:e})})})})}_0.propTypes={};const R0=(t,e="")=>{ | |
| 6180 | -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},S0=(t,e="")=>{const i={};return i.color=t?.upvoteNumberColor??"",{...i,color:(0,gs.qD)(t?.upvoteNumberColor)}};(0,M.xV)(v0.UU,"","easy_content_manager")&&(0,o.registerBlockType)(v0.UU,{title:"Claim Count",attributes:v0.uK,icon:(0,L.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 w?2===i?.blockVersion||t instanceof j||(t=new j(i,l)):t=new w(i,l):t=2===i?.blockVersion?new w(i,l):new j(i,l),null===t)return"";t.addClassStyles("{{WRAPPER}}.ablocks-block--ecm-claim-count",R0(i),R0(i,"Tablet"),R0(i,"Mobile"));const e=i?.wrapper_class||"claim-count-wrapper" | |
| 6181 | -;return t.addClassStyles(`{{WRAPPER}} .${e}`,S0(i),S0(i,"Tablet"),S0(i,"Mobile")),t.generateCSS()},[i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("style",{children:s}),e&&(0,L.jsx)(k0,{...t}),(0,L.jsx)(_0,{...t})]})},save:()=>null});const W0=window.wp.richText,U0=()=>{},P0=[{label:(0,z.__)("Post","ablocks"),value:"post",options:[{label:(0,z.__)("Post Custom Field","ablocks"),value:"post-custom-field"},{label:(0,z.__)("Post Date","ablocks"),value:"post-date"},{label:(0,z.__)("Post Excerpt","ablocks"),value:"post-excerpt"},{label:(0,z.__)("Post ID","ablocks"),value:"post-id"},{label:(0,z.__)("Post Terms","ablocks"),value:"post-terms"},{label:(0,z.__)("Post Time","ablocks"),value:"post-time"},{label:(0,z.__)("Post Title","ablocks"),value:"post-title"}]},{label:(0,z.__)("Featured Image Data","ablocks"),value:"featured-image-media",options:[{label:(0,z.__)("Featured Image Title","ablocks"),value:"featured-image-title"},{label:(0,z.__)("Featured Image Alt","ablocks"), | |
| 6182 | -value:"featured-image-alt"},{label:(0,z.__)("Featured Image Caption","ablocks"),value:"featured-image-caption"},{label:(0,z.__)("Featured Image Description","ablocks"),value:"featured-image-description"},{label:(0,z.__)("Featured Image File URL","ablocks"),value:"featured-image-file-url"},{label:(0,z.__)("Featured Image Attachment URL","ablocks"),value:"featured-image-attachment-url"}]},{label:(0,z.__)("Author","ablocks"),value:"author",options:[{label:(0,z.__)("Author Name","ablocks"),value:"author-name"},{label:(0,z.__)("Author ID","ablocks"),value:"author-id"},{label:(0,z.__)("Author Posts Count","ablocks"),value:"author-posts-count"},{label:(0,z.__)("Author Posts URL","ablocks"),value:"author-posts-url"},{label:(0,z.__)("Author Profile Picture URL","ablocks"),value:"author-profile-picture-url"},{label:(0,z.__)("Author Bio","ablocks"),value:"author-bio"},{label:(0,z.__)("Author Email","ablocks"),value:"author-email"},{label:(0,z.__)("Author Website","ablocks"),value:"author-website" | |
| 6183 | -},{label:(0,z.__)("Author Meta","ablocks"),value:"author-meta"},{label:(0,z.__)("Author First Name","ablocks"),value:"author-first-name"},{label:(0,z.__)("Author Last Name","ablocks"),value:"author-last-name"}]},{label:(0,z.__)("Comments","ablocks"),value:"comments",options:[{label:(0,z.__)("Comments Number","ablocks"),value:"comments-number"}]}],j0=[{label:(0,z.__)("Post Published","ablocks"),value:"post_published"},{label:(0,z.__)("Post Modified","ablocks"),value:"post_modified"}],w0=Date.now(),z0=[{value:"",label:(0,z.__)("default","ablocks")},{value:"F j, Y",label:(0,M.r6)(w0,"F j, Y")},{value:"Y-m-d",label:(0,M.r6)(w0,"Y-m-d")},{value:"m/d/Y",label:(0,M.r6)(w0,"m/d/Y")},{value:"d/m/Y",label:(0,M.r6)(w0,"d/m/Y")},{value:"custom",label:(0,z.__)("custom","ablocks")}],C0=[{value:"",label:(0,z.__)("default","ablocks")},{value:"g:i a",label:(0,M.r6)(w0,"g:i a")},{value:"g:i A",label:(0,M.r6)(w0,"g:i A")},{value:"H:i",label:(0,M.r6)(w0,"H:i")},{value:"custom",label:(0, | |
| 6184 | -z.__)("Custom","ablocks")}],A0=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=C0,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=[...C0],m.pop()):(h=c,f="DateFormatOfCurrentDateTime"));const H=p?m:z0,M=T?p?(0,z.__)("Time Format","ablocks"):(0,z.__)("Date Format","ablocks"):(0,z.__)("Format","ablocks");return(0,L.jsxs)(L.Fragment,{children:[!T&&(0,L.jsx)(Ut,{label:(0,z.__)("Type","ablocks"),isResponsive:!1,options:j0,attributeValue:n,onChangeHandler:t=>o({[e]:{...i,dateTimeType:t}})}),(0,L.jsx)(Ut,{label:M,isResponsive:!1,options:H,attributeValue:h,onChangeHandler:t=>o({[e]:{...i,[f]:t}})}),"custom"===h&&(0,L.jsxs)(L.Fragment,{children:[(0, | |
| 6185 | -L.jsx)(ql,{label:(0,z.__)("Custom Format","ablocks"),attributeValue:g,disableDynamicContent:!0,onChangeHandler:t=>{o({[e]:{...i,[y]:t}})}}),(0,L.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,z.__)("Documentation on date and time formatting","ablocks")})]})]})},L0=t=>{const[e,i]=(0,a.useState)(void 0),[o,l]=(0,a.useState)(void 0),{attributeName:n,attributeValue:s,setAttributes:b,context:c}=t,{metaKey:d,source_type:u}=s,p=c?.postType?c?.postType:u||(0,r.select)("core/editor").getCurrentPostType(),m=(0,a.useCallback)(t=>{const e=(t||[]).map(t=>({label:t,value:t}));i([{label:"",value:void 0},...e])},[p]),h=(0,a.useCallback)(t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setMetaFields({[p]:t}),l(!1),m(t.data||[])},[m]);return(0,a.useEffect)(()=>{const t=(0, | |
| 6186 | -r.select)("ablocks/dynamic-content-store").getMetaFields(),e=t?.[p];if(e?.data)m(t[p].data);else if(!e?.isRequestBeingProcessed){(0,r.dispatch)("ablocks/dynamic-content-store").setMetaFields({[p]:{isRequestBeingProcessed:!0}}),l(!0);const t={isRequestBeingProcessed:!1};(0,M.In)({action:"ablocks/get_all_meta_keys_for_post_type",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]),o?(0,L.jsx)(A.Spinner,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Key","ablocks"),isResponsive:!1,options:e||[],attributeValue:d,onChangeHandler:t=>b({[n]:{...s,metaKey:t||""}})}),!(e||[]).some(t=>d&&d===t.value)&&(0,L.jsx)(ql,{label:(0,z.__)("Custom Key","ablocks"),attributeValue:d,onChangeHandler:t=>{b({[n]:{...s,metaKey:t||""}})}})]})},D0=()=>{},N0=t=>{const[e,i]=(0,a.useState)(!1),[o,l]=(0, | |
| 6187 | -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]:{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 D0;c||b({dynamicContentAttribute:{...s,taxonomy:"post_tag"}})},[c,e]),o?(0, | |
| 6188 | -L.jsx)(A.Spinner,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ut,{label:(0,z.__)("Taxonomy","ablocks"),isResponsive:!1,options:e||[],attributeValue:c,onChangeHandler:t=>b({[n]:{...s,taxonomy:t||""}})}),(0,L.jsx)(ql,{label:(0,z.__)("Separator","ablocks"),attributeValue:d,onChangeHandler:t=>{b({[n]:{...s,termsSeparator:t}})}})]})};let I0;const V0=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,a.useState)(""),{source_id:m,source_type:h}=e,{record:g,isResolving:f}=(0,ge.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(I0===u)return!1;I0=u, | |
| 6189 | -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: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)(()=>{y()},[y]);const T={label:g?.title?.rendered,value:g?.id};return(0,L.jsxs)("div",{className:"dynamic-post-type-search",children:[(0,L.jsx)(ot,{label:(0,z.__)("Search Posts","ablocks"),isResponsive:!1}),(0,L.jsx)(jl,{value:T,className:"dynamic-post-type-select",isSearchable:!0,isLoading:s||f,placeholder:(0,z.__)("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, | |
| 6190 | -getOptionLabel:t=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h1",{className:"ablocks-react-content-label",children:t.label}),(0,L.jsx)("span",{className:"post"===t?.post_type?"badge-post":"badge-page",children:t.post_type})]}),filterOption:(t,e)=>t.data.label.toLowerCase().includes(e.toLowerCase())})]})},O0=[{label:(0,z.__)("Current","ablocks"),value:"current"},{label:(0,z.__)("Post Type","ablocks"),value:"post-type"},{label:(0,z.__)("Site Tagline","ablocks"),value:"site-tagline"},{label:(0,z.__)("Site Title","ablocks"),value:"site-title"},{label:(0,z.__)("Current Date Time","ablocks"),value:"current-date-time"}],Y0=t=>{const{attributeName:e,attributeValue:i,setAttributes:o}=t,{group_item:l,excerptWords:n,source:s,source_id:r,includeContext:b,archiveMetaKey:c,authorMetaKey:d,DateFormatOfCurrentDateTime:u}=i;return(0,a.useEffect)(()=>{s||o({[e]:{...i,source:"current"}})},[s,e,i,o]),(0,L.jsxs)("div",{className:"ablocks-react-select-control-wrapper",children:[(0,L.jsx)(Ut,{label:(0, | |
| 6191 | -z.__)("Data Source","ablocks"),isResponsive:!1,options:O0,attributeValue:s,onChangeHandler:t=>o({[e]:{...i,source:t}})}),("current"===s||"post-type"===s)&&(0,L.jsxs)(L.Fragment,{children:["post-type"===s&&(0,L.jsx)(V0,{...t}),(0,L.jsxs)("div",{className:"ablocks-dynamic-tags-react-select-wrapper",children:[(0,L.jsx)(ot,{label:(0,z.__)("Dynamic Tag","ablocks"),isResponsive:!1}),(0,L.jsx)(jl,{className:"ablocks-dynamic-tags-react-select",isSearchable:!0,placeholder:(0,z.__)("Dynamic Tags","ablocks"),options:P0,value:(t=>{let e=null;for(const i of P0){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 P0)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"===s&&!r)return(0,L.jsx)(L.Fragment,{});switch(l){case"post-custom-field":return(0,L.jsx)(L0,{...t,context});case"post-date":case"post-time":return(0,L.jsx)(A0,{...t}) | |
| 6192 | -;case"post-excerpt":return(0,L.jsx)(vt,{label:(0,z.__)("Max Number Of Words","ablocks"),min:1,max:100,step:1,isInline:!1,isResponsive:!1,attributeValue:n,onChangeHandler:t=>{o({[e]:{...i,excerptWords:t}})}});case"post-terms":return(0,L.jsx)(N0,{...t});case"author-meta":return(0,L.jsx)(ql,{label:(0,z.__)("Meta Key","ablocks"),attributeValue:d,onChangeHandler:t=>{o({[e]:{...i,authorMetaKey:t}})}})}})()]}),(()=>{switch(s){case"current-date-time":return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A0,{...t}),"custom"!==u&&(0,L.jsx)(A0,{...t,isForTime:!0})]});case"archive-title":return(0,L.jsx)(Vt,{isResponsive:!1,label:(0,z.__)("Include Context","ablocks"),attributeValue:b,onChangeHandler:t=>{o({[e]:{...i,includeContext:t}})}});case"archive-meta":return(0,L.jsx)(ql,{label:(0,z.__)("Key","ablocks"),attributeValue:c,onChangeHandler:t=>{o({[e]:{...i,archiveMetaKey:t||""}})}})}})(),(0,L.jsx)(ql,{label:(0,z.__)("Fallback","ablocks"),attributeValue:i.fallback,disableDynamicContent:!0, | |
| 6193 | -onChangeHandler:t=>{o({[e]:{...i,fallback:t}})}})]})},X0={source:"current",source_type:"",source_id:"",group_item:"",fallback:"",excerptWords:"",dateTimeType:"",dateTimeFormat:"",customDateTimeFormat:"",taxonomy:"",termsSeparator:", ",metaKey:"",includeContext:"",archiveMetaKey:""},B0=t=>{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={...X0};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) | |
| 6194 | -}}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":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:X0})}},[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,L.jsxs)(A.Popover,{className:"ablocks-richtext-dynamic-content--settings-popover",onClose:e,children:[n?(0,L.jsx)(A.Spinner,{}):(0,L.jsx)(Y0,{settings:o,setSettings:l,attributeName:"dynamicContentAttribute",attributeValue:o,setAttributes:l}),!u&&(0,L.jsx)(A.Button,{isPrimary:!0,onClick:()=>{i()},children:r?(0,z.__)("Update","ablocks"):(0, | |
| 6195 | -z.__)("Apply","ablocks")})]})};(0,W0.registerFormatType)("ablocks/dynamic-content",{title:(0,z.__)("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)({dynamicContentAttribute:X0}),{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(),U="post-type"===s||"current"===s?"postType":s,P=b||W,j=c||S,{record:w,isResolving:C,hasResolved:A}=(0,ge.useEntityRecord)(U,P,j),L=(0, | |
| 6196 | -a.useCallback)(t=>{i(t?`${t}`:u)},[u]),D=(0,a.useCallback)(t=>{const e=(t||[]).map(t=>t.name).join(h);L(e)},[L,h]),N=(0,a.useCallback)(()=>{if(!m)return U0;const t=(0,r.select)("ablocks/dynamic-content-store").getPostTermsRelations(),e=t?.[j]?.[m];if(e)return D(e),U0;l(!0),(0,M.In)({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 L(!1),U0;const t=(0,r.select)("ablocks/dynamic-content-store").getPostMetaRelations(),e=t?.[j]?.[g],i=e?.value;return i||""===i?(L(i),U0):(l(!0),e?.isRequestBeingProcessed?U0:((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 | |
| 6197 | -;L(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),console.log("error fetching meta field",{e:t})})))},[L,g,j]),V=(0,a.useCallback)(()=>{if(!k)return L("");const t=(0,r.select)("ablocks/dynamic-content-store").getAuthorsMeta();if(t.isRequestBeingProcessed)return l(!0),L("");const e=t?.[w?.author]?.[k];if(e)return L(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),L(e||"")},t=>{(0,r.dispatch)("ablocks/dynamic-content-store").setAuthorsMeta({isRequestBeingProcessed:!1}),l(!1), | |
| 6198 | -console.log("error fetching author data",{e:t})})},[k,L,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];if(o)return L(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),L(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 L(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),L(e||"")},t=>{l(!1), | |
| 6199 | -console.log("error fetching author data",{e:t})})},[L,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 L(e?.[i]||"");l(!0),(0,M.In)({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),L(e?.[i]||"")},t=>{l(!1),console.log("error fetching author data",{e:t})})},[L,d,w?.id]);return(0,a.useEffect)(()=>{if("postType"===U){if(C||!A||!w)return i(null),U0;let t;switch(d){case"post-custom-field":return I(),U0;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="" | |
| 6200 | -;t=p?t.split(" ",p).join(" "):t}break;case"post-id":t=w?.id;break;case"post-terms":return N(),U0;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":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(),U0;case"comments-number":return Y(),U0;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(),U0}L(t)}else if("site-tagline"===U)l(!0),(0,r.resolveSelect)("core").getSite().then(t=>{const e=t?.description;L(e||""),l(!1)}).catch(t=>{l(!1),console.log("---error resolving site tagline",{err:t})});else if("site-title"===U)l(!0),(0,r.resolveSelect)("core").getSite().then(t=>{const e=t?.title;L(e||""),l(!1)}).catch(t=>{ | |
| 6201 | -console.log("---error resolving site tagline",{err:t})});else if("current-date-time"===s){const t=(0,M.BP)({dynamicAttributeValue:n});L(t)}else"archive-title"===U?i(f?(0,z.__)("Archive type: Name","ablocks"):(0,z.__)("Archive Title","ablocks")):"archive-meta"!==U&&"archive-Description"!==U||i((0,z.__)("loading…","ablocks"));return()=>l(!1)},[U,P,C,A,P,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), | |
| 6202 | -document.removeEventListener("pointerdown",t)}},[]),(0,L.jsxs)(C.BlockControls,{group:"other",children:[(0,L.jsx)(A.ToolbarButton,{icon:e?"database-remove":"database-add",title:(0,z.__)("Ablocks Dynamic Content","ablocks"),isActive:e,onClick:()=>{n(!0)}}),l&&(0,L.jsx)(B0,{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) | |
| 6203 | -;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);r={...o,start:t+1,end:e},r=(0,W0.remove)(r,t,e),r=(0,W0.insert)(r,c),r={...r,start:t}}else o.start!==o.end&&(r=(0,W0.remove)(o,o.start,o.end)),r=(0,W0.insert)(r,c),r={...r,start:o.start};i((0,W0.applyFormat)(r,s))}})]})},attributes:{editable:"contenteditable",source:"data-source",field:"data-field"}});const{RichTextShortcut:E0}=wp.blockEditor,F0="ablocks/mark",q0={title:(0,z.__)("Text Highlight","ablocks"),tagName:"span",className:"ablocks-text-highlight",edit({isActive:t,value:e,onChange:i}){const[o,a]=(0,Ot.useState)(!1),[l,n]=(0,Ot.useState)(""),[s,b]=(0,Ot.useState)(""),c=(0,r.useSelect)(t=>t("core/block-editor").getSelectedBlock(),[]);if(!c||!c.name.startsWith("ablocks/"))return null;const d=t=>{n(t) | |
| 6204 | -;const o=e.activeFormats?.find(t=>t.type===F0),a=(o?.attributes?.style||"").match(/color:\s*([^;]+)/),l=a?a[1]:"",s=`${t?.includes("gradient")?"background":"background-color"}: ${t};${l?` color: ${l};`:""}`;i((0,W0.applyFormat)(e,{type:F0,attributes:{style:s}}))},u=t=>{b(t);const o=e.activeFormats?.find(t=>t.type===F0);if(!o)return void i((0,W0.applyFormat)(e,{type:F0,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,W0.applyFormat)(e,{type:F0,attributes:{style:n}}))};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E0,{type:"primary",character:"m",onUse:()=>{const t=e.activeFormats?.some(t=>t.type===F0);t?(i((0,W0.removeFormat)(e,F0)),a(!1)):a(!o)}}),(0,L.jsx)(C.BlockControls,{children:(0,L.jsx)(A.ToolbarGroup,{children:(0,L.jsx)(Yt,{label:(0,z.__)("Text Highlight","ablocks"),CustomToggler:({isVisible:e,toggleVisible:i})=>(0,L.jsx)(A.ToolbarButton,{icon:(0, | |
| 6205 | -L.jsx)("span",{className:"ablocks-icon ablocks-icon--edit"}),title:(0,z.__)("Text Highlight","ablocks"),onClick:i,shortcutType:"access",shortcutCharacter:"m",isActive:t||e,className:`toolbar-button-with-text toolbar-button__${F0}`}),isVisible:o,toggleVisible:a,className:"ablocks-highlight-popover",children:(0,L.jsxs)("div",{className:"ablocks-highlight-controls",children:[(0,L.jsx)("div",{className:"ablocks-highlight-control",children:(0,L.jsx)(vs,{label:(0,z.__)("Background Color","ablocks"),isGradient:!0,attributeValue:l,onChangeHandler:(t,e)=>d(e)})}),(0,L.jsx)("div",{className:"ablocks-highlight-control",children:(0,L.jsx)(vs,{label:(0,z.__)("Text Color","ablocks"),attributeValue:s,onChangeHandler:(t,e)=>u(e)})})]})})})})]})}};(0,W0.registerFormatType)(F0,q0),(0,b.addFilter)("ablocks.dynamic_content.richTextComponent","ablocks/dynamic_content_rich_text_render_component",function(t){ | |
| 6206 | -const{blockProps:e={},children:i,...o}=t,{tagName:a,value:l,className:n,context:s}=o,{isDynamicEnabled:r,data:b,isProcessingData:c}=Zc({attributeValue:l,context:s});return r?c?(0,L.jsx)(A.Spinner,{}):(0,L.jsx)(a,{className:n,dangerouslySetInnerHTML:{__html:b}}):i?(0,L.jsx)(a,{className:n,children:i}):(0,L.jsx)(C.RichText,{...e,...o})}),(0,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}=Zc({attributeValue:t,context:e});return i&&!a?o:t});const $0=window.wp.editor;var G0=i(78418);var Z0={notify(){},get:()=>[]};var K0=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),J0=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Q0=(()=>K0||J0?a.useLayoutEffect:a.useEffect)();Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols, | |
| 6207 | -Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var t2=Symbol.for("react-redux-context"),e2="undefined"!=typeof globalThis?globalThis:{};function i2(){if(!a.createContext)return{};const t=e2[t2]??=new Map;let e=t.get(a.createContext);return e||(e=a.createContext(null),t.set(a.createContext,e)),e}var o2=i2(),a2=function(t){const{children:e,context:i,serverState:o,store:l}=t,n=a.useMemo(()=>{const t=function(t,e){let i,o=Z0,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(), | |
| 6208 | -o=Z0)}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,getServerState:o?()=>o:void 0}},[l,o]),s=a.useMemo(()=>l.getState(),[l]);Q0(()=>{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||o2;return a.createElement(r.Provider,{value:n},e)};function l2(t=o2){return function(){return a.useContext(t)}}var n2=l2();function s2(t=o2){const e=t===o2?n2:l2(t),i=()=>{const{store:t}=e();return t};return Object.assign(i,{withTypes:()=>i}),i}var r2=s2();function b2(t=o2){const e=t===o2?r2:s2(t),i=()=>e().dispatch;return Object.assign(i,{withTypes:()=>i}),i} | |
| 6209 | -var c2=b2(),d2=(t,e)=>t===e;function u2(t=o2){const e=t===o2?n2:l2(t),i=(t,i={})=>{const{equalityFn:o=d2}="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,G0.useSyncExternalStoreWithSelector)(s.addNestedSub,n.getState,r||n.getState,b,o);return a.useDebugValue(c),c};return Object.assign(i,{withTypes:()=>i}),i}var p2=u2(),m2=Symbol.for("immer-nothing"),h2=Symbol.for("immer-draftable"),g2=Symbol.for("immer-state");function f2(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var y2=Object,T2=y2.getPrototypeOf,H2="constructor",M2="prototype",x2="configurable",k2="enumerable",v2="writable",_2="value",R2=t=>!!t&&!!t[g2];function S2(t){return!!t&&(P2(t)||L2(t)||!!t[h2]||!!t[H2]?.[h2]||D2(t)||N2(t))}var W2=y2[M2][H2].toString(),U2=new WeakMap;function P2(t){if(!t||!I2(t))return!1;const e=T2(t);if(null===e||e===y2[M2])return!0 | |
| 6210 | -;const i=y2.hasOwnProperty.call(e,H2)&&e[H2];if(i===Object)return!0;if(!V2(i))return!1;let o=U2.get(i);return void 0===o&&(o=Function.toString.call(i),U2.set(i,o)),o===W2}function j2(t,e,i=!0){0===w2(t)?(i?Reflect.ownKeys(t):y2.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((i,o)=>e(o,i,t))}function w2(t){const e=t[g2];return e?e.type_:L2(t)?1:D2(t)?2:N2(t)?3:0}var z2=(t,e,i=w2(t))=>2===i?t.has(e):y2[M2].hasOwnProperty.call(t,e),C2=(t,e,i=w2(t))=>2===i?t.get(e):t[e],A2=(t,e,i,o=w2(t))=>{2===o?t.set(e,i):3===o?t.add(i):t[e]=i},L2=Array.isArray,D2=t=>t instanceof Map,N2=t=>t instanceof Set,I2=t=>"object"==typeof t,V2=t=>"function"==typeof t,O2=t=>"boolean"==typeof t,Y2=t=>t.copy_||t.base_,X2=t=>t.modified_?t.copy_:t.base_;function B2(t,e){if(D2(t))return new Map(t);if(N2(t))return new Set(t);if(L2(t))return Array[M2].slice.call(t);const i=P2(t);if(!0===e||"class_only"===e&&!i){const e=y2.getOwnPropertyDescriptors(t);delete e[g2];let i=Reflect.ownKeys(e);for(let o=0;o<i.length;o++){ | |
| 6211 | -const a=i[o],l=e[a];!1===l[v2]&&(l[v2]=!0,l[x2]=!0),(l.get||l.set)&&(e[a]={[x2]:!0,[v2]:!0,[k2]:l[k2],[_2]:t[a]})}return y2.create(T2(t),e)}{const e=T2(t);if(null!==e&&i)return{...t};const o=y2.create(e);return y2.assign(o,t)}}function E2(t,e=!1){return q2(t)||R2(t)||!S2(t)||(w2(t)>1&&y2.defineProperties(t,{set:F2,add:F2,clear:F2,delete:F2}),y2.freeze(t),e&&j2(t,(t,e)=>{E2(e,!0)},!1)),t}var F2={[_2]:function(){f2(2)}};function q2(t){return null===t||!I2(t)||y2.isFrozen(t)}var $2="MapSet",G2="Patches",Z2="ArrayMethods",K2={};function J2(t){const e=K2[t];return e||f2(0),e}var Q2,t4=t=>!!K2[t],e4=()=>Q2;function i4(t,e){e&&(t.patchPlugin_=J2(G2),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function o4(t){a4(t),t.drafts_.forEach(n4),t.drafts_=null}function a4(t){t===Q2&&(Q2=t.parent_)}var l4=t=>Q2={drafts_:[],parent_:Q2,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:t4($2)?J2($2):void 0, | |
| 6212 | -arrayMethodsPlugin_:t4(Z2)?J2(Z2):void 0};function n4(t){const e=t[g2];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function s4(t,e){e.unfinalizedDrafts_=e.drafts_.length;const i=e.drafts_[0];if(void 0!==t&&t!==i){i[g2].modified_&&(o4(e),f2(4)),S2(t)&&(t=r4(e,t));const{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(i[g2].base_,t,e)}else t=r4(e,i);return function(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&E2(e,i)}(e,t,!0),o4(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==m2?t:void 0}function r4(t,e){if(q2(e))return e;const i=e[g2];if(!i)return m4(e,t.handledSet_,t);if(!c4(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);p4(i,t)}return i.copy_}function b4(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var c4=(t,e)=>t.scope_===e,d4=[];function u4(t,e,i,o){const a=Y2(t),l=t.type_;if(void 0!==o&&C2(a,o,l)===e)return void A2(a,o,i,l);if(!t.draftLocations_){ | |
| 6213 | -const e=t.draftLocations_=new Map;j2(a,(t,i)=>{if(R2(i)){const o=e.get(i)||[];o.push(t),e.set(i,o)}})}const n=t.draftLocations_.get(e)??d4;for(const t of n)A2(a,t,i,l)}function p4(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);o&&i.generatePatches_(t,o,e)}b4(t)}}function m4(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||R2(t)||e.has(t)||!S2(t)||q2(t)||(e.add(t),j2(t,(o,a)=>{if(R2(a)){const e=a[g2];if(c4(e,i)){const i=X2(e);A2(t,o,i,t.type_),b4(e)}}else S2(a)&&m4(a,e,i)})),t}var h4={get(t,e){if(e===g2)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=Y2(t);if(!z2(a,e,t.type_))return function(t,e,i){const o=y4(e,i);return o?_2 in o?o[_2]:o.get?.call(t.draft_):void 0}(t,a,e);const l=a[e];if(t.finalized_||!S2(l))return l | |
| 6214 | -;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===f4(t.base_,e)){H4(t);const i=1===t.type_?+e:e,o=M4(t.scope_,l,t,i);return t.copy_[i]=o}return l},has:(t,e)=>e in Y2(t),ownKeys:t=>Reflect.ownKeys(Y2(t)),set(t,e,i){const o=y4(Y2(t),e);if(o?.set)return o.set.call(t.draft_,i),!0;if(!t.modified_){const o=f4(Y2(t),e),a=o?.[g2];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||z2(t.base_,e,t.type_)))return!0;H4(t),T4(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(R2(i)){const a=i[g2];c4(a,o)&&a.callbacks_.push(function(){H4(t);const o=X2(a);u4(t,i,o,e)})}else S2(i)&&t.callbacks_.push(function(){const a=Y2(t) | |
| 6215 | -;3===t.type_?a.has(i)&&m4(i,o.handledSet_,o):C2(a,e,t.type_)===i&&o.drafts_.length>1&&!0===(t.assigned_.get(e)??!1)&&t.copy_&&m4(C2(t.copy_,e,t.type_),o.handledSet_,o)})}(t,e,i)),!0},deleteProperty:(t,e)=>(H4(t),void 0!==f4(t.base_,e)||e in t.base_?(t.assigned_.set(e,!1),T4(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const i=Y2(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{[v2]:!0,[x2]:1!==t.type_||"length"!==e,[k2]:o[k2],[_2]:i[e]}:o},defineProperty(){f2(11)},getPrototypeOf:t=>T2(t.base_),setPrototypeOf(){f2(12)}},g4={};for(let t in h4){let e=h4[t];g4[t]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function f4(t,e){const i=t[g2];return(i?Y2(i):t)[e]}function y4(t,e){if(!(e in t))return;let i=T2(t);for(;i;){const t=Object.getOwnPropertyDescriptor(i,e);if(t)return t;i=T2(i)}}function T4(t){t.modified_||(t.modified_=!0,t.parent_&&T4(t.parent_))}function H4(t){t.copy_||(t.assigned_=new Map, | |
| 6216 | -t.copy_=B2(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function M4(t,e,i,o){const[a,l]=D2(e)?J2($2).proxyMap_(e,i):N2(e)?J2($2).proxySet_(e,i):function(t,e){const i=L2(t),o={type_:i?1:0,scope_:e?e.scope_:e4(),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=h4;i&&(a=[o],l=g4);const{revoke:n,proxy:s}=Proxy.revocable(a,l);return o.draft_=s,o.revoke_=n,[s,o]}(e,i);return(i?.scope_??e4()).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||!c4(a,o))return;o.mapSetPlugin_?.fixSetContents(a);const l=X2(a);u4(t,a.draft_??a,l,i),p4(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 x4(t){if(!S2(t)||q2(t))return t;const e=t[g2];let i,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0, | |
| 6217 | -i=B2(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else i=B2(t,!0);return j2(i,(t,e)=>{A2(i,t,x4(e))},o),e&&(e.finalized_=!1),i}g4.deleteProperty=function(t,e){return g4.set.call(this,t,e,void 0)},g4.set=function(t,e,i){return h4.set.call(this,t[0],e,i,t[0])};var k4=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,e,i)=>{if(V2(t)&&!V2(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(V2(e)||f2(6),void 0===i||V2(i)||f2(7),S2(t)){const a=l4(this),l=M4(0,t,void 0);let n=!0;try{o=e(l),n=!1}finally{n?o4(a):a4(a)}return i4(a,i),s4(o,a)}if(!t||!I2(t)){if(o=e(t),void 0===o&&(o=t),o===m2&&(o=void 0),this.autoFreeze_&&E2(o,!0),i){const e=[],a=[];J2(G2).generateReplacementPatches_(t,o,{patches_:e,inversePatches_:a}),i(e,a)}return o}f2(1)},this.produceWithPatches=(t,e)=>{ | |
| 6218 | -if(V2(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]},O2(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),O2(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),O2(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){var e;S2(t)||f2(8),R2(t)&&(R2(e=t)||f2(10),t=x4(e));const i=l4(this),o=M4(0,t,void 0);return o[g2].isManual_=!0,a4(i),o}finishDraft(t,e){const i=t&&t[g2];i&&i.isManual_||f2(9);const{scope_:o}=i;return i4(o,e),s4(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=J2(G2).applyPatches_;return R2(t)?o(t,e):this.produce(t,t=>o(t,e))} | |
| 6219 | -},v4=k4.produce;function _4(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 R4=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),S4=()=>Math.random().toString(36).substring(7).split("").join("."),W4={INIT:`@@redux/INIT${S4()}`,REPLACE:`@@redux/REPLACE${S4()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${S4()}`};function U4(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 P4(t,e,i){if("function"!=typeof t)throw new Error(_4(2));if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(_4(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(_4(1));return i(P4)(t,e)} | |
| 6220 | -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(_4(3));return a}function d(t){if("function"!=typeof t)throw new Error(_4(4));if(r)throw new Error(_4(5));let e=!0;b();const i=s++;return n.set(i,t),function(){if(e){if(r)throw new Error(_4(6));e=!1,b(),n.delete(i),l=null}}}function u(t){if(!U4(t))throw new Error(_4(7));if(void 0===t.type)throw new Error(_4(8));if("string"!=typeof t.type)throw new Error(_4(17));if(r)throw new Error(_4(9));try{r=!0,a=o(a,t)}finally{r=!1}return(l=n).forEach(t=>{t()}),t}return u({type:W4.INIT}),{dispatch:u,subscribe:d,getState:c,replaceReducer:function(t){if("function"!=typeof t)throw new Error(_4(10));o=t,u({type:W4.REPLACE})},[R4]:function(){const t=d;return{subscribe(e){if("object"!=typeof e||null===e)throw new Error(_4(11));function i(){const t=e;t.next&&t.next(c())}return i(),{unsubscribe:t(i)}},[R4](){return this}}}}}function j4(...t){ | |
| 6221 | -return 0===t.length?t=>t:1===t.length?t[0]:t.reduce((t,e)=>(...i)=>t(e(...i)))}function w4(t){return({dispatch:e,getState:i})=>o=>a=>"function"==typeof a?a(e,i,t):o(a)}var z4=w4(),C4=w4,A4="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?j4:j4.apply(null,arguments)},L4=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,t=>t&&"function"==typeof t.match);function D4(t,e){function i(...i){if(e){let o=e(...i);if(!o)throw new Error(a3(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 U4(t)&&"type"in t&&"string"==typeof t.type}(e)&&e.type===t,i}var N4=class t extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,t.prototype)} | |
| 6222 | -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 I4(t){return S2(t)?v4(t,()=>{}):t}function V4(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}var O4=t=>e=>{setTimeout(e,t)};function Y4(t){const e={},i=[];let o;const a={addCase(t,i){const o="string"==typeof t?t:t.type;if(!o)throw new Error(a3(28));if(o in e)throw new Error(a3(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 X4(...t){return e=>t.some(t=>((t,e)=>L4(t)?t.match(e):t(e))(t,e))}var B4=["name","message","stack","code"],E4=class{constructor(t,e){this.payload=t,this.meta=e}_type | |
| 6223 | -},F4=class{constructor(t,e){this.payload=t,this.meta=e}_type},q4=t=>{if("object"==typeof t&&null!==t){const e={};for(const i of B4)"string"==typeof t[i]&&(e[i]=t[i]);return e}return{message:String(t)}},$4="External signal was aborted",G4=(()=>{function t(t,e,i){const o=D4(t+"/fulfilled",(t,e,i,o)=>({payload:t,meta:{...o||{},arg:i,requestId:e,requestStatus:"fulfilled"}})),a=D4(t+"/pending",(t,e,i)=>({payload:void 0,meta:{...i||{},arg:e,requestId:t,requestStatus:"pending"}})),l=D4(t+"/rejected",(t,e,o,a,l)=>({payload:a,error:(i&&i.serializeError||q4)(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 | |
| 6224 | -;function m(t){p=t,d.abort()}n&&(n.aborted?m($4):n.addEventListener("abort",()=>m($4),{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."};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 E4(t,e),fulfillWithValue:(t,e)=>new F4(t,e)})).then(e=>{if(e instanceof E4)throw e;return e instanceof F4?o(e.payload,c,t,e.meta):o(e,c,t)})])}catch(e){n=e instanceof E4?l(null,c,t,e.payload,e.meta):l(e,c,t)}finally{u&&d.signal.removeEventListener("abort",u)}var h | |
| 6225 | -;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(Z4)})}},{pending:a,rejected:l,fulfilled:o,settled:X4(l,o),typePrefix:t})}return t.withTypes=()=>t,t})();function Z4(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}var K4=Symbol.for("rtk-slice-createasyncthunk");function J4(t,e){return`${t}/${e}`}function Q4({creators:t}={}){const e=t?.asyncThunk?.[K4];return function(t){const{name:i,reducerPath:o=i}=t;if(!i)throw new Error(a3(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={ | |
| 6226 | -sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(t,e){const i="string"==typeof t?t:t.type;if(!i)throw new Error(a3(12));if(i in n.sliceCaseReducersByType)throw new Error(a3(13));return n.sliceCaseReducersByType[i]=e,s},addMatcher:(t,e)=>(n.sliceMatchers.push({matcher:t,reducer:e}),s),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?Y4(t.extraReducers):[t.extraReducers],a={...e,...n.sliceCaseReducersByType};return function(t){let e,[l,s,r]=Y4(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=()=>I4(t());else{const i=I4(t);e=()=>i}function b(t=e(),i){let o=[l[i.type],...s.filter(({matcher:t})=>t(i)).map(({reducer:t})=>t)] | |
| 6227 | -;return 0===o.filter(t=>!!t).length&&(o=[r]),o.reduce((t,e)=>{if(e){if(R2(t)){const o=e(t,i);return void 0===o?t:o}if(S2(t))return v4(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)}l.forEach(o=>{const l=a[o],n={reducerName:o,type:J4(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(a3(17));l=o.reducer,n=o.prepare}else l=o;a.addCase(t,l).exposeCaseReducer(e,l).exposeAction(e,n?D4(t,n):D4(t))}(n,l,s):function({type:t,reducerName:e},i,o,a){if(!a)throw new Error(a3(18));const{payloadCreator:l,fulfilled:n,pending:s,rejected:r,settled:b,options:c}=i,d=a(t,l,c);o.exposeAction(e,d), | |
| 6228 | -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||i3,pending:s||i3,rejected:r||i3,settled:b||i3})}(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){function o(t){let a=t[e];return void 0===a&&i&&(a=V4(d,o,m)),a}function a(e=b){const o=V4(c,i,()=>new WeakMap);return V4(o,e,()=>{const o={};for(const[a,l]of Object.entries(t.selectors??{}))o[a]=t3(l,e,()=>V4(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 t3(t,e,i,o){function a(a,...l){let n=e(a);return void 0===n&&o&&(n=i()), | |
| 6229 | -t(n,...l)}return a.unwrapped=t,a}var e3=Q4();function i3(){}var{assign:o3}=Object;function a3(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 l3=G4("ablocks/fetchAdminMenuItems",t=>{try{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"}))}}),n3=e3({name:"menus",initialState:{data:M.MK?JSON.parse(M.MK):{}},extraReducers:t=>{t.addCase(l3.pending,t=>{t.loading=!0}).addCase(l3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(l3.rejected,t=>{t.loading=!1})}}).reducer,s3=e3({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}} | |
| 6230 | -}),r3=s3.reducer,{showNotification:b3}=s3.actions,c3=G4("ablocks/FetchSettings",()=>(0,M.In)({action:"ablocks/get_settings"}).then(t=>t.data.data)),d3=G4("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(b3({message:(0,z.__)("Settings Saved!","ablocks"),isShow:!0,type:"success"})),t):(i.dispatch(b3({message:(0,z.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(b3({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),u3=e3({name:"settings",initialState:{loading:!1},extraReducers:t=>{t.addCase(c3.pending,t=>{t.loading=!0}).addCase(c3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(c3.rejected,t=>{t.loading=!1}).addCase(d3.pending,t=>{t.loading=!0}).addCase(d3.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(d3.rejected,t=>{ | |
| 6231 | -t.loading=!1})}}).reducer,p3=G4("ablocks/fetchBlockVisibility",()=>(0,M.In)({action:"ablocks/get_blocks_visibility"}).then(t=>t.data.data)),m3=G4("ablocks/saveBlockVisibility",t=>(0,M.In)({action:"ablocks/save_block_visibility",...t}).then(t=>t.data.data)),h3=G4("ablocks/saveBulkBlockVisibility",t=>(0,M.In)({action:"ablocks/save_bulk_block_visibility",blocks:t}).then(t=>t.data.data)),g3=e3({name:"blocks",initialState:{loading:!1},extraReducers:t=>{t.addCase(p3.pending,t=>{t.loading=!0}).addCase(p3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(p3.rejected,t=>{t.loading=!1}).addCase(m3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(h3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload})}}).reducer,f3=G4("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 | |
| 6232 | -}).then(t=>t?.data?.success?t.data.data:(a.dispatch(b3({message:(0,z.__)("Failed to fetch entries!","ablocks"),isShow:!0,type:"error"})),a.rejectWithValue(t.data.data||"Failed to fetch entries!")))}),y3=G4("ablocks/exportEntriesAsCSV",()=>(0,M.In)({action:"ablocks/get_entries",export_csv:1}).then(t=>t.data.data)),T3=G4("ablocks/fetchEntry",({id:t},e)=>(0,M.In)({action:"ablocks/get_entry",entry_id:t}).then(t=>t?.data?.success?t.data.data:(e.dispatch(b3({message:(0,z.__)("Failed to fetch entry!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to fetch entry!")))),H3=(G4("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(b3({message:(0,z.__)("Successfully updated entry!","ablocks"),isShow:!0,type:"success"})),t.data.data):(i.dispatch(b3({message:(0,z.__)("Failed to update entry!","ablocks"),isShow:!0,type:"error"})), | |
| 6233 | -i.rejectWithValue(t.data.data||"Failed to update entry!")))),G4("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(b3({message:(0,z.__)("Successfully deleted entries!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(b3({message:(0,z.__)("Failed to delete entries!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to delete entries!"))))),M3=G4("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(b3({message:(0,z.__)("Successfully marked entries as read!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(b3({message:(0,z.__)("Failed to mark entries as read!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to mark entries as read!")))),x3=G4("ablocks/markEntriesAsUnread",({entryIds:t},e)=>(0,M.In)({ | |
| 6234 | -action:"ablocks/mark_entries_as_unread",entry_id_array:t}).then(t=>t.data.success?(e.dispatch(b3({message:(0,z.__)("Successfully marked entries as unread!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(b3({message:(0,z.__)("Failed to mark entries as unread!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to mark entries as unread!")))),k3=G4("ablocks/sendEntriesToTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/send_entries_to_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(b3({message:(0,z.__)("Successfully sent entries to trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(b3({message:(0,z.__)("Failed to send entries to trash!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to send entries to trash!")))),v3=G4("ablocks/restoreEntriesFromTrash",({entryId:t},e)=>(0,M.In)({action:"ablocks/restore_entries_from_trash",entry_id:t}).then(t=>t.data.success?(e.dispatch(b3({message:(0, | |
| 6235 | -z.__)("Successfully restored entries from trash!","ablocks"),isShow:!0,type:"success"})),t.data.data):(e.dispatch(b3({message:(0,z.__)("Failed to restore entries from trash!","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue(t.data.data||"Failed to restore entries from trash!")))),_3=G4("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(b3({message:(0,z.__)("Settings Saved!","ablocks"),isShow:!0,type:"success"})),t):(i.dispatch(b3({message:(0,z.__)("Failed to save settings.","ablocks"),isShow:!0,type:"error"})),i.rejectWithValue(o.data.data))}catch(t){return i.dispatch(b3({message:t?.response?.data?.message??t.message,isShow:!0,type:"error"})),i.rejectWithValue(t.message)}}),R3=e3({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}}}, | |
| 6236 | -extraReducers:t=>{t.addCase(f3.pending,t=>{t.loading=!0}).addCase(f3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(f3.rejected,t=>{t.loading=!1}).addCase(y3.pending,t=>{t.loading=!0}).addCase(y3.fulfilled,(t,e)=>{t.loading=!1,t.csv_data=e.payload.csv_data}).addCase(y3.rejected,t=>{t.loading=!1}).addCase(M3.pending,t=>{t.loading=!0}).addCase(M3.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(M3.rejected,t=>{t.loading=!1}).addCase(x3.pending,t=>{t.loading=!0}).addCase(x3.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(x3.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(v3.pending,t=>{t.loading=!0 | |
| 6237 | -}).addCase(v3.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(v3.rejected,t=>{t.loading=!1}).addCase(H3.pending,t=>{t.loading=!0}).addCase(H3.fulfilled,(t,e)=>{t.loading=!1,t.data.data=t.data.data.filter(t=>!e.payload.id_of_deleted_entries.includes(t.id))}).addCase(H3.rejected,t=>{t.loading=!1}).addCase(T3.pending,t=>{t.loading=!0}).addCase(T3.fulfilled,(t,e)=>{t.loading=!1,t.data=e.payload}).addCase(T3.rejected,t=>{t.loading=!1}).addCase(_3.pending,t=>{t.loading=!0}).addCase(_3.fulfilled,(t,e)=>{t.loading=!1,t.data={...t.data,...e.payload}}).addCase(_3.rejected,t=>{t.loading=!1})}}),S3=R3.reducer,{updateCurrentPage:W3,updateItemPerPage:U3}=R3.actions,P3=G4("ablocks/fetchAddons",t=>{try{return(0,M.In)({action:"ablocks/addons/get_all_addons"}).then(e=>e.data?.success?e.data?.data:(t.dispatch(b3({message:e.data?.data?.message??__("Some thing went wrong","ablocks"),isShow:!0,type:"error" | |
| 6238 | -})),e.data))}catch(e){t.dispatch(b3({message:e?.response?.data?.message??e?.message,isShow:!0,type:"error"}))}}),j3=G4("ablocks/saveAddon",({addon:t,status:e},i)=>{try{return(0,M.In)({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(b3({message:t?.data.data,isShow:!0,type:"error"})),t.data))}catch(t){i.dispatch(b3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),w3=e3({name:"addons",initialState:{},extraReducers:t=>{t.addCase(P3.fulfilled,(t,e)=>e.payload).addCase(j3.fulfilled,(t,e)=>e.payload)}}).reducer,z3=G4("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({ | |
| 6239 | -message:l.data.message||(0,z.__)("Failed to fetch TB","ablocks")}))}catch(t){return a.dispatch(b3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),a.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),C3=G4("ablocks/fetchTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t)}`).then(t=>t.data)}catch(t){e.dispatch(b3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"}))}}),A3=G4("ablocks/createNewTB",(t,e)=>{try{return M.nC.post(M.MF+"ablocks_tb",t).then(t=>201===t.status?(e.dispatch(b3({message:(0,z.__)("Successfully created.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(b3({message:(0,z.__)("Failed to create.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,z.__)("Failed to create.","ablocks"),success:!1})))}catch(t){return e.dispatch(b3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})} | |
| 6240 | -}),L3=G4("ablocks/updateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,{...t}).then(t=>200===t.status?(e.dispatch(b3({message:(0,z.__)("Successfully updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(b3({message:(0,z.__)("Failed to Update.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,z.__)("Failed to Update.","ablocks"),success:!1})))}catch(t){return e.dispatch(b3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),D3=G4("ablocks/statusUpdateTB",(t,e)=>{try{return M.nC.post(`${M.MF}ablocks_tb/${parseInt(t.id)}`,t).then(t=>200===t.status?(e.dispatch(b3({message:(0,z.__)("Successfully Status updated.","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(b3({message:(0,z.__)("Failed to Update.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,z.__)("Failed to Update.","ablocks"),success:!1})))}catch(t){ | |
| 6241 | -return e.dispatch(b3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),N3=G4("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(b3({message:(0,z.__)("Deleted!","ablocks"),isShow:!0,type:"success"})),t.data.previous):(e.dispatch(b3({message:(0,z.__)("Failed to delete.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,z.__)("Failed to delete.","ablocks"),success:!1})))}catch(t){return e.dispatch(b3({message:error?.response?.data?.message??error?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),I3=G4("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"}}) | |
| 6242 | -;return 200===i.status?(e.dispatch(b3({message:(0,z.__)("Moved to trash!","ablocks"),isShow:!0,type:"success"})),i.data):(e.dispatch(b3({message:(0,z.__)("Failed to trashed.","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,z.__)("Failed to trashed.","ablocks"),success:!1}))}catch(t){return e.dispatch(b3({message:t?.response?.data?.message??t?.message,isShow:!0,type:"error"})),e.rejectWithValue({message:t?.response?.data?.message??t?.message})}}),V3=G4("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(b3({message:(0,z.__)("Them Restored Successfully!","ablocks"),isShow:!0,type:"success"})),t.data):(e.dispatch(b3({message:(0,z.__)("Failed to restore theme","ablocks"),isShow:!0,type:"error"})),e.rejectWithValue({message:(0,z.__)("Failed to restore theme.","ablocks"),success:!1})))}catch(t){return e.dispatch(b3({message:error?.response?.data?.message??error?.message, | |
| 6243 | -isShow:!0,type:"error"})),e.rejectWithValue({message:error?.response?.data?.message??error?.message})}}),O3=e3({name:"themeBuilder",initialState:{data:[],rowsPerPage:10,status:"all",page:1,search:""},reducers:{updateTBCurrentPage:(t,e)=>{t.page=e.payload},updateTBItemPerPage:(t,e)=>{t.per_page=e.payload}},extraReducers:t=>{t.addCase(z3.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(C3.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(A3.fulfilled,(t,e)=>{t.data.length?t.data=[...t.data,e.payload]:t.data=[e.payload]}).addCase(L3.fulfilled,(t,e)=>{t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(N3.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id)) | |
| 6244 | -}).addCase(I3.fulfilled,(t,e)=>{t.data=t.data.filter(t=>parseInt(t.id)!==parseInt(e.payload?.id))}).addCase(D3.fulfilled,(t,e)=>{t.loading=!1,t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)}).addCase(V3.fulfilled,(t,e)=>{t.loading=!1,t.data=t.data.map(t=>parseInt(t.id)===parseInt(e.payload.id)?{...t,...e.payload}:t)})}}),{updateTBCurrentPage:Y3,updateTBItemPerPage:X3}=O3.actions,B3=O3.reducer;i(79448);let E3=[];const F3=function(t){const e=function(t){const{thunk:e=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let l=new N4;return e&&(function(t){return"boolean"==typeof t}(e)?l.push(z4):l.push(C4(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(!U4(i))throw new Error(a3(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])} | |
| 6245 | -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:W4.INIT}))throw new Error(_4(12));if(void 0===i(void 0,{type:W4.PROBE_UNKNOWN_ACTION()}))throw new Error(_4(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(_4(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=j4;a&&(c=A4({trace:!1,..."object"==typeof a&&a}));const d=function(...t){return e=>(i,o)=>{const a=e(i,o);let l=()=>{throw new Error(_4(15))};const n={getState:a.getState,dispatch:(t,...e)=>l(t,...e)},s=t.map(t=>t(n));return l=j4(...s)(a.dispatch),{...a,dispatch:l}}}(...b),u=(t=>function(e){const{autoBatch:i=!0}=e??{};let o=new N4(t);return i&&o.push(((t={type:"raf"})=>e=>(...i)=>{const o=e(...i);let a=!0,l=!1,n=!1 | |
| 6246 | -;const s=new Set,r="tick"===t.type?queueMicrotask:"raf"===t.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:O4(10):"callback"===t.type?t.queueNotification:O4(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 P4(r,n,c(..."function"==typeof s?s(u):u()))}({reducer:{adminmenu:n3,settings:u3,notification:r3,blocks:g3,submissions:S3,addons:w3,themeBuilder:B3},middleware:t=>t().concat(...E3)}),q3=F3;var $3=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===G3}(t)}(t)},G3="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103 | |
| 6247 | -;function Z3(t,e){return!1!==e.clone&&e.isMergeableObject(t)?J3((i=t,Array.isArray(i)?[]:{}),t,e):t;var i}function K3(t,e,i){return t.concat(e).map(function(t){return Z3(t,i)})}function J3(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||K3,i.isMergeableObject=i.isMergeableObject||$3;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]=Z3(t[e],i)}),Object.keys(e).forEach(function(a){i.isMergeableObject(e[a])&&t[a]?o[a]=J3(t[a],e[a],i):o[a]=Z3(e[a],i)}),o}(t,e,i):Z3(e,i)}J3.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,i){return J3(t,i,e)},{})};const Q3=J3;var t6=i(11331),e6=i.n(t6),i6=i(88055),o6=i.n(i6),a6=i(30115),l6=i.n(a6);var n6=i(32629),s6=i.n(n6),r6=i(42072),b6=i.n(r6);function c6(){return c6=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e] | |
| 6248 | -;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},c6.apply(this,arguments)}function d6(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 u6(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var p6=(0,a.createContext)(void 0);p6.displayName="FormikContext";var m6=p6.Provider,h6=p6.Consumer;function g6(){var t=(0,a.useContext)(p6);return t}var f6=function(t){return Array.isArray(t)&&0===t.length},y6=function(t){return"function"==typeof t},T6=function(t){return null!==t&&"object"==typeof t},H6=function(t){return String(Math.floor(Number(t)))===t},M6=function(t){return"[object String]"===Object.prototype.toString.call(t)},x6=function(t){return 0===a.Children.count(t)},k6=function(t){return T6(t)&&y6(t.then)};function v6(t,e,i,o){void 0===o&&(o=0);for(var a=b6()(e);t&&o<a.length;)t=t[a[o++]] | |
| 6249 | -;return o===a.length||t?void 0===t?i:t:i}function _6(t,e,i){for(var o=s6()(t),a=o,l=0,n=b6()(e);l<n.length-1;l++){var s=n[l],r=v6(t,n.slice(0,l+1));if(r&&(T6(r)||Array.isArray(r)))a=a[s]=s6()(r);else{var b=n[l+1];a=a[s]=H6(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 R6(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];T6(s)?i.get(s)||(i.set(s,!0),o[n]=Array.isArray(s)?[]:{},R6(s,e,i,o[n])):o[n]=e}return o}var S6={},W6={};function U6(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=d6(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=c6({validateOnChange:i,validateOnBlur:l,validateOnMount:s,onSubmit:d},u),m=(0, | |
| 6250 | -a.useRef)(p.initialValues),h=(0,a.useRef)(p.initialErrors||S6),g=(0,a.useRef)(p.initialTouched||W6),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:o6()(p.initialValues),errors:o6()(p.initialErrors)||S6,touched:o6()(p.initialTouched)||W6,status:o6()(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 c6({},t,{values:e.payload});case"SET_TOUCHED":return c6({},t,{touched:e.payload});case"SET_ERRORS":return l6()(t.errors,e.payload)?t:c6({},t,{errors:e.payload});case"SET_STATUS":return c6({},t,{status:e.payload});case"SET_ISSUBMITTING":return c6({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return c6({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return c6({},t,{ | |
| 6251 | -values:_6(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return c6({},t,{touched:_6(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return c6({},t,{errors:_6(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return c6({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return c6({},t,{touched:R6(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return c6({},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(S6):k6(a)?a.then(function(t){i(t||S6)},function(t){o(t)}):i(a)})},[p.validate]),_=(0,a.useCallback)(function(t,e){var i=p.validationSchema,o=y6(i)?i(e):i,a=e&&o.validateAt?o.validateAt(e,t):function(t,e,i){void 0===i&&(i=!1);var o=j6(t);return e[i?"validateSync":"validate"](o,{abortEarly:!1,context:o})}(t,o) | |
| 6252 | -;return new Promise(function(t,e){a.then(function(){t(S6)},function(i){"ValidationError"===i.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return _6(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;v6(e,n.path)||(e=_6(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 y6(T.current[t].validate)}),i=e.length>0?e.map(function(e){return R(e,v6(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=_6(t,e[o],i)),t},{})})},[R]),W=(0,a.useCallback)(function(t){ | |
| 6253 | -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 Q3.all([e,i,o],{arrayMerge:w6})})},[p.validate,p.validationSchema,S,v,_]),U=C6(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&&l6()(m.current,p.initialValues)&&U(m.current)},[s,U]);var P=(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, | |
| 6254 | -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||l6()(m.current,p.initialValues)||c&&(m.current=p.initialValues,P(),s&&U(m.current))},[c,p.initialValues,P,s,U]),(0,a.useEffect)(function(){c&&!0===y.current&&!l6()(h.current,p.initialErrors)&&(h.current=p.initialErrors||S6,k({type:"SET_ERRORS",payload:p.initialErrors||S6}))},[c,p.initialErrors]),(0,a.useEffect)(function(){c&&!0===y.current&&!l6()(g.current,p.initialTouched)&&(g.current=p.initialTouched||W6,k({type:"SET_TOUCHED",payload:p.initialTouched||W6}))},[c,p.initialTouched]),(0,a.useEffect)(function(){c&&!0===y.current&&!l6()(f.current,p.initialStatus)&&(f.current=p.initialStatus,k({type:"SET_STATUS",payload:p.initialStatus}))},[c,p.initialStatus,p.initialTouched]);var j=C6(function(t){ | |
| 6255 | -if(T.current[t]&&y6(T.current[t].validate)){var e=v6(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:v6(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=C6(function(t,e){return k({type:"SET_TOUCHED",payload:t}),(void 0===e?l:e)?U(x.values):Promise.resolve()}),A=(0,a.useCallback)(function(t){k({type:"SET_ERRORS",payload:t})},[]),L=C6(function(t,e){var o=y6(t)?t(x.values):t;return k({ | |
| 6256 | -type:"SET_VALUES",payload:o}),(void 0===e?i:e)?U(o):Promise.resolve()}),D=(0,a.useCallback)(function(t,e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})},[]),N=C6(function(t,e,o){var a=y6(e)?e(v6(x.values,t)):e;return k({type:"SET_FIELD_VALUE",payload:{field:t,value:a}}),(void 0===o?i:o)?U(_6(x.values,t,a)):Promise.resolve()}),I=(0,a.useCallback)(function(t,e){var i,o=e,a=t;if(!M6(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}(v6(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}) | |
| 6257 | -}(d):b}o&&N(o,a)},[N,x.values]),V=C6(function(t){if(M6(t))return function(e){return I(e,t)};I(t)}),O=C6(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)?U(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=C6(function(t){if(M6(t))return function(e){return Y(e,t)};Y(t)}),B=(0,a.useCallback)(function(t){y6(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=C6(function(){return k({type:"SUBMIT_ATTEMPT"}),U().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" | |
| 6258 | -}),t}).catch(function(t){if(y.current)throw k({type:"SUBMIT_FAILURE"}),t})}if(y.current&&(k({type:"SUBMIT_FAILURE"}),e))throw t})}),$=C6(function(t){t&&t.preventDefault&&y6(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&y6(t.stopPropagation)&&t.stopPropagation(),q().catch(function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)})}),G={resetForm:P,validateForm:U,validateField:j,setErrors:A,setFieldError:D,setFieldTouched:O,setFieldValue:N,setStatus:E,setSubmitting:F,setTouched:C,setValues:L,setFormikState:B,submitForm:q},Z=C6(function(){return d(x.values,G)}),K=C6(function(t){t&&t.preventDefault&&y6(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&y6(t.stopPropagation)&&t.stopPropagation(),P()}),J=(0,a.useCallback)(function(t){return{value:v6(x.values,t),error:v6(x.errors,t),touched:!!v6(x.touched,t),initialValue:v6(m.current,t),initialTouched:!!v6(g.current,t),initialError:v6(h.current,t)}},[x.errors,x.touched,x.values]),Q=(0, | |
| 6259 | -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=T6(t),i=e?t.name:t,o=v6(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!l6()(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&&y6(r)?r(p):r:x.errors&&0===Object.keys(x.errors).length},[r,et,x.errors,p]);return c6({},x,{initialValues:m.current,initialErrors:h.current,initialTouched:g.current,initialStatus:f.current,handleBlur:X,handleChange:V,handleReset:K,handleSubmit:$,resetForm:P,setErrors:A, | |
| 6260 | -setFormikState:B,setFieldTouched:O,setFieldValue:N,setFieldError:D,setStatus:E,setSubmitting:F,setTouched:C,setValues:L,submitForm:q,validateForm:U,validateField:j,isValid:it,dirty:et,unregisterField:z,registerField:w,getFieldProps:tt,getFieldMeta:J,getFieldHelpers:Q,validateOnBlur:l,validateOnChange:i,validateOnMount:s})}function P6(t){var e=U6(t),i=t.component,o=t.children,l=t.render,n=t.innerRef;return(0,a.useImperativeHandle)(n,function(){return e}),(0,a.createElement)(m6,{value:e},i?(0,a.createElement)(i,e):l?l(e):o?y6(o)?o(e):x6(o)?null:a.Children.only(o):null)}function j6(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)||e6()(t)?j6(t):""!==t?t:void 0}):e6()(t[o])?e[o]=j6(t[o]):e[o]=""!==t[o]?t[o]:void 0}return e}function w6(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) | |
| 6261 | -;o[a]=l?Q3(Array.isArray(e)?[]:{},e,i):e}else i.isMergeableObject(e)?o[a]=Q3(t[a],e,i):-1===t.indexOf(e)&&o.push(e)}),o}var z6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function C6(t){var e=(0,a.useRef)(t);return z6(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 A6(t){var e=t.validate,i=t.name,o=t.render,l=t.children,n=t.as,s=t.component,r=t.className,b=d6(t,["validate","name","render","children","as","component","className"]),c=d6(g6(),["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(c6({name:i},b)),m=c.getFieldMeta(i),h={field:p,form:c};if(o)return o(c6({},h,{meta:m}));if(y6(l))return l(c6({},h,{meta:m}));if(s){if("string"==typeof s){ | |
| 6262 | -var g=b.innerRef,f=d6(b,["innerRef"]);return(0,a.createElement)(s,c6({ref:g},p,f,{className:r}),l)}return(0,a.createElement)(s,c6({field:p,form:c},b,{className:r}),l)}var y=n||"input";if("string"==typeof y){var T=b.innerRef,H=d6(b,["innerRef"]);return(0,a.createElement)(y,c6({ref:T},p,H,{className:r}),l)}return(0,a.createElement)(y,c6({},p,b,{className:r}),l)}var L6=(0,a.forwardRef)(function(t,e){var i=t.action,o=d6(t,["action"]),l=null!=i?i:"#",n=g6(),s=n.handleReset,r=n.handleSubmit;return(0,a.createElement)("form",c6({onSubmit:r,ref:e,onReset:s,action:l},o))});function D6(t){var e=function(e){return(0,a.createElement)(h6,null,function(i){return(0,a.createElement)(t,c6({},e,{formik:i}))})},i=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e.WrappedComponent=t,e.displayName="FormikConnect("+i+")",so()(e,t)}L6.displayName="Form";var N6=function(t,e,i){var o=I6(t);return o.splice(e,0,i),o},I6=function(t){if(t){if(Array.isArray(t))return[].concat(t) | |
| 6263 | -;var e=Object.keys(t).map(function(t){return parseInt(t)}).reduce(function(t,e){return e>t?e:t},0);return Array.from(c6({},t,{length:e+1}))}return[]},V6=function(t,e){var i="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||T6(t)){var e=I6(t);return i(e)}return t}},O6=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=V6(o,t),n=V6(e,t),s=_6(i.values,l,t(v6(i.values,l))),r=o?a(v6(i.errors,l)):void 0,b=e?n(v6(i.touched,l)):void 0;return f6(r)&&(r=void 0),f6(b)&&(b=void 0),c6({},i,{values:s,errors:o?_6(i.errors,l,r):i.errors,touched:e?_6(i.touched,l,b):i.touched})})},i.push=function(t){return i.updateArrayField(function(e){return[].concat(I6(e),[o6()(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=I6(t),a=o[e];return o[e]=o[i],o[i]=a,o}(i,t,e) | |
| 6264 | -},!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=I6(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 N6(i,t,e)},function(e){return N6(e,t,null)},function(e){return N6(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=I6(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)}}, | |
| 6265 | -i.handleRemove=function(t){return function(){return i.remove(t)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(u6(i)),i.pop=i.pop.bind(u6(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&&!l6()(v6(t.formik.values,t.name),v6(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?I6(i):[];return e||(e=o[t]),y6(o.splice)&&o.splice(t,1),y6(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, | |
| 6266 | -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=c6({},t,{form:d6(e.formik,["validate","validationSchema"]),name:n});return i?(0,a.createElement)(i,s):o?o(s):l?"function"==typeof l?l(s):x6(l)?null:a.Children.only(l):null},e}(a.Component);O6.defaultProps={validateOnChange:!0};var Y6=D6(O6);const X6=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"], | |
| 6267 | -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 B6(){const{values:t,setFieldValue:e}=g6();return(0,L.jsxs)("div",{className:"ablocks-colors-panel",children:[(0,L.jsx)("div",{className:"ablocks-colors-panel__title",children:(0,z.__)("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,L.jsxs)("div",{className:s()("ablocks-color-row","is-system"),children:[(0,L.jsx)("div",{className:"ablocks-color-row__left",children:(0,L.jsx)(A6,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row__label-input", | |
| 6268 | -placeholder:(0,z.__)("Label","ablocks")})}),(0,L.jsxs)("div",{className:"ablocks-color-row__right",children:[(0,L.jsx)(vs,{label:"",isGradient:!0,attributeName:`global_color[${a}].value`,attributeValue:v6(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,L.jsx)(Y6,{name:"global_color",children:t=>(0,L.jsx)("span",{type:"button",className:"ablocks-icon ablocks-icon--trash-can-slash"})})]})]},i.id)}),(0,L.jsx)("div",{className:"ablocks-divider"}),(0,L.jsx)("div",{className:"ablocks-colors-panel__title",children:(0,z.__)("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,L.jsxs)("div",{className:"ablocks-color-row-custom",children:[(0,L.jsx)("div",{className:"ablocks-color-row-custom__left",children:(0,L.jsx)(A6,{name:`global_color[${a}].label`,as:"input",className:"ablocks-color-row-custom__left--label-input", | |
| 6269 | -placeholder:(0,z.__)("Label","ablocks")})}),(0,L.jsxs)("div",{className:"ablocks-color-row-custom__right",children:[(0,L.jsx)(vs,{isGradient:!0,attributeName:`global_color[${a}].value`,attributeValue:v6(t,`global_color[${a}].value`)||"",onChangeHandler:(t,i)=>{e(t,i)},resetHandler:t=>{e(t,"")},allowGlobalColor:!1,showGlobal:!1}),(0,L.jsx)(Y6,{name:"global_color",children:t=>(0,L.jsx)("span",{type:"button",className:"ablocks-icon ablocks-icon--delete",onClick:()=>t.remove(a)})})]})]},i.id)}),(0,L.jsx)(Y6,{name:"global_color",children:e=>(0,L.jsx)("div",{className:"ablocks-add-wrap",children:(0,L.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,z.__)("Add Style","ablocks")})})})]})}function E6(){const{values:t,setFieldValue:e}=g6();return(0,L.jsxs)("div",{ | |
| 6270 | -className:"ablocks-typography-panel",children:[(0,L.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,z.__)("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,L.jsxs)("div",{className:s()("ablocks-typography-row","is-system"),children:[(0,L.jsx)("div",{className:"ablocks-typography-row__left",children:(0,L.jsx)(A6,{name:`global_typography[${a}].label`,as:"input",className:"ablocks-typography-row__label-input",placeholder:(0,z.__)("Label","ablocks")})}),(0,L.jsxs)("div",{className:"ablocks-typography-row__right",children:[(0,L.jsx)(Wc,{label:"",attributeName:`global_typography[${a}].value`,attributeValue:X6(v6(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,L.jsx)(Y6,{name:"global_typography",children:t=>(0,L.jsx)("span",{className:"ablocks-icon ablocks-icon--trash-can-slash", | |
| 6271 | -style:{cursor:"pointer"}})})]})]},i.id)}),(0,L.jsx)("div",{className:"ablocks-divider"}),(0,L.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,z.__)("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,L.jsxs)("div",{className:"ablocks-typography-row-custom",children:[(0,L.jsx)("div",{className:"ablocks-typography-row-custom__left",children:(0,L.jsx)(A6,{name:`global_typography[${a}].label`,as:"input",className:"ablocks-typography-row-custom__left--label-input",placeholder:(0,z.__)("Label","ablocks")})}),(0,L.jsxs)("div",{className:"ablocks-typography-row-custom__right",children:[(0,L.jsx)(Wc,{label:"",attributeName:`global_typography[${a}].value`,attributeValue:X6(v6(t,`global_typography[${a}].value`)),setAttributes:t=>{const i=`global_typography[${a}].value`;e(i,t[i]||t)},showGlobal:!1}),(0,L.jsx)(Y6,{name:"global_typography",children:t=>(0,L.jsx)("span",{ | |
| 6272 | -className:"ablocks-icon ablocks-icon--delete",onClick:()=>t.remove(a),style:{cursor:"pointer"}})})]})]},i.id)}),(0,L.jsx)(Y6,{name:"global_typography",children:e=>(0,L.jsx)("div",{className:"ablocks-add-wrap",children:(0,L.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", | |
| 6273 | -wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px"},is_system:!1}})(t.global_typography)),children:(0,z.__)("Add Style","ablocks")})})}),(0,L.jsxs)("div",{className:"ablocks-typography-fallback",children:[(0,L.jsxs)("label",{className:"ablocks-typography-fallback__label",children:[(0,z.__)("Fallback Font Family","ablocks"),(0,L.jsx)("span",{className:"ablocks-typography-fallback__hint",children:(0,z.__)("Used for fonts aBlocks does not recognise (uploaded or theme fonts). Google fonts fall back to their own category automatically.","ablocks")})]}),(0,L.jsx)(A6,{name:"global_font_family_fallback",as:"input",type:"text",className:"ablocks-typography-fallback__input",placeholder:(0,z.__)("Sans-serif","ablocks")})]})]})}const F6=({title:t,values:e,setFieldValue:i})=>{const o=t.toLowerCase();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,z.__)(t,"ablocks")}),(0,L.jsx)(vs,{label:(0, | |
| 6274 | -z.__)("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,L.jsx)(Wc,{label:(0,z.__)("Typography","ablocks"),showGlobal:!1,attributeName:`global_${o}_typography`,attributeValue:e[`global_${o}_typography`]||{},setAttributes:t=>i(`global_${o}_typography`,t[`global_${o}_typography`]||t)})]})},q6=({type:t,values:e,setFieldValue:i})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{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,L.jsx)(Wc,{label:(0,z.__)("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 $6(){ | |
| 6275 | -const{values:t,setFieldValue:e}=g6();return(0,L.jsxs)("div",{className:"ablocks-theme-panel",children:[(0,L.jsx)("div",{className:"ablocks-typography-panel__title",children:(0,z.__)("Body","ablocks")}),(0,L.jsx)(vs,{label:(0,z.__)("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,L.jsx)(Wc,{label:(0,z.__)("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,L.jsx)(vt,{label:(0,z.__)("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,L.jsx)(Nt,{}),(0,L.jsx)("div",{ | |
| 6276 | -className:"ablocks-typography-panel__title",children:(0,z.__)("Link","ablocks")}),(0,L.jsx)(Rb,{content:(0,L.jsx)(q6,{type:"_",values:t,setFieldValue:e}),style:(0,L.jsx)(q6,{type:"_hover_",values:t,setFieldValue:e}),firstTabLabel:(0,z.__)("Normal","ablocks"),secondTabLabel:(0,z.__)("Hover","ablocks")}),(0,L.jsx)(Nt,{}),["H1","H2","H3","H4","H5","H6"].map((i,o)=>(0,L.jsxs)(React.Fragment,{children:[o>0&&(0,L.jsx)(Nt,{}),(0,L.jsx)(F6,{title:i,values:t,setFieldValue:e})]},i))]})}const G6=t=>"string"!=typeof t||isNaN(t)||""===t?t:Number(t),Z6=(t,e)=>{if((t=G6(t))===(e=G6(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(!Z6(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(!Z6(t[a],e[a]))return!1}return!0}return t===e},K6=()=>{ | |
| 6277 | -const t=p2(t=>t.settings),e=c2();return(0,a.useEffect)(()=>{t?.data||e(c3())},[]),(0,L.jsx)(P6,{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(d3({values:t})).unwrap();const i=wp.data.dispatch("core/editor");i?.savePost&&await i.savePost(),await e(c3()).unwrap(),setTimeout(()=>{window.location.reload()},100)}catch(t){i.setSubmitting(!1)}},enableReinitialize:!0, | |
| 6278 | -children:({handleSubmit:t,isSubmitting:e,values:i,initialValues:o})=>{const l=!Z6(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,z.__)("Saving…","ablocks"):(0,z.__)("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,z.__)("Please save your global changes first.","ablocks")))};return document.addEventListener("click",t,!0),()=>document.removeEventListener("click",t,!0)},[l]),(0,a.useEffect)(()=>{if(l){ | |
| 6279 | -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,z.__)("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,L.jsx)(L6,{className:"ablocks-global-settings",children:(0,L.jsx)(Rb,{content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(B6,{}),(0, | |
| 6280 | -L.jsx)(Nt,{}),(0,L.jsx)(E6,{})]}),style:(0,L.jsx)($6,{}),firstTabLabel:(0,z.__)("Design System","ablocks"),secondTabLabel:(0,z.__)("Theme Style","ablocks")})})}})},{registerPlugin:J6}=wp.plugins,{__:Q6}=wp.i18n;J6("ablocks-global-settings",{icon:(0,L.jsxs)("svg",{width:"251",height:"250",viewBox:"0 0 251 250",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.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,L.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,L.jsx)("path",{ | |
| 6281 | -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,L.jsx)($0.PluginSidebar,{name:"ablocks-global-settings",title:Q6("aBlocks Settings","ablocks"),children:(0,L.jsx)(a2,{store:q3,children:(0,L.jsx)(K6,{})})})});const t8={taxonomies:{isRequestBeingProcessed:!1,data:void 0},metaFields:{},postTermsRelations:{},postMetaRelations:{},recentPosts:void 0,recentMediasUrls:void 0,authors:{},authorsMeta:{},postsCommentsCount:{},featuredMediasData:{},allTaxonomiesTermsData:{},authorData:{},authorProfilePictureUrl:void 0},e8=(0,r.createReduxStore)("ablocks/dynamic-content-store",{reducer:(t=t8,e)=>{switch(e.type){ | |
| 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 | |
| 6217 | +}),(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={ | |
| 6220 | +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 | +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 | +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 | +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 | +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 | +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 | +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 | +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, | |
| 6231 | +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), | |
| 6247 | +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 | +;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, | |
| 6251 | +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){ | |
| 6282 | 6332 | 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":{ |
| 6283 | 6333 | 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}), |
| 6284 | 6334 | 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, |
| 6285 | -getFeaturedMediasData:t=>t.featuredMediasData,getAllTaxonomiesTermsData:t=>t.allTaxonomiesTermsData,getRecentMediasUrls:t=>t.recentMediasUrls,getAuthorsData:t=>t.authorData,getAuthorProfilePictureUrl:t=>t.authorProfilePictureUrl},initialState:t8});(0,r.register)(e8);const i8=window.wp.domReady;var o8=i.n(i8);const a8="docs-internal-guid-";function l8(t){const e=document.implementation.createHTMLDocument("");e.body.innerHTML=t;const i=e.querySelector(`[id^="${a8}"]`);return i&&i.parentElement===e.body&&1===e.body.children.length?i:e.body}const n8={A:["href"],IMG:["src","alt","title","width","height"],TD:["colspan","rowspan"],TH:["colspan","rowspan"]},s8=["style","script","meta","link","title"];function r8(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}}function b8(t,e){const i=new RegExp(`(?:^|;)\\s*${e}\\s*:\\s*([^;]+)`,"i").exec(t);return i?i[1].trim().toLowerCase():""}const c8=window.wp.apiFetch;var d8=i.n(c8) | |
| 6286 | -;async function u8(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) | |
| 6287 | -;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 d8()({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 p8="ablocks/atomic-text",m8=["H1","H2","H3","H4","H5","H6"];function h8(t,e={},i=[]){return(0,o.getBlockType)(t)?(0,o.createBlock)(t,e,i):null}function g8(t){for(const[e,i,o]of t){const t=h8(e,i,o);if(t)return t}return null}function f8(t){return(t.innerHTML||"").replace(/\u00a0/g," ").trim()}function y8(t){const e=/^<strong>([\s\S]*)<\/strong>$/.exec(t);return!e||e[1].includes("<strong>")?t:e[1]}function T8(t,e){if(!e)return null;const i=/^h[1-6]$/.test(t);return g8([[p8,{tag:t,content:e}],i?["ablocks/heading",{heading:e,headingTag:t}]:["ablocks/paragraph",{paragraph:e}],i?["core/heading",{content:e, | |
| 6288 | -level:Number(t.slice(1))}]:["core/paragraph",{content:e}]])}function H8(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}),g8([["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 M8(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(...M8(t)));const e=t.cloneNode(!0);return Array.from(e.querySelectorAll("ul, ol")).forEach(t=>t.remove()),f8(e)}).filter(Boolean);if(!o.length)return i;const a=h8((0,b.applyFilters)("ablocks.googleDocs.listBlock","ablocks/lists",{ordered:e}),{markerType:e?"number":"disc", | |
| 6289 | -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=>h8("core/list-item",{content:t})).filter(Boolean),n=l.length?h8("core/list",{ordered:e},l):null;return n?[n,...i]:[...o.map(t=>T8("p",t)).filter(Boolean),...i]}function x8(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(f8).filter(Boolean).join("<br>"):f8(t)}(t),o={content:e?y8(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 k8(t,e){ | |
| 6290 | -const i=(e?t.slice(1):t).map(t=>({cells:x8(t,!1)}));return h8("core/table",{head:e?[{cells:x8(t[0],!0)}]:[],body:i,foot:[]})}function v8(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),h8("ablocks/table-cell",i,function(t,e){const i=P8(t).map(t=>{if(!e||p8!==t.name)return t;const i=y8(t.attributes?.content||"");return i===t.attributes?.content?t:h8(p8,{...t.attributes,content:i},t.innerBlocks)||t});return i.length?i:[h8(p8,{tag:"p",content:""})].filter(Boolean)}(t,e))}).filter(Boolean);return i.length?h8("ablocks/table-row",{},i):null}function _8(t,e){const i=[];if(e){const e=v8(t[0],!0);if(e){const t=h8("ablocks/table-header",{},[e]);t&&i.push(t)}}const o=(e?t.slice(1):t).map(t=>v8(t,!1)).filter(Boolean);if(o.length){const t=h8("ablocks/table-body",{},o);t&&i.push(t)} | |
| 6291 | -return i.length?h8("ablocks/table",{tableCreated:!0,isHeader:e},i):null}function R8(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,_8]:[_8,k8];for(const t of o){const o=t(e,i);if(o)return o}return e.map(t=>T8("p",f8(t))).filter(Boolean)}const S8="table, ul, ol, dl, h1, h2, h3, h4, h5, h6, hr, p, div, blockquote, figure, pre, section, article, img, iframe";function W8(t){const e=[],i=t.ownerDocument.createElement("p"),o=()=>{const t=T8("p",f8(i));t&&e.push(t),i.innerHTML=""};return Array.from(t.childNodes).forEach(t=>{!function(t){ | |
| 6292 | -return 1===t.nodeType&&(t.matches(S8)||!!t.querySelector(S8))}(t)?i.appendChild(t.cloneNode(!0)):(o(),e.push(...t.matches(S8)?U8(t):W8(t)))}),o(),e}function U8(t){const{tagName:e}=t;return m8.includes(e)?[T8(e.toLowerCase(),y8(f8(t)))].filter(Boolean):"IMG"===e?[H8(t)].filter(Boolean):"UL"===e||"OL"===e?M8(t):"TABLE"===e?[R8(t)].flat().filter(Boolean):"HR"===e?[g8([["ablocks/divider"],["core/separator"]])].filter(Boolean):"BLOCKQUOTE"===e||"SECTION"===e||"ARTICLE"===e||"FIGURE"===e?P8(t):t.querySelector(S8)?W8(t):function(t){return!t.querySelector("img, hr, br, iframe")&&""===(t.textContent||"").replace(/\u00a0/g," ").trim()}(t)?[]:[T8("p",f8(t))].filter(Boolean)}function P8(t){const e=[];let i="";const o=()=>{const t=i.replace(/\u00a0/g," ").trim();if(i="",t){const i=T8("p",t);i&&e.push(i)}};return Array.from(t.childNodes).forEach(t=>{3!==t.nodeType?1===t.nodeType&&(o(),e.push(...U8(t))):i+=t.textContent}),o(),e} | |
| 6293 | -const j8="ablocks-google-docs-paste",w8=["styles","globalClasses","alignment","customCSS"],z8=new WeakSet;function C8(t){return!!t&&t.name===p8&&!(t.attributes?.content||"").trim()}async function A8(t){const e=(0,r.dispatch)("core/notices"),i=function(t){const e=t.ownerDocument;return s8.forEach(e=>{t.querySelectorAll(e).forEach(t=>t.remove())}),t.querySelectorAll("hr").forEach(t=>{const e=t.getAttribute("style")||"";("none"===b8(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 r8(t);t.setAttribute("href",e)}if(function(t){const e=t.getAttribute("style")||"";if(!e)return[] | |
| 6294 | -;const i=[],o=b8(e,"font-weight");("bold"===o||"bolder"===o||parseInt(o,10)>=600)&&i.push("strong"),"italic"===b8(e,"font-style")&&i.push("em");const a=b8(e,"text-decoration")+" "+b8(e,"text-decoration-line");a.includes("underline")&&!t.closest("a")&&i.push("u"),a.includes("line-through")&&i.push("s");const l=b8(e,"vertical-align");"super"===l?i.push("sup"):"sub"===l&&i.push("sub");const n=b8(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 r8(t);if("B"===t.tagName&&"normal"===b8(t.getAttribute("style")||"","font-weight"))return void r8(t);const e=n8[t.tagName]||[];Array.from(t.attributes).forEach(i=>{e.includes(i.name.toLowerCase())||t.removeAttribute(i.name)})}),t.querySelectorAll("li > p").forEach(r8), | |
| 6295 | -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}(l8(t)),a=i.querySelectorAll("img").length;a&&e?.createInfoNotice((0,z.sprintf)(/* translators: %d: number of images being imported. */ /* translators: %d: number of images being imported. */ | |
| 6296 | -(0,z._n)("Importing %d image from Google Docs…","Importing %d images from Google Docs…",a,"ablocks"),a),{id:j8,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 u8(t,e,o)&&l++}})),{total:i.length,imported:l}}(i,(0,r.select)("core/editor")?.getCurrentPostId?.()||0),n=function(t){return P8(t)}(i);if(e?.removeNotice(j8),!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)||C8(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, | |
| 6297 | -r.select)("core/block-editor").getBlock(s.clientId);C8(t)&&n[0]?.name===p8&&w8.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,z.sprintf)(/* translators: 1: images imported, 2: images found. */ /* translators: 1: images imported, 2: images found. */ | |
| 6298 | -(0,z.__)("Pasted from Google Docs. %1$d of %2$d images could be imported — the rest were skipped.","ablocks"),l.imported,l.total),{id:j8,type:"snackbar"})}function L8(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(a8)})(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,l8(i))||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),A8(i).catch(()=>{(0,r.dispatch)("core/notices")?.createErrorNotice((0,z.__)("The Google Docs content could not be pasted.","ablocks"),{id:j8,type:"snackbar"})})))}function D8(t){ | |
| 6299 | -t&&!z8.has(t)&&(z8.add(t),t.addEventListener("paste",L8,!0))}o8()(()=>{window.self===window.top&&(D8(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&D8(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const N8=window.wp.dom,I8="ablocks/atomic-text",V8=["styles","globalClasses","alignment","customCSS"],O8=/<!--\s*wp:/,Y8=new WeakSet;function X8(t){if(t.defaultPrevented||!t.clipboardData)return;const e=(0,r.select)("core/block-editor");if(!e||!(0,o.getBlockType)(I8))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)!==I8)return;const l=i?.ownerDocument;if(!l||!function(t,e){const i=t.getElementById(`block-${e}`);return!!i?.isContentEditable&&(0,N8.isEntirelySelected)(i) | |
| 6300 | -}(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(O8.test(n)||O8.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={};V8.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)(I8,{...e,tag:"p",content:t.attributes?.content||""}):"core/heading"===t.name?(0,o.createBlock)(I8,{...e,tag:`h${t.attributes?.level||2}`,content:t.attributes?.content||""}):t}(t,p));m.some(t=>t.name===I8)&&(t.preventDefault(),t.stopImmediatePropagation(),1!==m.length||m[0].name!==I8?u(a,m,m.length-1,-1):d(a,{content:m[0].attributes.content, | |
| 6301 | -tag:m[0].attributes.tag}))}function B8(t){t&&!Y8.has(t)&&(Y8.add(t),t.addEventListener("paste",X8,!0))}o8()(()=>{window.self===window.top&&(B8(document),function(){const t=()=>{document.querySelectorAll('iframe[name="editor-canvas"]').forEach(t=>{try{const e=t.contentDocument;e&&"loading"!==e.readyState&&B8(e)}catch(t){}})};t(),window.setInterval(t,1e3)}())});const E8=(0,eH.createHigherOrderComponent)(t=>{function e(e){const{clientId:i,setAttributes:o}=e,a=(0,r.useRegistry)(),{__unstableMarkNextChangeAsNotPersistent:l}=(0,r.useDispatch)(C.store),n=(0,Ot.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(C.store).getBlockAttributes(i),i)&&l(),o(t)},[a,i,o,l]);return(0,L.jsx)(t,{...e,setAttributes:n})}return i=>i.name?.startsWith("ablocks/")?(0,L.jsx)(e,{...i}):(0,L.jsx)(t,{...i}) | |
| 6302 | -},"withQuietHousekeeping");(0,b.addFilter)("editor.BlockEdit","ablocks/block-housekeeping/edit",E8)},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, | |
| 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, | |
| 6303 | 6353 | 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, |
| 6304 | 6354 | 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, |
| 6305 | 6355 | 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"}, |
| 6306 | 6356 | 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:{ |
| @@ -6359,43 +6409,43 @@ | ||
| 6359 | 6409 | a.D$)("filterButtonTypography",!0),...(0,l.D$)("filterButtonBorder",!0),...(0,l.D$)("activeClassBorder",!0),...(0,n.D$)("filterButtonMargin",!0),...(0,n.D$)("filterButtonPadding",!0),...(0,n.D$)("searchMenuMargin",!0),...(0,n.D$)("searchMenuPadding",!0),...(0,l.D$)("searchMenuBorder",!0),...(0,a.D$)("moreButtonTypography",!0),...(0,n.D$)("moreButtonPadding",!0),...(0,l.D$)("moreButtonBorder",!0),...(0,b.D$)("moreButtonboxShadow")}},14745(t,e,i){"use strict";i.d(e,{A:()=>c,n:()=>b});var o=i(43271),a=i(21993),l=i(2489),n=i(74411),s=i(16867),r=i(88554);const b=(0,i(42377).D$)({attributeName:"highlightStrokeWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isAnimated:{type:"boolean",default:!1},heading:{type:"string",source:"html",selector:".ablocks-heading-text"},headingTag:{type:"string",default:"h2"},textColor:{type:"string",default:"", |
| 6360 | 6410 | copyStyle:!0},titleSource:{type:"string",default:""},animationType:{type:"string",default:"highlighted"},animationStyle:{type:"string",default:"highlighter-circle"},startingText:{type:"string",default:""},animatedText:{type:"string",default:"Animated"},endingText:{type:"string",default:""},highlightColor:{type:"string",default:"#ff000e"},highlightDuration:{type:"number",default:2e3},isInfiniteLoop:{type:"boolean",default:!0},highlightDelay:{type:"number",default:1e3},animatedTextColor:{type:"string",default:"",copyStyle:!0},...b,...(0,a.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("typography",!0),...(0,n.D$)("textShadow"),...(0,r.D$)("link"),...(0,s.D$)("textStroke",!0),...o.Ay}},60980(t,e,i){"use strict";i.d(e,{Ay:()=>c,cW:()=>b,eK:()=>r,gR:()=>s});var o=i(43271),a=i(42377),l=i(77168);const n=(0,a.D$)({attributeName:"sliderPosition",isResponsive:!1,defaultValue:50,copyStyle:!0}),s=(0,a.D$)({attributeName:"sliderBarSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:4, |
| 6361 | 6411 | copyStyle:!0}),r=(0,a.D$)({attributeName:"sliderIconSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:50,copyStyle:!0}),b=(0,a.D$)({attributeName:"sliderIconBorderSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:2,copyStyle:!0}),c={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},beforeImage:{type:"string",default:""},afterImage:{type:"string",default:""},...n,sliderOrientation:{type:"string",default:"horizontal",copyStyle:!0},showLabels:{type:"boolean",default:!1,copyStyle:!0},labelPosition:{type:"number",default:45,copyStyle:!0},labelBgColor:{type:"string",default:"rgba(0, 0, 0, 0.5)",copyStyle:!0},labelTextColor:{type:"string",default:"white",copyStyle:!0},labelWithOverlay:{type:"boolean",default:!1,copyStyle:!0},labelOverlayColor:{type:"string",default:"rgba(0, 0, 0, 0.5)",copyStyle:!0},...(0,l.D$)("labelBorder",!0),labelOnHover:{type:"boolean",default:!1,copyStyle:!0},beforeImageLabel:{type:"string",default:"Before"}, |
| 6362 | 6412 | afterImageLabel:{type:"string",default:"After"},showHandle:{type:"boolean",default:!0,copyStyle:!0},moveOnHover:{type:"boolean",default:!1,copyStyle:!0},...s,...r,...b,handleColor:{type:"string",default:"white",copyStyle:!0},swapImages:{type:"boolean",default:!1},...o.Ay}},4851(t,e,i){"use strict";i.d(e,{A:()=>n,Q:()=>l});var o=i(80241),a=i(77168);const l=(0,i(42377).D$)({attributeName:"contentWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:"",hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),n={block_id:{type:"string"},hotspotId:{type:"number",default:0},backgroundColor:{type:"string",default:"",copyStyle:!0},...l,...(0,o.D$)("contentPadding",!0),...(0,a.D$)("contentBorder",!0)}},50782(t,e,i){"use strict";i.d(e,{A:()=>c,P:()=>b});var o=i(43271),a=i(80241),l=i(77168),n=i(42377),s=i(80554),r=i(27723);const b=(0,n.D$)({attributeName:"childWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:200,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c={block_id:{ |
| 6363 | -type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:{}},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinColorEffect:{type:"string",default:"#d9d9d9",copyStyle:!0},pinHoverColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinSize:{type:"number",default:15,copyStyle:!0},pinHoverSize:{type:"number",default:1.5,copyStyle:!0},lists:{type:"array",default:[{id:0,text:(0,r.__)("Your title here 0","ablocks"),xAxis:35,yAxis:32,xAxisTab:30,yAxisTab:28,xAxisMob:22,yAxisMob:16,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite",copyStyle:!0},contentAnimation:{type:"string",default:"ablocks-hotspot-fadeIn",copyStyle:!0},contentTrigger:{type:"string",default:"onClick",copyStyle:!0},contentPosition:{ | |
| 6364 | -type:"string",default:"bottom",copyStyle:!0},backgroundColor:{type:"string",default:"white",copyStyle:!0},...b,...(0,a.D$)("commonChildPadding",!0),...(0,l.D$)("commonChildBorder",!0),...(0,s.D$)("commonBoxShadow",!0),...o.Ay}},11276(t,e,i){"use strict";i.d(e,{Ay:()=>f,IV:()=>b,aY:()=>g,ke:()=>u,md:()=>p,oF:()=>d,yy:()=>h,zE:()=>c});var o=i(43271),a=i(77168),l=i(21993),n=i(42314),s=i(42377),r=i(88554);const b=(0,s.D$)({attributeName:"iconFontSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:36,defaultValueTablet:24,defaultValueMobile:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c=(0,s.D$)({attributeName:"scrollHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:200,copyStyle:!0}),d=(0,s.D$)({attributeName:"scrollWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0,s.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),p=(0,s.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0 | |
| 6365 | -}),m=(0,s.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),h=(0,s.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),g={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},f={block_id:{type:"string",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imageDataAttribute:{type:"object",default:{}},imgSize:{type:"object",default:{value:"large",valueTablet:"", | |
| 6366 | -valueMobile:""},copyStyle:!0},...c,...d,...u,...p,...b,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},widthHeightWidget:{type:"object",default:g,copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},position:{type:"string",default:"below",copyStyle:!0},imgAltText:{type:"string",default:""},imgTitle:{type:"string",default:""},transitionTime:{type:"number",default:3},showNotice:{type:"boolean",default:!1},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},...m,...h,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,n.D$)("cssFilter"),...(0,n.D$)("cssHoverFilter"),...(0,a.D$)("border",!0),...(0,r.D$)("link"),...o.Ay}},1168(t,e,i){"use strict";i.d(e,{Ay:()=>g,aY:()=>h,ke:()=>d,md:()=>u,yy:()=>m}) | |
| 6367 | -;var o=i(43271),a=i(77168),l=i(21993),n=i(80241),s=i(2489),r=i(42314),b=i(80554),c=i(42377);const d=(0,c.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),u=(0,c.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0}),p=(0,c.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),m=(0,c.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),h={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string", | |
| 6368 | -source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},imageDataAttribute:{type:"object",default:{}},...d,...u,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},widthHeightWidget:{type:"object",default:h,copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below",copyStyle:!0},caption:{type:"string",default:""},captionBackground:{type:"string",default:"",copyStyle:!0},captionColor:{type:"string",default:"",copyStyle:!0},imgLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"",linkClass:""}},imgAltText:{type:"string",default:""},onHoverImg:{type:"string",default:"static", | |
| 6369 | -copyStyle:!0},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},...p,...m,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("captionAlignment",!0,{value:"left"}),...(0,r.D$)("cssFilter"),...(0,r.D$)("cssHoverFilter"),...(0,b.D$)("boxShadow"),...(0,s.D$)("captionTypography",!0),...(0,l.D$)("captionPosition",!0),...(0,n.D$)("captionPadding",!0),...(0,a.D$)("captionBorder",!0),...(0,a.D$)("border",!0),...o.Ay}},91353(t,e,i){"use strict";i.d(e,{c8:()=>k,Ay:()=>v,AZ:()=>x});var o=i(43271),a=i(21993),l=i(42377),n=i(2489),s=i(74411),r=i(80241),b=i(77168),c=i(27723);const d={badgeText:{type:"string",default:(0,c.__)("Featured","ablocks")},badgeSize:{type:"string",default:"xs",copyStyle:!0},badgeTextColor:{type:"string",default:"#13191B",copyStyle:!0},badgeTextColorH:{type:"string",default:"",copyStyle:!0},badgeBackground:{type:"string",default:"#DDDDDF",copyStyle:!0},badgeBackgroundH:{type:"string",default:"",copyStyle:!0},badgeTransition:{type:"number", | |
| 6370 | -default:"",copyStyle:!0},...(0,a.D$)("badgePosition",!0,{value:"top-right",valueTablet:"top-right",valueMobile:"top-right"}),...(0,a.D$)("badgeAlignment",!0,{value:"center"}),...(0,n.D$)("badgeTypography",!0,{fontFamily:"Roboto",weight:"400",fontSize:"12"}),...(0,s.D$)("badgeTextShadow"),...(0,r.D$)("badgePadding",!0),...(0,b.D$)("badgeBorder",!0)};var u=i(68761),p=i(88554);const m={btnText:{type:"string",default:(0,c.__)("Learn More","ablocks")},btnSize:{type:"string",default:"sm",copyStyle:!0},btnTextColor:{type:"string",default:"#FAFAFA",copyStyle:!0},btnTextColorH:{type:"string",default:"",copyStyle:!0},btnBackground:{type:"string",default:"#13191B",copyStyle:!0},btnBackgroundH:{type:"string",default:"",copyStyle:!0},btnTransition:{type:"number",default:"",copyStyle:!0},btnIconPosition:{type:"string",default:"right",copyStyle:!0},btnIconSpace:{type:"number",default:10,copyStyle:!0},btnShowIcon:{type:"boolean",default:!0,copyStyle:!0},...(0,u.D$)("btnIcon",{size:20,color:"#FAFAFA", | |
| 6371 | -path:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",viewBox:"0 0 448 512",className:"fas fa-arrow-right",hasNoSelectorOrSource:!0}),...(0,p.D$)("btnLink"),...(0,a.D$)("btnAlignment",!0,{value:"center"}),...(0,n.D$)("btnTypography",!0),...(0,s.D$)("btnTextShadow"),...(0,r.D$)("btnPadding",!0),...(0,r.D$)("btnMargin",!0),...(0,b.D$)("btnBorder",!0)};var h=i(16867);const g={heading:{type:"string",source:"html",selector:".ablocks-info-box-heading",default:(0,c.__)("Your Info Box Title","ablocks")},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B",copyStyle:!0},headingTextColorHover:{type:"string",default:"",copyStyle:!0},headingTransition:{type:"number",default:"",copyStyle:!0},...(0,n.D$)("headingTypography",!0,{fontFamily:"Roboto",weight:"600" | |
| 6372 | -}),...(0,r.D$)("headingMargin",!0),...(0,s.D$)("headingTextShadow"),...(0,h.D$)("headingTextStroke",!0)},f={iconPrimaryColorH:{type:"string",default:"",copyStyle:!0},iconBackgroundColorH:{type:"string",default:"",copyStyle:!0},iconTransition:{type:"number",default:"",copyStyle:!0},...(0,u.D$)("icon",{color:"#000000",hasNoSelectorOrSource:!0}),...(0,r.D$)("iconMargin",!0),...(0,p.D$)("iconLink"),...(0,a.D$)("iconAlignment",!0)},y={des:{type:"string",source:"html",selector:".ablocks-info-box-text",default:(0,c.__)("Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!","ablocks")},desDropCaps:{type:"boolean",default:!1,copyStyle:!0},desDropCapsTextColor:{type:"string",default:"#0f2aff",copyStyle:!0},desGraphSize:{type:"string",default:"sm",copyStyle:!0},desTextColor:{type:"string",default:"#595959",copyStyle:!0},desTextColorHover:{type:"string",default:"",copyStyle:!0},desTransition:{type:"number",default:"", | |
| 6373 | -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",copyStyle:!0}),k=(0,l.D$)({attributeName:"contentGap",attributeObjectKey:"value",isResponsive:!0, | |
| 6374 | -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,CB:()=>s,ZO:()=>r});var o=i(68761),a=i(42377),l=i(2489),n=i(80241);const s=(0,a.D$)({ | |
| 6375 | -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:{type:"string",default:"right",copyStyle:!0},...r,...s,...(0,o.D$)("starIcon",{ | |
| 6376 | -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",isResponsive:!0,defaultValue:8,defaultValueTablet:8,defaultValueMobile:8, | |
| 6377 | -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:[{id:0,text:"",link:{linkDestination:"",href:"",lightbox:"",linkTarget:"", | |
| 6378 | -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,{value:"center"}),...(0,n.D$)("horizontalAlignment",!0,{ | |
| 6379 | -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:{type:"string",default:"Logout"},logInLabel:{type:"string", | |
| 6380 | -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,taxQuery:null,parents:[],format:[]}},tagName:{type:"string", | |
| 6381 | -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,s.D$)("typography",!0),...c,...o.Ay,...(0, | |
| 6382 | -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",default:"#13191B",copyStyle:!0},loadMoreButtonTransition:{ | |
| 6383 | -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";i.d(e,{AK:()=>r,Ay:()=>b,VZ:()=>s}) | |
| 6384 | -;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,n.D$)("icon",{ | |
| 6385 | -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});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)=>{ | |
| 6386 | -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",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 | |
| 6387 | -}),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:"",copyStyle:!0},menuItemAlignTablet:{type:"string",default:"",copyStyle:!0},menuItemAlignMobile:{type:"string", | |
| 6388 | -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,unitDefaultValue:"px"}),c=(0,s.D$)({attributeName:"hamburgerHeight",isResponsive:!1,defaultValue:3, | |
| 6389 | -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:"string",default:"left",copyStyle:!0},...(0,o.D$)("padding",!0),...(0,n.D$)("boxShadow",!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},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", | |
| 6390 | -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,o.D$)("menuItemPadding",!0),...(0,o.D$)("menuItemMargin",!0),...(0,l.D$)("menuItemBorder",!0),...(0,l.D$)("hamburgerBorder",!0),...(0, | |
| 6391 | -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",isResponsive:!1,defaultValue:5,hasUnit:!1,copyStyle:!0}),g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""}, | |
| 6392 | -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,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, | |
| 6393 | -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:[]},pageLink:{type:"boolean",default:!1},lists:{type:"array",default:[{id:0,text:"Stay updated with the latest trends!",link:{ | |
| 6394 | -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:"",copyStyle:!0},tickerBgColor:{type:"string",default:"#E5E5E6",copyStyle:!0},tickerType:{type:"string",default:"marquee"},...b, | |
| 6395 | -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});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, | |
| 6396 | -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},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", | |
| 6397 | -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", | |
| 6413 | +type:"string",default:""},blockVersion:{type:"number",default:""},backgroundImage:{type:"string",default:""},activeIndex:{type:"number",default:0},imageSizes:{type:"object",default:{}},selectedImageSize:{type:"string",default:""},pinColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinColorEffect:{type:"string",default:"#d9d9d9",copyStyle:!0},pinHoverColor:{type:"string",default:"#d9d9d9",copyStyle:!0},pinSize:{type:"number",default:15,copyStyle:!0},pinHoverSize:{type:"number",default:1.5,copyStyle:!0},pinIconColor:{type:"string",default:"#ffffff",copyStyle:!0},pinIconSize:{type:"number",default:60,copyStyle:!0},lists:{type:"array",default:[{id:0,text:(0,r.__)("Your title here 0","ablocks"),xAxis:35,yAxis:32,xAxisTab:30,yAxisTab:28,xAxisMob:22,yAxisMob:16,isOpen:!1,pinColor:"",pinColorEffect:"",pinHoverColor:"",pinSize:"",pinHoverSize:""}]},animationType:{type:"string",default:"ablocks-hotspot-puls-effect 1s ease infinite",copyStyle:!0},contentAnimation:{type:"string", | |
| 6414 | +default:"ablocks-hotspot-fadeIn",copyStyle:!0},contentTrigger:{type:"string",default:"onClick",copyStyle:!0},contentPosition:{type:"string",default:"bottom",copyStyle:!0},backgroundColor:{type:"string",default:"white",copyStyle:!0},...b,...(0,a.D$)("commonChildPadding",!0),...(0,l.D$)("commonChildBorder",!0),...(0,s.D$)("commonBoxShadow",!0),...o.Ay}},11276(t,e,i){"use strict";i.d(e,{Ay:()=>f,IV:()=>b,aY:()=>g,ke:()=>u,md:()=>p,oF:()=>d,yy:()=>h,zE:()=>c});var o=i(43271),a=i(77168),l=i(21993),n=i(42314),s=i(42377),r=i(88554);const b=(0,s.D$)({attributeName:"iconFontSize",attributeObjectKey:"value",isResponsive:!0,defaultValue:36,defaultValueTablet:24,defaultValueMobile:16,hasUnit:!0,unitDefaultValue:"px",copyStyle:!0}),c=(0,s.D$)({attributeName:"scrollHeight",attributeObjectKey:"value",isResponsive:!0,defaultValue:200,copyStyle:!0}),d=(0,s.D$)({attributeName:"scrollWidth",attributeObjectKey:"value",isResponsive:!0,defaultValue:100,hasUnit:!0,unitDefaultValue:"%",copyStyle:!0}),u=(0, | |
| 6415 | +s.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),p=(0,s.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0}),m=(0,s.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),h=(0,s.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),g={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},f={block_id:{type:"string",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string",source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile", | |
| 6416 | +attribute:"src"},imageDataAttribute:{type:"object",default:{}},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},...c,...d,...u,...p,...b,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},imageScrollOption:{type:"object",default:{value:"mouse-scroll"}},widthHeightWidget:{type:"object",default:g,copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},position:{type:"string",default:"below",copyStyle:!0},imgAltText:{type:"string",default:""},imgTitle:{type:"string",default:""},transitionTime:{type:"number",default:3},showNotice:{type:"boolean",default:!1},showOverlay:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!1},overlayColor:{type:"string",default:"#0202024C"},iconColor:{type:"string",default:""},...m,...h,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,n.D$)("cssFilter"),...(0,n.D$)("cssHoverFilter"),...(0,a.D$)("border",!0), | |
| 6417 | +...(0,r.D$)("link"),...o.Ay}},1168(t,e,i){"use strict";i.d(e,{Ay:()=>g,aY:()=>h,ke:()=>d,md:()=>u,yy:()=>m});var o=i(43271),a=i(77168),l=i(21993),n=i(80241),s=i(2489),r=i(42314),b=i(80554),c=i(42377);const d=(0,c.D$)({attributeName:"opacity",defaultValue:1,copyStyle:!0}),u=(0,c.D$)({attributeName:"opacityH",defaultValue:"",copyStyle:!0}),p=(0,c.D$)({attributeName:"transitionDuration",defaultValue:.5,copyStyle:!0}),m=(0,c.D$)({attributeName:"filterTransitionDuration",defaultValue:.5,copyStyle:!0}),h={imgNaturalWidth:"",imgNaturalWidthTablet:"",imgNaturalWidthMobile:"",imgNaturalHeight:"",imgNaturalHeightTablet:"",imgNaturalHeightMobile:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:"",customHeight:!1,customHeightTablet:!1,customHeightMobile:!1},g={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},imgId:{type:"number",default:""},imgIdTablet:{type:"number",default:""},imgIdMobile:{type:"number",default:""},imgUrl:{type:"string", | |
| 6418 | +source:"attribute",selector:".ablocks-image",attribute:"srcset"},imgUrlTablet:{type:"string",source:"attribute",selector:".ablocks-image-tablet",attribute:"srcset"},imgUrlMobile:{type:"string",source:"attribute",selector:".ablocks-image-mobile",attribute:"src"},imgSize:{type:"object",default:{value:"large",valueTablet:"",valueMobile:""},copyStyle:!0},imageDataAttribute:{type:"object",default:{}},...d,...u,aspectRatio:{type:"object",default:{value:"original",valueTablet:"",valueMobile:""},copyStyle:!0},widthHeightWidget:{type:"object",default:h,copyStyle:!0},objectFit:{type:"object",default:{value:"default",valueTablet:"",valueMobile:""},copyStyle:!0},imgCaption:{type:"boolean",default:!1},position:{type:"string",default:"below",copyStyle:!0},caption:{type:"string",default:""},captionBackground:{type:"string",default:"",copyStyle:!0},captionColor:{type:"string",default:"",copyStyle:!0},imgLink:{type:"object",default:{linkDestination:"",href:"",lightbox:"",linkTarget:"",rel:"", | |
| 6419 | +linkClass:""}},imgAltText:{type:"string",default:""},onHoverImg:{type:"string",default:"static",copyStyle:!0},imgTitle:{type:"string",default:""},showNotice:{type:"boolean",default:!1},...p,...m,...(0,l.D$)("alignment",!0,{value:"left"}),...(0,l.D$)("captionAlignment",!0,{value:"left"}),...(0,r.D$)("cssFilter"),...(0,r.D$)("cssHoverFilter"),...(0,b.D$)("boxShadow"),...(0,s.D$)("captionTypography",!0),...(0,l.D$)("captionPosition",!0),...(0,n.D$)("captionPadding",!0),...(0,a.D$)("captionBorder",!0),...(0,a.D$)("border",!0),...o.Ay}},91353(t,e,i){"use strict";i.d(e,{c8:()=>k,Ay:()=>v,AZ:()=>x});var o=i(43271),a=i(21993),l=i(42377),n=i(2489),s=i(74411),r=i(80241),b=i(77168),c=i(27723);const d={badgeText:{type:"string",default:(0,c.__)("Featured","ablocks")},badgeSize:{type:"string",default:"xs",copyStyle:!0},badgeTextColor:{type:"string",default:"#13191B",copyStyle:!0},badgeTextColorH:{type:"string",default:"",copyStyle:!0},badgeBackground:{type:"string",default:"#DDDDDF",copyStyle:!0}, | |
| 6420 | +badgeBackgroundH:{type:"string",default:"",copyStyle:!0},badgeTransition:{type:"number",default:"",copyStyle:!0},...(0,a.D$)("badgePosition",!0,{value:"top-right",valueTablet:"top-right",valueMobile:"top-right"}),...(0,a.D$)("badgeAlignment",!0,{value:"center"}),...(0,n.D$)("badgeTypography",!0,{fontFamily:"Roboto",weight:"400",fontSize:"12"}),...(0,s.D$)("badgeTextShadow"),...(0,r.D$)("badgePadding",!0),...(0,b.D$)("badgeBorder",!0)};var u=i(68761),p=i(88554);const m={btnText:{type:"string",default:(0,c.__)("Learn More","ablocks")},btnSize:{type:"string",default:"sm",copyStyle:!0},btnTextColor:{type:"string",default:"#FAFAFA",copyStyle:!0},btnTextColorH:{type:"string",default:"",copyStyle:!0},btnBackground:{type:"string",default:"#13191B",copyStyle:!0},btnBackgroundH:{type:"string",default:"",copyStyle:!0},btnTransition:{type:"number",default:"",copyStyle:!0},btnIconPosition:{type:"string",default:"right",copyStyle:!0},btnIconSpace:{type:"number",default:10,copyStyle:!0},btnShowIcon:{ | |
| 6421 | +type:"boolean",default:!0,copyStyle:!0},...(0,u.D$)("btnIcon",{size:20,color:"#FAFAFA",path:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",viewBox:"0 0 448 512",className:"fas fa-arrow-right",hasNoSelectorOrSource:!0}),...(0,p.D$)("btnLink"),...(0,a.D$)("btnAlignment",!0,{value:"center"}),...(0,n.D$)("btnTypography",!0),...(0,s.D$)("btnTextShadow"),...(0,r.D$)("btnPadding",!0),...(0,r.D$)("btnMargin",!0),...(0,b.D$)("btnBorder",!0)};var h=i(16867);const g={heading:{type:"string",source:"html",selector:".ablocks-info-box-heading",default:(0,c.__)("Your Info Box Title","ablocks")},headingTag:{type:"string",default:"h2"},headingTextColor:{type:"string",default:"#13191B",copyStyle:!0},headingTextColorHover:{type:"string",default:"",copyStyle:!0},headingTransition:{type:"number", | |
| 6422 | +default:"",copyStyle:!0},...(0,n.D$)("headingTypography",!0,{fontFamily:"Roboto",weight:"600"}),...(0,r.D$)("headingMargin",!0),...(0,s.D$)("headingTextShadow"),...(0,h.D$)("headingTextStroke",!0)},f={iconPrimaryColorH:{type:"string",default:"",copyStyle:!0},iconBackgroundColorH:{type:"string",default:"",copyStyle:!0},iconTransition:{type:"number",default:"",copyStyle:!0},...(0,u.D$)("icon",{color:"#000000",hasNoSelectorOrSource:!0}),...(0,r.D$)("iconMargin",!0),...(0,p.D$)("iconLink"),...(0,a.D$)("iconAlignment",!0)},y={des:{type:"string",source:"html",selector:".ablocks-info-box-text",default:(0,c.__)("Showcase details with style and precision! Customize captivating visuals and text for an engaging, attention-grabbing display!","ablocks")},desDropCaps:{type:"boolean",default:!1,copyStyle:!0},desDropCapsTextColor:{type:"string",default:"#0f2aff",copyStyle:!0},desGraphSize:{type:"string",default:"sm",copyStyle:!0},desTextColor:{type:"string",default:"#595959",copyStyle:!0}, | |
| 6423 | +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 | +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 | +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 | +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", | |
| 6398 | 6448 | 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$)({ |
| 6399 | 6449 | 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", |
| 6400 | 6450 | 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) |
| 6401 | 6451 | ;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", |
| @@ -6448,46 +6498,45 @@ | ||
| 6448 | 6498 | l.D$)("taxonomyTitleTypography",!0,{weight:"500"}),...(0,l.D$)("postCountTypography",!0,{weight:"500"}),...c,...d,...(0,b.D$)("cardBoxShadow"),...o.Ay,...(0,s.D$)("cardBorder",!0)}},62055(t,e,i){"use strict";i.d(e,{A6:()=>m,Ay:()=>h,rQ:()=>u,vS:()=>p,xe:()=>d});var o=i(43271),a=i(21993),l=i(2489),n=i(42377),s=i(80241),r=i(77168),b=i(90198),c=i(27723);const d=(0,n.D$)({attributeName:"space",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,copyStyle:!0}),u=(0,n.D$)({attributeName:"gap",attributeObjectKey:"value",isResponsive:!0,defaultValue:10,copyStyle:!0}),p=(0,n.D$)({attributeName:"toggleWidth",isResponsive:!1,defaultValue:60,copyStyle:!0}),m=(0,n.D$)({attributeName:"toggleHeight",isResponsive:!1,defaultValue:28,copyStyle:!0}),h={block_id:{type:"string",default:""},blockVersion:{type:"number",default:""},isSwitch:{type:"boolean",default:!1,copyStyle:!0},leftLabel:{type:"string",default:(0,c.__)("Monthly","ablocks")},rightLabel:{type:"string",default:(0, |
| 6449 | 6499 | c.__)("Yearly","ablocks")},...u,toggleBarBgColor:{type:"string",default:"",copyStyle:!0},...p,...m,labelNormalColor:{type:"string",default:"black",copyStyle:!0},labelActiveColor:{type:"string",default:"#562DD4",copyStyle:!0},toggleNormalColor:{type:"string",default:"white",copyStyle:!0},toggleNormalBgColor:{type:"string",default:"#562DD4",copyStyle:!0},toggleActiveColor:{type:"string",default:"white",copyStyle:!0},toggleActiveBgColor:{type:"string",default:"#d4552d",copyStyle:!0},...(0,a.D$)("alignment",!0,{value:"center"}),...(0,b.D$)("toggleDirection",!1,{value:"row"}),...(0,b.D$)("labelColorState",!1,{value:"normal"}),...(0,b.D$)("toggleColorState",!1,{value:"normal"}),...(0,l.D$)("labelTypography",!0),...d,...(0,s.D$)("toggleBarPadding",!0),...(0,r.D$)("toggleBarBorder",!0),...o.Ay}},72649(t,e,i){"use strict";i.d(e,{U:()=>n,Z:()=>l});var o=i(46942),a=i.n(o);const l=({name:t,blockId:e,_hide_on_desktop:i,_hide_on_tablet:o,_hide_on_mobile:l,className:n})=>{ |
| 6450 | 6500 | const s=`ablocks-block-${e} ablocks-block--${t.split("/")[1]}`;return a()("ablocks-block",s,n,{"ablocks-hide-on-desktop":i,"ablocks-hide-on-tablet":o,"ablocks-hide-on-mobile":l})},n=(t,e)=>{const i=t||0,o=e||"";let a;return a=i&&o?`#t=${i},${o}`:i?`#t=${i}`:"",a}},17618(t,e,i){"use strict";i.d(e,{A:()=>u});var o=i(51609),a=i.n(o),l=i(47143),n=i(74997),s=i(46942),r=i.n(s),b=i(10790);let c,d;function u(t){const{name:e,blockId:i,overflow:o}=t,s=!(0,l.select)("core/block-editor").getBlockRootClientId(i),u="ablocks/container"===e;return s&&(c=()=>{const t=(0,l.select)("core/block-editor").getBlockIndex(i);(0,l.dispatch)("core/block-editor").insertBlock((0,n.createBlock)("ablocks/container"),t)},d=()=>(0,l.dispatch)("core/block-editor").removeBlock(i)),(0,b.jsx)(a().Fragment,{children:(0,b.jsx)("div",{className:r()("ablocks-editor-block-control-wrap",{"ablocks-editor-block-control-wrap--root-block":s,"ablocks-editor-block-control-wrap--container-block":u, |
| 6451 | 6501 | "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}) |
| 6452 | -;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:U}=a;let P=(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:{}}) | |
| 6453 | -;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,...P}),_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]) | |
| 6502 | +;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 | +;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]) | |
| 6454 | 6504 | ;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,{ |
| 6455 | -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:U}),"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, | |
| 6456 | -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$:()=>a});const o=(t=!1,e)=>t?{value:"default",valueTablet:"",valueMobile:"",...e}:e.value??"default",a=(t,e=!1,i={})=>e?{[t]:{type:"object",default:o(e,i),copyStyle:!0}}:{[t]:{type:"string",default:o(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,introByline:l().bool,isBackground:l().bool,className:l().string};function b(t){ | |
| 6457 | -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}b.propTypes=r},86816(t,e,i){"use strict";i.d(e,{A:()=>b}),i(51609) | |
| 6458 | -;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",{width:"100%",height:"100%",src:h,frameBorder:"0", | |
| 6459 | -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$:()=>l,gh:()=>o,qD:()=>n,tJ:()=>a});const o=[{label:"left",value:"left",icon:"left"},{label:"center",value:"center",icon:"center"},{label:"right",value:"right",icon:"right"},{label:"justify",value:"justify",icon:"justify"}],a=(t=!1,e)=>t?{value:"default",valueTablet:"",valueMobile:"",...e}:{value:"default",...e},l=(t,e=!1,i={})=>({[t]:{type:"object",default:a(e,i),copyStyle:!0}}),n=(t,e="",i="")=>{const o={...a(!!i),...t},l={};return""!==o["value"+i]&&(l[`${e}`]=o["value"+i]),l}},57654(t,e,i){"use strict";i.d(e,{B2:()=>l,D$:()=>r,a9:()=>c,qD:()=>b,tJ:()=>s,yP:()=>n});var o=i(36168),a=i(49315);const l=[{label:"None",value:"none",icon:"disable-light"},{label:"Color",value:"color",icon:"color"},{label:"Image", | |
| 6460 | -value:"image",icon:"image"}],n=[{label:"None",value:"none",icon:"disable-light"},{label:"Color",value:"color",icon:"color"},{label:"Image",value:"image",icon:"image"},{label:"Video",value:"video",icon:"video"}],s=(t=!1)=>t?{backgroundType:"",backgroundTypeH:"",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"",imgYPosition:"",imgYPositionTablet:"",imgYPositionMobile:"",imgAttachment:"",imgRepeat:"",imgRepeatTablet:"",imgRepeatMobile:"",imgDisplaySize:"",imgDisplaySizeTablet:"",imgDisplaySizeMobile:"",imgDisplaySizeWidth:"",imgDisplaySizeWidthTablet:"",imgDisplaySizeWidthMobile:"",imgDisplaySizeWidthUnit:"px", | |
| 6461 | -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:"", | |
| 6462 | -videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:"",autoPlay:!1,mute:!1,loop:!1,playerControl:!0,downloadButton:!1,poster:"",preload:"metadata"}:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"",imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""},r=(t,e=!1)=>({[t]:{type:"object",default:s(e), | |
| 6463 | -copyStyle:!0}}),b=(t,e="",i="")=>{const l={...s(!!i),...t},n=(0,o.l_)({unit:l.imgXPositionUnit,unitTablet:l.imgXPositionUnitTablet,unitMobile:l.imgXPositionUnitMobile},i),r=(0,o.l_)({unit:l.imgYPositionUnit,unitTablet:l.imgYPositionUnitTablet,unitMobile:l.imgYPositionUnitMobile},i),b=(0,o.l_)({unit:l.imgDisplaySizeWidthUnit,unitTablet:l.imgDisplaySizeWidthUnitTablet,unitMobile:l.imgDisplaySizeWidthUnitMobile},i),c={};return"image"===l.backgroundType?""!==l.imgUrl&&void 0!==l.imgUrl&&(l["imgUrl"+i]?c[`${e}-image`]=`url("${l["imgUrl"+i]}")`:c[`${e}-image`]=`url("${l.imgUrl}")`,""!==l["imgPosition"+i]&&("custom"===l["imgPosition"+i]?c[`${e}-position`]=`${l["imgXPosition"+i]?l["imgXPosition"+i]:"0"}${n} ${l["imgYPosition"+i]?l["imgYPosition"+i]:"0"}${r}`:c[`${e}-position`]=l["imgPosition"+i]),""!==l["imgAttachment"+i]&&(c[`${e}-attachment`]=l["imgAttachment"+i]),""!==l["imgRepeat"+i]&&(c[`${e}-repeat`]=l["imgRepeat"+i]), | |
| 6464 | -""!==l["imgDisplaySize"+i]&&("custom"===l["imgDisplaySize"+i]?c[`${e}-size`]=`${l["imgDisplaySizeWidth"+i]}${b} auto`:c[`${e}-size`]=l["imgDisplaySize"+i])):"video"===l.backgroundType?""!==l.fallbackImageUrl&&void 0!==l.fallbackImageUrl&&(c[`${e}-image`]=`url("${l.fallbackImageUrl}")`,c[`${e}-size`]="cover"):"color"===l.backgroundType&&l.backgroundColor&&(c[`${e}`]=(0,a.qD)(l.backgroundColor)),""!==l.transitionDuration&&void 0!==l.transitionDuration&&(c.transition=`${e} ${l.transitionDuration}s ease`),c},c=(t,e="",i="")=>{const l={...s(!!i),...t},n=(0,o.l_)({unit:l.imgXPositionUnitH,unitTablet:l.imgXPositionUnitHTablet,unitMobile:l.imgXPositionUnitHMobile},i),r=(0,o.l_)({unit:l.imgYPositionUnitH,unitTablet:l.imgYPositionUnitHTablet,unitMobile:l.imgYPositionUnitHMobile},i),b=(0,o.l_)({unit:l.imgDisplaySizeWidthHUnit,unitTablet:l.imgDisplaySizeWidthHUnitTablet,unitMobile:l.imgDisplaySizeWidthHMobile},i),c={} | |
| 6465 | -;return"image"===l.backgroundTypeH?""!==l.imgUrlH&&void 0!==l.imgUrlH&&(l["imgUrlH"+i]?c[`${e}-image`]=`url("${l["imgUrlH"+i]}")`:(c.content='""',c[`${e}-image`]=`url("${l.imgUrlH}")`),""!==l["imgPositionH"+i]&&("custom"===l["imgPositionH"+i]?c[`${e}-position`]=`${l["imgXPositionH"+i]?l["imgXPositionH"+i]:"0"}${n} ${l["imgYPositionH"+i]?l["imgYPositionH"+i]:"0"}${r}`:c[`${e}-position`]=l["imgPositionH"+i]),""!==l["imgAttachmentH"+i]&&(c[`${e}-attachment`]=l["imgAttachmentH"+i]),""!==l["imgRepeatH"+i]&&(c[`${e}-repeat`]=l["imgRepeatH"+i]),""!==l["imgDisplaySizeH"+i]&&("custom"===l["imgDisplaySizeH"+i]?c[`${e}-size`]=`${l["imgDisplaySizeWidthH"+i]}${b} auto`:c[`${e}-size`]=l["imgDisplaySizeH"+i])):"video"===l.backgroundTypeH||"color"===l.backgroundTypeH&&l.backgroundColorH&&(c[`${e}`]=(0,a.qD)(l.backgroundColorH)),c}},10131(t,e,i){"use strict";i.d(e,{D$:()=>d,fb:()=>p,hP:()=>s,ke:()=>r,md:()=>b,tJ:()=>c,td:()=>u,xW:()=>n});var o=i(36168),a=i(42377),l=i(49315);const n=[{label:"None", | |
| 6466 | -value:"none"},{label:"Color",value:"color"},{label:"Image",value:"image"}],s=[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],r=(0,a.D$)({attributeName:"opacity",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,copyStyle:!0}),b=(0,a.D$)({attributeName:"opacityH",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,copyStyle:!0}),c=()=>({backgroundOverlayType:"none",backgroundOverlayTypeH:"none",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",imgXPosition:"", | |
| 6467 | -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:"", | |
| 6468 | -imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",blendMode:"",blur:"",brightness:"",contrast:"",saturate:"",hue:"",...r,blendModeH:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:"",...b,transitionDuration:""}),d=(t,e=!1)=>e?{[t]:{type:"object",default:c(e)}}:{[t]:{type:"object",default:c(e)}},u=(t,e,i="",a="")=>{const n={...c(!!a),...t},s=(0,o.l_)({unit:n.imgXPositionUnit,unitTablet:n.imgXPositionUnitTablet,unitMobile:n.imgXPositionUnitMobile},a),r=(0,o.l_)({unit:n.imgYPositionUnit,unitTablet:n.imgYPositionUnitTablet,unitMobile:n.imgYPositionUnitMobile},a),b=(0,o.l_)({unit:n.displaySizeWidthUnit,unitTablet:n.displaySizeWidthUnitTablet,unitMobile:n.displaySizeWidthUnitMobile | |
| 6469 | -},a),d={},u=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.topWidth),p=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.bottomWidth),m=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.leftWidth),h=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.rightWidth),g=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.topRadius),f=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.leftRadius),y=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.rightRadius),T=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.bottomRadius);if(d["border-top-left-radius"]=`${Math.max(g-u,0)}px`,d["border-top-right-radius"]=`${Math.max(y-h,0)}px`,d["border-bottom-left-radius"]=`${Math.max(T-p,0)}px`,d["border-bottom-right-radius"]=`${Math.max(f-m,0)}px`,"image"===n.backgroundOverlayType){if(""!==n["imgUrl"+a]&&void 0!==n["imgUrl"+a]){const t={brightness:`brightness(${n?.brightness??100}%)`,contrast:`contrast(${n?.contrast??100}%)`,saturate:`saturate(${n?.saturate??100}%)`, | |
| 6470 | -blur:`blur(${n?.blur??0}px)`,hue:`hue-rotate(${n?.hue??0}deg)`};d[`${i}-image`]=`url("${n["imgUrl"+a]}")`,d.position="absolute",d.content="''",d.top="0",d.left="0",d.width="100%",d.height="100%",""!==n["imgPosition"+a]&&("custom"===n["imgPosition"+a]?d[`${i}-position`]=`${n["imgXPosition"+a]?n["imgXPosition"+a]:"0"}${s} ${n["imgYPosition"+a]?n["imgYPosition"+a]:"0"}${r}`:d[`${i}-position`]=n["imgPosition"+a]),""!==n["imgAttachment"+a]&&(d[`${i}-attachment`]=n["imgAttachment"+a]),""!==n["imgRepeat"+a]&&(d[`${i}-repeat`]=n["imgRepeat"+a]),""!==n["imgDisplaySize"+a]&&("custom"===n["imgDisplaySize"+a]?d[`${i}-size`]=`${n["imgDisplaySizeWidth"+a]}${b}`:d[`${i}-size`]=n["imgDisplaySize"+a]),"Tablet"===a&&void 0!==n?.opacityTablet?d.opacity=n?.opacityTablet:"Mobile"===a&&void 0!==n?.opacityMobile?d.opacity=n?.opacityMobile:void 0!==n?.opacity&&(d.opacity=n?.opacity),""!==n.blendMode&&void 0!==n.blendMode&&(d["mix-blend-mode"]=n.blendMode),d.filter=Object.values(t).join(" "), | |
| 6471 | -""!==n.transitionDuration&&void 0!==n.transitionDuration&&(d.transition=`all ${n.transitionDuration}s`)}n.transitionDuration&&(d.transition=`border ${n.transitionDuration}s, border-radius ${n.transitionDuration}s`)}else if("video"===n.backgroundOverlayType);else if("color"===n.backgroundOverlayType&&""!==n["backgroundColor"+a]&&void 0!==n["backgroundColor"+a]){d.position="absolute",d.content="''",d.top="0",d.left="0",d.width="100%",d.height="100%",d[`${i}`]=(0,l.qD)(n.backgroundColor),"Tablet"===a&&void 0!==n?.opacityTablet?d.opacity=n?.opacityTablet:"Mobile"===a&&void 0!==n?.opacityMobile?d.opacity=n?.opacityMobile:void 0!==n?.opacity&&(d.opacity=n?.opacity),""!==n.blendMode&&void 0!==n.blendMode&&(d["mix-blend-mode"]=n.blendMode);const t={brightness:`brightness(${n?.brightness??100}%)`,contrast:`contrast(${n?.contrast??100}%)`,saturate:`saturate(${n?.saturate??100}%)`,blur:`blur(${n?.blur??0}px)`,hue:`hue-rotate(${n?.hue??0}deg)`};d.filter=Object.values(t).join(" "), | |
| 6472 | -""!==n.transitionDuration&&void 0!==n.transitionDuration&&(d.transition=`all ${n.transitionDuration}s`)}return d},p=(t,e,i="",a="")=>{const n={...c(!!a),...t},s=(0,o.l_)({unit:n.imgXPositionUnitH,unitTablet:n.imgXPositionUnitHTablet,unitMobile:n.imgXPositionUnitHMobile},a),r=(0,o.l_)({unit:n.imgYPositionUnitH,unitTablet:n.imgYPositionUnitHTablet,unitMobile:n.imgYPositionUnitHMobile},a),b=(0,o.l_)({unit:n.imgDisplaySizeWidthHUnit,unitTablet:n.imgDisplaySizeWidthHUnitTablet,unitMobile:n.imgDisplaySizeWidthHMobile | |
| 6473 | -},a),d={},u=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.topWidth),p=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.bottomWidth),m=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.leftWidth),h=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.rightWidth),g=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.topRadius),f=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.leftRadius),y=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.rightRadius),T=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.bottomRadius);if(d["border-top-left-radius"]=`${Math.max(g-u,0)}px`,d["border-top-right-radius"]=`${Math.max(y-h,0)}px`,d["border-bottom-left-radius"]=`${Math.max(T-p,0)}px`,d["border-bottom-right-radius"]=`${Math.max(f-m,0)}px`,"image"===n.backgroundOverlayTypeH){if(""!==n["imgUrlH"+a]&&void 0!==n["imgUrlH"+a]){const t={brightness:`brightness(${n?.brightnessH??100}%)`,contrast:`contrast(${n?.contrastH??100}%)`, | |
| 6474 | -saturate:`saturate(${n?.saturateH??100}%)`,blur:`blur(${n?.blurH??0}px)`,hue:`hue-rotate(${n?.hueH??0}deg)`};d[`${i}-image`]=`url("${n["imgUrlH"+a]}")`,d.position="absolute",d.content="''",d.top="0",d.left="0",d.width="100%",d.height="100%",""!==n["imgPositionH"+a]&&("custom"===n["imgPositionH"+a]?d[`${i}-position`]=`${n["imgXPositionH"+a]?n["imgXPositionH"+a]:"0"}${s} ${n["imgYPositionH"+a]?n["imgYPositionH"+a]:"0"}${r}`:d[`${i}-position`]=n["imgPositionH"+a]),""!==n.imgAttachmentH&&(d[`${i}-attachment`]=n.imgAttachmentH),""!==n["imgRepeatH"+a]&&(d[`${i}-repeat`]=n["imgRepeatH"+a]),""!==n["imgDisplaySizeH"+a]&&("custom"===n["imgDisplaySizeH"+a]?d[`${i}-size`]=`${n["imgDisplaySizeWidthH"+a]}${b}`:d[`${i}-size`]=n["imgDisplaySizeH"+a]),"Tablet"===a&&void 0!==n?.opacityHTablet?d.opacity=n?.opacityHTablet:"Mobile"===a&&void 0!==n?.opacityHMobile?d.opacity=n?.opacityHMobile:void 0!==n?.opacityH&&(d.opacity=n?.opacityH), | |
| 6475 | -""!==n.blendModeH&&void 0!==n.blendModeH&&(d["mix-blend-mode"]=n.blendModeH),d.filter=Object.values(t).join(" ")}}else if("video"===n.backgroundOverlayTypeH);else if("color"===n.backgroundOverlayTypeH&&""!==n["backgroundColorH"+a]&&void 0!==n["backgroundColorH"+a]){d.position="absolute",d.content="''",d.top="0",d.left="0",d.width="100%",d.height="100%",d[`${i}`]=(0,l.qD)(n.backgroundColorH),"Tablet"===a&&void 0!==n?.opacityHTablet?d.opacity=n?.opacityHTablet:"Mobile"===a&&void 0!==n?.opacityHMobile?d.opacity=n?.opacityHMobile:void 0!==n?.opacityH&&(d.opacity=n?.opacityH),""!==n.blendModeH&&void 0!==n.blendModeH&&(d["mix-blend-mode"]=n.blendModeH);const t={brightness:`brightness(${n?.brightnessH??100}%)`,contrast:`contrast(${n?.contrastH??100}%)`,saturate:`saturate(${n?.saturateH??100}%)`,blur:`blur(${n?.blurH??0}px)`,hue:`hue-rotate(${n?.hueH??0}deg)`};d.filter=Object.values(t).join(" ")}return d}},77168(t,e,i){"use strict";i.d(e,{CI:()=>n,D$:()=>r,a9:()=>c,qD:()=>b,tJ:()=>s}) | |
| 6476 | -;var o=i(36168),a=i(49315),l=i(27723);const n=[{value:"default",label:(0,l.__)("Default","ablocks")},{value:"none",label:(0,l.__)("None","ablocks")},{value:"solid",label:(0,l.__)("Solid","ablocks")},{value:"double",label:(0,l.__)("Double","ablocks")},{value:"dotted",label:(0,l.__)("Dotted","ablocks")},{value:"dashed",label:(0,l.__)("Dashed","ablocks")},{value:"groove",label:(0,l.__)("Groove","ablocks")}],s=(t=!1)=>t?{borderStyle:"default",borderStyleH:"default",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:"",borderColor:"",borderColorH:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"", | |
| 6477 | -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:"", | |
| 6478 | -topRadiusHMobile:"",rightRadiusHMobile:"",bottomRadiusHMobile:"",leftRadiusHMobile:"",unitRadiusH:"px",unitRadiusHTablet:"",unitRadiusHMobile:"",transitionDuration:""}:{borderStyle:"default",borderStyleH:"default",isLinkedWidth:!0,commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",borderColor:"",borderColorH:"",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px"},r=(t,e=!1)=>({[t]:{type:"object",default:s(e),copyStyle:!0}}),b=(t,e="")=>{const i={...s(!!e),...t},l={},n=(0,o.l_)({unit:i.unitWidth,unitTablet:i.unitWidthTablet,unitMobile:i.unitWidthMobile},e),r=(i["commonWidth"+e]||0)+n | |
| 6479 | -;i["isLinkedWidth"+e]?""!==i["commonWidth"+e]&&(l["border-width"]=r):l["border-width"]=(i["topWidth"+e]||0)+n+" "+(i["rightWidth"+e]||0)+n+" "+(i["bottomWidth"+e]||0)+n+" "+(i["leftWidth"+e]||0)+n,i.borderStyle&&"default"!==i.borderStyle&&(l["border-style"]=i.borderStyle),i.borderColor&&(l["border-color"]=(0,a.qD)(i.borderColor));const b=(0,o.l_)({unit:i.unitRadius,unitTablet:i.unitRadiusTablet,unitMobile:i.unitRadiusMobile},e),c=i["topRadius"+e]||0,d=i["rightRadius"+e]||0,u=i["bottomRadius"+e]||0,p=i["leftRadius"+e]||0;if(""!==i["commonRadius"+e]||c||d||u||p)if(i["isLinkedRadius"+e]){const t=(i["commonRadius"+e]||0)+b;""!==i["commonRadius"+e]&&(l["border-radius"]=t)}else l["border-radius"]=`${c+b} ${d+b} ${u+b} ${p+b}`;return i.transitionDuration&&(l.transition=`border ${i.transitionDuration}s, border-radius ${i.transitionDuration}s`),l},c=(t,e="")=>{const i={...s(!!e),...t},l={},n=(0,o.l_)({unit:i.unitWidthH,unitTablet:i.unitWidthHTablet,unitMobile:i.unitWidthHMobile},e) | |
| 6480 | -;if(i.borderStyleH&&"default"!==i.borderStyleH){const t=(i["commonWidthH"+e]||0)+n;i["isLinkedWidthH"+e]?""!==i["commonWidthH"+e]&&(l["border-width"]=t):l["border-width"]=(i["topWidthH"+e]||0)+n+" "+(i["rightWidthH"+e]||0)+n+" "+(i["bottomWidthH"+e]||0)+n+" "+(i["leftWidthH"+e]||0)+n,i.borderColorH&&(l["border-color"]=(0,a.qD)(i.borderColorH))}i.borderStyleH&&"default"!==i.borderStyleH&&(l["border-style"]=i.borderStyleH);const r=(0,o.l_)({unit:i.unitRadiusH,unitTablet:i.unitRadiusHTablet,unitMobile:i.unitRadiusHMobile},e),b=i["topRadiusH"+e]||0,c=i["rightRadiusH"+e]||0,d=i["bottomRadiusH"+e]||0,u=i["leftRadiusH"+e]||0;if(""!==i["commonRadiusH"+e]||b||c||d||u)if(i["isLinkedRadiusH"+e]){const t=(i["commonRadiusH"+e]||0)+r;""!==i["commonRadiusH"+e]&&(l["border-radius"]=t)}else l["border-radius"]=`${b+r} ${c+r} ${d+r} ${u+r}`;return l}},80554(t,e,i){"use strict";i.d(e,{D$:()=>r,H5:()=>n,Ji:()=>l,a9:()=>c,qD:()=>b,tJ:()=>s});var o=i(27723),a=i(49315);const l=[{label:(0, | |
| 6481 | -o.__)("Outer shadow","ablocks"),value:"outer_shadow"},{label:(0,o.__)("Inner shadow","ablocks"),value:"inner_shadow"}],n=[{id:1,shadow:"none"},{id:2,horizontal:0,vertical:8,blur:24,spread:0,color:"#007FFF33"},{id:3,horizontal:-2,vertical:2,blur:14,spread:-4,color:"#000000BF"},{id:4,horizontal:0,vertical:3,blur:8,spread:0,color:"#0000003D"},{id:5,horizontal:0,vertical:4,blur:12,spread:0,color:"#0000001A"},{id:6,horizontal:0,vertical:48,blur:100,spread:0,color:"#110C2E26"},{id:7,horizontal:0,vertical:20,blur:25,spread:-5,color:"#0000001A"},{id:8,horizontal:0,vertical:13,blur:27,spread:-5,color:"#32325D40"},{id:9,horizontal:0,vertical:20,blur:30,spread:-10,color:"#26394D"}],s=()=>({preset:"",shadowType:"",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}),r=t=>({[t]:{type:"object",default:s(),copyStyle:!0}}),b=(t,e="",i="")=>{const o={...s(!!i),...t},l={} | |
| 6482 | -;return"default"!==o.shadowType&&"inner_shadow"===o.shadowType?""!==o.preset&&void 0!==o.preset&&(l["box-shadow"]=`inset ${o?.horizontal}px ${o?.vertical}px ${o?.blur}px ${o?.spread}px ${(0,a.qD)(o?.color||"#000000")}`):"default"!==o.shadowType&&"outer_shadow"===o.shadowType?""!==o.preset&&void 0!==o.preset&&(l["box-shadow"]=`${o?.horizontal}px ${o?.vertical}px ${o?.blur}px ${o?.spread}px ${(0,a.qD)(o?.color||"#000000")}`):""!==o.horizontal&&void 0!==o.horizontal&&""!==o.vertical&&void 0!==o.vertical&&(l["box-shadow"]=`${o?.horizontal}px ${o?.vertical}px ${o?.blur}px ${o?.spread}px ${(0,a.qD)(o?.color||"#000000")}`),o.transitionDuration&&(l.transition=`${e} ${o.transitionDuration}s`),l},c=(t,e="")=>{const i={...s(!!e),...t},o={} | |
| 6483 | -;return"default"!==i.shadowTypeH&&"inner_shadow"===i.shadowTypeH||"default"!==i.shadowTypeH&&"outer_shadow"===i.shadowTypeH?""!==i.presetH&&void 0!==i.presetH&&(o["box-shadow"]=`${"inner_shadow"===i.shadowTypeH?"inset":""} ${i?.horizontalH}px ${i?.verticalH}px ${i?.blurH}px ${i?.spreadH}px ${(0,a.qD)(i?.colorH||"#000000")}`):""!==i.horizontalH&&void 0!==i.horizontalH&&""!==i.verticalH&&void 0!==i.verticalH&&(o["box-shadow"]=`${i?.horizontalH}px ${i?.verticalH}px ${i?.blurH}px ${i?.spreadH}px ${(0,a.qD)(i?.colorH||"#000000")}`),o}},49315(t,e,i){"use strict";i.d(e,{GQ:()=>a,Ou:()=>s,YN:()=>l,qD:()=>n});const o=(t,e)=>{if("string"==typeof t&&t.startsWith(`var:${e}`)){const i=t.split("|");if(3===i.length)return{source:i[0],color:i[1]||"",..."preset"===e?{slug:i[2]}:{id:i[2]}}}return!1},a=t=>o(t,"preset"),l=t=>o(t,"global"),n=t=>{if(t){const e=a(t),i=l(t);return e?`var(--wp--preset--color--${e?.slug})`:i?`var(--ablocks-${i?.id})`:t}return""},s=(t,e)=>{const i=e?.find(e=>e.id===t) | |
| 6484 | -;return i?.value||""}},42314(t,e,i){"use strict";i.d(e,{D$:()=>a,qD:()=>l,tJ:()=>o});const o=(t=!1)=>t?{blur:"",blurTablet:"",blurMobile:"",brightness:"",brightnessTablet:"",brightnessMobile:"",contrast:"",contrastTablet:"",contrastMobile:"",saturate:"",saturateTablet:"",saturateMobile:"",hue:"",hueTablet:"",hueMobile:"",blurH:"",blurHTablet:"",blurHMobile:"",brightnessH:"",brightnessHTablet:"",brightnessHMobile:"",contrastH:"",contrastHTablet:"",contrastHMobile:"",saturateH:"",saturateHTablet:"",saturateHMobile:"",hueH:"",hueHTablet:"",hueHMobile:""}:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""},a=(t,e)=>({[t]:{type:"object",default:o(e),copyStyle:!0}}),l=(t,e="")=>{const i={...o(!!e),...t},a={};if(""!==i["blur"+e]||""!==i["brightness"+e]||""!==i["contrast"+e]||""!==i["saturate"+e]||""!==i["hue"+e]){const t={brightness:`brightness(${i["brightness"+e]||100}%)`,contrast:`contrast(${i["contrast"+e]||100}%)`, | |
| 6485 | -saturate:`saturate(${i["saturate"+e]||100}%)`,blur:`blur(${i["blur"+e]||0}px)`,hue:`hue-rotate(${i["hue"+e]||0}deg)`};a.filter=Object.values(t).join(" ")}return a}},80241(t,e,i){"use strict";i.d(e,{D$:()=>l,qD:()=>n,tJ:()=>a});var o=i(36168);const a=(t=!1)=>t?{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0,common:"",commonTablet:"",commonMobile:"",top:"",right:"",bottom:"",left:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unit:"px",unitTablet:"",unitMobile:""}:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"},l=(t,e=!1)=>({[t]:{type:"object",default:a(e),copyStyle:!0}}),n=(t,e="",i="")=>{const l={...a(!!i),...t},n={},s=(0,o.l_)({unit:l.unit,unitTablet:l.unitTablet,unitMobile:l.unitMobile},i);return l["isLinked"+i]?""!==l["common"+i]&&(n[e]=l["common"+i]+s):["top","right","bottom","left"].forEach(t=>{""!==l[t+i]&&(n[`${e}-${t}`]=l[t+i]+(t=>l[t+"Unit"+i]||l[t+"Unit"]||s)(t))}),n}},93044(t,e,i){ | |
| 6486 | -"use strict";i.d(e,{D$:()=>a});const o=(t=!1,e)=>t?{value:"default",valueTablet:"",valueMobile:"",...e}:e.value??"default",a=(t,e=!1,i={})=>e?{[t]:{type:"object",default:o(e,i),copyStyle:!0}}:{[t]:{type:"string",default:o(e,i),copyStyle:!0}}},68761(t,e,i){"use strict";i.d(e,{D$:()=>c,Hg:()=>d,Hk:()=>p,J_:()=>y,PT:()=>h,QJ:()=>u,RV:()=>T,S4:()=>m,eG:()=>f,fW:()=>g});var o=i(42377),a=i(80241),l=i(77168),n=i(80554),s=i(27723),r=i(36168),b=i(49315);(0,s.__)("All icons","ablocks"),(0,s.__)("Animations","ablocks"),(0,s.__)("Award & reward","ablocks"),(0,s.__)("Bookmark & logo","ablocks"),(0,s.__)("Favorite","ablocks"),(0,s.__)("Business","ablocks"),(0,s.__)("Cloth Accessories","ablocks"),(0,s.__)("Date & Time","ablocks"),(0,s.__)("Device","ablocks"),(0,s.__)("E-commerce","ablocks"),(0,s.__)("Educations","ablocks");const c=(t="icon",e={})=>{ | |
| 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, | |
| 6506 | +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 | +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 | +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 | +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}) | |
| 6510 | +;var o=i(36168),a=i(49315),l=i(27723);const n=[{label:(0,l.__)("None","ablocks"),value:"none",icon:"disable-light"},{label:(0,l.__)("Color","ablocks"),value:"color",icon:"color"},{label:(0,l.__)("Image","ablocks"),value:"image",icon:"image"}],s=[{label:(0,l.__)("None","ablocks"),value:"none",icon:"disable-light"},{label:(0,l.__)("Color","ablocks"),value:"color",icon:"color"},{label:(0,l.__)("Image","ablocks"),value:"image",icon:"image"},{label:(0,l.__)("Video","ablocks"),value:"video",icon:"video"}],r=(t=!1)=>t?{backgroundType:"",backgroundTypeH:"",backgroundColor:"",backgroundColorH:"",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"",imgXPositionUnit:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",imgXPosition:"",imgXPositionTablet:"",imgXPositionMobile:"",imgYPositionUnit:"px",imgYPositionUnitTablet:"",imgYPositionUnitMobile:"", | |
| 6511 | +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:"", | |
| 6512 | +imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:"",autoPlay:!1,mute:!1,loop:!1,playerControl:!0,downloadButton:!1,poster:"",preload:"metadata"}:{backgroundType:"none",backgroundTypeH:"none",backgroundColor:"",backgroundColorH:"",imgId:"",imgUrl:"",imgSize:"",imgPosition:"",imgAttachment:"",imgRepeat:"",imgDisplaySize:"",imgdisplaySizeWidth:"",imgDisplaySizeWidthUnit:"px",imgXPositionUnit:"px",imgXPosition:"",imgYPositionUnit:"px",imgYPosition:"",imgIdH:"",imgUrlH:"",imgSizeH:"",imgPositionH:"",imgXPositionUnitH:"px",imgXPositionH:"",imgYPositionUnitH:"px",imgYPositionH:"",imgAttachmentH:"",imgRepeatH:"",imgDisplaySizeH:"", | |
| 6513 | +imgDisplaySizeWidthH:"",imgDisplaySizeWidthHUnit:"px",transitionDuration:"",videoUrl:"",youtubeURL:"",vimeoURL:"",selfHostedURL:"",externalLink:!1,videoSource:"none",videoPlayOnce:"",videoStartTime:"",videoEndTime:"",playOnMobile:"",videoPrivacyMode:"",fallbackImageUrl:""},b=(t,e=!1)=>({[t]:{type:"object",default:r(e),copyStyle:!0}}),c=(t,e="",i="")=>{const l={...r(!!i),...t},n=(0,o.Ic)(l,"imgXPositionUnit",i),s=(0,o.Ic)(l,"imgYPositionUnit",i),b=(0,o.Ic)(l,"imgDisplaySizeWidthUnit",i),c={};return"image"===l.backgroundType?""!==l.imgUrl&&void 0!==l.imgUrl&&(l["imgUrl"+i]?c[`${e}-image`]=`url("${l["imgUrl"+i]}")`:c[`${e}-image`]=`url("${l.imgUrl}")`,""!==l["imgPosition"+i]&&("custom"===l["imgPosition"+i]?c[`${e}-position`]=`${l["imgXPosition"+i]?l["imgXPosition"+i]:"0"}${n} ${l["imgYPosition"+i]?l["imgYPosition"+i]:"0"}${s}`:c[`${e}-position`]=l["imgPosition"+i]),""!==l["imgAttachment"+i]&&(c[`${e}-attachment`]=l["imgAttachment"+i]), | |
| 6514 | +""!==l["imgRepeat"+i]&&(c[`${e}-repeat`]=l["imgRepeat"+i]),""!==l["imgDisplaySize"+i]&&("custom"===l["imgDisplaySize"+i]?c[`${e}-size`]=`${l["imgDisplaySizeWidth"+i]}${b} auto`:c[`${e}-size`]=l["imgDisplaySize"+i])):"video"===l.backgroundType?""!==l.fallbackImageUrl&&void 0!==l.fallbackImageUrl&&(c[`${e}-image`]=`url("${l.fallbackImageUrl}")`,c[`${e}-size`]="cover"):"color"===l.backgroundType&&l.backgroundColor&&(c[`${e}`]=(0,a.qD)(l.backgroundColor)),""!==l.transitionDuration&&void 0!==l.transitionDuration&&(c.transition=`${e} ${l.transitionDuration}s ease`),c},d=(t,e="",i="")=>{const l={...r(!!i),...t},n=(0,o.Ic)(l,"imgXPositionUnitH",i),s=(0,o.Ic)(l,"imgYPositionUnitH",i),b=(0,o.Ic)(l,"imgDisplaySizeWidthHUnit",i),c={};return"image"===l.backgroundTypeH?""!==l.imgUrlH&&void 0!==l.imgUrlH&&(l["imgUrlH"+i]?c[`${e}-image`]=`url("${l["imgUrlH"+i]}")`:(c.content='""',c[`${e}-image`]=`url("${l.imgUrlH}")`), | |
| 6515 | +""!==l["imgPositionH"+i]&&("custom"===l["imgPositionH"+i]?c[`${e}-position`]=`${l["imgXPositionH"+i]?l["imgXPositionH"+i]:"0"}${n} ${l["imgYPositionH"+i]?l["imgYPositionH"+i]:"0"}${s}`:c[`${e}-position`]=l["imgPositionH"+i]),""!==l["imgAttachmentH"+i]&&(c[`${e}-attachment`]=l["imgAttachmentH"+i]),""!==l["imgRepeatH"+i]&&(c[`${e}-repeat`]=l["imgRepeatH"+i]),""!==l["imgDisplaySizeH"+i]&&("custom"===l["imgDisplaySizeH"+i]?c[`${e}-size`]=`${l["imgDisplaySizeWidthH"+i]}${b} auto`:c[`${e}-size`]=l["imgDisplaySizeH"+i])):"video"===l.backgroundTypeH||"color"===l.backgroundTypeH&&l.backgroundColorH&&(c[`${e}`]=(0,a.qD)(l.backgroundColorH)),c}},10131(t,e,i){"use strict";i.d(e,{D$:()=>u,fb:()=>m,hP:()=>r,ke:()=>b,md:()=>c,tJ:()=>d,td:()=>p,xW:()=>s});var o=i(36168),a=i(42377),l=i(49315),n=i(27723);const s=[{label:(0,n.__)("None","ablocks"),value:"none"},{label:(0,n.__)("Color","ablocks"),value:"color"},{label:(0,n.__)("Image","ablocks"),value:"image"}],r=[{label:(0,n.__)("Normal","ablocks"), | |
| 6516 | +value:"normal"},{label:(0,n.__)("Multiply","ablocks"),value:"multiply"},{label:(0,n.__)("Screen","ablocks"),value:"screen"},{label:(0,n.__)("Overlay","ablocks"),value:"overlay"},{label:(0,n.__)("Darken","ablocks"),value:"darken"},{label:(0,n.__)("Lighten","ablocks"),value:"lighten"},{label:(0,n.__)("Color Dodge","ablocks"),value:"color-dodge"},{label:(0,n.__)("Saturation","ablocks"),value:"saturation"},{label:(0,n.__)("Color","ablocks"),value:"color"},{label:(0,n.__)("Luminosity","ablocks"),value:"luminosity"}],b=(0,a.D$)({attributeName:"opacity",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,copyStyle:!0}),c=(0,a.D$)({attributeName:"opacityH",attributeObjectKey:"value",isResponsive:!0,defaultValue:1,copyStyle:!0}),d=()=>({backgroundOverlayType:"none",backgroundOverlayTypeH:"none",imgId:"",imgIdTablet:"",imgIdMobile:"",imgUrl:"",imgUrlTablet:"",imgUrlMobile:"",imgSize:"",imgSizeTablet:"",imgSizeMobile:"",imgPosition:"",imgPositionTablet:"",imgPositionMobile:"", | |
| 6517 | +imgXPositionUnit:"px",imgXPositionTabletUnit:"",imgXPositionMobileUnit:"",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:"", | |
| 6518 | +imgYPositionH:"",imgYPositionHTablet:"",imgYPositionHMobile:"",imgAttachmentH:"",imgRepeatH:"",imgRepeatHTablet:"",imgRepeatHMobile:"",imgDisplaySizeH:"",imgDisplaySizeHTablet:"",imgDisplaySizeHMobile:"",imgDisplaySizeWidthH:"",imgDisplaySizeWidthHTablet:"",imgDisplaySizeWidthHMobile:"",imgDisplaySizeWidthHUnit:"px",imgDisplaySizeWidthHUnitTablet:"",imgDisplaySizeWidthHUnitMobile:"",blendMode:"",blur:"",brightness:"",contrast:"",saturate:"",hue:"",...b,blendModeH:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:"",...c,transitionDuration:""}),u=(t,e=!1)=>e?{[t]:{type:"object",default:d(e)}}:{[t]:{type:"object",default:d(e)}},p=(t,e,i="",a="")=>{const n={...d(!!a),...t},s=(0,o.Ic)(n,"imgXPositionUnit",a),r=(0,o.Ic)(n,"imgYPositionUnit",a),b=(0, | |
| 6519 | +o.Ic)(n,"displaySizeWidthUnit",a),c={},u=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.topWidth),p=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.bottomWidth),m=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.leftWidth),h=e?.commonWidth?parseInt(e?.commonWidth):parseInt(e?.rightWidth),g=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.topRadius),f=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.leftRadius),y=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.rightRadius),T=e?.commonRadius?parseInt(e?.commonRadius):parseInt(e?.bottomRadius);if(c["border-top-left-radius"]=`${Math.max(g-u,0)}px`,c["border-top-right-radius"]=`${Math.max(y-h,0)}px`,c["border-bottom-left-radius"]=`${Math.max(T-p,0)}px`,c["border-bottom-right-radius"]=`${Math.max(f-m,0)}px`,"image"===n.backgroundOverlayType){if(""!==n["imgUrl"+a]&&void 0!==n["imgUrl"+a]){const t={brightness:`brightness(${n?.brightness??100}%)`,contrast:`contrast(${n?.contrast??100}%)`, | |
| 6520 | +saturate:`saturate(${n?.saturate??100}%)`,blur:`blur(${n?.blur??0}px)`,hue:`hue-rotate(${n?.hue??0}deg)`};c[`${i}-image`]=`url("${n["imgUrl"+a]}")`,c.position="absolute",c.content="''",c.top="0",c.left="0",c.width="100%",c.height="100%",""!==n["imgPosition"+a]&&("custom"===n["imgPosition"+a]?c[`${i}-position`]=`${n["imgXPosition"+a]?n["imgXPosition"+a]:"0"}${s} ${n["imgYPosition"+a]?n["imgYPosition"+a]:"0"}${r}`:c[`${i}-position`]=n["imgPosition"+a]),""!==n["imgAttachment"+a]&&(c[`${i}-attachment`]=n["imgAttachment"+a]),""!==n["imgRepeat"+a]&&(c[`${i}-repeat`]=n["imgRepeat"+a]),""!==n["imgDisplaySize"+a]&&("custom"===n["imgDisplaySize"+a]?c[`${i}-size`]=`${n["imgDisplaySizeWidth"+a]}${b}`:c[`${i}-size`]=n["imgDisplaySize"+a]);const e=(0,o.Ic)(n,"opacity",a);!1!==e&&(c.opacity=e),""!==n.blendMode&&void 0!==n.blendMode&&(c["mix-blend-mode"]=n.blendMode),c.filter=Object.values(t).join(" "), | |
| 6521 | +""!==n.transitionDuration&&void 0!==n.transitionDuration&&(c.transition=`all ${n.transitionDuration}s`)}n.transitionDuration&&(c.transition=`border ${n.transitionDuration}s, border-radius ${n.transitionDuration}s`)}else if("video"===n.backgroundOverlayType);else if("color"===n.backgroundOverlayType&&""!==n["backgroundColor"+a]&&void 0!==n["backgroundColor"+a]){c.position="absolute",c.content="''",c.top="0",c.left="0",c.width="100%",c.height="100%",c[`${i}`]=(0,l.qD)(n.backgroundColor);const t=(0,o.Ic)(n,"opacity",a);!1!==t&&(c.opacity=t),""!==n.blendMode&&void 0!==n.blendMode&&(c["mix-blend-mode"]=n.blendMode);const e={brightness:`brightness(${n?.brightness??100}%)`,contrast:`contrast(${n?.contrast??100}%)`,saturate:`saturate(${n?.saturate??100}%)`,blur:`blur(${n?.blur??0}px)`,hue:`hue-rotate(${n?.hue??0}deg)`};c.filter=Object.values(e).join(" "),""!==n.transitionDuration&&void 0!==n.transitionDuration&&(c.transition=`all ${n.transitionDuration}s`)}return c},m=(t,e,i="",a="")=>{ | |
| 6522 | +const n={...d(!!a),...t},s=(0,o.Ic)(n,"imgXPositionUnitH",a),r=(0,o.Ic)(n,"imgYPositionUnitH",a),b=(0,o.Ic)(n,"imgDisplaySizeWidthHUnit",a),c={},u=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.topWidth),p=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.bottomWidth),m=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.leftWidth),h=e?.commonWidthH?parseInt(e?.commonWidthH):parseInt(e?.rightWidth),g=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.topRadius),f=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.leftRadius),y=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.rightRadius),T=e?.commonRadiusH?parseInt(e?.commonRadiusH):parseInt(e?.bottomRadius);if(c["border-top-left-radius"]=`${Math.max(g-u,0)}px`,c["border-top-right-radius"]=`${Math.max(y-h,0)}px`,c["border-bottom-left-radius"]=`${Math.max(T-p,0)}px`,c["border-bottom-right-radius"]=`${Math.max(f-m,0)}px`,"image"===n.backgroundOverlayTypeH){if(""!==n["imgUrlH"+a]&&void 0!==n["imgUrlH"+a]){ | |
| 6523 | +const t={brightness:`brightness(${n?.brightnessH??100}%)`,contrast:`contrast(${n?.contrastH??100}%)`,saturate:`saturate(${n?.saturateH??100}%)`,blur:`blur(${n?.blurH??0}px)`,hue:`hue-rotate(${n?.hueH??0}deg)`};c[`${i}-image`]=`url("${n["imgUrlH"+a]}")`,c.position="absolute",c.content="''",c.top="0",c.left="0",c.width="100%",c.height="100%",""!==n["imgPositionH"+a]&&("custom"===n["imgPositionH"+a]?c[`${i}-position`]=`${n["imgXPositionH"+a]?n["imgXPositionH"+a]:"0"}${s} ${n["imgYPositionH"+a]?n["imgYPositionH"+a]:"0"}${r}`:c[`${i}-position`]=n["imgPositionH"+a]),""!==n.imgAttachmentH&&(c[`${i}-attachment`]=n.imgAttachmentH),""!==n["imgRepeatH"+a]&&(c[`${i}-repeat`]=n["imgRepeatH"+a]),""!==n["imgDisplaySizeH"+a]&&("custom"===n["imgDisplaySizeH"+a]?c[`${i}-size`]=`${n["imgDisplaySizeWidthH"+a]}${b}`:c[`${i}-size`]=n["imgDisplaySizeH"+a]);const e=(0,o.Ic)(n,"opacityH",a);!1!==e&&(c.opacity=e),""!==n.blendModeH&&void 0!==n.blendModeH&&(c["mix-blend-mode"]=n.blendModeH), | |
| 6524 | +c.filter=Object.values(t).join(" ")}}else if("video"===n.backgroundOverlayTypeH);else if("color"===n.backgroundOverlayTypeH&&""!==n["backgroundColorH"+a]&&void 0!==n["backgroundColorH"+a]){c.position="absolute",c.content="''",c.top="0",c.left="0",c.width="100%",c.height="100%",c[`${i}`]=(0,l.qD)(n.backgroundColorH);const t=(0,o.Ic)(n,"opacityH",a);!1!==t&&(c.opacity=t),""!==n.blendModeH&&void 0!==n.blendModeH&&(c["mix-blend-mode"]=n.blendModeH);const e={brightness:`brightness(${n?.brightnessH??100}%)`,contrast:`contrast(${n?.contrastH??100}%)`,saturate:`saturate(${n?.saturateH??100}%)`,blur:`blur(${n?.blurH??0}px)`,hue:`hue-rotate(${n?.hueH??0}deg)`};c.filter=Object.values(e).join(" ")}return c}},77168(t,e,i){"use strict";i.d(e,{CI:()=>n,D$:()=>r,a9:()=>c,qD:()=>b,tJ:()=>s});var o=i(36168),a=i(49315),l=i(27723);const n=[{value:"default",label:(0,l.__)("Default","ablocks")},{value:"none",label:(0,l.__)("None","ablocks")},{value:"solid",label:(0,l.__)("Solid","ablocks")},{value:"double", | |
| 6525 | +label:(0,l.__)("Double","ablocks")},{value:"dotted",label:(0,l.__)("Dotted","ablocks")},{value:"dashed",label:(0,l.__)("Dashed","ablocks")},{value:"groove",label:(0,l.__)("Groove","ablocks")}],s=(t=!1)=>t?{borderStyle:"default",borderStyleH:"default",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:"",borderColor:"",borderColorH:"",isLinkedWidthH:!0,isLinkedWidthHTablet:!0,isLinkedWidthHMobile:!0,commonWidthH:"",commonWidthHTablet:"",commonWidthHMobile:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",topWidthHTablet:"",rightWidthHTablet:"",bottomWidthHTablet:"",leftWidthHTablet:"",topWidthHMobile:"",rightWidthHMobile:"",bottomWidthHMobile:"", | |
| 6526 | +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:""}:{borderStyle:"default",borderStyleH:"default",isLinkedWidth:!0, | |
| 6527 | +commonWidth:"",topWidth:"",rightWidth:"",bottomWidth:"",leftWidth:"",unitWidth:"px",isLinkedWidthH:!0,commonWidthH:"",topWidthH:"",rightWidthH:"",bottomWidthH:"",leftWidthH:"",unitWidthH:"px",borderColor:"",borderColorH:"",isLinkedRadius:!0,commonRadius:"",topRadius:"",rightRadius:"",bottomRadius:"",leftRadius:"",unitRadius:"px",isLinkedRadiusH:!0,commonRadiusH:"",topRadiusH:"",leftRadiusH:"",unitRadiusH:"px"},r=(t,e=!1)=>({[t]:{type:"object",default:s(e),copyStyle:!0}}),b=(t,e="")=>{const i={...(0,o.su)(s(!!e),e),...t},l={},n=(0,o.V1)(i,"unitWidth",e),r=(i["commonWidth"+e]||0)+n;i["isLinkedWidth"+e]?""!==i["commonWidth"+e]&&(l["border-width"]=r):l["border-width"]=(i["topWidth"+e]||0)+n+" "+(i["rightWidth"+e]||0)+n+" "+(i["bottomWidth"+e]||0)+n+" "+(i["leftWidth"+e]||0)+n,i.borderStyle&&"default"!==i.borderStyle&&(l["border-style"]=i.borderStyle),i.borderColor&&(l["border-color"]=(0,a.qD)(i.borderColor));const b=(0, | |
| 6528 | +o.V1)(i,"unitRadius",e),c=i["topRadius"+e]||0,d=i["rightRadius"+e]||0,u=i["bottomRadius"+e]||0,p=i["leftRadius"+e]||0;if(""!==i["commonRadius"+e]||c||d||u||p)if(i["isLinkedRadius"+e]){const t=(i["commonRadius"+e]||0)+b;""!==i["commonRadius"+e]&&(l["border-radius"]=t)}else l["border-radius"]=`${c+b} ${d+b} ${u+b} ${p+b}`;return i.transitionDuration&&(l.transition=`border ${i.transitionDuration}s, border-radius ${i.transitionDuration}s`),l},c=(t,e="")=>{const i={...s(!!e),...t},l={},n=(0,o.l_)({unit:i.unitWidthH,unitTablet:i.unitWidthHTablet,unitMobile:i.unitWidthHMobile},e);if(i.borderStyleH&&"default"!==i.borderStyleH){const t=(i["commonWidthH"+e]||0)+n;i["isLinkedWidthH"+e]?""!==i["commonWidthH"+e]&&(l["border-width"]=t):l["border-width"]=(i["topWidthH"+e]||0)+n+" "+(i["rightWidthH"+e]||0)+n+" "+(i["bottomWidthH"+e]||0)+n+" "+(i["leftWidthH"+e]||0)+n,i.borderColorH&&(l["border-color"]=(0,a.qD)(i.borderColorH))} | |
| 6529 | +i.borderStyleH&&"default"!==i.borderStyleH&&(l["border-style"]=i.borderStyleH);const r=(0,o.l_)({unit:i.unitRadiusH,unitTablet:i.unitRadiusHTablet,unitMobile:i.unitRadiusHMobile},e),b=i["topRadiusH"+e]||0,c=i["rightRadiusH"+e]||0,d=i["bottomRadiusH"+e]||0,u=i["leftRadiusH"+e]||0;if(""!==i["commonRadiusH"+e]||b||c||d||u)if(i["isLinkedRadiusH"+e]){const t=(i["commonRadiusH"+e]||0)+r;""!==i["commonRadiusH"+e]&&(l["border-radius"]=t)}else l["border-radius"]=`${b+r} ${c+r} ${d+r} ${u+r}`;return l}},80554(t,e,i){"use strict";i.d(e,{D$:()=>r,H5:()=>n,Ji:()=>l,a9:()=>c,qD:()=>b,tJ:()=>s});var o=i(27723),a=i(49315);const l=[{label:(0,o.__)("Outer shadow","ablocks"),value:"outer_shadow"},{label:(0,o.__)("Inner shadow","ablocks"),value:"inner_shadow"}],n=[{id:1,shadow:"none"},{id:2,horizontal:0,vertical:8,blur:24,spread:0,color:"#007FFF33"},{id:3,horizontal:-2,vertical:2,blur:14,spread:-4,color:"#000000BF"},{id:4,horizontal:0,vertical:3,blur:8,spread:0,color:"#0000003D"},{id:5,horizontal:0, | |
| 6530 | +vertical:4,blur:12,spread:0,color:"#0000001A"},{id:6,horizontal:0,vertical:48,blur:100,spread:0,color:"#110C2E26"},{id:7,horizontal:0,vertical:20,blur:25,spread:-5,color:"#0000001A"},{id:8,horizontal:0,vertical:13,blur:27,spread:-5,color:"#32325D40"},{id:9,horizontal:0,vertical:20,blur:30,spread:-10,color:"#26394D"}],s=()=>({preset:"",shadowType:"",shadow:"",horizontal:"",vertical:"",blur:"",spread:"",color:"",presetH:"",shadowTypeH:"",shadowH:"",horizontalH:"",verticalH:"",blurH:"",spreadH:"",colorH:"",transitionDuration:"0"}),r=t=>({[t]:{type:"object",default:s(),copyStyle:!0}}),b=(t,e="",i="")=>{const o={...s(!!i),...t},l={};return"default"!==o.shadowType&&"inner_shadow"===o.shadowType?""!==o.preset&&void 0!==o.preset&&(l["box-shadow"]=`inset ${o?.horizontal}px ${o?.vertical}px ${o?.blur}px ${o?.spread}px ${(0, | |
| 6531 | +a.qD)(o?.color||"#000000")}`):"default"!==o.shadowType&&"outer_shadow"===o.shadowType?""!==o.preset&&void 0!==o.preset&&(l["box-shadow"]=`${o?.horizontal}px ${o?.vertical}px ${o?.blur}px ${o?.spread}px ${(0,a.qD)(o?.color||"#000000")}`):""!==o.horizontal&&void 0!==o.horizontal&&""!==o.vertical&&void 0!==o.vertical&&(l["box-shadow"]=`${o?.horizontal}px ${o?.vertical}px ${o?.blur}px ${o?.spread}px ${(0,a.qD)(o?.color||"#000000")}`),o.transitionDuration&&(l.transition=`${e} ${o.transitionDuration}s`),l},c=(t,e="")=>{const i={...s(!!e),...t},o={};return"default"!==i.shadowTypeH&&"inner_shadow"===i.shadowTypeH||"default"!==i.shadowTypeH&&"outer_shadow"===i.shadowTypeH?""!==i.presetH&&void 0!==i.presetH&&(o["box-shadow"]=`${"inner_shadow"===i.shadowTypeH?"inset":""} ${i?.horizontalH}px ${i?.verticalH}px ${i?.blurH}px ${i?.spreadH}px ${(0, | |
| 6532 | +a.qD)(i?.colorH||"#000000")}`):""!==i.horizontalH&&void 0!==i.horizontalH&&""!==i.verticalH&&void 0!==i.verticalH&&(o["box-shadow"]=`${i?.horizontalH}px ${i?.verticalH}px ${i?.blurH}px ${i?.spreadH}px ${(0,a.qD)(i?.colorH||"#000000")}`),o}},49315(t,e,i){"use strict";i.d(e,{GQ:()=>a,Ou:()=>s,YN:()=>l,qD:()=>n});const o=(t,e)=>{if("string"==typeof t&&t.startsWith(`var:${e}`)){const i=t.split("|");if(3===i.length)return{source:i[0],color:i[1]||"",..."preset"===e?{slug:i[2]}:{id:i[2]}}}return!1},a=t=>o(t,"preset"),l=t=>o(t,"global"),n=t=>{if(t){const e=a(t),i=l(t);return e?`var(--wp--preset--color--${e?.slug})`:i?`var(--ablocks-${i?.id})`:t}return""},s=(t,e)=>{const i=e?.find(e=>e.id===t);return i?.value||""}},42314(t,e,i){"use strict";i.d(e,{D$:()=>a,qD:()=>l,tJ:()=>o});const o=(t=!1)=>t?{blur:"",blurTablet:"",blurMobile:"",brightness:"",brightnessTablet:"",brightnessMobile:"",contrast:"",contrastTablet:"",contrastMobile:"",saturate:"",saturateTablet:"",saturateMobile:"",hue:"", | |
| 6533 | +hueTablet:"",hueMobile:"",blurH:"",blurHTablet:"",blurHMobile:"",brightnessH:"",brightnessHTablet:"",brightnessHMobile:"",contrastH:"",contrastHTablet:"",contrastHMobile:"",saturateH:"",saturateHTablet:"",saturateHMobile:"",hueH:"",hueHTablet:"",hueHMobile:""}:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""},a=(t,e)=>({[t]:{type:"object",default:o(e),copyStyle:!0}}),l=(t,e="")=>{const i={...o(!!e),...t},a={};if(""!==i["blur"+e]||""!==i["brightness"+e]||""!==i["contrast"+e]||""!==i["saturate"+e]||""!==i["hue"+e]){const t={brightness:`brightness(${i["brightness"+e]||100}%)`,contrast:`contrast(${i["contrast"+e]||100}%)`,saturate:`saturate(${i["saturate"+e]||100}%)`,blur:`blur(${i["blur"+e]||0}px)`,hue:`hue-rotate(${i["hue"+e]||0}deg)`};a.filter=Object.values(t).join(" ")}return a}},80241(t,e,i){"use strict";i.d(e,{D$:()=>l,qD:()=>n,tJ:()=>a});var o=i(36168);const a=(t=!1)=>t?{isLinked:!0,isLinkedTablet:!0,isLinkedMobile:!0, | |
| 6534 | +common:"",commonTablet:"",commonMobile:"",top:"",right:"",bottom:"",left:"",topTablet:"",rightTablet:"",bottomTablet:"",leftTablet:"",topMobile:"",rightMobile:"",bottomMobile:"",leftMobile:"",unit:"px",unitTablet:"",unitMobile:""}:{isLinked:!0,common:"",top:"",right:"",bottom:"",left:"",unit:"px"},l=(t,e=!1)=>({[t]:{type:"object",default:a(e),copyStyle:!0}}),n=(t,e="",i="")=>{const l={...(0,o.su)(a(!!i),i),...t},n={},s=(0,o.V1)(l,"unit",i);return l["isLinked"+i]?""!==l["common"+i]&&(n[e]=l["common"+i]+s):["top","right","bottom","left"].forEach(t=>{""!==l[t+i]&&(n[`${e}-${t}`]=l[t+i]+(t=>l[t+"Unit"+i]||l[t+"Unit"]||s)(t))}),n}},93044(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", | |
| 6535 | +default:a(e,i),copyStyle:!0}}},68761(t,e,i){"use strict";i.d(e,{D$:()=>c,Hg:()=>d,Hk:()=>p,J_:()=>y,PT:()=>h,QJ:()=>u,RV:()=>T,S4:()=>m,eG:()=>f,fW:()=>g});var o=i(42377),a=i(80241),l=i(77168),n=i(80554),s=i(27723),r=i(36168),b=i(49315);(0,s.__)("All icons","ablocks"),(0,s.__)("Animations","ablocks"),(0,s.__)("Award & reward","ablocks"),(0,s.__)("Bookmark & logo","ablocks"),(0,s.__)("Favorite","ablocks"),(0,s.__)("Business","ablocks"),(0,s.__)("Cloth Accessories","ablocks"),(0,s.__)("Date & Time","ablocks"),(0,s.__)("Device","ablocks"),(0,s.__)("E-commerce","ablocks"),(0,s.__)("Educations","ablocks");const c=(t="icon",e={})=>{ | |
| 6487 | 6536 | const{path:i="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",viewBox:s="0 0 496 512",className:r="far fa-smile-beam",hasNoSelectorOrSource:b=!1,size:c=55,color:d="#69727d",BgColor:u="",hoverColor:p="",iconType:m="default",iconShape:h="circle"}=e,g=t+"SvgPath",f=t+"SvgViewBox",y=t+"Class",T=t+"ImageUrl",H=t+"ImageID",M=t+"ImageSize",x=(0, |
| 6488 | -o.D$)({attributeName:t+"Size",isResponsive:!1,defaultValue:c,copyStyle:!0}),k=(0,o.D$)({attributeName:t+"Rotate",defaultValue:0,isResponsive:!1,copyStyle:!0}),v=(0,o.D$)({attributeName:t+"Sizing",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:c,unitDefaultValue:"px",copyStyle:!0}),_=(0,o.D$)({attributeName:t+"Rotated",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"deg",copyStyle:!0}),R=(0,o.D$)({attributeName:t+"RotateHover",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"deg",copyStyle:!0}),S=(0,o.D$)({attributeName:t+"transitionDuration",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,copyStyle:!0}),W=(0,o.D$)({attributeName:`${t}ImageWidth`,isResponsive:!1,defaultValue:150,copyStyle:!0}),U={[g]:{type:"string"},[f]:{type:"string"},[y]:{type:"string"},[T]:{type:"string"},[H]:{type:"number"},[M]:{type:"string"},[t+"Color"]:{type:"string",default:d,copyStyle:!0},[t+"BgColor"]:{ | |
| 6489 | -type:"string",default:u,copyStyle:!0},[t+"HoverBgColor"]:{type:"string",default:u,copyStyle:!0},[t+"HoverColor"]:{type:"string",default:p,copyStyle:!0},[t+"Type"]:{type:"string",default:m,copyStyle:!0},[t+"Shape"]:{type:"string",default:h,copyStyle:!0},...x,...k,...v,..._,...R,...S,...(0,a.D$)(t+"Padding",!1),...(0,l.D$)(t+"Border",!0),...(0,n.D$)(t+"boxShadow"),...W};return i&&s&&(U[g].default=i,U[f].default=s),r&&(U[y].default=r),b||(U[g]={...U[g],source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},U[f]={...U[f],source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"}),U},d={ | |
| 6537 | +o.D$)({attributeName:t+"Size",isResponsive:!1,defaultValue:c,copyStyle:!0}),k=(0,o.D$)({attributeName:t+"Rotate",defaultValue:0,isResponsive:!1,copyStyle:!0}),v=(0,o.D$)({attributeName:t+"Sizing",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:c,unitDefaultValue:"px",copyStyle:!0}),_=(0,o.D$)({attributeName:t+"Rotated",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"deg",copyStyle:!0}),R=(0,o.D$)({attributeName:t+"RotateHover",attributeObjectKey:"value",isResponsive:!0,hasUnit:!0,defaultValue:0,unitDefaultValue:"deg",copyStyle:!0}),S=(0,o.D$)({attributeName:t+"transitionDuration",attributeObjectKey:"value",isResponsive:!0,defaultValue:0,copyStyle:!0}),W=(0,o.D$)({attributeName:`${t}ImageWidth`,isResponsive:!1,defaultValue:150,copyStyle:!0}),P={[g]:{type:"string"},[f]:{type:"string"},[y]:{type:"string"},[T]:{type:"string"},[H]:{type:"number"},[M]:{type:"string"},[t+"Color"]:{type:"string",default:d,copyStyle:!0},[t+"BgColor"]:{ | |
| 6538 | +type:"string",default:u,copyStyle:!0},[t+"HoverBgColor"]:{type:"string",default:u,copyStyle:!0},[t+"HoverColor"]:{type:"string",default:p,copyStyle:!0},[t+"Type"]:{type:"string",default:m,copyStyle:!0},[t+"Shape"]:{type:"string",default:h,copyStyle:!0},...x,...k,...v,..._,...R,...S,...(0,a.D$)(t+"Padding",!1),...(0,l.D$)(t+"Border",!0),...(0,n.D$)(t+"boxShadow"),...W};return i&&s&&(P[g].default=i,P[f].default=s),r&&(P[y].default=r),b||(P[g]={...P[g],source:"attribute",selector:"svg.ablocks-svg-icon path",attribute:"d"},P[f]={...P[f],source:"attribute",selector:"svg.ablocks-svg-icon",attribute:"viewBox"}),P},d={ | |
| 6490 | 6539 | icons:["address-book","address-card","angry","arrow-alt-circle-down","arrow-alt-circle-left","arrow-alt-circle-right","arrow-alt-circle-up","bell","bell-slash","bookmark","building","calendar","calendar-alt","calendar-check","calendar-minus","calendar-plus","calendar-times","caret-square-down","caret-square-left","caret-square-right","caret-square-up","chart-bar","check-circle","check-square","circle","clipboard","clock","clone","closed-captioning","comment","comment-alt","comment-dots","comments","compass","copy","copyright","credit-card","dizzy","dot-circle","edit","envelope","envelope-open","eye","eye-slash","file","file-alt","file-archive","file-audio","file-code","file-excel","file-image","file-pdf","file-powerpoint","file-video","file-word","flag","flushed","folder","folder-open","font-awesome-logo-full","frown","frown-open","futbol","gem","grimace","grin","grin-alt","grin-beam","grin-beam-sweat","grin-hearts","grin-squint","grin-squint-tears","grin-stars","grin-tears","grin-tongue","grin-tongue-squint","grin-tongue-wink","grin-wink","hand-lizard","hand-paper","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-rock","hand-scissors","hand-spock","handshake","hdd","heart","hospital","hourglass","id-badge","id-card","image","images","keyboard","kiss","kiss-beam","kiss-wink-heart","laugh","laugh-beam","laugh-squint","laugh-wink","lemon","life-ring","lightbulb","list-alt","map","meh","meh-blank","meh-rolling-eyes","minus-square","money-bill-alt","moon","newspaper","object-group","object-ungroup","paper-plane","pause-circle","play-circle","plus-square","question-circle","registered","sad-cry","sad-tear","save","share-square","smile","smile-beam","smile-wink","snowflake","square","star","star-half","sticky-note","stop-circle","sun","surprise","thumbs-down","thumbs-up","times-circle","tired","trash-alt","user","user-circle","window-close","window-maximize","window-minimize","window-restore"] |
| 6491 | 6540 | },u={ |
| 6492 | 6541 | icons:["ad","address-book","address-card","adjust","air-freshener","align-center","align-justify","align-left","align-right","allergies","ambulance","american-sign-language-interpreting","anchor","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angle-down","angle-left","angle-right","angle-up","angry","ankh","apple-alt","archive","archway","arrow-alt-circle-down","arrow-alt-circle-left","arrow-alt-circle-right","arrow-alt-circle-up","arrow-circle-down","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-down","arrow-left","arrow-right","arrow-up","arrows-alt","arrows-alt-h","arrows-alt-v","assistive-listening-systems","asterisk","at","atlas","atom","audio-description","award","baby","baby-carriage","backspace","backward","bacon","bacteria","bacterium","bahai","balance-scale","balance-scale-left","balance-scale-right","ban","band-aid","barcode","bars","baseball-ball","basketball-ball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed","beer","bell","bell-slash","bezier-curve","bible","bicycle","biking","binoculars","biohazard","birthday-cake","blender","blender-phone","blind","blog","bold","bolt","bomb","bone","bong","book","book-dead","book-medical","book-open","book-reader","bookmark","border-all","border-none","border-style","bowling-ball","box","box-open","box-tissue","boxes","braille","brain","bread-slice","briefcase","briefcase-medical","broadcast-tower","broom","brush","bug","building","bullhorn","bullseye","burn","bus","bus-alt","business-time","calculator","calendar","calendar-alt","calendar-check","calendar-day","calendar-minus","calendar-plus","calendar-times","calendar-week","camera","camera-retro","campground","candy-cane","cannabis","capsules","car","car-alt","car-battery","car-crash","car-side","caravan","caret-down","caret-left","caret-right","caret-square-down","caret-square-left","caret-square-right","caret-square-up","caret-up","carrot","cart-arrow-down","cart-plus","cash-register","cat","certificate","chair","chalkboard","chalkboard-teacher","charging-station","chart-area","chart-bar","chart-line","chart-pie","check","check-circle","check-double","check-square","cheese","chess","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chevron-circle-down","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-left","chevron-right","chevron-up","child","church","circle","circle-notch","city","clinic-medical","clipboard","clipboard-check","clipboard-list","clock","clone","closed-captioning","cloud","cloud-download-alt","cloud-meatball","cloud-moon","cloud-moon-rain","cloud-rain","cloud-showers-heavy","cloud-sun","cloud-sun-rain","cloud-upload-alt","cocktail","code","code-branch","coffee","cog","cogs","coins","columns","comment","comment-alt","comment-dollar","comment-dots","comment-medical","comment-slash","comments","comments-dollar","compact-disc","compass","compress","compress-alt","compress-arrows-alt","concierge-bell","cookie","cookie-bite","copy","copyright","couch","credit-card","crop","crop-alt","cross","crosshairs","crow","crown","crutch","cube","cubes","cut","database","deaf","democrat","desktop","dharmachakra","diagnoses","dice","dice-d20","dice-d6","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","digital-tachograph","directions","divide","dizzy","dna","dog","dollar-sign","dolly","dolly-flatbed","donate","door-closed","door-open","dot-circle","dove","download","drafting-compass","dragon","draw-polygon","drum","drum-steelpan","drumstick-bite","dumbbell","dumpster","dumpster-fire","dungeon","edit","egg","eject","ellipsis-h","ellipsis-v","envelope","envelope-open","envelope-open-text","envelope-square","equals","eraser","ethernet","euro-sign","exchange-alt","exclamation","exclamation-circle","exclamation-triangle","expand","expand-alt","expand-arrows-alt","external-link-alt","external-link-square-alt","eye","eye-dropper","eye-slash","fan","fast-backward","fast-forward","fax","feather","feather-alt","female","fighter-jet","file","file-alt","file-archive","file-audio","file-code","file-contract","file-csv","file-download","file-excel","file-export","file-image","file-import","file-invoice","file-invoice-dollar","file-medical","file-medical-alt","file-pdf","file-powerpoint","file-prescription","file-signature","file-upload","file-video","file-word","fill","fill-drip","film","filter","fingerprint","fire","fire-alt","fire-extinguisher","first-aid","fish","fist-raised","flag","flag-checkered","flag-usa","flask","flushed","folder","folder-minus","folder-open","folder-plus","font","football-ball","forward","frog","frown","frown-open","funnel-dollar","futbol","gamepad","gas-pump","gavel","gem","genderless","ghost","gift","gifts","glass-cheers","glass-martini","glass-martini-alt","glass-whiskey","glasses","globe","globe-africa","globe-americas","globe-asia","globe-europe","golf-ball","gopuram","graduation-cap","greater-than","greater-than-equal","grimace","grin","grin-alt","grin-beam","grin-beam-sweat","grin-hearts","grin-squint","grin-squint-tears","grin-stars","grin-tears","grin-tongue","grin-tongue-squint","grin-tongue-wink","grin-wink","grip-horizontal","grip-lines","grip-lines-vertical","grip-vertical","guitar","h-square","hamburger","hammer","hamsa","hand-holding","hand-holding-heart","hand-holding-medical","hand-holding-usd","hand-lizard","hand-middle-finger","hand-paper","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-rock","hand-scissors","hand-sparkles","hand-spock","hands","hands-helping","hands-wash","handshake","handshake-alt-slash","handshake-slash","hanukiah","hard-hat","hashtag","hat-cowboy","hat-cowboy-side","hat-wizard","hdd","head-side-cough","head-side-cough-slash","head-side-mask","head-side-virus","heading","headphones","headphones-alt","headset","heart","heart-broken","heartbeat","helicopter","highlighter","hiking","hippo","history","hockey-puck","holly-berry","home","horse","horse-head","hospital","hospital-alt","hospital-symbol","hot-tub","hotdog","hotel","hourglass","hourglass-end","hourglass-half","hourglass-start","house-damage","house-user","hryvnia","i-cursor","ice-cream","icicles","icons","id-badge","id-card","id-card-alt","igloo","image","images","inbox","indent","industry","infinity","info","info-circle","italic","jedi","joint","journal-whills","kaaba","key","keyboard","khanda","kiss","kiss-beam","kiss-wink-heart","kiwi-bird","landmark","language","laptop","laptop-code","laptop-house","laptop-medical","laugh","laugh-beam","laugh-squint","laugh-wink","layer-group","leaf","lemon","less-than","less-than-equal","level-down-alt","level-up-alt","life-ring","lightbulb","link","lira-sign","list","list-alt","list-ol","list-ul","location-arrow","lock","lock-open","long-arrow-alt-down","long-arrow-alt-left","long-arrow-alt-right","long-arrow-alt-up","low-vision","luggage-cart","lungs-virus","magic","magnet","mail-bulk","male","map","map-marked","map-marked-alt","map-marker","map-marker-alt","map-pin","map-signs","marker","mars","mars-double","mars-stroke","mars-stroke-h","mars-stroke-v","mask","medal","medkit","meh","meh-blank","meh-rolling-eyes","memory","menorah","mercury","meteor","microchip","microphone","microphone-alt","microphone-alt-slash","microphone-slash","microscope","minus","minus-circle","minus-square","mitten","mobile","mobile-alt","money-bill","money-bill-alt","money-bill-wave","money-bill-wave-alt","money-check","money-check-alt","monument","moon","mortar-pestle","mosque","motorcycle","mountain","mouse","mouse-pointer","mug-hot","music","network-wired","neuter","newspaper","not-equal","notes-medical","object-group","object-ungroup","oil-can","om","otter","outdent","pager","paint-brush","paint-roller","palette","pallet","paper-plane","paperclip","parachute-box","paragraph","parking","passport","pastafarianism","paste","pause","pause-circle","paw","peace","pen","pen-alt","pen-fancy","pen-nib","pen-square","pencil-alt","pencil-ruler","people-arrows","people-carry","pepper-hot","percent","percentage","person-booth","phone","phone-alt","phone-slash","phone-square","phone-square-alt","phone-volume","photo-video","plane-slash","piggy-bank","pills","pizza-slice","place-of-worship","plane","plane-arrival","plane-departure","play","play-circle","plug","plus","plus-circle","plus-square","podcast","poll","poll-h","poo","poo-storm","poop","portrait","pound-sign","power-off","pray","praying-hands","prescription","prescription-bottle","prescription-bottle-alt","print","procedures","project-diagram","pump-medical","pump-soap","puzzle-piece","qrcode","question","question-circle","quidditch","quote-left","quote-right","quran","radiation","radiation-alt","rainbow","random","receipt","record-vinyl","recycle","redo","redo-alt","registered","remove-format","reply","reply-all","republican","restroom","retweet","ribbon","ring","road","robot","rocket","route","rss","rss-square","ruble-sign","ruler","ruler-combined","ruler-horizontal","ruler-vertical","running","rupee-sign","sad-cry","sad-tear","satellite","satellite-dish","save","school","screwdriver","scroll","sd-card","search","search-dollar","search-location","search-minus","search-plus","seedling","server","shapes","share","share-alt","share-alt-square","share-square","shekel-sign","shield-alt","shield-virus","ship","shipping-fast","shoe-prints","shopping-bag","shopping-basket","shopping-cart","shower","shuttle-van","sign","sign-in-alt","sign-language","sign-out-alt","signal","signature","sim-card","sink","sitemap","skating","skiing","skiing-nordic","skull","skull-crossbones","slash","sleigh","sliders-h","smile","smile-beam","smile-wink","smog","smoking","smoking-ban","sms","snowboarding","snowflake","snowman","snowplow","soap","socks","solar-panel","sort","sort-alpha-down","sort-alpha-down-alt","sort-alpha-up","sort-alpha-up-alt","sort-amount-down","sort-amount-down-alt","sort-amount-up","sort-amount-up-alt","sort-down","sort-numeric-down","sort-numeric-down-alt","sort-numeric-up","sort-numeric-up-alt","sort-up","spa","space-shuttle","spell-check","spider","spinner","splotch","spray-can","square","square-full","square-root-alt","stamp","star","star-and-crescent","star-half","star-half-alt","star-of-david","star-of-life","step-backward","step-forward","stethoscope","sticky-note","stop","stop-circle","stopwatch","stopwatch-20","store","store-alt","store-alt-slash","store-slash","stream","street-view","strikethrough","stroopwafel","subscript","subway","suitcase","suitcase-rolling","sun","superscript","surprise","swatchbook","swimmer","swimming-pool","synagogue","sync","sync-alt","syringe","table","table-tennis","tablet","tablet-alt","tablets","tachometer-alt","tag","tags","tape","tasks","taxi","teeth","teeth-open","temperature-high","temperature-low","tenge","terminal","text-height","text-width","th","th-large","th-list","theater-masks","thermometer","thermometer-empty","thermometer-full","thermometer-half","thermometer-quarter","thermometer-three-quarters","thumbs-down","thumbs-up","thumbtack","ticket-alt","times","times-circle","tint","tint-slash","tired","toggle-off","toggle-on","toilet","toilet-paper","toilet-paper-slash","toolbox","tools","tooth","torah","torii-gate","tractor","trademark","traffic-light","trailer","train","tram","transgender","transgender-alt","trash","trash-alt","trash-restore","trash-restore-alt","tree","trophy","truck","truck-loading","truck-monster","truck-moving","truck-pickup","tshirt","tty","tv","umbrella","umbrella-beach","underline","undo","undo-alt","universal-access","university","unlink","unlock","unlock-alt","upload","user","user-alt","user-alt-slash","user-astronaut","user-check","user-circle","user-clock","user-cog","user-edit","user-friends","user-graduate","user-injured","user-lock","user-md","user-minus","user-ninja","user-nurse","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-times","users","users-slash","users-cog","utensil-spoon","utensils","vector-square","venus","venus-double","venus-mars","vest","vest-patches","vial","vials","video","video-slash","vihara","virus","virus-slash","viruses","voicemail","volleyball-ball","volume-down","volume-mute","volume-off","volume-up","vote-yea","vr-cardboard","walking","wallet","warehouse","water","wave-square","weight","weight-hanging","wheelchair","wifi","wind","window-close","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass","wine-glass-alt","won-sign","wrench","x-ray","yen-sign","yin-yang"] |
| 6493 | 6542 | },p={ |
| @@ -6495,16 +6544,16 @@ | ||
| 6495 | 6544 | },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, |
| 6496 | 6545 | 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]), |
| 6497 | 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:"", |
| 6498 | 6547 | 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:""}) |
| 6499 | -;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=t=>void 0!==t&&""!==t;let g;const f=a().get(e,o),y=a().get(e,`${o}Tablet`),T=a().get(e,`${o}Mobile`);switch(n){case"Mobile":g=h(T)?T:h(d)?d:h(y)?y:h(b)?b:h(f)?f:r;break;case"Tablet":g=h(y)?y:h(b)?b:h(f)?f:r;break;case"":g=h(f)?f:r;break;default:{const t=a().get(e,`${o}${n}`);g=h(t)?t:h(f)?f:r;break}}if(h(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})=>{const a=`${e}Unit`,l=t[a]||i,n=t[`${a}Tablet`]||l,s=t[`${a}Mobile`]||n;return"Tablet"===o?n:"Mobile"===o?s:o&&t[`${a}${o}`]||l}},74411(t,e,i){"use strict";i.d(e,{D$:()=>l,qD:()=>n,tJ:()=>a}) | |
| 6500 | -;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={};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, | |
| 6501 | -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";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, | |
| 6502 | -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,d[e]=t?t.concat(o):[o])}else d[e]||(i=!1,d[e]=[]);if(i)return!1;const o=e.closest("html").parentNode;1===Object.keys(d).length&&(t=>{const e=u({href:"https://fonts.googleapis.com",rel:"preconnect",document:t}),i=u({href:"https://fonts.gstatic.com",rel:"preconnect",extraAttribute:{attributeName:"crossorigin"},document:t});t.head.appendChild(e),t.head.appendChild(i)})(o),(t=>{const e=[];for(const t in d){const i=d[t].filter(e=>n[t]?.variants?.includes(e)),o=t.replace(/\s+/g,"+");i.length>0?(i.sort(),e.push(`${o}:wght@${i.join(";")}`)):e.push(o)}if(0===e.length)return;const i=`https://fonts.googleapis.com/css2?family=${e.join("&family=")}&display=swap`,o=t.getElementById("ablocks-google-fonts-loader"),a=u({href:i,id:"ablocks-google-fonts-loader",document:t}) | |
| 6503 | -;t.head.appendChild(a),o&&d.length>2&&t.head.removeChild(o)})(o)},m=t=>{const e={},i=["typography","animatedTypography","titleTypography","subtitleTypography","descriptionTypography","buttonTypography","headingTypography","contentTypography","labelTypography","inputTypography"];for(const o of i){const i=t[o];if(i&&i.fontFamily){const t=i.fontFamily,o=i.weight||"400";n[t]&&(e[t]||(e[t]=[]),e[t].includes(o)||e[t].push(o))}}return e},h=(t=!1,e={})=>{const i={fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px"};return t?{...i,fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"", | |
| 6504 | -wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px",...e}:{...i,...e}},g=(t,e=!1,i={})=>({[t+"Global"]:{type:"string",default:""},[t]:{type:"object",default:h(e,i),copyStyle:!0}}),f=(t,e="",i="")=>{const o=i&&(0,a.IO)(i)||{},l={...h(!!e),...t},n={},d=(t,e,a,l,s)=>{""!==o[l]&&void 0!==o[l]?n[t]=`var(--ablocks-${i}-${s})`:""!==e&&void 0!==e&&(n[t]=a?`${e}${a}`:e)};if(""!==o.fontFamily&&void 0!==o.fontFamily)n["font-family"]=`var(--ablocks-${i}-font-family)`;else if(l.fontFamily){const t=((t,e="")=>{const i=String(t||"").trim();if(!i||"Default"===i)return"";if("inherit"===i.toLowerCase())return"inherit";if(i.includes(",")||i.includes("("))return i;const o=((t,e="")=>{const i=String(e||"").trim();return i?r.includes(i.toLowerCase())?i.toLowerCase():"none"===i.toLowerCase()?"":i:b[s[t]]||"sans-serif"})(i,e);return o?`${c(i)}, ${o}`:c(i)})(l.fontFamily,l.fontFallback);t&&(n["font-family"]=t)}return d("font-weight",l.weight,null,"weight","weight"), | |
| 6505 | -d("text-transform",l.transform,null,"transform","transform"),d("font-style",l.style,null,"style","style"),d("text-decoration",l.decoration,null,"decoration","decoration"),d("font-size",l["fontSize"+e],l["fontSizeUnit"+e],"fontSize"+e,"font-size"+(e?"-"+e.toLowerCase():"")),d("line-height",l["lineHeight"+e],l["lineHeightUnit"+e],"lineHeight"+e,"line-height"+(e?"-"+e.toLowerCase():"")),d("letter-spacing",l["letterSpacing"+e],l["letterSpacingUnit"+e],"letterSpacing"+e,"letter-spacing"+(e?"-"+e.toLowerCase():"")),d("word-spacing",l["wordSpacing"+e],l["wordSpacingUnit"+e],"wordSpacing"+e,"word-spacing"+(e?"-"+e.toLowerCase():"")),n},y=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("100 (Thin)","ablocks"),value:"100"},{label:(0,o.__)("200 (Extra Light)","ablocks"),value:"200"},{label:(0,o.__)("300 (Light)","ablocks"),value:"300"},{label:(0,o.__)("400 (Normal)","ablocks"),value:"400"},{label:(0,o.__)("500 (Medium)","ablocks"),value:"500"},{label:(0, | |
| 6506 | -o.__)("600 (Semi Bold)","ablocks"),value:"600"},{label:(0,o.__)("700 (Bold)","ablocks"),value:"700"},{label:(0,o.__)("800 (Extra Bold)","ablocks"),value:"800"},{label:(0,o.__)("900 (Black)","ablocks"),value:"900"}],T=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("Uppercase","ablocks"),value:"uppercase"},{label:(0,o.__)("Lowercase","ablocks"),value:"lowercase"},{label:(0,o.__)("Capitalize","ablocks"),value:"capitalize"},{label:(0,o.__)("Normal","ablocks"),value:"none"}],H=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("Normal","ablocks"),value:"normal"},{label:(0,o.__)("Italic","ablocks"),value:"italic"},{label:(0,o.__)("Oblique","ablocks"),value:"oblique"}],M=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("Underline","ablocks"),value:"underline"},{label:(0,o.__)("Overline","ablocks"),value:"overline"},{label:(0,o.__)("Line Through","ablocks"),value:"line-through"},{label:(0,o.__)("None","ablocks"),value:"none" | |
| 6548 | +;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 | +;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 | +;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, | |
| 6551 | +d[e]=t?t.concat(o):[o])}else d[e]||(i=!1,d[e]=[]);if(i)return!1;const o=e.closest("html").parentNode;1===Object.keys(d).length&&(t=>{const e=u({href:"https://fonts.googleapis.com",rel:"preconnect",document:t}),i=u({href:"https://fonts.gstatic.com",rel:"preconnect",extraAttribute:{attributeName:"crossorigin"},document:t});t.head.appendChild(e),t.head.appendChild(i)})(o),(t=>{const e=[];for(const t in d){const i=d[t].filter(e=>n[t]?.variants?.includes(e)),o=t.replace(/\s+/g,"+");i.length>0?(i.sort(),e.push(`${o}:wght@${i.join(";")}`)):e.push(o)}if(0===e.length)return;const i=`https://fonts.googleapis.com/css2?family=${e.join("&family=")}&display=swap`,o=t.getElementById("ablocks-google-fonts-loader"),a=u({href:i,id:"ablocks-google-fonts-loader",document:t});t.head.appendChild(a),o&&d.length>2&&t.head.removeChild(o)})(o)},m=t=>{ | |
| 6552 | +const e={},i=["typography","animatedTypography","titleTypography","subtitleTypography","descriptionTypography","buttonTypography","headingTypography","contentTypography","labelTypography","inputTypography"];for(const o of i){const i=t[o];if(i&&i.fontFamily){const t=i.fontFamily,o=i.weight||"400";n[t]&&(e[t]||(e[t]=[]),e[t].includes(o)||e[t].push(o))}}return e},h=(t=!1,e={})=>{const i={fontFamily:"",weight:"",transform:"",style:"",decoration:"",fontSize:"",fontSizeUnit:"px",lineHeight:"",lineHeightUnit:"px",letterSpacing:"",letterSpacingUnit:"px",wordSpacing:"",wordSpacingUnit:"px"};return t?{...i,fontSizeTablet:"",fontSizeMobile:"",fontSizeUnitTablet:"px",fontSizeUnitMobile:"px",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnitTablet:"px",lineHeightUnitMobile:"px",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnitTablet:"px",letterSpacingUnitMobile:"px",wordSpacingTablet:"",wordSpacingMobile:"",wordSpacingUnitTablet:"px",wordSpacingUnitMobile:"px",...e}:{...i,...e} | |
| 6553 | +},g=(t,e=!1,i={})=>({[t+"Global"]:{type:"string",default:""},[t]:{type:"object",default:h(e,i),copyStyle:!0}}),f=(t,e="",i="")=>{const o=i&&(0,a.IO)(i)||{},l={...h(!!e),...t},n={},d=(t,e,a,l,s)=>{""!==o[l]&&void 0!==o[l]?n[t]=`var(--ablocks-${i}-${s})`:""!==e&&void 0!==e&&(n[t]=a?`${e}${a}`:e)};if(""!==o.fontFamily&&void 0!==o.fontFamily)n["font-family"]=`var(--ablocks-${i}-font-family)`;else if(l.fontFamily){const t=((t,e="")=>{const i=String(t||"").trim();if(!i||"Default"===i)return"";if("inherit"===i.toLowerCase())return"inherit";if(i.includes(",")||i.includes("("))return i;const o=((t,e="")=>{const i=String(e||"").trim();return i?r.includes(i.toLowerCase())?i.toLowerCase():"none"===i.toLowerCase()?"":i:b[s[t]]||"sans-serif"})(i,e);return o?`${c(i)}, ${o}`:c(i)})(l.fontFamily,l.fontFallback);t&&(n["font-family"]=t)}d("font-weight",l.weight,null,"weight","weight"),d("text-transform",l.transform,null,"transform","transform"),d("font-style",l.style,null,"style","style"), | |
| 6554 | +d("text-decoration",l.decoration,null,"decoration","decoration");const u=i=>{const o=l[i+"Unit"+e];return o||!(0,a.vb)(e)?o:(0,a.Ic)(t,i+"Unit",e)||"px"};return d("font-size",l["fontSize"+e],u("fontSize"),"fontSize"+e,"font-size"+(e?"-"+e.toLowerCase():"")),d("line-height",l["lineHeight"+e],u("lineHeight"),"lineHeight"+e,"line-height"+(e?"-"+e.toLowerCase():"")),d("letter-spacing",l["letterSpacing"+e],u("letterSpacing"),"letterSpacing"+e,"letter-spacing"+(e?"-"+e.toLowerCase():"")),d("word-spacing",l["wordSpacing"+e],u("wordSpacing"),"wordSpacing"+e,"word-spacing"+(e?"-"+e.toLowerCase():"")),n},y=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("100 (Thin)","ablocks"),value:"100"},{label:(0,o.__)("200 (Extra Light)","ablocks"),value:"200"},{label:(0,o.__)("300 (Light)","ablocks"),value:"300"},{label:(0,o.__)("400 (Normal)","ablocks"),value:"400"},{label:(0,o.__)("500 (Medium)","ablocks"),value:"500"},{label:(0,o.__)("600 (Semi Bold)","ablocks"),value:"600"},{label:(0, | |
| 6555 | +o.__)("700 (Bold)","ablocks"),value:"700"},{label:(0,o.__)("800 (Extra Bold)","ablocks"),value:"800"},{label:(0,o.__)("900 (Black)","ablocks"),value:"900"}],T=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("Uppercase","ablocks"),value:"uppercase"},{label:(0,o.__)("Lowercase","ablocks"),value:"lowercase"},{label:(0,o.__)("Capitalize","ablocks"),value:"capitalize"},{label:(0,o.__)("Normal","ablocks"),value:"none"}],H=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("Normal","ablocks"),value:"normal"},{label:(0,o.__)("Italic","ablocks"),value:"italic"},{label:(0,o.__)("Oblique","ablocks"),value:"oblique"}],M=[{label:(0,o.__)("Default","ablocks"),value:""},{label:(0,o.__)("Underline","ablocks"),value:"underline"},{label:(0,o.__)("Overline","ablocks"),value:"overline"},{label:(0,o.__)("Line Through","ablocks"),value:"line-through"},{label:(0,o.__)("None","ablocks"),value:"none" | |
| 6507 | 6556 | }],x=({cssObject:t,attributeValue:e,setAttributes:i,deviceType:o,attributeName:l})=>{if(t["font-family"]||t["font-size"]?.value||t["font-style"]||t["font-weight"]||t["text-transform"]||t["text-decoration"]||t["text-decoration-line"]||t["line-height"]?.value||t["letter-spacing"]?.value||t["word-spacing"]?.value){let n=t["text-decoration"]||t["text-decoration-line"]||e.decoration;n=n.replace("strikethrough","line-through");const s={[`fontFamily${o}`]:t["font-family"]||e[`fontFamily${o}`],[`fontSize${o}`]:t["font-size"]?.value||e[`fontSize${o}`],[`fontSizeUnit${o}`]:t["font-size"]?.unit||e[`fontSizeUnit${o}`],style:t["font-style"]||e.style,weight:t["font-weight"]||e.weight,transform:t["text-transform"]||e.transform,decoration:n,[`lineHeight${o}`]:t["line-height"]?.value||e[`lineHeight${o}`],[`lineHeightUnit${o}`]:t["line-height"]?.unit||e[`lineHeightUnit${o}`],[`letterSpacing${o}`]:t["letter-spacing"]?.value||e[`letterSpacing${o}`], |
| 6508 | 6557 | [`letterSpacingUnit${o}`]:t["letter-spacing"]?.unit||e[`letterSpacingUnit${o}`],[`wordSpacing${o}`]:t["word-spacing"]?.value||e[`wordSpacing${o}`],[`wordSpacingUnit${o}`]:t["word-spacing"]?.unit||e[`wordSpacingUnit${o}`]};i({[l]:s}),(0,a.An)({message:"Typography Style Successfully Pasted",config:{id:"ablocks-notice-figma-typography-paste-success-notice",type:"snackbar"}})}else(0,a.An)({message:"Copy/Paste Failed: Wrong Typography Style",config:{id:"ablocks-notice-figma-typography-paste-error-notice",type:"snackbar"}})}},43271(t,e,i){"use strict";i.d(e,{Ay:()=>f,Vj:()=>h});var o=i(52619),a=i(80241),l=i(5905),n=i(51317),s=i(4480),r=i(73249),b=i(19419),c=i(15039),d=i(57654),u=i(76619),p=i(77168),m=i(80554);const h=(0,c.D)("_animation",!0);let g=(0,o.applyFilters)("ablocks.registerBlockGlobalAttributes",{});const f={...(0,a.D$)("_margin",!0),...(0,a.D$)("_padding",!0),...(0,l.D$)("_width",!0),...(0,p.D$)("_border",!0),...(0,m.D$)("_boxShadow",!0),...(0,n.D$)("_position",!0),...(0, |
| 6509 | 6558 | d.D$)("_background",!0),...(0,s.D$)("_zIndex",!0),...(0,r.D$)("_transform",!0),...(0,b.D$)("_mask",!0),...h,...(0,u.D$)(),_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}},...g}},76619(t,e,i){"use strict";i.d(e,{D$:()=>o,iR:()=>l,qD:()=>a});const o=()=>({_hide_on_desktop:{type:"bool",default:!1,copyStyle:!0},_hide_on_tablet:{type:"bool",default:!1,copyStyle:!0},_hide_on_mobile:{type:"bool",default:!1,copyStyle:!0}}),a=(t,e="")=>!e&&t._hide_on_desktop||"Tablet"===e&&t._hide_on_tablet||"Mobile"===e&&t._hide_on_mobile?{display:"inherit","background-image":"repeating-linear-gradient(125deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 1px, transparent 2px, transparent 9px)"}:{},l=(t,e="")=>{const i={filter:"opacity(0.4) saturate(0)"};if(!e&&t._hide_on_desktop)return i;if("Tablet"===e){if(t._hide_on_tablet)return i;if(t._hide_on_desktop)return{filter:"unset"}} |
| 6510 | 6559 | if("Mobile"===e){if(t._hide_on_mobile)return i;if(t._hide_on_tablet)return{filter:"unset"}}return{}}},15039(t,e,i){"use strict";i.d(e,{D:()=>a,t:()=>o});const o=(t=!1)=>t?{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:1.25,animationDelay:0}:{animationType:"",animationDuration:1.25,animationDelay:0},a=(t,e=!1)=>({[t]:{type:"object",default:o(e),copyStyle:!0}})},19419(t,e,i){"use strict";i.d(e,{D$:()=>l,qD:()=>n,tJ:()=>a});var o=i(36168);const a=(t=!1)=>t?{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", |
| @@ -6509,39 +6558,39 @@ | ||
| 6509 | 6558 | d.D$)("_background",!0),...(0,s.D$)("_zIndex",!0),...(0,r.D$)("_transform",!0),...(0,b.D$)("_mask",!0),...h,...(0,u.D$)(),_custom_css:{type:"string",default:""},_animation_element_trigger:{type:"array",default:[],items:{type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}},...g}},76619(t,e,i){"use strict";i.d(e,{D$:()=>o,iR:()=>l,qD:()=>a});const o=()=>({_hide_on_desktop:{type:"bool",default:!1,copyStyle:!0},_hide_on_tablet:{type:"bool",default:!1,copyStyle:!0},_hide_on_mobile:{type:"bool",default:!1,copyStyle:!0}}),a=(t,e="")=>!e&&t._hide_on_desktop||"Tablet"===e&&t._hide_on_tablet||"Mobile"===e&&t._hide_on_mobile?{display:"inherit","background-image":"repeating-linear-gradient(125deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 1px, transparent 2px, transparent 9px)"}:{},l=(t,e="")=>{const i={filter:"opacity(0.4) saturate(0)"};if(!e&&t._hide_on_desktop)return i;if("Tablet"===e){if(t._hide_on_tablet)return i;if(t._hide_on_desktop)return{filter:"unset"}} |
| 6510 | 6559 | if("Mobile"===e){if(t._hide_on_mobile)return i;if(t._hide_on_tablet)return{filter:"unset"}}return{}}},15039(t,e,i){"use strict";i.d(e,{D:()=>a,t:()=>o});const o=(t=!1)=>t?{animationType:"",animationTypeTablet:"",animationTypeMobile:"",animationDuration:1.25,animationDelay:0}:{animationType:"",animationDuration:1.25,animationDelay:0},a=(t,e=!1)=>({[t]:{type:"object",default:o(e),copyStyle:!0}})},19419(t,e,i){"use strict";i.d(e,{D$:()=>l,qD:()=>n,tJ:()=>a});var o=i(36168);const a=(t=!1)=>t?{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", |
| 6511 | 6560 | yPositionUnitMobile:"px",yPosition:"0",yPositionTablet:"0",yPositionMobile:"0"}:{mask:!1,maskShape:"circle",maskSize:"",maskPosition:"",maskRepeat:"",scaleUnit:"px",scale:"0",xPosition:"",xPositionUnit:"px",yPosition:"",yPositionUnit:"px"},l=(t,e=!1)=>({[t]:{type:"object",default:a(e),copyStyle:!0}}),n=(t,e="")=>{const i={...a(!!e),...t},l={};if(i.mask&&""===e&&("custom"===i.maskShape?l["mask-image"]=`url(${i.customMaskShape})`:l["mask-image"]=`url(${o.hq}/assets/images/mask-shapes/${i.maskShape}.svg)`,l["-webkit-mask-image"]=l["mask-image"],l["mask-size"]="contain",l["-webkit-mask-size"]="contain",l["mask-position"]="center center",l["-webkit-mask-position"]="center center",l["mask-repeat"]="no-repeat",l["-webkit-mask-repeat"]="no-repeat"),i["maskSize"+e]&&"custom"!==i["maskSize"+e]&&(l["mask-size"]=i["maskSize"+e],l["-webkit-mask-size"]=l["mask-size"]),i["maskSize"+e]&&"custom"===i["maskSize"+e]&&i["scaleUnit"+e]&&(l["mask-size"]=`${i["scale"+e]}${i["scaleUnit"+e]}`, |
| 6512 | 6561 | l["-webkit-mask-size"]=l["mask-size"]),i["maskPosition"+e]&&"custom"!==i["maskPosition"+e]&&(l["mask-position"]=i["maskPosition"+e],l["-webkit-mask-position"]=l["mask-position"]),"custom"===i["maskPosition"+e]){const t=""!==i["xPosition"+e]?i["xPosition"+e]:"0",o=""!==i["yPosition"+e]?i["yPosition"+e]:"0",a=i["xPositionUnit"+e],n=i["yPositionUnit"+e];l["mask-position"]=`${t}${a} ${o}${n}`,l["-webkit-mask-position"]=l["mask-position"]}return i["maskRepeat"+e]&&(l["mask-repeat"]=i["maskRepeat"+e],l["-webkit-mask-repeat"]=l["mask-repeat"]),l}},51317(t,e,i){"use strict";i.d(e,{D$:()=>s,Jk:()=>b,p1:()=>c,qD:()=>r,tJ:()=>n,vO:()=>l});var o=i(27723),a=i(36168);const l=[{value:"relative",label:(0,o.__)("Default","ablocks")},{value:"absolute",label:(0,o.__)("Absolute","ablocks")},{value:"fixed",label:(0,o.__)("Fixed","ablocks")}],n=(t=!1)=>t?{positionType:"relative",positionTypeTablet:"",positionTypeMobile:"",hOrientation:"",hOffset:"",hOffsetTablet:"",hOffsetMobile:"",hOffsetUnit:"px", |
| 6513 | -hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}:{positionType:"relative",hOrientation:"",hOffset:"0",hOffsetUnit:"px",vOrientation:"",vOffset:"0",vOffsetUnit:"px"},s=(t,e=!1)=>({[t]:{type:"object",default:n(e),copyStyle:!0}}),r=(t,e="",i="")=>{const o={...n(!!i),...t},l={},s=(0,a.l_)({unit:o.hOffsetUnit,unitTablet:o.hOffsetUnitTablet,unitMobile:o.hOffsetUnitMobile},i),r=(0,a.l_)({unit:o.vOffsetUnit,unitTablet:o.vOffsetUnitTablet,unitMobile:o.vOffsetUnitMobile},i);return o.positionType&&(l[`${e}`]=o.positionType),"relative"!==o.positionType&&("right"===o["hOrientation"+i]?(l.right=o["hOffset"+i]+s,delete l.left):o["hOffset"+i]&&(l.left=o["hOffset"+i]+s,delete l.right),"bottom"===o["vOrientation"+i]?(l.bottom=o["vOffset"+i]+r,delete l.top):o["vOffset"+i]&&(l.top=o["vOffset"+i]+r,delete l.bottom)),l},b=[{label:"arrow-left-alt",value:"left",icon:"left"},{ | |
| 6514 | -label:"arrow-right-alt",value:"right",icon:"right"}],c=[{label:"arrow-up-alt",value:"top",icon:"align-top"},{label:"arrow-down-alt",value:"bottom",icon:"align-bottom"}]},73249(t,e,i){"use strict";i.d(e,{D$:()=>l,a9:()=>s,qD:()=>n,tJ:()=>a});var o=i(36168);const a=(t=!1)=>t?{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:"", | |
| 6515 | -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:"",isApplied:!1 | |
| 6516 | -}:{rotate:"",rotate3D:"",rotateX:"",rotateY:"",rotateP:"",offsetX:"",offsetXUnit:"px",offsetY:"",offsetYUnit:"px",scaleProportions:!1,scale:"",scaleX:"",scaleY:"",skewX:"",skewY:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",yAnchorPoint:"",rotateH:"",rotate3DH:!1,rotateXH:"",rotateYH:"",rotatePH:"",offsetXH:"",offsetXHUnit:"px",offsetYH:"",offsetYHUnit:"px",scaleH:"",scaleXH:"",scaleYH:"",skewXH:"",skewYH:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",yAnchorPointH:"",transitionH:"",isApplied:!1},l=t=>({[t]:{type:"object",default:a(),copyStyle:!0}}),n=(t,e="",i="")=>{const l={...a(!!i),...t},n={},s=(0,o.l_)({unit:l.offsetXUnit||"px",unitTablet:l.offsetXUnitTablet||"px",unitMobile:l.offsetXUnitMobile||"px"},i),r=(0,o.l_)({unit:l.offsetYUnit||"px",unitTablet:l.offsetYUnitTablet||"px",unitMobile:l.offsetYUnitMobile||"px"},i),b=[];let c="";return""!==l["rotate"+i]&&void 0!==l["rotate"+i]&&b.push(`rotate(${l["rotate"+i]}deg)`), | |
| 6517 | -""!==l["rotateX"+i]&&void 0!==l["rotateX"+i]&&b.push(`rotateX(${l["rotateX"+i]}deg)`),""!==l["rotateY"+i]&&void 0!==l["rotateY"+i]&&b.push(`rotateY(${l["rotateY"+i]}deg)`),!1!==l["rotate3D"+i]&&b.push(`rotateZ(${l["rotate"+i]?l["rotate"+i]:0}deg)`),""!==l["rotateP"+i]&&b.push(`perspective(${l["rotateP"+i]?l["rotateP"+i]:0}px)`),""!==l["scale"+i]&&void 0!==l["scale"+i]&&b.push(`scale(${l["scale"+i]})`),void 0!==l["scaleX"+i]&&""!==l["scaleX"+i]&&b.push(`scaleX(${l["scaleX"+i]})`),void 0!==l["scaleY"+i]&&""!==l["scaleY"+i]&&b.push(`scaleY(${l["scaleY"+i]})`),void 0!==l.flipHorizontal&&!1!==l.flipHorizontal&&b.push("scaleX(-1)"),void 0!==l.flipVertical&&!1!==l.flipVertical&&b.push("scaleY(-1)"),""!==l["offsetX"+i]&&void 0!==l["offsetX"+i]&&b.push(`translateX(${l["offsetX"+i]+s})`),""!==l["offsetY"+i]&&void 0!==l["offsetY"+i]&&b.push(`translateY(${l["offsetY"+i]+r})`),void 0!==l["skewX"+i]&&""!==l["skewX"+i]&&b.push(`skewX(${l["skewX"+i]}deg)`), | |
| 6518 | -void 0!==l["skewY"+i]&&""!==l["skewY"+i]&&b.push(`skewY(${l["skewY"+i]}deg)`),l["xAnchorPoint"+i]&&(c=`${l["yAnchorPoint"+i]} ${l["xAnchorPoint"+i]}`),l["yAnchorPoint"+i]&&(c=`${l.yAnchorPoint} ${l.xAnchorPoint}`),c&&(n["transform-origin"]=c),b.length>0&&(n[e]=b.join(" ")),n},s=(t,e="",i="")=>{const l={...a(!!i),...t},n={},s=(0,o.l_)({unit:l.offsetXHUnit||"px",unitTablet:l.offsetXHUnitTablet||"px",unitMobile:l.offsetXHUnitMobile||"px"},i),r=(0,o.l_)({unit:l.offsetYHUnit||"px",unitTablet:l.offsetYHUnitTablet||"px",unitMobile:l.offsetYHUnitMobile||"px"},i),b=[];let c="";return""!==l["rotateH"+i]&&void 0!==l["rotateH"+i]&&b.push(`rotate(${l["rotateH"+i]}deg)`),""!==l["rotateXH"+i]&&void 0!==l["rotateXH"+i]&&b.push(`rotateX(${l["rotateXH"+i]}deg)`),""!==l["rotateYH"+i]&&void 0!==l["rotateYH"+i]&&b.push(`rotateY(${l["rotateYH"+i]}deg)`),!1!==l["rotate3DH"+i]&&l["rotateH"+i]>=0&&b.push(`rotateZ(${l["rotateH"+i]?l["rotateH"+i]:0}deg)`), | |
| 6519 | -""!==l["rotatePH"+i]&&b.push(`perspective(${l["rotatePH"+i]?l["rotatePH"+i]:0}px)`),""!==l["scaleH"+i]&&void 0!==l["scaleH"+i]&&b.push(`scale(${l["scaleH"+i]})`),void 0!==l["scaleXH"+i]&&""!==l["scaleXH"+i]&&b.push(`scaleX(${l["scaleXH"+i]})`),void 0!==l["scaleYH"+i]&&""!==l["scaleYH"+i]&&b.push(`scaleY(${l["scaleYH"+i]})`),void 0!==l.flipHorizontalH&&!1!==l.flipHorizontalH&&b.push("scaleX(-1)"),void 0!==l.flipVerticalH&&!1!==l.flipVerticalH&&b.push("scaleY(-1)"),""!==l["offsetXH"+i]&&void 0!==l["offsetXH"+i]&&b.push(`translateX(${l["offsetXH"+i]+s})`),""!==l["offsetYH"+i]&&void 0!==l["offsetYH"+i]&&b.push(`translateY(${l["offsetYH"+i]+r})`),void 0!==l["skewXH"+i]&&""!==l["skewXH"+i]&&b.push(`skewX(${l["skewXH"+i]}deg)`),void 0!==l["skewYH"+i]&&""!==l["skewYH"+i]&&b.push(`skewY(${l["skewYH"+i]}deg)`),l["xAnchorPointH"+i]&&(c=`${l["yAnchorPointH"+i]} ${l["xAnchorPointH"+i]}`),l["yAnchorPointH"+i]&&(c=`${l["yAnchorPointH"+i]} ${l["xAnchorPointH"+i]}`),c&&(n["transform-origin"]=c), | |
| 6520 | -b.length>0&&(n[e]=b.join(" ")),""!==l["transitionH"+i]&&void 0!==l["transitionH"+i]&&(n["transition-duration"]=`${l["transitionH"+i]}s`),n}},5905(t,e,i){"use strict";i.d(e,{D$:()=>s,qD:()=>r,tJ:()=>n,v2:()=>l});var o=i(27723),a=i(36168);const l=[{value:"default",label:(0,o.__)("Default","ablocks")},{value:"full",label:(0,o.__)("Full Width (100%)","ablocks")},{value:"auto",label:(0,o.__)("Inline (auto)","ablocks")},{value:"custom",label:(0,o.__)("Custom","ablocks")}],n=(t=!1)=>t?{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"",customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}:{widthType:"default",customWidth:"",customWidthUnit:"%"},s=(t,e=!1)=>({[t]:{type:"object",default:n(e),copyStyle:!0}}),r=(t,e="",i="")=>{const o={...n(!!i),...t},l=(0,a.Ic)(o,"widthType",i);if(l&&"default"!==l){const t={};if("full"===l)t[e]="100%";else if("auto"===l)t[e]="auto",t.display="inline-block";else if("custom"===l){ | |
| 6521 | -const l=(0,a.Ic)(o,"customWidth",i),n=(0,a.l_)({unit:o.customWidthUnit,unitTablet:o.customWidthUnitTablet,unitMobile:o.customWidthUnitMobile},i);t[e]=`${l}${n}`,l&&(t.display="inline-block")}return t}return{}}},4480(t,e,i){"use strict";i.d(e,{D$:()=>a,qD:()=>l,tJ:()=>o});const o=(t=!1)=>t?{zIndex:"",zIndexTablet:"",zIndexMobile:""}:{zIndex:""},a=(t,e=!1)=>({[t]:{type:"object",default:o(e),copyStyle:!0}}),l=(t,e="",i="")=>{const a={...o(!!i),...t},l={};return a["zIndex"+i]&&(l[`${e}`]=a["zIndex"+i]),l}},72916(t,e,i){"use strict";i.d(e,{Mw:()=>s,V4:()=>b,X6:()=>n,qX:()=>l,tN:()=>r,yt:()=>c});var o=i(27723),a=i(36168);const l=()=>!!a.W0?.lock_global_typography,n=()=>l()&&!!a.W0?.lock_global_typography_strict,s=()=>!!a.W0?.lock_global_colors,r={typography:(0,o.__)("Locked to your global typography. Use the globe button to pick a preset.","ablocks"),family:(0, | |
| 6522 | -o.__)("The typeface is set by your design system. Size and spacing are still yours to change; use the globe button for a full preset.","ablocks"),color:(0,o.__)("Locked to your global colors. Use the globe button to pick one.","ablocks")},b=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&"fontFamily"in t&&"fontSizeUnit"in t,c=t=>!("string"!=typeof t||!t.trim())&&!(t=>"string"==typeof t&&t.startsWith("var:"))(t)&&/^(#|rgba?\(|hsla?\(|(linear|radial|conic)-gradient\()/i.test(t.trim())},36168(t,e,i){"use strict";i.d(e,{$B:()=>b,An:()=>F,BP:()=>B,Bn:()=>N,Gv:()=>E,IO:()=>tt,Ic:()=>L,Ie:()=>y,In:()=>Y,MF:()=>c,MK:()=>h,P:()=>z,Uz:()=>M,W0:()=>x,Xz:()=>Q,ZK:()=>C,Zy:()=>G,bD:()=>Z,bu:()=>V,fX:()=>U,hW:()=>K,hq:()=>u,jI:()=>D,kF:()=>w,l_:()=>O,nC:()=>A,qS:()=>q,r6:()=>X,rI:()=>j,vL:()=>I,xV:()=>J,zX:()=>p});var o=i(99418),a=i(38443),l=i(27723),n=i(57536),s=i(66087),r=i.n(s) | |
| 6523 | -;const{ajax_url:b,namespace:c,plugin_root_path:d,plugin_root_url:u,is_pro:p,route_path:m,menu:h,nonce:g,addons:f,ablocks_nonce:y,rest_url:T,toplevel_menu_icon_url:H,third_party_plugin_status:M,settings:x,site_url:k,blocks_status:v,theme_builder:_,cookie_consent:R,admin_url:S,is_fse_theme:W,post_types:U,breakpoints:P,responsive_devices:j,breakpoint_mode:w,permissions:z,is_admin_user:C}=window.ABlocksGlobal??{},A=n.A.create({baseURL:T,headers:{"content-type":"application/json","X-WP-Nonce":g,"Cache-Control":"no-cache"}}),L=(t,e,i,o={})=>{const a=t=>$(t)?t:void 0,l=[...Array.isArray(j)&&j.length?j:[{suffix:"",width:0},{suffix:"Tablet",width:800},{suffix:"Mobile",width:480}]].sort((t,e)=>{const i=t.width>0?t.width:1/0;return(e.width>0?e.width:1/0)-i}).map(t=>t.suffix),n="Desktop"===i?"":i||"",s=l.indexOf(n);for(let i=-1===s?0:s;i>=0;i--){const n=l[i],s=a(t?.[e+n])??a(o?.[e+n]);if(void 0!==s)return s}return!1},D=(t,e)=>{const i={};return Object.keys(e).forEach(o=>{ | |
| 6524 | -r().isEqual(t[o],e[o])||(i[o]=e[o])}),i},N=(t={},e="")=>{const i=t[e];return i?.default??t},I=[{value:"M j, Y",label:(0,a.dateI18n)("M j, Y",new Date)},{value:"F j, Y",label:(0,a.dateI18n)("F j, Y",new Date)},{value:"m/d/Y",label:(0,a.dateI18n)("m/d/Y",new Date)},{value:"m-d-Y",label:(0,a.dateI18n)("m-d-Y",new Date)},{value:"m.d.Y",label:(0,a.dateI18n)("m.d.Y",new Date)},{value:"d M Y",label:(0,a.dateI18n)("d M Y",new Date)},{value:"d F Y",label:(0,a.dateI18n)("d F Y",new Date)},{value:"d-m-Y",label:(0,a.dateI18n)("d-m-Y",new Date)},{value:"d.m.Y",label:(0,a.dateI18n)("d.m.Y",new Date)},{value:"d/m/Y",label:(0,a.dateI18n)("d/m/Y",new Date)},{value:"Y-m-d",label:(0,a.dateI18n)("Y-m-d",new Date)},{value:"Y.m.d",label:(0,a.dateI18n)("Y.m.d",new Date)},{value:"Y/m/d",label:(0,a.dateI18n)("Y/m/d",new Date)},{value:"M, Y",label:(0,a.dateI18n)("M, Y",new Date)},{value:"M Y",label:(0,a.dateI18n)("M Y",new Date)},{value:"F, Y",label:(0,a.dateI18n)("F, Y",new Date)},{value:"F Y",label:(0, | |
| 6525 | -a.dateI18n)("F Y",new Date)},{value:"custom",label:(0,l.__)("Normal Text","ablocks")}],V=(t,e=null)=>{let i=document.querySelector(t);if(i)return e?i.querySelector(e):i;const o=document.querySelector('iframe[name="editor-canvas"]');return o&&o.contentDocument?(i=o.contentDocument.querySelector(t),e?i?.querySelector(e):i):null},O=(t,e="")=>L(t,"unit",e),Y=async(t={},e=!1)=>{let i=new FormData;return i.append("security",y),Object.entries(t).forEach(([t,o])=>{e||"object"!=typeof o||null===o?i.append(t,o):i.append(t,JSON.stringify(o))}),await n.A.post(b,i).then(t=>t,t=>t.response)},X=(t,e)=>{const i=new Date(t);if(isNaN(i.getTime()))throw new Error("Invalid date string");const o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] | |
| 6526 | -;return e.replace(/d|j|S|l|D|m|n|F|M|Y|y|a|A|g|h|G|H|i|s|T|c|r|U/g,t=>{switch(t){case"d":return String(i.getDate()).padStart(2,"0");case"j":return i.getDate();case"S":return(t=>{if(t>=11&&t<=13)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(i.getDate());case"l":return o[i.getDay()];case"D":return a[i.getDay()];case"m":return String(i.getMonth()+1).padStart(2,"0");case"n":return i.getMonth()+1;case"F":return l[i.getMonth()];case"M":return n[i.getMonth()];case"Y":return i.getFullYear();case"y":return String(i.getFullYear()).slice(-2);case"a":return i.getHours()<12?"am":"pm";case"A":return i.getHours()<12?"AM":"PM";case"g":return i.getHours()%12||12;case"h":return String(i.getHours()%12||12).padStart(2,"0");case"G":return i.getHours();case"H":return String(i.getHours()).padStart(2,"0");case"i":return String(i.getMinutes()).padStart(2,"0");case"s":return String(i.getSeconds()).padStart(2,"0");case"T": | |
| 6527 | -return Intl.DateTimeFormat().resolvedOptions().timeZone;case"c":return i.toISOString();case"r":return i.toUTCString();case"U":return Math.floor(i.getTime()/1e3);default:return t}})},B=({dynamicAttributeValue:t,post:e,isTime:i=!1})=>{const{dateTimeType:o,dateTimeFormat:a,customDateTimeFormat:l,source:n,DateFormatOfCurrentDateTime:s,customFormatOfCurrentDateTime:r,TimeFormatOfCurrentDateTime:b}=t||{};let c="",d=Date.now();if("current-date-time"===n){const t="F j, Y",e="g:i a";c=s||r||b?"custom"===s?r||`${t} ${e}`:`${s||t} ${b||e}`:`${t} ${e}`}else{c=a;const t=i?"g:i a":"j M, Y";if(a?"custom"===a&&(c=l||t):c=t,d=e.date,"post_published"===o?d=e.date:"post_modified"===o&&(d=e.modified),!d)return}return X(d,c)},E=t=>null!==t&&"object"==typeof t,F=({type:t="error",message:e='Error! cannot access copied data in "http" protocol. Please use "https"',config:i={}})=>{window.wp.data.dispatch("core/notices").createNotice(t,e,{isDismissible:!0,...i})},q=()=>new Promise(t=>{ | |
| 6528 | -const e=document.createElement("input");e.type="file",e.accept="application/json",e.onchange=e=>{const i=e.target.files[0];if(i){const e=new FileReader;e.onload=e=>{t(e.target.result)},e.readAsText(i)}},e.click()}),$=function(t){return null!=t&&("string"==typeof t?""!==t.trim():Array.isArray(t)||"object"==typeof t?Object.keys(t).length>0:"number"==typeof t||""!==t)},G=(t,e={})=>(r().isString(t)&&(t=r().fromPairs(t.split("&").map(t=>t.split("=").map(decodeURIComponent)))),r().defaults(r().isObject(t)?t:{},e)),Z=(t,e)=>{if(t===e)return!0;if("object"!=typeof t||"object"!=typeof e||null===t||null===e)return!1;const i=Object.keys(t),o=Object.keys(e);return i.length===o.length&&i.every(i=>Z(t[i],e[i]))},K=(t="")=>{if("string"!=typeof t)return{};const e=t.match(/ablocks_dc:(.*?):ablocks_dc/);if(!e)return{isDynamicByNewSolution:!1};let i=[];i=e[1].split("|");const o=i[0]||"current" | |
| 6529 | -;let a="",l="",n="",s="",r="",b="",c="",d="",u="",p="",m="",h="",g="",f="",y="",T="",H="",M="",x="",k="",v="",_="",R="",S="",W="",U="",P="",j="",w="";if(s=i[4]||"",r=i[5]||"",b=i[6]||"",["current","post-type"].includes(o))switch(a=i[1]||"",l=i[2]||"",n=i[3]||"",n){case"post-custom-field":c=i[7]||"";break;case"post-date":case"post-time":d=i[7]||"",u=i[8]||"","custom"===u&&(p=i[9]||"");break;case"post-excerpt":m=i[7]||"";break;case"post-terms":h=i[7]||"",g=i[8]||"";break;case"author-meta":f=i[7]||"";break;case"numberOfTopics":y=i[7]||0;break;case"numberOfReviews":T=i[7]||0;break;case"numberOfEnrolled":H=i[7]||0;break;case"totalDuration":M=i[7]||0}else if("link"===o)switch(n=i[1]||"",n){case"internal-url-content":l=i[2],a=i[3];break;case"internal-url-taxonomy":x=i[2];break;case"internal-url-media":k=i[2];break;case"internal-url-author":v=i[2]}else"image"===o?n=i[1]||"":"current-date-time"===o?(_=i[1],R=i[2],S=i[3]):"request-parameter"===o?(W=i[1],U=i[2]):"user-info"===o?(P=i[1], | |
| 6530 | -j=i[2]):"shortcode"===o&&(w=i[1]);return{isDynamicByNewSolution:!0,source:o,source_type:a,source_id:l,group_item:n,before:s,after:r,fallback:b,metaKey:c,dateTimeType:d,dateTimeFormat:u,customDateTimeFormat:p,excerptWords:m,taxonomy:h,termsSeparator:g,authorMetaKey:f,numberOfTopics:y,numberOfReviews:T,numberOfEnrolled:H,taxonomyTermsUrlId:x,mediaId:k,authorId:v,TimeFormatOfCurrentDateTime:_,DateFormatOfCurrentDateTime:R,customFormatOfCurrentDateTime:S,requestParamType:W,requestParamName:U,userFieldName:P,userFieldMetaKey:j,shortcode:w}},J=(t,e="",i="")=>{if(i)return M[i]??!1;const o=(e||t).replace(/^ablocks\//,"");return!!v[o]&&v[o]},Q=t=>{let e=o.A.sanitize(t,{ALLOWED_TAGS:["a","p","br","em","strong","ul","ol","li","blockquote","code","pre","img","b","i","u","h1","h2","h3","h4","h5","h6"],ALLOWED_ATTR:["href","src","alt","title","target","rel","class"],ALLOW_DATA_ATTR:!1});return"string"==typeof e&&/^-?\d+(\.\d+)?$/.test(e.trim())&&(e=e.includes(".")?parseFloat(e):parseInt(e,10)), | |
| 6531 | -String(e)},tt=(t="")=>t?x.global_typography_list[t]:{}},31050(t,e,i){"use strict";i.d(e,{KU:()=>b,Rz:()=>s,to:()=>r,wA:()=>n});var o=i(36168);const a=Array.isArray(o.P)?o.P:[],l=t=>!(!o.ZK&&a.length)||a.includes(t),n=()=>l("ablocks_edit_style"),s=()=>l("ablocks_edit_advanced"),r=()=>l("ablocks_edit_custom_css"),b=()=>l("ablocks_copy_paste_style")},30228(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function l(t,e,o,l,n){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new a(o,l||t,n),r=i?i+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],s]:t._events[r].push(s):(t._events[r]=s,t._eventsCount++),t}function n(t,e){0===--t._eventsCount?t._events=new o:delete t._events[e]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),s.prototype.eventNames=function(){var t,o,a=[] | |
| 6532 | -;if(0===this._eventsCount)return a;for(o in t=this._events)e.call(t,o)&&a.push(i?o.slice(1):o);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(t)):a},s.prototype.listeners=function(t){var e=i?i+t:t,o=this._events[e];if(!o)return[];if(o.fn)return[o.fn];for(var a=0,l=o.length,n=new Array(l);a<l;a++)n[a]=o[a].fn;return n},s.prototype.listenerCount=function(t){var e=i?i+t:t,o=this._events[e];return o?o.fn?1:o.length:0},s.prototype.emit=function(t,e,o,a,l,n){var s=i?i+t:t;if(!this._events[s])return!1;var r,b,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,o),!0;case 4:return c.fn.call(c.context,e,o,a),!0;case 5:return c.fn.call(c.context,e,o,a,l),!0;case 6:return c.fn.call(c.context,e,o,a,l,n),!0}for(b=1,r=new Array(d-1);b<d;b++)r[b-1]=arguments[b];c.fn.apply(c.context,r)}else{var u,p=c.length | |
| 6533 | -;for(b=0;b<p;b++)switch(c[b].once&&this.removeListener(t,c[b].fn,void 0,!0),d){case 1:c[b].fn.call(c[b].context);break;case 2:c[b].fn.call(c[b].context,e);break;case 3:c[b].fn.call(c[b].context,e,o);break;case 4:c[b].fn.call(c[b].context,e,o,a);break;default:if(!r)for(u=1,r=new Array(d-1);u<d;u++)r[u-1]=arguments[u];c[b].fn.apply(c[b].context,r)}}return!0},s.prototype.on=function(t,e,i){return l(this,t,e,i,!1)},s.prototype.once=function(t,e,i){return l(this,t,e,i,!0)},s.prototype.removeListener=function(t,e,o,a){var l=i?i+t:t;if(!this._events[l])return this;if(!e)return n(this,l),this;var s=this._events[l];if(s.fn)s.fn!==e||a&&!s.once||o&&s.context!==o||n(this,l);else{for(var r=0,b=[],c=s.length;r<c;r++)(s[r].fn!==e||a&&!s[r].once||o&&s[r].context!==o)&&b.push(s[r]);b.length?this._events[l]=1===b.length?b[0]:b:n(this,l)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&n(this,e)):(this._events=new o,this._eventsCount=0),this}, | |
| 6534 | -s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,t.exports=s},50411(t,e,i){var o;!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),l={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};void 0===(o=function(){return l}.call(e,i,e,t))||(t.exports=o)}()},85606(t){var e=-1;function i(t,p,m,h,g){if(t===p)return t?[[0,t]]:[];if(null!=m){var y=function(t,e,i){var o="number"==typeof i?{index:i,length:0}:i.oldRange,a="number"==typeof i?null:i.newRange,l=t.length,n=e.length;if(0===o.length&&(null===a||0===a.length)){var s=o.index,r=t.slice(0,s),b=t.slice(s),c=a?a.index:null,d=s+n-l;if((null===c||c===d)&&!(d<0||d>n)){var u=e.slice(0,d);if((h=e.slice(d))===b){var p=Math.min(s,d);if((y=r.slice(0,p))===(H=u.slice(0,p)))return f(y,r.slice(p),u.slice(p),b)}} | |
| 6535 | -if(null===c||c===s){var m=s,h=(u=e.slice(0,m),e.slice(m));if(u===r){var g=Math.min(l-m,n-m);if((T=b.slice(b.length-g))===(M=h.slice(h.length-g)))return f(r,b.slice(0,b.length-g),h.slice(0,h.length-g),T)}}}if(o.length>0&&a&&0===a.length){var y=t.slice(0,o.index),T=t.slice(o.index+o.length);if(!(n<(p=y.length)+(g=T.length))){var H=e.slice(0,p),M=e.slice(n-g);if(y===H&&T===M)return f(y,t.slice(p,l-g),e.slice(p,n-g),T)}}return null}(t,p,m);if(y)return y}var T=a(t,p),H=t.substring(0,T);T=n(t=t.substring(T),p=p.substring(T));var M=t.substring(t.length-T),x=function(t,l){var s;if(!t)return[[1,l]];if(!l)return[[e,t]];var r=t.length>l.length?t:l,b=t.length>l.length?l:t,c=r.indexOf(b);if(-1!==c)return s=[[1,r.substring(0,c)],[0,b],[1,r.substring(c+b.length)]],t.length>l.length&&(s[0][0]=s[2][0]=e),s;if(1===b.length)return[[e,t],[1,l]];var d=function(t,e){var i=t.length>e.length?t:e,o=t.length>e.length?e:t;if(i.length<4||2*o.length<i.length)return null;function l(t,e,i){ | |
| 6536 | -for(var o,l,s,r,b=t.substring(i,i+Math.floor(t.length/4)),c=-1,d="";-1!==(c=e.indexOf(b,c+1));){var u=a(t.substring(i),e.substring(c)),p=n(t.substring(0,i),e.substring(0,c));d.length<p+u&&(d=e.substring(c-p,c)+e.substring(c,c+u),o=t.substring(0,i-p),l=t.substring(i+u),s=e.substring(0,c-p),r=e.substring(c+u))}return 2*d.length>=t.length?[o,l,s,r,d]:null}var s,r,b,c,d,u=l(i,o,Math.ceil(i.length/4)),p=l(i,o,Math.ceil(i.length/2));return u||p?(s=p?u&&u[4].length>p[4].length?u:p:u,t.length>e.length?(r=s[0],b=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],r=s[2],b=s[3]),[r,b,c,d,s[4]]):null}(t,l);if(d){var u=d[0],p=d[1],m=d[2],h=d[3],g=d[4],f=i(u,m),y=i(p,h);return f.concat([[0,g]],y)}return function(t,i){for(var a=t.length,l=i.length,n=Math.ceil((a+l)/2),s=n,r=2*n,b=new Array(r),c=new Array(r),d=0;d<r;d++)b[d]=-1,c[d]=-1;b[s+1]=0,c[s+1]=0;for(var u=a-l,p=u%2!=0,m=0,h=0,g=0,f=0,y=0;y<n;y++){for(var T=-y+m;T<=y-h;T+=2){ | |
| 6537 | -for(var H=s+T,M=(R=T===-y||T!==y&&b[H-1]<b[H+1]?b[H+1]:b[H-1]+1)-T;R<a&&M<l&&t.charAt(R)===i.charAt(M);)R++,M++;if(b[H]=R,R>a)h+=2;else if(M>l)m+=2;else if(p&&(v=s+u-T)>=0&&v<r&&-1!==c[v]&&R>=(k=a-c[v]))return o(t,i,R,M)}for(var x=-y+g;x<=y-f;x+=2){for(var k,v=s+x,_=(k=x===-y||x!==y&&c[v-1]<c[v+1]?c[v+1]:c[v-1]+1)-x;k<a&&_<l&&t.charAt(a-k-1)===i.charAt(l-_-1);)k++,_++;if(c[v]=k,k>a)f+=2;else if(_>l)g+=2;else if(!p){var R;if((H=s+u-x)>=0&&H<r&&-1!==b[H])if(M=s+(R=b[H])-H,R>=(k=a-k))return o(t,i,R,M)}}}return[[e,t],[1,i]]}(t,l)}(t=t.substring(0,t.length-T),p=p.substring(0,p.length-T));return H&&x.unshift([0,H]),M&&x.push([0,M]),u(x,g),h&&function(t){for(var i=!1,o=[],a=0,p=null,m=0,h=0,g=0,f=0,y=0;m<t.length;)0==t[m][0]?(o[a++]=m,h=f,g=y,f=0,y=0,p=t[m][1]):(1==t[m][0]?f+=t[m][1].length:y+=t[m][1].length,p&&p.length<=Math.max(h,g)&&p.length<=Math.max(f,y)&&(t.splice(o[a-1],0,[e,p]),t[o[a-1]+1][0]=1,a--,m=--a>0?o[a-1]:-1,h=0,g=0,f=0,y=0,p=null,i=!0)),m++;for(i&&u(t),function(t){ | |
| 6538 | -function e(t,e){if(!t||!e)return 6;var i=t.charAt(t.length-1),o=e.charAt(0),a=i.match(s),l=o.match(s),n=a&&i.match(r),u=l&&o.match(r),p=n&&i.match(b),m=u&&o.match(b),h=p&&t.match(c),g=m&&e.match(d);return h||g?5:p||m?4:a&&!n&&u?3:n||u?2:a||l?1:0}for(var i=1;i<t.length-1;){if(0==t[i-1][0]&&0==t[i+1][0]){var o=t[i-1][1],a=t[i][1],l=t[i+1][1],u=n(o,a);if(u){var p=a.substring(a.length-u);o=o.substring(0,o.length-u),a=p+a.substring(0,a.length-u),l=p+l}for(var m=o,h=a,g=l,f=e(o,a)+e(a,l);a.charAt(0)===l.charAt(0);){o+=a.charAt(0),a=a.substring(1)+l.charAt(0),l=l.substring(1);var y=e(o,a)+e(a,l);y>=f&&(f=y,m=o,h=a,g=l)}t[i-1][1]!=m&&(m?t[i-1][1]=m:(t.splice(i-1,1),i--),t[i][1]=h,g?t[i+1][1]=g:(t.splice(i+1,1),i--))}i++}}(t),m=1;m<t.length;){if(t[m-1][0]==e&&1==t[m][0]){var T=t[m-1][1],H=t[m][1],M=l(T,H),x=l(H,T);M>=x?(M>=T.length/2||M>=H.length/2)&&(t.splice(m,0,[0,H.substring(0,M)]),t[m-1][1]=T.substring(0,T.length-M),t[m+1][1]=H.substring(M), | |
| 6539 | -m++):(x>=T.length/2||x>=H.length/2)&&(t.splice(m,0,[0,T.substring(0,x)]),t[m-1][0]=1,t[m-1][1]=H.substring(0,H.length-x),t[m+1][0]=e,t[m+1][1]=T.substring(x),m++),m++}m++}}(x),x}function o(t,e,o,a){var l=t.substring(0,o),n=e.substring(0,a),s=t.substring(o),r=e.substring(a),b=i(l,n),c=i(s,r);return b.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var i=0,o=Math.min(t.length,e.length),a=o,l=0;i<a;)t.substring(l,a)==e.substring(l,a)?l=i=a:o=a,a=Math.floor((o-i)/2+i);return p(t.charCodeAt(a-1))&&a--,a}function l(t,e){var i=t.length,o=e.length;if(0==i||0==o)return 0;i>o?t=t.substring(i-o):i<o&&(e=e.substring(0,i));var a=Math.min(i,o);if(t==e)return a;for(var l=0,n=1;;){var s=t.substring(a-n),r=e.indexOf(s);if(-1==r)return l;n+=r,0!=r&&t.substring(a-n)!=e.substring(0,n)||(l=n,n++)}}function n(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0 | |
| 6540 | -;for(var i=0,o=Math.min(t.length,e.length),a=o,l=0;i<a;)t.substring(t.length-a,t.length-l)==e.substring(e.length-a,e.length-l)?l=i=a:o=a,a=Math.floor((o-i)/2+i);return m(t.charCodeAt(t.length-a))&&a--,a}var s=/[^a-zA-Z0-9]/,r=/\s/,b=/[\r\n]/,c=/\n\r?\n$/,d=/^\r?\n\r?\n/;function u(t,i){t.push([0,""]);for(var o,l=0,s=0,r=0,b="",c="";l<t.length;)if(l<t.length-1&&!t[l][1])t.splice(l,1);else switch(t[l][0]){case 1:r++,c+=t[l][1],l++;break;case e:s++,b+=t[l][1],l++;break;case 0:var d=l-r-s-1;if(i){if(d>=0&&g(t[d][1])){var p=t[d][1].slice(-1);if(t[d][1]=t[d][1].slice(0,-1),b=p+b,c=p+c,!t[d][1]){t.splice(d,1),l--;var m=d-1;t[m]&&1===t[m][0]&&(r++,c=t[m][1]+c,m--),t[m]&&t[m][0]===e&&(s++,b=t[m][1]+b,m--),d=m}}h(t[l][1])&&(p=t[l][1].charAt(0),t[l][1]=t[l][1].slice(1),b+=p,c+=p)}if(l<t.length-1&&!t[l][1]){t.splice(l,1);break}if(b.length>0||c.length>0){b.length>0&&c.length>0&&(0!==(o=a(c,b))&&(d>=0?t[d][1]+=c.substring(0,o):(t.splice(0,0,[0,c.substring(0,o)]),l++),c=c.substring(o), | |
| 6541 | -b=b.substring(o)),0!==(o=n(c,b))&&(t[l][1]=c.substring(c.length-o)+t[l][1],c=c.substring(0,c.length-o),b=b.substring(0,b.length-o)));var f=r+s;0===b.length&&0===c.length?(t.splice(l-f,f),l-=f):0===b.length?(t.splice(l-f,f,[1,c]),l=l-f+1):0===c.length?(t.splice(l-f,f,[e,b]),l=l-f+1):(t.splice(l-f,f,[e,b],[1,c]),l=l-f+2)}0!==l&&0===t[l-1][0]?(t[l-1][1]+=t[l][1],t.splice(l,1)):l++,r=0,s=0,b="",c=""}""===t[t.length-1][1]&&t.pop();var y=!1;for(l=1;l<t.length-1;)0===t[l-1][0]&&0===t[l+1][0]&&(t[l][1].substring(t[l][1].length-t[l-1][1].length)===t[l-1][1]?(t[l][1]=t[l-1][1]+t[l][1].substring(0,t[l][1].length-t[l-1][1].length),t[l+1][1]=t[l-1][1]+t[l+1][1],t.splice(l-1,1),y=!0):t[l][1].substring(0,t[l+1][1].length)==t[l+1][1]&&(t[l-1][1]+=t[l+1][1],t[l][1]=t[l][1].substring(t[l+1][1].length)+t[l+1][1],t.splice(l+1,1),y=!0)),l++;y&&u(t,i)}function p(t){return t>=55296&&t<=56319}function m(t){return t>=56320&&t<=57343}function h(t){return m(t.charCodeAt(0))}function g(t){ | |
| 6542 | -return p(t.charCodeAt(t.length-1))}function f(t,i,o,a){return g(t)||h(a)?null:function(t){for(var e=[],i=0;i<t.length;i++)t[i][1].length>0&&e.push(t[i]);return e}([[0,t],[e,i],[1,o],[0,a]])}function y(t,e,o,a){return i(t,e,o,a,!0)}y.INSERT=1,y.DELETE=e,y.EQUAL=0,t.exports=y},4146(t,e,i){"use strict";var o=i(73404),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function r(t){return o.isMemo(t)?n:s[t.$$typeof]||a}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=n;var b=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype | |
| 6543 | -;t.exports=function t(e,i,o){if("string"!=typeof i){if(m){var a=p(i);a&&a!==m&&t(e,a,o)}var n=c(i);d&&(n=n.concat(d(i)));for(var s=r(e),h=r(i),g=0;g<n.length;++g){var f=n[g];if(!(l[f]||o&&o[f]||h&&h[f]||s&&s[f])){var y=u(i,f);try{b(e,f,y)}catch(t){}}}}return e}},3072(t,e){"use strict" | |
| 6562 | +hOffsetUnitTablet:"px",hOffsetUnitMobile:"px",vOrientation:"",vOffset:"",vOffsetTablet:"",vOffsetMobile:"",vOffsetUnit:"px",vOffsetUnitTablet:"px",vOffsetUnitMobile:"px"}:{positionType:"relative",hOrientation:"",hOffset:"0",hOffsetUnit:"px",vOrientation:"",vOffset:"0",vOffsetUnit:"px"},s=(t,e=!1)=>({[t]:{type:"object",default:n(e),copyStyle:!0}}),r=(t,e="",i="")=>{const o={...n(!!i),...t},l={},s=(0,a.Ic)(o,"hOffsetUnit",i),r=(0,a.Ic)(o,"vOffsetUnit",i);return o.positionType&&(l[`${e}`]=o.positionType),"relative"!==o.positionType&&("right"===o["hOrientation"+i]?(l.right=o["hOffset"+i]+s,delete l.left):o["hOffset"+i]&&(l.left=o["hOffset"+i]+s,delete l.right),"bottom"===o["vOrientation"+i]?(l.bottom=o["vOffset"+i]+r,delete l.top):o["vOffset"+i]&&(l.top=o["vOffset"+i]+r,delete l.bottom)),l},b=[{label:"arrow-left-alt",value:"left",icon:"left"},{label:"arrow-right-alt",value:"right",icon:"right"}],c=[{label:"arrow-up-alt",value:"top",icon:"align-top"},{label:"arrow-down-alt",value:"bottom", | |
| 6563 | +icon:"align-bottom"}]},73249(t,e,i){"use strict";i.d(e,{D$:()=>l,a9:()=>s,qD:()=>n,tJ:()=>a});var o=i(36168);const a=(t=!1)=>t?{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:"", | |
| 6564 | +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:"",isApplied:!1}:{rotate:"",rotate3D:"",rotateX:"",rotateY:"",rotateP:"",offsetX:"",offsetXUnit:"px",offsetY:"",offsetYUnit:"px",scaleProportions:!1,scale:"", | |
| 6565 | +scaleX:"",scaleY:"",skewX:"",skewY:"",flipHorizontal:!1,flipVertical:!1,xAnchorPoint:"",yAnchorPoint:"",rotateH:"",rotate3DH:!1,rotateXH:"",rotateYH:"",rotatePH:"",offsetXH:"",offsetXHUnit:"px",offsetYH:"",offsetYHUnit:"px",scaleH:"",scaleXH:"",scaleYH:"",skewXH:"",skewYH:"",flipHorizontalH:!1,flipVerticalH:!1,xAnchorPointH:"",yAnchorPointH:"",transitionH:"",isApplied:!1},l=t=>({[t]:{type:"object",default:a(),copyStyle:!0}}),n=(t,e="",i="")=>{const l={...a(!!i),...t},n={},s=(0,o.Ic)(l,"offsetXUnit",i)||"px",r=(0,o.Ic)(l,"offsetYUnit",i)||"px",b=[];let c="";return""!==l["rotate"+i]&&void 0!==l["rotate"+i]&&b.push(`rotate(${l["rotate"+i]}deg)`),""!==l["rotateX"+i]&&void 0!==l["rotateX"+i]&&b.push(`rotateX(${l["rotateX"+i]}deg)`),""!==l["rotateY"+i]&&void 0!==l["rotateY"+i]&&b.push(`rotateY(${l["rotateY"+i]}deg)`),!1!==l["rotate3D"+i]&&b.push(`rotateZ(${l["rotate"+i]?l["rotate"+i]:0}deg)`),""!==l["rotateP"+i]&&b.push(`perspective(${l["rotateP"+i]?l["rotateP"+i]:0}px)`), | |
| 6566 | +""!==l["scale"+i]&&void 0!==l["scale"+i]&&b.push(`scale(${l["scale"+i]})`),void 0!==l["scaleX"+i]&&""!==l["scaleX"+i]&&b.push(`scaleX(${l["scaleX"+i]})`),void 0!==l["scaleY"+i]&&""!==l["scaleY"+i]&&b.push(`scaleY(${l["scaleY"+i]})`),void 0!==l.flipHorizontal&&!1!==l.flipHorizontal&&b.push("scaleX(-1)"),void 0!==l.flipVertical&&!1!==l.flipVertical&&b.push("scaleY(-1)"),""!==l["offsetX"+i]&&void 0!==l["offsetX"+i]&&b.push(`translateX(${l["offsetX"+i]+s})`),""!==l["offsetY"+i]&&void 0!==l["offsetY"+i]&&b.push(`translateY(${l["offsetY"+i]+r})`),void 0!==l["skewX"+i]&&""!==l["skewX"+i]&&b.push(`skewX(${l["skewX"+i]}deg)`),void 0!==l["skewY"+i]&&""!==l["skewY"+i]&&b.push(`skewY(${l["skewY"+i]}deg)`),l["xAnchorPoint"+i]&&(c=`${l["yAnchorPoint"+i]} ${l["xAnchorPoint"+i]}`),l["yAnchorPoint"+i]&&(c=`${l.yAnchorPoint} ${l.xAnchorPoint}`),c&&(n["transform-origin"]=c),b.length>0&&(n[e]=b.join(" ")),n},s=(t,e="",i="")=>{const l={...a(!!i),...t},n={},s=(0,o.Ic)(l,"offsetXHUnit",i)||"px",r=(0, | |
| 6567 | +o.Ic)(l,"offsetYHUnit",i)||"px",b=[];let c="";return""!==l["rotateH"+i]&&void 0!==l["rotateH"+i]&&b.push(`rotate(${l["rotateH"+i]}deg)`),""!==l["rotateXH"+i]&&void 0!==l["rotateXH"+i]&&b.push(`rotateX(${l["rotateXH"+i]}deg)`),""!==l["rotateYH"+i]&&void 0!==l["rotateYH"+i]&&b.push(`rotateY(${l["rotateYH"+i]}deg)`),!1!==l["rotate3DH"+i]&&l["rotateH"+i]>=0&&b.push(`rotateZ(${l["rotateH"+i]?l["rotateH"+i]:0}deg)`),""!==l["rotatePH"+i]&&b.push(`perspective(${l["rotatePH"+i]?l["rotatePH"+i]:0}px)`),""!==l["scaleH"+i]&&void 0!==l["scaleH"+i]&&b.push(`scale(${l["scaleH"+i]})`),void 0!==l["scaleXH"+i]&&""!==l["scaleXH"+i]&&b.push(`scaleX(${l["scaleXH"+i]})`),void 0!==l["scaleYH"+i]&&""!==l["scaleYH"+i]&&b.push(`scaleY(${l["scaleYH"+i]})`),void 0!==l.flipHorizontalH&&!1!==l.flipHorizontalH&&b.push("scaleX(-1)"),void 0!==l.flipVerticalH&&!1!==l.flipVerticalH&&b.push("scaleY(-1)"),""!==l["offsetXH"+i]&&void 0!==l["offsetXH"+i]&&b.push(`translateX(${l["offsetXH"+i]+s})`), | |
| 6568 | +""!==l["offsetYH"+i]&&void 0!==l["offsetYH"+i]&&b.push(`translateY(${l["offsetYH"+i]+r})`),void 0!==l["skewXH"+i]&&""!==l["skewXH"+i]&&b.push(`skewX(${l["skewXH"+i]}deg)`),void 0!==l["skewYH"+i]&&""!==l["skewYH"+i]&&b.push(`skewY(${l["skewYH"+i]}deg)`),l["xAnchorPointH"+i]&&(c=`${l["yAnchorPointH"+i]} ${l["xAnchorPointH"+i]}`),l["yAnchorPointH"+i]&&(c=`${l["yAnchorPointH"+i]} ${l["xAnchorPointH"+i]}`),c&&(n["transform-origin"]=c),b.length>0&&(n[e]=b.join(" ")),""!==l["transitionH"+i]&&void 0!==l["transitionH"+i]&&(n["transition-duration"]=`${l["transitionH"+i]}s`),n}},5905(t,e,i){"use strict";i.d(e,{D$:()=>s,qD:()=>r,tJ:()=>n,v2:()=>l});var o=i(27723),a=i(36168);const l=[{value:"default",label:(0,o.__)("Default","ablocks")},{value:"full",label:(0,o.__)("Full Width (100%)","ablocks")},{value:"auto",label:(0,o.__)("Inline (auto)","ablocks")},{value:"custom",label:(0,o.__)("Custom","ablocks")}],n=(t=!1)=>t?{widthType:"default",widthTypeTablet:"",widthTypeMobile:"",customWidth:"", | |
| 6569 | +customWidthTablet:"",customWidthMobile:"",customWidthUnit:"%",customWidthUnitTablet:"",customWidthUnitMobile:""}:{widthType:"default",customWidth:"",customWidthUnit:"%"},s=(t,e=!1)=>({[t]:{type:"object",default:n(e),copyStyle:!0}}),r=(t,e="",i="")=>{const o={...n(!!i),...t},l=(0,a.Ic)(o,"widthType",i);if(l&&"default"!==l){const t={};if("full"===l)t[e]="100%";else if("auto"===l)t[e]="auto",t.display="inline-block";else if("custom"===l){const l=(0,a.Ic)(o,"customWidth",i),n=(0,a.Ic)(o,"customWidthUnit",i);t[e]=`${l}${n}`,l&&(t.display="inline-block")}return t}return{}}},4480(t,e,i){"use strict";i.d(e,{D$:()=>a,qD:()=>l,tJ:()=>o});const o=(t=!1)=>t?{zIndex:"",zIndexTablet:"",zIndexMobile:""}:{zIndex:""},a=(t,e=!1)=>({[t]:{type:"object",default:o(e),copyStyle:!0}}),l=(t,e="",i="")=>{const a={...o(!!i),...t},l={};return a["zIndex"+i]&&(l[`${e}`]=a["zIndex"+i]),l}},72916(t,e,i){"use strict";i.d(e,{Mw:()=>s,V4:()=>b,X6:()=>n,qX:()=>l,tN:()=>r,yt:()=>c});var o=i(27723),a=i(36168) | |
| 6570 | +;const l=()=>!!a.W0?.lock_global_typography,n=()=>l()&&!!a.W0?.lock_global_typography_strict,s=()=>!!a.W0?.lock_global_colors,r={typography:(0,o.__)("Locked to your global typography. Use the globe button to pick a preset.","ablocks"),family:(0,o.__)("The typeface is set by your design system. Size and spacing are still yours to change; use the globe button for a full preset.","ablocks"),color:(0,o.__)("Locked to your global colors. Use the globe button to pick one.","ablocks")},b=t=>!!t&&"object"==typeof t&&!Array.isArray(t)&&"fontFamily"in t&&"fontSizeUnit"in t,c=t=>!("string"!=typeof t||!t.trim())&&!(t=>"string"==typeof t&&t.startsWith("var:"))(t)&&/^(#|rgba?\(|hsla?\(|(linear|radial|conic)-gradient\()/i.test(t.trim())},36168(t,e,i){"use strict";i.d(e,{$B:()=>c,An:()=>at,BP:()=>it,Bn:()=>q,By:()=>Y,Gv:()=>ot,IO:()=>ut,Ic:()=>B,Ie:()=>T,In:()=>tt,MF:()=>d,MK:()=>g,N$:()=>O,P:()=>C,Uz:()=>x,V1:()=>Q,VA:()=>I,W0:()=>k,Xz:()=>dt,ZK:()=>A,Zy:()=>st,a4:()=>nt,bD:()=>rt,bu:()=>G,fX:()=>U, | |
| 6571 | +hW:()=>bt,hq:()=>p,jI:()=>F,kF:()=>z,l_:()=>Z,nC:()=>X,qS:()=>lt,r6:()=>et,rI:()=>w,rb:()=>L,su:()=>J,u3:()=>E,um:()=>N,vL:()=>$,vb:()=>K,xV:()=>ct,zX:()=>m});var o=i(99418),a=i(38443),l=i(27723),n=i(47143),s=i(57536),r=i(66087),b=i.n(r);const{ajax_url:c,namespace:d,plugin_root_path:u,plugin_root_url:p,is_pro:m,route_path:h,menu:g,nonce:f,addons:y,ablocks_nonce:T,rest_url:H,toplevel_menu_icon_url:M,third_party_plugin_status:x,settings:k,site_url:v,blocks_status:_,theme_builder:R,cookie_consent:S,admin_url:W,is_fse_theme:P,post_types:U,breakpoints:j,responsive_devices:w,breakpoint_mode:z,permissions:C,is_admin_user:A}=window.ABlocksGlobal??{},L="ablocks/responsive",D=[{id:"Desktop",suffix:"",width:0,min:0,max:0},{id:"Tablet",suffix:"Tablet",width:800,min:0,max:800},{id:"Mobile",suffix:"Mobile",width:480,min:0,max:480}],N=t=>[...t||[]].sort((t,e)=>{const i=t=>!t.min&&!t.max;if(i(t)!==i(e))return i(t)?-1:1;const o=(e.width||0)-(t.width||0) | |
| 6572 | +;return 0!==o?o:String(t.id).localeCompare(String(e.id))}),I=()=>{const t=(0,n.select)(L)?.getDevices?.();return Array.isArray(t)&&t.length?t:Array.isArray(w)&&w.length?w:D},V=t=>{const e="Desktop"===t?"":t||"";if(!e)return[];const i=N(I()),o=i.findIndex(t=>t.suffix===e);if(-1===o)return[""];const a=[];for(let t=o-1;t>=0;t--)(i[t].min||i[t].max)&&O(i[t],i[o])&&a.push(i[t].suffix);return a.push(""),a},O=(t,e)=>{const i=Number(t?.min)||0,o=Number(t?.max)||0,a=Number(e?.max)||Number(e?.min)||0;return(!i||a>=i)&&(!o||a<=o)},Y=(t,e,{includeSelf:i=!0}={})=>{const o="Desktop"===t?"":t||"",a=i?[o,...V(o)]:V(o);for(const t of a){const i=e(t);if(nt(i))return i}},X=s.A.create({baseURL:H,headers:{"content-type":"application/json","X-WP-Nonce":f,"Cache-Control":"no-cache"}}),B=(t,e,i,o={})=>{const a=Y(i,i=>nt(t?.[e+i])?t[e+i]:o?.[e+i]);return void 0!==a&&a},E=(t,e,i,o={})=>Y(i,i=>nt(t?.[e+i])?t[e+i]:o?.[e+i],{includeSelf:!1}),F=(t,e)=>{const i={};return Object.keys(e).forEach(o=>{ | |
| 6573 | +b().isEqual(t[o],e[o])||(i[o]=e[o])}),i},q=(t={},e="")=>{const i=t[e];return i?.default??t},$=[{value:"M j, Y",label:(0,a.dateI18n)("M j, Y",new Date)},{value:"F j, Y",label:(0,a.dateI18n)("F j, Y",new Date)},{value:"m/d/Y",label:(0,a.dateI18n)("m/d/Y",new Date)},{value:"m-d-Y",label:(0,a.dateI18n)("m-d-Y",new Date)},{value:"m.d.Y",label:(0,a.dateI18n)("m.d.Y",new Date)},{value:"d M Y",label:(0,a.dateI18n)("d M Y",new Date)},{value:"d F Y",label:(0,a.dateI18n)("d F Y",new Date)},{value:"d-m-Y",label:(0,a.dateI18n)("d-m-Y",new Date)},{value:"d.m.Y",label:(0,a.dateI18n)("d.m.Y",new Date)},{value:"d/m/Y",label:(0,a.dateI18n)("d/m/Y",new Date)},{value:"Y-m-d",label:(0,a.dateI18n)("Y-m-d",new Date)},{value:"Y.m.d",label:(0,a.dateI18n)("Y.m.d",new Date)},{value:"Y/m/d",label:(0,a.dateI18n)("Y/m/d",new Date)},{value:"M, Y",label:(0,a.dateI18n)("M, Y",new Date)},{value:"M Y",label:(0,a.dateI18n)("M Y",new Date)},{value:"F, Y",label:(0,a.dateI18n)("F, Y",new Date)},{value:"F Y",label:(0, | |
| 6574 | +a.dateI18n)("F Y",new Date)},{value:"custom",label:(0,l.__)("Normal Text","ablocks")}],G=(t,e=null)=>{let i=document.querySelector(t);if(i)return e?i.querySelector(e):i;const o=document.querySelector('iframe[name="editor-canvas"]');return o&&o.contentDocument?(i=o.contentDocument.querySelector(t),e?i?.querySelector(e):i):null},Z=(t,e="")=>B(t,"unit",e),K=t=>!!t&&!["Desktop","Tablet","Mobile"].includes(t),J=(t,e)=>{if(!K(e))return t;const i={...t};return Object.keys(t).forEach(o=>{if(o.endsWith("Tablet")){const a=o.slice(0,-6)+e;a in i||(i[a]=t[o])}}),i},Q=(t,e,i="")=>B(t,e,i),tt=async(t={},e=!1)=>{let i=new FormData;return i.append("security",T),Object.entries(t).forEach(([t,o])=>{e||"object"!=typeof o||null===o?i.append(t,o):i.append(t,JSON.stringify(o))}),await s.A.post(c,i).then(t=>t,t=>t.response)},et=(t,e)=>{const i=new Date(t);if(isNaN(i.getTime()))throw new Error("Invalid date string") | |
| 6575 | +;const o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return e.replace(/d|j|S|l|D|m|n|F|M|Y|y|a|A|g|h|G|H|i|s|T|c|r|U/g,t=>{switch(t){case"d":return String(i.getDate()).padStart(2,"0");case"j":return i.getDate();case"S":return(t=>{if(t>=11&&t<=13)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(i.getDate());case"l":return o[i.getDay()];case"D":return a[i.getDay()];case"m":return String(i.getMonth()+1).padStart(2,"0");case"n":return i.getMonth()+1;case"F":return l[i.getMonth()];case"M":return n[i.getMonth()];case"Y":return i.getFullYear();case"y":return String(i.getFullYear()).slice(-2);case"a":return i.getHours()<12?"am":"pm";case"A":return i.getHours()<12?"AM":"PM";case"g": | |
| 6576 | +return i.getHours()%12||12;case"h":return String(i.getHours()%12||12).padStart(2,"0");case"G":return i.getHours();case"H":return String(i.getHours()).padStart(2,"0");case"i":return String(i.getMinutes()).padStart(2,"0");case"s":return String(i.getSeconds()).padStart(2,"0");case"T":return Intl.DateTimeFormat().resolvedOptions().timeZone;case"c":return i.toISOString();case"r":return i.toUTCString();case"U":return Math.floor(i.getTime()/1e3);default:return t}})},it=({dynamicAttributeValue:t,post:e,isTime:i=!1})=>{const{dateTimeType:o,dateTimeFormat:a,customDateTimeFormat:l,source:n,DateFormatOfCurrentDateTime:s,customFormatOfCurrentDateTime:r,TimeFormatOfCurrentDateTime:b}=t||{};let c="",d=Date.now();if("current-date-time"===n){const t="F j, Y",e="g:i a";c=s||r||b?"custom"===s?r||`${t} ${e}`:`${s||t} ${b||e}`:`${t} ${e}`}else{c=a;const t=i?"g:i a":"j M, Y";if(a?"custom"===a&&(c=l||t):c=t,d=e.date,"post_published"===o?d=e.date:"post_modified"===o&&(d=e.modified),!d)return}return et(d,c) | |
| 6577 | +},ot=t=>null!==t&&"object"==typeof t,at=({type:t="error",message:e='Error! cannot access copied data in "http" protocol. Please use "https"',config:i={}})=>{window.wp.data.dispatch("core/notices").createNotice(t,e,{isDismissible:!0,...i})},lt=()=>new Promise(t=>{const e=document.createElement("input");e.type="file",e.accept="application/json",e.onchange=e=>{const i=e.target.files[0];if(i){const e=new FileReader;e.onload=e=>{t(e.target.result)},e.readAsText(i)}},e.click()}),nt=function(t){return null!=t&&("string"==typeof t?""!==t.trim():Array.isArray(t)||"object"==typeof t?Object.keys(t).length>0:"number"==typeof t||""!==t)},st=(t,e={})=>(b().isString(t)&&(t=b().fromPairs(t.split("&").map(t=>t.split("=").map(decodeURIComponent)))),b().defaults(b().isObject(t)?t:{},e)),rt=(t,e)=>{if(t===e)return!0;if("object"!=typeof t||"object"!=typeof e||null===t||null===e)return!1;const i=Object.keys(t),o=Object.keys(e);return i.length===o.length&&i.every(i=>rt(t[i],e[i]))},bt=(t="")=>{ | |
| 6578 | +if("string"!=typeof t)return{};const e=t.match(/ablocks_dc:(.*?):ablocks_dc/);if(!e)return{isDynamicByNewSolution:!1};let i=[];i=e[1].split("|");const o=i[0]||"current";let a="",l="",n="",s="",r="",b="",c="",d="",u="",p="",m="",h="",g="",f="",y="",T="",H="",M="",x="",k="",v="",_="",R="",S="",W="",P="",U="",j="",w="";if(s=i[4]||"",r=i[5]||"",b=i[6]||"",["current","post-type"].includes(o))switch(a=i[1]||"",l=i[2]||"",n=i[3]||"",n){case"post-custom-field":c=i[7]||"";break;case"post-date":case"post-time":d=i[7]||"",u=i[8]||"","custom"===u&&(p=i[9]||"");break;case"post-excerpt":m=i[7]||"";break;case"post-terms":h=i[7]||"",g=i[8]||"";break;case"author-meta":f=i[7]||"";break;case"numberOfTopics":y=i[7]||0;break;case"numberOfReviews":T=i[7]||0;break;case"numberOfEnrolled":H=i[7]||0;break;case"totalDuration":M=i[7]||0}else if("link"===o)switch(n=i[1]||"",n){case"internal-url-content":l=i[2],a=i[3];break;case"internal-url-taxonomy":x=i[2];break;case"internal-url-media":k=i[2];break | |
| 6579 | +;case"internal-url-author":v=i[2]}else"image"===o?n=i[1]||"":"current-date-time"===o?(_=i[1],R=i[2],S=i[3]):"request-parameter"===o?(W=i[1],P=i[2]):"user-info"===o?(U=i[1],j=i[2]):"shortcode"===o&&(w=i[1]);return{isDynamicByNewSolution:!0,source:o,source_type:a,source_id:l,group_item:n,before:s,after:r,fallback:b,metaKey:c,dateTimeType:d,dateTimeFormat:u,customDateTimeFormat:p,excerptWords:m,taxonomy:h,termsSeparator:g,authorMetaKey:f,numberOfTopics:y,numberOfReviews:T,numberOfEnrolled:H,taxonomyTermsUrlId:x,mediaId:k,authorId:v,TimeFormatOfCurrentDateTime:_,DateFormatOfCurrentDateTime:R,customFormatOfCurrentDateTime:S,requestParamType:W,requestParamName:P,userFieldName:U,userFieldMetaKey:j,shortcode:w}},ct=(t,e="",i="")=>{if(i)return x[i]??!1;const o=(e||t).replace(/^ablocks\//,"");return!!_[o]&&_[o]},dt=t=>{let e=o.A.sanitize(t,{ALLOWED_TAGS:["a","p","br","em","strong","ul","ol","li","blockquote","code","pre","img","b","i","u","h1","h2","h3","h4","h5","h6"], | |
| 6580 | +ALLOWED_ATTR:["href","src","alt","title","target","rel","class"],ALLOW_DATA_ATTR:!1});return"string"==typeof e&&/^-?\d+(\.\d+)?$/.test(e.trim())&&(e=e.includes(".")?parseFloat(e):parseInt(e,10)),String(e)},ut=(t="")=>t?k.global_typography_list[t]:{}},31050(t,e,i){"use strict";i.d(e,{KU:()=>b,Rz:()=>s,to:()=>r,wA:()=>n});var o=i(36168);const a=Array.isArray(o.P)?o.P:[],l=t=>!(!o.ZK&&a.length)||a.includes(t),n=()=>l("ablocks_edit_style"),s=()=>l("ablocks_edit_advanced"),r=()=>l("ablocks_edit_custom_css"),b=()=>l("ablocks_copy_paste_style")},30228(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function l(t,e,o,l,n){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new a(o,l||t,n),r=i?i+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],s]:t._events[r].push(s):(t._events[r]=s,t._eventsCount++),t}function n(t,e){ | |
| 6581 | +0===--t._eventsCount?t._events=new o:delete t._events[e]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),s.prototype.eventNames=function(){var t,o,a=[];if(0===this._eventsCount)return a;for(o in t=this._events)e.call(t,o)&&a.push(i?o.slice(1):o);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(t)):a},s.prototype.listeners=function(t){var e=i?i+t:t,o=this._events[e];if(!o)return[];if(o.fn)return[o.fn];for(var a=0,l=o.length,n=new Array(l);a<l;a++)n[a]=o[a].fn;return n},s.prototype.listenerCount=function(t){var e=i?i+t:t,o=this._events[e];return o?o.fn?1:o.length:0},s.prototype.emit=function(t,e,o,a,l,n){var s=i?i+t:t;if(!this._events[s])return!1;var r,b,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,o),!0;case 4: | |
| 6582 | +return c.fn.call(c.context,e,o,a),!0;case 5:return c.fn.call(c.context,e,o,a,l),!0;case 6:return c.fn.call(c.context,e,o,a,l,n),!0}for(b=1,r=new Array(d-1);b<d;b++)r[b-1]=arguments[b];c.fn.apply(c.context,r)}else{var u,p=c.length;for(b=0;b<p;b++)switch(c[b].once&&this.removeListener(t,c[b].fn,void 0,!0),d){case 1:c[b].fn.call(c[b].context);break;case 2:c[b].fn.call(c[b].context,e);break;case 3:c[b].fn.call(c[b].context,e,o);break;case 4:c[b].fn.call(c[b].context,e,o,a);break;default:if(!r)for(u=1,r=new Array(d-1);u<d;u++)r[u-1]=arguments[u];c[b].fn.apply(c[b].context,r)}}return!0},s.prototype.on=function(t,e,i){return l(this,t,e,i,!1)},s.prototype.once=function(t,e,i){return l(this,t,e,i,!0)},s.prototype.removeListener=function(t,e,o,a){var l=i?i+t:t;if(!this._events[l])return this;if(!e)return n(this,l),this;var s=this._events[l];if(s.fn)s.fn!==e||a&&!s.once||o&&s.context!==o||n(this,l);else{ | |
| 6583 | +for(var r=0,b=[],c=s.length;r<c;r++)(s[r].fn!==e||a&&!s[r].once||o&&s[r].context!==o)&&b.push(s[r]);b.length?this._events[l]=1===b.length?b[0]:b:n(this,l)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&n(this,e)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,t.exports=s},50411(t,e,i){var o;!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),l={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};void 0===(o=function(){return l}.call(e,i,e,t))||(t.exports=o)}()},85606(t){var e=-1;function i(t,p,m,h,g){if(t===p)return t?[[0,t]]:[];if(null!=m){var y=function(t,e,i){var o="number"==typeof i?{index:i,length:0 | |
| 6584 | +}:i.oldRange,a="number"==typeof i?null:i.newRange,l=t.length,n=e.length;if(0===o.length&&(null===a||0===a.length)){var s=o.index,r=t.slice(0,s),b=t.slice(s),c=a?a.index:null,d=s+n-l;if((null===c||c===d)&&!(d<0||d>n)){var u=e.slice(0,d);if((h=e.slice(d))===b){var p=Math.min(s,d);if((y=r.slice(0,p))===(H=u.slice(0,p)))return f(y,r.slice(p),u.slice(p),b)}}if(null===c||c===s){var m=s,h=(u=e.slice(0,m),e.slice(m));if(u===r){var g=Math.min(l-m,n-m);if((T=b.slice(b.length-g))===(M=h.slice(h.length-g)))return f(r,b.slice(0,b.length-g),h.slice(0,h.length-g),T)}}}if(o.length>0&&a&&0===a.length){var y=t.slice(0,o.index),T=t.slice(o.index+o.length);if(!(n<(p=y.length)+(g=T.length))){var H=e.slice(0,p),M=e.slice(n-g);if(y===H&&T===M)return f(y,t.slice(p,l-g),e.slice(p,n-g),T)}}return null}(t,p,m);if(y)return y}var T=a(t,p),H=t.substring(0,T);T=n(t=t.substring(T),p=p.substring(T));var M=t.substring(t.length-T),x=function(t,l){var s;if(!t)return[[1,l]];if(!l)return[[e,t]] | |
| 6585 | +;var r=t.length>l.length?t:l,b=t.length>l.length?l:t,c=r.indexOf(b);if(-1!==c)return s=[[1,r.substring(0,c)],[0,b],[1,r.substring(c+b.length)]],t.length>l.length&&(s[0][0]=s[2][0]=e),s;if(1===b.length)return[[e,t],[1,l]];var d=function(t,e){var i=t.length>e.length?t:e,o=t.length>e.length?e:t;if(i.length<4||2*o.length<i.length)return null;function l(t,e,i){for(var o,l,s,r,b=t.substring(i,i+Math.floor(t.length/4)),c=-1,d="";-1!==(c=e.indexOf(b,c+1));){var u=a(t.substring(i),e.substring(c)),p=n(t.substring(0,i),e.substring(0,c));d.length<p+u&&(d=e.substring(c-p,c)+e.substring(c,c+u),o=t.substring(0,i-p),l=t.substring(i+u),s=e.substring(0,c-p),r=e.substring(c+u))}return 2*d.length>=t.length?[o,l,s,r,d]:null}var s,r,b,c,d,u=l(i,o,Math.ceil(i.length/4)),p=l(i,o,Math.ceil(i.length/2));return u||p?(s=p?u&&u[4].length>p[4].length?u:p:u,t.length>e.length?(r=s[0],b=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],r=s[2],b=s[3]),[r,b,c,d,s[4]]):null}(t,l);if(d){ | |
| 6586 | +var u=d[0],p=d[1],m=d[2],h=d[3],g=d[4],f=i(u,m),y=i(p,h);return f.concat([[0,g]],y)}return function(t,i){for(var a=t.length,l=i.length,n=Math.ceil((a+l)/2),s=n,r=2*n,b=new Array(r),c=new Array(r),d=0;d<r;d++)b[d]=-1,c[d]=-1;b[s+1]=0,c[s+1]=0;for(var u=a-l,p=u%2!=0,m=0,h=0,g=0,f=0,y=0;y<n;y++){for(var T=-y+m;T<=y-h;T+=2){for(var H=s+T,M=(R=T===-y||T!==y&&b[H-1]<b[H+1]?b[H+1]:b[H-1]+1)-T;R<a&&M<l&&t.charAt(R)===i.charAt(M);)R++,M++;if(b[H]=R,R>a)h+=2;else if(M>l)m+=2;else if(p&&(v=s+u-T)>=0&&v<r&&-1!==c[v]&&R>=(k=a-c[v]))return o(t,i,R,M)}for(var x=-y+g;x<=y-f;x+=2){for(var k,v=s+x,_=(k=x===-y||x!==y&&c[v-1]<c[v+1]?c[v+1]:c[v-1]+1)-x;k<a&&_<l&&t.charAt(a-k-1)===i.charAt(l-_-1);)k++,_++;if(c[v]=k,k>a)f+=2;else if(_>l)g+=2;else if(!p){var R;if((H=s+u-x)>=0&&H<r&&-1!==b[H])if(M=s+(R=b[H])-H,R>=(k=a-k))return o(t,i,R,M)}}}return[[e,t],[1,i]]}(t,l)}(t=t.substring(0,t.length-T),p=p.substring(0,p.length-T));return H&&x.unshift([0,H]),M&&x.push([0,M]),u(x,g),h&&function(t){ | |
| 6587 | +for(var i=!1,o=[],a=0,p=null,m=0,h=0,g=0,f=0,y=0;m<t.length;)0==t[m][0]?(o[a++]=m,h=f,g=y,f=0,y=0,p=t[m][1]):(1==t[m][0]?f+=t[m][1].length:y+=t[m][1].length,p&&p.length<=Math.max(h,g)&&p.length<=Math.max(f,y)&&(t.splice(o[a-1],0,[e,p]),t[o[a-1]+1][0]=1,a--,m=--a>0?o[a-1]:-1,h=0,g=0,f=0,y=0,p=null,i=!0)),m++;for(i&&u(t),function(t){function e(t,e){if(!t||!e)return 6;var i=t.charAt(t.length-1),o=e.charAt(0),a=i.match(s),l=o.match(s),n=a&&i.match(r),u=l&&o.match(r),p=n&&i.match(b),m=u&&o.match(b),h=p&&t.match(c),g=m&&e.match(d);return h||g?5:p||m?4:a&&!n&&u?3:n||u?2:a||l?1:0}for(var i=1;i<t.length-1;){if(0==t[i-1][0]&&0==t[i+1][0]){var o=t[i-1][1],a=t[i][1],l=t[i+1][1],u=n(o,a);if(u){var p=a.substring(a.length-u);o=o.substring(0,o.length-u),a=p+a.substring(0,a.length-u),l=p+l}for(var m=o,h=a,g=l,f=e(o,a)+e(a,l);a.charAt(0)===l.charAt(0);){o+=a.charAt(0),a=a.substring(1)+l.charAt(0),l=l.substring(1);var y=e(o,a)+e(a,l);y>=f&&(f=y,m=o,h=a,g=l)}t[i-1][1]!=m&&(m?t[i-1][1]=m:(t.splice(i-1,1), | |
| 6588 | +i--),t[i][1]=h,g?t[i+1][1]=g:(t.splice(i+1,1),i--))}i++}}(t),m=1;m<t.length;){if(t[m-1][0]==e&&1==t[m][0]){var T=t[m-1][1],H=t[m][1],M=l(T,H),x=l(H,T);M>=x?(M>=T.length/2||M>=H.length/2)&&(t.splice(m,0,[0,H.substring(0,M)]),t[m-1][1]=T.substring(0,T.length-M),t[m+1][1]=H.substring(M),m++):(x>=T.length/2||x>=H.length/2)&&(t.splice(m,0,[0,T.substring(0,x)]),t[m-1][0]=1,t[m-1][1]=H.substring(0,H.length-x),t[m+1][0]=e,t[m+1][1]=T.substring(x),m++),m++}m++}}(x),x}function o(t,e,o,a){var l=t.substring(0,o),n=e.substring(0,a),s=t.substring(o),r=e.substring(a),b=i(l,n),c=i(s,r);return b.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var i=0,o=Math.min(t.length,e.length),a=o,l=0;i<a;)t.substring(l,a)==e.substring(l,a)?l=i=a:o=a,a=Math.floor((o-i)/2+i);return p(t.charCodeAt(a-1))&&a--,a}function l(t,e){var i=t.length,o=e.length;if(0==i||0==o)return 0;i>o?t=t.substring(i-o):i<o&&(e=e.substring(0,i));var a=Math.min(i,o);if(t==e)return a;for(var l=0,n=1;;){ | |
| 6589 | +var s=t.substring(a-n),r=e.indexOf(s);if(-1==r)return l;n+=r,0!=r&&t.substring(a-n)!=e.substring(0,n)||(l=n,n++)}}function n(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var i=0,o=Math.min(t.length,e.length),a=o,l=0;i<a;)t.substring(t.length-a,t.length-l)==e.substring(e.length-a,e.length-l)?l=i=a:o=a,a=Math.floor((o-i)/2+i);return m(t.charCodeAt(t.length-a))&&a--,a}var s=/[^a-zA-Z0-9]/,r=/\s/,b=/[\r\n]/,c=/\n\r?\n$/,d=/^\r?\n\r?\n/;function u(t,i){t.push([0,""]);for(var o,l=0,s=0,r=0,b="",c="";l<t.length;)if(l<t.length-1&&!t[l][1])t.splice(l,1);else switch(t[l][0]){case 1:r++,c+=t[l][1],l++;break;case e:s++,b+=t[l][1],l++;break;case 0:var d=l-r-s-1;if(i){if(d>=0&&g(t[d][1])){var p=t[d][1].slice(-1);if(t[d][1]=t[d][1].slice(0,-1),b=p+b,c=p+c,!t[d][1]){t.splice(d,1),l--;var m=d-1;t[m]&&1===t[m][0]&&(r++,c=t[m][1]+c,m--),t[m]&&t[m][0]===e&&(s++,b=t[m][1]+b,m--),d=m}}h(t[l][1])&&(p=t[l][1].charAt(0),t[l][1]=t[l][1].slice(1),b+=p,c+=p)}if(l<t.length-1&&!t[l][1]){t.splice(l,1) | |
| 6590 | +;break}if(b.length>0||c.length>0){b.length>0&&c.length>0&&(0!==(o=a(c,b))&&(d>=0?t[d][1]+=c.substring(0,o):(t.splice(0,0,[0,c.substring(0,o)]),l++),c=c.substring(o),b=b.substring(o)),0!==(o=n(c,b))&&(t[l][1]=c.substring(c.length-o)+t[l][1],c=c.substring(0,c.length-o),b=b.substring(0,b.length-o)));var f=r+s;0===b.length&&0===c.length?(t.splice(l-f,f),l-=f):0===b.length?(t.splice(l-f,f,[1,c]),l=l-f+1):0===c.length?(t.splice(l-f,f,[e,b]),l=l-f+1):(t.splice(l-f,f,[e,b],[1,c]),l=l-f+2)}0!==l&&0===t[l-1][0]?(t[l-1][1]+=t[l][1],t.splice(l,1)):l++,r=0,s=0,b="",c=""}""===t[t.length-1][1]&&t.pop();var y=!1;for(l=1;l<t.length-1;)0===t[l-1][0]&&0===t[l+1][0]&&(t[l][1].substring(t[l][1].length-t[l-1][1].length)===t[l-1][1]?(t[l][1]=t[l-1][1]+t[l][1].substring(0,t[l][1].length-t[l-1][1].length),t[l+1][1]=t[l-1][1]+t[l+1][1],t.splice(l-1,1),y=!0):t[l][1].substring(0,t[l+1][1].length)==t[l+1][1]&&(t[l-1][1]+=t[l+1][1],t[l][1]=t[l][1].substring(t[l+1][1].length)+t[l+1][1],t.splice(l+1,1),y=!0)),l++ | |
| 6591 | +;y&&u(t,i)}function p(t){return t>=55296&&t<=56319}function m(t){return t>=56320&&t<=57343}function h(t){return m(t.charCodeAt(0))}function g(t){return p(t.charCodeAt(t.length-1))}function f(t,i,o,a){return g(t)||h(a)?null:function(t){for(var e=[],i=0;i<t.length;i++)t[i][1].length>0&&e.push(t[i]);return e}([[0,t],[e,i],[1,o],[0,a]])}function y(t,e,o,a){return i(t,e,o,a,!0)}y.INSERT=1,y.DELETE=e,y.EQUAL=0,t.exports=y},4146(t,e,i){"use strict";var o=i(73404),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function r(t){return o.isMemo(t)?n:s[t.$$typeof]||a}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=n | |
| 6592 | +;var b=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;t.exports=function t(e,i,o){if("string"!=typeof i){if(m){var a=p(i);a&&a!==m&&t(e,a,o)}var n=c(i);d&&(n=n.concat(d(i)));for(var s=r(e),h=r(i),g=0;g<n.length;++g){var f=n[g];if(!(l[f]||o&&o[f]||h&&h[f]||s&&s[f])){var y=u(i,f);try{b(e,f,y)}catch(t){}}}}return e}},3072(t,e){"use strict" | |
| 6544 | 6593 | ;var i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,n=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,r=i?Symbol.for("react.provider"):60109,b=i?Symbol.for("react.context"):60110,c=i?Symbol.for("react.async_mode"):60111,d=i?Symbol.for("react.concurrent_mode"):60111,u=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.suspense_list"):60120,h=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,f=i?Symbol.for("react.block"):60121,y=i?Symbol.for("react.fundamental"):60117,T=i?Symbol.for("react.responder"):60118,H=i?Symbol.for("react.scope"):60119;function M(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case c:case d:case l:case s:case n:case p:return t;default:switch(t=t&&t.$$typeof){case b:case u:case g:case h:case r:return t;default:return e}} |
| 6545 | 6594 | case a:return e}}}function x(t){return M(t)===d}e.AsyncMode=c,e.ConcurrentMode=d,e.ContextConsumer=b,e.ContextProvider=r,e.Element=o,e.ForwardRef=u,e.Fragment=l,e.Lazy=g,e.Memo=h,e.Portal=a,e.Profiler=s,e.StrictMode=n,e.Suspense=p,e.isAsyncMode=function(t){return x(t)||M(t)===c},e.isConcurrentMode=x,e.isContextConsumer=function(t){return M(t)===b},e.isContextProvider=function(t){return M(t)===r},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return M(t)===u},e.isFragment=function(t){return M(t)===l},e.isLazy=function(t){return M(t)===g},e.isMemo=function(t){return M(t)===h},e.isPortal=function(t){return M(t)===a},e.isProfiler=function(t){return M(t)===s},e.isStrictMode=function(t){return M(t)===n},e.isSuspense=function(t){return M(t)===p},e.isValidElementType=function(t){ |
| 6546 | 6595 | return"string"==typeof t||"function"==typeof t||t===l||t===d||t===s||t===n||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===h||t.$$typeof===r||t.$$typeof===b||t.$$typeof===u||t.$$typeof===y||t.$$typeof===T||t.$$typeof===H||t.$$typeof===f)},e.typeOf=M},73404(t,e,i){"use strict";t.exports=i(3072)},72189(){L.Control.Fullscreen=L.Control.extend({options:{position:"topleft",title:{false:"View Fullscreen",true:"Exit Fullscreen"}},onAdd:function(t){var e=L.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");return this.link=L.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",e),this.link.href="#",this._map=t,this._map.on("fullscreenchange",this._toggleTitle,this),this._toggleTitle(),L.DomEvent.on(this.link,"click",this._click,this),e},_click:function(t){L.DomEvent.stopPropagation(t),L.DomEvent.preventDefault(t),this._map.toggleFullscreen(this.options)},_toggleTitle:function(){ |
| 6547 | 6596 | this.link.title=this.options.title[this._map.isFullscreen()]}}),L.Map.include({isFullscreen:function(){return this._isFullscreen||!1},toggleFullscreen:function(t){var e=this.getContainer();this.isFullscreen()?t&&t.pseudoFullscreen?this._disablePseudoFullscreen(e):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this._disablePseudoFullscreen(e):t&&t.pseudoFullscreen?this._enablePseudoFullscreen(e):e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():this._enablePseudoFullscreen(e)},_enablePseudoFullscreen:function(t){L.DomUtil.addClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!0),this.fire("fullscreenchange")}, |
| @@ -6552,32 +6601,32 @@ | ||
| 6552 | 6601 | S.extend=function(t){var o=function(){u(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=o.__super__=this.prototype,l=i(a);for(var n in l.constructor=o,o.prototype=l,this)Object.prototype.hasOwnProperty.call(this,n)&&"prototype"!==n&&"__super__"!==n&&(o[n]=this[n]);return t.statics&&e(o,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[l].concat(t.includes))),e(l,t),delete l.statics,delete l.includes,l.options&&(l.options=a.options?i(a.options):{},e(l.options,t.options)),l._initHooks=[],l.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=l._initHooks.length;t<e;t++)l._initHooks[t].call(this)}},o |
| 6553 | 6602 | },S.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},S.mergeOptions=function(t){return e(this.prototype.options,t),this},S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var W={on:function(t,e,i){if("object"==typeof t)for(var o in t)this._on(o,t[o],e);else for(var a=0,l=(t=d(t)).length;a<l;a++)this._on(t[a],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var o in t)this._off(o,t[o],e);else{t=d(t);for(var a=1===arguments.length,l=0,n=t.length;l<n;l++)a?this._off(t[l]):this._off(t[l],e,i)}else delete this._events;return this},_on:function(t,e,i,o){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var a={fn:e,ctx:i};o&&(a.once=!0), |
| 6554 | 6603 | this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(a)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var o,a,l;if(this._events&&(o=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var n=this._listens(t,e,i);if(!1!==n){var s=o[n];this._firingCount&&(s.fn=r,this._events[t]=o=o.slice()),o.splice(n,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(a=0,l=o.length;a<l;a++)o[a].fn=r;delete this._events[t]}},fire:function(t,i,o){if(!this.listens(t,o))return this;var a=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var l=this._events[t];if(l){this._firingCount=this._firingCount+1||1;for(var n=0,s=l.length;n<s;n++){var r=l[n],b=r.fn;r.once&&this.off(t,b,r.ctx),b.call(r.ctx||this,a)}this._firingCount--}}return o&&this._propagateEvent(a),this},listens:function(t,e,i,o){"string"!=typeof t&&console.warn('"string" type argument expected');var a=e |
| 6555 | 6604 | ;"function"!=typeof e&&(o=!!e,a=void 0,i=void 0);var l=this._events&&this._events[t];if(l&&l.length&&!1!==this._listens(t,a,i))return!0;if(o)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e,i,o))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;i===this&&(i=void 0);for(var a=0,l=o.length;a<l;a++)if(o[a].fn===e&&o[a].ctx===i)return a;return!1},once:function(t,e,i){if("object"==typeof t)for(var o in t)this._on(o,t[o],e,!0);else for(var a=0,l=(t=d(t)).length;a<l;a++)this._on(t[a],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[l(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[l(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};W.addEventListener=W.on, |
| 6556 | -W.removeEventListener=W.clearAllEventListeners=W.off,W.addOneTimeEventListener=W.once,W.fireEvent=W.fire,W.hasEventListeners=W.listens;var U=S.extend(W);function P(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var j=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function w(t,e,i){return t instanceof P?t:g(t)?new P(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new P(t.x,t.y):new P(t,e,i)}function z(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}function C(t,e){return!t||t instanceof z?t:new z(t,e)}function A(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}function D(t,e){return t instanceof A?t:new A(t,e)}function N(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function I(t,e,i){ | |
| 6557 | -return t instanceof N?t:g(t)&&"object"!=typeof t[0]?3===t.length?new N(t[0],t[1],t[2]):2===t.length?new N(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new N(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new N(t,e,i)}P.prototype={clone:function(){return new P(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new P(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new P(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){ | |
| 6558 | -return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=j(this.x),this.y=j(this.y),this},distanceTo:function(t){var e=(t=w(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=w(t)).x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}},z.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof P||"number"==typeof t[0]||"x"in t)e=i=w(t);else if(e=(t=C(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y), | |
| 6559 | -this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return w((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return w(this.min.x,this.max.y)},getTopRight:function(){return w(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof P?w(t):C(t))instanceof z?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=C(t);var e=this.min,i=this.max,o=t.min,a=t.max,l=a.x>=e.x&&o.x<=i.x,n=a.y>=e.y&&o.y<=i.y;return l&&n},overlaps:function(t){t=C(t);var e=this.min,i=this.max,o=t.min,a=t.max,l=a.x>e.x&&o.x<i.x,n=a.y>e.y&&o.y<i.y;return l&&n},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,o=Math.abs(e.x-i.x)*t,a=Math.abs(e.y-i.y)*t | |
| 6605 | +W.removeEventListener=W.clearAllEventListeners=W.off,W.addOneTimeEventListener=W.once,W.fireEvent=W.fire,W.hasEventListeners=W.listens;var P=S.extend(W);function U(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var j=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function w(t,e,i){return t instanceof U?t:g(t)?new U(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new U(t.x,t.y):new U(t,e,i)}function z(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}function C(t,e){return!t||t instanceof z?t:new z(t,e)}function A(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}function D(t,e){return t instanceof A?t:new A(t,e)}function N(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function I(t,e,i){ | |
| 6606 | +return t instanceof N?t:g(t)&&"object"!=typeof t[0]?3===t.length?new N(t[0],t[1],t[2]):2===t.length?new N(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new N(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new N(t,e,i)}U.prototype={clone:function(){return new U(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new U(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new U(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){ | |
| 6607 | +return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=j(this.x),this.y=j(this.y),this},distanceTo:function(t){var e=(t=w(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=w(t)).x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}},z.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof U||"number"==typeof t[0]||"x"in t)e=i=w(t);else if(e=(t=C(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y), | |
| 6608 | +this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return w((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return w(this.min.x,this.max.y)},getTopRight:function(){return w(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof U?w(t):C(t))instanceof z?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=C(t);var e=this.min,i=this.max,o=t.min,a=t.max,l=a.x>=e.x&&o.x<=i.x,n=a.y>=e.y&&o.y<=i.y;return l&&n},overlaps:function(t){t=C(t);var e=this.min,i=this.max,o=t.min,a=t.max,l=a.x>e.x&&o.x<i.x,n=a.y>e.y&&o.y<i.y;return l&&n},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,o=Math.abs(e.x-i.x)*t,a=Math.abs(e.y-i.y)*t | |
| 6560 | 6609 | ;return C(w(e.x-o,e.y-a),w(i.x+o,i.y+a))},equals:function(t){return!!t&&(t=C(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},A.prototype={extend:function(t){var e,i,o=this._southWest,a=this._northEast;if(t instanceof N)e=t,i=t;else{if(!(t instanceof A))return t?this.extend(I(t)||D(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return o||a?(o.lat=Math.min(e.lat,o.lat),o.lng=Math.min(e.lng,o.lng),a.lat=Math.max(i.lat,a.lat),a.lng=Math.max(i.lng,a.lng)):(this._southWest=new N(e.lat,e.lng),this._northEast=new N(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,o=Math.abs(e.lat-i.lat)*t,a=Math.abs(e.lng-i.lng)*t;return new A(new N(e.lat-o,e.lng-a),new N(i.lat+o,i.lng+a))},getCenter:function(){return new N((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){ |
| 6561 | 6610 | return new N(this.getNorth(),this.getWest())},getSouthEast:function(){return new N(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof N||"lat"in t?I(t):D(t);var e,i,o=this._southWest,a=this._northEast;return t instanceof A?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=o.lat&&i.lat<=a.lat&&e.lng>=o.lng&&i.lng<=a.lng},intersects:function(t){t=D(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),l=a.lat>=e.lat&&o.lat<=i.lat,n=a.lng>=e.lng&&o.lng<=i.lng;return l&&n},overlaps:function(t){t=D(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),l=a.lat>e.lat&&o.lat<i.lat,n=a.lng>e.lng&&o.lng<i.lng;return l&&n},toBBoxString:function(){ |
| 6562 | 6611 | return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=D(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},N.prototype={equals:function(t,e){return!!t&&(t=I(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+b(this.lat,t)+", "+b(this.lng,t)+")"},distanceTo:function(t){return Y.distance(this,I(t))},wrap:function(){return Y.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return D([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new N(this.lat,this.lng,this.alt)}};var V,O={latLngToPoint:function(t,e){var i=this.projection.project(t),o=this.scale(e);return this.transformation._transform(i,o)},pointToLatLng:function(t,e){var i=this.scale(e),o=this.transformation.untransform(t,i) |
| 6563 | 6612 | ;return this.projection.unproject(o)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new z(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng;return new N(this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),o=e.lat-i.lat,a=e.lng-i.lng;if(0===o&&0===a)return t;var l=t.getSouthWest(),n=t.getNorthEast();return new A(new N(l.lat-o,l.lng-a),new N(n.lat-o,n.lng-a))}},Y=e({},O,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){ |
| 6564 | -var i=Math.PI/180,o=t.lat*i,a=e.lat*i,l=Math.sin((e.lat-t.lat)*i/2),n=Math.sin((e.lng-t.lng)*i/2),s=l*l+Math.cos(o)*Math.cos(a)*n*n,r=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*r}}),X=6378137,B={R:X,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,o=Math.max(Math.min(i,t.lat),-i),a=Math.sin(o*e);return new P(this.R*t.lng*e,this.R*Math.log((1+a)/(1-a))/2)},unproject:function(t){var e=180/Math.PI;return new N((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(V=X*Math.PI,new z([-V,-V],[V,V]))};function E(t,e,i,o){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=o}function F(t,e,i,o){return new E(t,e,i,o)}E.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1, | |
| 6565 | -new P((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var q=e({},Y,{code:"EPSG:3857",projection:B,transformation:function(){var t=.5/(Math.PI*B.R);return F(t,.5,-t,.5)}()}),$=e({},q,{code:"EPSG:900913"});function G(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Z(t,e){var i,o,a,l,n,s,r="";for(i=0,a=t.length;i<a;i++){for(o=0,l=(n=t[i]).length;o<l;o++)r+=(o?"L":"M")+(s=n[o]).x+" "+s.y;r+=e?Ct.svg?"z":"x":""}return r||"M0 0"} | |
| 6613 | +var i=Math.PI/180,o=t.lat*i,a=e.lat*i,l=Math.sin((e.lat-t.lat)*i/2),n=Math.sin((e.lng-t.lng)*i/2),s=l*l+Math.cos(o)*Math.cos(a)*n*n,r=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*r}}),X=6378137,B={R:X,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,o=Math.max(Math.min(i,t.lat),-i),a=Math.sin(o*e);return new U(this.R*t.lng*e,this.R*Math.log((1+a)/(1-a))/2)},unproject:function(t){var e=180/Math.PI;return new N((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(V=X*Math.PI,new z([-V,-V],[V,V]))};function E(t,e,i,o){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=o}function F(t,e,i,o){return new E(t,e,i,o)}E.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1, | |
| 6614 | +new U((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var q=e({},Y,{code:"EPSG:3857",projection:B,transformation:function(){var t=.5/(Math.PI*B.R);return F(t,.5,-t,.5)}()}),$=e({},q,{code:"EPSG:900913"});function G(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Z(t,e){var i,o,a,l,n,s,r="";for(i=0,a=t.length;i<a;i++){for(o=0,l=(n=t[i]).length;o<l;o++)r+=(o?"L":"M")+(s=n[o]).x+" "+s.y;r+=e?Ct.svg?"z":"x":""}return r||"M0 0"} | |
| 6566 | 6615 | var K,J=document.documentElement.style,Q="ActiveXObject"in window,tt=Q&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),it=zt("webkit"),ot=zt("android"),at=zt("android 2")||zt("android 3"),lt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),nt=ot&&zt("Google")&<<537&&!("AudioNode"in window),st=!!window.opera,rt=!et&&zt("chrome"),bt=zt("gecko")&&!it&&!st&&!Q,ct=!rt&&zt("safari"),dt=zt("phantom"),ut="OTransition"in J,pt=0===navigator.platform.indexOf("Win"),mt=Q&&"transition"in J,ht="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!at,gt="MozPerspective"in J,ft=!window.L_DISABLE_3D&&(mt||ht||gt)&&!ut&&!dt,yt="undefined"!=typeof orientation||zt("mobile"),Tt=yt&&it,Ht=yt&&ht,Mt=!window.PointerEvent&&window.MSPointerEvent,xt=!(!window.PointerEvent&&!Mt),kt="ontouchstart"in window||!!window.TouchEvent,vt=!window.L_NO_TOUCH&&(kt||xt),_t=yt&&st,Rt=yt&&bt,St=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Wt=function(){ |
| 6567 | -var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",r,e),window.removeEventListener("testPassiveEventSupport",r,e)}catch(t){}return t}(),Ut=!!document.createElement("canvas").getContext,Pt=!(!document.createElementNS||!G("svg").createSVGRect),jt=!!Pt&&((K=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(K.firstChild&&K.firstChild.namespaceURI)),wt=!Pt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ct={ie:Q,ielt9:tt,edge:et,webkit:it,android:ot,android23:at,androidStock:nt,opera:st,chrome:rt,gecko:bt,safari:ct,phantom:dt,opera12:ut,win:pt,ie3d:mt,webkit3d:ht,gecko3d:gt,any3d:ft,mobile:yt,mobileWebkit:Tt,mobileWebkit3d:Ht,msPointer:Mt,pointer:xt,touch:vt, | |
| 6568 | -touchNative:kt,mobileOpera:_t,mobileGecko:Rt,retina:St,passiveEvents:Wt,canvas:Ut,svg:Pt,vml:wt,inlineSvg:jt,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},At=Ct.msPointer?"MSPointerDown":"pointerdown",Lt=Ct.msPointer?"MSPointerMove":"pointermove",Dt=Ct.msPointer?"MSPointerUp":"pointerup",Nt=Ct.msPointer?"MSPointerCancel":"pointercancel",It={touchstart:At,touchmove:Lt,touchend:Dt,touchcancel:Nt},Vt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&De(e),qt(t,e)},touchmove:qt,touchend:qt,touchcancel:qt},Ot={},Yt=!1;function Xt(t,e,i){return"touchstart"===e&&(Yt||(document.addEventListener(At,Bt,!0),document.addEventListener(Lt,Et,!0),document.addEventListener(Dt,Ft,!0),document.addEventListener(Nt,Ft,!0),Yt=!0)),Vt[e]?(i=Vt[e].bind(this,i),t.addEventListener(It[e],i,!1),i):(console.warn("wrong event specified:",e),r)}function Bt(t){Ot[t.pointerId]=t}function Et(t){Ot[t.pointerId]&&(Ot[t.pointerId]=t)} | |
| 6616 | +var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",r,e),window.removeEventListener("testPassiveEventSupport",r,e)}catch(t){}return t}(),Pt=!!document.createElement("canvas").getContext,Ut=!(!document.createElementNS||!G("svg").createSVGRect),jt=!!Ut&&((K=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(K.firstChild&&K.firstChild.namespaceURI)),wt=!Ut&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ct={ie:Q,ielt9:tt,edge:et,webkit:it,android:ot,android23:at,androidStock:nt,opera:st,chrome:rt,gecko:bt,safari:ct,phantom:dt,opera12:ut,win:pt,ie3d:mt,webkit3d:ht,gecko3d:gt,any3d:ft,mobile:yt,mobileWebkit:Tt,mobileWebkit3d:Ht,msPointer:Mt,pointer:xt,touch:vt, | |
| 6617 | +touchNative:kt,mobileOpera:_t,mobileGecko:Rt,retina:St,passiveEvents:Wt,canvas:Pt,svg:Ut,vml:wt,inlineSvg:jt,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},At=Ct.msPointer?"MSPointerDown":"pointerdown",Lt=Ct.msPointer?"MSPointerMove":"pointermove",Dt=Ct.msPointer?"MSPointerUp":"pointerup",Nt=Ct.msPointer?"MSPointerCancel":"pointercancel",It={touchstart:At,touchmove:Lt,touchend:Dt,touchcancel:Nt},Vt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&De(e),qt(t,e)},touchmove:qt,touchend:qt,touchcancel:qt},Ot={},Yt=!1;function Xt(t,e,i){return"touchstart"===e&&(Yt||(document.addEventListener(At,Bt,!0),document.addEventListener(Lt,Et,!0),document.addEventListener(Dt,Ft,!0),document.addEventListener(Nt,Ft,!0),Yt=!0)),Vt[e]?(i=Vt[e].bind(this,i),t.addEventListener(It[e],i,!1),i):(console.warn("wrong event specified:",e),r)}function Bt(t){Ot[t.pointerId]=t}function Et(t){Ot[t.pointerId]&&(Ot[t.pointerId]=t)} | |
| 6569 | 6618 | function Ft(t){delete Ot[t.pointerId]}function qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Ot)e.touches.push(Ot[i]);e.changedTouches=[e],t(e)}}var $t,Gt,Zt,Kt,Jt,Qt=he(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),te=he(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ee="webkitTransition"===te||"OTransition"===te?te+"End":"transitionend";function ie(t){return"string"==typeof t?document.getElementById(t):t}function oe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);i=o?o[e]:null}return"auto"===i?null:i}function ae(t,e,i){var o=document.createElement(t);return o.className=e||"",i&&i.appendChild(o),o}function le(t){var e=t.parentNode;e&&e.removeChild(t)}function ne(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function se(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t) |
| 6570 | 6619 | }function re(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function be(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=pe(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ce(t,e){if(void 0!==t.classList)for(var i=d(e),o=0,a=i.length;o<a;o++)t.classList.add(i[o]);else if(!be(t,e)){var l=pe(t);ue(t,(l?l+" ":"")+e)}}function de(t,e){void 0!==t.classList?t.classList.remove(e):ue(t,c((" "+pe(t)+" ").replace(" "+e+" "," ")))}function ue(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function pe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function me(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var i=!1,o="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(o)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}(t,e)} |
| 6571 | -function he(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ge(t,e,i){var o=e||new P(0,0);t.style[Qt]=(Ct.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(i?" scale("+i+")":"")}function fe(t,e){t._leaflet_pos=e,Ct.any3d?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ye(t){return t._leaflet_pos||new P(0,0)}if("onselectstart"in document)$t=function(){Se(window,"selectstart",De)},Gt=function(){Ue(window,"selectstart",De)};else{var Te=he(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$t=function(){if(Te){var t=document.documentElement.style;Zt=t[Te],t[Te]="none"}},Gt=function(){Te&&(document.documentElement.style[Te]=Zt,Zt=void 0)}}function He(){Se(window,"dragstart",De)}function Me(){Ue(window,"dragstart",De)}function xe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ke(),Kt=t,Jt=t.style.outlineStyle,t.style.outlineStyle="none",Se(window,"keydown",ke))} | |
| 6572 | -function ke(){Kt&&(Kt.style.outlineStyle=Jt,Kt=void 0,Jt=void 0,Ue(window,"keydown",ke))}function ve(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function _e(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Re={__proto__:null,TRANSFORM:Qt,TRANSITION:te,TRANSITION_END:ee,get:ie,getStyle:oe,create:ae,remove:le,empty:ne,toFront:se,toBack:re,hasClass:be,addClass:ce,removeClass:de,setClass:ue,getClass:pe,setOpacity:me,testProp:he,setTransform:ge,setPosition:fe,getPosition:ye,get disableTextSelection(){return $t},get enableTextSelection(){return Gt},disableImageDrag:He,enableImageDrag:Me,preventOutline:xe,restoreOutline:ke,getSizedParentNode:ve,getScale:_e};function Se(t,e,i,o){if(e&&"object"==typeof e)for(var a in e)we(t,a,e[a],i);else for(var l=0,n=(e=d(e)).length;l<n;l++)we(t,e[l],i,o);return this}var We="_leaflet_events";function Ue(t,e,i,o){ | |
| 6573 | -if(1===arguments.length)Pe(t),delete t[We];else if(e&&"object"==typeof e)for(var a in e)ze(t,a,e[a],i);else if(e=d(e),2===arguments.length)Pe(t,function(t){return-1!==f(e,t)});else for(var l=0,n=e.length;l<n;l++)ze(t,e[l],i,o);return this}function Pe(t,e){for(var i in t[We]){var o=i.split(/\d/)[0];e&&!e(o)||ze(t,o,null,null,i)}}var je={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function we(t,e,i,o){var a=e+l(i)+(o?"_"+l(o):"");if(t[We]&&t[We][a])return this;var n=function(e){return i.call(o||t,e||window.event)},s=n;!Ct.touchNative&&Ct.pointer&&0===e.indexOf("touch")?n=Xt(t,e,n):Ct.touch&&"dblclick"===e?n=function(t,e){t.addEventListener("dblclick",e);var i,o=0;function a(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var a=Ie(t);if(!a.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||a.some(function(t){ | |
| 6620 | +function he(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ge(t,e,i){var o=e||new U(0,0);t.style[Qt]=(Ct.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(i?" scale("+i+")":"")}function fe(t,e){t._leaflet_pos=e,Ct.any3d?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ye(t){return t._leaflet_pos||new U(0,0)}if("onselectstart"in document)$t=function(){Se(window,"selectstart",De)},Gt=function(){Pe(window,"selectstart",De)};else{var Te=he(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$t=function(){if(Te){var t=document.documentElement.style;Zt=t[Te],t[Te]="none"}},Gt=function(){Te&&(document.documentElement.style[Te]=Zt,Zt=void 0)}}function He(){Se(window,"dragstart",De)}function Me(){Pe(window,"dragstart",De)}function xe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ke(),Kt=t,Jt=t.style.outlineStyle,t.style.outlineStyle="none",Se(window,"keydown",ke))} | |
| 6621 | +function ke(){Kt&&(Kt.style.outlineStyle=Jt,Kt=void 0,Jt=void 0,Pe(window,"keydown",ke))}function ve(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function _e(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Re={__proto__:null,TRANSFORM:Qt,TRANSITION:te,TRANSITION_END:ee,get:ie,getStyle:oe,create:ae,remove:le,empty:ne,toFront:se,toBack:re,hasClass:be,addClass:ce,removeClass:de,setClass:ue,getClass:pe,setOpacity:me,testProp:he,setTransform:ge,setPosition:fe,getPosition:ye,get disableTextSelection(){return $t},get enableTextSelection(){return Gt},disableImageDrag:He,enableImageDrag:Me,preventOutline:xe,restoreOutline:ke,getSizedParentNode:ve,getScale:_e};function Se(t,e,i,o){if(e&&"object"==typeof e)for(var a in e)we(t,a,e[a],i);else for(var l=0,n=(e=d(e)).length;l<n;l++)we(t,e[l],i,o);return this}var We="_leaflet_events";function Pe(t,e,i,o){ | |
| 6622 | +if(1===arguments.length)Ue(t),delete t[We];else if(e&&"object"==typeof e)for(var a in e)ze(t,a,e[a],i);else if(e=d(e),2===arguments.length)Ue(t,function(t){return-1!==f(e,t)});else for(var l=0,n=e.length;l<n;l++)ze(t,e[l],i,o);return this}function Ue(t,e){for(var i in t[We]){var o=i.split(/\d/)[0];e&&!e(o)||ze(t,o,null,null,i)}}var je={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function we(t,e,i,o){var a=e+l(i)+(o?"_"+l(o):"");if(t[We]&&t[We][a])return this;var n=function(e){return i.call(o||t,e||window.event)},s=n;!Ct.touchNative&&Ct.pointer&&0===e.indexOf("touch")?n=Xt(t,e,n):Ct.touch&&"dblclick"===e?n=function(t,e){t.addEventListener("dblclick",e);var i,o=0;function a(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var a=Ie(t);if(!a.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||a.some(function(t){ | |
| 6574 | 6623 | return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var l=Date.now();l-o<=200?2===++i&&e(function(t){var e,i,o={};for(i in t)e=t[i],o[i]=e&&e.bind?e.bind(t):e;return t=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}(t)):i=1,o=l}}}else i=t.detail}return t.addEventListener("click",a),{dblclick:e,simDblclick:a}}(t,n):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(je[e]||e,n,!!Ct.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(n=function(e){e=e||window.event,Xe(t,e)&&s(e)},t.addEventListener(je[e],n,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,n),t[We]=t[We]||{},t[We][a]=n}function ze(t,e,i,o,a){a=a||e+l(i)+(o?"_"+l(o):"");var n=t[We]&&t[We][a];if(!n)return this;!Ct.touchNative&&Ct.pointer&&0===e.indexOf("touch")?function(t,e,i){It[e]?t.removeEventListener(It[e],i,!1):console.warn("wrong event specified:",e)}(t,e,n):Ct.touch&&"dblclick"===e?function(t,e){ |
| 6575 | -t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,n):"removeEventListener"in t?t.removeEventListener(je[e]||e,n,!1):t.detachEvent("on"+e,n),t[We][a]=null}function Ce(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ae(t){return we(t,"wheel",Ce),this}function Le(t){return Se(t,"mousedown touchstart dblclick contextmenu",Ce),t._leaflet_disable_click=!0,this}function De(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ne(t){return De(t),Ce(t),this}function Ie(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Ve(t,e){if(!e)return new P(t.clientX,t.clientY);var i=_e(e),o=i.boundingClientRect;return new P((t.clientX-o.left)/i.x-e.clientLeft,(t.clientY-o.top)/i.y-e.clientTop)} | |
| 6576 | -var Oe=Ct.linux&&Ct.chrome?window.devicePixelRatio:Ct.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ye(t){return Ct.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Oe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Xe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var Be={__proto__:null,on:Se,off:Ue,stopPropagation:Ce,disableScrollPropagation:Ae,disableClickPropagation:Le,preventDefault:De,stop:Ne,getPropagationPath:Ie,getMousePosition:Ve,getWheelDelta:Ye,isExternalTarget:Xe,addListener:Se,removeListener:Ue},Ee=U.extend({run:function(t,e,i,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=ye(t), | |
| 6577 | -this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=v(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),fe(this._el,i),this.fire("step")},_complete:function(){_(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Fe=U.extend({options:{crs:q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=u(this,e),this._handlers=[],this._layers={}, | |
| 6624 | +t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,n):"removeEventListener"in t?t.removeEventListener(je[e]||e,n,!1):t.detachEvent("on"+e,n),t[We][a]=null}function Ce(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ae(t){return we(t,"wheel",Ce),this}function Le(t){return Se(t,"mousedown touchstart dblclick contextmenu",Ce),t._leaflet_disable_click=!0,this}function De(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ne(t){return De(t),Ce(t),this}function Ie(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Ve(t,e){if(!e)return new U(t.clientX,t.clientY);var i=_e(e),o=i.boundingClientRect;return new U((t.clientX-o.left)/i.x-e.clientLeft,(t.clientY-o.top)/i.y-e.clientTop)} | |
| 6625 | +var Oe=Ct.linux&&Ct.chrome?window.devicePixelRatio:Ct.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ye(t){return Ct.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Oe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Xe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var Be={__proto__:null,on:Se,off:Pe,stopPropagation:Ce,disableScrollPropagation:Ae,disableClickPropagation:Le,preventDefault:De,stop:Ne,getPropagationPath:Ie,getMousePosition:Ve,getWheelDelta:Ye,isExternalTarget:Xe,addListener:Se,removeListener:Pe},Ee=P.extend({run:function(t,e,i,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=ye(t), | |
| 6626 | +this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=v(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),fe(this._el,i),this.fire("step")},_complete:function(){_(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Fe=P.extend({options:{crs:q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=u(this,e),this._handlers=[],this._layers={}, | |
| 6578 | 6627 | this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(I(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=te&&Ct.any3d&&!Ct.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Se(this._proxy,ee,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,o){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(I(t),i,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&!0!==o&&(void 0!==o.animate&&(o.zoom=e({animate:o.animate},o.zoom),o.pan=e({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,o.zoom):this._tryAnimatedPan(t,o.pan))?(clearTimeout(this._sizeTimer), |
| 6579 | -this):(this._resetView(t,i,o.pan&&o.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Ct.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Ct.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var o=this.getZoomScale(e),a=this.getSize().divideBy(2),l=(t instanceof P?t:this.latLngToContainerPoint(t)).subtract(a).multiplyBy(1-1/o),n=this.containerPointToLatLng(a.add(l));return this.setView(n,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():D(t);var i=w(e.paddingTopLeft||e.padding||[0,0]),o=w(e.paddingBottomRight||e.padding||[0,0]),a=this.getBoundsZoom(t,!1,i.add(o));if((a="number"==typeof e.maxZoom?Math.min(e.maxZoom,a):a)===1/0)return{center:t.getCenter(),zoom:a} | |
| 6628 | +this):(this._resetView(t,i,o.pan&&o.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Ct.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Ct.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var o=this.getZoomScale(e),a=this.getSize().divideBy(2),l=(t instanceof U?t:this.latLngToContainerPoint(t)).subtract(a).multiplyBy(1-1/o),n=this.containerPointToLatLng(a.add(l));return this.setView(n,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():D(t);var i=w(e.paddingTopLeft||e.padding||[0,0]),o=w(e.paddingBottomRight||e.padding||[0,0]),a=this.getBoundsZoom(t,!1,i.add(o));if((a="number"==typeof e.maxZoom?Math.min(e.maxZoom,a):a)===1/0)return{center:t.getCenter(),zoom:a} | |
| 6580 | 6629 | ;var l=o.subtract(i).divideBy(2),n=this.project(t.getSouthWest(),a),s=this.project(t.getNorthEast(),a);return{center:this.unproject(n.add(s).divideBy(2).add(l),a),zoom:a}},fitBounds:function(t,e){if(!(t=D(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=w(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ee,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ce(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round() |
| 6581 | 6630 | ;this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Ct.any3d)return this.setView(t,e,i);this._stop();var o=this.project(this.getCenter()),a=this.project(t),l=this.getSize(),n=this._zoom;t=I(t),e=void 0===e?n:e;var s=Math.max(l.x,l.y),r=s*this.getZoomScale(n,e),b=a.distanceTo(o)||1,c=1.42,d=2.0164;function u(t){var e=(r*r-s*s+(t?-1:1)*d*d*b*b)/(2*(t?r:s)*d*b),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function m(t){return(Math.exp(t)+Math.exp(-t))/2}var h=u(0);function g(t){return s*(m(h)*(p(e=h+c*t)/m(e))-p(h))/d;var e}var f=Date.now(),y=(u(1)-h)/c,T=i.duration?1e3*i.duration:1e3*y*.8;return this._moveStart(!0,i.noMoveStart),function i(){var l=(Date.now()-f)/T,r=function(t){return 1-Math.pow(1-t,1.5)}(l)*y;l<=1?(this._flyToFrame=v(i,this), |
| 6582 | 6631 | this._move(this.unproject(o.add(a.subtract(o).multiplyBy(g(r)/b)),n),this.getScaleZoom(s/function(t){return s*(m(h)/m(h+c*t))}(r),n),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=D(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){ |
| 6583 | 6632 | this._enforcingBounds=!0;var i=this.getCenter(),o=this._limitCenter(i,this._zoom,D(t));return i.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=w((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=w(e.paddingBottomRight||e.padding||[0,0]),a=this.project(this.getCenter()),l=this.project(t),n=this.getPixelBounds(),s=C([n.min.add(i),n.max.subtract(o)]),r=s.getSize();if(!s.contains(l)){this._enforcingBounds=!0;var b=l.subtract(s.getCenter()),c=s.extend(l).getSize().subtract(r);a.x+=b.x<0?-c.x:c.x,a.y+=b.y<0?-c.y:c.y,this.panTo(this.unproject(a),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),l=i.divideBy(2).round(),n=a.divideBy(2).round(),s=l.subtract(n);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"), |
| @@ -6584,17 +6633,17 @@ | ||
| 6584 | 6633 | t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:a})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=o(this._handleGeolocationResponse,this),a=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,a,t):navigator.geolocation.getCurrentPosition(i,a,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){ |
| 6585 | 6634 | var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new N(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(i);this.setView(e,o.maxZoom?Math.min(a,o.maxZoom):a)}var l={latlng:e,bounds:i,timestamp:t.timestamp};for(var n in t.coords)"number"==typeof t.coords[n]&&(l[n]=t.coords[n]);this.fire("locationfound",l)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds), |
| 6586 | 6635 | this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),le(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(_(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)le(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=ae("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())}, |
| 6587 | 6636 | getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new A(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=D(t),i=w(i||[0,0]);var o=this.getZoom()||0,a=this.getMinZoom(),l=this.getMaxZoom(),n=t.getNorthWest(),s=t.getSouthEast(),r=this.getSize().subtract(i),b=C(this.project(s,o),this.project(n,o)).getSize(),c=Ct.any3d?this.options.zoomSnap:1,d=r.x/b.x,u=r.y/b.y,p=e?Math.max(d,u):Math.min(d,u);return o=this.getScaleZoom(p,o),c&&(o=Math.round(o/(c/100))*(c/100),o=e?Math.ceil(o/c)*c:Math.floor(o/c)*c),Math.max(a,Math.min(l,o))},getSize:function(){ |
| 6588 | -return this._size&&!this._sizeChanged||(this._size=new P(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new z(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var o=i.zoom(t*i.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(I(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e, | |
| 6637 | +return this._size&&!this._sizeChanged||(this._size=new U(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new z(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var o=i.zoom(t*i.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(I(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e, | |
| 6589 | 6638 | this.options.crs.pointToLatLng(w(t),e)},layerPointToLatLng:function(t){var e=w(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(I(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(I(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(I(t),I(e))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(I(t)))},mouseEventToContainerPoint:function(t){return Ve(t,this._container)},mouseEventToLayerPoint:function(t){ |
| 6590 | 6639 | return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ie(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Se(e,"scroll",this._onScroll,this),this._containerId=l(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ct.any3d,ce(t,"leaflet-container"+(Ct.touch?" leaflet-touch":"")+(Ct.retina?" leaflet-retina":"")+(Ct.ielt9?" leaflet-oldie":"")+(Ct.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={}, |
| 6591 | -this._mapPane=this.createPane("mapPane",this._container),fe(this._mapPane,new P(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ce(t.markerPane,"leaflet-zoom-hide"),ce(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){fe(this._mapPane,new P(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,i)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,o){void 0===e&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?i&&i.pinch&&this.fire("zoom",i):((a||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){ | |
| 6592 | -return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return _(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){fe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[l(this._container)]=this;var e=t?Ue:Se;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Ct.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){_(this._resizeRequest),this._resizeRequest=v(function(){this.invalidateSize({debounceMoveend:!0}) | |
| 6640 | +this._mapPane=this.createPane("mapPane",this._container),fe(this._mapPane,new U(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ce(t.markerPane,"leaflet-zoom-hide"),ce(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){fe(this._mapPane,new U(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,i)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,o){void 0===e&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?i&&i.pinch&&this.fire("zoom",i):((a||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){ | |
| 6641 | +return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return _(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){fe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[l(this._container)]=this;var e=t?Pe:Se;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Ct.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){_(this._resizeRequest),this._resizeRequest=v(function(){this.invalidateSize({debounceMoveend:!0}) | |
| 6593 | 6642 | },this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,o=[],a="mouseout"===e||"mouseover"===e,n=t.target||t.srcElement,s=!1;n;){if((i=this._targets[l(n)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(a&&!Xe(n,t))break;if(o.push(i),a)break}if(n===this._container)break;n=n.parentNode}return o.length||s||a||!this.listens(e,!0)||(o=[this]),o},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&xe(e),this._fireDOMEvent(t,i)}}, |
| 6594 | 6643 | _mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,o){if("click"===t.type){var a=e({},t);a.type="preclick",this._fireDOMEvent(a,a.type,o)}var l=this._findEventTargets(t,i);if(o){for(var n=[],s=0;s<o.length;s++)o[s].listens(i,!0)&&n.push(o[s]);l=n.concat(l)}if(l.length){"contextmenu"===i&&De(t);var r=l[0],b={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=r.getLatLng&&(!r._radius||r._radius<=10);b.containerPoint=c?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t),b.layerPoint=this.containerPointToLayerPoint(b.containerPoint),b.latlng=c?r.getLatLng():this.layerPointToLatLng(b.layerPoint)}for(s=0;s<l.length;s++)if(l[s].fire(i,b,!0),b.originalEvent._stopped||!1===l[s].options.bubblingMouseEvents&&-1!==f(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()}, |
| 6595 | -_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return ye(this._mapPane)||new P(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var o=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,i){var o=this._getNewPixelOrigin(i,e) | |
| 6596 | -;return C([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var o=this.project(t,e),a=this.getSize().divideBy(2),l=new z(o.subtract(a),o.add(a)),n=this._getBoundsOffset(l,i,e);return Math.abs(n.x)<=1&&Math.abs(n.y)<=1?t:this.unproject(o.add(n),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),o=new z(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,i){var o=C(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),a=o.min.subtract(t.min),l=o.max.subtract(t.max);return new P(this._rebound(a.x,-l.x),this._rebound(a.y,-l.y))}, | |
| 6644 | +_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return ye(this._mapPane)||new U(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var o=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,i){var o=this._getNewPixelOrigin(i,e) | |
| 6645 | +;return C([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var o=this.project(t,e),a=this.getSize().divideBy(2),l=new z(o.subtract(a),o.add(a)),n=this._getBoundsOffset(l,i,e);return Math.abs(n.x)<=1&&Math.abs(n.y)<=1?t:this.unproject(o.add(n),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),o=new z(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,i){var o=C(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),a=o.min.subtract(t.min),l=o.max.subtract(t.max);return new U(this._rebound(a.x,-l.x),this._rebound(a.y,-l.y))}, | |
| 6597 | 6646 | _rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),o=Ct.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){de(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=ae("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=Qt,i=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this) |
| 6598 | 6647 | },_destroyAnimProxy:function(){le(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),a=this._getCenterOffset(t)._divideBy(1-1/o);return!(!0!==i.animate&&!this.getSize().contains(a)||(v(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,i,a){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t, |
| 6599 | 6648 | this._animateToZoom=e,ce(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:a}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&de(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var qe=S.extend({options:{position:"topright"},initialize:function(t){u(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t |
| 6600 | 6649 | ;var e=this._container=this.onAdd(t),i=this.getPosition(),o=t._controlCorners[i];return ce(e,"leaflet-control"),-1!==i.indexOf("bottom")?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(le(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),$e=function(t){return new qe(t)};Fe.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=ae("div",e+"control-container",this._container);function o(o,a){var l=e+o+" "+e+a;t[o+a]=ae("div",l,i)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){ |
| @@ -6602,41 +6651,41 @@ | ||
| 6602 | 6651 | ;for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(l(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ce(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ce(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):de(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return de(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){ |
| 6603 | 6652 | var t="leaflet-control-layers",e=this._container=ae("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Le(e),Ae(e);var o=this._section=ae("section",t+"-list");i&&(this._map.on("click",this.collapse,this),Se(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var a=this._layersLink=ae("a",t+"-toggle",e);a.href="#",a.title="Layers",a.setAttribute("role","button"),Se(a,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){De(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=ae("div",t+"-base",o),this._separator=ae("div",t+"-separator",o),this._overlaysList=ae("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&l(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(o(function(t,e){ |
| 6604 | 6653 | return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ne(this._baseLayersList),ne(this._overlaysList),this._layerControlInputs=[];var t,e,i,o,a=0;for(i=0;i<this._layers.length;i++)o=this._layers[i],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,a+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&a>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(l(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",o=document.createElement("div") |
| 6605 | 6654 | ;return o.innerHTML=i,o.firstChild},_addItem:function(t){var e,i=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers_"+l(this),o),this._layerControlInputs.push(e),e.layerId=l(t.layer),Se(e,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var n=document.createElement("span");return i.appendChild(n),n.appendChild(e),n.appendChild(a),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,o=[],a=[];this._handlingClick=!0;for(var l=i.length-1;l>=0;l--)t=i[l],e=this._getLayer(t.layerId).layer,t.checked?o.push(e):t.checked||a.push(e);for(l=0;l<a.length;l++)this._map.hasLayer(a[l])&&this._map.removeLayer(a[l]) |
| 6606 | -;for(l=0;l<o.length;l++)this._map.hasLayer(o[l])||this._map.addLayer(o[l]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,o=this._map.getZoom(),a=i.length-1;a>=0;a--)t=i[a],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&o<e.options.minZoom||void 0!==e.options.maxZoom&&o>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Se(t,"click",De),this.expand();var e=this;setTimeout(function(){Ue(t,"click",De),e._preventClick=!1})}}),Ze=qe.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=ae("div",e+" leaflet-bar"),o=this.options | |
| 6655 | +;for(l=0;l<o.length;l++)this._map.hasLayer(o[l])||this._map.addLayer(o[l]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,o=this._map.getZoom(),a=i.length-1;a>=0;a--)t=i[a],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&o<e.options.minZoom||void 0!==e.options.maxZoom&&o>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Se(t,"click",De),this.expand();var e=this;setTimeout(function(){Pe(t,"click",De),e._preventClick=!1})}}),Ze=qe.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=ae("div",e+" leaflet-bar"),o=this.options | |
| 6607 | 6656 | ;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,o,a){var l=ae("a",i,o);return l.innerHTML=t,l.href="#",l.title=e,l.setAttribute("role","button"),l.setAttribute("aria-label",e),Le(l),Se(l,"click",Ne),Se(l,"click",a,this), |
| 6608 | 6657 | Se(l,"click",this._refocusOnMap,this),l},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";de(this._zoomInButton,e),de(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ce(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ce(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Fe.mergeOptions({zoomControl:!0}),Fe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ze,this.addControl(this.zoomControl))});var Ke=qe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=ae("div",e),o=this.options;return this._addScales(o,e+"-line",i),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){ |
| 6609 | 6658 | t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=ae("div",e,i)),t.imperial&&(this._iScale=ae("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,o,a=3.2808399*t;a>5280?(e=a/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(o=this._getRoundNum(a),this._updateScale(this._iScale,o+" ft",o/a))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e |
| 6610 | 6659 | ;return e*(i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),Je=qe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ct.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){u(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ae("div","leaflet-control-attribution"),Le(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){ |
| 6611 | 6660 | t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});Fe.mergeOptions({attributionControl:!0}),Fe.addInitHook(function(){this.options.attributionControl&&(new Je).addTo(this)});qe.Layers=Ge,qe.Zoom=Ze,qe.Scale=Ke,qe.Attribution=Je,$e.layers=function(t,e,i){return new Ge(t,e,i)}, |
| 6612 | -$e.zoom=function(t){return new Ze(t)},$e.scale=function(t){return new Ke(t)},$e.attribution=function(t){return new Je(t)};var Qe=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qe.addTo=function(t,e){return t.addHandler(e,this),this};var ti={Events:W},ei=Ct.touch?"touchstart mousedown":"mousedown",ii=U.extend({options:{clickTolerance:3},initialize:function(t,e,i,o){u(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Se(this._dragStartTarget,ei,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ii._dragging===this&&this.finishDrag(!0),Ue(this._dragStartTarget,ei,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1, | |
| 6613 | -!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)ii._dragging===this&&this.finishDrag();else if(!(ii._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(ii._dragging=this,this._preventOutline&&xe(this._element),He(),$t(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=ve(this._element);this._startPoint=new P(e.clientX,e.clientY),this._startPos=ye(this._element),this._parentScale=_e(i);var o="mousedown"===t.type;Se(document,o?"mousemove":"touchmove",this._onMove,this),Se(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new P(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,De(t),this._moved||(this.fire("dragstart"),this._moved=!0, | |
| 6614 | -ce(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ce(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),fe(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){de(document.body,"leaflet-dragging"),this._lastTarget&&(de(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ue(document,"mousemove touchmove",this._onMove,this),Ue(document,"mouseup touchend touchcancel",this._onUp,this),Me(),Gt();var e=this._moved&&this._moving;this._moving=!1,ii._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function oi(t,e,i){ | |
| 6661 | +$e.zoom=function(t){return new Ze(t)},$e.scale=function(t){return new Ke(t)},$e.attribution=function(t){return new Je(t)};var Qe=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qe.addTo=function(t,e){return t.addHandler(e,this),this};var ti={Events:W},ei=Ct.touch?"touchstart mousedown":"mousedown",ii=P.extend({options:{clickTolerance:3},initialize:function(t,e,i,o){u(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Se(this._dragStartTarget,ei,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ii._dragging===this&&this.finishDrag(!0),Pe(this._dragStartTarget,ei,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1, | |
| 6662 | +!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)ii._dragging===this&&this.finishDrag();else if(!(ii._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(ii._dragging=this,this._preventOutline&&xe(this._element),He(),$t(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=ve(this._element);this._startPoint=new U(e.clientX,e.clientY),this._startPos=ye(this._element),this._parentScale=_e(i);var o="mousedown"===t.type;Se(document,o?"mousemove":"touchmove",this._onMove,this),Se(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new U(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,De(t),this._moved||(this.fire("dragstart"),this._moved=!0, | |
| 6663 | +ce(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ce(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),fe(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){de(document.body,"leaflet-dragging"),this._lastTarget&&(de(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Pe(document,"mousemove touchmove",this._onMove,this),Pe(document,"mouseup touchend touchcancel",this._onUp,this),Me(),Gt();var e=this._moved&&this._moving;this._moving=!1,ii._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function oi(t,e,i){ | |
| 6615 | 6664 | var o,a,l,n,s,r,b,c,d,u=[1,4,2,8];for(a=0,b=t.length;a<b;a++)t[a]._code=pi(t[a],e);for(n=0;n<4;n++){for(c=u[n],o=[],a=0,l=(b=t.length)-1;a<b;l=a++)s=t[a],r=t[l],s._code&c?r._code&c||((d=ui(r,s,c,e,i))._code=pi(d,e),o.push(d)):(r._code&c&&((d=ui(r,s,c,e,i))._code=pi(d,e),o.push(d)),o.push(s));t=o}return t}function ai(t,e){var i,o,a,l,n,s,r,b,c;if(!t||0===t.length)throw new Error("latlngs not passed");gi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=I([0,0]),u=D(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(d=li(t));var p=t.length,m=[];for(i=0;i<p;i++){var h=I(t[i]);m.push(e.project(I([h.lat-d.lat,h.lng-d.lng])))}for(s=r=b=0,i=0,o=p-1;i<p;o=i++)a=m[i],l=m[o],n=a.y*l.x-l.y*a.x,r+=(a.x+l.x)*n,b+=(a.y+l.y)*n,s+=3*n;c=0===s?m[0]:[r/s,b/s];var g=e.unproject(w(c));return I([g.lat+d.lat,g.lng+d.lng])}function li(t){for(var e=0,i=0,o=0,a=0;a<t.length;a++){var l=I(t[a]);e+=l.lat,i+=l.lng,o++} |
| 6616 | 6665 | return I([e/o,i/o])}var ni,si={__proto__:null,clipPolygon:oi,polygonCenter:ai,centroid:li};function ri(t,e){if(!e||!t.length)return t.slice();var i=e*e;return function(t,e){var i=t.length,o=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);o[0]=o[i-1]=1,ci(t,o,e,0,i-1);var a,l=[];for(a=0;a<i;a++)o[a]&&l.push(t[a]);return l}(t=function(t,e){for(var i=[t[0]],o=1,a=0,l=t.length;o<l;o++)mi(t[o],t[a])>e&&(i.push(t[o]),a=o);return a<l-1&&i.push(t[l-1]),i}(t,i),i)}function bi(t,e,i){return Math.sqrt(hi(t,e,i,!0))}function ci(t,e,i,o,a){var l,n,s,r=0;for(n=o+1;n<=a-1;n++)(s=hi(t[n],t[o],t[a],!0))>r&&(l=n,r=s);r>i&&(e[l]=1,ci(t,e,i,o,l),ci(t,e,i,l,a))}function di(t,e,i,o,a){var l,n,s,r=o?ni:pi(t,i),b=pi(e,i);for(ni=b;;){if(!(r|b))return[t,e];if(r&b)return!1;s=pi(n=ui(t,e,l=r||b,i,a),i),l===r?(t=n,r=s):(e=n,b=s)}}function ui(t,e,i,o,a){var l,n,s=e.x-t.x,r=e.y-t.y,b=o.min,c=o.max;return 8&i?(l=t.x+s*(c.y-t.y)/r,n=c.y):4&i?(l=t.x+s*(b.y-t.y)/r,n=b.y):2&i?(l=c.x, |
| 6617 | -n=t.y+r*(c.x-t.x)/s):1&i&&(l=b.x,n=t.y+r*(b.x-t.x)/s),new P(l,n,a)}function pi(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function mi(t,e){var i=e.x-t.x,o=e.y-t.y;return i*i+o*o}function hi(t,e,i,o){var a,l=e.x,n=e.y,s=i.x-l,r=i.y-n,b=s*s+r*r;return b>0&&((a=((t.x-l)*s+(t.y-n)*r)/b)>1?(l=i.x,n=i.y):a>0&&(l+=s*a,n+=r*a)),s=t.x-l,r=t.y-n,o?s*s+r*r:new P(l,n)}function gi(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function fi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gi(t)}function yi(t,e){var i,o,a,l,n,s,r,b;if(!t||0===t.length)throw new Error("latlngs not passed");gi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=I([0,0]),d=D(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(c=li(t));var u=t.length,p=[];for(i=0;i<u;i++){var m=I(t[i]) | |
| 6618 | -;p.push(e.project(I([m.lat-c.lat,m.lng-c.lng])))}for(i=0,o=0;i<u-1;i++)o+=p[i].distanceTo(p[i+1])/2;if(0===o)b=p[0];else for(i=0,l=0;i<u-1;i++)if(n=p[i],s=p[i+1],(l+=a=n.distanceTo(s))>o){r=(l-o)/a,b=[s.x-r*(s.x-n.x),s.y-r*(s.y-n.y)];break}var h=e.unproject(w(b));return I([h.lat+c.lat,h.lng+c.lng])}var Ti={__proto__:null,simplify:ri,pointToSegmentDistance:bi,closestPointOnSegment:function(t,e,i){return hi(t,e,i)},clipSegment:di,_getEdgeIntersection:ui,_getBitCode:pi,_sqClosestPointOnSegment:hi,isFlat:gi,_flat:fi,polylineCenter:yi},Hi={project:function(t){return new P(t.lng,t.lat)},unproject:function(t){return new N(t.y,t.x)},bounds:new z([-180,-90],[180,90])},Mi={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,o=t.lat*e,a=this.R_MINOR/i,l=Math.sqrt(1-a*a),n=l*Math.sin(o),s=Math.tan(Math.PI/4-o/2)/Math.pow((1-n)/(1+n),l/2);return o=-i*Math.log(Math.max(s,1e-10)), | |
| 6619 | -new P(t.lng*e*i,o)},unproject:function(t){for(var e,i=180/Math.PI,o=this.R,a=this.R_MINOR/o,l=Math.sqrt(1-a*a),n=Math.exp(-t.y/o),s=Math.PI/2-2*Math.atan(n),r=0,b=.1;r<15&&Math.abs(b)>1e-7;r++)e=l*Math.sin(s),e=Math.pow((1-e)/(1+e),l/2),s+=b=Math.PI/2-2*Math.atan(n*e)-s;return new N(s*i,t.x*i/o)}},xi={__proto__:null,LonLat:Hi,Mercator:Mi,SphericalMercator:B},ki=e({},Y,{code:"EPSG:3395",projection:Mi,transformation:function(){var t=.5/(Math.PI*Mi.R);return F(t,.5,-t,.5)}()}),vi=e({},Y,{code:"EPSG:4326",projection:Hi,transformation:F(1/180,1,-1/180,.5)}),_i=e({},O,{projection:Hi,transformation:F(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(i*i+o*o)},infinite:!0});O.Earth=Y,O.EPSG3395=ki,O.EPSG3857=q,O.EPSG900913=$,O.EPSG4326=vi,O.Simple=_i;var Ri=U.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this), | |
| 6666 | +n=t.y+r*(c.x-t.x)/s):1&i&&(l=b.x,n=t.y+r*(b.x-t.x)/s),new U(l,n,a)}function pi(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function mi(t,e){var i=e.x-t.x,o=e.y-t.y;return i*i+o*o}function hi(t,e,i,o){var a,l=e.x,n=e.y,s=i.x-l,r=i.y-n,b=s*s+r*r;return b>0&&((a=((t.x-l)*s+(t.y-n)*r)/b)>1?(l=i.x,n=i.y):a>0&&(l+=s*a,n+=r*a)),s=t.x-l,r=t.y-n,o?s*s+r*r:new U(l,n)}function gi(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function fi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gi(t)}function yi(t,e){var i,o,a,l,n,s,r,b;if(!t||0===t.length)throw new Error("latlngs not passed");gi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=I([0,0]),d=D(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(c=li(t));var u=t.length,p=[];for(i=0;i<u;i++){var m=I(t[i]) | |
| 6667 | +;p.push(e.project(I([m.lat-c.lat,m.lng-c.lng])))}for(i=0,o=0;i<u-1;i++)o+=p[i].distanceTo(p[i+1])/2;if(0===o)b=p[0];else for(i=0,l=0;i<u-1;i++)if(n=p[i],s=p[i+1],(l+=a=n.distanceTo(s))>o){r=(l-o)/a,b=[s.x-r*(s.x-n.x),s.y-r*(s.y-n.y)];break}var h=e.unproject(w(b));return I([h.lat+c.lat,h.lng+c.lng])}var Ti={__proto__:null,simplify:ri,pointToSegmentDistance:bi,closestPointOnSegment:function(t,e,i){return hi(t,e,i)},clipSegment:di,_getEdgeIntersection:ui,_getBitCode:pi,_sqClosestPointOnSegment:hi,isFlat:gi,_flat:fi,polylineCenter:yi},Hi={project:function(t){return new U(t.lng,t.lat)},unproject:function(t){return new N(t.y,t.x)},bounds:new z([-180,-90],[180,90])},Mi={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,o=t.lat*e,a=this.R_MINOR/i,l=Math.sqrt(1-a*a),n=l*Math.sin(o),s=Math.tan(Math.PI/4-o/2)/Math.pow((1-n)/(1+n),l/2);return o=-i*Math.log(Math.max(s,1e-10)), | |
| 6668 | +new U(t.lng*e*i,o)},unproject:function(t){for(var e,i=180/Math.PI,o=this.R,a=this.R_MINOR/o,l=Math.sqrt(1-a*a),n=Math.exp(-t.y/o),s=Math.PI/2-2*Math.atan(n),r=0,b=.1;r<15&&Math.abs(b)>1e-7;r++)e=l*Math.sin(s),e=Math.pow((1-e)/(1+e),l/2),s+=b=Math.PI/2-2*Math.atan(n*e)-s;return new N(s*i,t.x*i/o)}},xi={__proto__:null,LonLat:Hi,Mercator:Mi,SphericalMercator:B},ki=e({},Y,{code:"EPSG:3395",projection:Mi,transformation:function(){var t=.5/(Math.PI*Mi.R);return F(t,.5,-t,.5)}()}),vi=e({},Y,{code:"EPSG:4326",projection:Hi,transformation:F(1/180,1,-1/180,.5)}),_i=e({},O,{projection:Hi,transformation:F(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(i*i+o*o)},infinite:!0});O.Earth=Y,O.EPSG3395=ki,O.EPSG3857=q,O.EPSG900913=$,O.EPSG4326=vi,O.Simple=_i;var Ri=P.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this), | |
| 6620 | 6669 | this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[l(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[l(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Fe.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=l(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=l(t) |
| 6621 | 6670 | ;return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return l(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[l(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=l(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var o in this._zoomBoundLayers){var a=this._zoomBoundLayers[o].options;t=void 0===a.minZoom?t:Math.min(t,a.minZoom),e=void 0===a.maxZoom?e:Math.max(e,a.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t, |
| 6622 | 6671 | i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Si=Ri.extend({initialize:function(t,e){var i,o;if(u(this,e),this._layers={},t)for(i=0,o=t.length;i<o;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,o=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,o) |
| 6623 | 6672 | ;return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return l(t)}}),Wi=Si.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Si.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Si.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new A;for(var e in this._layers){ |
| 6624 | -var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Ui=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){u(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(o.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var i=this.options,o=i[e+"Size"];"number"==typeof o&&(o=[o,o]);var a=w(o),l=w("shadow"===e&&i.shadowAnchor||i.iconAnchor||a&&a.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),l&&(t.style.marginLeft=-l.x+"px",t.style.marginTop=-l.y+"px"), | |
| 6625 | -a&&(t.style.width=a.x+"px",t.style.height=a.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ct.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Pi=Ui.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Pi.imagePath&&(Pi.imagePath=this._detectIconPath()),(this.options.imagePath||Pi.imagePath)+Ui.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var o=e.exec(t);return o&&o[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ae("div","leaflet-default-icon-path",document.body),e=oe(t,"background-image")||oe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e | |
| 6673 | +var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Pi=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){u(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(o.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var i=this.options,o=i[e+"Size"];"number"==typeof o&&(o=[o,o]);var a=w(o),l=w("shadow"===e&&i.shadowAnchor||i.iconAnchor||a&&a.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),l&&(t.style.marginLeft=-l.x+"px",t.style.marginTop=-l.y+"px"), | |
| 6674 | +a&&(t.style.width=a.x+"px",t.style.height=a.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ct.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Ui=Pi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Ui.imagePath&&(Ui.imagePath=this._detectIconPath()),(this.options.imagePath||Ui.imagePath)+Pi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var o=e.exec(t);return o&&o[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ae("div","leaflet-default-icon-path",document.body),e=oe(t,"background-image")||oe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e | |
| 6626 | 6675 | ;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),ji=Qe.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ii(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ce(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&de(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,o=this._marker.options.autoPanSpeed,a=this._marker.options.autoPanPadding,l=ye(e._icon),n=i.getPixelBounds(),s=i.getPixelOrigin(),r=C(n.min._subtract(s).add(a),n.max._subtract(s).subtract(a));if(!r.contains(l)){ |
| 6627 | 6676 | var b=w((Math.max(r.max.x,l.x)-r.max.x)/(n.max.x-r.max.x)-(Math.min(r.min.x,l.x)-r.min.x)/(n.min.x-r.min.x),(Math.max(r.max.y,l.y)-r.max.y)/(n.max.y-r.max.y)-(Math.min(r.min.y,l.y)-r.min.y)/(n.min.y-r.min.y)).multiplyBy(o);i.panBy(b,{animate:!1}),this._draggable._newPos._add(b),this._draggable._startPos._add(b),fe(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=v(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(_(this._panRequest),this._panRequest=v(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,o=ye(e._icon),a=e._map.layerPointToLatLng(o);i&&fe(i,o),e._latlng=a,t.latlng=a,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){_(this._panRequest),delete this._oldLatLng, |
| 6628 | -this._marker.fire("moveend").fire("dragend",t)}}),wi=Ri.extend({options:{icon:new Pi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){u(this,e),this._latlng=I(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=I(t),this.update(), | |
| 6677 | +this._marker.fire("moveend").fire("dragend",t)}}),wi=Ri.extend({options:{icon:new Ui,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){u(this,e),this._latlng=I(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=I(t),this.update(), | |
| 6629 | 6678 | this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),ce(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Se(i,"focus",this._panOnFocus,this) |
| 6630 | -;var a=t.icon.createShadow(this._shadow),l=!1;a!==this._shadow&&(this._removeShadow(),l=!0),a&&(ce(a,e),a.alt=""),this._shadow=a,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&l&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ue(this._icon,"focus",this._panOnFocus,this),le(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&le(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&fe(this._icon,t),this._shadow&&fe(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)}, | |
| 6679 | +;var a=t.icon.createShadow(this._shadow),l=!1;a!==this._shadow&&(this._removeShadow(),l=!0),a&&(ce(a,e),a.alt=""),this._shadow=a,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&l&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Pe(this._icon,"focus",this._panOnFocus,this),le(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&le(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&fe(this._icon,t),this._shadow&&fe(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)}, | |
| 6631 | 6680 | _initInteraction:function(){if(this.options.interactive&&(ce(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ji)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ji(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&me(this._icon,t),this._shadow&&me(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?w(e.iconSize):w(0,0),o=e.iconAnchor?w(e.iconAnchor):w(0,0);t.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:i.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}) |
| 6632 | 6681 | ;var zi=Ri.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return u(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){ |
| 6633 | 6682 | return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ci=zi.extend({options:{fill:!0,radius:10},initialize:function(t,e){u(this,e),this._latlng=I(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=I(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return zi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),o=[t+i,e+i];this._pxBounds=new z(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){ |
| 6634 | 6683 | this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Ai=Ci.extend({initialize:function(t,i,o){if("number"==typeof i&&(i=e({},o,{radius:i})),u(this,i),this._latlng=I(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new A(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:zi.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,o=i.options.crs;if(o.distance===Y.distance){ |
| 6635 | 6684 | var a=Math.PI/180,l=this._mRadius/Y.R/a,n=i.project([e+l,t]),s=i.project([e-l,t]),r=n.add(s).divideBy(2),b=i.unproject(r).lat,c=Math.acos((Math.cos(l*a)-Math.sin(e*a)*Math.sin(b*a))/(Math.cos(e*a)*Math.cos(b*a)))/a;(isNaN(c)||0===c)&&(c=l/Math.cos(Math.PI/180*e)),this._point=r.subtract(i.getPixelOrigin()),this._radius=isNaN(c)?0:r.x-i.project([b,t-c]).x,this._radiusY=r.y-n.y}else{var d=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(d).x}this._updateBounds()}});var Li=zi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){u(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,o=1/0,a=null,l=hi,n=0,s=this._parts.length;n<s;n++)for(var r=this._parts[n],b=1,c=r.length;b<c;b++){ |
| 6636 | -var d=l(t,e=r[b-1],i=r[b],!0);d<o&&(o=d,a=l(t,e,i))}return a&&(a.distance=Math.sqrt(o)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=I(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new A,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=gi(t),o=0,a=t.length;o<a;o++)i?(e[o]=I(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new P(t,t) | |
| 6685 | +var d=l(t,e=r[b-1],i=r[b],!0);d<o&&(o=d,a=l(t,e,i))}return a&&(a.distance=Math.sqrt(o)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=I(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new A,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=gi(t),o=0,a=t.length;o<a;o++)i?(e[o]=I(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new U(t,t) | |
| 6637 | 6686 | ;this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var o,a,l=t[0]instanceof N,n=t.length;if(l){for(a=[],o=0;o<n;o++)a[o]=this._map.latLngToLayerPoint(t[o]),i.extend(a[o]);e.push(a)}else for(o=0;o<n;o++)this._projectLatlngs(t[o],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,o,a,l,n,s,r=this._parts;for(e=0,o=0,a=this._rings.length;e<a;e++)for(i=0,l=(s=this._rings[e]).length;i<l-1;i++)(n=di(s[i],s[i+1],t,i,!0))&&(r[o]=r[o]||[],r[o].push(n[0]),n[1]===s[i+1]&&i!==l-2||(r[o].push(n[1]),o++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,o=t.length;i<o;i++)t[i]=ri(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)}, |
| 6638 | -_containsPoint:function(t,e){var i,o,a,l,n,s,r=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,l=this._parts.length;i<l;i++)for(o=0,a=(n=(s=this._parts[i]).length)-1;o<n;a=o++)if((e||0!==o)&&bi(t,s[a],s[o])<=r)return!0;return!1}});Li._flat=fi;var Di=Li.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ai(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Li.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof N&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Li.prototype._setLatLngs.call(this,t),gi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new P(e,e) | |
| 6687 | +_containsPoint:function(t,e){var i,o,a,l,n,s,r=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,l=this._parts.length;i<l;i++)for(o=0,a=(n=(s=this._parts[i]).length)-1;o<n;a=o++)if((e||0!==o)&&bi(t,s[a],s[o])<=r)return!0;return!1}});Li._flat=fi;var Di=Li.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ai(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Li.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof N&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Li.prototype._setLatLngs.call(this,t),gi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new U(e,e) | |
| 6639 | 6688 | ;if(t=new z(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var o,a=0,l=this._rings.length;a<l;a++)(o=oi(this._rings[a],t,!0)).length&&this._parts.push(o)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,o,a,l,n,s,r,b=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,s=this._parts.length;a<s;a++)for(l=0,n=(r=(e=this._parts[a]).length)-1;l<r;n=l++)i=e[l],o=e[n],i.y>t.y!=o.y>t.y&&t.x<(o.x-i.x)*(t.y-i.y)/(o.y-i.y)+i.x&&(b=!b);return b||Li.prototype._containsPoint.call(this,t,!0)}});var Ni=Wi.extend({initialize:function(t,e){u(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,o,a=g(t)?t:t.features;if(a){for(e=0,i=a.length;e<i;e++)((o=a[e]).geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}var l=this.options;if(l.filter&&!l.filter(t))return this;var n=Ii(t,l) |
| 6640 | 6689 | ;return n?(n.feature=Fi(t),n.defaultOptions=n.options,this.resetStyle(n),l.onEachFeature&&l.onEachFeature(t,n),this.addLayer(n)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Ii(t,e){var i,o,a,l,n="Feature"===t.type?t.geometry:t,s=n?n.coordinates:null,r=[],b=e&&e.pointToLayer,c=e&&e.coordsToLatLng||Oi;if(!s&&!n)return null;switch(n.type){case"Point":return Vi(b,t,i=c(s),e);case"MultiPoint":for(a=0,l=s.length;a<l;a++)i=c(s[a]),r.push(Vi(b,t,i,e));return new Wi(r);case"LineString":case"MultiLineString":return o=Yi(s,"LineString"===n.type?0:1,c),new Li(o,e);case"Polygon":case"MultiPolygon":return o=Yi(s,"Polygon"===n.type?1:2,c),new Di(o,e);case"GeometryCollection":for(a=0, |
| 6641 | 6690 | l=n.geometries.length;a<l;a++){var d=Ii({geometry:n.geometries[a],type:"Feature",properties:t.properties},e);d&&r.push(d)}return new Wi(r);case"FeatureCollection":for(a=0,l=n.features.length;a<l;a++){var u=Ii(n.features[a],e);u&&r.push(u)}return new Wi(r);default:throw new Error("Invalid GeoJSON object.")}}function Vi(t,e,i,o){return t?t(e,i):new wi(i,o&&o.markersInheritOptions&&o)}function Oi(t){return new N(t[1],t[0],t[2])}function Yi(t,e,i){for(var o,a=[],l=0,n=t.length;l<n;l++)o=e?Yi(t[l],e-1,i):(i||Oi)(t[l]),a.push(o);return a}function Xi(t,e){return void 0!==(t=I(t)).alt?[b(t.lng,e),b(t.lat,e),b(t.alt,e)]:[b(t.lng,e),b(t.lat,e)]}function Bi(t,e,i,o){for(var a=[],l=0,n=t.length;l<n;l++)a.push(e?Bi(t[l],gi(t[l])?0:e-1,i,o):Xi(t[l],o));return!e&&i&&a.length>0&&a.push(a[0].slice()),a}function Ei(t,i){return t.feature?e({},t.feature,{geometry:i}):Fi(i)}function Fi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var qi={ |
| 6642 | 6691 | toGeoJSON:function(t){return Ei(this,{type:"Point",coordinates:Xi(this.getLatLng(),t)})}};function $i(t,e){return new Ni(t,e)}wi.include(qi),Ai.include(qi),Ci.include(qi),Li.include({toGeoJSON:function(t){var e=!gi(this._latlngs);return Ei(this,{type:(e?"Multi":"")+"LineString",coordinates:Bi(this._latlngs,e?1:0,!1,t)})}}),Di.include({toGeoJSON:function(t){var e=!gi(this._latlngs),i=e&&!gi(this._latlngs[0]),o=Bi(this._latlngs,i?2:e?1:0,!0,t);return e||(o=[o]),Ei(this,{type:(i?"Multi":"")+"Polygon",coordinates:o})}}),Si.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Ei(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,o=[];return this.eachLayer(function(e){if(e.toGeoJSON){var a=e.toGeoJSON(t);if(i)o.push(a.geometry);else{var l=Fi(a) |
| @@ -6649,9 +6698,9 @@ | ||
| 6649 | 6698 | return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&se(this._container),this},bringToBack:function(){return this._map&&re(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Wi){e=null;var i=this._source._layers;for(var o in i)if(i[o]._map){e=i[o];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){ |
| 6650 | 6699 | var t=this._map.latLngToLayerPoint(this._latlng),e=w(this.options.offset),i=this._getAnchor();this._zoomAnimated?fe(this._container,t.add(i)):e=e.add(t).add(i);var o=this._containerBottom=-e.y,a=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=a+"px"}},_getAnchor:function(){return[0,0]}});Fe.include({_initOverlay:function(t,e,i,o){var a=e;return a instanceof t||(a=new t(o).setContent(e)),i&&a.setLatLng(i),a}}),Ri.include({_initOverlay:function(t,e,i,o){var a=i;return a instanceof t?(u(a,o),a._source=this):(a=e&&!o?e:new t(o,this)).setContent(i),a}});var to=Qi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){ |
| 6651 | 6700 | return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Qi.prototype.openOn.call(this,t)},onAdd:function(t){Qi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof zi||this._source.on("preclick",Ce))},onRemove:function(t){Qi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof zi||this._source.off("preclick",Ce))},getEvents:function(){var t=Qi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){ |
| 6652 | 6701 | var t="leaflet-popup",e=this._container=ae("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=ae("div",t+"-content-wrapper",e);if(this._contentNode=ae("div",t+"-content",i),Le(e),Ae(this._contentNode),Se(e,"contextmenu",Ce),this._tipContainer=ae("div",t+"-tip-container",e),this._tip=ae("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=ae("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">×</span>',Se(o,"click",function(t){De(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var o=t.offsetHeight,a=this.options.maxHeight,l="leaflet-popup-scrolled";a&&o>a?(e.height=a+"px",ce(t,l)):de(t,l), |
| 6653 | -this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();fe(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,o=this._containerWidth,a=new P(this._containerLeft,-i-this._containerBottom);a._add(ye(this._container));var l=t.layerPointToContainerPoint(a),n=w(this.options.autoPanPadding),s=w(this.options.autoPanPaddingTopLeft||n),r=w(this.options.autoPanPaddingBottomRight||n),b=t.getSize(),c=0,d=0;l.x+o+r.x>b.x&&(c=l.x+o-b.x+r.x),l.x-c-s.x<0&&(c=l.x-s.x),l.y+i+r.y>b.y&&(d=l.y+i-b.y+r.y),l.y-d-s.y<0&&(d=l.y-s.y),(c||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,d]))}},_getAnchor:function(){ | |
| 6702 | +this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();fe(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,o=this._containerWidth,a=new U(this._containerLeft,-i-this._containerBottom);a._add(ye(this._container));var l=t.layerPointToContainerPoint(a),n=w(this.options.autoPanPadding),s=w(this.options.autoPanPaddingTopLeft||n),r=w(this.options.autoPanPaddingBottomRight||n),b=t.getSize(),c=0,d=0;l.x+o+r.x>b.x&&(c=l.x+o-b.x+r.x),l.x-c-s.x<0&&(c=l.x-s.x),l.y+i+r.y>b.y&&(d=l.y+i-b.y+r.y),l.y-d-s.y<0&&(d=l.y-s.y),(c||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,d]))}},_getAnchor:function(){ | |
| 6654 | 6703 | return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Fe.mergeOptions({closePopupOnClick:!0}),Fe.include({openPopup:function(t,e,i){return this._initOverlay(to,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Ri.include({bindPopup:function(t,e){return this._popup=this._initOverlay(to,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Wi||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(), |
| 6655 | 6704 | this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ne(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof zi?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var eo=Qi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Qi.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))}, |
| 6656 | 6705 | onRemove:function(t){Qi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Qi.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ae("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,o=this._map,a=this._container,l=o.latLngToContainerPoint(o.getCenter()),n=o.layerPointToContainerPoint(t),s=this.options.direction,r=a.offsetWidth,b=a.offsetHeight,c=w(this.options.offset),d=this._getAnchor();"top"===s?(e=r/2,i=b):"bottom"===s?(e=r/2,i=0):"center"===s?(e=r/2,i=b/2):"right"===s?(e=0, |
| 6657 | 6706 | i=b/2):"left"===s?(e=r,i=b/2):n.x<l.x?(s="right",e=0,i=b/2):(s="left",e=r+2*(c.x+d.x),i=b/2),t=t.subtract(w(e,i,!0)).add(c).add(d),de(a,"leaflet-tooltip-right"),de(a,"leaflet-tooltip-left"),de(a,"leaflet-tooltip-top"),de(a,"leaflet-tooltip-bottom"),ce(a,"leaflet-tooltip-"+s),fe(a,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&me(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Fe.include({openTooltip:function(t,e,i){return this._initOverlay(eo,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Ri.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(), |
| @@ -6656,26 +6705,26 @@ | ||
| 6656 | 6705 | onRemove:function(t){Qi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Qi.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ae("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,o=this._map,a=this._container,l=o.latLngToContainerPoint(o.getCenter()),n=o.layerPointToContainerPoint(t),s=this.options.direction,r=a.offsetWidth,b=a.offsetHeight,c=w(this.options.offset),d=this._getAnchor();"top"===s?(e=r/2,i=b):"bottom"===s?(e=r/2,i=0):"center"===s?(e=r/2,i=b/2):"right"===s?(e=0, |
| 6657 | 6706 | i=b/2):"left"===s?(e=r,i=b/2):n.x<l.x?(s="right",e=0,i=b/2):(s="left",e=r+2*(c.x+d.x),i=b/2),t=t.subtract(w(e,i,!0)).add(c).add(d),de(a,"leaflet-tooltip-right"),de(a,"leaflet-tooltip-left"),de(a,"leaflet-tooltip-top"),de(a,"leaflet-tooltip-bottom"),ce(a,"leaflet-tooltip-"+s),fe(a,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&me(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Fe.include({openTooltip:function(t,e,i){return this._initOverlay(eo,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Ri.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(), |
| 6658 | 6707 | this._tooltip=this._initOverlay(eo,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Wi||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map), |
| 6659 | 6708 | this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Se(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),Se(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)}, |
| 6660 | -_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,o=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),o=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(o)}});var io=Ui.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ne(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var o=w(i.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e}, | |
| 6661 | -createShadow:function(){return null}});Ui.Default=Pi;var oo=Ri.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ct.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){u(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),le(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(se(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(re(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t, | |
| 6662 | -this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=n(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof P?t:new P(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){ | |
| 6709 | +_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,o=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),o=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(o)}});var io=Pi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ne(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var o=w(i.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e}, | |
| 6710 | +createShadow:function(){return null}});Pi.Default=Ui;var oo=Ri.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ct.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){u(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),le(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(se(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(re(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t, | |
| 6711 | +this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=n(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof U?t:new U(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){ | |
| 6663 | 6712 | for(var e,i=this.getPane().children,o=-t(-1/0,1/0),a=0,l=i.length;a<l;a++)e=i[a].style.zIndex,i[a]!==this._container&&e&&(o=t(o,+e));isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ct.ielt9){me(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var o in this._tiles){var a=this._tiles[o];if(a.current&&a.loaded){var l=Math.min(1,(t-a.loaded)/200);me(a.el,l),l<1?e=!0:(a.active?i=!0:this._onOpaqueTile(a),a.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(_(this._fadeFrame),this._fadeFrame=v(this._updateOpacity,this))}},_onOpaqueTile:r,_initContainer:function(){this._container||(this._container=ae("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i), |
| 6664 | 6713 | this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(le(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var o=this._levels[t],a=this._map;return o||((o=this._levels[t]={}).el=ae("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=a.project(a.unproject(a.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,a.getCenter(),a.getZoom()),o.el.offsetWidth,this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:r,_onRemoveLevel:r,_onCreateLevel:r,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)} |
| 6665 | -for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)le(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,o){var a=Math.floor(t/2),l=Math.floor(e/2),n=i-1,s=new P(+a,+l);s.z=+n;var r=this._tileCoordsToKey(s),b=this._tiles[r];return b&&b.active?(b.retain=!0,!0):(b&&b.loaded&&(b.retain=!0),n>o&&this._retainParent(a,l,n,o))},_retainChildren:function(t,e,i,o){for(var a=2*t;a<2*t+2;a++)for(var l=2*e;l<2*e+2;l++){var n=new P(a,l);n.z=i+1;var s=this._tileCoordsToKey(n),r=this._tiles[s];r&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),i+1<o&&this._retainChildren(a,l,i+1,o))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo) | |
| 6714 | +for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)le(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,o){var a=Math.floor(t/2),l=Math.floor(e/2),n=i-1,s=new U(+a,+l);s.z=+n;var r=this._tileCoordsToKey(s),b=this._tiles[r];return b&&b.active?(b.retain=!0,!0):(b&&b.loaded&&(b.retain=!0),n>o&&this._retainParent(a,l,n,o))},_retainChildren:function(t,e,i,o){for(var a=2*t;a<2*t+2;a++)for(var l=2*e;l<2*e+2;l++){var n=new U(a,l);n.z=i+1;var s=this._tileCoordsToKey(n),r=this._tiles[s];r&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),i+1<o&&this._retainChildren(a,l,i+1,o))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo) | |
| 6666 | 6715 | ;this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,o){var a=Math.round(e);a=void 0!==this.options.maxZoom&&a>this.options.maxZoom||void 0!==this.options.minZoom&&a<this.options.minZoom?void 0:this._clampZoom(a);var l=this.options.updateWhenZooming&&a!==this._tileZoom;o&&!l||(this._tileZoom=a,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==a&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){ |
| 6667 | 6716 | var o=this._map.getZoomScale(i,t.zoom),a=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,i)).round();Ct.any3d?ge(t.el,a,o):fe(t.el,a)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),o=this._tileZoom,a=this._map.getPixelWorldBounds(this._tileZoom);a&&(this._globalTileRange=this._pxBoundsToTileRange(a)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],o).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),o=e.getZoomScale(i,this._tileZoom),a=e.project(t,this._tileZoom).floor(),l=e.getSize().divideBy(2*o);return new z(a.subtract(l),a.add(l))},_update:function(t){ |
| 6668 | -var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var o=this._getTiledPixelBounds(t),a=this._pxBoundsToTileRange(o),l=a.getCenter(),n=[],s=this.options.keepBuffer,r=new z(a.getBottomLeft().subtract([s,-s]),a.getTopRight().add([s,-s]));if(!(isFinite(a.min.x)&&isFinite(a.min.y)&&isFinite(a.max.x)&&isFinite(a.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var b in this._tiles){var c=this._tiles[b].coords;c.z===this._tileZoom&&r.contains(new P(c.x,c.y))||(this._tiles[b].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var d=a.min.y;d<=a.max.y;d++)for(var u=a.min.x;u<=a.max.x;u++){var p=new P(u,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:n.push(p)}}if(n.sort(function(t,e){return t.distanceTo(l)-e.distanceTo(l)}),0!==n.length){this._loading||(this._loading=!0,this.fire("loading")) | |
| 6669 | -;var h=document.createDocumentFragment();for(u=0;u<n.length;u++)this._addTile(n[u],h);this._level.el.appendChild(h)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),o=t.scaleBy(i),a=o.add(i);return[e.unproject(o,t.z),e.unproject(a,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new A(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new P(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(le(e.el), | |
| 6717 | +var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var o=this._getTiledPixelBounds(t),a=this._pxBoundsToTileRange(o),l=a.getCenter(),n=[],s=this.options.keepBuffer,r=new z(a.getBottomLeft().subtract([s,-s]),a.getTopRight().add([s,-s]));if(!(isFinite(a.min.x)&&isFinite(a.min.y)&&isFinite(a.max.x)&&isFinite(a.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var b in this._tiles){var c=this._tiles[b].coords;c.z===this._tileZoom&&r.contains(new U(c.x,c.y))||(this._tiles[b].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var d=a.min.y;d<=a.max.y;d++)for(var u=a.min.x;u<=a.max.x;u++){var p=new U(u,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:n.push(p)}}if(n.sort(function(t,e){return t.distanceTo(l)-e.distanceTo(l)}),0!==n.length){this._loading||(this._loading=!0,this.fire("loading")) | |
| 6718 | +;var h=document.createDocumentFragment();for(u=0;u<n.length;u++)this._addTile(n[u],h);this._level.el.appendChild(h)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),o=t.scaleBy(i),a=o.add(i);return[e.unproject(o,t.z),e.unproject(a,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new A(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new U(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(le(e.el), | |
| 6670 | 6719 | delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ce(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=r,t.onmousemove=r,Ct.ielt9&&this.options.opacity<1&&me(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),a=this._tileCoordsToKey(t),l=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(l),this.createTile.length<2&&v(o(this._tileReady,this,t,null,l)),fe(l,i),this._tiles[a]={el:l,coords:t,current:!0},e.appendChild(l),this.fire("tileloadstart",{tile:l,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var a=this._tileCoordsToKey(t);(i=this._tiles[a])&&(i.loaded=+new Date,this._map._fadeAnimated?(me(i.el,0),_(this._fadeFrame),this._fadeFrame=v(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(ce(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})), |
| 6671 | -this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ct.ielt9||!this._map._fadeAnimated?v(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new P(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var ao=oo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=u(this,e)).detectRetina&&Ct.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++, | |
| 6720 | +this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ct.ielt9||!this._map._fadeAnimated?v(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new U(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var ao=oo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=u(this,e)).detectRetina&&Ct.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++, | |
| 6672 | 6721 | e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Se(i,"load",o(this._tileOnLoad,this,e,i)),Se(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var i={r:Ct.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-t.y |
| 6673 | 6722 | ;this.options.tms&&(i.y=o),i["-y"]=o}return h(this._url,e(i,this.options))},_tileOnLoad:function(t,e){Ct.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=r,e.onerror=r,!e.complete)){e.src=y;var i=this._tiles[t].coords;le(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),oo.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){ |
| 6674 | 6723 | if(this._map&&(!i||i.getAttribute("src")!==y))return oo.prototype._tileReady.call(this,t,e,i)}});function lo(t,e){return new ao(t,e)}var no=ao.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var o=e({},this.defaultWmsParams);for(var a in i)a in this.options||(o[a]=i[a]);var l=(i=u(this,i)).detectRetina&&Ct.retina?2:1,n=this.getTileSize();o.width=n.x*l,o.height=n.y*l,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ao.prototype.onAdd.call(this,t)},getTileUrl:function(t){ |
| 6675 | 6724 | var e=this._tileCoordsToNwSe(t),i=this._crs,o=C(i.project(e[0]),i.project(e[1])),a=o.min,l=o.max,n=(this._wmsVersion>=1.3&&this._crs===vi?[a.y,a.x,l.y,l.x]:[a.x,a.y,l.x,l.y]).join(","),s=ao.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+n},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});ao.WMS=no,lo.wms=function(t,e){return new no(t,e)};var so=Ri.extend({options:{padding:.1},initialize:function(t){u(this,t),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ce(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd} |
| 6676 | 6725 | ;return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),l=o.multiplyBy(-i).add(a).subtract(this._map._getNewPixelOrigin(t,e));Ct.any3d?ge(this._container,l,i):fe(this._container,l)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new z(i,i.add(e.multiplyBy(1+2*t)).round()), |
| 6677 | -this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ro=so.extend({options:{tolerance:0},getEvents:function(){var t=so.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){so.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Se(t,"mousemove",this._onMouseMove,this),Se(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Se(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){_(this._redrawRequest),delete this._ctx,le(this._container),Ue(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ | |
| 6726 | +this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ro=so.extend({options:{tolerance:0},getEvents:function(){var t=so.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){so.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Se(t,"mousemove",this._onMouseMove,this),Se(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Se(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){_(this._redrawRequest),delete this._ctx,le(this._container),Pe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ | |
| 6678 | 6727 | so.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),o=Ct.retina?2:1;fe(e,t.min),e.width=o*i.x,e.height=o*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Ct.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){so.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[l(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,o=e.prev;i?i.prev=o:this._drawLast=o,o?o.next=i:this._drawFirst=i,delete t._order,delete this._layers[l(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){ |
| 6679 | 6728 | this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,o=t.options.dashArray.split(/[, ]+/),a=[];for(i=0;i<o.length;i++){if(e=Number(o[i]),isNaN(e))return;a.push(e)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||v(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(), |
| 6680 | 6729 | this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)t=o.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,o,a,l,n=t._parts,s=n.length,r=this._ctx;if(s){for(r.beginPath(),i=0;i<s;i++){for(o=0,a=n[i].length;o<a;o++)l=n[i][o],r[o?"lineTo":"moveTo"](l.x,l.y);e&&r.closePath()}this._fillStroke(r,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,o=Math.max(Math.round(t._radius),1),a=(Math.max(Math.round(t._radiusY),1)||o)/o;1!==a&&(i.save(),i.scale(1,a)),i.beginPath(),i.arc(e.x,e.y/a,o,0,2*Math.PI,!1),1!==a&&i.restore(),this._fillStroke(i,t)}}, |
| 6681 | 6730 | _fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,o=this._map.mouseEventToLayerPoint(t),a=this._drawFirst;a;a=a.next)(e=a.layer).options.interactive&&e._containsPoint(o)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(de(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)}, |
| @@ -6681,52 +6730,52 @@ | ||
| 6681 | 6730 | _fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,o=this._map.mouseEventToLayerPoint(t),a=this._drawFirst;a;a=a.next)(e=a.layer).options.interactive&&e._containsPoint(o)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(de(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)}, |
| 6682 | 6731 | _handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,a,l=this._drawFirst;l;l=l.next)(i=l.layer).options.interactive&&i._containsPoint(e)&&(a=i);a!==this._hoveredLayer&&(this._handleMouseOut(t),a&&(ce(this._container,"leaflet-interactive"),this._fireEvent([a],t,"mouseover"),this._hoveredLayer=a)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,o=e.prev;i&&(i.prev=o,o?o.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,o=e.prev;o&&(o.next=i,i?i.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function bo(t){ |
| 6683 | 6732 | return Ct.canvas?new ro(t):null}var co=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),uo={_initContainer:function(){this._container=ae("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(so.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=co("shape");ce(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=co("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;le(e),t.removeInteractiveTarget(e),delete this._layers[l(t)]},_updateStyle:function(t){ |
| 6684 | 6733 | var e=t._stroke,i=t._fill,o=t.options,a=t._container;a.stroked=!!o.stroke,a.filled=!!o.fill,o.stroke?(e||(e=t._stroke=co("stroke")),a.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=g(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(a.removeChild(e),t._stroke=null),o.fill?(i||(i=t._fill=co("fill")),a.appendChild(i),i.color=o.fillColor||o.color,i.opacity=o.fillOpacity):i&&(a.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),o=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+o+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){se(t._container)},_bringToBack:function(t){re(t._container)}},po=Ct.vml?co:G,mo=so.extend({_initContainer:function(){this._container=po("svg"), |
| 6685 | -this._container.setAttribute("pointer-events","none"),this._rootGroup=po("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){le(this._container),Ue(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){so.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),fe(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=po("path");t.options.className&&ce(e,t.options.className),t.options.interactive&&ce(e,"leaflet-interactive"),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){le(t._path), | |
| 6734 | +this._container.setAttribute("pointer-events","none"),this._rootGroup=po("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){le(this._container),Pe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){so.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),fe(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=po("path");t.options.className&&ce(e,t.options.className),t.options.interactive&&ce(e,"leaflet-interactive"),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){le(t._path), | |
| 6686 | 6735 | t.removeInteractiveTarget(t._path),delete this._layers[l(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Z(t._parts,e))},_updateCircle:function(t){ |
| 6687 | 6736 | var e=t._point,i=Math.max(Math.round(t._radius),1),o="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",a=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+2*i+",0 "+o+2*-i+",0 ";this._setPath(t,a)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){se(t._path)},_bringToBack:function(t){re(t._path)}});function ho(t){return Ct.svg||Ct.vml?new mo(t):null}Ct.vml&&mo.include(uo),Fe.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&bo(t)||ho(t)}});var go=Di.extend({initialize:function(t,e){Di.prototype.initialize.call(this,this._boundsToLatLngs(t),e)}, |
| 6688 | -setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});mo.create=po,mo.pointsToPath=Z,Ni.geometryToLayer=Ii,Ni.coordsToLatLng=Oi,Ni.coordsToLatLngs=Yi,Ni.latLngToCoords=Xi,Ni.latLngsToCoords=Bi,Ni.getFeature=Ei,Ni.asFeature=Fi,Fe.mergeOptions({boxZoom:!0});var fo=Qe.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ue(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){le(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout), | |
| 6689 | -this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),$t(),He(),this._startPoint=this._map.mouseEventToContainerPoint(t),Se(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ae("div","leaflet-zoom-box",this._container),ce(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),i=e.getSize();fe(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(le(this._box),de(this._container,"leaflet-crosshair")),Gt(),Me(),Ue(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(), | |
| 6737 | +setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});mo.create=po,mo.pointsToPath=Z,Ni.geometryToLayer=Ii,Ni.coordsToLatLng=Oi,Ni.coordsToLatLngs=Yi,Ni.latLngToCoords=Xi,Ni.latLngsToCoords=Bi,Ni.getFeature=Ei,Ni.asFeature=Fi,Fe.mergeOptions({boxZoom:!0});var fo=Qe.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){le(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout), | |
| 6738 | +this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),$t(),He(),this._startPoint=this._map.mouseEventToContainerPoint(t),Se(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ae("div","leaflet-zoom-box",this._container),ce(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),i=e.getSize();fe(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(le(this._box),de(this._container,"leaflet-crosshair")),Gt(),Me(),Pe(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(), | |
| 6690 | 6739 | this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new A(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Fe.addInitHook("addHandler","boxZoom",fo),Fe.mergeOptions({doubleClickZoom:!0});var yo=Qe.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),o=e.options.zoomDelta,a=t.originalEvent.shiftKey?i-o:i+o;"center"===e.options.doubleClickZoom?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});Fe.addInitHook("addHandler","doubleClickZoom",yo),Fe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2, |
| 6691 | 6740 | worldCopyJump:!1,maxBoundsViscosity:0});var To=Qe.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ii(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ce(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){de(this._map._container,"leaflet-grab"),de(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){ |
| 6692 | 6741 | var e=D(this._map.options.maxBounds);this._offsetLimit=C(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x}, |
| 6693 | 6742 | _viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,o=this._draggable._newPos.x,a=(o-e+i)%t+e-i,l=(o+e+i)%t-e-i,n=Math.abs(a+i)<Math.abs(l+i)?a:l;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=n},_onDragEnd:function(t){var e=this._map,i=e.options,o=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date) |
| 6694 | 6743 | ;var a=this._lastPos.subtract(this._positions[0]),l=(this._lastTime-this._times[0])/1e3,n=i.easeLinearity,s=a.multiplyBy(n/l),r=s.distanceTo([0,0]),b=Math.min(i.inertiaMaxSpeed,r),c=s.multiplyBy(b/r),d=b/(i.inertiaDeceleration*n),u=c.multiplyBy(-d/2).round();u.x||u.y?(u=e._limitOffset(u,e.options.maxBounds),v(function(){e.panBy(u,{duration:d,easeLinearity:n,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});Fe.addInitHook("addHandler","dragging",To),Fe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ho=Qe.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Se(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){ |
| 6695 | -this._removeHooks(),Ue(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,o=this._panKeys={},a=this.keyCodes;for(e=0,i=a.left.length;e<i;e++)o[a.left[e]]=[-1*t,0];for(e=0,i=a.right.length;e<i;e++)o[a.right[e]]=[t,0];for(e=0,i=a.down.length;e<i;e++)o[a.down[e]]=[0,t];for(e=0,i=a.up.length;e<i;e++)o[a.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,o=this._zoomKeys={},a=this.keyCodes;for(e=0,i=a.zoomIn.length;e<i;e++)o[a.zoomIn[e]]=t;for(e=0,i=a.zoomOut.length;e<i;e++)o[a.zoomOut[e]]=-t},_addHooks:function(){ | |
| 6696 | -Se(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ue(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,o=this._map;if(i in this._panKeys){if(!o._panAnim||!o._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=w(e).multiplyBy(3)),o.options.maxBounds&&(e=o._limitOffset(w(e),o.options.maxBounds)),o.options.worldCopyJump){var a=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(e)));o.panTo(a)}else o.panBy(e)}else if(i in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}Ne(t)}}});Fe.addInitHook("addHandler","keyboard",Ho),Fe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Mo=Qe.extend({addHooks:function(){Se(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ | |
| 6697 | -Ue(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ye(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var a=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),a),Ne(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(4*this._map.options.wheelPxPerZoomLevel),a=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,l=i?Math.ceil(a/i)*i:a,n=t._limitZoom(e+(this._delta>0?l:-l))-e;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(e+n):t.setZoomAround(this._lastMousePos,e+n))}});Fe.addInitHook("addHandler","scrollWheelZoom",Mo);Fe.mergeOptions({tapHold:Ct.touchNative&&Ct.safari&&Ct.mobile,tapTolerance:15});var xo=Qe.extend({addHooks:function(){ | |
| 6698 | -Se(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ue(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new P(e.clientX,e.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Se(document,"touchend",De),Se(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),Se(document,"touchend touchcancel contextmenu",this._cancel,this),Se(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ue(document,"touchend",De),Ue(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ue(document,"touchend touchcancel contextmenu",this._cancel,this),Ue(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new P(e.clientX,e.clientY)},_isTapValid:function(){ | |
| 6699 | -return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});Fe.addInitHook("addHandler","tapHold",xo),Fe.mergeOptions({touchZoom:Ct.touch,bounceAtZoomLimits:!0});var ko=Qe.extend({addHooks:function(){ce(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Ue(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint), | |
| 6744 | +this._removeHooks(),Pe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,o=this._panKeys={},a=this.keyCodes;for(e=0,i=a.left.length;e<i;e++)o[a.left[e]]=[-1*t,0];for(e=0,i=a.right.length;e<i;e++)o[a.right[e]]=[t,0];for(e=0,i=a.down.length;e<i;e++)o[a.down[e]]=[0,t];for(e=0,i=a.up.length;e<i;e++)o[a.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,o=this._zoomKeys={},a=this.keyCodes;for(e=0,i=a.zoomIn.length;e<i;e++)o[a.zoomIn[e]]=t;for(e=0,i=a.zoomOut.length;e<i;e++)o[a.zoomOut[e]]=-t},_addHooks:function(){ | |
| 6745 | +Se(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Pe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,o=this._map;if(i in this._panKeys){if(!o._panAnim||!o._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=w(e).multiplyBy(3)),o.options.maxBounds&&(e=o._limitOffset(w(e),o.options.maxBounds)),o.options.worldCopyJump){var a=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(e)));o.panTo(a)}else o.panBy(e)}else if(i in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}Ne(t)}}});Fe.addInitHook("addHandler","keyboard",Ho),Fe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Mo=Qe.extend({addHooks:function(){Se(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ | |
| 6746 | +Pe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ye(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var a=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),a),Ne(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(4*this._map.options.wheelPxPerZoomLevel),a=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,l=i?Math.ceil(a/i)*i:a,n=t._limitZoom(e+(this._delta>0?l:-l))-e;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(e+n):t.setZoomAround(this._lastMousePos,e+n))}});Fe.addInitHook("addHandler","scrollWheelZoom",Mo);Fe.mergeOptions({tapHold:Ct.touchNative&&Ct.safari&&Ct.mobile,tapTolerance:15});var xo=Qe.extend({addHooks:function(){ | |
| 6747 | +Se(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new U(e.clientX,e.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Se(document,"touchend",De),Se(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),Se(document,"touchend touchcancel contextmenu",this._cancel,this),Se(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Pe(document,"touchend",De),Pe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Pe(document,"touchend touchcancel contextmenu",this._cancel,this),Pe(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new U(e.clientX,e.clientY)},_isTapValid:function(){ | |
| 6748 | +return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});Fe.addInitHook("addHandler","tapHold",xo),Fe.mergeOptions({touchZoom:Ct.touch,bounceAtZoomLimits:!0});var ko=Qe.extend({addHooks:function(){ce(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint), | |
| 6700 | 6749 | "center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(o)._divideBy(2))),this._startDist=i.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend touchcancel",this._onTouchEnd,this),De(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),a=e.mouseEventToContainerPoint(t.touches[1]),l=i.distanceTo(a)/this._startDist;if(this._zoom=e.getScaleZoom(l,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&l<1||this._zoom>e.getMaxZoom()&&l>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===l)return}else{var n=i._add(a)._divideBy(2)._subtract(this._centerPoint);if(1===l&&0===n.x&&0===n.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(n),this._zoom)} |
| 6701 | -this._moved||(e._moveStart(!0,!1),this._moved=!0),_(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=v(s,this,!0),De(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,_(this._animRequest),Ue(document,"touchmove",this._onTouchMove,this),Ue(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Fe.addInitHook("addHandler","touchZoom",ko),Fe.BoxZoom=fo,Fe.DoubleClickZoom=yo,Fe.Drag=To,Fe.Keyboard=Ho,Fe.ScrollWheelZoom=Mo,Fe.TapHold=xo,Fe.TouchZoom=ko,t.Bounds=z,t.Browser=Ct,t.CRS=O,t.Canvas=ro,t.Circle=Ai,t.CircleMarker=Ci,t.Class=S,t.Control=qe,t.DivIcon=io,t.DivOverlay=Qi,t.DomEvent=Be,t.DomUtil=Re,t.Draggable=ii,t.Evented=U,t.FeatureGroup=Wi,t.GeoJSON=Ni,t.GridLayer=oo,t.Handler=Qe, | |
| 6702 | -t.Icon=Ui,t.ImageOverlay=Zi,t.LatLng=N,t.LatLngBounds=A,t.Layer=Ri,t.LayerGroup=Si,t.LineUtil=Ti,t.Map=Fe,t.Marker=wi,t.Mixin=ti,t.Path=zi,t.Point=P,t.PolyUtil=si,t.Polygon=Di,t.Polyline=Li,t.Popup=to,t.PosAnimation=Ee,t.Projection=xi,t.Rectangle=go,t.Renderer=so,t.SVG=mo,t.SVGOverlay=Ji,t.TileLayer=ao,t.Tooltip=eo,t.Transformation=E,t.Util=R,t.VideoOverlay=Ki,t.bind=o,t.bounds=C,t.canvas=bo,t.circle=function(t,e,i){return new Ai(t,e,i)},t.circleMarker=function(t,e){return new Ci(t,e)},t.control=$e,t.divIcon=function(t){return new io(t)},t.extend=e,t.featureGroup=function(t,e){return new Wi(t,e)},t.geoJSON=$i,t.geoJson=Gi,t.gridLayer=function(t){return new oo(t)},t.icon=function(t){return new Ui(t)},t.imageOverlay=function(t,e,i){return new Zi(t,e,i)},t.latLng=I,t.latLngBounds=D,t.layerGroup=function(t,e){return new Si(t,e)},t.map=function(t,e){return new Fe(t,e)},t.marker=function(t,e){return new wi(t,e)},t.point=w,t.polygon=function(t,e){return new Di(t,e)},t.polyline=function(t,e){ | |
| 6750 | +this._moved||(e._moveStart(!0,!1),this._moved=!0),_(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=v(s,this,!0),De(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,_(this._animRequest),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Fe.addInitHook("addHandler","touchZoom",ko),Fe.BoxZoom=fo,Fe.DoubleClickZoom=yo,Fe.Drag=To,Fe.Keyboard=Ho,Fe.ScrollWheelZoom=Mo,Fe.TapHold=xo,Fe.TouchZoom=ko,t.Bounds=z,t.Browser=Ct,t.CRS=O,t.Canvas=ro,t.Circle=Ai,t.CircleMarker=Ci,t.Class=S,t.Control=qe,t.DivIcon=io,t.DivOverlay=Qi,t.DomEvent=Be,t.DomUtil=Re,t.Draggable=ii,t.Evented=P,t.FeatureGroup=Wi,t.GeoJSON=Ni,t.GridLayer=oo,t.Handler=Qe, | |
| 6751 | +t.Icon=Pi,t.ImageOverlay=Zi,t.LatLng=N,t.LatLngBounds=A,t.Layer=Ri,t.LayerGroup=Si,t.LineUtil=Ti,t.Map=Fe,t.Marker=wi,t.Mixin=ti,t.Path=zi,t.Point=U,t.PolyUtil=si,t.Polygon=Di,t.Polyline=Li,t.Popup=to,t.PosAnimation=Ee,t.Projection=xi,t.Rectangle=go,t.Renderer=so,t.SVG=mo,t.SVGOverlay=Ji,t.TileLayer=ao,t.Tooltip=eo,t.Transformation=E,t.Util=R,t.VideoOverlay=Ki,t.bind=o,t.bounds=C,t.canvas=bo,t.circle=function(t,e,i){return new Ai(t,e,i)},t.circleMarker=function(t,e){return new Ci(t,e)},t.control=$e,t.divIcon=function(t){return new io(t)},t.extend=e,t.featureGroup=function(t,e){return new Wi(t,e)},t.geoJSON=$i,t.geoJson=Gi,t.gridLayer=function(t){return new oo(t)},t.icon=function(t){return new Pi(t)},t.imageOverlay=function(t,e,i){return new Zi(t,e,i)},t.latLng=I,t.latLngBounds=D,t.layerGroup=function(t,e){return new Si(t,e)},t.map=function(t,e){return new Fe(t,e)},t.marker=function(t,e){return new wi(t,e)},t.point=w,t.polygon=function(t,e){return new Di(t,e)},t.polyline=function(t,e){ | |
| 6703 | 6752 | return new Li(t,e)},t.popup=function(t,e){return new to(t,e)},t.rectangle=function(t,e){return new go(t,e)},t.setOptions=u,t.stamp=l,t.svg=ho,t.svgOverlay=function(t,e,i){return new Ji(t,e,i)},t.tileLayer=lo,t.tooltip=function(t,e){return new eo(t,e)},t.transformation=F,t.version="1.9.4",t.videoOverlay=function(t,e,i){return new Ki(t,e,i)};var vo=window.L;t.noConflict=function(){return window.L=vo,this},window.L=t}(e)},67193(t,e,i){t=i.nmd(t) |
| 6704 | -;var o="__lodash_hash_undefined__",a=9007199254740991,l="[object Arguments]",n="[object Boolean]",s="[object Date]",r="[object Function]",b="[object GeneratorFunction]",c="[object Map]",d="[object Number]",u="[object Object]",p="[object Promise]",m="[object RegExp]",h="[object Set]",g="[object String]",f="[object Symbol]",y="[object WeakMap]",T="[object ArrayBuffer]",H="[object DataView]",M="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",v="[object Int16Array]",_="[object Int32Array]",R="[object Uint8Array]",S="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",P=/\w*$/,j=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,z={};z[l]=z["[object Array]"]=z[T]=z[H]=z[n]=z[s]=z[M]=z[x]=z[k]=z[v]=z[_]=z[c]=z[d]=z[u]=z[m]=z[h]=z[g]=z[f]=z[R]=z[S]=z[W]=z[U]=!0,z["[object Error]"]=z[r]=z[y]=!1 | |
| 6753 | +;var o="__lodash_hash_undefined__",a=9007199254740991,l="[object Arguments]",n="[object Boolean]",s="[object Date]",r="[object Function]",b="[object GeneratorFunction]",c="[object Map]",d="[object Number]",u="[object Object]",p="[object Promise]",m="[object RegExp]",h="[object Set]",g="[object String]",f="[object Symbol]",y="[object WeakMap]",T="[object ArrayBuffer]",H="[object DataView]",M="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",v="[object Int16Array]",_="[object Int32Array]",R="[object Uint8Array]",S="[object Uint8ClampedArray]",W="[object Uint16Array]",P="[object Uint32Array]",U=/\w*$/,j=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,z={};z[l]=z["[object Array]"]=z[T]=z[H]=z[n]=z[s]=z[M]=z[x]=z[k]=z[v]=z[_]=z[c]=z[d]=z[u]=z[m]=z[h]=z[g]=z[f]=z[R]=z[S]=z[W]=z[P]=!0,z["[object Error]"]=z[r]=z[y]=!1 | |
| 6705 | 6754 | ;var C="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,A="object"==typeof self&&self&&self.Object===Object&&self,L=C||A||Function("return this")(),D=e&&!e.nodeType&&e,N=D&&t&&!t.nodeType&&t,I=N&&N.exports===D;function V(t,e){return t.set(e[0],e[1]),t}function O(t,e){return t.add(e),t}function Y(t,e,i,o){var a=-1,l=t?t.length:0;for(o&&l&&(i=t[++a]);++a<l;)i=e(i,t[a],a,t);return i}function X(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function B(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function E(t,e){return function(i){return t(e(i))}}function F(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i} |
| 6706 | 6755 | var q,$=Array.prototype,G=Function.prototype,Z=Object.prototype,K=L["__core-js_shared__"],J=(q=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",Q=G.toString,tt=Z.hasOwnProperty,et=Z.toString,it=RegExp("^"+Q.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=I?L.Buffer:void 0,at=L.Symbol,lt=L.Uint8Array,nt=E(Object.getPrototypeOf,Object),st=Object.create,rt=Z.propertyIsEnumerable,bt=$.splice,ct=Object.getOwnPropertySymbols,dt=ot?ot.isBuffer:void 0,ut=E(Object.keys,Object),pt=Lt(L,"DataView"),mt=Lt(L,"Map"),ht=Lt(L,"Promise"),gt=Lt(L,"Set"),ft=Lt(L,"WeakMap"),yt=Lt(Object,"create"),Tt=Ot(pt),Ht=Ot(mt),Mt=Ot(ht),xt=Ot(gt),kt=Ot(ft),vt=at?at.prototype:void 0,_t=vt?vt.valueOf:void 0;function Rt(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function St(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Wt(t){ |
| 6707 | -var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Ut(t){this.__data__=new St(t)}function Pt(t,e,i){var o=t[e];tt.call(t,e)&&Yt(o,i)&&(void 0!==i||e in t)||(t[e]=i)}function jt(t,e){for(var i=t.length;i--;)if(Yt(t[i][0],e))return i;return-1}function wt(t,e,i,o,a,p,y){var j;if(o&&(j=p?o(t,a,p,y):o(t)),void 0!==j)return j;if(!qt(t))return t;var w=Xt(t);if(w){if(j=function(t){var e=t.length,i=t.constructor(e);return e&&"string"==typeof t[0]&&tt.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(t),!e)return function(t,e){var i=-1,o=t.length;for(e||(e=Array(o));++i<o;)e[i]=t[i];return e}(t,j)}else{var C=Nt(t),A=C==r||C==b;if(Et(t))return function(t,e){if(e)return t.slice();var i=new t.constructor(t.length);return t.copy(i),i}(t,e);if(C==u||C==l||A&&!p){if(X(t))return p?t:{};if(j=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:qt(e=nt(t))?st(e):{};var e}(A?{}:t),!e)return function(t,e){return Ct(t,Dt(t),e)}(t,function(t,e){ | |
| 6708 | -return t&&Ct(e,$t(e),t)}(j,t))}else{if(!z[C])return p?t:{};j=function(t,e,i,o){var a,l=t.constructor;switch(e){case T:return zt(t);case n:case s:return new l(+t);case H:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,o);case M:case x:case k:case v:case _:case R:case S:case W:case U:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}(t,o);case c:return function(t,e,i){return Y(e?i(B(t),!0):B(t),V,new t.constructor)}(t,o,i);case d:case g:return new l(t);case m:return function(t){var e=new t.constructor(t.source,P.exec(t));return e.lastIndex=t.lastIndex,e}(t);case h:return function(t,e,i){return Y(e?i(F(t),!0):F(t),O,new t.constructor)}(t,o,i);case f:return a=t,_t?Object(_t.call(a)):{}}}(t,C,wt,e)}}y||(y=new Ut);var L=y.get(t);if(L)return L;if(y.set(t,j),!w)var D=i?function(t){return function(t,e,i){var o=e(t);return Xt(t)?o:function(t,e){ | |
| 6709 | -for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,$t,Dt)}(t):$t(t);return function(t,e){for(var i=-1,o=t?t.length:0;++i<o&&!1!==e(t[i],i););}(D||t,function(a,l){D&&(a=t[l=a]),Pt(j,l,wt(a,e,i,o,l,t,y))}),j}function zt(t){var e=new t.constructor(t.byteLength);return new lt(e).set(new lt(t)),e}function Ct(t,e,i,o){i||(i={});for(var a=-1,l=e.length;++a<l;){var n=e[a],s=o?o(i[n],t[n],n,i,t):void 0;Pt(i,n,void 0===s?t[n]:s)}return i}function At(t,e){var i,o,a=t.__data__;return("string"==(o=typeof(i=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==i:null===i)?a["string"==typeof e?"string":"hash"]:a.map}function Lt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!qt(t)||(e=t,J&&J in e))&&(Ft(t)||X(t)?it:j).test(Ot(t));var e}(i)?i:void 0}Rt.prototype.clear=function(){this.__data__=yt?yt(null):{}},Rt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Rt.prototype.get=function(t){var e=this.__data__ | |
| 6756 | +var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Pt(t){this.__data__=new St(t)}function Ut(t,e,i){var o=t[e];tt.call(t,e)&&Yt(o,i)&&(void 0!==i||e in t)||(t[e]=i)}function jt(t,e){for(var i=t.length;i--;)if(Yt(t[i][0],e))return i;return-1}function wt(t,e,i,o,a,p,y){var j;if(o&&(j=p?o(t,a,p,y):o(t)),void 0!==j)return j;if(!qt(t))return t;var w=Xt(t);if(w){if(j=function(t){var e=t.length,i=t.constructor(e);return e&&"string"==typeof t[0]&&tt.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(t),!e)return function(t,e){var i=-1,o=t.length;for(e||(e=Array(o));++i<o;)e[i]=t[i];return e}(t,j)}else{var C=Nt(t),A=C==r||C==b;if(Et(t))return function(t,e){if(e)return t.slice();var i=new t.constructor(t.length);return t.copy(i),i}(t,e);if(C==u||C==l||A&&!p){if(X(t))return p?t:{};if(j=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:qt(e=nt(t))?st(e):{};var e}(A?{}:t),!e)return function(t,e){return Ct(t,Dt(t),e)}(t,function(t,e){ | |
| 6757 | +return t&&Ct(e,$t(e),t)}(j,t))}else{if(!z[C])return p?t:{};j=function(t,e,i,o){var a,l=t.constructor;switch(e){case T:return zt(t);case n:case s:return new l(+t);case H:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,o);case M:case x:case k:case v:case _:case R:case S:case W:case P:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}(t,o);case c:return function(t,e,i){return Y(e?i(B(t),!0):B(t),V,new t.constructor)}(t,o,i);case d:case g:return new l(t);case m:return function(t){var e=new t.constructor(t.source,U.exec(t));return e.lastIndex=t.lastIndex,e}(t);case h:return function(t,e,i){return Y(e?i(F(t),!0):F(t),O,new t.constructor)}(t,o,i);case f:return a=t,_t?Object(_t.call(a)):{}}}(t,C,wt,e)}}y||(y=new Pt);var L=y.get(t);if(L)return L;if(y.set(t,j),!w)var D=i?function(t){return function(t,e,i){var o=e(t);return Xt(t)?o:function(t,e){ | |
| 6758 | +for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,$t,Dt)}(t):$t(t);return function(t,e){for(var i=-1,o=t?t.length:0;++i<o&&!1!==e(t[i],i););}(D||t,function(a,l){D&&(a=t[l=a]),Ut(j,l,wt(a,e,i,o,l,t,y))}),j}function zt(t){var e=new t.constructor(t.byteLength);return new lt(e).set(new lt(t)),e}function Ct(t,e,i,o){i||(i={});for(var a=-1,l=e.length;++a<l;){var n=e[a],s=o?o(i[n],t[n],n,i,t):void 0;Ut(i,n,void 0===s?t[n]:s)}return i}function At(t,e){var i,o,a=t.__data__;return("string"==(o=typeof(i=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==i:null===i)?a["string"==typeof e?"string":"hash"]:a.map}function Lt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!qt(t)||(e=t,J&&J in e))&&(Ft(t)||X(t)?it:j).test(Ot(t));var e}(i)?i:void 0}Rt.prototype.clear=function(){this.__data__=yt?yt(null):{}},Rt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Rt.prototype.get=function(t){var e=this.__data__ | |
| 6710 | 6759 | ;if(yt){var i=e[t];return i===o?void 0:i}return tt.call(e,t)?e[t]:void 0},Rt.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:tt.call(e,t)},Rt.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?o:e,this},St.prototype.clear=function(){this.__data__=[]},St.prototype.delete=function(t){var e=this.__data__,i=jt(e,t);return!(i<0||(i==e.length-1?e.pop():bt.call(e,i,1),0))},St.prototype.get=function(t){var e=this.__data__,i=jt(e,t);return i<0?void 0:e[i][1]},St.prototype.has=function(t){return jt(this.__data__,t)>-1},St.prototype.set=function(t,e){var i=this.__data__,o=jt(i,t);return o<0?i.push([t,e]):i[o][1]=e,this},Wt.prototype.clear=function(){this.__data__={hash:new Rt,map:new(mt||St),string:new Rt}},Wt.prototype.delete=function(t){return At(this,t).delete(t)},Wt.prototype.get=function(t){return At(this,t).get(t)},Wt.prototype.has=function(t){return At(this,t).has(t)},Wt.prototype.set=function(t,e){return At(this,t).set(t,e),this}, |
| 6711 | -Ut.prototype.clear=function(){this.__data__=new St},Ut.prototype.delete=function(t){return this.__data__.delete(t)},Ut.prototype.get=function(t){return this.__data__.get(t)},Ut.prototype.has=function(t){return this.__data__.has(t)},Ut.prototype.set=function(t,e){var i=this.__data__;if(i instanceof St){var o=i.__data__;if(!mt||o.length<199)return o.push([t,e]),this;i=this.__data__=new Wt(o)}return i.set(t,e),this};var Dt=ct?E(ct,Object):function(){return[]},Nt=function(t){return et.call(t)};function It(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||w.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Z)}function Ot(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Yt(t,e){return t===e||t!=t&&e!=e}(pt&&Nt(new pt(new ArrayBuffer(1)))!=H||mt&&Nt(new mt)!=c||ht&&Nt(ht.resolve())!=p||gt&&Nt(new gt)!=h||ft&&Nt(new ft)!=y)&&(Nt=function(t){ | |
| 6760 | +Pt.prototype.clear=function(){this.__data__=new St},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var i=this.__data__;if(i instanceof St){var o=i.__data__;if(!mt||o.length<199)return o.push([t,e]),this;i=this.__data__=new Wt(o)}return i.set(t,e),this};var Dt=ct?E(ct,Object):function(){return[]},Nt=function(t){return et.call(t)};function It(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||w.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Z)}function Ot(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Yt(t,e){return t===e||t!=t&&e!=e}(pt&&Nt(new pt(new ArrayBuffer(1)))!=H||mt&&Nt(new mt)!=c||ht&&Nt(ht.resolve())!=p||gt&&Nt(new gt)!=h||ft&&Nt(new ft)!=y)&&(Nt=function(t){ | |
| 6712 | 6761 | var e=et.call(t),i=e==u?t.constructor:void 0,o=i?Ot(i):void 0;if(o)switch(o){case Tt:return H;case Ht:return c;case Mt:return p;case xt:return h;case kt:return y}return e});var Xt=Array.isArray;function Bt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}(t.length)&&!Ft(t)}var Et=dt||function(){return!1};function Ft(t){var e=qt(t)?et.call(t):"";return e==r||e==b}function qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function $t(t){return Bt(t)?function(t,e){var i=Xt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Bt(t)}(t)&&tt.call(t,"callee")&&(!rt.call(t,"callee")||et.call(t)==l)}(t)?function(t,e){for(var i=-1,o=Array(t);++i<t;)o[i]=e(i);return o}(t.length,String):[],o=i.length,a=!!o;for(var n in t)!e&&!tt.call(t,n)||a&&("length"==n||It(n,o))||i.push(n);return i}(t):function(t){if(!Vt(t))return ut(t);var e=[];for(var i in Object(t))tt.call(t,i)&&"constructor"!=i&&e.push(i);return e}(t)} |
| 6713 | 6762 | t.exports=function(t){return wt(t,!0,!0)}},8142(t,e,i){t=i.nmd(t);var o="__lodash_hash_undefined__",a=9007199254740991,l="[object Arguments]",n="[object Array]",s="[object Boolean]",r="[object Date]",b="[object Error]",c="[object Function]",d="[object Map]",u="[object Number]",p="[object Object]",m="[object Promise]",h="[object RegExp]",g="[object Set]",f="[object String]",y="[object WeakMap]",T="[object ArrayBuffer]",H="[object DataView]",M=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[l]=k[n]=k[T]=k[s]=k[H]=k[r]=k[b]=k[c]=k[d]=k[u]=k[p]=k[h]=k[g]=k[f]=k[y]=!1 |
| 6714 | -;var v="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,_="object"==typeof self&&self&&self.Object===Object&&self,R=v||_||Function("return this")(),S=e&&!e.nodeType&&e,W=S&&t&&!t.nodeType&&t,U=W&&W.exports===S,P=U&&v.process,j=function(){try{return P&&P.binding&&P.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function z(t,e){for(var i=-1,o=null==t?0:t.length;++i<o;)if(e(t[i],i,t))return!0;return!1}function C(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function A(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i} | |
| 6715 | -var L,D,N,I=Array.prototype,V=Function.prototype,O=Object.prototype,Y=R["__core-js_shared__"],X=V.toString,B=O.hasOwnProperty,E=(L=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",F=O.toString,q=RegExp("^"+X.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=U?R.Buffer:void 0,G=R.Symbol,Z=R.Uint8Array,K=O.propertyIsEnumerable,J=I.splice,Q=G?G.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=$?$.isBuffer:void 0,it=(D=Object.keys,N=Object,function(t){return D(N(t))}),ot=Wt(R,"DataView"),at=Wt(R,"Map"),lt=Wt(R,"Promise"),nt=Wt(R,"Set"),st=Wt(R,"WeakMap"),rt=Wt(Object,"create"),bt=wt(ot),ct=wt(at),dt=wt(lt),ut=wt(nt),pt=wt(st),mt=G?G.prototype:void 0,ht=mt?mt.valueOf:void 0;function gt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function ft(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function yt(t){ | |
| 6716 | -var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Tt(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new yt;++e<i;)this.add(t[e])}function Ht(t){var e=this.__data__=new ft(t);this.size=e.size}function Mt(t,e){for(var i=t.length;i--;)if(zt(t[i][0],e))return i;return-1}function xt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Q&&Q in Object(t)?function(t){var e=B.call(t,Q),i=t[Q];try{t[Q]=void 0;var o=!0}catch(t){}var a=F.call(t);return o&&(e?t[Q]=i:delete t[Q]),a}(t):function(t){return F.call(t)}(t)}function kt(t){return Vt(t)&&xt(t)==l}function vt(t,e,i,o,a){return t===e||(null==t||null==e||!Vt(t)&&!Vt(e)?t!=t&&e!=e:function(t,e,i,o,a,c){var m=At(t),y=At(e),M=m?n:Pt(t),x=y?n:Pt(e),k=(M=M==l?p:M)==p,v=(x=x==l?p:x)==p,_=M==x;if(_&&Lt(t)){if(!Lt(e))return!1;m=!0,k=!1}if(_&&!k)return c||(c=new Ht),m||Ot(t)?_t(t,e,i,o,a,c):function(t,e,i,o,a,l,n){switch(i){case H: | |
| 6717 | -if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!l(new Z(t),new Z(e)));case s:case r:case u:return zt(+t,+e);case b:return t.name==e.name&&t.message==e.message;case h:case f:return t==e+"";case d:var c=C;case g:var p=1&o;if(c||(c=A),t.size!=e.size&&!p)return!1;var m=n.get(t);if(m)return m==e;o|=2,n.set(t,e);var y=_t(c(t),c(e),o,a,l,n);return n.delete(t),y;case"[object Symbol]":if(ht)return ht.call(t)==ht.call(e)}return!1}(t,e,M,i,o,a,c);if(!(1&i)){var R=k&&B.call(t,"__wrapped__"),S=v&&B.call(e,"__wrapped__");if(R||S){var W=R?t.value():t,U=S?e.value():e;return c||(c=new Ht),a(W,U,i,o,c)}}return!!_&&(c||(c=new Ht),function(t,e,i,o,a,l){var n=1&i,s=Rt(t),r=s.length;if(r!=Rt(e).length&&!n)return!1;for(var b=r;b--;){var c=s[b];if(!(n?c in e:B.call(e,c)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var u=!0;l.set(t,e),l.set(e,t);for(var p=n;++b<r;){var m=t[c=s[b]],h=e[c] | |
| 6718 | -;if(o)var g=n?o(h,m,c,e,t,l):o(m,h,c,t,e,l);if(!(void 0===g?m===h||a(m,h,i,o,l):g)){u=!1;break}p||(p="constructor"==c)}if(u&&!p){var f=t.constructor,y=e.constructor;f==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof f&&f instanceof f&&"function"==typeof y&&y instanceof y||(u=!1)}return l.delete(t),l.delete(e),u}(t,e,i,o,a,c))}(t,e,i,o,vt,a))}function _t(t,e,i,o,a,l){var n=1&i,s=t.length,r=e.length;if(s!=r&&!(n&&r>s))return!1;var b=l.get(t);if(b&&l.get(e))return b==e;var c=-1,d=!0,u=2&i?new Tt:void 0;for(l.set(t,e),l.set(e,t);++c<s;){var p=t[c],m=e[c];if(o)var h=n?o(m,p,c,e,t,l):o(p,m,c,t,e,l);if(void 0!==h){if(h)continue;d=!1;break}if(u){if(!z(e,function(t,e){if(n=e,!u.has(n)&&(p===t||a(p,t,i,o,l)))return u.push(e);var n})){d=!1;break}}else if(p!==m&&!a(p,m,i,o,l)){d=!1;break}}return l.delete(t),l.delete(e),d}function Rt(t){return function(t,e,i){var o=e(t);return At(t)?o:function(t,e){for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,Yt,Ut)} | |
| 6763 | +;var v="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,_="object"==typeof self&&self&&self.Object===Object&&self,R=v||_||Function("return this")(),S=e&&!e.nodeType&&e,W=S&&t&&!t.nodeType&&t,P=W&&W.exports===S,U=P&&v.process,j=function(){try{return U&&U.binding&&U.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function z(t,e){for(var i=-1,o=null==t?0:t.length;++i<o;)if(e(t[i],i,t))return!0;return!1}function C(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function A(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i} | |
| 6764 | +var L,D,N,I=Array.prototype,V=Function.prototype,O=Object.prototype,Y=R["__core-js_shared__"],X=V.toString,B=O.hasOwnProperty,E=(L=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",F=O.toString,q=RegExp("^"+X.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=P?R.Buffer:void 0,G=R.Symbol,Z=R.Uint8Array,K=O.propertyIsEnumerable,J=I.splice,Q=G?G.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=$?$.isBuffer:void 0,it=(D=Object.keys,N=Object,function(t){return D(N(t))}),ot=Wt(R,"DataView"),at=Wt(R,"Map"),lt=Wt(R,"Promise"),nt=Wt(R,"Set"),st=Wt(R,"WeakMap"),rt=Wt(Object,"create"),bt=wt(ot),ct=wt(at),dt=wt(lt),ut=wt(nt),pt=wt(st),mt=G?G.prototype:void 0,ht=mt?mt.valueOf:void 0;function gt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function ft(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function yt(t){ | |
| 6765 | +var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Tt(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new yt;++e<i;)this.add(t[e])}function Ht(t){var e=this.__data__=new ft(t);this.size=e.size}function Mt(t,e){for(var i=t.length;i--;)if(zt(t[i][0],e))return i;return-1}function xt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Q&&Q in Object(t)?function(t){var e=B.call(t,Q),i=t[Q];try{t[Q]=void 0;var o=!0}catch(t){}var a=F.call(t);return o&&(e?t[Q]=i:delete t[Q]),a}(t):function(t){return F.call(t)}(t)}function kt(t){return Vt(t)&&xt(t)==l}function vt(t,e,i,o,a){return t===e||(null==t||null==e||!Vt(t)&&!Vt(e)?t!=t&&e!=e:function(t,e,i,o,a,c){var m=At(t),y=At(e),M=m?n:Ut(t),x=y?n:Ut(e),k=(M=M==l?p:M)==p,v=(x=x==l?p:x)==p,_=M==x;if(_&&Lt(t)){if(!Lt(e))return!1;m=!0,k=!1}if(_&&!k)return c||(c=new Ht),m||Ot(t)?_t(t,e,i,o,a,c):function(t,e,i,o,a,l,n){switch(i){case H: | |
| 6766 | +if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!l(new Z(t),new Z(e)));case s:case r:case u:return zt(+t,+e);case b:return t.name==e.name&&t.message==e.message;case h:case f:return t==e+"";case d:var c=C;case g:var p=1&o;if(c||(c=A),t.size!=e.size&&!p)return!1;var m=n.get(t);if(m)return m==e;o|=2,n.set(t,e);var y=_t(c(t),c(e),o,a,l,n);return n.delete(t),y;case"[object Symbol]":if(ht)return ht.call(t)==ht.call(e)}return!1}(t,e,M,i,o,a,c);if(!(1&i)){var R=k&&B.call(t,"__wrapped__"),S=v&&B.call(e,"__wrapped__");if(R||S){var W=R?t.value():t,P=S?e.value():e;return c||(c=new Ht),a(W,P,i,o,c)}}return!!_&&(c||(c=new Ht),function(t,e,i,o,a,l){var n=1&i,s=Rt(t),r=s.length;if(r!=Rt(e).length&&!n)return!1;for(var b=r;b--;){var c=s[b];if(!(n?c in e:B.call(e,c)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var u=!0;l.set(t,e),l.set(e,t);for(var p=n;++b<r;){var m=t[c=s[b]],h=e[c] | |
| 6767 | +;if(o)var g=n?o(h,m,c,e,t,l):o(m,h,c,t,e,l);if(!(void 0===g?m===h||a(m,h,i,o,l):g)){u=!1;break}p||(p="constructor"==c)}if(u&&!p){var f=t.constructor,y=e.constructor;f==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof f&&f instanceof f&&"function"==typeof y&&y instanceof y||(u=!1)}return l.delete(t),l.delete(e),u}(t,e,i,o,a,c))}(t,e,i,o,vt,a))}function _t(t,e,i,o,a,l){var n=1&i,s=t.length,r=e.length;if(s!=r&&!(n&&r>s))return!1;var b=l.get(t);if(b&&l.get(e))return b==e;var c=-1,d=!0,u=2&i?new Tt:void 0;for(l.set(t,e),l.set(e,t);++c<s;){var p=t[c],m=e[c];if(o)var h=n?o(m,p,c,e,t,l):o(p,m,c,t,e,l);if(void 0!==h){if(h)continue;d=!1;break}if(u){if(!z(e,function(t,e){if(n=e,!u.has(n)&&(p===t||a(p,t,i,o,l)))return u.push(e);var n})){d=!1;break}}else if(p!==m&&!a(p,m,i,o,l)){d=!1;break}}return l.delete(t),l.delete(e),d}function Rt(t){return function(t,e,i){var o=e(t);return At(t)?o:function(t,e){for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,Yt,Pt)} | |
| 6719 | 6768 | function St(t,e){var i,o,a=t.__data__;return("string"==(o=typeof(i=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==i:null===i)?a["string"==typeof e?"string":"hash"]:a.map}function Wt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!It(t)||function(t){return!!E&&E in t}(t))&&(Dt(t)?q:M).test(wt(t))}(i)?i:void 0}gt.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},gt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},gt.prototype.get=function(t){var e=this.__data__;if(rt){var i=e[t];return i===o?void 0:i}return B.call(e,t)?e[t]:void 0},gt.prototype.has=function(t){var e=this.__data__;return rt?void 0!==e[t]:B.call(e,t)},gt.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=rt&&void 0===e?o:e,this},ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(t){var e=this.__data__,i=Mt(e,t) |
| 6720 | 6769 | ;return!(i<0||(i==e.length-1?e.pop():J.call(e,i,1),--this.size,0))},ft.prototype.get=function(t){var e=this.__data__,i=Mt(e,t);return i<0?void 0:e[i][1]},ft.prototype.has=function(t){return Mt(this.__data__,t)>-1},ft.prototype.set=function(t,e){var i=this.__data__,o=Mt(i,t);return o<0?(++this.size,i.push([t,e])):i[o][1]=e,this},yt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(at||ft),string:new gt}},yt.prototype.delete=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e},yt.prototype.get=function(t){return St(this,t).get(t)},yt.prototype.has=function(t){return St(this,t).has(t)},yt.prototype.set=function(t,e){var i=St(this,t),o=i.size;return i.set(t,e),this.size+=i.size==o?0:1,this},Tt.prototype.add=Tt.prototype.push=function(t){return this.__data__.set(t,o),this},Tt.prototype.has=function(t){return this.__data__.has(t)},Ht.prototype.clear=function(){this.__data__=new ft,this.size=0},Ht.prototype.delete=function(t){ |
| 6721 | -var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Ht.prototype.get=function(t){return this.__data__.get(t)},Ht.prototype.has=function(t){return this.__data__.has(t)},Ht.prototype.set=function(t,e){var i=this.__data__;if(i instanceof ft){var o=i.__data__;if(!at||o.length<199)return o.push([t,e]),this.size=++i.size,this;i=this.__data__=new yt(o)}return i.set(t,e),this.size=i.size,this};var Ut=tt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var i=-1,o=null==t?0:t.length,a=0,l=[];++i<o;){var n=t[i];e(n)&&(l[a++]=n)}return l}(tt(t),function(e){return K.call(t,e)}))}:function(){return[]},Pt=xt;function jt(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||x.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){if(null!=t){try{return X.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(ot&&Pt(new ot(new ArrayBuffer(1)))!=H||at&&Pt(new at)!=d||lt&&Pt(lt.resolve())!=m||nt&&Pt(new nt)!=g||st&&Pt(new st)!=y)&&(Pt=function(t){ | |
| 6770 | +var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Ht.prototype.get=function(t){return this.__data__.get(t)},Ht.prototype.has=function(t){return this.__data__.has(t)},Ht.prototype.set=function(t,e){var i=this.__data__;if(i instanceof ft){var o=i.__data__;if(!at||o.length<199)return o.push([t,e]),this.size=++i.size,this;i=this.__data__=new yt(o)}return i.set(t,e),this.size=i.size,this};var Pt=tt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var i=-1,o=null==t?0:t.length,a=0,l=[];++i<o;){var n=t[i];e(n)&&(l[a++]=n)}return l}(tt(t),function(e){return K.call(t,e)}))}:function(){return[]},Ut=xt;function jt(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||x.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){if(null!=t){try{return X.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(ot&&Ut(new ot(new ArrayBuffer(1)))!=H||at&&Ut(new at)!=d||lt&&Ut(lt.resolve())!=m||nt&&Ut(new nt)!=g||st&&Ut(new st)!=y)&&(Ut=function(t){ | |
| 6722 | 6771 | var e=xt(t),i=e==p?t.constructor:void 0,o=i?wt(i):"";if(o)switch(o){case bt:return H;case ct:return d;case dt:return m;case ut:return g;case pt:return y}return e});var Ct=kt(function(){return arguments}())?kt:function(t){return Vt(t)&&B.call(t,"callee")&&!K.call(t,"callee")},At=Array.isArray,Lt=et||function(){return!1};function Dt(t){if(!It(t))return!1;var e=xt(t);return e==c||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Nt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function It(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Vt(t){return null!=t&&"object"==typeof t}var Ot=w?function(t){return function(e){return t(e)}}(w):function(t){return Vt(t)&&Nt(t.length)&&!!k[xt(t)]};function Yt(t){return null!=(e=t)&&Nt(e.length)&&!Dt(e)?function(t,e){var i=At(t),o=!i&&Ct(t),a=!i&&!o&&Lt(t),l=!i&&!o&&!a&&Ot(t),n=i||o||a||l,s=n?function(t,e){for(var i=-1,o=Array(t);++i<t;)o[i]=e(i);return o}(t.length,String):[],r=s.length |
| 6723 | 6772 | ;for(var b in t)!e&&!B.call(t,b)||n&&("length"==b||a&&("offset"==b||"parent"==b)||l&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||jt(b,r))||s.push(b);return s}(t):function(t){if(i=(e=t)&&e.constructor,e!==("function"==typeof i&&i.prototype||O))return it(t);var e,i,o=[];for(var a in Object(t))B.call(t,a)&&"constructor"!=a&&o.push(a);return o}(t);var e}t.exports=function(t,e){return vt(t,e)}},55580(t,e,i){var o=i(56110)(i(9325),"DataView");t.exports=o},21549(t,e,i){var o=i(22032),a=i(63862),l=i(66721),n=i(12749),s=i(35749);function r(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=l,r.prototype.has=n,r.prototype.set=s,t.exports=r},80079(t,e,i){var o=i(63702),a=i(70080),l=i(24739),n=i(48655),s=i(31175);function r(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=l,r.prototype.has=n, |
| 6724 | 6773 | r.prototype.set=s,t.exports=r},68223(t,e,i){var o=i(56110)(i(9325),"Map");t.exports=o},53661(t,e,i){var o=i(63040),a=i(17670),l=i(90289),n=i(4509),s=i(72949);function r(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=l,r.prototype.has=n,r.prototype.set=s,t.exports=r},32804(t,e,i){var o=i(56110)(i(9325),"Promise");t.exports=o},76545(t,e,i){var o=i(56110)(i(9325),"Set");t.exports=o},37217(t,e,i){var o=i(80079),a=i(51420),l=i(90938),n=i(63605),s=i(29817),r=i(80945);function b(t){var e=this.__data__=new o(t);this.size=e.size}b.prototype.clear=a,b.prototype.delete=l,b.prototype.get=n,b.prototype.has=s,b.prototype.set=r,t.exports=b},51873(t,e,i){var o=i(9325).Symbol;t.exports=o},37828(t,e,i){var o=i(9325).Uint8Array;t.exports=o},28303(t,e,i){var o=i(56110)(i(9325),"WeakMap");t.exports=o},83729(t){t.exports=function(t,e){for(var i=-1,o=null==t?0:t.length;++i<o&&!1!==e(t[i],i,t););return t}}, |
| 6725 | 6774 | 79770(t){t.exports=function(t,e){for(var i=-1,o=null==t?0:t.length,a=0,l=[];++i<o;){var n=t[i];e(n,i,t)&&(l[a++]=n)}return l}},70695(t,e,i){var o=i(78096),a=i(72428),l=i(56449),n=i(3656),s=i(30361),r=i(37167),b=Object.prototype.hasOwnProperty;t.exports=function(t,e){var i=l(t),c=!i&&a(t),d=!i&&!c&&n(t),u=!i&&!c&&!d&&r(t),p=i||c||d||u,m=p?o(t.length,String):[],h=m.length;for(var g in t)!e&&!b.call(t,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||u&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||m.push(g);return m}},34932(t){t.exports=function(t,e){for(var i=-1,o=null==t?0:t.length,a=Array(o);++i<o;)a[i]=e(t[i],i,t);return a}},14528(t){t.exports=function(t,e){for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}},16547(t,e,i){var o=i(43360),a=i(75288),l=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){var n=t[e];l.call(t,e)&&a(n,i)&&(void 0!==i||e in t)||o(t,e,i)}},26025(t,e,i){var o=i(75288);t.exports=function(t,e){ |
| 6726 | 6775 | for(var i=t.length;i--;)if(o(t[i][0],e))return i;return-1}},74733(t,e,i){var o=i(21791),a=i(95950);t.exports=function(t,e){return t&&o(e,a(e),t)}},43838(t,e,i){var o=i(21791),a=i(37241);t.exports=function(t,e){return t&&o(e,a(e),t)}},43360(t,e,i){var o=i(93243);t.exports=function(t,e,i){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},9999(t,e,i){var o=i(37217),a=i(83729),l=i(16547),n=i(74733),s=i(43838),r=i(93290),b=i(23007),c=i(92271),d=i(48948),u=i(50002),p=i(83349),m=i(5861),h=i(76189),g=i(77199),f=i(35529),y=i(56449),T=i(3656),H=i(87730),M=i(23805),x=i(38440),k=i(95950),v=i(37241),_="[object Arguments]",R="[object Function]",S="[object Object]",W={} |
| 6727 | -;W[_]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object DataView]"]=W["[object Boolean]"]=W["[object Date]"]=W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Map]"]=W["[object Number]"]=W[S]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object Symbol]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Error]"]=W[R]=W["[object WeakMap]"]=!1,t.exports=function t(e,i,U,P,j,w){var z,C=1&i,A=2&i,L=4&i;if(U&&(z=j?U(e,P,j,w):U(e)),void 0!==z)return z;if(!M(e))return e;var D=y(e);if(D){if(z=h(e),!C)return b(e,z)}else{var N=m(e),I=N==R||"[object GeneratorFunction]"==N;if(T(e))return r(e,C);if(N==S||N==_||I&&!j){if(z=A||I?{}:f(e),!C)return A?d(e,s(z,e)):c(e,n(z,e))}else{if(!W[N])return j?e:{};z=g(e,N,C)}}w||(w=new o);var V=w.get(e);if(V)return V;w.set(e,z),x(e)?e.forEach(function(o){z.add(t(o,i,U,o,e,w)) | |
| 6728 | -}):H(e)&&e.forEach(function(o,a){z.set(a,t(o,i,U,a,e,w))});var O=D?void 0:(L?A?p:u:A?v:k)(e);return a(O||e,function(o,a){O&&(o=e[a=o]),l(z,a,t(o,i,U,a,e,w))}),z}},39344(t,e,i){var o=i(23805),a=Object.create,l=function(){function t(){}return function(e){if(!o(e))return{};if(a)return a(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();t.exports=l},82199(t,e,i){var o=i(14528),a=i(56449);t.exports=function(t,e,i){var l=e(t);return a(t)?l:o(l,i(t))}},72552(t,e,i){var o=i(51873),a=i(659),l=i(59350),n=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?a(t):l(t)}},27534(t,e,i){var o=i(72552),a=i(40346);t.exports=function(t){return a(t)&&"[object Arguments]"==o(t)}},29172(t,e,i){var o=i(5861),a=i(40346);t.exports=function(t){return a(t)&&"[object Map]"==o(t)}},45083(t,e,i){ | |
| 6776 | +;W[_]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object DataView]"]=W["[object Boolean]"]=W["[object Date]"]=W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Map]"]=W["[object Number]"]=W[S]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object Symbol]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Error]"]=W[R]=W["[object WeakMap]"]=!1,t.exports=function t(e,i,P,U,j,w){var z,C=1&i,A=2&i,L=4&i;if(P&&(z=j?P(e,U,j,w):P(e)),void 0!==z)return z;if(!M(e))return e;var D=y(e);if(D){if(z=h(e),!C)return b(e,z)}else{var N=m(e),I=N==R||"[object GeneratorFunction]"==N;if(T(e))return r(e,C);if(N==S||N==_||I&&!j){if(z=A||I?{}:f(e),!C)return A?d(e,s(z,e)):c(e,n(z,e))}else{if(!W[N])return j?e:{};z=g(e,N,C)}}w||(w=new o);var V=w.get(e);if(V)return V;w.set(e,z),x(e)?e.forEach(function(o){z.add(t(o,i,P,o,e,w)) | |
| 6777 | +}):H(e)&&e.forEach(function(o,a){z.set(a,t(o,i,P,a,e,w))});var O=D?void 0:(L?A?p:u:A?v:k)(e);return a(O||e,function(o,a){O&&(o=e[a=o]),l(z,a,t(o,i,P,a,e,w))}),z}},39344(t,e,i){var o=i(23805),a=Object.create,l=function(){function t(){}return function(e){if(!o(e))return{};if(a)return a(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();t.exports=l},82199(t,e,i){var o=i(14528),a=i(56449);t.exports=function(t,e,i){var l=e(t);return a(t)?l:o(l,i(t))}},72552(t,e,i){var o=i(51873),a=i(659),l=i(59350),n=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?a(t):l(t)}},27534(t,e,i){var o=i(72552),a=i(40346);t.exports=function(t){return a(t)&&"[object Arguments]"==o(t)}},29172(t,e,i){var o=i(5861),a=i(40346);t.exports=function(t){return a(t)&&"[object Map]"==o(t)}},45083(t,e,i){ | |
| 6729 | 6778 | var o=i(1882),a=i(87296),l=i(23805),n=i(47473),s=/^\[object .+?Constructor\]$/,r=Function.prototype,b=Object.prototype,c=r.toString,d=b.hasOwnProperty,u=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!l(t)||a(t))&&(o(t)?u:s).test(n(t))}},16038(t,e,i){var o=i(5861),a=i(40346);t.exports=function(t){return a(t)&&"[object Set]"==o(t)}},4901(t,e,i){var o=i(72552),a=i(30294),l=i(40346),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0, |
| 6730 | 6779 | n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,t.exports=function(t){return l(t)&&a(t.length)&&!!n[o(t)]}},88984(t,e,i){var o=i(55527),a=i(3650),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return a(t);var e=[];for(var i in Object(t))l.call(t,i)&&"constructor"!=i&&e.push(i);return e}},72903(t,e,i){var o=i(23805),a=i(55527),l=i(90181),n=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return l(t);var e=a(t),i=[];for(var s in t)("constructor"!=s||!e&&n.call(t,s))&&i.push(s);return i}},78096(t){t.exports=function(t,e){for(var i=-1,o=Array(t);++i<t;)o[i]=e(i);return o}},77556(t,e,i){var o=i(51873),a=i(34932),l=i(56449),n=i(44394),s=o?o.prototype:void 0,r=s?s.toString:void 0 |
| 6731 | 6780 | ;t.exports=function t(e){if("string"==typeof e)return e;if(l(e))return a(e,t)+"";if(n(e))return r?r.call(e):"";var i=e+"";return"0"==i&&1/e==-1/0?"-0":i}},27301(t){t.exports=function(t){return function(e){return t(e)}}},49653(t,e,i){var o=i(37828);t.exports=function(t){var e=new t.constructor(t.byteLength);return new o(e).set(new o(t)),e}},93290(t,e,i){t=i.nmd(t);var o=i(9325),a=e&&!e.nodeType&&e,l=a&&t&&!t.nodeType&&t,n=l&&l.exports===a?o.Buffer:void 0,s=n?n.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var i=t.length,o=s?s(i):new t.constructor(i);return t.copy(o),o}},76169(t,e,i){var o=i(49653);t.exports=function(t,e){var i=e?o(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}},73201(t){var e=/\w*$/;t.exports=function(t){var i=new t.constructor(t.source,e.exec(t));return i.lastIndex=t.lastIndex,i}},93736(t,e,i){var o=i(51873),a=o?o.prototype:void 0,l=a?a.valueOf:void 0;t.exports=function(t){return l?Object(l.call(t)):{}}},71961(t,e,i){ |
| 6732 | 6781 | var o=i(49653);t.exports=function(t,e){var i=e?o(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}},23007(t){t.exports=function(t,e){var i=-1,o=t.length;for(e||(e=Array(o));++i<o;)e[i]=t[i];return e}},21791(t,e,i){var o=i(16547),a=i(43360);t.exports=function(t,e,i,l){var n=!i;i||(i={});for(var s=-1,r=e.length;++s<r;){var b=e[s],c=l?l(i[b],t[b],b,i,t):void 0;void 0===c&&(c=t[b]),n?a(i,b,c):o(i,b,c)}return i}},92271(t,e,i){var o=i(21791),a=i(4664);t.exports=function(t,e){return o(t,a(t),e)}},48948(t,e,i){var o=i(21791),a=i(86375);t.exports=function(t,e){return o(t,a(t),e)}},55481(t,e,i){var o=i(9325)["__core-js_shared__"];t.exports=o},93243(t,e,i){var o=i(56110),a=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},34840(t){var e="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;t.exports=e},50002(t,e,i){var o=i(82199),a=i(4664),l=i(95950);t.exports=function(t){return o(t,l,a)}},83349(t,e,i){ |
| @@ -6787,26 +6836,26 @@ | ||
| 6787 | 6836 | function e(t,e){if(!t||!e)return 6;var i=t.charAt(t.length-1),o=e.charAt(0),a=i.match(s),l=o.match(s),n=a&&i.match(r),u=l&&o.match(r),p=n&&i.match(b),m=u&&o.match(b),h=p&&t.match(c),g=m&&e.match(d);return h||g?5:p||m?4:a&&!n&&u?3:n||u?2:a||l?1:0}for(var i=1;i<t.length-1;){if(0==t[i-1][0]&&0==t[i+1][0]){var o=t[i-1][1],a=t[i][1],l=t[i+1][1],u=n(o,a);if(u){var p=a.substring(a.length-u);o=o.substring(0,o.length-u),a=p+a.substring(0,a.length-u),l=p+l}for(var m=o,h=a,g=l,f=e(o,a)+e(a,l);a.charAt(0)===l.charAt(0);){o+=a.charAt(0),a=a.substring(1)+l.charAt(0),l=l.substring(1);var y=e(o,a)+e(a,l);y>=f&&(f=y,m=o,h=a,g=l)}t[i-1][1]!=m&&(m?t[i-1][1]=m:(t.splice(i-1,1),i--),t[i][1]=h,g?t[i+1][1]=g:(t.splice(i+1,1),i--))}i++}}(t),m=1;m<t.length;){if(t[m-1][0]==e&&1==t[m][0]){var T=t[m-1][1],H=t[m][1],M=l(T,H),x=l(H,T);M>=x?(M>=T.length/2||M>=H.length/2)&&(t.splice(m,0,[0,H.substring(0,M)]),t[m-1][1]=T.substring(0,T.length-M),t[m+1][1]=H.substring(M), |
| 6788 | 6837 | m++):(x>=T.length/2||x>=H.length/2)&&(t.splice(m,0,[0,T.substring(0,x)]),t[m-1][0]=1,t[m-1][1]=H.substring(0,H.length-x),t[m+1][0]=e,t[m+1][1]=T.substring(x),m++),m++}m++}}(x),x}function o(t,e,o,a){var l=t.substring(0,o),n=e.substring(0,a),s=t.substring(o),r=e.substring(a),b=i(l,n),c=i(s,r);return b.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var i=0,o=Math.min(t.length,e.length),a=o,l=0;i<a;)t.substring(l,a)==e.substring(l,a)?l=i=a:o=a,a=Math.floor((o-i)/2+i);return p(t.charCodeAt(a-1))&&a--,a}function l(t,e){var i=t.length,o=e.length;if(0==i||0==o)return 0;i>o?t=t.substring(i-o):i<o&&(e=e.substring(0,i));var a=Math.min(i,o);if(t==e)return a;for(var l=0,n=1;;){var s=t.substring(a-n),r=e.indexOf(s);if(-1==r)return l;n+=r,0!=r&&t.substring(a-n)!=e.substring(0,n)||(l=n,n++)}}function n(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0 |
| 6789 | 6838 | ;for(var i=0,o=Math.min(t.length,e.length),a=o,l=0;i<a;)t.substring(t.length-a,t.length-l)==e.substring(e.length-a,e.length-l)?l=i=a:o=a,a=Math.floor((o-i)/2+i);return m(t.charCodeAt(t.length-a))&&a--,a}var s=/[^a-zA-Z0-9]/,r=/\s/,b=/[\r\n]/,c=/\n\r?\n$/,d=/^\r?\n\r?\n/;function u(t,i){t.push([0,""]);for(var o,l=0,s=0,r=0,b="",c="";l<t.length;)if(l<t.length-1&&!t[l][1])t.splice(l,1);else switch(t[l][0]){case 1:r++,c+=t[l][1],l++;break;case e:s++,b+=t[l][1],l++;break;case 0:var d=l-r-s-1;if(i){if(d>=0&&g(t[d][1])){var p=t[d][1].slice(-1);if(t[d][1]=t[d][1].slice(0,-1),b=p+b,c=p+c,!t[d][1]){t.splice(d,1),l--;var m=d-1;t[m]&&1===t[m][0]&&(r++,c=t[m][1]+c,m--),t[m]&&t[m][0]===e&&(s++,b=t[m][1]+b,m--),d=m}}h(t[l][1])&&(p=t[l][1].charAt(0),t[l][1]=t[l][1].slice(1),b+=p,c+=p)}if(l<t.length-1&&!t[l][1]){t.splice(l,1);break}if(b.length>0||c.length>0){b.length>0&&c.length>0&&(0!==(o=a(c,b))&&(d>=0?t[d][1]+=c.substring(0,o):(t.splice(0,0,[0,c.substring(0,o)]),l++),c=c.substring(o), |
| 6790 | 6839 | b=b.substring(o)),0!==(o=n(c,b))&&(t[l][1]=c.substring(c.length-o)+t[l][1],c=c.substring(0,c.length-o),b=b.substring(0,b.length-o)));var f=r+s;0===b.length&&0===c.length?(t.splice(l-f,f),l-=f):0===b.length?(t.splice(l-f,f,[1,c]),l=l-f+1):0===c.length?(t.splice(l-f,f,[e,b]),l=l-f+1):(t.splice(l-f,f,[e,b],[1,c]),l=l-f+2)}0!==l&&0===t[l-1][0]?(t[l-1][1]+=t[l][1],t.splice(l,1)):l++,r=0,s=0,b="",c=""}""===t[t.length-1][1]&&t.pop();var y=!1;for(l=1;l<t.length-1;)0===t[l-1][0]&&0===t[l+1][0]&&(t[l][1].substring(t[l][1].length-t[l-1][1].length)===t[l-1][1]?(t[l][1]=t[l-1][1]+t[l][1].substring(0,t[l][1].length-t[l-1][1].length),t[l+1][1]=t[l-1][1]+t[l+1][1],t.splice(l-1,1),y=!0):t[l][1].substring(0,t[l+1][1].length)==t[l+1][1]&&(t[l-1][1]+=t[l+1][1],t[l][1]=t[l][1].substring(t[l+1][1].length)+t[l+1][1],t.splice(l+1,1),y=!0)),l++;y&&u(t,i)}function p(t){return t>=55296&&t<=56319}function m(t){return t>=56320&&t<=57343}function h(t){return m(t.charCodeAt(0))}function g(t){ |
| 6791 | -return p(t.charCodeAt(t.length-1))}function f(t,i,o,a){return g(t)||h(a)?null:function(t){for(var e=[],i=0;i<t.length;i++)t[i][1].length>0&&e.push(t[i]);return e}([[0,t],[e,i],[1,o],[0,a]])}function y(t,e,o,a){return i(t,e,o,a,!0)}y.INSERT=1,y.DELETE=e,y.EQUAL=0,t.exports=y},193:(t,e,i)=>{t=i.nmd(t);var o="__lodash_hash_undefined__",a=9007199254740991,l="[object Arguments]",n="[object Boolean]",s="[object Date]",r="[object Function]",b="[object GeneratorFunction]",c="[object Map]",d="[object Number]",u="[object Object]",p="[object Promise]",m="[object RegExp]",h="[object Set]",g="[object String]",f="[object Symbol]",y="[object WeakMap]",T="[object ArrayBuffer]",H="[object DataView]",M="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",v="[object Int16Array]",_="[object Int32Array]",R="[object Uint8Array]",S="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",P=/\w*$/,j=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,z={} | |
| 6792 | -;z[l]=z["[object Array]"]=z[T]=z[H]=z[n]=z[s]=z[M]=z[x]=z[k]=z[v]=z[_]=z[c]=z[d]=z[u]=z[m]=z[h]=z[g]=z[f]=z[R]=z[S]=z[W]=z[U]=!0,z["[object Error]"]=z[r]=z[y]=!1;var C="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,A="object"==typeof self&&self&&self.Object===Object&&self,L=C||A||Function("return this")(),D=e&&!e.nodeType&&e,N=D&&t&&!t.nodeType&&t,I=N&&N.exports===D;function V(t,e){return t.set(e[0],e[1]),t}function O(t,e){return t.add(e),t}function Y(t,e,i,o){var a=-1,l=t?t.length:0;for(o&&l&&(i=t[++a]);++a<l;)i=e(i,t[a],a,t);return i}function X(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function B(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function E(t,e){return function(i){return t(e(i))}}function F(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i} | |
| 6840 | +return p(t.charCodeAt(t.length-1))}function f(t,i,o,a){return g(t)||h(a)?null:function(t){for(var e=[],i=0;i<t.length;i++)t[i][1].length>0&&e.push(t[i]);return e}([[0,t],[e,i],[1,o],[0,a]])}function y(t,e,o,a){return i(t,e,o,a,!0)}y.INSERT=1,y.DELETE=e,y.EQUAL=0,t.exports=y},193:(t,e,i)=>{t=i.nmd(t);var o="__lodash_hash_undefined__",a=9007199254740991,l="[object Arguments]",n="[object Boolean]",s="[object Date]",r="[object Function]",b="[object GeneratorFunction]",c="[object Map]",d="[object Number]",u="[object Object]",p="[object Promise]",m="[object RegExp]",h="[object Set]",g="[object String]",f="[object Symbol]",y="[object WeakMap]",T="[object ArrayBuffer]",H="[object DataView]",M="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",v="[object Int16Array]",_="[object Int32Array]",R="[object Uint8Array]",S="[object Uint8ClampedArray]",W="[object Uint16Array]",P="[object Uint32Array]",U=/\w*$/,j=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,z={} | |
| 6841 | +;z[l]=z["[object Array]"]=z[T]=z[H]=z[n]=z[s]=z[M]=z[x]=z[k]=z[v]=z[_]=z[c]=z[d]=z[u]=z[m]=z[h]=z[g]=z[f]=z[R]=z[S]=z[W]=z[P]=!0,z["[object Error]"]=z[r]=z[y]=!1;var C="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,A="object"==typeof self&&self&&self.Object===Object&&self,L=C||A||Function("return this")(),D=e&&!e.nodeType&&e,N=D&&t&&!t.nodeType&&t,I=N&&N.exports===D;function V(t,e){return t.set(e[0],e[1]),t}function O(t,e){return t.add(e),t}function Y(t,e,i,o){var a=-1,l=t?t.length:0;for(o&&l&&(i=t[++a]);++a<l;)i=e(i,t[a],a,t);return i}function X(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function B(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function E(t,e){return function(i){return t(e(i))}}function F(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i} | |
| 6793 | 6842 | var q,$=Array.prototype,G=Function.prototype,Z=Object.prototype,K=L["__core-js_shared__"],J=(q=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",Q=G.toString,tt=Z.hasOwnProperty,et=Z.toString,it=RegExp("^"+Q.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=I?L.Buffer:void 0,at=L.Symbol,lt=L.Uint8Array,nt=E(Object.getPrototypeOf,Object),st=Object.create,rt=Z.propertyIsEnumerable,bt=$.splice,ct=Object.getOwnPropertySymbols,dt=ot?ot.isBuffer:void 0,ut=E(Object.keys,Object),pt=Lt(L,"DataView"),mt=Lt(L,"Map"),ht=Lt(L,"Promise"),gt=Lt(L,"Set"),ft=Lt(L,"WeakMap"),yt=Lt(Object,"create"),Tt=Ot(pt),Ht=Ot(mt),Mt=Ot(ht),xt=Ot(gt),kt=Ot(ft),vt=at?at.prototype:void 0,_t=vt?vt.valueOf:void 0;function Rt(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function St(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Wt(t){ |
| 6794 | -var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Ut(t){this.__data__=new St(t)}function Pt(t,e,i){var o=t[e];tt.call(t,e)&&Yt(o,i)&&(void 0!==i||e in t)||(t[e]=i)}function jt(t,e){for(var i=t.length;i--;)if(Yt(t[i][0],e))return i;return-1}function wt(t,e,i,o,a,p,y){var j;if(o&&(j=p?o(t,a,p,y):o(t)),void 0!==j)return j;if(!qt(t))return t;var w=Xt(t);if(w){if(j=function(t){var e=t.length,i=t.constructor(e);return e&&"string"==typeof t[0]&&tt.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(t),!e)return function(t,e){var i=-1,o=t.length;for(e||(e=Array(o));++i<o;)e[i]=t[i];return e}(t,j)}else{var C=Nt(t),A=C==r||C==b;if(Et(t))return function(t,e){if(e)return t.slice();var i=new t.constructor(t.length);return t.copy(i),i}(t,e);if(C==u||C==l||A&&!p){if(X(t))return p?t:{};if(j=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:qt(e=nt(t))?st(e):{};var e}(A?{}:t),!e)return function(t,e){return Ct(t,Dt(t),e)}(t,function(t,e){ | |
| 6795 | -return t&&Ct(e,$t(e),t)}(j,t))}else{if(!z[C])return p?t:{};j=function(t,e,i,o){var a,l=t.constructor;switch(e){case T:return zt(t);case n:case s:return new l(+t);case H:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,o);case M:case x:case k:case v:case _:case R:case S:case W:case U:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}(t,o);case c:return function(t,e,i){return Y(e?i(B(t),!0):B(t),V,new t.constructor)}(t,o,i);case d:case g:return new l(t);case m:return function(t){var e=new t.constructor(t.source,P.exec(t));return e.lastIndex=t.lastIndex,e}(t);case h:return function(t,e,i){return Y(e?i(F(t),!0):F(t),O,new t.constructor)}(t,o,i);case f:return a=t,_t?Object(_t.call(a)):{}}}(t,C,wt,e)}}y||(y=new Ut);var L=y.get(t);if(L)return L;if(y.set(t,j),!w)var D=i?function(t){return function(t,e,i){var o=e(t);return Xt(t)?o:function(t,e){ | |
| 6796 | -for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,$t,Dt)}(t):$t(t);return function(t,e){for(var i=-1,o=t?t.length:0;++i<o&&!1!==e(t[i],i););}(D||t,function(a,l){D&&(a=t[l=a]),Pt(j,l,wt(a,e,i,o,l,t,y))}),j}function zt(t){var e=new t.constructor(t.byteLength);return new lt(e).set(new lt(t)),e}function Ct(t,e,i,o){i||(i={});for(var a=-1,l=e.length;++a<l;){var n=e[a],s=o?o(i[n],t[n],n,i,t):void 0;Pt(i,n,void 0===s?t[n]:s)}return i}function At(t,e){var i,o,a=t.__data__;return("string"==(o=typeof(i=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==i:null===i)?a["string"==typeof e?"string":"hash"]:a.map}function Lt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!qt(t)||(e=t,J&&J in e))&&(Ft(t)||X(t)?it:j).test(Ot(t));var e}(i)?i:void 0}Rt.prototype.clear=function(){this.__data__=yt?yt(null):{}},Rt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Rt.prototype.get=function(t){var e=this.__data__ | |
| 6843 | +var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Pt(t){this.__data__=new St(t)}function Ut(t,e,i){var o=t[e];tt.call(t,e)&&Yt(o,i)&&(void 0!==i||e in t)||(t[e]=i)}function jt(t,e){for(var i=t.length;i--;)if(Yt(t[i][0],e))return i;return-1}function wt(t,e,i,o,a,p,y){var j;if(o&&(j=p?o(t,a,p,y):o(t)),void 0!==j)return j;if(!qt(t))return t;var w=Xt(t);if(w){if(j=function(t){var e=t.length,i=t.constructor(e);return e&&"string"==typeof t[0]&&tt.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(t),!e)return function(t,e){var i=-1,o=t.length;for(e||(e=Array(o));++i<o;)e[i]=t[i];return e}(t,j)}else{var C=Nt(t),A=C==r||C==b;if(Et(t))return function(t,e){if(e)return t.slice();var i=new t.constructor(t.length);return t.copy(i),i}(t,e);if(C==u||C==l||A&&!p){if(X(t))return p?t:{};if(j=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:qt(e=nt(t))?st(e):{};var e}(A?{}:t),!e)return function(t,e){return Ct(t,Dt(t),e)}(t,function(t,e){ | |
| 6844 | +return t&&Ct(e,$t(e),t)}(j,t))}else{if(!z[C])return p?t:{};j=function(t,e,i,o){var a,l=t.constructor;switch(e){case T:return zt(t);case n:case s:return new l(+t);case H:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,o);case M:case x:case k:case v:case _:case R:case S:case W:case P:return function(t,e){var i=e?zt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}(t,o);case c:return function(t,e,i){return Y(e?i(B(t),!0):B(t),V,new t.constructor)}(t,o,i);case d:case g:return new l(t);case m:return function(t){var e=new t.constructor(t.source,U.exec(t));return e.lastIndex=t.lastIndex,e}(t);case h:return function(t,e,i){return Y(e?i(F(t),!0):F(t),O,new t.constructor)}(t,o,i);case f:return a=t,_t?Object(_t.call(a)):{}}}(t,C,wt,e)}}y||(y=new Pt);var L=y.get(t);if(L)return L;if(y.set(t,j),!w)var D=i?function(t){return function(t,e,i){var o=e(t);return Xt(t)?o:function(t,e){ | |
| 6845 | +for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,$t,Dt)}(t):$t(t);return function(t,e){for(var i=-1,o=t?t.length:0;++i<o&&!1!==e(t[i],i););}(D||t,function(a,l){D&&(a=t[l=a]),Ut(j,l,wt(a,e,i,o,l,t,y))}),j}function zt(t){var e=new t.constructor(t.byteLength);return new lt(e).set(new lt(t)),e}function Ct(t,e,i,o){i||(i={});for(var a=-1,l=e.length;++a<l;){var n=e[a],s=o?o(i[n],t[n],n,i,t):void 0;Ut(i,n,void 0===s?t[n]:s)}return i}function At(t,e){var i,o,a=t.__data__;return("string"==(o=typeof(i=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==i:null===i)?a["string"==typeof e?"string":"hash"]:a.map}function Lt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!qt(t)||(e=t,J&&J in e))&&(Ft(t)||X(t)?it:j).test(Ot(t));var e}(i)?i:void 0}Rt.prototype.clear=function(){this.__data__=yt?yt(null):{}},Rt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Rt.prototype.get=function(t){var e=this.__data__ | |
| 6797 | 6846 | ;if(yt){var i=e[t];return i===o?void 0:i}return tt.call(e,t)?e[t]:void 0},Rt.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:tt.call(e,t)},Rt.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?o:e,this},St.prototype.clear=function(){this.__data__=[]},St.prototype.delete=function(t){var e=this.__data__,i=jt(e,t);return!(i<0||(i==e.length-1?e.pop():bt.call(e,i,1),0))},St.prototype.get=function(t){var e=this.__data__,i=jt(e,t);return i<0?void 0:e[i][1]},St.prototype.has=function(t){return jt(this.__data__,t)>-1},St.prototype.set=function(t,e){var i=this.__data__,o=jt(i,t);return o<0?i.push([t,e]):i[o][1]=e,this},Wt.prototype.clear=function(){this.__data__={hash:new Rt,map:new(mt||St),string:new Rt}},Wt.prototype.delete=function(t){return At(this,t).delete(t)},Wt.prototype.get=function(t){return At(this,t).get(t)},Wt.prototype.has=function(t){return At(this,t).has(t)},Wt.prototype.set=function(t,e){return At(this,t).set(t,e),this}, |
| 6798 | -Ut.prototype.clear=function(){this.__data__=new St},Ut.prototype.delete=function(t){return this.__data__.delete(t)},Ut.prototype.get=function(t){return this.__data__.get(t)},Ut.prototype.has=function(t){return this.__data__.has(t)},Ut.prototype.set=function(t,e){var i=this.__data__;if(i instanceof St){var o=i.__data__;if(!mt||o.length<199)return o.push([t,e]),this;i=this.__data__=new Wt(o)}return i.set(t,e),this};var Dt=ct?E(ct,Object):function(){return[]},Nt=function(t){return et.call(t)};function It(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||w.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Z)}function Ot(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Yt(t,e){return t===e||t!=t&&e!=e}(pt&&Nt(new pt(new ArrayBuffer(1)))!=H||mt&&Nt(new mt)!=c||ht&&Nt(ht.resolve())!=p||gt&&Nt(new gt)!=h||ft&&Nt(new ft)!=y)&&(Nt=function(t){ | |
| 6847 | +Pt.prototype.clear=function(){this.__data__=new St},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var i=this.__data__;if(i instanceof St){var o=i.__data__;if(!mt||o.length<199)return o.push([t,e]),this;i=this.__data__=new Wt(o)}return i.set(t,e),this};var Dt=ct?E(ct,Object):function(){return[]},Nt=function(t){return et.call(t)};function It(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||w.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Z)}function Ot(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Yt(t,e){return t===e||t!=t&&e!=e}(pt&&Nt(new pt(new ArrayBuffer(1)))!=H||mt&&Nt(new mt)!=c||ht&&Nt(ht.resolve())!=p||gt&&Nt(new gt)!=h||ft&&Nt(new ft)!=y)&&(Nt=function(t){ | |
| 6799 | 6848 | var e=et.call(t),i=e==u?t.constructor:void 0,o=i?Ot(i):void 0;if(o)switch(o){case Tt:return H;case Ht:return c;case Mt:return p;case xt:return h;case kt:return y}return e});var Xt=Array.isArray;function Bt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}(t.length)&&!Ft(t)}var Et=dt||function(){return!1};function Ft(t){var e=qt(t)?et.call(t):"";return e==r||e==b}function qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function $t(t){return Bt(t)?function(t){var e=Xt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Bt(t)}(t)&&tt.call(t,"callee")&&(!rt.call(t,"callee")||et.call(t)==l)}(t)?function(t,e){for(var i=-1,o=Array(t);++i<t;)o[i]=e(i);return o}(t.length,String):[],i=e.length,o=!!i;for(var a in t)!tt.call(t,a)||o&&("length"==a||It(a,i))||e.push(a);return e}(t):function(t){if(!Vt(t))return ut(t);var e=[];for(var i in Object(t))tt.call(t,i)&&"constructor"!=i&&e.push(i);return e}(t)}t.exports=function(t){ |
| 6800 | 6849 | return wt(t,!0,!0)}},142:(t,e,i)=>{t=i.nmd(t);var o="__lodash_hash_undefined__",a=9007199254740991,l="[object Arguments]",n="[object Array]",s="[object Boolean]",r="[object Date]",b="[object Error]",c="[object Function]",d="[object Map]",u="[object Number]",p="[object Object]",m="[object Promise]",h="[object RegExp]",g="[object Set]",f="[object String]",y="[object WeakMap]",T="[object ArrayBuffer]",H="[object DataView]",M=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[l]=k[n]=k[T]=k[s]=k[H]=k[r]=k[b]=k[c]=k[d]=k[u]=k[p]=k[h]=k[g]=k[f]=k[y]=!1 |
| 6801 | -;var v="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,_="object"==typeof self&&self&&self.Object===Object&&self,R=v||_||Function("return this")(),S=e&&!e.nodeType&&e,W=S&&t&&!t.nodeType&&t,U=W&&W.exports===S,P=U&&v.process,j=function(){try{return P&&P.binding&&P.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function z(t,e){for(var i=-1,o=null==t?0:t.length;++i<o;)if(e(t[i],i,t))return!0;return!1}function C(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function A(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i} | |
| 6802 | -var L,D,N,I=Array.prototype,V=Function.prototype,O=Object.prototype,Y=R["__core-js_shared__"],X=V.toString,B=O.hasOwnProperty,E=(L=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",F=O.toString,q=RegExp("^"+X.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=U?R.Buffer:void 0,G=R.Symbol,Z=R.Uint8Array,K=O.propertyIsEnumerable,J=I.splice,Q=G?G.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=$?$.isBuffer:void 0,it=(D=Object.keys,N=Object,function(t){return D(N(t))}),ot=Wt(R,"DataView"),at=Wt(R,"Map"),lt=Wt(R,"Promise"),nt=Wt(R,"Set"),st=Wt(R,"WeakMap"),rt=Wt(Object,"create"),bt=wt(ot),ct=wt(at),dt=wt(lt),ut=wt(nt),pt=wt(st),mt=G?G.prototype:void 0,ht=mt?mt.valueOf:void 0;function gt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function ft(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function yt(t){ | |
| 6803 | -var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Tt(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new yt;++e<i;)this.add(t[e])}function Ht(t){var e=this.__data__=new ft(t);this.size=e.size}function Mt(t,e){for(var i=t.length;i--;)if(zt(t[i][0],e))return i;return-1}function xt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Q&&Q in Object(t)?function(t){var e=B.call(t,Q),i=t[Q];try{t[Q]=void 0;var o=!0}catch(t){}var a=F.call(t);return o&&(e?t[Q]=i:delete t[Q]),a}(t):function(t){return F.call(t)}(t)}function kt(t){return Vt(t)&&xt(t)==l}function vt(t,e,i,o,a){return t===e||(null==t||null==e||!Vt(t)&&!Vt(e)?t!=t&&e!=e:function(t,e,i,o,a,c){var m=At(t),y=At(e),M=m?n:Pt(t),x=y?n:Pt(e),k=(M=M==l?p:M)==p,v=(x=x==l?p:x)==p,_=M==x;if(_&&Lt(t)){if(!Lt(e))return!1;m=!0,k=!1}if(_&&!k)return c||(c=new Ht),m||Ot(t)?_t(t,e,i,o,a,c):function(t,e,i,o,a,l,n){switch(i){case H: | |
| 6804 | -if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!l(new Z(t),new Z(e)));case s:case r:case u:return zt(+t,+e);case b:return t.name==e.name&&t.message==e.message;case h:case f:return t==e+"";case d:var c=C;case g:var p=1&o;if(c||(c=A),t.size!=e.size&&!p)return!1;var m=n.get(t);if(m)return m==e;o|=2,n.set(t,e);var y=_t(c(t),c(e),o,a,l,n);return n.delete(t),y;case"[object Symbol]":if(ht)return ht.call(t)==ht.call(e)}return!1}(t,e,M,i,o,a,c);if(!(1&i)){var R=k&&B.call(t,"__wrapped__"),S=v&&B.call(e,"__wrapped__");if(R||S){var W=R?t.value():t,U=S?e.value():e;return c||(c=new Ht),a(W,U,i,o,c)}}return!!_&&(c||(c=new Ht),function(t,e,i,o,a,l){var n=1&i,s=Rt(t),r=s.length;if(r!=Rt(e).length&&!n)return!1;for(var b=r;b--;){var c=s[b];if(!(n?c in e:B.call(e,c)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var u=!0;l.set(t,e),l.set(e,t);for(var p=n;++b<r;){var m=t[c=s[b]],h=e[c] | |
| 6805 | -;if(o)var g=n?o(h,m,c,e,t,l):o(m,h,c,t,e,l);if(!(void 0===g?m===h||a(m,h,i,o,l):g)){u=!1;break}p||(p="constructor"==c)}if(u&&!p){var f=t.constructor,y=e.constructor;f==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof f&&f instanceof f&&"function"==typeof y&&y instanceof y||(u=!1)}return l.delete(t),l.delete(e),u}(t,e,i,o,a,c))}(t,e,i,o,vt,a))}function _t(t,e,i,o,a,l){var n=1&i,s=t.length,r=e.length;if(s!=r&&!(n&&r>s))return!1;var b=l.get(t);if(b&&l.get(e))return b==e;var c=-1,d=!0,u=2&i?new Tt:void 0;for(l.set(t,e),l.set(e,t);++c<s;){var p=t[c],m=e[c];if(o)var h=n?o(m,p,c,e,t,l):o(p,m,c,t,e,l);if(void 0!==h){if(h)continue;d=!1;break}if(u){if(!z(e,function(t,e){if(n=e,!u.has(n)&&(p===t||a(p,t,i,o,l)))return u.push(e);var n})){d=!1;break}}else if(p!==m&&!a(p,m,i,o,l)){d=!1;break}}return l.delete(t),l.delete(e),d}function Rt(t){return function(t,e,i){var o=e(t);return At(t)?o:function(t,e){for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,Yt,Ut)} | |
| 6850 | +;var v="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,_="object"==typeof self&&self&&self.Object===Object&&self,R=v||_||Function("return this")(),S=e&&!e.nodeType&&e,W=S&&t&&!t.nodeType&&t,P=W&&W.exports===S,U=P&&v.process,j=function(){try{return U&&U.binding&&U.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function z(t,e){for(var i=-1,o=null==t?0:t.length;++i<o;)if(e(t[i],i,t))return!0;return!1}function C(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i}function A(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i} | |
| 6851 | +var L,D,N,I=Array.prototype,V=Function.prototype,O=Object.prototype,Y=R["__core-js_shared__"],X=V.toString,B=O.hasOwnProperty,E=(L=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",F=O.toString,q=RegExp("^"+X.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=P?R.Buffer:void 0,G=R.Symbol,Z=R.Uint8Array,K=O.propertyIsEnumerable,J=I.splice,Q=G?G.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=$?$.isBuffer:void 0,it=(D=Object.keys,N=Object,function(t){return D(N(t))}),ot=Wt(R,"DataView"),at=Wt(R,"Map"),lt=Wt(R,"Promise"),nt=Wt(R,"Set"),st=Wt(R,"WeakMap"),rt=Wt(Object,"create"),bt=wt(ot),ct=wt(at),dt=wt(lt),ut=wt(nt),pt=wt(st),mt=G?G.prototype:void 0,ht=mt?mt.valueOf:void 0;function gt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function ft(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function yt(t){ | |
| 6852 | +var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}function Tt(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new yt;++e<i;)this.add(t[e])}function Ht(t){var e=this.__data__=new ft(t);this.size=e.size}function Mt(t,e){for(var i=t.length;i--;)if(zt(t[i][0],e))return i;return-1}function xt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Q&&Q in Object(t)?function(t){var e=B.call(t,Q),i=t[Q];try{t[Q]=void 0;var o=!0}catch(t){}var a=F.call(t);return o&&(e?t[Q]=i:delete t[Q]),a}(t):function(t){return F.call(t)}(t)}function kt(t){return Vt(t)&&xt(t)==l}function vt(t,e,i,o,a){return t===e||(null==t||null==e||!Vt(t)&&!Vt(e)?t!=t&&e!=e:function(t,e,i,o,a,c){var m=At(t),y=At(e),M=m?n:Ut(t),x=y?n:Ut(e),k=(M=M==l?p:M)==p,v=(x=x==l?p:x)==p,_=M==x;if(_&&Lt(t)){if(!Lt(e))return!1;m=!0,k=!1}if(_&&!k)return c||(c=new Ht),m||Ot(t)?_t(t,e,i,o,a,c):function(t,e,i,o,a,l,n){switch(i){case H: | |
| 6853 | +if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!l(new Z(t),new Z(e)));case s:case r:case u:return zt(+t,+e);case b:return t.name==e.name&&t.message==e.message;case h:case f:return t==e+"";case d:var c=C;case g:var p=1&o;if(c||(c=A),t.size!=e.size&&!p)return!1;var m=n.get(t);if(m)return m==e;o|=2,n.set(t,e);var y=_t(c(t),c(e),o,a,l,n);return n.delete(t),y;case"[object Symbol]":if(ht)return ht.call(t)==ht.call(e)}return!1}(t,e,M,i,o,a,c);if(!(1&i)){var R=k&&B.call(t,"__wrapped__"),S=v&&B.call(e,"__wrapped__");if(R||S){var W=R?t.value():t,P=S?e.value():e;return c||(c=new Ht),a(W,P,i,o,c)}}return!!_&&(c||(c=new Ht),function(t,e,i,o,a,l){var n=1&i,s=Rt(t),r=s.length;if(r!=Rt(e).length&&!n)return!1;for(var b=r;b--;){var c=s[b];if(!(n?c in e:B.call(e,c)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var u=!0;l.set(t,e),l.set(e,t);for(var p=n;++b<r;){var m=t[c=s[b]],h=e[c] | |
| 6854 | +;if(o)var g=n?o(h,m,c,e,t,l):o(m,h,c,t,e,l);if(!(void 0===g?m===h||a(m,h,i,o,l):g)){u=!1;break}p||(p="constructor"==c)}if(u&&!p){var f=t.constructor,y=e.constructor;f==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof f&&f instanceof f&&"function"==typeof y&&y instanceof y||(u=!1)}return l.delete(t),l.delete(e),u}(t,e,i,o,a,c))}(t,e,i,o,vt,a))}function _t(t,e,i,o,a,l){var n=1&i,s=t.length,r=e.length;if(s!=r&&!(n&&r>s))return!1;var b=l.get(t);if(b&&l.get(e))return b==e;var c=-1,d=!0,u=2&i?new Tt:void 0;for(l.set(t,e),l.set(e,t);++c<s;){var p=t[c],m=e[c];if(o)var h=n?o(m,p,c,e,t,l):o(p,m,c,t,e,l);if(void 0!==h){if(h)continue;d=!1;break}if(u){if(!z(e,function(t,e){if(n=e,!u.has(n)&&(p===t||a(p,t,i,o,l)))return u.push(e);var n})){d=!1;break}}else if(p!==m&&!a(p,m,i,o,l)){d=!1;break}}return l.delete(t),l.delete(e),d}function Rt(t){return function(t,e,i){var o=e(t);return At(t)?o:function(t,e){for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t}(o,i(t))}(t,Yt,Pt)} | |
| 6806 | 6855 | function St(t,e){var i,o,a=t.__data__;return("string"==(o=typeof(i=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==i:null===i)?a["string"==typeof e?"string":"hash"]:a.map}function Wt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!It(t)||function(t){return!!E&&E in t}(t))&&(Dt(t)?q:M).test(wt(t))}(i)?i:void 0}gt.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},gt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},gt.prototype.get=function(t){var e=this.__data__;if(rt){var i=e[t];return i===o?void 0:i}return B.call(e,t)?e[t]:void 0},gt.prototype.has=function(t){var e=this.__data__;return rt?void 0!==e[t]:B.call(e,t)},gt.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=rt&&void 0===e?o:e,this},ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(t){var e=this.__data__,i=Mt(e,t) |
| 6807 | 6856 | ;return!(i<0||(i==e.length-1?e.pop():J.call(e,i,1),--this.size,0))},ft.prototype.get=function(t){var e=this.__data__,i=Mt(e,t);return i<0?void 0:e[i][1]},ft.prototype.has=function(t){return Mt(this.__data__,t)>-1},ft.prototype.set=function(t,e){var i=this.__data__,o=Mt(i,t);return o<0?(++this.size,i.push([t,e])):i[o][1]=e,this},yt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(at||ft),string:new gt}},yt.prototype.delete=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e},yt.prototype.get=function(t){return St(this,t).get(t)},yt.prototype.has=function(t){return St(this,t).has(t)},yt.prototype.set=function(t,e){var i=St(this,t),o=i.size;return i.set(t,e),this.size+=i.size==o?0:1,this},Tt.prototype.add=Tt.prototype.push=function(t){return this.__data__.set(t,o),this},Tt.prototype.has=function(t){return this.__data__.has(t)},Ht.prototype.clear=function(){this.__data__=new ft,this.size=0},Ht.prototype.delete=function(t){ |
| 6808 | -var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Ht.prototype.get=function(t){return this.__data__.get(t)},Ht.prototype.has=function(t){return this.__data__.has(t)},Ht.prototype.set=function(t,e){var i=this.__data__;if(i instanceof ft){var o=i.__data__;if(!at||o.length<199)return o.push([t,e]),this.size=++i.size,this;i=this.__data__=new yt(o)}return i.set(t,e),this.size=i.size,this};var Ut=tt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var i=-1,o=null==t?0:t.length,a=0,l=[];++i<o;){var n=t[i];e(n)&&(l[a++]=n)}return l}(tt(t),function(e){return K.call(t,e)}))}:function(){return[]},Pt=xt;function jt(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||x.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){if(null!=t){try{return X.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(ot&&Pt(new ot(new ArrayBuffer(1)))!=H||at&&Pt(new at)!=d||lt&&Pt(lt.resolve())!=m||nt&&Pt(new nt)!=g||st&&Pt(new st)!=y)&&(Pt=function(t){ | |
| 6857 | +var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Ht.prototype.get=function(t){return this.__data__.get(t)},Ht.prototype.has=function(t){return this.__data__.has(t)},Ht.prototype.set=function(t,e){var i=this.__data__;if(i instanceof ft){var o=i.__data__;if(!at||o.length<199)return o.push([t,e]),this.size=++i.size,this;i=this.__data__=new yt(o)}return i.set(t,e),this.size=i.size,this};var Pt=tt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var i=-1,o=null==t?0:t.length,a=0,l=[];++i<o;){var n=t[i];e(n)&&(l[a++]=n)}return l}(tt(t),function(e){return K.call(t,e)}))}:function(){return[]},Ut=xt;function jt(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||x.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){if(null!=t){try{return X.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(ot&&Ut(new ot(new ArrayBuffer(1)))!=H||at&&Ut(new at)!=d||lt&&Ut(lt.resolve())!=m||nt&&Ut(new nt)!=g||st&&Ut(new st)!=y)&&(Ut=function(t){ | |
| 6809 | 6858 | var e=xt(t),i=e==p?t.constructor:void 0,o=i?wt(i):"";if(o)switch(o){case bt:return H;case ct:return d;case dt:return m;case ut:return g;case pt:return y}return e});var Ct=kt(function(){return arguments}())?kt:function(t){return Vt(t)&&B.call(t,"callee")&&!K.call(t,"callee")},At=Array.isArray,Lt=et||function(){return!1};function Dt(t){if(!It(t))return!1;var e=xt(t);return e==c||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Nt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function It(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Vt(t){return null!=t&&"object"==typeof t}var Ot=w?function(t){return function(e){return t(e)}}(w):function(t){return Vt(t)&&Nt(t.length)&&!!k[xt(t)]};function Yt(t){return null!=(e=t)&&Nt(e.length)&&!Dt(e)?function(t){var e=At(t),i=!e&&Ct(t),o=!e&&!i&&Lt(t),a=!e&&!i&&!o&&Ot(t),l=e||i||o||a,n=l?function(t,e){for(var i=-1,o=Array(t);++i<t;)o[i]=e(i);return o}(t.length,String):[],s=n.length |
| 6810 | 6859 | ;for(var r in t)!B.call(t,r)||l&&("length"==r||o&&("offset"==r||"parent"==r)||a&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||jt(r,s))||n.push(r);return n}(t):function(t){if(i=(e=t)&&e.constructor,e!==("function"==typeof i&&i.prototype||O))return it(t);var e,i,o=[];for(var a in Object(t))B.call(t,a)&&"constructor"!=a&&o.push(a);return o}(t);var e}t.exports=function(t,e){return vt(t,e)}},106:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const o=i(193),a=i(142);var l;!function(t){t.compose=function(t={},e={},i=!1){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});let a=o(e);i||(a=Object.keys(a).reduce((t,e)=>(null!=a[e]&&(t[e]=a[e]),t),{}));for(const i in t)void 0!==t[i]&&void 0===e[i]&&(a[i]=t[i]);return Object.keys(a).length>0?a:void 0},t.diff=function(t={},e={}){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});const i=Object.keys(t).concat(Object.keys(e)).reduce((i,o)=>(a(t[o],e[o])||(i[o]=void 0===e[o]?null:e[o]),i),{}) |
| 6811 | 6860 | ;return Object.keys(i).length>0?i:void 0},t.invert=function(t={},e={}){t=t||{};const i=Object.keys(e).reduce((i,o)=>(e[o]!==t[o]&&void 0!==t[o]&&(i[o]=e[o]),i),{});return Object.keys(t).reduce((i,o)=>(t[o]!==e[o]&&void 0===e[o]&&(i[o]=null),i),i)},t.transform=function(t,e,i=!1){if("object"!=typeof t)return e;if("object"!=typeof e)return;if(!i)return e;const o=Object.keys(e).reduce((i,o)=>(void 0===t[o]&&(i[o]=e[o]),i),{});return Object.keys(o).length>0?o:void 0}}(l||(l={})),e.default=l},660:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const o=i(606),a=i(193),l=i(142),n=i(106);e.AttributeMap=n.default;const s=i(759);e.Op=s.default;const r=i(317);e.OpIterator=r.default;const b=String.fromCharCode(0),c=(t,e)=>{if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);const i=Object.keys(t)[0] |
| 6812 | 6861 | ;if(!i||i!==Object.keys(e)[0])throw new Error(`embed types not matched: ${i} != ${Object.keys(e)[0]}`);return[i,t[i],e[i]]};class d{constructor(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const e=this.handlers[t];if(!e)throw new Error(`no handlers for embed type "${t}"`);return e}insert(t,e){const i={};return"string"==typeof t&&0===t.length?this:(i.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,e){if("number"==typeof t&&t<=0)return this;const i={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i)}push(t){let e=this.ops.length,i=this.ops[e-1];if(t=a(t),"object"==typeof i){if("number"==typeof t.delete&&"number"==typeof i.delete)return this.ops[e-1]={delete:i.delete+t.delete},this |
| @@ -6825,19 +6874,19 @@ | ||
| 6825 | 6874 | for(var i=" ".repeat(2),o=0,a="\n",l=null,n=null,s=null,r="",b=0;b<=t.length;b++){l=n,n=t.substr(b,1),s=t.substr(b+1,1);var c="<br>"===t.substr(b,4),d="<"===n&&"/"!==s&&!c,u="<"===n&&"/"===s&&!c,p=">"===l&&"<"!==n&&o>0,m=!c&&!d&&!u&&p&&""===t.substr(b,t.substr(b).indexOf("<")).trim();c&&(r+=a,o--,b+=4),d?(r+=a+i.repeat(o),o++):u?(--o<0&&(o=0),r+=a+i.repeat(o)):(" "===n&&" "===s||n===a&&""===t.substr(b,t.substr(b).indexOf("<")).trim())&&(n=""),p&&!m&&(r+=a+i.repeat(o)),r+=n}return e.log("formatHTML",{before:t,after:r}),r}},795:(t,e)=>{"use strict";function i(t){return t.replace(/\s+/g," ").trim()}function o(t){return t.replace(/<br([\s]*[\/]?>)/g,"<p> </p>")}function a(t){return t.replace(/<p><\/p>/g,"<p> </p>")}function l(t){return t.replace(/(<(?!\/)[\w=\."'\s]*>) /g,"$1")}function n(t){return t.replace(/ (<\/[\w]+>)/g,"$1")}function s(t,e){return t.reduce(function(t,e){return e(t)},e)}Object.defineProperty(e,"__esModule",{value:!0}),e.OutputHTMLParser=function(t){ |
| 6826 | 6875 | return s([i,l,n,o,a],t)},e.ConvertMultipleSpacesToSingle=i,e.PreserveNewlinesBr=o,e.PreserveNewlinesPTags=a,e.FixTagSpaceOpenTag=l,e.FixTagSpaceCloseTag=n,e.Compose=s},614:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuillHtmlLogger=void 0;var i=function(){function t(){this.debug=!1}return t.prototype.setDebug=function(t){this.debug=t},t.prototype.prefixString=function(){return"</> quill-html-edit-button: "},Object.defineProperty(t.prototype,"log",{get:function(){return this.debug?console.log.bind(console,this.prefixString()):function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}},enumerable:!1,configurable:!0}),t}();e.QuillHtmlLogger=i},190:function(t,e,i){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},o.apply(this,arguments)},a=this&&this.__importDefault||function(t){ |
| 6827 | 6876 | return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlEditButton=void 0;var l=i(614);i(968);var n=a(i(429)),s=i(795),r=i(676);function b(t){return document.createElement(t)}function c(t,e,i){return t.setAttribute(e,i)}var d=new l.QuillHtmlLogger,u=function(t,e){var i=e||{},a=!(!i||!i.debug);d.setDebug(a),d.log("logging enabled");var l=t.getModule("toolbar");if(!l)throw new Error('quill.htmlEditButton requires the "toolbar" module to be included too');var u=l.container,p=b("span");c(p,"class","ql-formats");var m=b("button");m.innerHTML=i.buttonHTML||"<>",m.title=i.buttonTitle||"Show HTML source",m.type="button";var h=function(e){t.clipboard.dangerouslyPasteHTML(e)};m.onclick=function(e){e.preventDefault(),function(t,e,i){ |
| 6828 | 6877 | var a=t.container.querySelector(".ql-editor").innerHTML,l=b("div"),u=b("div"),p=e.msg||'Edit HTML here, when you click "OK" the quill editor\'s contents will be replaced',m=e.cancelText||"Cancel",h=e.okText||"Ok",g=!1!==e.closeOnClickOverlay;c(u,"class","ql-html-overlayContainer"),c(l,"class","ql-html-popupContainer");var f=b("span");c(f,"class","ql-html-popupTitle"),f.innerText=p;var y=b("div");y.appendChild(f),c(y,"class","ql-html-textContainer");var T=b("pre");c(T,"data-language","xml"),T.innerText=(0,r.FormatHTMLStringIndentation)(a,d);var H=b("div");c(H,"class","ql-html-textArea");var M=b("button");M.innerHTML=m,c(M,"class","ql-html-buttonCancel");var x=b("button");x.innerHTML=h,c(x,"class","ql-html-buttonOk");var k=b("div");c(k,"class","ql-html-buttonGroup");var v=document.querySelector(e.prependSelector);k.appendChild(M),k.appendChild(x),H.appendChild(T),y.appendChild(H),y.appendChild(k),l.appendChild(y),u.appendChild(l),v?v.prepend(u):document.body.appendChild(u) |
| 6829 | -;var _=e&&e.editorModules,R=_&&Object.keys(_).length?_:{},S=new n.default(H,{modules:o({syntax:e.syntax},R)});M.onclick=function(){v?v.removeChild(u):document.body.removeChild(u)},g&&(u.onclick=M.onclick),l.onclick=function(t){t.preventDefault(),t.stopPropagation()},x.onclick=function(){var t=S.container.querySelector(".ql-editor").innerText,e=(0,s.OutputHTMLParser)(t);d.log("OutputHTMLParser",{htmlInputFromPopup:t,htmlOutputFormatted:e}),i(e),v?v.removeChild(u):document.body.removeChild(u)}}(t,i,h)},p.appendChild(m),null==u||u.appendChild(p)};e.htmlEditButton=u,window.htmlEditButton=u,e.default=u},429:(i,o,a)=>{"use strict";a.r(o),a.d(o,{Module:()=>yo,Parchment:()=>l,Range:()=>no,default:()=>Cl});var l={};a.r(l),a.d(l,{Attributor:()=>ae,AttributorStore:()=>ue,BlockBlot:()=>ve,ClassAttributor:()=>be,ContainerBlot:()=>Re,EmbedBlot:()=>Se,InlineBlot:()=>xe,LeafBlot:()=>ge,ParentBlot:()=>He,Registry:()=>se,Scope:()=>oe,ScrollBlot:()=>Pe,StyleAttributor:()=>de,TextBlot:()=>we}) | |
| 6878 | +;var _=e&&e.editorModules,R=_&&Object.keys(_).length?_:{},S=new n.default(H,{modules:o({syntax:e.syntax},R)});M.onclick=function(){v?v.removeChild(u):document.body.removeChild(u)},g&&(u.onclick=M.onclick),l.onclick=function(t){t.preventDefault(),t.stopPropagation()},x.onclick=function(){var t=S.container.querySelector(".ql-editor").innerText,e=(0,s.OutputHTMLParser)(t);d.log("OutputHTMLParser",{htmlInputFromPopup:t,htmlOutputFormatted:e}),i(e),v?v.removeChild(u):document.body.removeChild(u)}}(t,i,h)},p.appendChild(m),null==u||u.appendChild(p)};e.htmlEditButton=u,window.htmlEditButton=u,e.default=u},429:(i,o,a)=>{"use strict";a.r(o),a.d(o,{Module:()=>yo,Parchment:()=>l,Range:()=>no,default:()=>Cl});var l={};a.r(l),a.d(l,{Attributor:()=>ae,AttributorStore:()=>ue,BlockBlot:()=>ve,ClassAttributor:()=>be,ContainerBlot:()=>Re,EmbedBlot:()=>Se,InlineBlot:()=>xe,LeafBlot:()=>ge,ParentBlot:()=>He,Registry:()=>se,Scope:()=>oe,ScrollBlot:()=>Ue,StyleAttributor:()=>de,TextBlot:()=>we}) | |
| 6830 | 6879 | ;const n=function(t,e){return t===e||t!=t&&e!=e},s=function(t,e){for(var i=t.length;i--;)if(n(t[i][0],e))return i;return-1};var r=Array.prototype.splice;function b(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}b.prototype.clear=function(){this.__data__=[],this.size=0},b.prototype.delete=function(t){var e=this.__data__,i=s(e,t);return!(i<0||(i==e.length-1?e.pop():r.call(e,i,1),--this.size,0))},b.prototype.get=function(t){var e=this.__data__,i=s(e,t);return i<0?void 0:e[i][1]},b.prototype.has=function(t){return s(this.__data__,t)>-1},b.prototype.set=function(t,e){var i=this.__data__,o=s(i,t);return o<0?(++this.size,i.push([t,e])):i[o][1]=e,this};const c=b,d="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;var u="object"==typeof self&&self&&self.Object===Object&&self;const p=d||u||Function("return this")(),m=p.Symbol |
| 6831 | 6880 | ;var h=Object.prototype,g=h.hasOwnProperty,f=h.toString,y=m?m.toStringTag:void 0,T=Object.prototype.toString,H=m?m.toStringTag:void 0;const M=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":H&&H in Object(t)?function(t){var e=g.call(t,y),i=t[y];try{t[y]=void 0;var o=!0}catch(t){}var a=f.call(t);return o&&(e?t[y]=i:delete t[y]),a}(t):function(t){return T.call(t)}(t)},x=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},k=function(t){if(!x(t))return!1;var e=M(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},v=p["__core-js_shared__"];var _,R=(_=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",S=Function.prototype.toString;const W=function(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""} |
| 6832 | -;var U=/^\[object .+?Constructor\]$/,P=Function.prototype,j=Object.prototype,w=P.toString,z=j.hasOwnProperty,C=RegExp("^"+w.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const A=function(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!x(t)||function(t){return!!R&&R in t}(t))&&(k(t)?C:U).test(W(t))}(i)?i:void 0},L=A(p,"Map"),D=A(Object,"create");var N=Object.prototype.hasOwnProperty,I=Object.prototype.hasOwnProperty;function V(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}V.prototype.clear=function(){this.__data__=D?D(null):{},this.size=0},V.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},V.prototype.get=function(t){var e=this.__data__;if(D){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return N.call(e,t)?e[t]:void 0},V.prototype.has=function(t){var e=this.__data__ | |
| 6881 | +;var P=/^\[object .+?Constructor\]$/,U=Function.prototype,j=Object.prototype,w=U.toString,z=j.hasOwnProperty,C=RegExp("^"+w.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const A=function(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!x(t)||function(t){return!!R&&R in t}(t))&&(k(t)?C:P).test(W(t))}(i)?i:void 0},L=A(p,"Map"),D=A(Object,"create");var N=Object.prototype.hasOwnProperty,I=Object.prototype.hasOwnProperty;function V(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}V.prototype.clear=function(){this.__data__=D?D(null):{},this.size=0},V.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},V.prototype.get=function(t){var e=this.__data__;if(D){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return N.call(e,t)?e[t]:void 0},V.prototype.has=function(t){var e=this.__data__ | |
| 6833 | 6882 | ;return D?void 0!==e[t]:I.call(e,t)},V.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=D&&void 0===e?"__lodash_hash_undefined__":e,this};const O=V,Y=function(t,e){var i=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?i["string"==typeof e?"string":"hash"]:i.map};function X(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}X.prototype.clear=function(){this.size=0,this.__data__={hash:new O,map:new(L||c),string:new O}},X.prototype.delete=function(t){var e=Y(this,t).delete(t);return this.size-=e?1:0,e},X.prototype.get=function(t){return Y(this,t).get(t)},X.prototype.has=function(t){return Y(this,t).has(t)},X.prototype.set=function(t,e){var i=Y(this,t),o=i.size;return i.set(t,e),this.size+=i.size==o?0:1,this};const B=X;function E(t){var e=this.__data__=new c(t);this.size=e.size}E.prototype.clear=function(){this.__data__=new c, |
| 6834 | 6883 | this.size=0},E.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},E.prototype.get=function(t){return this.__data__.get(t)},E.prototype.has=function(t){return this.__data__.has(t)},E.prototype.set=function(t,e){var i=this.__data__;if(i instanceof c){var o=i.__data__;if(!L||o.length<199)return o.push([t,e]),this.size=++i.size,this;i=this.__data__=new B(o)}return i.set(t,e),this.size=i.size,this};const F=E,q=function(){try{var t=A(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),$=function(t,e,i){"__proto__"==e&&q?q(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i},G=function(t,e,i){(void 0!==i&&!n(t[e],i)||void 0===i&&!(e in t))&&$(t,e,i)};var Z=e&&!e.nodeType&&e,K=Z&&t&&!t.nodeType&&t,J=K&&K.exports===Z?p.Buffer:void 0,Q=J?J.allocUnsafe:void 0;const tt=function(t,e){if(e)return t.slice();var i=t.length,o=Q?Q(i):new t.constructor(i);return t.copy(o),o},et=p.Uint8Array,it=function(t){var e=new t.constructor(t.byteLength) |
| 6835 | 6884 | ;return new et(e).set(new et(t)),e},ot=function(t,e){var i=e?it(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)},at=function(t,e){var i=-1,o=t.length;for(e||(e=Array(o));++i<o;)e[i]=t[i];return e};var lt=Object.create;const nt=function(){function t(){}return function(e){if(!x(e))return{};if(lt)return lt(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}(),st=function(t,e){return function(i){return t(e(i))}},rt=st(Object.getPrototypeOf,Object);var bt=Object.prototype;const ct=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||bt)},dt=function(t){return"function"!=typeof t.constructor||ct(t)?{}:nt(rt(t))},ut=function(t){return null!=t&&"object"==typeof t},pt=function(t){return ut(t)&&"[object Arguments]"==M(t)};var mt=Object.prototype,ht=mt.hasOwnProperty,gt=mt.propertyIsEnumerable;const ft=pt(function(){return arguments}())?pt:function(t){return ut(t)&&ht.call(t,"callee")&&!gt.call(t,"callee")},yt=Array.isArray,Tt=function(t){ |
| 6836 | -return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Ht=function(t){return null!=t&&Tt(t.length)&&!k(t)};var Mt=e&&!e.nodeType&&e,xt=Mt&&t&&!t.nodeType&&t,kt=xt&&xt.exports===Mt?p.Buffer:void 0;const vt=(kt?kt.isBuffer:void 0)||function(){return!1};var _t=Function.prototype,Rt=Object.prototype,St=_t.toString,Wt=Rt.hasOwnProperty,Ut=St.call(Object),Pt={};Pt["[object Float32Array]"]=Pt["[object Float64Array]"]=Pt["[object Int8Array]"]=Pt["[object Int16Array]"]=Pt["[object Int32Array]"]=Pt["[object Uint8Array]"]=Pt["[object Uint8ClampedArray]"]=Pt["[object Uint16Array]"]=Pt["[object Uint32Array]"]=!0,Pt["[object Arguments]"]=Pt["[object Array]"]=Pt["[object ArrayBuffer]"]=Pt["[object Boolean]"]=Pt["[object DataView]"]=Pt["[object Date]"]=Pt["[object Error]"]=Pt["[object Function]"]=Pt["[object Map]"]=Pt["[object Number]"]=Pt["[object Object]"]=Pt["[object RegExp]"]=Pt["[object Set]"]=Pt["[object String]"]=Pt["[object WeakMap]"]=!1;const jt=function(t){return function(e){ | |
| 6837 | -return t(e)}};var wt=e&&!e.nodeType&&e,zt=wt&&t&&!t.nodeType&&t,Ct=zt&&zt.exports===wt&&d.process;const At=function(){try{return zt&&zt.require&&zt.require("util").types||Ct&&Ct.binding&&Ct.binding("util")}catch(t){}}();var Lt=At&&At.isTypedArray;const Dt=Lt?jt(Lt):function(t){return ut(t)&&Tt(t.length)&&!!Pt[M(t)]},Nt=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var It=Object.prototype.hasOwnProperty;const Vt=function(t,e,i){var o=t[e];It.call(t,e)&&n(o,i)&&(void 0!==i||e in t)||$(t,e,i)},Ot=function(t,e,i,o){var a=!i;i||(i={});for(var l=-1,n=e.length;++l<n;){var s=e[l],r=o?o(i[s],t[s],s,i,t):void 0;void 0===r&&(r=t[s]),a?$(i,s,r):Vt(i,s,r)}return i};var Yt=/^(?:0|[1-9]\d*)$/;const Xt=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&Yt.test(t))&&t>-1&&t%1==0&&t<e};var Bt=Object.prototype.hasOwnProperty;const Et=function(t,e){ | |
| 6885 | +return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Ht=function(t){return null!=t&&Tt(t.length)&&!k(t)};var Mt=e&&!e.nodeType&&e,xt=Mt&&t&&!t.nodeType&&t,kt=xt&&xt.exports===Mt?p.Buffer:void 0;const vt=(kt?kt.isBuffer:void 0)||function(){return!1};var _t=Function.prototype,Rt=Object.prototype,St=_t.toString,Wt=Rt.hasOwnProperty,Pt=St.call(Object),Ut={};Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Arguments]"]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object Boolean]"]=Ut["[object DataView]"]=Ut["[object Date]"]=Ut["[object Error]"]=Ut["[object Function]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut["[object Object]"]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object WeakMap]"]=!1;const jt=function(t){return function(e){ | |
| 6886 | +return t(e)}};var wt=e&&!e.nodeType&&e,zt=wt&&t&&!t.nodeType&&t,Ct=zt&&zt.exports===wt&&d.process;const At=function(){try{return zt&&zt.require&&zt.require("util").types||Ct&&Ct.binding&&Ct.binding("util")}catch(t){}}();var Lt=At&&At.isTypedArray;const Dt=Lt?jt(Lt):function(t){return ut(t)&&Tt(t.length)&&!!Ut[M(t)]},Nt=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var It=Object.prototype.hasOwnProperty;const Vt=function(t,e,i){var o=t[e];It.call(t,e)&&n(o,i)&&(void 0!==i||e in t)||$(t,e,i)},Ot=function(t,e,i,o){var a=!i;i||(i={});for(var l=-1,n=e.length;++l<n;){var s=e[l],r=o?o(i[s],t[s],s,i,t):void 0;void 0===r&&(r=t[s]),a?$(i,s,r):Vt(i,s,r)}return i};var Yt=/^(?:0|[1-9]\d*)$/;const Xt=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&Yt.test(t))&&t>-1&&t%1==0&&t<e};var Bt=Object.prototype.hasOwnProperty;const Et=function(t,e){ | |
| 6838 | 6887 | var i=yt(t),o=!i&&ft(t),a=!i&&!o&&vt(t),l=!i&&!o&&!a&&Dt(t),n=i||o||a||l,s=n?function(t,e){for(var i=-1,o=Array(t);++i<t;)o[i]=e(i);return o}(t.length,String):[],r=s.length;for(var b in t)!e&&!Bt.call(t,b)||n&&("length"==b||a&&("offset"==b||"parent"==b)||l&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||Xt(b,r))||s.push(b);return s};var Ft=Object.prototype.hasOwnProperty;const qt=function(t){return Ht(t)?Et(t,!0):function(t){if(!x(t))return function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}(t);var e=ct(t),i=[];for(var o in t)("constructor"!=o||!e&&Ft.call(t,o))&&i.push(o);return i}(t)},$t=function t(e,i,o,a,l){e!==i&&function(t,e,i){for(var o=-1,a=Object(t),l=i(t),n=l.length;n--;){var s=l[++o];if(!1===e(a[s],s,a))break}}(i,function(n,s){if(l||(l=new F),x(n))!function(t,e,i,o,a,l,n){var s=Nt(t,i),r=Nt(e,i),b=n.get(r);if(b)G(t,i,b);else{var c=l?l(s,r,i+"",t,e,n):void 0,d=void 0===c;if(d){var u=yt(r),p=!u&&vt(r),m=!u&&!p&&Dt(r);c=r,u||p||m?yt(s)?c=s:function(t){ |
| 6839 | -return ut(t)&&Ht(t)}(s)?c=at(s):p?(d=!1,c=tt(r,!0)):m?(d=!1,c=ot(r,!0)):c=[]:function(t){if(!ut(t)||"[object Object]"!=M(t))return!1;var e=rt(t);if(null===e)return!0;var i=Wt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&St.call(i)==Ut}(r)||ft(r)?(c=s,ft(s)?c=function(t){return Ot(t,qt(t))}(s):x(s)&&!k(s)||(c=dt(r))):d=!1}d&&(n.set(r,c),a(c,r,o,l,n),n.delete(r)),G(t,i,c)}}(e,i,s,o,t,a,l);else{var r=a?a(Nt(e,s),n,s+"",e,i,l):void 0;void 0===r&&(r=n),G(e,s,r)}},qt)},Gt=function(t){return t};var Zt=Math.max;const Kt=function(t){return function(){return t}},Jt=q?function(t,e){return q(t,"toString",{configurable:!0,enumerable:!1,value:Kt(e),writable:!0})}:Gt;var Qt=Date.now;const te=function(t){var e=0,i=0;return function(){var o=Qt(),a=16-(o-i);if(i=o,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Jt),ee=function(t,e,i){if(!x(i))return!1;var o=typeof e | |
| 6888 | +return ut(t)&&Ht(t)}(s)?c=at(s):p?(d=!1,c=tt(r,!0)):m?(d=!1,c=ot(r,!0)):c=[]:function(t){if(!ut(t)||"[object Object]"!=M(t))return!1;var e=rt(t);if(null===e)return!0;var i=Wt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&St.call(i)==Pt}(r)||ft(r)?(c=s,ft(s)?c=function(t){return Ot(t,qt(t))}(s):x(s)&&!k(s)||(c=dt(r))):d=!1}d&&(n.set(r,c),a(c,r,o,l,n),n.delete(r)),G(t,i,c)}}(e,i,s,o,t,a,l);else{var r=a?a(Nt(e,s),n,s+"",e,i,l):void 0;void 0===r&&(r=n),G(e,s,r)}},qt)},Gt=function(t){return t};var Zt=Math.max;const Kt=function(t){return function(){return t}},Jt=q?function(t,e){return q(t,"toString",{configurable:!0,enumerable:!1,value:Kt(e),writable:!0})}:Gt;var Qt=Date.now;const te=function(t){var e=0,i=0;return function(){var o=Qt(),a=16-(o-i);if(i=o,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Jt),ee=function(t,e,i){if(!x(i))return!1;var o=typeof e | |
| 6840 | 6889 | ;return!!("number"==o?Ht(i)&&Xt(e,i.length):"string"==o&&e in i)&&n(i[e],t)},ie=function(t){return function(t,e){return te(function(t,e,i){return e=Zt(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,l=Zt(o.length-e,0),n=Array(l);++a<l;)n[a]=o[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=o[a];return s[e]=i(n),function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}(t,this,s)}}(t,e,Gt),t+"")}(function(e,i){var o=-1,a=i.length,l=a>1?i[a-1]:void 0,n=a>2?i[2]:void 0;for(l=t.length>3&&"function"==typeof l?(a--,l):void 0,n&&ee(i[0],i[1],n)&&(l=a<3?void 0:l,a=1),e=Object(e);++o<a;){var s=i[o];s&&t(e,s,o)}return e})}(function(t,e,i){$t(t,e,i)});var oe=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT", |
| 6841 | 6890 | t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(oe||{});class ae{constructor(t,e,i={}){this.attrName=t,this.keyName=e;const o=oe.TYPE&oe.ATTRIBUTE;this.scope=null!=i.scope?i.scope&oe.LEVEL|o:oe.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}static keys(t){return Array.from(t.attributes).map(t=>t.name)}add(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)}canAdd(t,e){return null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1)}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class le extends Error{constructor(t){super(t="[Parchment] "+t),this.message=t,this.name=this.constructor.name}}const ne=class t{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(null==t)return null |
| 6842 | 6891 | ;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let i=null;try{i=t.parentNode}catch{return null}return this.find(i,e)}return null}create(e,i,o){const a=this.query(i);if(null==a)throw new le(`Unable to create ${i} blot`);const l=a,n=i instanceof Node||i.nodeType===Node.TEXT_NODE?i:l.create(o),s=new l(e,n,o);return t.blots.set(s.domNode,s),s}find(e,i=!1){return t.find(e,i)}query(t,e=oe.ANY){let i;return"string"==typeof t?i=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?i=this.types.text:"number"==typeof t?t&oe.LEVEL&oe.BLOCK?i=this.types.block:t&oe.LEVEL&oe.INLINE&&(i=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(t=>(i=this.classes[t],!!i)),i=i||this.tags[t.tagName]),null==i?null:"scope"in i&&e&oe.LEVEL&i.scope&&e&oe.TYPE&i.scope?i:null}register(...t){return t.map(t=>{const e="blotName"in t,i="attrName"in t;if(!e&&!i)throw new le("Invalid definition") |
| 6843 | 6892 | ;if(e&&"abstract"===t.blotName)throw new le("Cannot register abstract class");const o=e?t.blotName:i?t.attrName:void 0;return this.types[o]=t,i?"string"==typeof t.keyName&&(this.attributes[t.keyName]=t):e&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(t=>t.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(e=>{(null==this.tags[e]||null==t.className)&&(this.tags[e]=t)}))),t})}};ne.blots=new WeakMap;let se=ne;function re(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(t=>0===t.indexOf(`${e}-`))}const be=class extends ae{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0)}remove(t){re(t,this.keyName).forEach(e=>{t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")}value(t){ |
| @@ -6854,11 +6903,11 @@ | ||
| 6854 | 6903 | i.filter(t=>t.parentNode===this.domNode&&t!==this.uiNode).sort((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(t=>{let e=null;null!=t.nextSibling&&(e=this.scroll.find(t.nextSibling));const i=ye(t,this.scroll);(i.next!==e||null==i.next)&&(null!=i.parent&&i.parent.removeChild(this),this.insertBefore(i,e||void 0))}),this.enforceAllowedChildren()}};Te.uiClass="";const He=Te,Me=class t extends He{static create(t){return super.create(t)}static formats(e,i){const o=i.query(t.blotName);if(null==o||e.tagName!==o.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ue(this.domNode)}format(e,i){if(e!==this.statics.blotName||i){const t=this.scroll.query(e,oe.INLINE);if(null==t)return;t instanceof ae?this.attributes.attribute(t,i):i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i)}else this.children.forEach(e=>{ |
| 6855 | 6904 | e instanceof t||(e=e.wrap(t.blotName,!0)),this.attributes.copy(e)}),this.unwrap()}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,o){null!=this.formats()[i]||this.scroll.query(i,oe.ATTRIBUTE)?this.isolate(t,e).format(i,o):super.formatAt(t,e,i,o)}optimize(e){super.optimize(e);const i=this.formats();if(0===Object.keys(i).length)return this.unwrap();const o=this.next;o instanceof t&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(t[i]!==e[i])return!1;return!0}(i,o.formats())&&(o.moveChildren(this),o.remove())}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}wrap(e,i){const o=super.wrap(e,i);return o instanceof t&&this.attributes.move(o),o}};Me.allowedChildren=[Me,ge], |
| 6856 | 6905 | Me.blotName="inline",Me.scope=oe.INLINE_BLOT,Me.tagName="SPAN";const xe=Me,ke=class t extends He{static create(t){return super.create(t)}static formats(e,i){const o=i.query(t.blotName);if(null==o||e.tagName!==o.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ue(this.domNode)}format(e,i){const o=this.scroll.query(e,oe.BLOCK);null!=o&&(o instanceof ae?this.attributes.attribute(o,i):e!==this.statics.blotName||i?i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i):this.replaceWith(t.blotName))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,o){null!=this.scroll.query(i,oe.BLOCK)?this.format(i,o):super.formatAt(t,e,i,o)}insertAt(t,e,i){if(null==i||null!=this.scroll.query(e,oe.INLINE))super.insertAt(t,e,i);else{const o=this.split(t) |
| 6857 | 6906 | ;if(null==o)throw new Error("Attempt to insertAt after block boundaries");{const t=this.scroll.create(e,i);o.parent.insertBefore(t,o)}}}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}};ke.blotName="block",ke.scope=oe.BLOCK_BLOT,ke.tagName="P",ke.allowedChildren=[xe,ke,ge];const ve=ke,_e=class extends He{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,i,o){super.formatAt(t,e,i,o),this.enforceAllowedChildren()}insertAt(t,e,i){super.insertAt(t,e,i),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};_e.blotName="container",_e.scope=oe.BLOCK_BLOT;const Re=_e,Se=class extends ge{static formats(t,e){}format(t,e){ |
| 6858 | -super.formatAt(0,this.length(),t,e)}formatAt(t,e,i,o){0===t&&e===this.length()?this.format(i,o):super.formatAt(t,e,i,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}},We={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Ue=class extends He{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(t=>{this.update(t)}),this.observer.observe(this.domNode,We),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const i=this.registry.find(t,e);return i?i.scroll===this?i:e?this.find(i.scroll.domNode.parentNode,!0):null:null}query(t,e=oe.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(t=>{t.remove()}):super.deleteAt(t,e)}formatAt(t,e,i,o){this.update(), | |
| 6907 | +super.formatAt(0,this.length(),t,e)}formatAt(t,e,i,o){0===t&&e===this.length()?this.format(i,o):super.formatAt(t,e,i,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}},We={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Pe=class extends He{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(t=>{this.update(t)}),this.observer.observe(this.domNode,We),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const i=this.registry.find(t,e);return i?i.scroll===this?i:e?this.find(i.scroll.domNode.parentNode,!0):null:null}query(t,e=oe.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(t=>{t.remove()}):super.deleteAt(t,e)}formatAt(t,e,i,o){this.update(), | |
| 6859 | 6908 | super.formatAt(t,e,i,o)}insertAt(t,e,i){this.update(),super.insertAt(t,e,i)}optimize(t=[],e={}){super.optimize(e);const i=e.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)t.push(o.pop());const a=(t,e=!0)=>{null==t||t===this||null!=t.domNode.parentNode&&(i.has(t.domNode)||i.set(t.domNode,[]),e&&a(t.parent))},l=t=>{i.has(t.domNode)&&(t instanceof He&&t.children.forEach(l),i.delete(t.domNode),t.optimize(e))};let n=t;for(let e=0;n.length>0;e+=1){if(e>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(n.forEach(t=>{const e=this.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach(t=>{const e=this.find(t,!1);a(e,!1),e instanceof He&&e.children.forEach(t=>{a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(l),n=Array.from(this.observer.takeRecords()),o=n.slice();o.length>0;)t.push(o.pop())}}update(t,e={}){ |
| 6860 | -t=t||this.observer.takeRecords();const i=new WeakMap;t.map(t=>{const e=this.find(t.target,!0);return null==e?null:i.has(e.domNode)?(i.get(e.domNode).push(t),null):(i.set(e.domNode,[t]),e)}).forEach(t=>{null!=t&&t!==this&&i.has(t.domNode)&&t.update(i.get(t.domNode)||[],e)}),e.mutationsMap=i,i.has(this.domNode)&&super.update(i.get(this.domNode),e),this.optimize(t,e)}};Ue.blotName="scroll",Ue.defaultChild=ve,Ue.allowedChildren=[ve,Re],Ue.scope=oe.BLOCK_BLOT,Ue.tagName="DIV";const Pe=Ue,je=class t extends ge{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,i){null==i?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,i)}length(){return this.text.length}optimize(e){super.optimize(e), | |
| 6909 | +t=t||this.observer.takeRecords();const i=new WeakMap;t.map(t=>{const e=this.find(t.target,!0);return null==e?null:i.has(e.domNode)?(i.get(e.domNode).push(t),null):(i.set(e.domNode,[t]),e)}).forEach(t=>{null!=t&&t!==this&&i.has(t.domNode)&&t.update(i.get(t.domNode)||[],e)}),e.mutationsMap=i,i.has(this.domNode)&&super.update(i.get(this.domNode),e),this.optimize(t,e)}};Pe.blotName="scroll",Pe.defaultChild=ve,Pe.allowedChildren=[ve,Re],Pe.scope=oe.BLOCK_BLOT,Pe.tagName="DIV";const Ue=Pe,je=class t extends ge{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,i){null==i?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,i)}length(){return this.text.length}optimize(e){super.optimize(e), | |
| 6861 | 6910 | this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const i=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next||void 0),this.text=this.statics.value(this.domNode),i}update(t,e){t.some(t=>"characterData"===t.type&&t.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};je.blotName="text",je.scope=oe.INLINE_BLOT;const we=je;var ze=a(660);const Ce=st(Object.keys,Object);var Ae=Object.prototype.hasOwnProperty;const Le=function(t){return Ht(t)?Et(t):function(t){if(!ct(t))return Ce(t);var e=[];for(var i in Object(t))Ae.call(t,i)&&"constructor"!=i&&e.push(i);return e}(t)},De=function(){return[]} |
| 6862 | 6911 | ;var _n=Object.prototype.propertyIsEnumerable,Ne=Object.getOwnPropertySymbols;const Ie=Ne?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var i=-1,o=null==t?0:t.length,a=0,l=[];++i<o;){var n=t[i];e(n)&&(l[a++]=n)}return l}(Ne(t),function(e){return _n.call(t,e)}))}:De,Ve=function(t,e){for(var i=-1,o=e.length,a=t.length;++i<o;)t[a+i]=e[i];return t},Oe=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ve(e,Ie(t)),t=rt(t);return e}:De,Ye=function(t,e,i){var o=e(t);return yt(t)?o:Ve(o,i(t))},Xe=function(t){return Ye(t,Le,Ie)},Be=function(t){return Ye(t,qt,Oe)},Ee=A(p,"DataView"),Fe=A(p,"Promise"),qe=A(p,"Set"),$e=A(p,"WeakMap");var Ge="[object Map]",Ze="[object Promise]",Ke="[object Set]",Je="[object WeakMap]",Qe="[object DataView]",ti=W(Ee),ei=W(L),ii=W(Fe),oi=W(qe),ai=W($e),li=M;(Ee&&li(new Ee(new ArrayBuffer(1)))!=Qe||L&&li(new L)!=Ge||Fe&&li(Fe.resolve())!=Ze||qe&&li(new qe)!=Ke||$e&&li(new $e)!=Je)&&(li=function(t){ |
| 6863 | 6912 | var e=M(t),i="[object Object]"==e?t.constructor:void 0,o=i?W(i):"";if(o)switch(o){case ti:return Qe;case ei:return Ge;case ii:return Ze;case oi:return Ke;case ai:return Je}return e});const ni=li;var si=Object.prototype.hasOwnProperty,ri=/\w*$/,bi=m?m.prototype:void 0,ci=bi?bi.valueOf:void 0;var di=At&&At.isMap;const ui=di?jt(di):function(t){return ut(t)&&"[object Map]"==ni(t)};var pi=At&&At.isSet;const mi=pi?jt(pi):function(t){return ut(t)&&"[object Set]"==ni(t)};var hi="[object Arguments]",gi="[object Function]",fi="[object Object]",yi={} |
| 6864 | 6913 | ;yi[hi]=yi["[object Array]"]=yi["[object ArrayBuffer]"]=yi["[object DataView]"]=yi["[object Boolean]"]=yi["[object Date]"]=yi["[object Float32Array]"]=yi["[object Float64Array]"]=yi["[object Int8Array]"]=yi["[object Int16Array]"]=yi["[object Int32Array]"]=yi["[object Map]"]=yi["[object Number]"]=yi[fi]=yi["[object RegExp]"]=yi["[object Set]"]=yi["[object String]"]=yi["[object Symbol]"]=yi["[object Uint8Array]"]=yi["[object Uint8ClampedArray]"]=yi["[object Uint16Array]"]=yi["[object Uint32Array]"]=!0,yi["[object Error]"]=yi[gi]=yi["[object WeakMap]"]=!1;const Ti=function t(e,i,o,a,l,n){var s,r=1&i,b=2&i,c=4&i;if(o&&(s=l?o(e,a,l,n):o(e)),void 0!==s)return s;if(!x(e))return e;var d=yt(e);if(d){if(s=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&si.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(e),!r)return at(e,s)}else{var u=ni(e),p=u==gi||"[object GeneratorFunction]"==u;if(vt(e))return tt(e,r);if(u==fi||u==hi||p&&!l){if(s=b||p?{}:dt(e), |
| @@ -6863,10 +6912,10 @@ | ||
| 6863 | 6912 | var e=M(t),i="[object Object]"==e?t.constructor:void 0,o=i?W(i):"";if(o)switch(o){case ti:return Qe;case ei:return Ge;case ii:return Ze;case oi:return Ke;case ai:return Je}return e});const ni=li;var si=Object.prototype.hasOwnProperty,ri=/\w*$/,bi=m?m.prototype:void 0,ci=bi?bi.valueOf:void 0;var di=At&&At.isMap;const ui=di?jt(di):function(t){return ut(t)&&"[object Map]"==ni(t)};var pi=At&&At.isSet;const mi=pi?jt(pi):function(t){return ut(t)&&"[object Set]"==ni(t)};var hi="[object Arguments]",gi="[object Function]",fi="[object Object]",yi={} |
| 6864 | 6913 | ;yi[hi]=yi["[object Array]"]=yi["[object ArrayBuffer]"]=yi["[object DataView]"]=yi["[object Boolean]"]=yi["[object Date]"]=yi["[object Float32Array]"]=yi["[object Float64Array]"]=yi["[object Int8Array]"]=yi["[object Int16Array]"]=yi["[object Int32Array]"]=yi["[object Map]"]=yi["[object Number]"]=yi[fi]=yi["[object RegExp]"]=yi["[object Set]"]=yi["[object String]"]=yi["[object Symbol]"]=yi["[object Uint8Array]"]=yi["[object Uint8ClampedArray]"]=yi["[object Uint16Array]"]=yi["[object Uint32Array]"]=!0,yi["[object Error]"]=yi[gi]=yi["[object WeakMap]"]=!1;const Ti=function t(e,i,o,a,l,n){var s,r=1&i,b=2&i,c=4&i;if(o&&(s=l?o(e,a,l,n):o(e)),void 0!==s)return s;if(!x(e))return e;var d=yt(e);if(d){if(s=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&si.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(e),!r)return at(e,s)}else{var u=ni(e),p=u==gi||"[object GeneratorFunction]"==u;if(vt(e))return tt(e,r);if(u==fi||u==hi||p&&!l){if(s=b||p?{}:dt(e), |
| 6865 | 6914 | !r)return b?function(t,e){return Ot(t,Oe(t),e)}(e,function(t,e){return t&&Ot(e,qt(e),t)}(s,e)):function(t,e){return Ot(t,Ie(t),e)}(e,function(t,e){return t&&Ot(e,Le(e),t)}(s,e))}else{if(!yi[u])return l?e:{};s=function(t,e,i){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return it(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var i=e?it(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ot(t,i);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,ri.exec(t));return e.lastIndex=t.lastIndex,e}(t) |
| 6866 | 6915 | ;case"[object Symbol]":return function(t){return ci?Object(ci.call(t)):{}}(t)}}(e,u,r)}}n||(n=new F);var m=n.get(e);if(m)return m;n.set(e,s),mi(e)?e.forEach(function(a){s.add(t(a,i,o,a,e,n))}):ui(e)&&e.forEach(function(a,l){s.set(l,t(a,i,o,l,e,n))});var h=d?void 0:(c?b?Be:Xe:b?qt:Le)(e);return function(t,e){for(var i=-1,o=null==t?0:t.length;++i<o&&!1!==e(t[i],i););}(h||e,function(a,l){h&&(a=e[l=a]),Vt(s,l,t(a,i,o,l,e,n))}),s},Hi=function(t){return Ti(t,5)};function Mi(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new B;++e<i;)this.add(t[e])}Mi.prototype.add=Mi.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Mi.prototype.has=function(t){return this.__data__.has(t)};const xi=Mi,ki=function(t,e){for(var i=-1,o=null==t?0:t.length;++i<o;)if(e(t[i],i,t))return!0;return!1},vi=function(t,e){return t.has(e)},_i=function(t,e,i,o,a,l){var n=1&i,s=t.length,r=e.length;if(s!=r&&!(n&&r>s))return!1;var b=l.get(t),c=l.get(e);if(b&&c)return b==e&&c==t |
| 6867 | -;var d=-1,u=!0,p=2&i?new xi:void 0;for(l.set(t,e),l.set(e,t);++d<s;){var m=t[d],h=e[d];if(o)var g=n?o(h,m,d,e,t,l):o(m,h,d,t,e,l);if(void 0!==g){if(g)continue;u=!1;break}if(p){if(!ki(e,function(t,e){if(!vi(p,e)&&(m===t||a(m,t,i,o,l)))return p.push(e)})){u=!1;break}}else if(m!==h&&!a(m,h,i,o,l)){u=!1;break}}return l.delete(t),l.delete(e),u},Ri=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i},Si=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i};var Wi=m?m.prototype:void 0,Ui=Wi?Wi.valueOf:void 0;const Pi=function(t,e,i,o,a,l,s){switch(i){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!l(new et(t),new et(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]": | |
| 6868 | -return t==e+"";case"[object Map]":var r=Ri;case"[object Set]":var b=1&o;if(r||(r=Si),t.size!=e.size&&!b)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=_i(r(t),r(e),o,a,l,s);return s.delete(t),d;case"[object Symbol]":if(Ui)return Ui.call(t)==Ui.call(e)}return!1};var ji=Object.prototype.hasOwnProperty,wi="[object Arguments]",zi="[object Array]",Ci="[object Object]",Ai=Object.prototype.hasOwnProperty;const Li=function t(e,i,o,a,l){return e===i||(null==e||null==i||!ut(e)&&!ut(i)?e!=e&&i!=i:function(t,e,i,o,a,l){var n=yt(t),s=yt(e),r=n?zi:ni(t),b=s?zi:ni(e),c=(r=r==wi?Ci:r)==Ci,d=(b=b==wi?Ci:b)==Ci,u=r==b;if(u&&vt(t)){if(!vt(e))return!1;n=!0,c=!1}if(u&&!c)return l||(l=new F),n||Dt(t)?_i(t,e,i,o,a,l):Pi(t,e,r,i,o,a,l);if(!(1&i)){var p=c&&Ai.call(t,"__wrapped__"),m=d&&Ai.call(e,"__wrapped__");if(p||m){var h=p?t.value():t,g=m?e.value():e;return l||(l=new F),a(h,g,i,o,l)}}return!!u&&(l||(l=new F),function(t,e,i,o,a,l){var n=1&i,s=Xe(t),r=s.length;if(r!=Xe(e).length&&!n)return!1 | |
| 6916 | +;var d=-1,u=!0,p=2&i?new xi:void 0;for(l.set(t,e),l.set(e,t);++d<s;){var m=t[d],h=e[d];if(o)var g=n?o(h,m,d,e,t,l):o(m,h,d,t,e,l);if(void 0!==g){if(g)continue;u=!1;break}if(p){if(!ki(e,function(t,e){if(!vi(p,e)&&(m===t||a(m,t,i,o,l)))return p.push(e)})){u=!1;break}}else if(m!==h&&!a(m,h,i,o,l)){u=!1;break}}return l.delete(t),l.delete(e),u},Ri=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t,o){i[++e]=[o,t]}),i},Si=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i};var Wi=m?m.prototype:void 0,Pi=Wi?Wi.valueOf:void 0;const Ui=function(t,e,i,o,a,l,s){switch(i){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!l(new et(t),new et(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]": | |
| 6917 | +return t==e+"";case"[object Map]":var r=Ri;case"[object Set]":var b=1&o;if(r||(r=Si),t.size!=e.size&&!b)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=_i(r(t),r(e),o,a,l,s);return s.delete(t),d;case"[object Symbol]":if(Pi)return Pi.call(t)==Pi.call(e)}return!1};var ji=Object.prototype.hasOwnProperty,wi="[object Arguments]",zi="[object Array]",Ci="[object Object]",Ai=Object.prototype.hasOwnProperty;const Li=function t(e,i,o,a,l){return e===i||(null==e||null==i||!ut(e)&&!ut(i)?e!=e&&i!=i:function(t,e,i,o,a,l){var n=yt(t),s=yt(e),r=n?zi:ni(t),b=s?zi:ni(e),c=(r=r==wi?Ci:r)==Ci,d=(b=b==wi?Ci:b)==Ci,u=r==b;if(u&&vt(t)){if(!vt(e))return!1;n=!0,c=!1}if(u&&!c)return l||(l=new F),n||Dt(t)?_i(t,e,i,o,a,l):Ui(t,e,r,i,o,a,l);if(!(1&i)){var p=c&&Ai.call(t,"__wrapped__"),m=d&&Ai.call(e,"__wrapped__");if(p||m){var h=p?t.value():t,g=m?e.value():e;return l||(l=new F),a(h,g,i,o,l)}}return!!u&&(l||(l=new F),function(t,e,i,o,a,l){var n=1&i,s=Xe(t),r=s.length;if(r!=Xe(e).length&&!n)return!1 | |
| 6869 | 6918 | ;for(var b=r;b--;){var c=s[b];if(!(n?c in e:ji.call(e,c)))return!1}var d=l.get(t),u=l.get(e);if(d&&u)return d==e&&u==t;var p=!0;l.set(t,e),l.set(e,t);for(var m=n;++b<r;){var h=t[c=s[b]],g=e[c];if(o)var f=n?o(g,h,c,e,t,l):o(h,g,c,t,e,l);if(!(void 0===f?h===g||a(h,g,i,o,l):f)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var y=t.constructor,T=e.constructor;y==T||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof T&&T instanceof T||(p=!1)}return l.delete(t),l.delete(e),p}(t,e,i,o,a,l))}(e,i,o,a,t,l))},Di=function(t,e){return Li(t,e)};class Ni extends Se{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Ni.blotName="break",Ni.tagName="BR";const Ii=Ni;class Vi extends we{}function Oi(t){return t.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[t]))}class Yi extends xe{static allowedChildren=[Yi,Ii,Se,Vi] |
| 6870 | 6919 | ;static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const i=Yi.order.indexOf(t),o=Yi.order.indexOf(e);return i>=0||o>=0?i-o:t===e?0:t<e?-1:1}formatAt(t,e,i,o){if(Yi.compare(this.statics.blotName,i)<0&&this.scroll.query(i,oe.BLOT)){const a=this.isolate(t,e);o&&a.wrap(i,o)}else super.formatAt(t,e,i,o)}optimize(t){if(super.optimize(t),this.parent instanceof Yi&&Yi.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}const Xi=Yi;class Bi extends ve{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=Fi(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,i,o){e<=0||(this.scroll.query(i,oe.BLOCK)?t+e===this.length()&&this.format(i,o):super.formatAt(t,Math.min(e,this.length()-t-1),i,o),this.cache={})}insertAt(t,e,i){if(null!=i)return super.insertAt(t,e,i),void(this.cache={}) |
| 6871 | 6920 | ;if(0===e.length)return;const o=e.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let l=this;o.reduce((t,e)=>(l=l.split(t,!0),l.insertAt(0,e),e.length),t+a.length)}insertBefore(t,e){const{head:i}=this.children;super.insertBefore(t,e),i instanceof Ii&&i.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&(0===t||t>=this.length()-1)){const e=this.clone();return 0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)}const i=super.split(t,e);return this.cache={},i}}Bi.blotName="block", |
| 6872 | 6921 | Bi.tagName="P",Bi.defaultChild=Ii,Bi.allowedChildren=[Ii,Xi,Se,Vi];class Ei extends Se{attach(){super.attach(),this.attributes=new ue(this.domNode)}delta(){return(new ze).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const i=this.scroll.query(t,oe.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,e)}formatAt(t,e,i,o){this.format(i,o)}insertAt(t,e,i){if(null!=i)return void super.insertAt(t,e,i);const o=e.split("\n"),a=o.pop(),l=o.map(t=>{const e=this.scroll.create(Bi.blotName);return e.insertAt(0,t),e}),n=this.split(t);l.forEach(t=>{this.parent.insertBefore(t,n)}),a&&this.parent.insertBefore(this.scroll.create("text",a),n)}}function Fi(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.descendants(ge).reduce((t,i)=>0===i.length()?t:t.insert(i.value(),qi(i,{},e)),new ze).insert("\n",qi(t))}function qi(t){ |
| @@ -6890,72 +6939,72 @@ | ||
| 6890 | 6939 | this.scroll.formatAt(t,e.length,o,i[o])}),this.update((new ze).retain(t).insert(e,Hi(i)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if(t?.statics.blotName!==Bi.blotName)return!1;const e=t;return!(e.children.length>1)&&e.children.head instanceof Ii}removeFormat(t,e){const i=this.getText(t,e),[o,a]=this.scroll.line(t+e);let l=0,n=new ze;null!=o&&(l=o.length()-a,n=o.delta().slice(a,a+l-1).insert("\n"));const s=this.getContents(t,e+l).diff((new ze).insert(i).concat(n)),r=(new ze).retain(t).concat(s);return this.applyDelta(r)}update(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const o=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(bo)&&this.scroll.find(e[0].target)){ |
| 6891 | 6940 | const a=this.scroll.find(e[0].target),l=qi(a),n=a.offset(this.scroll),s=e[0].oldValue.replace(Gi.CONTENTS,""),r=(new ze).insert(s),b=(new ze).insert(a.value()),c=i&&{oldRange:go(i.oldRange,-n),newRange:go(i.newRange,-n)};t=(new ze).retain(n).concat(r.diff(b,c)).reduce((t,e)=>e.insert?t.insert(e.insert,l):t.push(e),new ze),this.delta=o.compose(t)}else this.delta=this.getDelta(),t&&Di(o.compose(t),this.delta)||(t=o.diff(this.delta,i));return t}},yo=class{static DEFAULTS={};constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=e}},To="\ufeff",Ho=class extends Se{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(t=>{this.contentNode.appendChild(t)}),this.leftGuard=document.createTextNode(To),this.rightGuard=document.createTextNode(To),this.domNode.appendChild(this.leftGuard), |
| 6892 | 6941 | this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e,i=null;const o=t.data.split(To).join("");if(t===this.leftGuard)if(this.prev instanceof Vi){const t=this.prev.length();this.prev.insertAt(t,o),i={startNode:this.prev.domNode,startOffset:t+o.length}}else e=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(e),this),i={startNode:e,startOffset:o.length};else t===this.rightGuard&&(this.next instanceof Vi?(this.next.insertAt(0,o),i={startNode:this.next.domNode,startOffset:o.length}):(e=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(e),this.next),i={startNode:e,startOffset:o.length}));return t.data=To,i}update(t,e){t.forEach(t=>{if("characterData"===t.type&&(t.target===this.leftGuard||t.target===this.rightGuard)){const i=this.restore(t.target);i&&(e.range=i)}})}},Mo=class{isComposing=!1;constructor(t,e){this.scroll=t, |
| 6893 | 6942 | this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;!e||e instanceof Ho||(this.emitter.emit(ao.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(ao.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(ao.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(ao.events.COMPOSITION_END,t),this.isComposing=!1}};class xo{static DEFAULTS={modules:{}};static themes={default:xo};modules={};constructor(t,e){this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{null==this.modules[t]&&this.addModule(t)})}addModule(t){ |
| 6894 | -const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}const ko=xo,vo=t=>{const e=t.getBoundingClientRect(),i="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,o="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*i,bottom:e.top+t.clientHeight*o,left:e.left}},_o=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Ro=(t,e,i,o,a,l)=>t<i&&e>o?0:t<i?-(i-t+a):e>o?e-t>o-i?t+a-i:e-o+l:0,So=["block","break","cursor","inline","scroll","text"],Wo=io("quill"),Uo=new se;He.uiClass="ql-ui";class Po{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Uo,theme:"default"};static events=ao.events;static sources=ao.sources;static version="2.0.2";static imports={delta:ze,parchment:l,"core/module":yo,"core/theme":ko};static debug(t){!0===t&&(t="log"),io.level(t)}static find(t){ | |
| 6895 | -let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ki.get(t)||Uo.find(t,e)}static import(t){return null==this.imports[t]&&Wo.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0],e=!!(arguments.length<=1?void 0:arguments[1]),i="attrName"in t?t.attrName:t.blotName;"string"==typeof i?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(i=>{this.register(i,t[i],e)})}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],i=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[t]||i||Wo.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&"boolean"!=typeof e&&"abstract"!==e.blotName&&Uo.register(e),"function"==typeof e.register&&e.register(Uo)}}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} | |
| 6896 | -;if(this.options=function(t,e){const i=jo(t);if(!i)throw new Error("Invalid Quill container");const o=e.theme&&e.theme!==Po.DEFAULTS.theme?Po.import(`themes/${e.theme}`):ko;if(!o)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:a,...l}=Po.DEFAULTS,{modules:n,...s}=o.DEFAULTS;let r=wo(e.modules);null!=r&&r.toolbar&&r.toolbar.constructor!==Object&&(r={...r,toolbar:{container:r.toolbar}});const b=ie({},wo(a),wo(n),r),c={...l,...zo(s),...zo(e)};let d=e.registry;return d?e.formats&&Wo.warn('Ignoring "formats" option because "registry" is specified'):d=e.formats?((t,e,i)=>{const o=new se;return So.forEach(t=>{const i=e.query(t);i&&o.register(i)}),t.forEach(t=>{let a=e.query(t);a||i.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`);let l=0;for(;a;)if(o.register(a),a="blotName"in a?a.requiredContainer??null:null,l+=1,l>100){i.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}}),o | |
| 6897 | -})(e.formats,c.registry,Wo):c.registry,{...c,registry:d,container:i,theme:o,modules:Object.entries(b).reduce((t,e)=>{let[i,o]=e;if(!o)return t;const a=Po.import(`modules/${i}`);return null==a?(Wo.error(`Cannot load ${i} module. Are you sure you registered it?`),t):{...t,[i]:ie({},a.DEFAULTS||{},o)}},{}),bounds:jo(c.bounds)}}(t,e),this.container=this.options.container,null==this.container)return void Wo.error("Invalid Quill container",t);this.options.debug&&Po.debug(this.options.debug);const i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Ki.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new ao;const o=Pe.blotName,a=this.options.registry.query(o);if(!a||!("blotName"in a))throw new Error(`Cannot initialize Quill without "${o}" blot`);if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new fo(this.scroll), | |
| 6943 | +const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}const ko=xo,vo=t=>{const e=t.getBoundingClientRect(),i="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,o="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*i,bottom:e.top+t.clientHeight*o,left:e.left}},_o=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Ro=(t,e,i,o,a,l)=>t<i&&e>o?0:t<i?-(i-t+a):e>o?e-t>o-i?t+a-i:e-o+l:0,So=["block","break","cursor","inline","scroll","text"],Wo=io("quill"),Po=new se;He.uiClass="ql-ui";class Uo{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Po,theme:"default"};static events=ao.events;static sources=ao.sources;static version="2.0.2";static imports={delta:ze,parchment:l,"core/module":yo,"core/theme":ko};static debug(t){!0===t&&(t="log"),io.level(t)}static find(t){ | |
| 6944 | +let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ki.get(t)||Po.find(t,e)}static import(t){return null==this.imports[t]&&Wo.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0],e=!!(arguments.length<=1?void 0:arguments[1]),i="attrName"in t?t.attrName:t.blotName;"string"==typeof i?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(i=>{this.register(i,t[i],e)})}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],i=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[t]||i||Wo.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&"boolean"!=typeof e&&"abstract"!==e.blotName&&Po.register(e),"function"==typeof e.register&&e.register(Po)}}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} | |
| 6945 | +;if(this.options=function(t,e){const i=jo(t);if(!i)throw new Error("Invalid Quill container");const o=e.theme&&e.theme!==Uo.DEFAULTS.theme?Uo.import(`themes/${e.theme}`):ko;if(!o)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:a,...l}=Uo.DEFAULTS,{modules:n,...s}=o.DEFAULTS;let r=wo(e.modules);null!=r&&r.toolbar&&r.toolbar.constructor!==Object&&(r={...r,toolbar:{container:r.toolbar}});const b=ie({},wo(a),wo(n),r),c={...l,...zo(s),...zo(e)};let d=e.registry;return d?e.formats&&Wo.warn('Ignoring "formats" option because "registry" is specified'):d=e.formats?((t,e,i)=>{const o=new se;return So.forEach(t=>{const i=e.query(t);i&&o.register(i)}),t.forEach(t=>{let a=e.query(t);a||i.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`);let l=0;for(;a;)if(o.register(a),a="blotName"in a?a.requiredContainer??null:null,l+=1,l>100){i.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}}),o | |
| 6946 | +})(e.formats,c.registry,Wo):c.registry,{...c,registry:d,container:i,theme:o,modules:Object.entries(b).reduce((t,e)=>{let[i,o]=e;if(!o)return t;const a=Uo.import(`modules/${i}`);return null==a?(Wo.error(`Cannot load ${i} module. Are you sure you registered it?`),t):{...t,[i]:ie({},a.DEFAULTS||{},o)}},{}),bounds:jo(c.bounds)}}(t,e),this.container=this.options.container,null==this.container)return void Wo.error("Invalid Quill container",t);this.options.debug&&Uo.debug(this.options.debug);const i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Ki.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new ao;const o=Ue.blotName,a=this.options.registry.query(o);if(!a||!("blotName"in a))throw new Error(`Cannot initialize Quill without "${o}" blot`);if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new fo(this.scroll), | |
| 6898 | 6947 | this.selection=new ro(this.scroll,this.emitter),this.composition=new Mo(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(ao.events.EDITOR_CHANGE,t=>{t===ao.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(ao.events.SCROLL_UPDATE,(t,e)=>{const i=this.selection.lastRange,[o]=this.selection.getRange(),a=i&&o?{oldRange:i,newRange:o}:void 0;Co.call(this,()=>this.editor.update(null,e,a),t)}),this.emitter.on(ao.events.SCROLL_EMBED_UPDATE,(t,e)=>{const i=this.selection.lastRange,[o]=this.selection.getRange(),a=i&&o?{oldRange:i,newRange:o}:void 0;Co.call(this,()=>{const i=(new ze).retain(t.offset(this)).retain({[t.statics.blotName]:e}) |
| 6899 | -;return this.editor.update(i,[],a)},Po.sources.USER)}),i){const t=this.clipboard.convert({html:`${i}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){const e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,i){return[t,e,,i]=Ao(t,e,i),Co.call(this,()=>this.editor.deleteText(t,e),i,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){ | |
| 6948 | +;return this.editor.update(i,[],a)},Uo.sources.USER)}),i){const t=this.clipboard.convert({html:`${i}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){const e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,i){return[t,e,,i]=Ao(t,e,i),Co.call(this,()=>this.editor.deleteText(t,e),i,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){ | |
| 6900 | 6949 | let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ao.sources.API;return Co.call(this,()=>{const i=this.getSelection(!0);let o=new ze;if(null==i)return o;if(this.scroll.query(t,oe.BLOCK))o=this.editor.formatLine(i.index,i.length,{[t]:e});else{if(0===i.length)return this.selection.format(t,e),o;o=this.editor.formatText(i.index,i.length,{[t]:e})}return this.setSelection(i,ao.sources.SILENT),o},i)}formatLine(t,e,i,o,a){let l;return[t,e,l,a]=Ao(t,e,i,o,a),Co.call(this,()=>this.editor.formatLine(t,e,l),a,t,0)}formatText(t,e,i,o,a){let l;return[t,e,l,a]=Ao(t,e,i,o,a),Co.call(this,()=>this.editor.formatText(t,e,l),a,t,0)}getBounds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=null;if(i="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length),!i)return null |
| 6901 | 6950 | ;const o=this.container.getBoundingClientRect();return{bottom:i.bottom-o.top,height:i.height,left:i.left-o.left,right:i.right-o.left,top:i.top-o.top,width:i.width}}getContents(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t;return[t,e]=Ao(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e) |
| 6902 | -}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ao(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ao(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Po.sources.API;return Co.call(this,()=>this.editor.insertEmbed(t,e,i),o,t)}insertText(t,e,i,o,a){let l;return[t,,l,a]=Ao(t,0,i,o,a),Co.call(this,()=>this.editor.insertText(t,e,l),a,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)} | |
| 6951 | +}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ao(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ao(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uo.sources.API;return Co.call(this,()=>this.editor.insertEmbed(t,e,i),o,t)}insertText(t,e,i,o,a){let l;return[t,,l,a]=Ao(t,0,i,o,a),Co.call(this,()=>this.editor.insertText(t,e,l),a,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)} | |
| 6903 | 6952 | on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,i){return[t,e,,i]=Ao(t,e,i),Co.call(this,()=>this.editor.removeFormat(t,e),i,t)}scrollRectIntoView(t){((t,e)=>{const i=t.ownerDocument;let o=e,a=t;for(;a;){const t=a===i.body,e=t?{top:0,right:window.visualViewport?.width??i.documentElement.clientWidth,bottom:window.visualViewport?.height??i.documentElement.clientHeight,left:0}:vo(a),n=getComputedStyle(a),s=Ro(o.left,o.right,e.left,e.right,_o(n.scrollPaddingLeft),_o(n.scrollPaddingRight)),r=Ro(o.top,o.bottom,e.top,e.bottom,_o(n.scrollPaddingTop),_o(n.scrollPaddingBottom));if(s||r)if(t)i.defaultView?.scrollBy(s,r);else{const{scrollLeft:t,scrollTop:e}=a;r&&(a.scrollTop+=r),s&&(a.scrollLeft+=s);const i=a.scrollLeft-t,l=a.scrollTop-e;o={left:o.left-i,top:o.top-l,right:o.right-i,bottom:o.bottom-l}}a=t||"fixed"===n.position?null:(l=a).parentElement||l.getRootNode().host||null}var l})(this.root,t)}scrollIntoView(){ |
| 6904 | -console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ao.sources.API;return Co.call(this,()=>{t=new ze(t);const e=this.getLength(),i=this.editor.deleteText(0,e),o=this.editor.insertContents(0,t),a=this.editor.deleteText(this.getLength()-1,1);return i.compose(o).compose(a)},e)}setSelection(t,e,i){null==t?this.selection.setRange(null,e||Po.sources.API):([t,e,,i]=Ao(t,e,i),this.selection.setRange(new no(Math.max(0,t),e),i),i!==ao.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ao.sources.API;const i=(new ze).insert(t);return this.setContents(i,e)}update(){ | |
| 6953 | +console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ao.sources.API;return Co.call(this,()=>{t=new ze(t);const e=this.getLength(),i=this.editor.deleteText(0,e),o=this.editor.insertContents(0,t),a=this.editor.deleteText(this.getLength()-1,1);return i.compose(o).compose(a)},e)}setSelection(t,e,i){null==t?this.selection.setRange(null,e||Uo.sources.API):([t,e,,i]=Ao(t,e,i),this.selection.setRange(new no(Math.max(0,t),e),i),i!==ao.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ao.sources.API;const i=(new ze).insert(t);return this.setContents(i,e)}update(){ | |
| 6905 | 6954 | let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ao.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ao.sources.API;return Co.call(this,()=>(t=new ze(t),this.editor.applyDelta(t)),e,!0)}}function jo(t){return"string"==typeof t?document.querySelector(t):t}function wo(t){return Object.entries(t??{}).reduce((t,e)=>{let[i,o]=e;return{...t,[i]:!0===o?{}:o}},{})}function zo(t){return Object.fromEntries(Object.entries(t).filter(t=>void 0!==t[1]))}function Co(t,e,i,o){if(!this.isEnabled()&&e===ao.sources.USER&&!this.allowReadOnlyEdits)return new ze;let a=null==i?null:this.getSelection();const l=this.editor.delta,n=t();if(null!=a&&(!0===i&&(i=a.index),null==o?a=Lo(a,n,e):0!==o&&(a=Lo(a,i,o,e)),this.setSelection(a,ao.sources.SILENT)),n.length()>0){const t=[ao.events.TEXT_CHANGE,n,l,e];this.emitter.emit(ao.events.EDITOR_CHANGE,...t),e!==ao.sources.SILENT&&this.emitter.emit(...t)} |
| 6906 | 6955 | return n}function Ao(t,e,i,o,a){let l={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(a=o,o=i,i=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(a=o,o=i,i=e,e=0),"object"==typeof i?(l=i,a=o):"string"==typeof i&&(null!=o?l[i]=o:a=i),[t,e,l,a=a||ao.sources.API]}function Lo(t,e,i,o){const a="number"==typeof i?i:0;if(null==t)return null;let l,n;return e&&"function"==typeof e.transformPosition?[l,n]=[t.index,t.index+t.length].map(t=>e.transformPosition(t,o!==ao.sources.USER)):[l,n]=[t.index,t.index+t.length].map(t=>t<e||t===e&&o===ao.sources.USER?t:a>=0?t+a:Math.max(e,t+a)),new no(l,n-l)}const Do=class extends Re{};function No(t){return t instanceof Bi||t instanceof Ei}function Io(t){return"function"==typeof t.updateContent}function Vo(t,e,i){i.reduce((e,i)=>{const o=ze.Op.length(i);let a=i.attributes||{};if(null!=i.insert)if("string"==typeof i.insert){const o=i.insert;t.insertAt(e,o);const[l]=t.descendant(ge,e),n=qi(l) |
| 6907 | 6956 | ;a=ze.AttributeMap.diff(n,a)||{}}else if("object"==typeof i.insert){const o=Object.keys(i.insert)[0];if(null==o)return e;if(t.insertAt(e,o,i.insert[o]),null!=t.scroll.query(o,oe.INLINE)){const[i]=t.descendant(ge,e),o=qi(i);a=ze.AttributeMap.diff(o,a)||{}}}return Object.keys(a).forEach(i=>{t.formatAt(e,o,i,a[i])}),e+o},e)}const Oo={scope:oe.BLOCK,whitelist:["right","center","justify"]},Yo=new ae("align","align",Oo),Xo=new be("align","ql-align",Oo),Bo=new de("align","text-align",Oo);class Eo extends de{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map(t=>`00${parseInt(t,10).toString(16)}`.slice(-2)).join("")}`):e}}const Fo=new be("color","ql-color",{scope:oe.INLINE}),qo=new Eo("color","color",{scope:oe.INLINE}),$o=new be("background","ql-bg",{scope:oe.INLINE}),Go=new Eo("background","background-color",{scope:oe.INLINE});class Zo extends Do{static create(t){const e=super.create(t) |
| 6908 | -;return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(t=>t.length()<=1?"":t.domNode.innerText).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${Oi(this.code(t,e))}\n</pre>`}}class Ko extends Bi{static TAB=" ";static register(){Po.register(Zo)}}class Jo extends Xi{}Jo.blotName="code",Jo.tagName="CODE",Ko.blotName="code-block",Ko.className="ql-code-block",Ko.tagName="DIV",Zo.blotName="code-block-container",Zo.className="ql-code-block-container",Zo.tagName="DIV",Zo.allowedChildren=[Ko],Ko.allowedChildren=[Vi,Ii,Gi],Ko.requiredContainer=Zo;const Qo={scope:oe.BLOCK,whitelist:["rtl"]},ta=new ae("direction","dir",Qo),ea=new be("direction","ql-direction",Qo),ia=new de("direction","direction",Qo),oa={scope:oe.INLINE,whitelist:["serif","monospace"]},aa=new be("font","ql-font",oa),la=new class extends de{value(t){return super.value(t).replace(/["']/g,"")}}("font","font-family",oa),na=new be("size","ql-size",{scope:oe.INLINE,whitelist:["small","large","huge"] | |
| 6957 | +;return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(t=>t.length()<=1?"":t.domNode.innerText).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${Oi(this.code(t,e))}\n</pre>`}}class Ko extends Bi{static TAB=" ";static register(){Uo.register(Zo)}}class Jo extends Xi{}Jo.blotName="code",Jo.tagName="CODE",Ko.blotName="code-block",Ko.className="ql-code-block",Ko.tagName="DIV",Zo.blotName="code-block-container",Zo.className="ql-code-block-container",Zo.tagName="DIV",Zo.allowedChildren=[Ko],Ko.allowedChildren=[Vi,Ii,Gi],Ko.requiredContainer=Zo;const Qo={scope:oe.BLOCK,whitelist:["rtl"]},ta=new ae("direction","dir",Qo),ea=new be("direction","ql-direction",Qo),ia=new de("direction","direction",Qo),oa={scope:oe.INLINE,whitelist:["serif","monospace"]},aa=new be("font","ql-font",oa),la=new class extends de{value(t){return super.value(t).replace(/["']/g,"")}}("font","font-family",oa),na=new be("size","ql-size",{scope:oe.INLINE,whitelist:["small","large","huge"] | |
| 6909 | 6958 | }),sa=new de("size","font-size",{scope:oe.INLINE,whitelist:["10px","18px","32px"]}),ra=io("quill:keyboard"),ba=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class ca extends yo{static match(t,e){return!["altKey","ctrlKey","metaKey","shiftKey"].some(i=>!!e[i]!==t[i]&&null!==e[i])&&(e.key===t.key||e.key===t.which)}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(t=>{this.options.bindings[t]&&this.addBinding(this.options.bindings[t])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{ |
| 6910 | 6959 | collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=function(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!=typeof t)return null;t=Hi(t)}return t.shortKey&&(t[ba]=t.shortKey,delete t.shortKey),t}(t);null!=o?("function"==typeof e&&(e={handler:e}),"function"==typeof i&&(i={handler:i}),(Array.isArray(o.key)?o.key:[o.key]).forEach(t=>{const a={...o,key:t,...e,...i};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})):ra.warn("Attempted to add invalid keyboard binding",o)}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return |
| 6911 | -;if(229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(e=>ca.match(t,e));if(0===e.length)return;const i=Po.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(null==o||!this.quill.hasFocus())return;const[a,l]=this.quill.getLine(o.index),[n,s]=this.quill.getLeaf(o.index),[r,b]=0===o.length?[n,s]:this.quill.getLeaf(o.index+o.length),c=n instanceof we?n.value().slice(0,s):"",d=r instanceof we?r.value().slice(b):"",u={collapsed:0===o.length,empty:0===o.length&&a.length()<=1,format:this.quill.getFormat(o),line:a,offset:l,prefix:c,suffix:d,event:t};e.some(t=>{if(null!=t.collapsed&&t.collapsed!==u.collapsed)return!1;if(null!=t.empty&&t.empty!==u.empty)return!1;if(null!=t.offset&&t.offset!==u.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(t=>null==u.format[t]))return!1 | |
| 6912 | -}else if("object"==typeof t.format&&!Object.keys(t.format).every(e=>!0===t.format[e]?null!=u.format[e]:!1===t.format[e]?null==u.format[e]:Di(t.format[e],u.format[e])))return!1;return!(null!=t.prefix&&!t.prefix.test(u.prefix)||null!=t.suffix&&!t.suffix.test(u.suffix)||!0===t.handler.call(this,o,u,t))})&&t.preventDefault()})}handleBackspace(t,e){const i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(0===t.index||this.quill.getLength()<=1)return;let o={};const[a]=this.quill.getLine(t.index);let l=(new ze).retain(t.index-i).delete(i);if(0===e.offset){const[e]=this.quill.getLine(t.index-1);if(e&&!("block"===e.statics.blotName&&e.length()<=1)){const e=a.formats(),i=this.quill.getFormat(t.index-1,1);if(o=ze.AttributeMap.diff(e,i)||{},Object.keys(o).length>0){const e=(new ze).retain(t.index+a.length()-2).retain(1,o);l=l.compose(e)}}}this.quill.updateContents(l,Po.sources.USER),this.quill.focus()}handleDelete(t,e){const i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1 | |
| 6913 | -;if(t.index>=this.quill.getLength()-i)return;let o={};const[a]=this.quill.getLine(t.index);let l=(new ze).retain(t.index).delete(i);if(e.offset>=a.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const i=a.formats(),n=this.quill.getFormat(t.index,1);o=ze.AttributeMap.diff(i,n)||{},Object.keys(o).length>0&&(l=l.retain(e.length()-1).retain(1,o))}}this.quill.updateContents(l,Po.sources.USER),this.quill.focus()}handleDeleteRange(t){ga({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const i=Object.keys(e.format).reduce((t,i)=>(this.quill.scroll.query(i,oe.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t),{}),o=(new ze).retain(t.index).delete(t.length).insert("\n",i);this.quill.updateContents(o,Po.sources.USER),this.quill.setSelection(t.index+1,Po.sources.SILENT),this.quill.focus()}}const da={bindings:{bold:ma("bold"),italic:ma("italic"),underline:ma("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){ | |
| 6914 | -return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",Po.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",Po.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",Po.sources.USER):null!=e.format.list&&this.quill.format("list",!1,Po.sources.USER)}},"indent code-block":ua(!0),"outdent code-block":ua(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Po.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();const i=(new ze).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(i,Po.sources.USER),this.quill.history.cutoff(), | |
| 6915 | -this.quill.setSelection(t.index+1,Po.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Po.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const i={list:!1};e.format.indent&&(i.indent=!1),this.quill.formatLine(t.index,t.length,i,Po.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,i]=this.quill.getLine(t.index),o={...e.formats(),list:"checked"},a=(new ze).retain(t.index).insert("\n",o).retain(e.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,Po.sources.USER),this.quill.setSelection(t.index+1,Po.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[i,o]=this.quill.getLine(t.index),a=(new ze).retain(t.index).insert("\n",e.format).retain(i.length()-o-1).retain(1,{header:null}) | |
| 6916 | -;this.quill.updateContents(a,Po.sources.USER),this.quill.setSelection(t.index+1,Po.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[i,o,a,l]=e.getTable(t),n=function(t,e,i,o){return null==e.prev&&null==e.next?null==i.prev&&null==i.next?0===o?-1:1:null==i.prev?-1:1:null==e.prev?-1:null==e.next?1:null}(0,o,a,l);if(null==n)return;let s=i.offset();if(n<0){const e=(new ze).retain(s).insert("\n");this.quill.updateContents(e,Po.sources.USER),this.quill.setSelection(t.index+1,t.length,Po.sources.SILENT)}else if(n>0){s+=i.length();const t=(new ze).retain(s).insert("\n");this.quill.updateContents(t,Po.sources.USER),this.quill.setSelection(s,Po.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null, | |
| 6917 | -format:["table"],handler(t,e){const{event:i,line:o}=e,a=o.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(a-1,Po.sources.USER):this.quill.setSelection(a+o.length(),Po.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(null==this.quill.scroll.query("list"))return!0;const{length:i}=e.prefix,[o,a]=this.quill.getLine(t.index);if(a>i)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",Po.sources.USER),this.quill.history.cutoff();const n=(new ze).retain(t.index-a).delete(i+1).retain(o.length()-2-a).retain(1,{list:l});return this.quill.updateContents(n,Po.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,Po.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"], | |
| 6918 | -prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,i]=this.quill.getLine(t.index);let o=2,a=e;for(;null!=a&&a.length()<=1&&a.formats()["code-block"];)if(a=a.prev,o-=1,o<=0){const o=(new ze).retain(t.index+e.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Po.sources.USER),this.quill.setSelection(t.index-1,Po.sources.SILENT),!1}return!0}},"embed left":pa("ArrowLeft",!1),"embed left shift":pa("ArrowLeft",!0),"embed right":pa("ArrowRight",!1),"embed right shift":pa("ArrowRight",!0),"table down":ha(!1),"table up":ha(!0)}};function ua(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,i){let{event:o}=i;const a=this.quill.scroll.query("code-block"),{TAB:l}=a;if(0===e.length&&!o.shiftKey)return this.quill.insertText(e.index,l,Po.sources.USER),void this.quill.setSelection(e.index+l.length,Po.sources.SILENT);const n=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:s,length:r}=e;n.forEach((e,i)=>{t?(e.insertAt(0,l), | |
| 6919 | -0===i?s+=l.length:r+=l.length):e.domNode.textContent.startsWith(l)&&(e.deleteAt(0,l.length),0===i?s-=l.length:r-=l.length)}),this.quill.update(Po.sources.USER),this.quill.setSelection(s,r,Po.sources.SILENT)}}}function pa(t,e){const i="ArrowLeft"===t?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[i]:/^$/,handler(i){let{index:o}=i;"ArrowRight"===t&&(o+=i.length+1);const[a]=this.quill.getLeaf(o);return!(a instanceof Se&&("ArrowLeft"===t?e?this.quill.setSelection(i.index-1,i.length+1,Po.sources.USER):this.quill.setSelection(i.index-1,Po.sources.USER):e?this.quill.setSelection(i.index,i.length+1,Po.sources.USER):this.quill.setSelection(i.index+i.length+1,Po.sources.USER),1))}}}function ma(t){return{key:t[0],shortKey:!0,handler(e,i){this.quill.format(t,!i.format[t],Po.sources.USER)}}}function ha(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,i){const o=t?"prev":"next",a=i.line,l=a.parent[o];if(null!=l){if("table-row"===l.statics.blotName){ | |
| 6920 | -let t=l.children.head,e=a;for(;null!=e.prev;)e=e.prev,t=t.next;const o=t.offset(this.quill.scroll)+Math.min(i.offset,t.length()-1);this.quill.setSelection(o,0,Po.sources.USER)}}else{const e=a.table()[o];null!=e&&(t?this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Po.sources.USER):this.quill.setSelection(e.offset(this.quill.scroll),0,Po.sources.USER))}return!1}}}function ga(t){let{quill:e,range:i}=t;const o=e.getLines(i);let a={};if(o.length>1){const t=o[0].formats(),e=o[o.length-1].formats();a=ze.AttributeMap.diff(e,t)||{}}e.deleteText(i,Po.sources.USER),Object.keys(a).length>0&&e.formatLine(i.index,1,a,Po.sources.USER),e.setSelection(i.index,Po.sources.SILENT)}ca.DEFAULTS=da;const fa=/font-weight:\s*normal/,ya=["P","OL","UL"],Ta=t=>t&&ya.includes(t.tagName),Ha=/\bmso-list:[^;]*ignore/i,Ma=/\bmso-list:[^;]*\bl(\d+)/i,xa=/\bmso-list:[^;]*\blevel(\d+)/i,ka=[function(t){"urn:schemas-microsoft-com:office:word"===t.documentElement.getAttribute("xmlns:w")&&(t=>{ | |
| 6960 | +;if(229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(e=>ca.match(t,e));if(0===e.length)return;const i=Uo.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(null==o||!this.quill.hasFocus())return;const[a,l]=this.quill.getLine(o.index),[n,s]=this.quill.getLeaf(o.index),[r,b]=0===o.length?[n,s]:this.quill.getLeaf(o.index+o.length),c=n instanceof we?n.value().slice(0,s):"",d=r instanceof we?r.value().slice(b):"",u={collapsed:0===o.length,empty:0===o.length&&a.length()<=1,format:this.quill.getFormat(o),line:a,offset:l,prefix:c,suffix:d,event:t};e.some(t=>{if(null!=t.collapsed&&t.collapsed!==u.collapsed)return!1;if(null!=t.empty&&t.empty!==u.empty)return!1;if(null!=t.offset&&t.offset!==u.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(t=>null==u.format[t]))return!1 | |
| 6961 | +}else if("object"==typeof t.format&&!Object.keys(t.format).every(e=>!0===t.format[e]?null!=u.format[e]:!1===t.format[e]?null==u.format[e]:Di(t.format[e],u.format[e])))return!1;return!(null!=t.prefix&&!t.prefix.test(u.prefix)||null!=t.suffix&&!t.suffix.test(u.suffix)||!0===t.handler.call(this,o,u,t))})&&t.preventDefault()})}handleBackspace(t,e){const i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(0===t.index||this.quill.getLength()<=1)return;let o={};const[a]=this.quill.getLine(t.index);let l=(new ze).retain(t.index-i).delete(i);if(0===e.offset){const[e]=this.quill.getLine(t.index-1);if(e&&!("block"===e.statics.blotName&&e.length()<=1)){const e=a.formats(),i=this.quill.getFormat(t.index-1,1);if(o=ze.AttributeMap.diff(e,i)||{},Object.keys(o).length>0){const e=(new ze).retain(t.index+a.length()-2).retain(1,o);l=l.compose(e)}}}this.quill.updateContents(l,Uo.sources.USER),this.quill.focus()}handleDelete(t,e){const i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1 | |
| 6962 | +;if(t.index>=this.quill.getLength()-i)return;let o={};const[a]=this.quill.getLine(t.index);let l=(new ze).retain(t.index).delete(i);if(e.offset>=a.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const i=a.formats(),n=this.quill.getFormat(t.index,1);o=ze.AttributeMap.diff(i,n)||{},Object.keys(o).length>0&&(l=l.retain(e.length()-1).retain(1,o))}}this.quill.updateContents(l,Uo.sources.USER),this.quill.focus()}handleDeleteRange(t){ga({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const i=Object.keys(e.format).reduce((t,i)=>(this.quill.scroll.query(i,oe.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t),{}),o=(new ze).retain(t.index).delete(t.length).insert("\n",i);this.quill.updateContents(o,Uo.sources.USER),this.quill.setSelection(t.index+1,Uo.sources.SILENT),this.quill.focus()}}const da={bindings:{bold:ma("bold"),italic:ma("italic"),underline:ma("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){ | |
| 6963 | +return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",Uo.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",Uo.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",Uo.sources.USER):null!=e.format.list&&this.quill.format("list",!1,Uo.sources.USER)}},"indent code-block":ua(!0),"outdent code-block":ua(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Uo.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();const i=(new ze).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(i,Uo.sources.USER),this.quill.history.cutoff(), | |
| 6964 | +this.quill.setSelection(t.index+1,Uo.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Uo.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const i={list:!1};e.format.indent&&(i.indent=!1),this.quill.formatLine(t.index,t.length,i,Uo.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,i]=this.quill.getLine(t.index),o={...e.formats(),list:"checked"},a=(new ze).retain(t.index).insert("\n",o).retain(e.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,Uo.sources.USER),this.quill.setSelection(t.index+1,Uo.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[i,o]=this.quill.getLine(t.index),a=(new ze).retain(t.index).insert("\n",e.format).retain(i.length()-o-1).retain(1,{header:null}) | |
| 6965 | +;this.quill.updateContents(a,Uo.sources.USER),this.quill.setSelection(t.index+1,Uo.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[i,o,a,l]=e.getTable(t),n=function(t,e,i,o){return null==e.prev&&null==e.next?null==i.prev&&null==i.next?0===o?-1:1:null==i.prev?-1:1:null==e.prev?-1:null==e.next?1:null}(0,o,a,l);if(null==n)return;let s=i.offset();if(n<0){const e=(new ze).retain(s).insert("\n");this.quill.updateContents(e,Uo.sources.USER),this.quill.setSelection(t.index+1,t.length,Uo.sources.SILENT)}else if(n>0){s+=i.length();const t=(new ze).retain(s).insert("\n");this.quill.updateContents(t,Uo.sources.USER),this.quill.setSelection(s,Uo.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null, | |
| 6966 | +format:["table"],handler(t,e){const{event:i,line:o}=e,a=o.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(a-1,Uo.sources.USER):this.quill.setSelection(a+o.length(),Uo.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(null==this.quill.scroll.query("list"))return!0;const{length:i}=e.prefix,[o,a]=this.quill.getLine(t.index);if(a>i)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",Uo.sources.USER),this.quill.history.cutoff();const n=(new ze).retain(t.index-a).delete(i+1).retain(o.length()-2-a).retain(1,{list:l});return this.quill.updateContents(n,Uo.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,Uo.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"], | |
| 6967 | +prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,i]=this.quill.getLine(t.index);let o=2,a=e;for(;null!=a&&a.length()<=1&&a.formats()["code-block"];)if(a=a.prev,o-=1,o<=0){const o=(new ze).retain(t.index+e.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Uo.sources.USER),this.quill.setSelection(t.index-1,Uo.sources.SILENT),!1}return!0}},"embed left":pa("ArrowLeft",!1),"embed left shift":pa("ArrowLeft",!0),"embed right":pa("ArrowRight",!1),"embed right shift":pa("ArrowRight",!0),"table down":ha(!1),"table up":ha(!0)}};function ua(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,i){let{event:o}=i;const a=this.quill.scroll.query("code-block"),{TAB:l}=a;if(0===e.length&&!o.shiftKey)return this.quill.insertText(e.index,l,Uo.sources.USER),void this.quill.setSelection(e.index+l.length,Uo.sources.SILENT);const n=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:s,length:r}=e;n.forEach((e,i)=>{t?(e.insertAt(0,l), | |
| 6968 | +0===i?s+=l.length:r+=l.length):e.domNode.textContent.startsWith(l)&&(e.deleteAt(0,l.length),0===i?s-=l.length:r-=l.length)}),this.quill.update(Uo.sources.USER),this.quill.setSelection(s,r,Uo.sources.SILENT)}}}function pa(t,e){const i="ArrowLeft"===t?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[i]:/^$/,handler(i){let{index:o}=i;"ArrowRight"===t&&(o+=i.length+1);const[a]=this.quill.getLeaf(o);return!(a instanceof Se&&("ArrowLeft"===t?e?this.quill.setSelection(i.index-1,i.length+1,Uo.sources.USER):this.quill.setSelection(i.index-1,Uo.sources.USER):e?this.quill.setSelection(i.index,i.length+1,Uo.sources.USER):this.quill.setSelection(i.index+i.length+1,Uo.sources.USER),1))}}}function ma(t){return{key:t[0],shortKey:!0,handler(e,i){this.quill.format(t,!i.format[t],Uo.sources.USER)}}}function ha(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,i){const o=t?"prev":"next",a=i.line,l=a.parent[o];if(null!=l){if("table-row"===l.statics.blotName){ | |
| 6969 | +let t=l.children.head,e=a;for(;null!=e.prev;)e=e.prev,t=t.next;const o=t.offset(this.quill.scroll)+Math.min(i.offset,t.length()-1);this.quill.setSelection(o,0,Uo.sources.USER)}}else{const e=a.table()[o];null!=e&&(t?this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Uo.sources.USER):this.quill.setSelection(e.offset(this.quill.scroll),0,Uo.sources.USER))}return!1}}}function ga(t){let{quill:e,range:i}=t;const o=e.getLines(i);let a={};if(o.length>1){const t=o[0].formats(),e=o[o.length-1].formats();a=ze.AttributeMap.diff(e,t)||{}}e.deleteText(i,Uo.sources.USER),Object.keys(a).length>0&&e.formatLine(i.index,1,a,Uo.sources.USER),e.setSelection(i.index,Uo.sources.SILENT)}ca.DEFAULTS=da;const fa=/font-weight:\s*normal/,ya=["P","OL","UL"],Ta=t=>t&&ya.includes(t.tagName),Ha=/\bmso-list:[^;]*ignore/i,Ma=/\bmso-list:[^;]*\bl(\d+)/i,xa=/\bmso-list:[^;]*\blevel(\d+)/i,ka=[function(t){"urn:schemas-microsoft-com:office:word"===t.documentElement.getAttribute("xmlns:w")&&(t=>{ | |
| 6921 | 6970 | const e=Array.from(t.querySelectorAll("[style*=mso-list]")),i=[],o=[];e.forEach(t=>{(t.getAttribute("style")||"").match(Ha)?i.push(t):o.push(t)}),i.forEach(t=>t.parentNode?.removeChild(t));const a=t.documentElement.innerHTML,l=o.map(t=>((t,e)=>{const i=t.getAttribute("style"),o=i?.match(Ma);if(!o)return null;const a=Number(o[1]),l=i?.match(xa),n=l?Number(l[1]):1,s=new RegExp(`@list l${a}:level${n}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),r=e.match(s);return{id:a,indent:n,type:r&&"bullet"===r[1]?"bullet":"ordered",element:t}})(t,a)).filter(t=>t);for(;l.length;){const t=[];let e=l.shift();for(;e;)t.push(e),e=l.length&&l[0]?.element===e.element.nextElementSibling&&l[0].id===e.id?l.shift():null;const i=document.createElement("ul");t.forEach(t=>{const e=document.createElement("li");e.setAttribute("data-list",t.type),t.indent>1&&e.setAttribute("class","ql-indent-"+(t.indent-1)),e.innerHTML=t.element.innerHTML,i.appendChild(e)});const o=t[0]?.element,{parentNode:a}=o??{} |
| 6922 | -;o&&a?.replaceChild(i,o),t.slice(1).forEach(t=>{let{element:e}=t;a?.removeChild(e)})}})(t)},function(t){t.querySelector('[id^="docs-internal-guid-"]')&&((t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(t=>t.getAttribute("style")?.match(fa)).forEach(e=>{const i=t.createDocumentFragment();i.append(...e.childNodes),e.parentNode?.replaceChild(i,e)})})(t),(t=>{Array.from(t.querySelectorAll("br")).filter(t=>Ta(t.previousElementSibling)&&Ta(t.nextElementSibling)).forEach(t=>{t.parentNode?.removeChild(t)})})(t))}],va=io("quill:clipboard"),_a=[[Node.TEXT_NODE,function(t,e,i){let o=t.data;if("O:P"===t.parentElement?.tagName)return e.insert(o.trim());if(!wa(t)){if(0===o.trim().length&&o.includes("\n")&&!function(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Pa(t.previousElementSibling,e)&&!Pa(t.nextElementSibling,e)}(t,i))return e;const a=(t,e)=>{const i=e.replace(/[^\u00a0]/g,"");return i.length<1&&t?" ":i};o=o.replace(/\r\n/g," ").replace(/\n/g," "), | |
| 6923 | -o=o.replace(/\s\s+/g,a.bind(a,!0)),(null==t.previousSibling&&null!=t.parentElement&&Pa(t.parentElement,i)||t.previousSibling instanceof Element&&Pa(t.previousSibling,i))&&(o=o.replace(/^\s+/,a.bind(a,!1))),(null==t.nextSibling&&null!=t.parentElement&&Pa(t.parentElement,i)||t.nextSibling instanceof Element&&Pa(t.nextSibling,i))&&(o=o.replace(/\s+$/,a.bind(a,!1)))}return e.insert(o)}],[Node.TEXT_NODE,Aa],["br",function(t,e){return Ua(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,Aa],[Node.ELEMENT_NODE,function(t,e,i){const o=i.query(t);if(null==o)return e;if(o.prototype instanceof Se){const e={},a=o.value(t);if(null!=a)return e[o.blotName]=a,(new ze).insert(e,o.formats(t,i))}else if(o.prototype instanceof ve&&!Ua(e,"\n")&&e.insert("\n"),"blotName"in o&&"formats"in o&&"function"==typeof o.formats)return Wa(e,o.blotName,o.formats(t,i),i);return e}],[Node.ELEMENT_NODE,function(t,e,i){const o=ae.keys(t),a=be.keys(t),l=de.keys(t),n={};return o.concat(a).concat(l).forEach(e=>{ | |
| 6924 | -let o=i.query(e,oe.ATTRIBUTE);null!=o&&(n[o.attrName]=o.value(t),n[o.attrName])||(o=Ra[e],null==o||o.attrName!==e&&o.keyName!==e||(n[o.attrName]=o.value(t)||void 0),o=Sa[e],null==o||o.attrName!==e&&o.keyName!==e||(o=Sa[e],n[o.attrName]=o.value(t)||void 0))}),Object.entries(n).reduce((t,e)=>{let[o,a]=e;return Wa(t,o,a,i)},e)}],[Node.ELEMENT_NODE,function(t,e,i){const o={},a=t.style||{};return"italic"===a.fontStyle&&(o.italic=!0),"underline"===a.textDecoration&&(o.underline=!0),"line-through"===a.textDecoration&&(o.strike=!0),(a.fontWeight?.startsWith("bold")||parseInt(a.fontWeight,10)>=700)&&(o.bold=!0),e=Object.entries(o).reduce((t,e)=>{let[o,a]=e;return Wa(t,o,a,i)},e),parseFloat(a.textIndent||0)>0?(new ze).insert("\t").concat(e):e}],["li",function(t,e,i){const o=i.query(t);if(null==o||"list"!==o.blotName||!Ua(e,"\n"))return e;let a=-1,l=t.parentNode;for(;null!=l;)["OL","UL"].includes(l.tagName)&&(a+=1),l=l.parentNode | |
| 6971 | +;o&&a?.replaceChild(i,o),t.slice(1).forEach(t=>{let{element:e}=t;a?.removeChild(e)})}})(t)},function(t){t.querySelector('[id^="docs-internal-guid-"]')&&((t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(t=>t.getAttribute("style")?.match(fa)).forEach(e=>{const i=t.createDocumentFragment();i.append(...e.childNodes),e.parentNode?.replaceChild(i,e)})})(t),(t=>{Array.from(t.querySelectorAll("br")).filter(t=>Ta(t.previousElementSibling)&&Ta(t.nextElementSibling)).forEach(t=>{t.parentNode?.removeChild(t)})})(t))}],va=io("quill:clipboard"),_a=[[Node.TEXT_NODE,function(t,e,i){let o=t.data;if("O:P"===t.parentElement?.tagName)return e.insert(o.trim());if(!wa(t)){if(0===o.trim().length&&o.includes("\n")&&!function(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Ua(t.previousElementSibling,e)&&!Ua(t.nextElementSibling,e)}(t,i))return e;const a=(t,e)=>{const i=e.replace(/[^\u00a0]/g,"");return i.length<1&&t?" ":i};o=o.replace(/\r\n/g," ").replace(/\n/g," "), | |
| 6972 | +o=o.replace(/\s\s+/g,a.bind(a,!0)),(null==t.previousSibling&&null!=t.parentElement&&Ua(t.parentElement,i)||t.previousSibling instanceof Element&&Ua(t.previousSibling,i))&&(o=o.replace(/^\s+/,a.bind(a,!1))),(null==t.nextSibling&&null!=t.parentElement&&Ua(t.parentElement,i)||t.nextSibling instanceof Element&&Ua(t.nextSibling,i))&&(o=o.replace(/\s+$/,a.bind(a,!1)))}return e.insert(o)}],[Node.TEXT_NODE,Aa],["br",function(t,e){return Pa(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,Aa],[Node.ELEMENT_NODE,function(t,e,i){const o=i.query(t);if(null==o)return e;if(o.prototype instanceof Se){const e={},a=o.value(t);if(null!=a)return e[o.blotName]=a,(new ze).insert(e,o.formats(t,i))}else if(o.prototype instanceof ve&&!Pa(e,"\n")&&e.insert("\n"),"blotName"in o&&"formats"in o&&"function"==typeof o.formats)return Wa(e,o.blotName,o.formats(t,i),i);return e}],[Node.ELEMENT_NODE,function(t,e,i){const o=ae.keys(t),a=be.keys(t),l=de.keys(t),n={};return o.concat(a).concat(l).forEach(e=>{ | |
| 6973 | +let o=i.query(e,oe.ATTRIBUTE);null!=o&&(n[o.attrName]=o.value(t),n[o.attrName])||(o=Ra[e],null==o||o.attrName!==e&&o.keyName!==e||(n[o.attrName]=o.value(t)||void 0),o=Sa[e],null==o||o.attrName!==e&&o.keyName!==e||(o=Sa[e],n[o.attrName]=o.value(t)||void 0))}),Object.entries(n).reduce((t,e)=>{let[o,a]=e;return Wa(t,o,a,i)},e)}],[Node.ELEMENT_NODE,function(t,e,i){const o={},a=t.style||{};return"italic"===a.fontStyle&&(o.italic=!0),"underline"===a.textDecoration&&(o.underline=!0),"line-through"===a.textDecoration&&(o.strike=!0),(a.fontWeight?.startsWith("bold")||parseInt(a.fontWeight,10)>=700)&&(o.bold=!0),e=Object.entries(o).reduce((t,e)=>{let[o,a]=e;return Wa(t,o,a,i)},e),parseFloat(a.textIndent||0)>0?(new ze).insert("\t").concat(e):e}],["li",function(t,e,i){const o=i.query(t);if(null==o||"list"!==o.blotName||!Pa(e,"\n"))return e;let a=-1,l=t.parentNode;for(;null!=l;)["OL","UL"].includes(l.tagName)&&(a+=1),l=l.parentNode | |
| 6925 | 6974 | ;return a<=0?e:e.reduce((t,e)=>e.insert?e.attributes&&"number"==typeof e.attributes.indent?t.push(e):t.insert(e.insert,{indent:a,...e.attributes||{}}):t,new ze)}],["ol, ul",function(t,e,i){const o=t;let a="OL"===o.tagName?"ordered":"bullet";const l=o.getAttribute("data-checked");return l&&(a="true"===l?"checked":"unchecked"),Wa(e,"list",a,i)}],["pre",function(t,e,i){const o=i.query("code-block");return Wa(e,"code-block",!o||!("formats"in o)||"function"!=typeof o.formats||o.formats(t,i),i)}],["tr",function(t,e,i){const o="TABLE"===t.parentElement?.tagName?t.parentElement:t.parentElement?.parentElement;return null!=o?Wa(e,"table",Array.from(o.querySelectorAll("tr")).indexOf(t)+1,i):e}],["b",Ca("bold")],["i",Ca("italic")],["strike",Ca("strike")],["style",function(){return new ze}]],Ra=[Yo,ta].reduce((t,e)=>(t[e.keyName]=e,t),{}),Sa=[Bo,Go,qo,ia,la,sa].reduce((t,e)=>(t[e.keyName]=e,t),{});function Wa(t,e,i,o){return o.query(e)?t.reduce((t,o)=>{if(!o.insert)return t |
| 6926 | -;if(o.attributes&&o.attributes[e])return t.push(o);const a=i?{[e]:i}:{};return t.insert(o.insert,{...a,...o.attributes})},new ze):t}function Ua(t,e){let i="";for(let o=t.ops.length-1;o>=0&&i.length<e.length;--o){const e=t.ops[o];if("string"!=typeof e.insert)break;i=e.insert+i}return i.slice(-1*e.length)===e}function Pa(t,e){if(!(t instanceof Element))return!1;const i=e.query(t);return!(i&&i.prototype instanceof Se)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}const ja=new WeakMap;function wa(t){return null!=t&&(ja.has(t)||("PRE"===t.tagName?ja.set(t,!0):ja.set(t,wa(t.parentNode))),ja.get(t))}function za(t,e,i,o,a){return e.nodeType===e.TEXT_NODE?o.reduce((i,o)=>o(e,i,t),new ze):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,n)=>{ | |
| 6927 | -let s=za(t,n,i,o,a);return n.nodeType===e.ELEMENT_NODE&&(s=i.reduce((e,i)=>i(n,e,t),s),s=(a.get(n)||[]).reduce((e,i)=>i(n,e,t),s)),l.concat(s)},new ze):new ze}function Ca(t){return(e,i,o)=>Wa(i,t,!0,o)}function Aa(t,e,i){if(!Ua(e,"\n")){if(Pa(t,i)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&t.nextSibling){let o=t.nextSibling;for(;null!=o;){if(Pa(o,i))return e.insert("\n");const t=i.query(o);if(t&&t.prototype instanceof Ei)return e.insert("\n");o=o.firstChild}}}return e}function La(t,e){let i=e;for(let e=t.length-1;e>=0;e-=1){const o=t[e];t[e]={delta:i.transform(o.delta,!0),range:o.range&&Da(o.range,i)},i=o.delta.transform(i),0===t[e].delta.length()&&t.splice(e,1)}}function Da(t,e){if(!t)return t;const i=e.transformPosition(t.index);return{index:i,length:e.transformPosition(t.index+t.length)-i}}class Na extends yo{constructor(t,e){super(t,e),t.root.addEventListener("drop",e=>{e.preventDefault();let i=null | |
| 6975 | +;if(o.attributes&&o.attributes[e])return t.push(o);const a=i?{[e]:i}:{};return t.insert(o.insert,{...a,...o.attributes})},new ze):t}function Pa(t,e){let i="";for(let o=t.ops.length-1;o>=0&&i.length<e.length;--o){const e=t.ops[o];if("string"!=typeof e.insert)break;i=e.insert+i}return i.slice(-1*e.length)===e}function Ua(t,e){if(!(t instanceof Element))return!1;const i=e.query(t);return!(i&&i.prototype instanceof Se)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}const ja=new WeakMap;function wa(t){return null!=t&&(ja.has(t)||("PRE"===t.tagName?ja.set(t,!0):ja.set(t,wa(t.parentNode))),ja.get(t))}function za(t,e,i,o,a){return e.nodeType===e.TEXT_NODE?o.reduce((i,o)=>o(e,i,t),new ze):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,n)=>{ | |
| 6976 | +let s=za(t,n,i,o,a);return n.nodeType===e.ELEMENT_NODE&&(s=i.reduce((e,i)=>i(n,e,t),s),s=(a.get(n)||[]).reduce((e,i)=>i(n,e,t),s)),l.concat(s)},new ze):new ze}function Ca(t){return(e,i,o)=>Wa(i,t,!0,o)}function Aa(t,e,i){if(!Pa(e,"\n")){if(Ua(t,i)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&t.nextSibling){let o=t.nextSibling;for(;null!=o;){if(Ua(o,i))return e.insert("\n");const t=i.query(o);if(t&&t.prototype instanceof Ei)return e.insert("\n");o=o.firstChild}}}return e}function La(t,e){let i=e;for(let e=t.length-1;e>=0;e-=1){const o=t[e];t[e]={delta:i.transform(o.delta,!0),range:o.range&&Da(o.range,i)},i=o.delta.transform(i),0===t[e].delta.length()&&t.splice(e,1)}}function Da(t,e){if(!t)return t;const i=e.transformPosition(t.index);return{index:i,length:e.transformPosition(t.index+t.length)-i}}class Na extends yo{constructor(t,e){super(t,e),t.root.addEventListener("drop",e=>{e.preventDefault();let i=null | |
| 6928 | 6977 | ;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(e.clientX,e.clientY);else if(document.caretPositionFromPoint){const t=document.caretPositionFromPoint(e.clientX,e.clientY);i=document.createRange(),i.setStart(t.offsetNode,t.offset),i.setEnd(t.offsetNode,t.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const i=t.selection.normalizedToRange(o);e.dataTransfer?.files&&this.upload(i,e.dataTransfer.files)}})}upload(t,e){const i=[];Array.from(e).forEach(t=>{t&&this.options.mimetypes?.includes(t.type)&&i.push(t)}),i.length>0&&this.options.handler.call(this,t,i)}}Na.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image"))return;const i=e.map(t=>new Promise(e=>{const i=new FileReader;i.onload=()=>{e(i.result)},i.readAsDataURL(t)}));Promise.all(i).then(e=>{const i=e.reduce((t,e)=>t.insert({image:e}),(new ze).retain(t.index).delete(t.length));this.quill.updateContents(i,ao.sources.USER), |
| 6929 | -this.quill.setSelection(t.index+e.length,ao.sources.SILENT)})}};const Ia=Na,Va=["insertText","insertReplacementText"],Oa=/Mac/i.test(navigator.platform);Po.register({"blots/block":Bi,"blots/block/embed":Ei,"blots/break":Ii,"blots/container":Do,"blots/cursor":Gi,"blots/embed":Ho,"blots/inline":Xi,"blots/scroll":class extends Pe{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Bi;static allowedChildren=[Bi,Ei,Do];constructor(t,e,i){let{emitter:o}=i;super(t,e),this.emitter=o,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",t=>this.handleDragStart(t))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(ao.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(ao.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(ao.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){ | |
| 6978 | +this.quill.setSelection(t.index+e.length,ao.sources.SILENT)})}};const Ia=Na,Va=["insertText","insertReplacementText"],Oa=/Mac/i.test(navigator.platform);Uo.register({"blots/block":Bi,"blots/block/embed":Ei,"blots/break":Ii,"blots/container":Do,"blots/cursor":Gi,"blots/embed":Ho,"blots/inline":Xi,"blots/scroll":class extends Ue{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Bi;static allowedChildren=[Bi,Ei,Do];constructor(t,e,i){let{emitter:o}=i;super(t,e),this.emitter=o,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",t=>this.handleDragStart(t))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(ao.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(ao.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(ao.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){ | |
| 6930 | 6979 | const[i,o]=this.line(t),[a]=this.line(t+e);if(super.deleteAt(t,e),null!=a&&i!==a&&o>0){if(i instanceof Ei||a instanceof Ei)return void this.optimize();const t=a.children.head instanceof Ii?null:a.children.head;i.moveChildren(a,t),i.remove()}this.optimize()}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,i,o){super.formatAt(t,e,i,o),this.optimize()}insertAt(t,e,i){if(t>=this.length())if(null==i||null==this.scroll.query(e,oe.BLOCK)){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t),null==i&&e.endsWith("\n")?t.insertAt(0,e.slice(0,-1),i):t.insertAt(0,e,i)}else{const t=this.scroll.create(e,i);this.appendChild(t)}else super.insertAt(t,e,i);this.optimize()}insertBefore(t,e){if(t.statics.scope===oe.INLINE_BLOT){const i=this.scroll.create(this.statics.defaultChild.blotName);i.appendChild(t),super.insertBefore(i,e)}else super.insertBefore(t,e)} |
| 6931 | 6980 | insertContents(t,e){const i=this.deltaToRenderBlocks(e.concat((new ze).insert("\n"))),o=i.pop();if(null==o)return;this.batchStart();const a=i.shift();if(a){const e="block"===a.type&&(0===a.delta.length()||!this.descendant(Ei,t)[0]&&t<this.length()),i="block"===a.type?a.delta:(new ze).insert({[a.key]:a.value});Vo(this,t,i);const o="block"===a.type?1:0,l=t+i.length()+o;e&&this.insertAt(l-1,"\n");const n=qi(this.line(t)[0]),s=ze.AttributeMap.diff(n,a.attributes)||{};Object.keys(s).forEach(t=>{this.formatAt(l-1,1,t,s[t])}),t=l}let[l,n]=this.children.find(t);i.length&&(l&&(l=l.split(n),n=0),i.forEach(t=>{if("block"===t.type)Vo(this.createBlock(t.attributes,l||void 0),0,t.delta);else{const e=this.create(t.key,t.value);this.insertBefore(e,l||void 0),Object.keys(t.attributes).forEach(i=>{e.format(i,t.attributes[i])})}})),"block"===o.type&&o.delta.length()&&Vo(this,l?l.offset(l.scroll)+n:this.length(),o.delta),this.batchEnd(),this.optimize()}isEnabled(){ |
| 6932 | 6981 | return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[i,o]=e;return i instanceof ge?[i,o]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(No,t)}lines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;const i=(t,e,o)=>{let a=[],l=o;return t.children.forEachAt(e,o,(t,e,o)=>{No(t)?a.push(t):t instanceof Re&&(a=a.concat(i(t,e,l))),l-=o}),a};return i(this,t,e)}optimize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(ao.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));let e=ao.sources.USER;"string"==typeof t&&(e=t), |
| 6933 | 6982 | Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter(t=>{let{target:e}=t;const i=this.find(e,!0);return i&&!Io(i)})).length>0&&this.emitter.emit(ao.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(ao.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,i){const[o]=this.descendant(t=>t instanceof Ei,t);o&&o.statics.blotName===e&&Io(o)&&o.updateContent(i)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let i=new ze;return t.forEach(t=>{const o=t?.insert;if(o)if("string"==typeof o){const a=o.split("\n");a.slice(0,-1).forEach(o=>{i.insert(o,t.attributes),e.push({type:"block",delta:i,attributes:t.attributes??{}}),i=new ze});const l=a[a.length-1];l&&i.insert(l,t.attributes)}else{const a=Object.keys(o)[0];if(!a)return;this.query(a,oe.INLINE)?i.push(t):(i.length()&&e.push({type:"block",delta:i,attributes:{}}),i=new ze,e.push({type:"blockEmbed",key:a,value:o[a],attributes:t.attributes??{}}))}}),i.length()&&e.push({type:"block", |
| 6934 | 6983 | delta:i,attributes:{}}),e}createBlock(t,e){let i;const o={};Object.entries(t).forEach(t=>{let[e,a]=t;null!=this.query(e,oe.BLOCK&oe.BLOT)?i=e:o[e]=a});const a=this.create(i||this.statics.defaultChild.blotName,i?t[i]:void 0);this.insertBefore(a,e||void 0);const l=a.length();return Object.entries(o).forEach(t=>{let[e,i]=t;a.formatAt(0,l,e,i)}),a}},"blots/text":Vi,"modules/clipboard":class extends yo{static DEFAULTS={matchers:[]};constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",t=>this.onCaptureCopy(t,!1)),this.quill.root.addEventListener("cut",t=>this.onCaptureCopy(t,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],_a.concat(this.options.matchers??[]).forEach(t=>{let[e,i]=t;this.addMatcher(e,i)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:i}=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o[Ko.blotName])return(new ze).insert(i||"",{[Ko.blotName]:o[Ko.blotName]}) |
| 6935 | -;if(!e)return(new ze).insert(i||"",o);const a=this.convertHTML(e);return Ua(a,"\n")&&(null==a.ops[a.ops.length-1].attributes||o.table)?a.compose((new ze).retain(a.length()-1).delete(1)):a}normalizeHTML(t){(t=>{t.documentElement&&ka.forEach(e=>{e(t)})})(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const i=e.body,o=new WeakMap,[a,l]=this.prepareMatching(i,o);return za(this.quill.scroll,i,a,l,o)}dangerouslyPasteHTML(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Po.sources.API;if("string"==typeof t){const i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,Po.sources.SILENT)}else{const o=this.convert({html:e,text:""});this.quill.updateContents((new ze).retain(t).concat(o),i),this.quill.setSelection(t+o.length(),Po.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault() | |
| 6984 | +;if(!e)return(new ze).insert(i||"",o);const a=this.convertHTML(e);return Pa(a,"\n")&&(null==a.ops[a.ops.length-1].attributes||o.table)?a.compose((new ze).retain(a.length()-1).delete(1)):a}normalizeHTML(t){(t=>{t.documentElement&&ka.forEach(e=>{e(t)})})(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const i=e.body,o=new WeakMap,[a,l]=this.prepareMatching(i,o);return za(this.quill.scroll,i,a,l,o)}dangerouslyPasteHTML(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uo.sources.API;if("string"==typeof t){const i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,Uo.sources.SILENT)}else{const o=this.convert({html:e,text:""});this.quill.updateContents((new ze).retain(t).concat(o),i),this.quill.setSelection(t+o.length(),Uo.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault() | |
| 6936 | 6985 | ;const[i]=this.quill.selection.getRange();if(null==i)return;const{html:o,text:a}=this.onCopy(i,e);t.clipboardData?.setData("text/plain",a),t.clipboardData?.setData("text/html",o),e&&ga({range:i,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(t=>"#"!==t[0]).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(null==e)return;const i=t.clipboardData?.getData("text/html");let o=t.clipboardData?.getData("text/plain");if(!i&&!o){const e=t.clipboardData?.getData("text/uri-list");e&&(o=this.normalizeURIList(e))}const a=Array.from(t.clipboardData?.files||[]);if(!i&&a.length>0)this.quill.uploader.upload(e,a);else{if(i&&a.length>0){const t=(new DOMParser).parseFromString(i,"text/html");if(1===t.body.childElementCount&&"IMG"===t.body.firstElementChild?.tagName)return void this.quill.uploader.upload(e,a)}this.onPaste(e,{html:i,text:o})}}onCopy(t){const e=this.quill.getText(t);return{ |
| 6937 | -html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:i,html:o}=e;const a=this.quill.getFormat(t.index),l=this.convert({text:i,html:o},a);va.log("onPaste",l,{text:i,html:o});const n=(new ze).retain(t.index).delete(t.length).concat(l);this.quill.updateContents(n,Po.sources.USER),this.quill.setSelection(n.length()-t.length,Po.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const i=[],o=[];return this.matchers.forEach(a=>{const[l,n]=a;switch(l){case Node.TEXT_NODE:o.push(n);break;case Node.ELEMENT_NODE:i.push(n);break;default:Array.from(t.querySelectorAll(l)).forEach(t=>{if(e.has(t)){const i=e.get(t);i?.push(n)}else e.set(t,[n])})}}),[i,o]}},"modules/history":class extends yo{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e),this.quill.on(Po.events.EDITOR_CHANGE,(t,e,i,o)=>{ | |
| 6938 | -t===Po.events.SELECTION_CHANGE?e&&o!==Po.sources.SILENT&&(this.currentRange=e):t===Po.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&o!==Po.sources.USER?this.transform(e):this.record(e,i)),this.currentRange=Da(this.currentRange,e))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",t=>{"historyUndo"===t.inputType?(this.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(this.redo(),t.preventDefault())})}change(t,e){if(0===this.stack[t].length)return;const i=this.stack[t].pop();if(!i)return;const o=this.quill.getContents(),a=i.delta.invert(o);this.stack[e].push({delta:a,range:Da(i.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Po.sources.USER), | |
| 6939 | -this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let i=t.invert(e),o=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const t=this.stack.undo.pop();t&&(i=i.compose(t.delta),o=t.range)}else this.lastRecorded=a;0!==i.length()&&(this.stack.undo.push({delta:i,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){La(this.stack.undo,t),La(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Po.sources.USER);else{const e=function(t,e){const i=e.reduce((t,e)=>t+(e.delete||0),0);let o=e.length()-i;return function(t,e){const i=e.ops[e.ops.length-1] | |
| 6940 | -;return null!=i&&(null!=i.insert?"string"==typeof i.insert&&i.insert.endsWith("\n"):null!=i.attributes&&Object.keys(i.attributes).some(e=>null!=t.query(e,oe.BLOCK)))}(t,e)&&(o-=1),o}(this.quill.scroll,t.delta);this.quill.setSelection(e,Po.sources.USER)}}},"modules/keyboard":ca,"modules/uploader":Ia,"modules/input":class extends yo{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",t=>{this.handleBeforeInput(t)}),/Android/i.test(navigator.userAgent)||t.on(Po.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){ga({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){const i=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents((new ze).retain(t.index).insert(e,i),Po.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,Po.sources.SILENT),!0}handleBeforeInput(t){ | |
| 6986 | +html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:i,html:o}=e;const a=this.quill.getFormat(t.index),l=this.convert({text:i,html:o},a);va.log("onPaste",l,{text:i,html:o});const n=(new ze).retain(t.index).delete(t.length).concat(l);this.quill.updateContents(n,Uo.sources.USER),this.quill.setSelection(n.length()-t.length,Uo.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const i=[],o=[];return this.matchers.forEach(a=>{const[l,n]=a;switch(l){case Node.TEXT_NODE:o.push(n);break;case Node.ELEMENT_NODE:i.push(n);break;default:Array.from(t.querySelectorAll(l)).forEach(t=>{if(e.has(t)){const i=e.get(t);i?.push(n)}else e.set(t,[n])})}}),[i,o]}},"modules/history":class extends yo{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e),this.quill.on(Uo.events.EDITOR_CHANGE,(t,e,i,o)=>{ | |
| 6987 | +t===Uo.events.SELECTION_CHANGE?e&&o!==Uo.sources.SILENT&&(this.currentRange=e):t===Uo.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&o!==Uo.sources.USER?this.transform(e):this.record(e,i)),this.currentRange=Da(this.currentRange,e))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",t=>{"historyUndo"===t.inputType?(this.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(this.redo(),t.preventDefault())})}change(t,e){if(0===this.stack[t].length)return;const i=this.stack[t].pop();if(!i)return;const o=this.quill.getContents(),a=i.delta.invert(o);this.stack[e].push({delta:a,range:Da(i.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Uo.sources.USER), | |
| 6988 | +this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let i=t.invert(e),o=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const t=this.stack.undo.pop();t&&(i=i.compose(t.delta),o=t.range)}else this.lastRecorded=a;0!==i.length()&&(this.stack.undo.push({delta:i,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){La(this.stack.undo,t),La(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Uo.sources.USER);else{const e=function(t,e){const i=e.reduce((t,e)=>t+(e.delete||0),0);let o=e.length()-i;return function(t,e){const i=e.ops[e.ops.length-1] | |
| 6989 | +;return null!=i&&(null!=i.insert?"string"==typeof i.insert&&i.insert.endsWith("\n"):null!=i.attributes&&Object.keys(i.attributes).some(e=>null!=t.query(e,oe.BLOCK)))}(t,e)&&(o-=1),o}(this.quill.scroll,t.delta);this.quill.setSelection(e,Uo.sources.USER)}}},"modules/keyboard":ca,"modules/uploader":Ia,"modules/input":class extends yo{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",t=>{this.handleBeforeInput(t)}),/Android/i.test(navigator.userAgent)||t.on(Uo.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){ga({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){const i=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents((new ze).retain(t.index).insert(e,i),Uo.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,Uo.sources.SILENT),!0}handleBeforeInput(t){ | |
| 6941 | 6990 | if(this.quill.composition.isComposing||t.defaultPrevented||!Va.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||!0===e.collapsed)return;const i=function(t){return"string"==typeof t.data?t.data:t.dataTransfer?.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null}(t);if(null==i)return;const o=this.quill.selection.normalizeNative(e),a=o?this.quill.selection.normalizedToRange(o):null;a&&this.replaceText(a,i)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}},"modules/uiNode":class extends yo{isListening=!1;selectionChangeDeadline=0;constructor(t,e){super(t,e),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:i,event:o}=e;if(!(i instanceof He&&i.uiNode))return!0;const a="rtl"===getComputedStyle(i.domNode).direction |
| 6942 | -;return!!(a&&"ArrowRight"!==o.key||!a&&"ArrowLeft"!==o.key)||(this.quill.setSelection(t.index-1,t.length+(o.shiftKey?1:0),Po.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&(t=>"ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||!(!Oa||"a"!==t.key||!0!==t.ctrlKey))(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(!0!==e.collapsed||0!==e.startOffset)return;const i=this.quill.scroll.find(e.startContainer);if(!(i instanceof He&&i.uiNode))return;const o=document.createRange();o.setStartAfter(i.uiNode), | |
| 6943 | -o.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(o)}}});const Ya=Po,Xa=new class extends be{add(t,e){let i=0;if("+1"===e||"-1"===e){const o=this.value(t)||0;i="+1"===e?o+1:o-1}else"number"==typeof e&&(i=e);return 0===i?(this.remove(t),!0):super.add(t,i.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}("indent","ql-indent",{scope:oe.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),Ba=Xa;class Ea extends Do{}Ea.blotName="list-container",Ea.tagName="OL";class Fa extends Bi{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Po.register(Ea)}constructor(t,e){super(t,e);const i=e.ownerDocument.createElement("span"),o=i=>{if(!t.isEnabled())return;const o=this.statics.formats(e,t);"checked"===o?(this.format("list","unchecked"),i.preventDefault()):"unchecked"===o&&(this.format("list","checked"),i.preventDefault()) | |
| 6991 | +;return!!(a&&"ArrowRight"!==o.key||!a&&"ArrowLeft"!==o.key)||(this.quill.setSelection(t.index-1,t.length+(o.shiftKey?1:0),Uo.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&(t=>"ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||!(!Oa||"a"!==t.key||!0!==t.ctrlKey))(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(!0!==e.collapsed||0!==e.startOffset)return;const i=this.quill.scroll.find(e.startContainer);if(!(i instanceof He&&i.uiNode))return;const o=document.createRange();o.setStartAfter(i.uiNode), | |
| 6992 | +o.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(o)}}});const Ya=Uo,Xa=new class extends be{add(t,e){let i=0;if("+1"===e||"-1"===e){const o=this.value(t)||0;i="+1"===e?o+1:o-1}else"number"==typeof e&&(i=e);return 0===i?(this.remove(t),!0):super.add(t,i.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}("indent","ql-indent",{scope:oe.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),Ba=Xa;class Ea extends Do{}Ea.blotName="list-container",Ea.tagName="OL";class Fa extends Bi{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Uo.register(Ea)}constructor(t,e){super(t,e);const i=e.ownerDocument.createElement("span"),o=i=>{if(!t.isEnabled())return;const o=this.statics.formats(e,t);"checked"===o?(this.format("list","unchecked"),i.preventDefault()):"unchecked"===o&&(this.format("list","checked"),i.preventDefault()) | |
| 6944 | 6993 | };i.addEventListener("mousedown",o),i.addEventListener("touchstart",o),this.attachUI(i)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}Fa.blotName="list",Fa.tagName="LI",Ea.allowedChildren=[Fa],Fa.requiredContainer=Ea;const qa=class extends Xi{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};class $a extends Xi{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return Ga(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL} |
| 6945 | 6994 | format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("href",this.constructor.sanitize(e)):super.format(t,e)}}function Ga(t,e){const i=document.createElement("a");i.href=t;const o=i.href.slice(0,i.href.indexOf(":"));return e.indexOf(o)>-1}const Za=["alt","height","width"],Ka=["height","width"],Ja=new be("code-token","hljs",{scope:oe.INLINE});class Qa extends Xi{static formats(t,e){for(;null!=t&&t!==e.domNode;){if(t.classList&&t.classList.contains(Ko.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,i){super(t,e,i),Ja.add(this.domNode,i)}format(t,e){t!==Qa.blotName?super.format(t,e):e?Ja.add(this.domNode,e):(Ja.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Ja.value(this.domNode)||this.unwrap()}}Qa.blotName="code-token",Qa.className="ql-token";class tl extends Ko{static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("data-language",t),e}static formats(t){ |
| 6946 | 6995 | return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),Qa.blotName,!1),super.replaceWith(t,e)}}class el extends Zo{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===tl.blotName&&(this.forceNext=!0,this.children.forEach(i=>{i.format(t,e)}))}formatAt(t,e,i,o){i===tl.blotName&&(this.forceNext=!0),super.formatAt(t,e,i,o)}highlight(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const i=`${Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).map(t=>t.textContent).join("\n")}\n`,o=tl.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==i){if(i.trim().length>0||null==this.cachedText){const e=this.children.reduce((t,e)=>t.concat(Fi(e,!1)),new ze),a=t(i,o);e.diff(a).reduce((t,e)=>{let{retain:i,attributes:o}=e |
| 6947 | -;return i?(o&&Object.keys(o).forEach(e=>{[tl.blotName,Qa.blotName].includes(e)&&this.formatAt(t,i,e,o[e])}),t+i):t},0)}this.cachedText=i,this.forceNext=!1}}html(t,e){const[i]=this.children.find(t);return`<pre data-language="${i?tl.formats(i.domNode):"plain"}">\n${Oi(this.code(t,e))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const t=tl.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}el.allowedChildren=[tl],tl.requiredContainer=el,tl.allowedChildren=[Qa,Gi,Vi,Ii];class il extends yo{static register(){Po.register(Qa,!0),Po.register(tl,!0),Po.register(el,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((t,e)=>{let{key:i}=e;return t[i]=!0,t},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()} | |
| 6948 | -initListener(){this.quill.on(Po.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof el))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(t=>{let{key:i,label:o}=t;const a=e.ownerDocument.createElement("option");a.textContent=o,a.setAttribute("value",i),e.appendChild(a)}),e.addEventListener("change",()=>{t.format(tl.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=tl.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Po.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(Po.sources.USER);const i=this.quill.getSelection();(null==t?this.quill.scroll.descendants(el):[t]).forEach(t=>{ | |
| 6949 | -t.highlight(this.highlightBlot,e)}),this.quill.update(Po.sources.SILENT),null!=i&&this.quill.setSelection(i,Po.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(e=this.languages[e]?e:"plain","plain"===e)return Oi(t).split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Ko.blotName]:e}),t.insert(i)),new ze);const i=this.quill.root.ownerDocument.createElement("div");return i.classList.add(Ko.className),i.innerHTML=((t,e,i)=>{if("string"==typeof t.versionString){const o=t.versionString.split(".")[0];if(parseInt(o,10)>=11)return t.highlight(i,{language:e}).value}return t.highlight(e,i).value})(this.options.hljs,e,t),za(this.quill.scroll,i,[(t,e)=>{const i=Ja.value(t);return i?e.compose((new ze).retain(e.length(),{[Qa.blotName]:i})):e}],[(t,i)=>t.data.split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Ko.blotName]:e}),t.insert(i)),i)],new WeakMap)}}il.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{ | |
| 6996 | +;return i?(o&&Object.keys(o).forEach(e=>{[tl.blotName,Qa.blotName].includes(e)&&this.formatAt(t,i,e,o[e])}),t+i):t},0)}this.cachedText=i,this.forceNext=!1}}html(t,e){const[i]=this.children.find(t);return`<pre data-language="${i?tl.formats(i.domNode):"plain"}">\n${Oi(this.code(t,e))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const t=tl.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}el.allowedChildren=[tl],tl.requiredContainer=el,tl.allowedChildren=[Qa,Gi,Vi,Ii];class il extends yo{static register(){Uo.register(Qa,!0),Uo.register(tl,!0),Uo.register(el,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((t,e)=>{let{key:i}=e;return t[i]=!0,t},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()} | |
| 6997 | +initListener(){this.quill.on(Uo.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof el))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(t=>{let{key:i,label:o}=t;const a=e.ownerDocument.createElement("option");a.textContent=o,a.setAttribute("value",i),e.appendChild(a)}),e.addEventListener("change",()=>{t.format(tl.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=tl.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Uo.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(Uo.sources.USER);const i=this.quill.getSelection();(null==t?this.quill.scroll.descendants(el):[t]).forEach(t=>{ | |
| 6998 | +t.highlight(this.highlightBlot,e)}),this.quill.update(Uo.sources.SILENT),null!=i&&this.quill.setSelection(i,Uo.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(e=this.languages[e]?e:"plain","plain"===e)return Oi(t).split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Ko.blotName]:e}),t.insert(i)),new ze);const i=this.quill.root.ownerDocument.createElement("div");return i.classList.add(Ko.className),i.innerHTML=((t,e,i)=>{if("string"==typeof t.versionString){const o=t.versionString.split(".")[0];if(parseInt(o,10)>=11)return t.highlight(i,{language:e}).value}return t.highlight(e,i).value})(this.options.hljs,e,t),za(this.quill.scroll,i,[(t,e)=>{const i=Ja.value(t);return i?e.compose((new ze).retain(e.length(),{[Qa.blotName]:i})):e}],[(t,i)=>t.data.split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Ko.blotName]:e}),t.insert(i)),i)],new WeakMap)}}il.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{ | |
| 6950 | 6999 | key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class ol extends Bi{static blotName="table";static tagName="TD";static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",sl()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===ol.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class al extends Do{static blotName="table-row";static tagName="TR";checkMerge(){ |
| 6951 | 7000 | if(super.checkMerge()&&null!=this.next.children.head){const t=this.children.head.formats(),e=this.children.tail.formats(),i=this.next.children.head.formats(),o=this.next.children.tail.formats();return t.table===e.table&&t.table===i.table&&t.table===o.table}return!1}optimize(t){super.optimize(t),this.children.forEach(t=>{if(null==t.next)return;const e=t.formats(),i=t.next.formats();if(e.table!==i.table){const e=this.splitAfter(t);e&&e.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class ll extends Do{static blotName="table-body";static tagName="TBODY"}class nl extends Do{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(al),e=t.reduce((t,e)=>Math.max(e.children.length,t),0);t.forEach(t=>{new Array(e-t.children.length).fill(0).forEach(()=>{let e;null!=t.children.head&&(e=ol.formats(t.children.head.domNode)) |
| 6952 | 7001 | ;const i=this.scroll.create(ol.blotName,e);t.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(ll);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const i=e.children.at(t);null!=i&&i.remove()})}insertColumn(t){const[e]=this.descendant(ll);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const i=e.children.at(t),o=ol.formats(e.children.head.domNode),a=this.scroll.create(ol.blotName,o);e.insertBefore(a,i)})}insertRow(t){const[e]=this.descendant(ll);if(null==e||null==e.children.head)return;const i=sl(),o=this.scroll.create(al.blotName);e.children.head.children.forEach(()=>{const t=this.scroll.create(ol.blotName,i);o.appendChild(t)});const a=e.children.at(t);e.insertBefore(o,a)}rows(){const t=this.children.head;return null==t?[]:t.children.map(t=>t)}}function sl(){return`row-${Math.random().toString(36).slice(2,6)}`}nl.allowedChildren=[ll],ll.requiredContainer=nl,ll.allowedChildren=[al], |
| 6953 | 7002 | al.requiredContainer=ll,al.allowedChildren=[ol],ol.requiredContainer=al;const rl=io("quill:toolbar");class bl extends yo{constructor(t,e){if(super(t,e),Array.isArray(this.options.container)){const e=document.createElement("div");e.setAttribute("role","toolbar"),function(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(e=>{const i=document.createElement("span");i.classList.add("ql-formats"),e.forEach(t=>{if("string"==typeof t)cl(i,t);else{const e=Object.keys(t)[0],o=t[e];Array.isArray(o)?function(t,e,i){const o=document.createElement("select");o.classList.add(`ql-${e}`),i.forEach(t=>{const e=document.createElement("option");!1!==t?e.setAttribute("value",String(t)):e.setAttribute("selected","selected"),o.appendChild(e)}),t.appendChild(o)}(i,e,o):cl(i,e,o)}}),t.appendChild(i)})}(e,this.options.container),t.container?.parentNode?.insertBefore(e,t.container),this.container=e |
| 6954 | -}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(t=>{const e=this.options.handlers?.[t];e&&this.addHandler(t,e)}),Array.from(this.container.querySelectorAll("button, select")).forEach(t=>{this.attach(t)}),this.quill.on(Po.events.EDITOR_CHANGE,()=>{const[t]=this.quill.selection.getRange();this.update(t)})):rl.error("Container required for toolbar",this.options)}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(t=>0===t.indexOf("ql-"));if(!e)return;if(e=e.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[e]&&null==this.quill.scroll.query(e))return void rl.warn("ignoring attaching to nonexistent format",e,t);const i="SELECT"===t.tagName?"change":"click" | |
| 6955 | -;t.addEventListener(i,i=>{let o;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];o=!e.hasAttribute("selected")&&(e.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,o);else if(this.quill.scroll.query(e).prototype instanceof Se){if(o=prompt(`Enter ${e}`),!o)return;this.quill.updateContents((new ze).retain(a.index).delete(a.length).insert({[e]:o}),Po.sources.USER)}else this.quill.format(e,o,Po.sources.USER);this.update(a)}),this.controls.push([e,t])}update(t){const e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(i=>{const[o,a]=i;if("SELECT"===a.tagName){let i=null;if(null==t)i=null;else if(null==e[o])i=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){let t=e[o];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),i=a.querySelector(`option[value="${t}"]`)} | |
| 7003 | +}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(t=>{const e=this.options.handlers?.[t];e&&this.addHandler(t,e)}),Array.from(this.container.querySelectorAll("button, select")).forEach(t=>{this.attach(t)}),this.quill.on(Uo.events.EDITOR_CHANGE,()=>{const[t]=this.quill.selection.getRange();this.update(t)})):rl.error("Container required for toolbar",this.options)}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(t=>0===t.indexOf("ql-"));if(!e)return;if(e=e.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[e]&&null==this.quill.scroll.query(e))return void rl.warn("ignoring attaching to nonexistent format",e,t);const i="SELECT"===t.tagName?"change":"click" | |
| 7004 | +;t.addEventListener(i,i=>{let o;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];o=!e.hasAttribute("selected")&&(e.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,o);else if(this.quill.scroll.query(e).prototype instanceof Se){if(o=prompt(`Enter ${e}`),!o)return;this.quill.updateContents((new ze).retain(a.index).delete(a.length).insert({[e]:o}),Uo.sources.USER)}else this.quill.format(e,o,Uo.sources.USER);this.update(a)}),this.controls.push([e,t])}update(t){const e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(i=>{const[o,a]=i;if("SELECT"===a.tagName){let i=null;if(null==t)i=null;else if(null==e[o])i=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){let t=e[o];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),i=a.querySelector(`option[value="${t}"]`)} | |
| 6956 | 7005 | null==i?(a.value="",a.selectedIndex=-1):i.selected=!0}else if(null==t)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const t=e[o],i=t===a.getAttribute("value")||null!=t&&t.toString()===a.getAttribute("value")||null==t&&!a.getAttribute("value");a.classList.toggle("ql-active",i),a.setAttribute("aria-pressed",i.toString())}else{const t=null!=e[o];a.classList.toggle("ql-active",t),a.setAttribute("aria-pressed",t.toString())}})}}function cl(t,e,i){const o=document.createElement("button");o.setAttribute("type","button"),o.classList.add(`ql-${e}`),o.setAttribute("aria-pressed","false"),null!=i?(o.value=i,o.setAttribute("aria-label",`${e}: ${i}`)):o.setAttribute("aria-label",e),t.appendChild(o)}bl.DEFAULTS={},bl.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(null!=t)if(0===t.length){const t=this.quill.getFormat();Object.keys(t).forEach(t=>{ |
| 6957 | -null!=this.quill.scroll.query(t,oe.INLINE)&&this.quill.format(t,!1,Po.sources.USER)})}else this.quill.removeFormat(t.index,t.length,Po.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",Po.sources.USER):t||"right"!==e||this.quill.format("align",!1,Po.sources.USER),this.quill.format("direction",t,Po.sources.USER)},indent(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e),o=parseInt(i.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===i.direction&&(e*=-1),this.quill.format("indent",o+e,Po.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Po.sources.USER)},list(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,Po.sources.USER):this.quill.format("list","unchecked",Po.sources.USER):this.quill.format("list",t,Po.sources.USER)}}} | |
| 7006 | +null!=this.quill.scroll.query(t,oe.INLINE)&&this.quill.format(t,!1,Uo.sources.USER)})}else this.quill.removeFormat(t.index,t.length,Uo.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",Uo.sources.USER):t||"right"!==e||this.quill.format("align",!1,Uo.sources.USER),this.quill.format("direction",t,Uo.sources.USER)},indent(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e),o=parseInt(i.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===i.direction&&(e*=-1),this.quill.format("indent",o+e,Uo.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Uo.sources.USER)},list(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,Uo.sources.USER):this.quill.format("list","unchecked",Uo.sources.USER):this.quill.format("list",t,Uo.sources.USER)}}} | |
| 6958 | 7007 | ;const dl='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',ul={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', |
| 6959 | 7008 | justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'}, |
| 6960 | 7009 | background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', |
| 6961 | 7010 | blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:dl,"code-block":dl, |
| @@ -6985,18 +7034,18 @@ | ||
| 6985 | 7034 | ;if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){const i=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&Rl(t,Hl,"background"===i?"#ffffff":"#000000"),new gl(t,e[i])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?Rl(t,Ml):t.classList.contains("ql-header")?Rl(t,xl):t.classList.contains("ql-size")&&Rl(t,kl)),new hl(t)}),this.quill.on(ao.events.EDITOR_CHANGE,()=>{this.pickers.forEach(t=>{t.update()})})}}vl.DEFAULTS=ie({},ko.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""}), |
| 6986 | 7035 | this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class _l extends yl{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{"Enter"===t.key?(this.save(),t.preventDefault()):"Escape"===t.key&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const i=this.quill.getBounds(this.quill.selection.savedRange);null!=i&&this.position(i),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){ |
| 6987 | 7036 | this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,ao.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,ao.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=function(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:t}(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(null!=e){const i=e.index+e.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,ao.sources.USER), |
| 6988 | 7037 | "formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",ao.sources.USER),this.quill.setSelection(i+2,ao.sources.USER)}break}}this.textbox.value="",this.hide()}}function Rl(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(e=>{const o=document.createElement("option");e===i?o.setAttribute("selected","selected"):o.setAttribute("value",String(e)),t.appendChild(o)})}const Sl=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Wl extends _l{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(t,e){super(t,e),this.quill.on(ao.events.EDITOR_CHANGE,(t,e,i,o)=>{if(t===ao.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===ao.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="", |
| 6989 | -this.root.style.width=`${this.root.offsetWidth}px`;const t=this.quill.getLines(e.index,e.length);if(1===t.length){const t=this.quill.getBounds(e);null!=t&&this.position(t)}else{const i=t[t.length-1],o=this.quill.getIndex(i),a=Math.min(i.length()-1,e.index+e.length-o),l=this.quill.getBounds(new no(o,a));null!=l&&this.position(l)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ao.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(null!=t){const e=this.quill.getBounds(t);null!=e&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),i=this.root.querySelector(".ql-tooltip-arrow");return i.style.marginLeft="",0!==e&&(i.style.marginLeft=-1*e-i.offsetWidth/2+"px"),e}}class Ul extends vl{constructor(t,e){ | |
| 6990 | -null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Sl),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Wl(this.quill,this.options.bounds),null!=t.container&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),ul),this.buildPickers(t.container.querySelectorAll("select"),ul))}}Ul.DEFAULTS=ie({},vl.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Po.sources.USER)}}}}});const Pl=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class jl extends _l{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("") | |
| 7038 | +this.root.style.width=`${this.root.offsetWidth}px`;const t=this.quill.getLines(e.index,e.length);if(1===t.length){const t=this.quill.getBounds(e);null!=t&&this.position(t)}else{const i=t[t.length-1],o=this.quill.getIndex(i),a=Math.min(i.length()-1,e.index+e.length-o),l=this.quill.getBounds(new no(o,a));null!=l&&this.position(l)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ao.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(null!=t){const e=this.quill.getBounds(t);null!=e&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),i=this.root.querySelector(".ql-tooltip-arrow");return i.style.marginLeft="",0!==e&&(i.style.marginLeft=-1*e-i.offsetWidth/2+"px"),e}}class Pl extends vl{constructor(t,e){ | |
| 7039 | +null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Sl),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Wl(this.quill,this.options.bounds),null!=t.container&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),ul),this.buildPickers(t.container.querySelectorAll("select"),ul))}}Pl.DEFAULTS=ie({},vl.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Uo.sources.USER)}}}}});const Ul=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class jl extends _l{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("") | |
| 6991 | 7040 | ;preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(null!=this.linkRange){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,ao.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(ao.events.SELECTION_CHANGE,(t,e,i)=>{if(null!=t){if(0===t.length&&i===ao.sources.USER){const[e,i]=this.quill.scroll.descendant($a,t.index);if(null!=e){this.linkRange=new no(t.index-i,e.length());const o=$a.formats(e.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const a=this.quill.getBounds(this.linkRange);return void(null!=a&&this.position(a))}}else delete this.linkRange;this.hide()}})}show(){super.show(), |
| 6992 | -this.root.removeAttribute("data-mode")}}class wl extends vl{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Pl),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),ul),this.buildPickers(t.container.querySelectorAll("select"),ul),this.tooltip=new jl(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,i)=>{t.handlers.link.call(t,!i.format.link)}))}}wl.DEFAULTS=ie({},vl.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e=`mailto:${e}`);const{tooltip:i}=this.quill.theme;i.edit("link",e)}else this.quill.format("link",!1,Po.sources.USER)}}}}});const zl=wl;Ya.register({ | |
| 7041 | +this.root.removeAttribute("data-mode")}}class wl extends vl{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Ul),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),ul),this.buildPickers(t.container.querySelectorAll("select"),ul),this.tooltip=new jl(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,i)=>{t.handlers.link.call(t,!i.format.link)}))}}wl.DEFAULTS=ie({},vl.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e=`mailto:${e}`);const{tooltip:i}=this.quill.theme;i.edit("link",e)}else this.quill.format("link",!1,Uo.sources.USER)}}}}});const zl=wl;Ya.register({ | |
| 6993 | 7042 | "attributors/attribute/direction":ta,"attributors/class/align":Xo,"attributors/class/background":$o,"attributors/class/color":Fo,"attributors/class/direction":ea,"attributors/class/font":aa,"attributors/class/size":na,"attributors/style/align":Bo,"attributors/style/background":Go,"attributors/style/color":qo,"attributors/style/direction":ia,"attributors/style/font":la,"attributors/style/size":sa},!0),Ya.register({"formats/align":Xo,"formats/direction":ea,"formats/indent":Ba,"formats/background":Go,"formats/color":qo,"formats/font":aa,"formats/size":na,"formats/blockquote":class extends Bi{static blotName="blockquote";static tagName="blockquote"},"formats/code-block":Ko,"formats/header":class extends Bi{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}},"formats/list":Fa,"formats/bold":qa,"formats/code":Jo,"formats/italic":class extends qa{static blotName="italic";static tagName=["EM","I"]}, |
| 6994 | 7043 | "formats/link":$a,"formats/script":class extends Xi{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}},"formats/strike":class extends qa{static blotName="strike";static tagName=["S","STRIKE"]},"formats/underline":class extends Xi{static blotName="underline";static tagName="U"},"formats/formula":class extends Ho{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}},"formats/image":class extends Se{ |
| 6995 | 7044 | static blotName="image";static tagName="IMG";static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Za.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return Ga(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){Za.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}},"formats/video":class extends Ei{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Ka.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static sanitize(t){return $a.sanitize(t)}static value(t){ |
| 6996 | -return t.getAttribute("src")}format(t,e){Ka.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}},"modules/syntax":il,"modules/table":class extends yo{static register(){Po.register(ol),Po.register(al),Po.register(ll),Po.register(nl)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(nl).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(Po.sources.USER))}deleteRow(){const[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(Po.sources.USER))}deleteTable(){const[t]=this.getTable();if(null==t)return;const e=t.offset();t.remove(),this.quill.update(Po.sources.USER),this.quill.setSelection(e,Po.sources.SILENT)}getTable(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection() | |
| 6997 | -;if(null==t)return[null,null,null,-1];const[e,i]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==ol.blotName)return[null,null,null,-1];const o=e.parent;return[o.parent.parent,o,e,i]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=a.cellOffset();i.insertColumn(l+t),this.quill.update(Po.sources.USER);let n=o.rowOffset();0===t&&(n+=1),this.quill.setSelection(e.index+n,e.length,Po.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=o.rowOffset();i.insertRow(l+t),this.quill.update(Po.sources.USER),t>0?this.quill.setSelection(e,Po.sources.SILENT):this.quill.setSelection(e.index+o.children.length,e.length,Po.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const i=this.quill.getSelection() | |
| 6998 | -;if(null==i)return;const o=new Array(t).fill(0).reduce(t=>{const i=new Array(e).fill("\n").join("");return t.insert(i,{table:sl()})},(new ze).retain(i.index));this.quill.updateContents(o,Po.sources.USER),this.quill.setSelection(i.index,Po.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Po.events.SCROLL_OPTIMIZE,t=>{t.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(Po.events.TEXT_CHANGE,(t,e,i)=>{i===Po.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":bl,"themes/bubble":Ul,"themes/snow":zl,"ui/icons":ul,"ui/picker":hl,"ui/icon-picker":fl,"ui/color-picker":gl,"ui/tooltip":yl},!0);const Cl=Ya}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var l=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(l.exports,l,l.exports,a),l.loaded=!0,l.exports}return a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.g=function(){ | |
| 7045 | +return t.getAttribute("src")}format(t,e){Ka.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}},"modules/syntax":il,"modules/table":class extends yo{static register(){Uo.register(ol),Uo.register(al),Uo.register(ll),Uo.register(nl)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(nl).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(Uo.sources.USER))}deleteRow(){const[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(Uo.sources.USER))}deleteTable(){const[t]=this.getTable();if(null==t)return;const e=t.offset();t.remove(),this.quill.update(Uo.sources.USER),this.quill.setSelection(e,Uo.sources.SILENT)}getTable(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection() | |
| 7046 | +;if(null==t)return[null,null,null,-1];const[e,i]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==ol.blotName)return[null,null,null,-1];const o=e.parent;return[o.parent.parent,o,e,i]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=a.cellOffset();i.insertColumn(l+t),this.quill.update(Uo.sources.USER);let n=o.rowOffset();0===t&&(n+=1),this.quill.setSelection(e.index+n,e.length,Uo.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=o.rowOffset();i.insertRow(l+t),this.quill.update(Uo.sources.USER),t>0?this.quill.setSelection(e,Uo.sources.SILENT):this.quill.setSelection(e.index+o.children.length,e.length,Uo.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const i=this.quill.getSelection() | |
| 7047 | +;if(null==i)return;const o=new Array(t).fill(0).reduce(t=>{const i=new Array(e).fill("\n").join("");return t.insert(i,{table:sl()})},(new ze).retain(i.index));this.quill.updateContents(o,Uo.sources.USER),this.quill.setSelection(i.index,Uo.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Uo.events.SCROLL_OPTIMIZE,t=>{t.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(Uo.events.TEXT_CHANGE,(t,e,i)=>{i===Uo.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":bl,"themes/bubble":Pl,"themes/snow":zl,"ui/icons":ul,"ui/picker":hl,"ui/icon-picker":fl,"ui/color-picker":gl,"ui/tooltip":yl},!0);const Cl=Ya}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var l=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(l.exports,l,l.exports,a),l.loaded=!0,l.exports}return a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.g=function(){ | |
| 6999 | 7048 | if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),a(190)})(),t.exports=o()},62682(t){t.exports=function(t){function e(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=38)}([function(t,e){t.exports=function(t){ |
| 7000 | 7049 | var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,i){var o=i(22),a="object"==typeof self&&self&&self.Object===Object&&self,l=o||a||Function("return this")();t.exports=l},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,i){function o(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}var a=i(75),l=i(76),n=i(77),s=i(78),r=i(79);o.prototype.clear=a,o.prototype.delete=l,o.prototype.get=n,o.prototype.has=s,o.prototype.set=r,t.exports=o},function(t,e,i){var o=i(8);t.exports=function(t,e){for(var i=t.length;i--;)if(o(t[i][0],e))return i;return-1}},function(t,e,i){var o=i(16),a=i(64),l=i(87),n="[object Null]",s="[object Undefined]",r=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:n:r&&r in Object(t)?a(t):l(t)}},function(t,e,i){var o=i(73);t.exports=function(t,e){var i=t.__data__;return o(e)?i["string"==typeof e?"string":"hash"]:i.map}},function(t,e,i){ |
| 7001 | 7050 | var o=i(11)(Object,"create");t.exports=o},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var o=function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=e.overlay,this.img=e.img,this.options=e.options,this.requestUpdate=e.onUpdate}},function(t,e,i){var o=i(21);t.exports=function(t,e,i){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},function(t,e,i){var o=i(48),a=i(65);t.exports=function(t,e){var i=a(t,e);return o(i)?i:void 0}},function(t,e,i){var o=i(13),a=i(30);t.exports=function(t){return null!=t&&a(t.length)&&!o(t)}},function(t,e,i){var o=i(5),a=i(0),l="[object AsyncFunction]",n="[object Function]",s="[object GeneratorFunction]",r="[object Proxy]";t.exports=function(t){if(!a(t))return!1;var e=o(t) |
| 7002 | 7051 | ;return e==n||e==s||e==l||e==r}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var o=i(11)(i(1),"Map");t.exports=o},function(t,e,i){var o=i(1).Symbol;t.exports=o},function(t,e){t.exports=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}},function(t,e,i){var o=i(10),a=i(8);t.exports=function(t,e,i){(void 0===i||a(t[e],i))&&(void 0!==i||e in t)||o(t,e,i)}},function(t,e,i){var o=i(41),a=i(18),l=i(46),n=i(51),s=i(0),r=i(32);t.exports=function t(e,i,b,c,d){e!==i&&l(i,function(l,r){if(s(l))d||(d=new o),n(e,i,r,b,t,c,d);else{var u=c?c(e[r],l,r+"",e,i,d):void 0;void 0===u&&(u=l),a(e,r,u)}},r)} |
| @@ -7032,9 +7081,9 @@ | ||
| 7032 | 7081 | ;var a=o(i(14)),l=o(i(7)),n=o(i(15)),s=o(i(19)),r=o(i(20)),b=o(i(21)),c=o(i(8)),d=c.default.import("blots/container"),u=c.default.import("blots/block"),p=c.default.import("blots/block/embed"),m=c.default.import("parchment"),h=function(t){function e(){return(0,l.default)(this,e),(0,s.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,b.default)(e,t),(0,n.default)(e,[{key:"formats",value:function(t){return t?t.tagName:this.domNode.tagName}}],[{key:"create",value:function(t){return(0,r.default)(e.__proto__||(0,a.default)(e),"create",this).call(this,t)}}]),e}(d);h.blotName="contain",h.tagName="contain",h.scope=m.Scope.BLOCK_BLOT,h.defaultChild="block",h.allowedChildren=[u,p,d],e.default=h},function(t,e,i){var o=i(13);t.exports=function(t,e){if(!o(t))return t;var i,a;if(e&&"function"==typeof(i=t.toString)&&!o(a=i.call(t)))return a;if("function"==typeof(i=t.valueOf)&&!o(a=i.call(t)))return a;if(!e&&"function"==typeof(i=t.toString)&&!o(a=i.call(t)))return a |
| 7033 | 7082 | ;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){var o=i(25)("keys"),a=i(18);t.exports=function(t){return o[t]||(o[t]=a(t))}},function(t,e,i){var o=i(0),a="__core-js_shared__",l=o[a]||(o[a]={});t.exports=function(t){return l[t]||(l[t]={})}},function(t,e){var i=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:i)(t)}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e,i){var o=i(12),a=i(74),l=i(31),n=i(24)("IE_PROTO"),s=function(){},r="prototype",b=function(){var t,e=i(44)("iframe"),o=l.length;for(e.style.display="none",i(79).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),b=t.F;o--;)delete b[r][l[o]];return b()};t.exports=Object.create||function(t,e){var i;return null!==t?(s[r]=o(t),i=new s,s[r]=null,i[n]=t):i=b(),void 0===e?i:a(i,e)}},function(t,e,i){var o=i(51),a=i(31);t.exports=Object.keys||function(t){return o(t,a)}},function(t,e){ |
| 7034 | 7083 | t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var o=i(3).f,a=i(5),l=i(11)("toStringTag");t.exports=function(t,e,i){t&&!a(t=i?t:t.prototype,l)&&o(t,l,{configurable:!0,value:e})}},function(t,e,i){e.f=i(11)},function(t,e,i){var o=i(0),a=i(1),l=i(27),n=i(33),s=i(3).f;t.exports=function(t){var e=a.Symbol||(a.Symbol=l?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:n.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var o=i(35),a=i(16),l=i(6),n=i(23),s=i(5),r=i(43),b=Object.getOwnPropertyDescriptor;e.f=i(4)?b:function(t,e){if(t=l(t),e=n(e,!0),r)try{return b(t,e)}catch(t){}if(s(t,e))return a(!o.f.call(t,e),t[e])}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}) |
| 7035 | 7084 | ;var a=o(i(104)),l=o(i(7)),n=o(i(15)),s=o(i(8)),r=s.default.import("parchment"),b=s.default.import("blots/container"),c=s.default.import("blots/scroll"),d=function(){function t(){(0,l.default)(this,t)}return(0,n.default)(t,null,[{key:"random_id",value:function(){return Math.random().toString(36).slice(2)}},{key:"find_td",value:function(t){for(var e=t.getLeaf(t.getSelection().index)[0];null!=e&&"td"!=e.statics.blotName;)e=e.parent;return e}},{key:"table_handler",value:function(e,i){if(e.includes("newtable_")){for(var o=null,l=e.split("_"),n=(0,a.default)(l[1]),s=(0,a.default)(l[2]),d=t.random_id(),u=r.create("table",d),p=0;p<n;p++){var m=t.random_id(),h=r.create("tr",m);u.appendChild(h);for(var g=0;g<s;g++){e=d+"|"+m+"|"+t.random_id();var f=r.create("td",e);h.appendChild(f);var y=r.create("block");f.appendChild(y);var T=r.create("break");y.appendChild(T),o=y}}for(var H=i.getLeaf(i.getSelection().index)[0],M=null;null!=H&&!(H instanceof b||H instanceof c);)M=H,H=H.parent |
| 7036 | -;return H.insertBefore(u,M),o}if("append-col"===e){var x=t.find_td(i);if(x){var k=x.parent.parent,v=k.domNode.getAttribute("table_id");k.children.forEach(function(e){var i=e.domNode.getAttribute("row_id"),o=t.random_id(),a=r.create("td",v+"|"+i+"|"+o);e.appendChild(a)})}}else{if("append-row"!==e){for(var _=t.random_id(),R=r.create("table",_),S=i.getLeaf(i.getSelection().index)[0],W=null;null!=S&&!(S instanceof b||S instanceof c);)W=S,S=S.parent;return S.insertBefore(R,W),R}var U=t.find_td(i);if(U){var P=U.parent.children.length,j=U.parent.parent,w=U.parent.clone(),z=j.domNode.getAttribute("table_id"),C=t.random_id();w.domNode.setAttribute("row_id",C);for(var A=P-1;A>=0;A--){var L=t.random_id(),D=r.create("td",z+"|"+C+"|"+L);w.appendChild(D);var N=r.create("block");D.appendChild(N);var I=r.create("break");N.appendChild(I)}j.appendChild(w),console.log(w)}}}}]),t}();e.default=d},function(t,e,i){function o(t){return null==t}function a(t){ | |
| 7085 | +;return H.insertBefore(u,M),o}if("append-col"===e){var x=t.find_td(i);if(x){var k=x.parent.parent,v=k.domNode.getAttribute("table_id");k.children.forEach(function(e){var i=e.domNode.getAttribute("row_id"),o=t.random_id(),a=r.create("td",v+"|"+i+"|"+o);e.appendChild(a)})}}else{if("append-row"!==e){for(var _=t.random_id(),R=r.create("table",_),S=i.getLeaf(i.getSelection().index)[0],W=null;null!=S&&!(S instanceof b||S instanceof c);)W=S,S=S.parent;return S.insertBefore(R,W),R}var P=t.find_td(i);if(P){var U=P.parent.children.length,j=P.parent.parent,w=P.parent.clone(),z=j.domNode.getAttribute("table_id"),C=t.random_id();w.domNode.setAttribute("row_id",C);for(var A=U-1;A>=0;A--){var L=t.random_id(),D=r.create("td",z+"|"+C+"|"+L);w.appendChild(D);var N=r.create("block");D.appendChild(N);var I=r.create("break");N.appendChild(I)}j.appendChild(w),console.log(w)}}}}]),t}();e.default=d},function(t,e,i){function o(t){return null==t}function a(t){ | |
| 7037 | 7086 | return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}var l=Array.prototype.slice,n=i(60),s=i(61),r=t.exports=function(t,e,i){return i||(i={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?i.strict?t===e:t==e:function(t,e,i){var b,c;if(o(t)||o(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=l.call(t),e=l.call(e),r(t,e,i));if(a(t)){if(!a(e))return!1;if(t.length!==e.length)return!1;for(b=0;b<t.length;b++)if(t[b]!==e[b])return!1;return!0}try{var d=n(t),u=n(e)}catch(t){return!1}if(d.length!=u.length)return!1;for(d.sort(),u.sort(),b=d.length-1;b>=0;b--)if(d[b]!=u[b])return!1;for(b=d.length-1;b>=0;b--)if(c=d[b],!r(t[c],e[c],i))return!1;return typeof t==typeof e}(t,e,i))}},function(t,e,i){"use strict";var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=function(t){ |
| 7038 | 7087 | return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)},n=function(t){if(!t||"[object Object]"!==a.call(t))return!1;var e,i=o.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&o.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!l)return!1;for(e in t);return void 0===e||o.call(t,e)};t.exports=function t(){var e,i,o,a,s,r,b=arguments[0],c=1,d=arguments.length,u=!1;for("boolean"==typeof b&&(u=b,b=arguments[1]||{},c=2),(null==b||"object"!=typeof b&&"function"!=typeof b)&&(b={});c<d;++c)if(null!=(e=arguments[c]))for(i in e)o=b[i],b!==(a=e[i])&&(u&&a&&(n(a)||(s=l(a)))?(s?(s=!1,r=o&&l(o)?o:[]):r=o&&n(o)?o:{},b[i]=t(u,r,a)):void 0!==a&&(b[i]=a));return b}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}) |
| 7039 | 7088 | ;var a=o(i(63)),l=o(i(14)),n=o(i(7)),s=o(i(15)),r=o(i(19)),b=o(i(20)),c=o(i(21)),d=o(i(8)),u=o(i(22)),p=d.default.import("blots/container"),m=d.default.import("blots/block"),h=d.default.import("blots/block/embed"),g=d.default.import("parchment"),f=function(t){function e(){return(0,n.default)(this,e),(0,r.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,c.default)(e,t),(0,s.default)(e,[{key:"format",value:function(){this.getAttribute("id")}},{key:"formats",value:function(){return(0,a.default)({},this.statics.blotName,this.domNode.getAttribute("table_id")+"|"+this.domNode.getAttribute("row_id")+"|"+this.domNode.getAttribute("cell_id"))}},{key:"optimize",value:function(t){(0,b.default)(e.prototype.__proto__||(0,l.default)(e.prototype),"optimize",this).call(this,t);var i=this.parent;if(null!=i){if("td"===i.statics.blotName)return this.moveChildren(i,this),void this.remove();if("tr"!=i.statics.blotName){var o=g.create("block") |
| 7040 | 7089 | ;this.parent.insertBefore(o,this.next);var a=g.create("table",this.domNode.getAttribute("table_id")),n=g.create("tr",this.domNode.getAttribute("row_id"));a.appendChild(n),n.appendChild(this),a.replace(o)}}var s=this.next;null!=s&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("cell_id")===this.domNode.getAttribute("cell_id")&&(s.moveChildren(this),s.remove())}},{key:"insertBefore",value:function(t,i){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e})){var o=g.create(this.statics.defaultChild);o.appendChild(t),t=o}(0,b.default)(e.prototype.__proto__||(0,l.default)(e.prototype),"insertBefore",this).call(this,t,i)}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var i=g.create(this.statics.defaultChild);t.moveChildren(i),this.appendChild(i)}null!=t.parent&&(0,b.default)(e.prototype.__proto__||(0, |
| @@ -7039,10 +7088,10 @@ | ||
| 7039 | 7088 | ;var a=o(i(63)),l=o(i(14)),n=o(i(7)),s=o(i(15)),r=o(i(19)),b=o(i(20)),c=o(i(21)),d=o(i(8)),u=o(i(22)),p=d.default.import("blots/container"),m=d.default.import("blots/block"),h=d.default.import("blots/block/embed"),g=d.default.import("parchment"),f=function(t){function e(){return(0,n.default)(this,e),(0,r.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,c.default)(e,t),(0,s.default)(e,[{key:"format",value:function(){this.getAttribute("id")}},{key:"formats",value:function(){return(0,a.default)({},this.statics.blotName,this.domNode.getAttribute("table_id")+"|"+this.domNode.getAttribute("row_id")+"|"+this.domNode.getAttribute("cell_id"))}},{key:"optimize",value:function(t){(0,b.default)(e.prototype.__proto__||(0,l.default)(e.prototype),"optimize",this).call(this,t);var i=this.parent;if(null!=i){if("td"===i.statics.blotName)return this.moveChildren(i,this),void this.remove();if("tr"!=i.statics.blotName){var o=g.create("block") |
| 7040 | 7089 | ;this.parent.insertBefore(o,this.next);var a=g.create("table",this.domNode.getAttribute("table_id")),n=g.create("tr",this.domNode.getAttribute("row_id"));a.appendChild(n),n.appendChild(this),a.replace(o)}}var s=this.next;null!=s&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("cell_id")===this.domNode.getAttribute("cell_id")&&(s.moveChildren(this),s.remove())}},{key:"insertBefore",value:function(t,i){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e})){var o=g.create(this.statics.defaultChild);o.appendChild(t),t=o}(0,b.default)(e.prototype.__proto__||(0,l.default)(e.prototype),"insertBefore",this).call(this,t,i)}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var i=g.create(this.statics.defaultChild);t.moveChildren(i),this.appendChild(i)}null!=t.parent&&(0,b.default)(e.prototype.__proto__||(0, |
| 7041 | 7090 | l.default)(e.prototype),"replace",this).call(this,t)}},{key:"moveChildren",value:function(t,e){this.children.forEach(function(i){t.insertBefore(i,e)})}},{key:"column",value:function(){return this.parent.children.offset(this)}}],[{key:"create",value:function(t){var i=(0,b.default)(e.__proto__||(0,l.default)(e),"create",this).call(this,"td"),o=t.split("|");return i.setAttribute("table_id",o[0]),i.setAttribute("row_id",o[1]),i.setAttribute("cell_id",o[2]),i}}]),e}(u.default);f.blotName="td",f.tagName="td",f.scope=g.Scope.BLOCK_BLOT,f.defaultChild="block",f.allowedChildren=[m,h,p],e.default=f},function(t,e,i){t.exports={default:i(64),__esModule:!0}},function(t,e,i){var o=i(66);t.exports=function(t,e,i){if(o(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,o){return t.call(e,i,o)};case 3:return function(i,o,a){return t.call(e,i,o,a)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){t.exports=!i(4)&&!i(10)(function(){ |
| 7042 | 7091 | return 7!=Object.defineProperty(i(44)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var o=i(13),a=i(0).document,l=o(a)&&o(a.createElement);t.exports=function(t){return l?a.createElement(t):{}}},function(t,e,i){var o=i(17);t.exports=function(t){return Object(o(t))}},function(t,e,i){var o=i(5),a=i(45),l=i(24)("IE_PROTO"),n=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=a(t),o(t,l)?t[l]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?n:null}},function(t,e,i){var o=i(2),a=i(1),l=i(10);t.exports=function(t,e){var i=(a.Object||{})[t]||Object[t],n={};n[t]=e(i),o(o.S+o.F*l(function(){i(1)}),"Object",n)}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var a=o(i(69)),l=o(i(84)),n="function"==typeof l.default&&"symbol"==typeof a.default?function(t){return typeof t}:function(t){ |
| 7043 | -return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":typeof t};e.default="function"==typeof l.default&&"symbol"===n(a.default)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":void 0===t?"undefined":n(t)}},function(t,e,i){"use strict";var o=i(27),a=i(2),l=i(50),n=i(9),s=i(5),r=i(28),b=i(73),c=i(32),d=i(46),u=i(11)("iterator"),p=!([].keys&&"next"in[].keys()),m="keys",h="values",g=function(){return this};t.exports=function(t,e,i,f,y,T,H){b(i,e,f);var M,x,k,v=function(t){if(!p&&t in W)return W[t];switch(t){case m:case h:return function(){return new i(this,t)}}return function(){return new i(this,t)}},_=e+" Iterator",R=y==h,S=!1,W=t.prototype,U=W[u]||W["@@iterator"]||y&&W[y],P=U||v(y),j=y?R?v("entries"):P:void 0,w="Array"==e&&W.entries||U;if(w&&(k=d(w.call(new t)))!==Object.prototype&&k.next&&(c(k,_,!0),o||s(k,u)||n(k,u,g)), | |
| 7044 | -R&&U&&U.name!==h&&(S=!0,P=function(){return U.call(this)}),o&&!H||!p&&!S&&W[u]||n(W,u,P),r[e]=P,r[_]=g,y)if(M={values:R?P:v(h),keys:T?P:v(m),entries:j},H)for(x in M)x in W||l(W,x,M[x]);else a(a.P+a.F*(p||S),e,M);return M}},function(t,e,i){t.exports=i(9)},function(t,e,i){var o=i(5),a=i(6),l=i(76)(!1),n=i(24)("IE_PROTO");t.exports=function(t,e){var i,s=a(t),r=0,b=[];for(i in s)i!=n&&o(s,i)&&b.push(i);for(;e.length>r;)o(s,i=e[r++])&&(~l(b,i)||b.push(i));return b}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var o=i(51),a=i(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,a)}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}) | |
| 7092 | +return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":typeof t};e.default="function"==typeof l.default&&"symbol"===n(a.default)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":void 0===t?"undefined":n(t)}},function(t,e,i){"use strict";var o=i(27),a=i(2),l=i(50),n=i(9),s=i(5),r=i(28),b=i(73),c=i(32),d=i(46),u=i(11)("iterator"),p=!([].keys&&"next"in[].keys()),m="keys",h="values",g=function(){return this};t.exports=function(t,e,i,f,y,T,H){b(i,e,f);var M,x,k,v=function(t){if(!p&&t in W)return W[t];switch(t){case m:case h:return function(){return new i(this,t)}}return function(){return new i(this,t)}},_=e+" Iterator",R=y==h,S=!1,W=t.prototype,P=W[u]||W["@@iterator"]||y&&W[y],U=P||v(y),j=y?R?v("entries"):U:void 0,w="Array"==e&&W.entries||P;if(w&&(k=d(w.call(new t)))!==Object.prototype&&k.next&&(c(k,_,!0),o||s(k,u)||n(k,u,g)), | |
| 7093 | +R&&P&&P.name!==h&&(S=!0,U=function(){return P.call(this)}),o&&!H||!p&&!S&&W[u]||n(W,u,U),r[e]=U,r[_]=g,y)if(M={values:R?U:v(h),keys:T?U:v(m),entries:j},H)for(x in M)x in W||l(W,x,M[x]);else a(a.P+a.F*(p||S),e,M);return M}},function(t,e,i){t.exports=i(9)},function(t,e,i){var o=i(5),a=i(6),l=i(76)(!1),n=i(24)("IE_PROTO");t.exports=function(t,e){var i,s=a(t),r=0,b=[];for(i in s)i!=n&&o(s,i)&&b.push(i);for(;e.length>r;)o(s,i=e[r++])&&(~l(b,i)||b.push(i));return b}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var o=i(51),a=i(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,a)}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}) | |
| 7045 | 7094 | ;var a=o(i(14)),l=o(i(7)),n=o(i(15)),s=o(i(19)),r=o(i(20)),b=o(i(21)),c=o(i(8)),d=o(i(40)),u=o(i(22)),p=o(i(37)),m=(c.default.import("blots/container"),c.default.import("parchment")),h=function(t){function e(){return(0,l.default)(this,e),(0,s.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,b.default)(e,t),(0,n.default)(e,[{key:"format",value:function(){this.getAttribute("row_id")}},{key:"optimize",value:function(t){if(0===this.children.length)if(null!=this.statics.defaultChild){var e=this.createDefaultChild();this.appendChild(e),e.optimize(t)}else this.remove();var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("row_id")===this.domNode.getAttribute("row_id")&&(i.moveChildren(this),i.remove())}},{key:"insertBefore",value:function(t,i){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e})){ |
| 7046 | 7095 | var o=this.createDefaultChild(i);o.appendChild(t),t=o}(0,r.default)(e.prototype.__proto__||(0,a.default)(e.prototype),"insertBefore",this).call(this,t,i)}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var i=this.createDefaultChild();t.moveChildren(i,this),this.appendChild(i)}(0,r.default)(e.prototype.__proto__||(0,a.default)(e.prototype),"replace",this).call(this,t)}},{key:"createDefaultChild",value:function(t){var e=null;return e=t?t.domNode.getAttribute("table_id"):this.parent?this.parent.domNode.getAttribute("table_id"):this.domNode.parent.getAttribute("table_id"),m.create(this.statics.defaultChild,[e,this.domNode.getAttribute("row_id"),p.default.random_id()].join("|"))}}],[{key:"create",value:function(t){var i=(0,r.default)(e.__proto__||(0,a.default)(e),"create",this).call(this,"tr");return i.setAttribute("row_id",t||p.default.random_id()),i}}]),e}(u.default);h.blotName="tr",h.tagName="tr",h.scope=m.Scope.BLOCK_BLOT,h.defaultChild="td", |
| 7047 | 7096 | h.allowedChildren=[d.default],e.default=h},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var a=o(i(7)),l=o(i(8)),n=o(i(58)),s=o(i(40)),r=o(i(55)),b=o(i(109)),c=o(i(22));i(110);var d=o(i(37));l.default.import("blots/container").order=["list","contain","td","tr","table"],t.exports={Table:b.default,TableRow:r.default,TableCell:s.default,Contain:c.default,TableModule:function t(e,i){(0,a.default)(this,t),e.getModule("toolbar").addHandler("table",function(t){return d.default.table_handler(t,e)});var o=e.getModule("clipboard");o.addMatcher("TABLE",function(t,e){return e}),o.addMatcher("TR",function(t,e){return e}),o.addMatcher("TD",function(t,e){return e.compose((new n.default).retain(e.length(),{td:t.getAttribute("table_id")+"|"+t.getAttribute("row_id")+"|"+t.getAttribute("cell_id")}))})}}},function(t,e,i){var o=i(59),a=i(38),l=i(39),n=i(62),s=String.fromCharCode(0),r=function(t){ |
| 7048 | 7097 | Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};r.prototype.insert=function(t,e){var i={};return 0===t.length?this:(i.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i))},r.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},r.prototype.retain=function(t,e){if(t<=0)return this;var i={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i)},r.prototype.push=function(t){var e=this.ops.length,i=this.ops[e-1];if(t=l(!0,{},t),"object"==typeof i){if("number"==typeof t.delete&&"number"==typeof i.delete)return this.ops[e-1]={delete:i.delete+t.delete},this;if("number"==typeof i.delete&&null!=t.insert&&(e-=1,"object"!=typeof(i=this.ops[e-1])))return this.ops.unshift(t),this;if(a(t.attributes,i.attributes)){if("string"==typeof t.insert&&"string"==typeof i.insert)return this.ops[e-1]={insert:i.insert+t.insert}, |
| @@ -7060,12 +7109,12 @@ | ||
| 7060 | 7109 | "number"==typeof e.delete)return{delete:t};var a={};return e.attributes&&(a.attributes=e.attributes),"number"==typeof e.retain?a.retain=t:"string"==typeof e.insert?a.insert=e.insert.substr(i,t):a.insert=e.insert,a}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?n.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},t.exports=n},function(t,e,i){"use strict";e.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{default:t}}(i(41));e.default=function(t,e,i){return e in t?(0,o.default)(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e,i){i(65);var o=i(1).Object;t.exports=function(t,e,i){return o.defineProperty(t,e,i)}},function(t,e,i){var o=i(2);o(o.S+o.F*!i(4),"Object",{ |
| 7061 | 7110 | defineProperty:i(3).f})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){i(68),t.exports=i(1).Object.getPrototypeOf},function(t,e,i){var o=i(45),a=i(46);i(47)("getPrototypeOf",function(){return function(t){return a(o(t))}})},function(t,e,i){t.exports={default:i(70),__esModule:!0}},function(t,e,i){i(71),i(80),t.exports=i(33).f("iterator")},function(t,e,i){"use strict";var o=i(72)(!0);i(49)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=o(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var o=i(26),a=i(17);t.exports=function(t){return function(e,i){var l,n,s=String(a(e)),r=o(i),b=s.length;return r<0||r>=b?t?"":void 0:(l=s.charCodeAt(r))<55296||l>56319||r+1===b||(n=s.charCodeAt(r+1))<56320||n>57343?t?s.charAt(r):l:t?s.slice(r,r+2):n-56320+(l-55296<<10)+65536}}},function(t,e,i){"use strict" |
| 7062 | 7111 | ;var o=i(29),a=i(16),l=i(32),n={};i(9)(n,i(11)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=o(n,{next:a(1,i)}),l(t,e+" Iterator")}},function(t,e,i){var o=i(3),a=i(12),l=i(30);t.exports=i(4)?Object.defineProperties:function(t,e){a(t);for(var i,n=l(e),s=n.length,r=0;s>r;)o.f(t,i=n[r++],e[i]);return t}},function(t,e,i){var o=i(52);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e,i){var o=i(6),a=i(77),l=i(78);t.exports=function(t){return function(e,i,n){var s,r=o(e),b=a(r.length),c=l(n,b);if(t&&i!=i){for(;b>c;)if((s=r[c++])!=s)return!0}else for(;b>c;c++)if((t||c in r)&&r[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){var o=i(26),a=Math.min;t.exports=function(t){return t>0?a(o(t),9007199254740991):0}},function(t,e,i){var o=i(26),a=Math.max,l=Math.min;t.exports=function(t,e){return(t=o(t))<0?a(t+e,0):l(t,e)}},function(t,e,i){var o=i(0).document;t.exports=o&&o.documentElement |
| 7063 | 7112 | },function(t,e,i){i(81);for(var o=i(0),a=i(9),l=i(28),n=i(11)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),r=0;r<s.length;r++){var b=s[r],c=o[b],d=c&&c.prototype;d&&!d[n]&&a(d,n,b),l[b]=l.Array}},function(t,e,i){"use strict";var o=i(82),a=i(83),l=i(28),n=i(6);t.exports=i(49)(Array,"Array",function(t,e){this._t=n(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,a(1)):a(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values"),l.Arguments=l.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(){} |
| 7064 | -},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){t.exports={default:i(85),__esModule:!0}},function(t,e,i){i(86),i(91),i(92),i(93),t.exports=i(1).Symbol},function(t,e,i){"use strict";var o=i(0),a=i(5),l=i(4),n=i(2),s=i(50),r=i(87).KEY,b=i(10),c=i(25),d=i(32),u=i(18),p=i(11),m=i(33),h=i(34),g=i(88),f=i(89),y=i(12),T=i(6),H=i(23),M=i(16),x=i(29),k=i(90),v=i(36),_=i(3),R=i(30),S=v.f,W=_.f,U=k.f,P=o.Symbol,j=o.JSON,w=j&&j.stringify,z="prototype",C=p("_hidden"),A=p("toPrimitive"),L={}.propertyIsEnumerable,D=c("symbol-registry"),N=c("symbols"),I=c("op-symbols"),V=Object[z],O="function"==typeof P,Y=o.QObject,X=!Y||!Y[z]||!Y[z].findChild,B=l&&b(function(){return 7!=x(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(t,e,i){var o=S(V,e);o&&delete V[e],W(t,e,i),o&&t!==V&&W(V,e,o)}:W,E=function(t){var e=N[t]=x(P[z]);return e._k=t,e},F=O&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P | |
| 7065 | -},q=function(t,e,i){return t===V&&q(I,e,i),y(t),e=H(e,!0),y(i),a(N,e)?(i.enumerable?(a(t,C)&&t[C][e]&&(t[C][e]=!1),i=x(i,{enumerable:M(0,!1)})):(a(t,C)||W(t,C,M(1,{})),t[C][e]=!0),B(t,e,i)):W(t,e,i)},$=function(t,e){y(t);for(var i,o=g(e=T(e)),a=0,l=o.length;l>a;)q(t,i=o[a++],e[i]);return t},G=function(t){var e=L.call(this,t=H(t,!0));return!(this===V&&a(N,t)&&!a(I,t))&&(!(e||!a(this,t)||!a(N,t)||a(this,C)&&this[C][t])||e)},Z=function(t,e){if(t=T(t),e=H(e,!0),t!==V||!a(N,e)||a(I,e)){var i=S(t,e);return!i||!a(N,e)||a(t,C)&&t[C][e]||(i.enumerable=!0),i}},K=function(t){for(var e,i=U(T(t)),o=[],l=0;i.length>l;)a(N,e=i[l++])||e==C||e==r||o.push(e);return o},J=function(t){for(var e,i=t===V,o=U(i?I:T(t)),l=[],n=0;o.length>n;)!a(N,e=o[n++])||i&&!a(V,e)||l.push(N[e]);return l};O||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=u(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(I,i),a(this,C)&&a(this[C],t)&&(this[C][t]=!1), | |
| 7066 | -B(this,t,M(1,i))};return l&&X&&B(V,t,{configurable:!0,set:e}),E(t)},s(P[z],"toString",function(){return this._k}),v.f=Z,_.f=q,i(54).f=k.f=K,i(35).f=G,i(53).f=J,l&&!i(27)&&s(V,"propertyIsEnumerable",G,!0),m.f=function(t){return E(p(t))}),n(n.G+n.W+n.F*!O,{Symbol:P});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)p(Q[tt++]);for(var et=R(p.store),it=0;et.length>it;)h(et[it++]);n(n.S+n.F*!O,"Symbol",{for:function(t){return a(D,t+="")?D[t]:D[t]=P(t)},keyFor:function(t){if(!F(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),n(n.S+n.F*!O,"Object",{create:function(t,e){return void 0===e?x(t):$(x(t),e)},defineProperty:q,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:K,getOwnPropertySymbols:J}),j&&n(n.S+n.F*(!O||b(function(){var t=P();return"[null]"!=w([t])||"{}"!=w({a:t | |
| 7067 | -})||"{}"!=w(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!F(t)){for(var e,i,o=[t],a=1;arguments.length>a;)o.push(arguments[a++]);return"function"==typeof(e=o[1])&&(i=e),!i&&f(e)||(e=function(t,e){if(i&&(e=i.call(this,t,e)),!F(e))return e}),o[1]=e,w.apply(j,o)}}}),P[z][A]||i(9)(P[z],A,P[z].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(t,e,i){var o=i(18)("meta"),a=i(13),l=i(5),n=i(3).f,s=0,r=Object.isExtensible||function(){return!0},b=!i(10)(function(){return r(Object.preventExtensions({}))}),c=function(t){n(t,o,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!l(t,o)){if(!r(t))return"F";if(!e)return"E";c(t)}return t[o].i},getWeak:function(t,e){if(!l(t,o)){if(!r(t))return!0;if(!e)return!1;c(t)}return t[o].w},onFreeze:function(t){return b&&d.NEED&&r(t)&&!l(t,o)&&c(t),t}}},function(t,e,i){var o=i(30),a=i(53),l=i(35);t.exports=function(t){var e=o(t),i=a.f | |
| 7113 | +},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){t.exports={default:i(85),__esModule:!0}},function(t,e,i){i(86),i(91),i(92),i(93),t.exports=i(1).Symbol},function(t,e,i){"use strict";var o=i(0),a=i(5),l=i(4),n=i(2),s=i(50),r=i(87).KEY,b=i(10),c=i(25),d=i(32),u=i(18),p=i(11),m=i(33),h=i(34),g=i(88),f=i(89),y=i(12),T=i(6),H=i(23),M=i(16),x=i(29),k=i(90),v=i(36),_=i(3),R=i(30),S=v.f,W=_.f,P=k.f,U=o.Symbol,j=o.JSON,w=j&&j.stringify,z="prototype",C=p("_hidden"),A=p("toPrimitive"),L={}.propertyIsEnumerable,D=c("symbol-registry"),N=c("symbols"),I=c("op-symbols"),V=Object[z],O="function"==typeof U,Y=o.QObject,X=!Y||!Y[z]||!Y[z].findChild,B=l&&b(function(){return 7!=x(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(t,e,i){var o=S(V,e);o&&delete V[e],W(t,e,i),o&&t!==V&&W(V,e,o)}:W,E=function(t){var e=N[t]=x(U[z]);return e._k=t,e},F=O&&"symbol"==typeof U.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof U | |
| 7114 | +},q=function(t,e,i){return t===V&&q(I,e,i),y(t),e=H(e,!0),y(i),a(N,e)?(i.enumerable?(a(t,C)&&t[C][e]&&(t[C][e]=!1),i=x(i,{enumerable:M(0,!1)})):(a(t,C)||W(t,C,M(1,{})),t[C][e]=!0),B(t,e,i)):W(t,e,i)},$=function(t,e){y(t);for(var i,o=g(e=T(e)),a=0,l=o.length;l>a;)q(t,i=o[a++],e[i]);return t},G=function(t){var e=L.call(this,t=H(t,!0));return!(this===V&&a(N,t)&&!a(I,t))&&(!(e||!a(this,t)||!a(N,t)||a(this,C)&&this[C][t])||e)},Z=function(t,e){if(t=T(t),e=H(e,!0),t!==V||!a(N,e)||a(I,e)){var i=S(t,e);return!i||!a(N,e)||a(t,C)&&t[C][e]||(i.enumerable=!0),i}},K=function(t){for(var e,i=P(T(t)),o=[],l=0;i.length>l;)a(N,e=i[l++])||e==C||e==r||o.push(e);return o},J=function(t){for(var e,i=t===V,o=P(i?I:T(t)),l=[],n=0;o.length>n;)!a(N,e=o[n++])||i&&!a(V,e)||l.push(N[e]);return l};O||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var t=u(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(I,i),a(this,C)&&a(this[C],t)&&(this[C][t]=!1), | |
| 7115 | +B(this,t,M(1,i))};return l&&X&&B(V,t,{configurable:!0,set:e}),E(t)},s(U[z],"toString",function(){return this._k}),v.f=Z,_.f=q,i(54).f=k.f=K,i(35).f=G,i(53).f=J,l&&!i(27)&&s(V,"propertyIsEnumerable",G,!0),m.f=function(t){return E(p(t))}),n(n.G+n.W+n.F*!O,{Symbol:U});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)p(Q[tt++]);for(var et=R(p.store),it=0;et.length>it;)h(et[it++]);n(n.S+n.F*!O,"Symbol",{for:function(t){return a(D,t+="")?D[t]:D[t]=U(t)},keyFor:function(t){if(!F(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),n(n.S+n.F*!O,"Object",{create:function(t,e){return void 0===e?x(t):$(x(t),e)},defineProperty:q,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:K,getOwnPropertySymbols:J}),j&&n(n.S+n.F*(!O||b(function(){var t=U();return"[null]"!=w([t])||"{}"!=w({a:t | |
| 7116 | +})||"{}"!=w(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!F(t)){for(var e,i,o=[t],a=1;arguments.length>a;)o.push(arguments[a++]);return"function"==typeof(e=o[1])&&(i=e),!i&&f(e)||(e=function(t,e){if(i&&(e=i.call(this,t,e)),!F(e))return e}),o[1]=e,w.apply(j,o)}}}),U[z][A]||i(9)(U[z],A,U[z].valueOf),d(U,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(t,e,i){var o=i(18)("meta"),a=i(13),l=i(5),n=i(3).f,s=0,r=Object.isExtensible||function(){return!0},b=!i(10)(function(){return r(Object.preventExtensions({}))}),c=function(t){n(t,o,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!l(t,o)){if(!r(t))return"F";if(!e)return"E";c(t)}return t[o].i},getWeak:function(t,e){if(!l(t,o)){if(!r(t))return!0;if(!e)return!1;c(t)}return t[o].w},onFreeze:function(t){return b&&d.NEED&&r(t)&&!l(t,o)&&c(t),t}}},function(t,e,i){var o=i(30),a=i(53),l=i(35);t.exports=function(t){var e=o(t),i=a.f | |
| 7068 | 7117 | ;if(i)for(var n,s=i(t),r=l.f,b=0;s.length>b;)r.call(t,n=s[b++])&&e.push(n);return e}},function(t,e,i){var o=i(52);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,i){var o=i(6),a=i(54).f,l={}.toString,n="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return n&&"[object Window]"==l.call(t)?function(t){try{return a(t)}catch(t){return n.slice()}}(t):a(o(t))}},function(t,e){},function(t,e,i){i(34)("asyncIterator")},function(t,e,i){i(34)("observable")},function(t,e,i){t.exports={default:i(95),__esModule:!0}},function(t,e,i){i(96);var o=i(1).Object;t.exports=function(t,e){return o.getOwnPropertyDescriptor(t,e)}},function(t,e,i){var o=i(6),a=i(36).f;i(47)("getOwnPropertyDescriptor",function(){return function(t,e){return a(o(t),e)}})},function(t,e,i){t.exports={default:i(98),__esModule:!0}},function(t,e,i){i(99),t.exports=i(1).Object.setPrototypeOf},function(t,e,i){var o=i(2);o(o.S,"Object",{ |
| 7069 | 7118 | setPrototypeOf:i(100).set})},function(t,e,i){var o=i(13),a=i(12),l=function(t,e){if(a(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,o){try{(o=i(42)(Function.call,i(36).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return l(t,i),e?t.__proto__=i:o(t,i),t}}({},!1):void 0),check:l}},function(t,e,i){t.exports={default:i(102),__esModule:!0}},function(t,e,i){i(103);var o=i(1).Object;t.exports=function(t,e){return o.create(t,e)}},function(t,e,i){var o=i(2);o(o.S,"Object",{create:i(29)})},function(t,e,i){t.exports={default:i(105),__esModule:!0}},function(t,e,i){i(106),t.exports=parseInt},function(t,e,i){var o=i(2),a=i(107);o(o.S+o.F*(Number.parseInt!=a),"Number",{parseInt:a})},function(t,e,i){var o=i(0).parseInt,a=i(108).trim,l=i(56),n=/^[-+]?0[xX]/;t.exports=8!==o(l+"08")||22!==o(l+"0x16")?function(t,e){var i=a(String(t),3) |
| 7070 | 7119 | ;return o(i,e>>>0||(n.test(i)?16:10))}:o},function(t,e,i){var o=i(2),a=i(17),l=i(10),n=i(56),s="["+n+"]",r=RegExp("^"+s+s+"*"),b=RegExp(s+s+"*$"),c=function(t,e,i){var a={},s=l(function(){return!!n[t]()||" "!=" "[t]()}),r=a[t]=s?e(d):n[t];i&&(a[i]=r),o(o.P+o.F*s,"String",a)},d=c.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(r,"")),2&e&&(t=t.replace(b,"")),t};t.exports=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=o(i(14)),l=o(i(7)),n=o(i(15)),s=o(i(19)),r=o(i(20)),b=o(i(21)),c=o(i(8)),d=o(i(37)),u=o(i(55)),p=o(i(22)),m=(c.default.import("blots/container"),c.default.import("parchment")),h=function(t){function e(){return(0,l.default)(this,e),(0,s.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,b.default)(e,t),(0,n.default)(e,[{key:"format",value:function(){this.getAttribute("table_id")}},{key:"optimize",value:function(t){(0, |
| 7071 | 7120 | r.default)(e.prototype.__proto__||(0,a.default)(e.prototype),"optimize",this).call(this,t);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("table_id")===this.domNode.getAttribute("table_id")&&(i.moveChildren(this),i.remove())}},{key:"insertBefore",value:function(t,i){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e})){var o=m.create(this.statics.defaultChild,d.default.random_id());o.appendChild(t),t=o}(0,r.default)(e.prototype.__proto__||(0,a.default)(e.prototype),"insertBefore",this).call(this,t,i)}}],[{key:"create",value:function(t){var i=(0,r.default)(e.__proto__||(0,a.default)(e),"create",this).call(this,"table");return i.setAttribute("table_id",t),i}}]),e}(p.default);h.blotName="table",h.tagName="table",h.scope=m.Scope.BLOCK_BLOT,h.defaultChild="tr",h.allowedChildren=[u.default],e.default=h},function(t,e,i){var o=i(111) |
| @@ -7089,11 +7138,11 @@ | ||
| 7089 | 7138 | var i=p(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function g(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),(e=d.call(this,t)).supportsObserver=!t.scrollPosition&&t.useIntersectionObserver&&n(),e.supportsObserver){var i=t.threshold;e.observer=function(t){return h[t]=h[t]||new IntersectionObserver(m,{rootMargin:t+"px"}),h[t]}(i)}return e}return i=g,o=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{ |
| 7090 | 7139 | key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollPosition,e=this.placeholder.getBoundingClientRect(),i=this.placeholder.style,o=parseInt(i.getPropertyValue("margin-left"),10)||0,a=parseInt(i.getPropertyValue("margin-top"),10)||0;return{bottom:t.y+e.bottom+a,left:t.x+e.left+o,right:t.x+e.right+o,top:t.y+e.top+a}}},{key:"isPlaceholderInViewport",value:function(){if("undefined"==typeof window||!this.placeholder)return!1;var t=this.props,e=t.scrollPosition,i=t.threshold,o=this.getPlaceholderBoundingBox(e),a=e.y+window.innerHeight,l=e.x,n=e.x+window.innerWidth,s=e.y;return Boolean(s-i<=o.bottom&&a+i>=o.top&&l-i<=o.right&&n+i>=o.left)}},{key:"updateVisibility",value:function(){ |
| 7091 | 7140 | this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var t=this,i=this.props,o=i.className,a=i.height,l=i.placeholder,n=i.style,s=i.width;if(l&&"function"!=typeof l.type)return e().cloneElement(l,{ref:function(e){return t.placeholder=e}});var c=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){b(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}({display:"inline-block"},n);return void 0!==s&&(c.width=s),void 0!==a&&(c.height=a),e().createElement("span",{className:o,ref:function(e){return t.placeholder=e},style:c},l)}}],o&&c(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),g}(e().Component);g.propTypes={onVisible:o.PropTypes.func.isRequired,className:o.PropTypes.string, |
| 7092 | 7141 | height:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]),placeholder:o.PropTypes.element,threshold:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool,scrollPosition:o.PropTypes.shape({x:o.PropTypes.number.isRequired,y:o.PropTypes.number.isRequired}),width:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string])},g.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const f=g;var y=a(296),T=a.n(y),H=a(96),M=a.n(H),x=function(t){var e=getComputedStyle(t,null);return e.getPropertyValue("overflow")+e.getPropertyValue("overflow-y")+e.getPropertyValue("overflow-x")};const k=function(t){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e instanceof HTMLElement;){if(/(scroll|auto)/.test(x(e)))return e;e=e.parentNode}return window};function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){ |
| 7093 | -return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var _=["delayMethod","delayTime"];function R(){return R=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},R.apply(this,arguments)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function W(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return U(t)}function U(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}var j=function(){ | |
| 7094 | -return"undefined"==typeof window?0:window.scrollX||window.pageXOffset},w=function(){return"undefined"==typeof window?0:window.scrollY||window.pageYOffset};const z=function(t){var i=function(i){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(b,i);var o,a,l,s,r=(l=b,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=P(l);if(s){var i=P(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return W(this,t)});function b(t){var i;if(function(t,e){ | |
| 7095 | -if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),(i=r.call(this,t)).useIntersectionObserver=t.useIntersectionObserver&&n(),i.useIntersectionObserver)return W(i);var o=i.onChangeScroll.bind(U(i));return"debounce"===t.delayMethod?i.delayedScroll=T()(o,t.delayTime):"throttle"===t.delayMethod&&(i.delayedScroll=M()(o,t.delayTime)),i.state={scrollPosition:{x:j(),y:w()}},i.baseComponentRef=e().createRef(),i}return o=b,(a=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){"undefined"==typeof window||this.useIntersectionObserver||k(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement=k(this.baseComponentRef.current), | |
| 7142 | +return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var _=["delayMethod","delayTime"];function R(){return R=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},R.apply(this,arguments)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function W(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return P(t)}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}var j=function(){ | |
| 7143 | +return"undefined"==typeof window?0:window.scrollX||window.pageXOffset},w=function(){return"undefined"==typeof window?0:window.scrollY||window.pageYOffset};const z=function(t){var i=function(i){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(b,i);var o,a,l,s,r=(l=b,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=U(l);if(s){var i=U(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return W(this,t)});function b(t){var i;if(function(t,e){ | |
| 7144 | +if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),(i=r.call(this,t)).useIntersectionObserver=t.useIntersectionObserver&&n(),i.useIntersectionObserver)return W(i);var o=i.onChangeScroll.bind(P(i));return"debounce"===t.delayMethod?i.delayedScroll=T()(o,t.delayTime):"throttle"===t.delayMethod&&(i.delayedScroll=M()(o,t.delayTime)),i.state={scrollPosition:{x:j(),y:w()}},i.baseComponentRef=e().createRef(),i}return o=b,(a=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){"undefined"==typeof window||this.useIntersectionObserver||k(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement=k(this.baseComponentRef.current), | |
| 7096 | 7145 | this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:j(),y:w()}})}},{key:"render",value:function(){var i=this.props,o=(i.delayMethod,i.delayTime,function(t,e){if(null==t)return{};var i,o,a=function(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}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t) |
| 7097 | 7146 | ;for(o=0;o<l.length;o++)i=l[o],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}return a}(i,_)),a=this.useIntersectionObserver?null:this.state.scrollPosition;return e().createElement(t,R({forwardRef:this.baseComponentRef,scrollPosition:a},o))}}])&&function(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(a=function(t){if("object"!==v(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===v(a)?a:String(a)),o)}var a}(o.prototype,a),Object.defineProperty(o,"prototype",{writable:!1}),b}(e().Component);return i.propTypes={delayMethod:o.PropTypes.oneOf(["debounce","throttle"]),delayTime:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool},i.defaultProps={delayMethod:"throttle",delayTime:300, |
| 7098 | 7147 | useIntersectionObserver:!0},i};function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function A(t,e){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},A(t,e)}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&A(t,e)}(s,t);var i,o,a,l,n=(a=s,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{ |
| 7099 | 7148 | return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=L(a);if(l){var i=L(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),n.call(this,t)}return i=s,(o=[{key:"render",value:function(){return e().createElement(f,this.props)}}])&&function(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(a=function(t){if("object"!==C(t)||null===t)return t |
| @@ -7136,14 +7185,14 @@ | ||
| 7136 | 7185 | ;var m=(d=d||[]).slice(0);if(void 0!==u){if(c){if("function"==typeof c&&c(m,u))return;if("object"===(void 0===c?"undefined":v(c))){if(c.prefilter&&c.prefilter(m,u))return;if(c.normalize){var h=c.normalize(m,u,t,e);h&&(t=h[0],e=h[1])}}}m.push(u)}"regexp"===r(t)&&"regexp"===r(e)&&(t=t.toString(),e=e.toString());var g=void 0===t?"undefined":v(t),f=void 0===e?"undefined":v(e),y="undefined"!==g||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(u),T="undefined"!==f||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(u);if(!y&&T)i(new a(m,e));else if(!T&&y)i(new l(m,t));else if(r(t)!==r(e))i(new o(m,t,e));else if("date"===r(t)&&t-e!==0)i(new o(m,t,e));else if("object"===g&&null!==t&&null!==e)if(p.filter(function(e){return e.lhs===t}).length)t!==e&&i(new o(m,t,e));else{if(p.push({lhs:t,rhs:e}),Array.isArray(t)){var H;for(t.length,H=0;H<t.length;H++)H>=e.length?i(new n(m,H,new l(void 0,t[H]))):b(t[H],e[H],i,c,m,H,p);for(;H<e.length;)i(new n(m,H,new a(void 0,e[H++])))}else{ |
| 7137 | 7186 | var M=Object.keys(t),x=Object.keys(e);M.forEach(function(o,a){var l=x.indexOf(o);l>=0?(b(t[o],e[o],i,c,m,o,p),x=s(x,l)):b(t[o],void 0,i,c,m,o,p)}),x.forEach(function(t){b(void 0,e[t],i,c,m,t,p)})}p.length=p.length-1}else t!==e&&("number"===g&&isNaN(t)&&isNaN(e)||i(new o(m,t,e)))}function c(t,e,i,o){return o=o||[],b(t,e,function(t){t&&o.push(t)},i),o.length?o:void 0}function d(t,e,i){if(i.path&&i.path.length){var o,a=t[e],l=i.path.length-1;for(o=0;o<l;o++)a=a[i.path[o]];switch(i.kind){case"A":d(a[i.path[o]],i.index,i.item);break;case"D":delete a[i.path[o]];break;case"E":case"N":a[i.path[o]]=i.rhs}}else switch(i.kind){case"A":d(t[e],i.index,i.item);break;case"D":t=s(t,e);break;case"E":case"N":t[e]=i.rhs}return t}function u(t,e,i){if(t&&e&&i&&i.kind){for(var o=t,a=-1,l=i.path?i.path.length-1:0;++a<l;)void 0===o[i.path[a]]&&(o[i.path[a]]="number"==typeof i.path[a]?[]:{}),o=o[i.path[a]];switch(i.kind){case"A":d(i.path?o[i.path[a]]:o,i.index,i.item);break;case"D":delete o[i.path[a]];break |
| 7138 | 7187 | ;case"E":case"N":o[i.path[a]]=i.rhs}}}function p(t,e,i){if(i.path&&i.path.length){var o,a=t[e],l=i.path.length-1;for(o=0;o<l;o++)a=a[i.path[o]];switch(i.kind){case"A":p(a[i.path[o]],i.index,i.item);break;case"D":case"E":a[i.path[o]]=i.lhs;break;case"N":delete a[i.path[o]]}}else switch(i.kind){case"A":p(t[e],i.index,i.item);break;case"D":case"E":t[e]=i.lhs;break;case"N":t=s(t,e)}return t}function m(t){return"color: "+S[t].color+"; font-weight: bold"}function h(t,e,i,o){var a=c(t,e);try{o?i.groupCollapsed("diff"):i.group("diff")}catch(t){i.log("diff")}a?a.forEach(function(t){var e=t.kind,o=function(t){var e=t.kind,i=t.path,o=t.lhs,a=t.rhs,l=t.index,n=t.item;switch(e){case"E":return[i.join("."),o,"→",a];case"N":return[i.join("."),a];case"D":return[i.join(".")];case"A":return[i.join(".")+"["+l+"]",n];default:return[]}}(t);i.log.apply(i,["%c "+S[e].text,m(e)].concat(_(o)))}):i.log("—— no diff ——");try{i.groupEnd()}catch(t){i.log("—— diff end —— ")}}function g(t,e,i,o){ |
| 7139 | 7188 | switch(void 0===t?"undefined":v(t)){case"object":return"function"==typeof t[o]?t[o].apply(t,_(i)):t[o];case"function":return t(e);default:return t}}function f(t,e){var i=e.logger,o=e.actionTransformer,a=e.titleFormatter,l=void 0===a?function(t){var e=t.timestamp,i=t.duration;return function(t,o,a){var l=["action"];return l.push("%c"+String(t.type)),e&&l.push("%c@ "+o),i&&l.push("%c(in "+a.toFixed(2)+" ms)"),l.join(" ")}}(e):a,n=e.collapsed,s=e.colors,r=e.level,b=e.diff,c=void 0===e.titleFormatter;t.forEach(function(a,d){var u=a.started,p=a.startedTime,m=a.action,f=a.prevState,y=a.error,T=a.took,H=a.nextState,M=t[d+1];M&&(H=M.prevState,T=M.started-u);var k=o(m),v="function"==typeof n?n(function(){return H},m,a):n,_=x(p),R=s.title?"color: "+s.title(k)+";":"",S=["color: gray; font-weight: lighter;"];S.push(R),e.timestamp&&S.push("color: gray; font-weight: lighter;"),e.duration&&S.push("color: gray; font-weight: lighter;");var W=l(k,_,T);try{ |
| 7140 | -v?s.title&&c?i.groupCollapsed.apply(i,["%c "+W].concat(S)):i.groupCollapsed(W):s.title&&c?i.group.apply(i,["%c "+W].concat(S)):i.group(W)}catch(t){i.log(W)}var U=g(r,k,[f],"prevState"),P=g(r,k,[k],"action"),j=g(r,k,[y,f],"error"),w=g(r,k,[H],"nextState");if(U)if(s.prevState){var z="color: "+s.prevState(f)+"; font-weight: bold";i[U]("%c prev state",z,f)}else i[U]("prev state",f);if(P)if(s.action){var C="color: "+s.action(k)+"; font-weight: bold";i[P]("%c action ",C,k)}else i[P]("action ",k);if(y&&j)if(s.error){var A="color: "+s.error(y,f)+"; font-weight: bold;";i[j]("%c error ",A,y)}else i[j]("error ",y);if(w)if(s.nextState){var L="color: "+s.nextState(H)+"; font-weight: bold";i[w]("%c next state",L,H)}else i[w]("next state",H);b&&h(f,H,i,v);try{i.groupEnd()}catch(t){i.log("—— log end ——")}})}function y(){ | |
| 7189 | +v?s.title&&c?i.groupCollapsed.apply(i,["%c "+W].concat(S)):i.groupCollapsed(W):s.title&&c?i.group.apply(i,["%c "+W].concat(S)):i.group(W)}catch(t){i.log(W)}var P=g(r,k,[f],"prevState"),U=g(r,k,[k],"action"),j=g(r,k,[y,f],"error"),w=g(r,k,[H],"nextState");if(P)if(s.prevState){var z="color: "+s.prevState(f)+"; font-weight: bold";i[P]("%c prev state",z,f)}else i[P]("prev state",f);if(U)if(s.action){var C="color: "+s.action(k)+"; font-weight: bold";i[U]("%c action ",C,k)}else i[U]("action ",k);if(y&&j)if(s.error){var A="color: "+s.error(y,f)+"; font-weight: bold;";i[j]("%c error ",A,y)}else i[j]("error ",y);if(w)if(s.nextState){var L="color: "+s.nextState(H)+"; font-weight: bold";i[w]("%c next state",L,H)}else i[w]("next state",H);b&&h(f,H,i,v);try{i.groupEnd()}catch(t){i.log("—— log end ——")}})}function y(){ | |
| 7141 | 7190 | var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},W,t),i=e.logger,o=e.stateTransformer,a=e.errorTransformer,l=e.predicate,n=e.logErrors,s=e.diffPredicate;if(void 0===i)return function(){return function(t){return function(e){return t(e)}}};if(t.getState&&t.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(t){return function(e){return t(e)}}};var r=[];return function(t){var i=t.getState;return function(t){return function(b){ |
| 7142 | 7191 | if("function"==typeof l&&!l(i,b))return t(b);var c={};r.push(c),c.started=k.now(),c.startedTime=new Date,c.prevState=o(i()),c.action=b;var d=void 0;if(n)try{d=t(b)}catch(t){c.error=a(t)}else d=t(b);c.took=k.now()-c.started,c.nextState=o(i());var u=e.diff&&"function"==typeof s?s(i,b):e.diff;if(f(r,Object.assign({},e,{diff:u})),r.length=0,c.error)throw c.error;return d}}}}var T,H,M=function(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t},x=function(t){return M(t.getHours(),2)+":"+M(t.getMinutes(),2)+":"+M(t.getSeconds(),2)+"."+M(t.getMilliseconds(),3)},k="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e] |
| 7143 | 7192 | ;return i}return Array.from(t)},R=[];T="object"===("undefined"==typeof globalThis?"undefined":v(globalThis))&&globalThis?globalThis:"undefined"!=typeof window?window:{},(H=T.DeepDiff)&&R.push(function(){void 0!==H&&T.DeepDiff===c&&(T.DeepDiff=H,H=void 0)}),e(o,i),e(a,i),e(l,i),e(n,i),Object.defineProperties(c,{diff:{value:c,enumerable:!0},observableDiff:{value:b,enumerable:!0},applyDiff:{value:function(t,e,i){t&&e&&b(t,e,function(o){i&&!i(t,e,o)||u(t,e,o)})},enumerable:!0},applyChange:{value:u,enumerable:!0},revertChange:{value:function(t,e,i){if(t&&e&&i&&i.kind){var o,a,l=t;for(a=i.path.length-1,o=0;o<a;o++)void 0===l[i.path[o]]&&(l[i.path[o]]={}),l=l[i.path[o]];switch(i.kind){case"A":p(l[i.path[o]],i.index,i.item);break;case"D":case"E":l[i.path[o]]=i.lhs;break;case"N":delete l[i.path[o]]}}},enumerable:!0},isConflict:{value:function(){return void 0!==H},enumerable:!0},noConflict:{value:function(){return R&&(R.forEach(function(t){t()}),R=null),c},enumerable:!0}});var S={E:{ |
| 7144 | -color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},W={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(t){return t},actionTransformer:function(t){return t},errorTransformer:function(t){return t},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},U=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.dispatch,i=t.getState;return"function"==typeof e||"function"==typeof i?y()({dispatch:e,getState:i | |
| 7145 | -}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=W,t.createLogger=y,t.logger=U,t.default=U,Object.defineProperty(t,"__esModule",{value:!0})}(e)},85160(t,e,i){"use strict";var o=i(51609),a="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},l=o.useSyncExternalStore,n=o.useRef,s=o.useEffect,r=o.useMemo,b=o.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,i,o,c){var d=n(null);if(null===d.current){var u={hasValue:!1,value:null};d.current=u}else u=d.current;d=r(function(){function t(t){if(!s){if(s=!0,l=t,t=o(t),void 0!==c&&u.hasValue){var e=u.value;if(c(e,t))return n=e}return n=t}if(e=n,a(l,t))return e;var i=o(t);return void 0!==c&&c(e,i)?(l=t, | |
| 7193 | +color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},W={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(t){return t},actionTransformer:function(t){return t},errorTransformer:function(t){return t},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.dispatch,i=t.getState;return"function"==typeof e||"function"==typeof i?y()({dispatch:e,getState:i | |
| 7194 | +}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=W,t.createLogger=y,t.logger=P,t.default=P,Object.defineProperty(t,"__esModule",{value:!0})}(e)},85160(t,e,i){"use strict";var o=i(51609),a="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},l=o.useSyncExternalStore,n=o.useRef,s=o.useEffect,r=o.useMemo,b=o.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,i,o,c){var d=n(null);if(null===d.current){var u={hasValue:!1,value:null};d.current=u}else u=d.current;d=r(function(){function t(t){if(!s){if(s=!0,l=t,t=o(t),void 0!==c&&u.hasValue){var e=u.value;if(c(e,t))return n=e}return n=t}if(e=n,a(l,t))return e;var i=o(t);return void 0!==c&&c(e,i)?(l=t, | |
| 7146 | 7195 | e):(l=t,n=i)}var l,n,s=!1,r=void 0===i?null:i;return[function(){return t(e())},null===r?void 0:function(){return t(r())}]},[e,i,o,c]);var p=l(t,d[0],d[1]);return s(function(){u.hasValue=!0,u.value=p},[p]),b(p),p}},78418(t,e,i){"use strict";t.exports=i(85160)},9771(t){"use strict";t.exports=function(){}},51609(t){"use strict";t.exports=window.React},75795(t){"use strict";t.exports=window.ReactDOM},10790(t){"use strict";t.exports=window.ReactJSXRuntime},66087(t){"use strict";t.exports=window.lodash},94715(t){"use strict";t.exports=window.wp.blockEditor},74997(t){"use strict";t.exports=window.wp.blocks},56427(t){"use strict";t.exports=window.wp.components},47143(t){"use strict";t.exports=window.wp.data},38443(t){"use strict";t.exports=window.wp.date},52619(t){"use strict";t.exports=window.wp.hooks},27723(t){"use strict";t.exports=window.wp.i18n},46942(t,e){var i;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e] |
| 7147 | 7196 | ;i&&(t=n(t,l(i)))}return t}function l(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return a.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)o.call(t,i)&&t[i]&&(e=n(e,i));return e}function n(t,e){return e?t?t+" "+e:t+e:t}t.exports?(a.default=a,t.exports=a):void 0===(i=function(){return a}.apply(e,[]))||(t.exports=i)}()},58168(t,e,i){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)({}).hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},o.apply(null,arguments)}i.d(e,{A:()=>o})},98587(t,e,i){"use strict";function o(t,e){if(null==t)return{};var i={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;i[o]=t[o]}return i}i.d(e,{A:()=>o})},83148(t,e,i){"use strict";i.d(e,{U$:()=>r,W4:()=>l,fB:()=>a,hL:()=>s}) |
| 7148 | 7197 | ;var o=i(51609);function a(t){return Object.freeze({__version:1,map:t})}function l(t,e){return Object.freeze({...t,...e})}const n=(0,o.createContext)(null),s=n.Provider;function r(){const t=(0,o.useContext)(n);if(null==t)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}},56667(t,e,i){"use strict";i.d(e,{K:()=>l,Q:()=>a});var o=i(51609);function a(t,e,i){return Object.freeze({instance:t,context:e,container:i})}function l(t,e){return null==e?function(e,i){const a=(0,o.useRef)();return a.current||(a.current=t(e,i)),a}:function(i,a){const l=(0,o.useRef)();l.current||(l.current=t(i,a));const n=(0,o.useRef)(i),{instance:s}=l.current;return(0,o.useEffect)(function(){n.current!==i&&(e(s,i,n.current),n.current=i)},[s,i,a]),l}}},36543(t,e,i){"use strict";i.d(e,{T7:()=>u,Nq:()=>p,wk:()=>m,X3:()=>h});var o=i(51609),a=i(75795),l=i(83148);function n(t){function e(e,i){const{instance:a}=t(e).current;return(0, |
| 7149 | 7198 | o.useImperativeHandle)(i,()=>a),null}return(0,o.forwardRef)(e)}var s=i(56667);function r(t,e){const i=(0,o.useRef)(e);(0,o.useEffect)(function(){e!==i.current&&null!=t.attributionControl&&(null!=i.current&&t.attributionControl.removeAttribution(i.current),null!=e&&t.attributionControl.addAttribution(e)),i.current=e},[t,e])}function b(t,e){const i=(0,o.useRef)();(0,o.useEffect)(function(){return null!=e&&t.instance.on(e),i.current=e,function(){null!=i.current&&t.instance.off(i.current),i.current=null}},[t,e])}var c=i(57685);function d(t){return function(e){const i=(0,l.U$)(),a=t((0,c.P)(e,i),i);return r(i.map,e.attribution),b(a.current,e.eventHandlers),function(t,e){(0,o.useEffect)(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}(a.current,i),a}}function u(t){var e;return n((e=(0,s.K)(function(e,i){return(0,s.Q)(t(e),i)}),function(t){const i=(0, |
| @@ -7149,10 +7198,10 @@ | ||
| 7149 | 7198 | o.useImperativeHandle)(i,()=>a),null}return(0,o.forwardRef)(e)}var s=i(56667);function r(t,e){const i=(0,o.useRef)(e);(0,o.useEffect)(function(){e!==i.current&&null!=t.attributionControl&&(null!=i.current&&t.attributionControl.removeAttribution(i.current),null!=e&&t.attributionControl.addAttribution(e)),i.current=e},[t,e])}function b(t,e){const i=(0,o.useRef)();(0,o.useEffect)(function(){return null!=e&&t.instance.on(e),i.current=e,function(){null!=i.current&&t.instance.off(i.current),i.current=null}},[t,e])}var c=i(57685);function d(t){return function(e){const i=(0,l.U$)(),a=t((0,c.P)(e,i),i);return r(i.map,e.attribution),b(a.current,e.eventHandlers),function(t,e){(0,o.useEffect)(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}(a.current,i),a}}function u(t){var e;return n((e=(0,s.K)(function(e,i){return(0,s.Q)(t(e),i)}),function(t){const i=(0, |
| 7150 | 7199 | l.U$)(),a=e(t,i),{instance:n}=a.current,s=(0,o.useRef)(t.position),{position:r}=t;return(0,o.useEffect)(function(){return n.addTo(i.map),function(){n.remove()}},[i.map,n]),(0,o.useEffect)(function(){null!=r&&r!==s.current&&(n.setPosition(r),s.current=r)},[n,r]),a}))}function p(t,e){return function(t){function e(e,i){const{instance:a,context:n}=t(e).current;return(0,o.useImperativeHandle)(i,()=>a),null==e.children?null:o.createElement(l.hL,{value:n},e.children)}return(0,o.forwardRef)(e)}(d((0,s.K)(t,e)))}function m(t,e){const i=function(t,e){return function(i,o){const a=(0,l.U$)(),n=t((0,c.P)(i,a),a);return r(a.map,i.attribution),b(n.current,i.eventHandlers),e(n.current,a,i,o),n}}((0,s.K)(t),e);return function(t){function e(e,i){const[l,n]=(0,o.useState)(!1),{instance:s}=t(e,n).current;(0,o.useImperativeHandle)(i,()=>s),(0,o.useEffect)(function(){l&&s.update()},[s,l,e.children]);const r=s._contentNode;return r?(0,a.createPortal)(e.children,r):null}return(0,o.forwardRef)(e)}(i)} |
| 7151 | 7200 | function h(t,e){return n(d((0,s.K)(t,e)))}},57685(t,e,i){"use strict";function o(t,e){const i=t.pane??e.pane;return i?{...t,pane:i}:t}i.d(e,{P:()=>o})},36263(t,e,i){"use strict";i.d(e,{A:()=>d});var o=i(17275),a=i(73119),l=i(17013),n=i(77960),s=i(74062);const r={http:a.A,xhr:l.A,fetch:{get:n.J}};o.A.forEach(r,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const b=t=>`- ${t}`,c=t=>o.A.isFunction(t)||null===t||!1===t,d={getAdapter:function(t,e){t=o.A.isArray(t)?t:[t];const{length:i}=t;let a,l;const n={};for(let b=0;b<i;b++){let i;if(a=t[b],l=a,!c(a)&&(l=r[(i=String(a)).toLowerCase()],void 0===l))throw new s.A(`Unknown adapter '${i}'`);if(l&&(o.A.isFunction(l)||(l=l.get(e))))break;n[i||"#"+b]=l}if(!l){const t=Object.entries(n).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")) |
| 7152 | 7201 | ;let e=i?t.length>1?"since :\n"+t.map(b).join("\n"):" "+b(t[0]):"as no adapter specified";throw new s.A("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return l},adapters:r}},77960(t,e,i){"use strict";i.d(e,{J:()=>T});var o=i(63820),a=i(17275),l=i(74062),n=i(12723),s=i(1791),r=i(7110),b=i(77837),c=i(88382),d=i(63853);const{isFunction:u}=a.A,p=(({Request:t,Response:e})=>({Request:t,Response:e}))(a.A.global),{ReadableStream:m,TextEncoder:h}=a.A.global,g=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},f=t=>{t=a.A.merge.call({skipUndefined:!0},p,t);const{fetch:e,Request:i,Response:f}=t,y=e?u(e):"function"==typeof fetch,T=u(i),H=u(f);if(!y)return!1;const M=y&&u(m),x=y&&("function"==typeof h?(k=new h,t=>k.encode(t)):async t=>new Uint8Array(await new i(t).arrayBuffer()));var k;const v=T&&M&&g(()=>{let t=!1;const e=new m,a=new i(o.A.origin,{body:e,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return e.cancel(),t&&!a |
| 7153 | -}),_=H&&M&&g(()=>a.A.isReadableStream(new f("").body)),R={stream:_&&(t=>t.body)};y&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!R[t]&&(R[t]=(e,i)=>{let o=e&&e[t];if(o)return o.call(e);throw new l.A(`Response type '${t}' is not supported`,l.A.ERR_NOT_SUPPORT,i)})});return async t=>{let{url:u,method:p,data:m,signal:h,cancelToken:g,timeout:y,onDownloadProgress:H,onUploadProgress:M,responseType:k,headers:S,withCredentials:W="same-origin",fetchOptions:U}=(0,c.A)(t),P=e||fetch;k=k?(k+"").toLowerCase():"text";let j=(0,n.A)([h,g&&g.toAbortSignal()],y),w=null;const z=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let C;try{if(M&&v&&"get"!==p&&"head"!==p&&0!==(C=await(async(t,e)=>{const l=a.A.toFiniteNumber(t.getContentLength());return null==l?(async t=>{if(null==t)return 0;if(a.A.isBlob(t))return t.size;if(a.A.isSpecCompliantForm(t)){const e=new i(o.A.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength} | |
| 7154 | -return a.A.isArrayBufferView(t)||a.A.isArrayBuffer(t)?t.byteLength:(a.A.isURLSearchParams(t)&&(t+=""),a.A.isString(t)?(await x(t)).byteLength:void 0)})(e):l})(S,m))){let t,e=new i(u,{method:"POST",body:m,duplex:"half"});if(a.A.isFormData(m)&&(t=e.headers.get("content-type"))&&S.setContentType(t),e.body){const[t,i]=(0,b.Vj)(C,(0,b.C1)((0,b.mM)(M)));m=(0,s.E9)(e.body,65536,t,i)}}a.A.isString(W)||(W=W?"include":"omit");const e=T&&"credentials"in i.prototype,l={...U,signal:j,method:p.toUpperCase(),headers:S.normalize().toJSON(),body:m,duplex:"half",credentials:e?W:void 0};w=T&&new i(u,l);let n=await(T?P(w,U):P(u,l));const c=_&&("stream"===k||"response"===k);if(_&&(H||c&&z)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=n[e]});const e=a.A.toFiniteNumber(n.headers.get("content-length")),[i,o]=H&&(0,b.Vj)(e,(0,b.C1)((0,b.mM)(H),!0))||[];n=new f((0,s.E9)(n.body,65536,i,()=>{o&&o(),z&&z()}),t)}k=k||"text";let h=await R[a.A.findKey(R,k)||"text"](n,t);return!c&&z&&z(), | |
| 7202 | +}),_=H&&M&&g(()=>a.A.isReadableStream(new f("").body)),R={stream:_&&(t=>t.body)};y&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!R[t]&&(R[t]=(e,i)=>{let o=e&&e[t];if(o)return o.call(e);throw new l.A(`Response type '${t}' is not supported`,l.A.ERR_NOT_SUPPORT,i)})});return async t=>{let{url:u,method:p,data:m,signal:h,cancelToken:g,timeout:y,onDownloadProgress:H,onUploadProgress:M,responseType:k,headers:S,withCredentials:W="same-origin",fetchOptions:P}=(0,c.A)(t),U=e||fetch;k=k?(k+"").toLowerCase():"text";let j=(0,n.A)([h,g&&g.toAbortSignal()],y),w=null;const z=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let C;try{if(M&&v&&"get"!==p&&"head"!==p&&0!==(C=await(async(t,e)=>{const l=a.A.toFiniteNumber(t.getContentLength());return null==l?(async t=>{if(null==t)return 0;if(a.A.isBlob(t))return t.size;if(a.A.isSpecCompliantForm(t)){const e=new i(o.A.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength} | |
| 7203 | +return a.A.isArrayBufferView(t)||a.A.isArrayBuffer(t)?t.byteLength:(a.A.isURLSearchParams(t)&&(t+=""),a.A.isString(t)?(await x(t)).byteLength:void 0)})(e):l})(S,m))){let t,e=new i(u,{method:"POST",body:m,duplex:"half"});if(a.A.isFormData(m)&&(t=e.headers.get("content-type"))&&S.setContentType(t),e.body){const[t,i]=(0,b.Vj)(C,(0,b.C1)((0,b.mM)(M)));m=(0,s.E9)(e.body,65536,t,i)}}a.A.isString(W)||(W=W?"include":"omit");const e=T&&"credentials"in i.prototype,l={...P,signal:j,method:p.toUpperCase(),headers:S.normalize().toJSON(),body:m,duplex:"half",credentials:e?W:void 0};w=T&&new i(u,l);let n=await(T?U(w,P):U(u,l));const c=_&&("stream"===k||"response"===k);if(_&&(H||c&&z)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=n[e]});const e=a.A.toFiniteNumber(n.headers.get("content-length")),[i,o]=H&&(0,b.Vj)(e,(0,b.C1)((0,b.mM)(H),!0))||[];n=new f((0,s.E9)(n.body,65536,i,()=>{o&&o(),z&&z()}),t)}k=k||"text";let h=await R[a.A.findKey(R,k)||"text"](n,t);return!c&&z&&z(), | |
| 7155 | 7204 | await new Promise((e,i)=>{(0,d.A)(e,i,{data:h,headers:r.A.from(n.headers),status:n.status,statusText:n.statusText,config:t,request:w})})}catch(e){if(z&&z(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new l.A("Network Error",l.A.ERR_NETWORK,t,w,e&&e.response),{cause:e.cause||e});throw l.A.from(e,e&&e.code,t,w,e&&e.response)}}},y=new Map,T=t=>{let e=t&&t.env||{};const{fetch:i,Request:o,Response:a}=e,l=[o,a,i];let n,s,r=l.length,b=y;for(;r--;)n=l[r],s=b.get(n),void 0===s&&b.set(n,s=r?new Map:f(e)),b=s;return s};T()},17013(t,e,i){"use strict";i.d(e,{A:()=>p});var o=i(17275),a=i(63853),l=i(10807),n=i(74062),s=i(38458),r=i(55579),b=i(63820),c=i(7110),d=i(77837),u=i(88382);const p="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,i){const p=(0,u.A)(t);let m=p.data;const h=c.A.from(p.headers).normalize();let g,f,y,T,H,{responseType:M,onUploadProgress:x,onDownloadProgress:k}=p;function v(){T&&T(),H&&H(), |
| 7156 | 7205 | p.cancelToken&&p.cancelToken.unsubscribe(g),p.signal&&p.signal.removeEventListener("abort",g)}let _=new XMLHttpRequest;function R(){if(!_)return;const o=c.A.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),l={data:M&&"text"!==M&&"json"!==M?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:o,config:t,request:_};(0,a.A)(function(t){e(t),v()},function(t){i(t),v()},l),_=null}_.open(p.method.toUpperCase(),p.url,!0),_.timeout=p.timeout,"onloadend"in _?_.onloadend=R:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(R)},_.onabort=function(){_&&(i(new n.A("Request aborted",n.A.ECONNABORTED,t,_)),_=null)},_.onerror=function(e){const o=e&&e.message?e.message:"Network Error",a=new n.A(o,n.A.ERR_NETWORK,t,_);a.event=e||null,i(a),_=null},_.ontimeout=function(){let e=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded";const o=p.transitional||l.A |
| 7157 | 7206 | ;p.timeoutErrorMessage&&(e=p.timeoutErrorMessage),i(new n.A(e,o.clarifyTimeoutError?n.A.ETIMEDOUT:n.A.ECONNABORTED,t,_)),_=null},void 0===m&&h.setContentType(null),"setRequestHeader"in _&&o.A.forEach(h.toJSON(),function(t,e){_.setRequestHeader(e,t)}),o.A.isUndefined(p.withCredentials)||(_.withCredentials=!!p.withCredentials),M&&"json"!==M&&(_.responseType=p.responseType),k&&([y,H]=(0,d.C1)(k,!0),_.addEventListener("progress",y)),x&&_.upload&&([f,T]=(0,d.C1)(x),_.upload.addEventListener("progress",f),_.upload.addEventListener("loadend",T)),(p.cancelToken||p.signal)&&(g=e=>{_&&(i(!e||e.type?new s.A(null,t,_):e),_.abort(),_=null)},p.cancelToken&&p.cancelToken.subscribe(g),p.signal&&(p.signal.aborted?g():p.signal.addEventListener("abort",g)));const S=(0,r.A)(p.url);S&&-1===b.A.protocols.indexOf(S)?i(new n.A("Unsupported protocol "+S+":",n.A.ERR_BAD_REQUEST,t)):_.send(m||null)})}},57536(t,e,i){"use strict";i.d(e,{A:()=>M}) |
| 7158 | 7207 | ;var o=i(17275),a=i(12125),l=i(55978),n=i(44662),s=i(6013),r=i(77887),b=i(38458),c=i(64874),d=i(59575),u=i(89888),p=i(70665),m=i(74062),h=i(20605),g=i(68562),f=i(7110),y=i(36263),T=i(7693);const H=function t(e){const i=new l.A(e),s=(0,a.A)(l.A.prototype.request,i);return o.A.extend(s,l.A.prototype,i,{allOwnKeys:!0}),o.A.extend(s,i,null,{allOwnKeys:!0}),s.create=function(i){return t((0,n.A)(e,i))},s}(s.A);H.Axios=l.A,H.CanceledError=b.A,H.CancelToken=c.A,H.isCancel=d.A,H.VERSION=u.x,H.toFormData=p.A,H.AxiosError=m.A,H.Cancel=H.CanceledError,H.all=function(t){return Promise.all(t)},H.spread=h.A,H.isAxiosError=g.A,H.mergeConfig=n.A,H.AxiosHeaders=f.A,H.formToJSON=t=>(0,r.A)(o.A.isHTMLForm(t)?new FormData(t):t),H.getAdapter=y.A.getAdapter,H.HttpStatusCode=T.A,H.default=H;const M=H},64874(t,e,i){"use strict";i.d(e,{A:()=>l});var o=i(38458);class a{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t}) |
| @@ -7183,32 +7232,32 @@ | ||
| 7183 | 7232 | ;return!!n(t)||(e.append(r(a,i,u),h(t)),!1)}const f=[],y=Object.assign(b,{defaultVisitor:g,convertValue:h,isVisitable:n});if(!o.A.isObject(t))throw new TypeError("data must be an object");return function t(i,a){if(!o.A.isUndefined(i)){if(-1!==f.indexOf(i))throw Error("Circular reference detected in "+a.join("."));f.push(i),o.A.forEach(i,function(i,l){!0===(!(o.A.isUndefined(i)||null===i)&&d.call(e,i,o.A.isString(l)?l.trim():l,a,y))&&t(i,a?a.concat(l):[l])}),f.pop()}}(t),e}},31076(t,e,i){"use strict";i.d(e,{A:()=>n});var o=i(17275),a=i(70665),l=i(63820);function n(t,e){return(0,a.A)(t,new l.A.classes.URLSearchParams,{visitor:function(t,e,i,a){return l.A.isNode&&o.A.isBuffer(t)?(this.append(e,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}},1791(t,e,i){"use strict";i.d(e,{E9:()=>a});const o=function*(t,e){let i=t.byteLength;if(!e||i<e)return void(yield t);let o,a=0;for(;a<i;)o=a+e,yield t.slice(a,o),a=o},a=(t,e,i,a)=>{const l=async function*(t,e){ |
| 7184 | 7233 | for await(const i of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}}(t))yield*o(i,e)}(t,e);let n,s=0,r=t=>{n||(n=!0,a&&a(t))};return new ReadableStream({async pull(t){try{const{done:e,value:o}=await l.next();if(e)return r(),void t.close();let a=o.byteLength;if(i){let t=s+=a;i(t)}t.enqueue(new Uint8Array(o))}catch(t){throw r(t),t}},cancel:t=>(r(t),l.return())},{highWaterMark:2})}},13390(t,e,i){"use strict";i.d(e,{A:()=>s});var o=i(89888),a=i(74062);const l={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{l[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const n={};l.transitional=function(t,e,i){function l(t,e){return"[Axios v"+o.x+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,o,s)=>{if(!1===t)throw new a.A(l(o," has been removed"+(e?" in "+e:"")),a.A.ERR_DEPRECATED);return e&&!n[o]&&(n[o]=!0, |
| 7185 | 7234 | console.warn(l(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,o,s)}},l.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};const s={assertOptions:function(t,e,i){if("object"!=typeof t)throw new a.A("options must be an object",a.A.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let l=o.length;for(;l-- >0;){const n=o[l],s=e[n];if(s){const e=t[n],i=void 0===e||s(e,n,t);if(!0!==i)throw new a.A("option "+n+" must be "+i,a.A.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new a.A("Unknown option "+n,a.A.ERR_BAD_OPTION)}},validators:l}},66501(t,e,i){"use strict";i.d(e,{A:()=>o});const o="undefined"!=typeof Blob?Blob:null},98556(t,e,i){"use strict";i.d(e,{A:()=>o});const o="undefined"!=typeof FormData?FormData:null},60139(t,e,i){"use strict";i.d(e,{A:()=>a});var o=i(95267);const a="undefined"!=typeof URLSearchParams?URLSearchParams:o.A},56847(t,e,i){"use strict";i.d(e,{A:()=>n});var o=i(60139),a=i(98556),l=i(66501) |
| 7186 | 7235 | ;const n={isBrowser:!0,classes:{URLSearchParams:o.A,FormData:a.A,Blob:l.A},protocols:["http","https","file","blob","url","data"]}},92569(t,e,i){"use strict";i.r(e),i.d(e,{hasBrowserEnv:()=>o,hasStandardBrowserEnv:()=>l,hasStandardBrowserWebWorkerEnv:()=>n,navigator:()=>a,origin:()=>s});const o="undefined"!=typeof window&&"undefined"!=typeof document,a="object"==typeof navigator&&navigator||void 0,l=o&&(!a||["ReactNative","NativeScript","NS"].indexOf(a.product)<0),n="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,s=o&&window.location.href||"http://localhost"},63820(t,e,i){"use strict";i.d(e,{A:()=>a});var o=i(56847);const a={...i(92569),...o.A}},17275(t,e,i){"use strict";i.d(e,{A:()=>G});var o=i(12125);const{toString:a}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:n,toStringTag:s}=Symbol,r=(b=Object.create(null),t=>{const e=a.call(t);return b[e]||(b[e]=e.slice(8,-1).toLowerCase())});var b |
| 7187 | -;const c=t=>(t=t.toLowerCase(),e=>r(e)===t),d=t=>e=>typeof e===t,{isArray:u}=Array,p=d("undefined");function m(t){return null!==t&&!p(t)&&null!==t.constructor&&!p(t.constructor)&&f(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const h=c("ArrayBuffer"),g=d("string"),f=d("function"),y=d("number"),T=t=>null!==t&&"object"==typeof t,H=t=>{if("object"!==r(t))return!1;const e=l(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||s in t||n in t)},M=c("Date"),x=c("File"),k=c("Blob"),v=c("FileList"),_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{},R=void 0!==_.FormData?_.FormData:void 0,S=c("URLSearchParams"),[W,U,P,j]=["ReadableStream","Request","Response","Headers"].map(c);function w(t,e,{allOwnKeys:i=!1}={}){if(null==t)return;let o,a;if("object"!=typeof t&&(t=[t]),u(t))for(o=0,a=t.length;o<a;o++)e.call(null,t[o],o,t);else{if(m(t))return | |
| 7236 | +;const c=t=>(t=t.toLowerCase(),e=>r(e)===t),d=t=>e=>typeof e===t,{isArray:u}=Array,p=d("undefined");function m(t){return null!==t&&!p(t)&&null!==t.constructor&&!p(t.constructor)&&f(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const h=c("ArrayBuffer"),g=d("string"),f=d("function"),y=d("number"),T=t=>null!==t&&"object"==typeof t,H=t=>{if("object"!==r(t))return!1;const e=l(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||s in t||n in t)},M=c("Date"),x=c("File"),k=c("Blob"),v=c("FileList"),_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{},R=void 0!==_.FormData?_.FormData:void 0,S=c("URLSearchParams"),[W,P,U,j]=["ReadableStream","Request","Response","Headers"].map(c);function w(t,e,{allOwnKeys:i=!1}={}){if(null==t)return;let o,a;if("object"!=typeof t&&(t=[t]),u(t))for(o=0,a=t.length;o<a;o++)e.call(null,t[o],o,t);else{if(m(t))return | |
| 7188 | 7237 | ;const a=i?Object.getOwnPropertyNames(t):Object.keys(t),l=a.length;let n;for(o=0;o<l;o++)n=a[o],e.call(null,t[n],n,t)}}function z(t,e){if(m(t))return null;e=e.toLowerCase();const i=Object.keys(t);let o,a=i.length;for(;a-- >0;)if(o=i[a],e===o.toLowerCase())return o;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,A=t=>!p(t)&&t!==C,L=(D="undefined"!=typeof Uint8Array&&l(Uint8Array),t=>D&&t instanceof D);var D;const N=c("HTMLFormElement"),I=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),V=c("RegExp"),O=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),o={};w(i,(i,a)=>{let l;!1!==(l=e(i,a,t))&&(o[a]=l||i)}),Object.defineProperties(t,o)},Y=c("AsyncFunction"),X=(B="function"==typeof setImmediate,E=f(C.postMessage),B?setImmediate:E?(F=`axios@${Math.random()}`,q=[],C.addEventListener("message",({source:t,data:e})=>{t===C&&e===F&&q.length&&q.shift()()},!1),t=>{q.push(t),C.postMessage(F,"*") |
| 7189 | -}):t=>setTimeout(t));var B,E,F,q;const $="undefined"!=typeof queueMicrotask?queueMicrotask.bind(C):"undefined"!=typeof process&&process.nextTick||X,G={isArray:u,isArrayBuffer:h,isBuffer:m,isFormData:t=>{let e;return t&&(R&&t instanceof R||f(t.append)&&("formdata"===(e=r(t))||"object"===e&&f(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&h(t.buffer),e},isString:g,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:T,isPlainObject:H,isEmptyObject:t=>{if(!T(t)||m(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:W,isRequest:U,isResponse:P,isHeaders:j,isUndefined:p,isDate:M,isFile:x,isReactNativeBlob:t=>!(!t||void 0===t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:k,isRegExp:V,isFunction:f,isStream:t=>T(t)&&f(t.pipe),isURLSearchParams:S,isTypedArray:L,isFileList:v, | |
| 7238 | +}):t=>setTimeout(t));var B,E,F,q;const $="undefined"!=typeof queueMicrotask?queueMicrotask.bind(C):"undefined"!=typeof process&&process.nextTick||X,G={isArray:u,isArrayBuffer:h,isBuffer:m,isFormData:t=>{let e;return t&&(R&&t instanceof R||f(t.append)&&("formdata"===(e=r(t))||"object"===e&&f(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&h(t.buffer),e},isString:g,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:T,isPlainObject:H,isEmptyObject:t=>{if(!T(t)||m(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:W,isRequest:P,isResponse:U,isHeaders:j,isUndefined:p,isDate:M,isFile:x,isReactNativeBlob:t=>!(!t||void 0===t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:k,isRegExp:V,isFunction:f,isStream:t=>T(t)&&f(t.pipe),isURLSearchParams:S,isTypedArray:L,isFileList:v, | |
| 7190 | 7239 | forEach:w,merge:function t(){const{caseless:e,skipUndefined:i}=A(this)&&this||{},o={},a=(a,l)=>{if("__proto__"===l||"constructor"===l||"prototype"===l)return;const n=e&&z(o,l)||l;H(o[n])&&H(a)?o[n]=t(o[n],a):H(a)?o[n]=t({},a):u(a)?o[n]=a.slice():i&&p(a)||(o[n]=a)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&w(arguments[t],a);return o},extend:(t,e,i,{allOwnKeys:a}={})=>(w(e,(e,a)=>{i&&f(e)?Object.defineProperty(t,a,{value:(0,o.A)(e,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{value:e,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,i,o)=>{t.prototype=Object.create(e.prototype,o),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,e,i,o)=>{ |
| 7191 | 7240 | let a,n,s;const r={};if(e=e||{},null==t)return e;do{for(a=Object.getOwnPropertyNames(t),n=a.length;n-- >0;)s=a[n],o&&!o(s,t,e)||r[s]||(e[s]=t[s],r[s]=!0);t=!1!==i&&l(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:r,kindOfTest:c,endsWith:(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const o=t.indexOf(e,i);return-1!==o&&o===i},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!y(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},forEachEntry:(t,e)=>{const i=(t&&t[n]).call(t);let o;for(;(o=i.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},matchAll:(t,e)=>{let i;const o=[];for(;null!==(i=t.exec(e));)o.push(i);return o},isHTMLForm:N,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:O,freezeMethods:t=>{O(t,(e,i)=>{if(f(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const o=t[i];f(o)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{ |
| 7192 | 7241 | throw Error("Can not rewrite read-only method '"+i+"'")}))})},toObjectSet:(t,e)=>{const i={},o=t=>{t.forEach(t=>{i[t]=!0})};return u(t)?o(t):o(String(t).split(e)),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:z,global:C,isContextDefined:A,isSpecCompliantForm:function(t){return!!(t&&f(t.append)&&"FormData"===t[s]&&t[n])},toJSONObject:t=>{const e=new Array(10),i=(t,o)=>{if(T(t)){if(e.indexOf(t)>=0)return;if(m(t))return t;if(!("toJSON"in t)){e[o]=t;const a=u(t)?[]:{};return w(t,(t,e)=>{const l=i(t,o+1);!p(l)&&(a[e]=l)}),e[o]=void 0,a}}return t};return i(t,0)},isAsyncFn:Y,isThenable:t=>t&&(T(t)||f(t))&&f(t.then)&&f(t.catch),setImmediate:X,asap:$,isIterable:t=>null!=t&&f(t[n])}},99418(t,e,i){"use strict";i.d(e,{A:()=>it});const{entries:o,setPrototypeOf:a,isFrozen:l,getPrototypeOf:n,getOwnPropertyDescriptor:s}=Object |
| 7193 | 7242 | ;let{freeze:r,seal:b,create:c}=Object,{apply:d,construct:u}="undefined"!=typeof Reflect&&Reflect;r||(r=function(t){return t}),b||(b=function(t){return t}),d||(d=function(t,e){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return t.apply(e,o)}),u||(u=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return new t(...i)});const p=W(Array.prototype.forEach),m=W(Array.prototype.lastIndexOf),h=W(Array.prototype.pop),g=W(Array.prototype.push),f=W(Array.prototype.splice),y=W(String.prototype.toLowerCase),T=W(String.prototype.toString),H=W(String.prototype.match),M=W(String.prototype.replace),x=W(String.prototype.indexOf),k=W(String.prototype.trim),v=W(Object.prototype.hasOwnProperty),_=W(RegExp.prototype.test),R=(S=TypeError,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return u(S,e)});var S;function W(t){return function(e){e instanceof RegExp&&(e.lastIndex=0) |
| 7194 | -;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return d(t,e,o)}}function U(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;a&&a(t,null);let o=e.length;for(;o--;){let a=e[o];if("string"==typeof a){const t=i(a);t!==a&&(l(e)||(e[o]=t),a=t)}t[a]=!0}return t}function P(t){for(let e=0;e<t.length;e++)v(t,e)||(t[e]=null);return t}function j(t){const e=c(null);for(const[i,a]of o(t))v(t,i)&&(Array.isArray(a)?e[i]=P(a):a&&"object"==typeof a&&a.constructor===Object?e[i]=j(a):e[i]=a);return e}function w(t,e){for(;null!==t;){const i=s(t,e);if(i){if(i.get)return W(i.get);if("function"==typeof i.value)return W(i.value)}t=n(t)}return function(){return null}} | |
| 7243 | +;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return d(t,e,o)}}function P(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;a&&a(t,null);let o=e.length;for(;o--;){let a=e[o];if("string"==typeof a){const t=i(a);t!==a&&(l(e)||(e[o]=t),a=t)}t[a]=!0}return t}function U(t){for(let e=0;e<t.length;e++)v(t,e)||(t[e]=null);return t}function j(t){const e=c(null);for(const[i,a]of o(t))v(t,i)&&(Array.isArray(a)?e[i]=U(a):a&&"object"==typeof a&&a.constructor===Object?e[i]=j(a):e[i]=a);return e}function w(t,e){for(;null!==t;){const i=s(t,e);if(i){if(i.get)return W(i.get);if("function"==typeof i.value)return W(i.value)}t=n(t)}return function(){return null}} | |
| 7195 | 7244 | const z=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),A=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=r(["#text"]),V=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),O=r(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),E=b(/<%[\w\W]*|[\w\W]*%>/gm),F=b(/\$\{[\w\W]*/gm),q=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=b(/^aria-[\-\w]+$/),G=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=b(/^(?:\w+script|data):/i),K=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=b(/^html$/i),Q=b(/^[a-z][.\w]*(-[.\w]+)+$/i) |
| 7196 | -;var tt=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:Q,DATA_ATTR:q,DOCTYPE_NAME:J,ERB_EXPR:E,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:Z,MUSTACHE_EXPR:B,TMPLIT_EXPR:F});const et=function(){return"undefined"==typeof window?null:window};var it=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const i=e=>t(e);if(i.version="3.3.3",i.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return i.isSupported=!1,i;let{document:a}=e;const l=a,n=l.currentScript,{DocumentFragment:s,HTMLTemplateElement:b,Node:d,Element:u,NodeFilter:S,NamedNodeMap:W=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:P,DOMParser:B,trustedTypes:E}=e,F=u.prototype,q=w(F,"cloneNode"),$=w(F,"remove"),Z=w(F,"nextSibling"),K=w(F,"childNodes"),Q=w(F,"parentNode");if("function"==typeof b){const t=a.createElement("template");t.content&&t.content.ownerDocument&&(a=t.content.ownerDocument)}let it,ot="" | |
| 7197 | -;const{implementation:at,createNodeIterator:lt,createDocumentFragment:nt,getElementsByTagName:st}=a,{importNode:rt}=l;let bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof o&&"function"==typeof Q&&at&&void 0!==at.createHTMLDocument;const{MUSTACHE_EXPR:ct,ERB_EXPR:dt,TMPLIT_EXPR:ut,DATA_ATTR:pt,ARIA_ATTR:mt,IS_SCRIPT_OR_DATA:ht,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:ft}=tt;let{IS_ALLOWED_URI:yt}=tt,Tt=null;const Ht=U({},[...z,...C,...A,...D,...I]);let Mt=null;const xt=U({},[...V,...O,...Y,...X]);let kt=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vt=null,_t=null | |
| 7198 | -;const Rt=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let St=!0,Wt=!0,Ut=!1,Pt=!0,jt=!1,wt=!0,zt=!1,Ct=!1,At=!1,Lt=!1,Dt=!1,Nt=!1,It=!0,Vt=!1,Ot=!0,Yt=!1,Xt={},Bt=null;const Et=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ft=null;const qt=U({},["audio","video","img","source","image","track"]);let $t=null;const Gt=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zt="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Qt=Jt,te=!1,ee=null;const ie=U({},[Zt,Kt,Jt],T);let oe=U({},["mi","mo","mn","ms","mtext"]),ae=U({},["annotation-xml"]) | |
| 7199 | -;const le=U({},["title","style","font","a","script"]);let ne=null;const se=["application/xhtml+xml","text/html"];let re=null,be=null;const ce=a.createElement("form"),de=function(t){return t instanceof RegExp||t instanceof Function},ue=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!be||be!==t){if(t&&"object"==typeof t||(t={}),t=j(t),ne=-1===se.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,re="application/xhtml+xml"===ne?T:y,Tt=v(t,"ALLOWED_TAGS")?U({},t.ALLOWED_TAGS,re):Ht,Mt=v(t,"ALLOWED_ATTR")?U({},t.ALLOWED_ATTR,re):xt,ee=v(t,"ALLOWED_NAMESPACES")?U({},t.ALLOWED_NAMESPACES,T):ie,$t=v(t,"ADD_URI_SAFE_ATTR")?U(j(Gt),t.ADD_URI_SAFE_ATTR,re):Gt,Ft=v(t,"ADD_DATA_URI_TAGS")?U(j(qt),t.ADD_DATA_URI_TAGS,re):qt,Bt=v(t,"FORBID_CONTENTS")?U({},t.FORBID_CONTENTS,re):Et,vt=v(t,"FORBID_TAGS")?U({},t.FORBID_TAGS,re):j({}),_t=v(t,"FORBID_ATTR")?U({},t.FORBID_ATTR,re):j({}),Xt=!!v(t,"USE_PROFILES")&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR, | |
| 7200 | -Wt=!1!==t.ALLOW_DATA_ATTR,Ut=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,jt=t.SAFE_FOR_TEMPLATES||!1,wt=!1!==t.SAFE_FOR_XML,zt=t.WHOLE_DOCUMENT||!1,Lt=t.RETURN_DOM||!1,Dt=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,At=t.FORCE_BODY||!1,It=!1!==t.SANITIZE_DOM,Vt=t.SANITIZE_NAMED_PROPS||!1,Ot=!1!==t.KEEP_CONTENT,Yt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||G,Qt=t.NAMESPACE||Jt,oe=t.MATHML_TEXT_INTEGRATION_POINTS||oe,ae=t.HTML_INTEGRATION_POINTS||ae,kt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&de(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&de(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(kt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),jt&&(Wt=!1), | |
| 7201 | -Dt&&(Lt=!0),Xt&&(Tt=U({},I),Mt=c(null),!0===Xt.html&&(U(Tt,z),U(Mt,V)),!0===Xt.svg&&(U(Tt,C),U(Mt,O),U(Mt,X)),!0===Xt.svgFilters&&(U(Tt,A),U(Mt,O),U(Mt,X)),!0===Xt.mathMl&&(U(Tt,D),U(Mt,Y),U(Mt,X))),v(t,"ADD_TAGS")||(Rt.tagCheck=null),v(t,"ADD_ATTR")||(Rt.attributeCheck=null),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Rt.tagCheck=t.ADD_TAGS:(Tt===Ht&&(Tt=j(Tt)),U(Tt,t.ADD_TAGS,re))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Rt.attributeCheck=t.ADD_ATTR:(Mt===xt&&(Mt=j(Mt)),U(Mt,t.ADD_ATTR,re))),t.ADD_URI_SAFE_ATTR&&U($t,t.ADD_URI_SAFE_ATTR,re),t.FORBID_CONTENTS&&(Bt===Et&&(Bt=j(Bt)),U(Bt,t.FORBID_CONTENTS,re)),t.ADD_FORBID_CONTENTS&&(Bt===Et&&(Bt=j(Bt)),U(Bt,t.ADD_FORBID_CONTENTS,re)),Ot&&(Tt["#text"]=!0),zt&&U(Tt,["html","head","body"]),Tt.table&&(U(Tt,["tbody"]),delete vt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.') | |
| 7202 | -;if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');it=t.TRUSTED_TYPES_POLICY,ot=it.createHTML("")}else void 0===it&&(it=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(i=e.getAttribute(o));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(E,n)),null!==it&&"string"==typeof ot&&(ot=it.createHTML(""));r&&r(t),be=t}},pe=U({},[...C,...A,...L]),me=U({},[...D,...N]),he=function(t){g(i.removed,{element:t});try{Q(t).removeChild(t)}catch(e){$(t)}},ge=function(t,e){try{g(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){g(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Lt||Dt)try{he(e)}catch(t){}else try{e.setAttribute(t,"") | |
| 7245 | +;var tt=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:Q,DATA_ATTR:q,DOCTYPE_NAME:J,ERB_EXPR:E,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:Z,MUSTACHE_EXPR:B,TMPLIT_EXPR:F});const et=function(){return"undefined"==typeof window?null:window};var it=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const i=e=>t(e);if(i.version="3.3.3",i.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return i.isSupported=!1,i;let{document:a}=e;const l=a,n=l.currentScript,{DocumentFragment:s,HTMLTemplateElement:b,Node:d,Element:u,NodeFilter:S,NamedNodeMap:W=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:U,DOMParser:B,trustedTypes:E}=e,F=u.prototype,q=w(F,"cloneNode"),$=w(F,"remove"),Z=w(F,"nextSibling"),K=w(F,"childNodes"),Q=w(F,"parentNode");if("function"==typeof b){const t=a.createElement("template");t.content&&t.content.ownerDocument&&(a=t.content.ownerDocument)}let it,ot="" | |
| 7246 | +;const{implementation:at,createNodeIterator:lt,createDocumentFragment:nt,getElementsByTagName:st}=a,{importNode:rt}=l;let bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof o&&"function"==typeof Q&&at&&void 0!==at.createHTMLDocument;const{MUSTACHE_EXPR:ct,ERB_EXPR:dt,TMPLIT_EXPR:ut,DATA_ATTR:pt,ARIA_ATTR:mt,IS_SCRIPT_OR_DATA:ht,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:ft}=tt;let{IS_ALLOWED_URI:yt}=tt,Tt=null;const Ht=P({},[...z,...C,...A,...D,...I]);let Mt=null;const xt=P({},[...V,...O,...Y,...X]);let kt=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vt=null,_t=null | |
| 7247 | +;const Rt=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let St=!0,Wt=!0,Pt=!1,Ut=!0,jt=!1,wt=!0,zt=!1,Ct=!1,At=!1,Lt=!1,Dt=!1,Nt=!1,It=!0,Vt=!1,Ot=!0,Yt=!1,Xt={},Bt=null;const Et=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ft=null;const qt=P({},["audio","video","img","source","image","track"]);let $t=null;const Gt=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zt="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Qt=Jt,te=!1,ee=null;const ie=P({},[Zt,Kt,Jt],T);let oe=P({},["mi","mo","mn","ms","mtext"]),ae=P({},["annotation-xml"]) | |
| 7248 | +;const le=P({},["title","style","font","a","script"]);let ne=null;const se=["application/xhtml+xml","text/html"];let re=null,be=null;const ce=a.createElement("form"),de=function(t){return t instanceof RegExp||t instanceof Function},ue=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!be||be!==t){if(t&&"object"==typeof t||(t={}),t=j(t),ne=-1===se.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,re="application/xhtml+xml"===ne?T:y,Tt=v(t,"ALLOWED_TAGS")?P({},t.ALLOWED_TAGS,re):Ht,Mt=v(t,"ALLOWED_ATTR")?P({},t.ALLOWED_ATTR,re):xt,ee=v(t,"ALLOWED_NAMESPACES")?P({},t.ALLOWED_NAMESPACES,T):ie,$t=v(t,"ADD_URI_SAFE_ATTR")?P(j(Gt),t.ADD_URI_SAFE_ATTR,re):Gt,Ft=v(t,"ADD_DATA_URI_TAGS")?P(j(qt),t.ADD_DATA_URI_TAGS,re):qt,Bt=v(t,"FORBID_CONTENTS")?P({},t.FORBID_CONTENTS,re):Et,vt=v(t,"FORBID_TAGS")?P({},t.FORBID_TAGS,re):j({}),_t=v(t,"FORBID_ATTR")?P({},t.FORBID_ATTR,re):j({}),Xt=!!v(t,"USE_PROFILES")&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR, | |
| 7249 | +Wt=!1!==t.ALLOW_DATA_ATTR,Pt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ut=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,jt=t.SAFE_FOR_TEMPLATES||!1,wt=!1!==t.SAFE_FOR_XML,zt=t.WHOLE_DOCUMENT||!1,Lt=t.RETURN_DOM||!1,Dt=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,At=t.FORCE_BODY||!1,It=!1!==t.SANITIZE_DOM,Vt=t.SANITIZE_NAMED_PROPS||!1,Ot=!1!==t.KEEP_CONTENT,Yt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||G,Qt=t.NAMESPACE||Jt,oe=t.MATHML_TEXT_INTEGRATION_POINTS||oe,ae=t.HTML_INTEGRATION_POINTS||ae,kt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&de(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&de(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(kt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),jt&&(Wt=!1), | |
| 7250 | +Dt&&(Lt=!0),Xt&&(Tt=P({},I),Mt=c(null),!0===Xt.html&&(P(Tt,z),P(Mt,V)),!0===Xt.svg&&(P(Tt,C),P(Mt,O),P(Mt,X)),!0===Xt.svgFilters&&(P(Tt,A),P(Mt,O),P(Mt,X)),!0===Xt.mathMl&&(P(Tt,D),P(Mt,Y),P(Mt,X))),v(t,"ADD_TAGS")||(Rt.tagCheck=null),v(t,"ADD_ATTR")||(Rt.attributeCheck=null),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Rt.tagCheck=t.ADD_TAGS:(Tt===Ht&&(Tt=j(Tt)),P(Tt,t.ADD_TAGS,re))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Rt.attributeCheck=t.ADD_ATTR:(Mt===xt&&(Mt=j(Mt)),P(Mt,t.ADD_ATTR,re))),t.ADD_URI_SAFE_ATTR&&P($t,t.ADD_URI_SAFE_ATTR,re),t.FORBID_CONTENTS&&(Bt===Et&&(Bt=j(Bt)),P(Bt,t.FORBID_CONTENTS,re)),t.ADD_FORBID_CONTENTS&&(Bt===Et&&(Bt=j(Bt)),P(Bt,t.ADD_FORBID_CONTENTS,re)),Ot&&(Tt["#text"]=!0),zt&&P(Tt,["html","head","body"]),Tt.table&&(P(Tt,["tbody"]),delete vt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.') | |
| 7251 | +;if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');it=t.TRUSTED_TYPES_POLICY,ot=it.createHTML("")}else void 0===it&&(it=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(i=e.getAttribute(o));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(E,n)),null!==it&&"string"==typeof ot&&(ot=it.createHTML(""));r&&r(t),be=t}},pe=P({},[...C,...A,...L]),me=P({},[...D,...N]),he=function(t){g(i.removed,{element:t});try{Q(t).removeChild(t)}catch(e){$(t)}},ge=function(t,e){try{g(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){g(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Lt||Dt)try{he(e)}catch(t){}else try{e.setAttribute(t,"") | |
| 7203 | 7252 | }catch(t){}},fe=function(t){let e=null,i=null;if(At)t="<remove></remove>"+t;else{const e=H(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===ne&&Qt===Jt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=it?it.createHTML(t):t;if(Qt===Jt)try{e=(new B).parseFromString(o,ne)}catch(t){}if(!e||!e.documentElement){e=at.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=te?ot:o}catch(t){}}const l=e.body||e.documentElement;return t&&i&&l.insertBefore(a.createTextNode(i),l.childNodes[0]||null),Qt===Jt?st.call(e,zt?"html":"body")[0]:zt?e.documentElement:l},ye=function(t){return lt.call(t.ownerDocument||t,t,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)},Te=function(t){ |
| 7204 | -return t instanceof P&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof W)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},He=function(t){return"function"==typeof d&&t instanceof d};function Me(t,e,o){p(t,t=>{t.call(i,e,o,be)})}const xe=function(t){let e=null;if(Me(bt.beforeSanitizeElements,t,null),Te(t))return he(t),!0;const o=re(t.nodeName);if(Me(bt.uponSanitizeElement,t,{tagName:o,allowedTags:Tt}),wt&&t.hasChildNodes()&&!He(t.firstElementChild)&&_(/<[/\w!]/g,t.innerHTML)&&_(/<[/\w!]/g,t.textContent))return he(t),!0;if(7===t.nodeType)return he(t),!0;if(wt&&8===t.nodeType&&_(/<[/\w]/g,t.data))return he(t),!0;if(!(Rt.tagCheck instanceof Function&&Rt.tagCheck(o))&&(!Tt[o]||vt[o])){if(!vt[o]&&ve(o)){if(kt.tagNameCheck instanceof RegExp&&_(kt.tagNameCheck,o))return!1 | |
| 7253 | +return t instanceof U&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof W)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},He=function(t){return"function"==typeof d&&t instanceof d};function Me(t,e,o){p(t,t=>{t.call(i,e,o,be)})}const xe=function(t){let e=null;if(Me(bt.beforeSanitizeElements,t,null),Te(t))return he(t),!0;const o=re(t.nodeName);if(Me(bt.uponSanitizeElement,t,{tagName:o,allowedTags:Tt}),wt&&t.hasChildNodes()&&!He(t.firstElementChild)&&_(/<[/\w!]/g,t.innerHTML)&&_(/<[/\w!]/g,t.textContent))return he(t),!0;if(7===t.nodeType)return he(t),!0;if(wt&&8===t.nodeType&&_(/<[/\w]/g,t.data))return he(t),!0;if(!(Rt.tagCheck instanceof Function&&Rt.tagCheck(o))&&(!Tt[o]||vt[o])){if(!vt[o]&&ve(o)){if(kt.tagNameCheck instanceof RegExp&&_(kt.tagNameCheck,o))return!1 | |
| 7205 | 7254 | ;if(kt.tagNameCheck instanceof Function&&kt.tagNameCheck(o))return!1}if(Ot&&!Bt[o]){const e=Q(t)||t.parentNode,i=K(t)||t.childNodes;if(i&&e)for(let o=i.length-1;o>=0;--o){const a=q(i[o],!0);a.__removalCount=(t.__removalCount||0)+1,e.insertBefore(a,Z(t))}}return he(t),!0}return t instanceof u&&!function(t){let e=Q(t);e&&e.tagName||(e={namespaceURI:Qt,tagName:"template"});const i=y(t.tagName),o=y(e.tagName);return!!ee[t.namespaceURI]&&(t.namespaceURI===Kt?e.namespaceURI===Jt?"svg"===i:e.namespaceURI===Zt?"svg"===i&&("annotation-xml"===o||oe[o]):Boolean(pe[i]):t.namespaceURI===Zt?e.namespaceURI===Jt?"math"===i:e.namespaceURI===Kt?"math"===i&&ae[o]:Boolean(me[i]):t.namespaceURI===Jt?!(e.namespaceURI===Kt&&!ae[o])&&!(e.namespaceURI===Zt&&!oe[o])&&!me[i]&&(le[i]||!pe[i]):!("application/xhtml+xml"!==ne||!ee[t.namespaceURI]))}(t)?(he(t),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!_(/<\/no(script|embed|frames)/i,t.innerHTML)?(jt&&3===t.nodeType&&(e=t.textContent,p([ct,dt,ut],t=>{ |
| 7206 | -e=M(e,t," ")}),t.textContent!==e&&(g(i.removed,{element:t.cloneNode()}),t.textContent=e)),Me(bt.afterSanitizeElements,t,null),!1):(he(t),!0)},ke=function(t,e,i){if(_t[e])return!1;if(It&&("id"===e||"name"===e)&&(i in a||i in ce))return!1;if(Wt&&!_t[e]&&_(pt,e));else if(St&&_(mt,e));else if(Rt.attributeCheck instanceof Function&&Rt.attributeCheck(e,t));else if(!Mt[e]||_t[e]){if(!(ve(t)&&(kt.tagNameCheck instanceof RegExp&&_(kt.tagNameCheck,t)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(t))&&(kt.attributeNameCheck instanceof RegExp&&_(kt.attributeNameCheck,e)||kt.attributeNameCheck instanceof Function&&kt.attributeNameCheck(e,t))||"is"===e&&kt.allowCustomizedBuiltInElements&&(kt.tagNameCheck instanceof RegExp&&_(kt.tagNameCheck,i)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(i))))return!1}else if($t[e]);else if(_(yt,M(i,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==x(i,"data:")||!Ft[t])if(Ut&&!_(ht,M(i,gt,"")));else if(i)return!1;return!0 | |
| 7207 | -},ve=function(t){return"annotation-xml"!==t&&H(t,ft)},_e=function(t){Me(bt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Te(t))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Mt,forceKeepAttr:void 0};let a=e.length;for(;a--;){const l=e[a],{name:n,namespaceURI:s,value:r}=l,b=re(n),c=r;let d="value"===n?c:k(c);if(o.attrName=b,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,Me(bt.uponSanitizeAttribute,t,o),d=o.attrValue,!Vt||"id"!==b&&"name"!==b||(ge(n,t),d="user-content-"+d),wt&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ge(n,t);continue}if("attributename"===b&&H(d,"href")){ge(n,t);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){ge(n,t);continue}if(!Pt&&_(/\/>/i,d)){ge(n,t);continue}jt&&p([ct,dt,ut],t=>{d=M(d,t," ")});const u=re(t.nodeName);if(ke(u,b,d)){if(it&&"object"==typeof E&&"function"==typeof E.getAttributeType)if(s);else switch(E.getAttributeType(u,b)){case"TrustedHTML": | |
| 7255 | +e=M(e,t," ")}),t.textContent!==e&&(g(i.removed,{element:t.cloneNode()}),t.textContent=e)),Me(bt.afterSanitizeElements,t,null),!1):(he(t),!0)},ke=function(t,e,i){if(_t[e])return!1;if(It&&("id"===e||"name"===e)&&(i in a||i in ce))return!1;if(Wt&&!_t[e]&&_(pt,e));else if(St&&_(mt,e));else if(Rt.attributeCheck instanceof Function&&Rt.attributeCheck(e,t));else if(!Mt[e]||_t[e]){if(!(ve(t)&&(kt.tagNameCheck instanceof RegExp&&_(kt.tagNameCheck,t)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(t))&&(kt.attributeNameCheck instanceof RegExp&&_(kt.attributeNameCheck,e)||kt.attributeNameCheck instanceof Function&&kt.attributeNameCheck(e,t))||"is"===e&&kt.allowCustomizedBuiltInElements&&(kt.tagNameCheck instanceof RegExp&&_(kt.tagNameCheck,i)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(i))))return!1}else if($t[e]);else if(_(yt,M(i,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==x(i,"data:")||!Ft[t])if(Pt&&!_(ht,M(i,gt,"")));else if(i)return!1;return!0 | |
| 7256 | +},ve=function(t){return"annotation-xml"!==t&&H(t,ft)},_e=function(t){Me(bt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Te(t))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Mt,forceKeepAttr:void 0};let a=e.length;for(;a--;){const l=e[a],{name:n,namespaceURI:s,value:r}=l,b=re(n),c=r;let d="value"===n?c:k(c);if(o.attrName=b,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,Me(bt.uponSanitizeAttribute,t,o),d=o.attrValue,!Vt||"id"!==b&&"name"!==b||(ge(n,t),d="user-content-"+d),wt&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ge(n,t);continue}if("attributename"===b&&H(d,"href")){ge(n,t);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){ge(n,t);continue}if(!Ut&&_(/\/>/i,d)){ge(n,t);continue}jt&&p([ct,dt,ut],t=>{d=M(d,t," ")});const u=re(t.nodeName);if(ke(u,b,d)){if(it&&"object"==typeof E&&"function"==typeof E.getAttributeType)if(s);else switch(E.getAttributeType(u,b)){case"TrustedHTML": | |
| 7208 | 7257 | d=it.createHTML(d);break;case"TrustedScriptURL":d=it.createScriptURL(d)}if(d!==c)try{s?t.setAttributeNS(s,n,d):t.setAttribute(n,d),Te(t)?he(t):h(i.removed)}catch(e){ge(n,t)}}else ge(n,t)}Me(bt.afterSanitizeAttributes,t,null)},Re=function t(e){let i=null;const o=ye(e);for(Me(bt.beforeSanitizeShadowDOM,e,null);i=o.nextNode();)Me(bt.uponSanitizeShadowNode,i,null),xe(i),_e(i),i.content instanceof s&&t(i.content);Me(bt.afterSanitizeShadowDOM,e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,n=null,r=null;if(te=!t,te&&(t="\x3c!--\x3e"),"string"!=typeof t&&!He(t)){if("function"!=typeof t.toString)throw R("toString is not a function");if("string"!=typeof(t=t.toString()))throw R("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Ct||ue(e),i.removed=[],"string"==typeof t&&(Yt=!1),Yt){if(t.nodeName){const e=re(t.nodeName);if(!Tt[e]||vt[e])throw R("root node is forbidden and cannot be sanitized in-place")} |
| 7209 | 7258 | }else if(t instanceof d)o=fe("\x3c!----\x3e"),a=o.ownerDocument.importNode(t,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Lt&&!jt&&!zt&&-1===t.indexOf("<"))return it&&Nt?it.createHTML(t):t;if(o=fe(t),!o)return Lt?null:Nt?ot:""}o&&At&&he(o.firstChild);const b=ye(Yt?t:o);for(;n=b.nextNode();)xe(n),_e(n),n.content instanceof s&&Re(n.content);if(Yt)return t;if(Lt){if(Dt)for(r=nt.call(o.ownerDocument);o.firstChild;)r.appendChild(o.firstChild);else r=o;return(Mt.shadowroot||Mt.shadowrootmode)&&(r=rt.call(l,r,!0)),r}let c=zt?o.outerHTML:o.innerHTML;return zt&&Tt["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&_(J,o.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+c),jt&&p([ct,dt,ut],t=>{c=M(c,t," ")}),it&&Nt?it.createHTML(c):c},i.setConfig=function(){ue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ct=!0},i.clearConfig=function(){be=null,Ct=!1}, |
| 7210 | -i.isValidAttribute=function(t,e,i){be||ue({});const o=re(t),a=re(e);return ke(o,a,i)},i.addHook=function(t,e){"function"==typeof e&&g(bt[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=m(bt[t],e);return-1===i?void 0:f(bt[t],i,1)[0]}return h(bt[t])},i.removeHooks=function(t){bt[t]=[]},i.removeAllHooks=function(){bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}()},75827(t,e,i){"use strict";i.r(e),i.d(e,{AttributeMap:()=>A.AttributeMap,Delta:()=>A,Module:()=>gt,Op:()=>A.Op,OpIterator:()=>A.OpIterator,Parchment:()=>o,Range:()=>lt,default:()=>zi});var o={};i.r(o),i.d(o,{Attributor:()=>n,AttributorStore:()=>m,BlockBlot:()=>R,ClassAttributor:()=>d,ContainerBlot:()=>W,EmbedBlot:()=>U,InlineBlot:()=>v,LeafBlot:()=>y,ParentBlot:()=>x,Registry:()=>b,Scope:()=>l,ScrollBlot:()=>w, | |
| 7259 | +i.isValidAttribute=function(t,e,i){be||ue({});const o=re(t),a=re(e);return ke(o,a,i)},i.addHook=function(t,e){"function"==typeof e&&g(bt[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=m(bt[t],e);return-1===i?void 0:f(bt[t],i,1)[0]}return h(bt[t])},i.removeHooks=function(t){bt[t]=[]},i.removeAllHooks=function(){bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}()},75827(t,e,i){"use strict";i.r(e),i.d(e,{AttributeMap:()=>A.AttributeMap,Delta:()=>A,Module:()=>gt,Op:()=>A.Op,OpIterator:()=>A.OpIterator,Parchment:()=>o,Range:()=>lt,default:()=>zi});var o={};i.r(o),i.d(o,{Attributor:()=>n,AttributorStore:()=>m,BlockBlot:()=>R,ClassAttributor:()=>d,ContainerBlot:()=>W,EmbedBlot:()=>P,InlineBlot:()=>v,LeafBlot:()=>y,ParentBlot:()=>x,Registry:()=>b,Scope:()=>l,ScrollBlot:()=>w, | |
| 7211 | 7260 | StyleAttributor:()=>p,TextBlot:()=>C});var a=i(66087),l=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(l||{});class n{constructor(t,e,i={}){this.attrName=t,this.keyName=e;const o=l.TYPE&l.ATTRIBUTE;this.scope=null!=i.scope?i.scope&l.LEVEL|o:l.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}static keys(t){return Array.from(t.attributes).map(t=>t.name)}add(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)}canAdd(t,e){return null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1)}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class s extends Error{constructor(t){ |
| 7212 | 7261 | super(t="[Parchment] "+t),this.message=t,this.name=this.constructor.name}}const r=class t{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(null==t)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let i=null;try{i=t.parentNode}catch{return null}return this.find(i,e)}return null}create(e,i,o){const a=this.query(i);if(null==a)throw new s(`Unable to create ${i} blot`);const l=a,n=i instanceof Node||i.nodeType===Node.TEXT_NODE?i:l.create(o),r=new l(e,n,o);return t.blots.set(r.domNode,r),r}find(e,i=!1){return t.find(e,i)}query(t,e=l.ANY){let i;return"string"==typeof t?i=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?i=this.types.text:"number"==typeof t?t&l.LEVEL&l.BLOCK?i=this.types.block:t&l.LEVEL&l.INLINE&&(i=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(t=>(i=this.classes[t],!!i)),i=i||this.tags[t.tagName]), |
| 7213 | 7262 | null==i?null:"scope"in i&&e&l.LEVEL&i.scope&&e&l.TYPE&i.scope?i:null}register(...t){return t.map(t=>{const e="blotName"in t,i="attrName"in t;if(!e&&!i)throw new s("Invalid definition");if(e&&"abstract"===t.blotName)throw new s("Cannot register abstract class");const o=e?t.blotName:i?t.attrName:void 0;return this.types[o]=t,i?"string"==typeof t.keyName&&(this.attributes[t.keyName]=t):e&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(t=>t.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(e=>{(null==this.tags[e]||null==t.className)&&(this.tags[e]=t)}))),t})}};r.blots=new WeakMap;let b=r;function c(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(t=>0===t.indexOf(`${e}-`))}const d=class extends n{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(t,e){return!!this.canAdd(t,e)&&(this.remove(t), |
| 7214 | 7263 | t.classList.add(`${this.keyName}-${e}`),!0)}remove(t){c(t,this.keyName).forEach(e=>{t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")}value(t){const e=(c(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}};function u(t){const e=t.split("-"),i=e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("");return e[0]+i}const p=class extends n{static keys(t){return(t.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(t,e){return!!this.canAdd(t,e)&&(t.style[u(this.keyName)]=e,!0)}remove(t){t.style[u(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[u(this.keyName)];return this.canAdd(t,e)?e:""}},m=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){ |
| @@ -7223,17 +7272,17 @@ | ||
| 7223 | 7272 | ;return o instanceof t&&this.moveChildren(o),super.replaceWith(o)}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const i=this.clone();return this.parent&&this.parent.insertBefore(i,this.next||void 0),this.children.forEachAt(t,this.length(),(t,o,a)=>{const l=t.split(o,e);null!=l&&i.appendChild(l)}),i}splitAfter(t){const e=this.clone();for(;null!=t.next;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const i=[],o=[];t.forEach(t=>{t.target===this.domNode&&"childList"===t.type&&(i.push(...t.addedNodes),o.push(...t.removedNodes))}),o.forEach(t=>{if(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const e=this.scroll.find(t);null!=e&&(null==e.domNode.parentNode||e.domNode.parentNode===this.domNode)&&e.detach()}), |
| 7224 | 7273 | i.filter(t=>t.parentNode===this.domNode&&t!==this.uiNode).sort((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(t=>{let e=null;null!=t.nextSibling&&(e=this.scroll.find(t.nextSibling));const i=H(t,this.scroll);(i.next!==e||null==i.next)&&(null!=i.parent&&i.parent.removeChild(this),this.insertBefore(i,e||void 0))}),this.enforceAllowedChildren()}};M.uiClass="";const x=M,k=class t extends x{static create(t){return super.create(t)}static formats(e,i){const o=i.query(t.blotName);if(null==o||e.tagName!==o.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new m(this.domNode)}format(e,i){if(e!==this.statics.blotName||i){const t=this.scroll.query(e,l.INLINE);if(null==t)return;t instanceof n?this.attributes.attribute(t,i):i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i)}else this.children.forEach(e=>{ |
| 7225 | 7274 | e instanceof t||(e=e.wrap(t.blotName,!0)),this.attributes.copy(e)}),this.unwrap()}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,o){null!=this.formats()[i]||this.scroll.query(i,l.ATTRIBUTE)?this.isolate(t,e).format(i,o):super.formatAt(t,e,i,o)}optimize(e){super.optimize(e);const i=this.formats();if(0===Object.keys(i).length)return this.unwrap();const o=this.next;o instanceof t&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(t[i]!==e[i])return!1;return!0}(i,o.formats())&&(o.moveChildren(this),o.remove())}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}wrap(e,i){const o=super.wrap(e,i);return o instanceof t&&this.attributes.move(o),o}};k.allowedChildren=[k,y],k.blotName="inline", |
| 7226 | 7275 | k.scope=l.INLINE_BLOT,k.tagName="SPAN";const v=k,_=class t extends x{static create(t){return super.create(t)}static formats(e,i){const o=i.query(t.blotName);if(null==o||e.tagName!==o.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new m(this.domNode)}format(e,i){const o=this.scroll.query(e,l.BLOCK);null!=o&&(o instanceof n?this.attributes.attribute(o,i):e!==this.statics.blotName||i?i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i):this.replaceWith(t.blotName))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,o){null!=this.scroll.query(i,l.BLOCK)?this.format(i,o):super.formatAt(t,e,i,o)}insertAt(t,e,i){if(null==i||null!=this.scroll.query(e,l.INLINE))super.insertAt(t,e,i);else{const o=this.split(t) |
| 7227 | -;if(null==o)throw new Error("Attempt to insertAt after block boundaries");{const t=this.scroll.create(e,i);o.parent.insertBefore(t,o)}}}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}};_.blotName="block",_.scope=l.BLOCK_BLOT,_.tagName="P",_.allowedChildren=[v,_,y];const R=_,S=class extends x{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,i,o){super.formatAt(t,e,i,o),this.enforceAllowedChildren()}insertAt(t,e,i){super.insertAt(t,e,i),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};S.blotName="container",S.scope=l.BLOCK_BLOT;const W=S,U=class extends y{static formats(t,e){}format(t,e){ | |
| 7228 | -super.formatAt(0,this.length(),t,e)}formatAt(t,e,i,o){0===t&&e===this.length()?this.format(i,o):super.formatAt(t,e,i,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}},P={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},j=class extends x{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(t=>{this.update(t)}),this.observer.observe(this.domNode,P),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const i=this.registry.find(t,e);return i?i.scroll===this?i:e?this.find(i.scroll.domNode.parentNode,!0):null:null}query(t,e=l.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(t=>{t.remove()}):super.deleteAt(t,e)}formatAt(t,e,i,o){this.update(), | |
| 7276 | +;if(null==o)throw new Error("Attempt to insertAt after block boundaries");{const t=this.scroll.create(e,i);o.parent.insertBefore(t,o)}}}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}};_.blotName="block",_.scope=l.BLOCK_BLOT,_.tagName="P",_.allowedChildren=[v,_,y];const R=_,S=class extends x{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,i,o){super.formatAt(t,e,i,o),this.enforceAllowedChildren()}insertAt(t,e,i){super.insertAt(t,e,i),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};S.blotName="container",S.scope=l.BLOCK_BLOT;const W=S,P=class extends y{static formats(t,e){}format(t,e){ | |
| 7277 | +super.formatAt(0,this.length(),t,e)}formatAt(t,e,i,o){0===t&&e===this.length()?this.format(i,o):super.formatAt(t,e,i,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}},U={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},j=class extends x{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(t=>{this.update(t)}),this.observer.observe(this.domNode,U),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const i=this.registry.find(t,e);return i?i.scroll===this?i:e?this.find(i.scroll.domNode.parentNode,!0):null:null}query(t,e=l.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(t=>{t.remove()}):super.deleteAt(t,e)}formatAt(t,e,i,o){this.update(), | |
| 7229 | 7278 | super.formatAt(t,e,i,o)}insertAt(t,e,i){this.update(),super.insertAt(t,e,i)}optimize(t=[],e={}){super.optimize(e);const i=e.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)t.push(o.pop());const a=(t,e=!0)=>{null==t||t===this||null!=t.domNode.parentNode&&(i.has(t.domNode)||i.set(t.domNode,[]),e&&a(t.parent))},l=t=>{i.has(t.domNode)&&(t instanceof x&&t.children.forEach(l),i.delete(t.domNode),t.optimize(e))};let n=t;for(let e=0;n.length>0;e+=1){if(e>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(n.forEach(t=>{const e=this.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach(t=>{const e=this.find(t,!1);a(e,!1),e instanceof x&&e.children.forEach(t=>{a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(l),n=Array.from(this.observer.takeRecords()),o=n.slice();o.length>0;)t.push(o.pop())}}update(t,e={}){ |
| 7230 | 7279 | t=t||this.observer.takeRecords();const i=new WeakMap;t.map(t=>{const e=this.find(t.target,!0);return null==e?null:i.has(e.domNode)?(i.get(e.domNode).push(t),null):(i.set(e.domNode,[t]),e)}).forEach(t=>{null!=t&&t!==this&&i.has(t.domNode)&&t.update(i.get(t.domNode)||[],e)}),e.mutationsMap=i,i.has(this.domNode)&&super.update(i.get(this.domNode),e),this.optimize(t,e)}};j.blotName="scroll",j.defaultChild=R,j.allowedChildren=[R,W],j.scope=l.BLOCK_BLOT,j.tagName="DIV";const w=j,z=class t extends y{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,i){null==i?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,i)}length(){return this.text.length}optimize(e){super.optimize(e), |
| 7231 | -this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const i=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next||void 0),this.text=this.statics.value(this.domNode),i}update(t,e){t.some(t=>"characterData"===t.type&&t.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};z.blotName="text",z.scope=l.INLINE_BLOT;const C=z;var A=i(12660);class L extends U{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}L.blotName="break",L.tagName="BR";const D=L;class N extends C{}const I={"&":"&","<":"<",">":">",'"':""","'":"'"};function V(t){return t.replace(/[&<>"']/g,t=>I[t])}class O extends v{ | |
| 7232 | -static allowedChildren=[O,D,U,N];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const i=O.order.indexOf(t),o=O.order.indexOf(e);return i>=0||o>=0?i-o:t===e?0:t<e?-1:1}formatAt(t,e,i,o){if(O.compare(this.statics.blotName,i)<0&&this.scroll.query(i,l.BLOT)){const a=this.isolate(t,e);o&&a.wrap(i,o)}else super.formatAt(t,e,i,o)}optimize(t){if(super.optimize(t),this.parent instanceof O&&O.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}const Y=O;class X extends R{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=E(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,i,o){e<=0||(this.scroll.query(i,l.BLOCK)?t+e===this.length()&&this.format(i,o):super.formatAt(t,Math.min(e,this.length()-t-1),i,o),this.cache={})}insertAt(t,e,i){if(null!=i)return super.insertAt(t,e,i), | |
| 7280 | +this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const i=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next||void 0),this.text=this.statics.value(this.domNode),i}update(t,e){t.some(t=>"characterData"===t.type&&t.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};z.blotName="text",z.scope=l.INLINE_BLOT;const C=z;var A=i(12660);class L extends P{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}L.blotName="break",L.tagName="BR";const D=L;class N extends C{}const I={"&":"&","<":"<",">":">",'"':""","'":"'"};function V(t){return t.replace(/[&<>"']/g,t=>I[t])}class O extends v{ | |
| 7281 | +static allowedChildren=[O,D,P,N];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const i=O.order.indexOf(t),o=O.order.indexOf(e);return i>=0||o>=0?i-o:t===e?0:t<e?-1:1}formatAt(t,e,i,o){if(O.compare(this.statics.blotName,i)<0&&this.scroll.query(i,l.BLOT)){const a=this.isolate(t,e);o&&a.wrap(i,o)}else super.formatAt(t,e,i,o)}optimize(t){if(super.optimize(t),this.parent instanceof O&&O.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}const Y=O;class X extends R{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=E(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,i,o){e<=0||(this.scroll.query(i,l.BLOCK)?t+e===this.length()&&this.format(i,o):super.formatAt(t,Math.min(e,this.length()-t-1),i,o),this.cache={})}insertAt(t,e,i){if(null!=i)return super.insertAt(t,e,i), | |
| 7233 | 7282 | void(this.cache={});if(0===e.length)return;const o=e.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let l=this;o.reduce((t,e)=>(l=l.split(t,!0),l.insertAt(0,e),e.length),t+a.length)}insertBefore(t,e){const{head:i}=this.children;super.insertBefore(t,e),i instanceof D&&i.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&(0===t||t>=this.length()-1)){const e=this.clone();return 0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)}const i=super.split(t,e);return this.cache={},i}} |
| 7234 | -X.blotName="block",X.tagName="P",X.defaultChild=D,X.allowedChildren=[D,Y,U,N];class B extends U{attach(){super.attach(),this.attributes=new m(this.domNode)}delta(){return(new A).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const i=this.scroll.query(t,l.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,e)}formatAt(t,e,i,o){this.format(i,o)}insertAt(t,e,i){if(null!=i)return void super.insertAt(t,e,i);const o=e.split("\n"),a=o.pop(),l=o.map(t=>{const e=this.scroll.create(X.blotName);return e.insertAt(0,t),e}),n=this.split(t);l.forEach(t=>{this.parent.insertBefore(t,n)}),a&&this.parent.insertBefore(this.scroll.create("text",a),n)}}function E(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.descendants(y).reduce((t,i)=>0===i.length()?t:t.insert(i.value(),F(i,{},e)),new A).insert("\n",F(t))}function F(t){ | |
| 7235 | -let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==t?e:("formats"in t&&"function"==typeof t.formats&&(e={...e,...t.formats()},i&&delete e["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope?e:F(t.parent,e,i))}B.scope=l.BLOCK_BLOT;class q extends U{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(t,e,i){super(t,e),this.selection=i,this.textNode=document.createTextNode(q.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,e){if(0!==this.savedLength)return void super.format(t,e);let i=this,o=0;for(;null!=i&&i.statics.scope!==l.BLOCK_BLOT;)o+=i.offset(i.parent),i=i.parent;null!=i&&(this.savedLength=q.CONTENTS.length,i.optimize(),i.formatAt(o,q.CONTENTS.length,t,e),this.savedLength=0)} | |
| 7283 | +X.blotName="block",X.tagName="P",X.defaultChild=D,X.allowedChildren=[D,Y,P,N];class B extends P{attach(){super.attach(),this.attributes=new m(this.domNode)}delta(){return(new A).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const i=this.scroll.query(t,l.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,e)}formatAt(t,e,i,o){this.format(i,o)}insertAt(t,e,i){if(null!=i)return void super.insertAt(t,e,i);const o=e.split("\n"),a=o.pop(),l=o.map(t=>{const e=this.scroll.create(X.blotName);return e.insertAt(0,t),e}),n=this.split(t);l.forEach(t=>{this.parent.insertBefore(t,n)}),a&&this.parent.insertBefore(this.scroll.create("text",a),n)}}function E(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.descendants(y).reduce((t,i)=>0===i.length()?t:t.insert(i.value(),F(i,{},e)),new A).insert("\n",F(t))}function F(t){ | |
| 7284 | +let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==t?e:("formats"in t&&"function"==typeof t.formats&&(e={...e,...t.formats()},i&&delete e["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope?e:F(t.parent,e,i))}B.scope=l.BLOCK_BLOT;class q extends P{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(t,e,i){super(t,e),this.selection=i,this.textNode=document.createTextNode(q.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,e){if(0!==this.savedLength)return void super.format(t,e);let i=this,o=0;for(;null!=i&&i.statics.scope!==l.BLOCK_BLOT;)o+=i.offset(i.parent),i=i.parent;null!=i&&(this.savedLength=q.CONTENTS.length,i.optimize(),i.formatAt(o,q.CONTENTS.length,t,e),this.savedLength=0)} | |
| 7236 | 7285 | index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof N?this.prev:null,i=e?e.length():0,o=this.next instanceof N?this.next:null,a=o?o.text:"",{textNode:l}=this,n=l.data.split(q.CONTENTS).join("");let s;if(l.data=q.CONTENTS,e)s=e,(n||o)&&(e.insertAt(e.length(),n+a),o&&o.remove());else if(o)s=o,o.insertAt(0,n);else{const t=document.createTextNode(n);s=this.scroll.create(t),this.parent.insertBefore(s,this)}if(this.remove(),t){const a=(t,a)=>e&&t===e.domNode?a:t===l?i+a-1:o&&t===o.domNode?i+n.length+a:null,r=a(t.start.node,t.start.offset),b=a(t.end.node,t.end.offset) |
| 7237 | 7286 | ;if(null!==r&&null!==b)return{startNode:s.domNode,startOffset:r,endNode:s.domNode,endOffset:b}}return null}update(t,e){if(t.some(t=>"characterData"===t.type&&t.target===this.textNode)){const t=this.restore();t&&(e.range=t)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if("A"===e.domNode.tagName){this.savedLength=q.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}}const $=q;var G=i(30228);const Z=new WeakMap,K=["error","warn","log","info"];let J="warn";function Q(t){if(J&&K.indexOf(t)<=K.indexOf(J)){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];console[t](...i)}}function tt(t){return K.reduce((e,i)=>(e[i]=Q.bind(console,i,t),e),{})}tt.level=t=>{J=t},Q.level=tt.level;const et=tt,it=et("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(t=>{document.addEventListener(t,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i] |
| 7238 | 7287 | ;Array.from(document.querySelectorAll(".ql-container")).forEach(t=>{const i=Z.get(t);i&&i.emitter&&i.emitter.handleDOM(...e)})})});const ot=class extends G{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",it.error)}emit(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return it.log.call(it,...e),super.emit(...e)}handleDOM(t){ |
| 7239 | 7288 | for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];(this.domListeners[t.type]||[]).forEach(e=>{let{node:o,handler:a}=e;(t.target===o||o.contains(t.target))&&a(t,...i)})}listenDOM(t,e,i){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:i})}},at=et("quill:selection");class lt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=e}}function nt(t,e){try{e.parentNode}catch(t){return!1}return t.contains(e)}const st=class{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new lt(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,ot.sources.USER),1)}), |
| @@ -7245,79 +7294,79 @@ | ||
| 7245 | 7294 | ;if(null==n||a||t!==n.startContainer||e!==n.startOffset||i!==n.endContainer||o!==n.endOffset){t instanceof Element&&"BR"===t.tagName&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),i instanceof Element&&"BR"===i.tagName&&(o=Array.from(i.parentNode.childNodes).indexOf(i),i=i.parentNode);const a=document.createRange();a.setStart(t,e),a.setEnd(i,o),l.removeAllRanges(),l.addRange(a)}}else l.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot.sources.API;if("string"==typeof e&&(i=e,e=!1),at.info("setRange",t),null!=t){const i=this.rangeToNative(t);this.setNativeRange(...i,e)}else this.setNativeRange(null);this.update(i)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot.sources.USER;const e=this.lastRange,[i,o]=this.getRange();if(this.lastRange=i,this.lastNative=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0, |
| 7246 | 7295 | a.isEqual)(e,this.lastRange)){if(!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode){const t=this.cursor.restore();t&&this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}const i=[ot.events.SELECTION_CHANGE,(0,a.cloneDeep)(this.lastRange),(0,a.cloneDeep)(e),t];this.emitter.emit(ot.events.EDITOR_CHANGE,...i),t!==ot.sources.SILENT&&this.emitter.emit(...i)}}},rt=/^[ -~]*$/;function bt(t,e,i){if(0===t.length){const[t]=ut(i.pop());return e<=0?`</li></${t}>`:`</li></${t}>${bt([],e-1,i)}`}const[{child:o,offset:a,length:l,indent:n,type:s},...r]=t,[b,c]=ut(s);if(n>e)return i.push(s),n===e+1?`<${b}><li${c}>${ct(o,a,l)}${bt(r,n,i)}`:`<${b}><li>${bt(t,e+1,i)}`;const d=i[i.length-1];if(n===e&&s===d)return`</li><li${c}>${ct(o,a,l)}${bt(r,n,i)}`;const[u]=ut(i.pop());return`</li></${u}>${bt(t,e-1,i)}`}function ct(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in t&&"function"==typeof t.html)return t.html(e,i) |
| 7247 | 7296 | ;if(t instanceof N)return V(t.value().slice(e,e+i)).replaceAll(" "," ");if(t instanceof x){if("list-container"===t.statics.blotName){const o=[];return t.children.forEachAt(e,i,(t,e,i)=>{const a="formats"in t&&"function"==typeof t.formats?t.formats():{};o.push({child:t,offset:e,length:i,indent:a.indent||0,type:a.list})}),bt(o,-1,[])}const a=[];if(t.children.forEachAt(e,i,(t,e,i)=>{a.push(ct(t,e,i))}),o||"list"===t.statics.blotName)return a.join("");const{outerHTML:l,innerHTML:n}=t.domNode,[s,r]=l.split(`>${n}<`);return"<table"===s?`<table style="border: 1px solid #000;">${a.join("")}<${r}`:`${s}>${a.join("")}<${r}`}return t.domNode instanceof Element?t.domNode.outerHTML:""}function dt(t,e){return Object.keys(e).reduce((i,o)=>{if(null==t[o])return i;const a=e[o];return a===t[o]?i[o]=a:Array.isArray(a)?a.indexOf(t[o])<0?i[o]=a.concat([t[o]]):i[o]=a:i[o]=[a,t[o]],i},{})}function ut(t){const e="ordered"===t?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'] |
| 7248 | 7297 | ;case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function pt(t){return t.reduce((t,e)=>{if("string"==typeof e.insert){const i=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(i,e.attributes)}return t.push(e)},new A)}function mt(t,e){let{index:i,length:o}=t;return new lt(i+e,o)}const ht=class{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const i=pt(t),o=new A;return function(t){const e=[];return t.forEach(t=>{"string"==typeof t.insert?t.insert.split("\n").forEach((i,o)=>{o&&e.push({insert:"\n",attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})}):e.push(t)}),e}(i.ops.slice()).reduce((t,i)=>{const n=A.Op.length(i);let s=i.attributes||{},r=!1,b=!1;if(null!=i.insert){if(o.retain(n),"string"==typeof i.insert){const o=i.insert;b=!o.endsWith("\n")&&(e<=t||!!this.scroll.descendant(B,t)[0]),this.scroll.insertAt(t,o) |
| 7249 | -;const[l,n]=this.scroll.line(t);let r=(0,a.merge)({},F(l));if(l instanceof X){const[t]=l.descendant(y,n);t&&(r=(0,a.merge)(r,F(t)))}s=A.AttributeMap.diff(r,s)||{}}else if("object"==typeof i.insert){const o=Object.keys(i.insert)[0];if(null==o)return t;const n=null!=this.scroll.query(o,l.INLINE);if(n)(e<=t||this.scroll.descendant(B,t)[0])&&(b=!0);else if(t>0){const[e,i]=this.scroll.descendant(y,t-1);e instanceof N?"\n"!==e.value()[i]&&(r=!0):e instanceof U&&e.statics.scope===l.INLINE_BLOT&&(r=!0)}if(this.scroll.insertAt(t,o,i.insert[o]),n){const[e]=this.scroll.descendant(y,t);if(e){const t=(0,a.merge)({},F(e));s=A.AttributeMap.diff(t,s)||{}}}}e+=n}else if(o.push(i),null!==i.retain&&"object"==typeof i.retain){const e=Object.keys(i.retain)[0];if(null==e)return t;this.scroll.updateEmbedAt(t,e,i.retain[e])}Object.keys(s).forEach(e=>{this.scroll.formatAt(t,n,e,s[e])});const c=r?1:0,d=b?1:0;return e+=c+d,o.retain(c),o.delete(d),t+n+c+d},0), | |
| 7298 | +;const[l,n]=this.scroll.line(t);let r=(0,a.merge)({},F(l));if(l instanceof X){const[t]=l.descendant(y,n);t&&(r=(0,a.merge)(r,F(t)))}s=A.AttributeMap.diff(r,s)||{}}else if("object"==typeof i.insert){const o=Object.keys(i.insert)[0];if(null==o)return t;const n=null!=this.scroll.query(o,l.INLINE);if(n)(e<=t||this.scroll.descendant(B,t)[0])&&(b=!0);else if(t>0){const[e,i]=this.scroll.descendant(y,t-1);e instanceof N?"\n"!==e.value()[i]&&(r=!0):e instanceof P&&e.statics.scope===l.INLINE_BLOT&&(r=!0)}if(this.scroll.insertAt(t,o,i.insert[o]),n){const[e]=this.scroll.descendant(y,t);if(e){const t=(0,a.merge)({},F(e));s=A.AttributeMap.diff(t,s)||{}}}}e+=n}else if(o.push(i),null!==i.retain&&"object"==typeof i.retain){const e=Object.keys(i.retain)[0];if(null==e)return t;this.scroll.updateEmbedAt(t,e,i.retain[e])}Object.keys(s).forEach(e=>{this.scroll.formatAt(t,n,e,s[e])});const c=r?1:0,d=b?1:0;return e+=c+d,o.retain(c),o.delete(d),t+n+c+d},0), | |
| 7250 | 7299 | o.reduce((t,e)=>"number"==typeof e.delete?(this.scroll.deleteAt(t,e.delete),t):t+A.Op.length(e),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(i)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update((new A).retain(t).delete(e))}formatLine(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(i).forEach(o=>{this.scroll.lines(t,Math.max(e,1)).forEach(t=>{t.format(o,i[o])})}),this.scroll.optimize();const o=(new A).retain(t).retain(e,(0,a.cloneDeep)(i));return this.update(o)}formatText(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(i).forEach(o=>{this.scroll.formatAt(t,e,o,i[o])});const o=(new A).retain(t).retain(e,(0,a.cloneDeep)(i));return this.update(o)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new A)}getFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],o=[] |
| 7251 | 7300 | ;0===e?this.scroll.path(t).forEach(t=>{const[e]=t;e instanceof X?i.push(e):e instanceof y&&o.push(e)}):(i=this.scroll.lines(t,e),o=this.scroll.descendants(y,t,e));const[a,l]=[i,o].map(t=>{const e=t.shift();if(null==e)return{};let i=F(e);for(;Object.keys(i).length>0;){const e=t.shift();if(null==e)return i;i=dt(F(e),i)}return i});return{...a,...l}}getHTML(t,e){const[i,o]=this.scroll.line(t);if(i){const a=i.length();return i.length()>=o+e&&(0!==o||e!==a)?ct(i,o,e,!0):ct(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(t=>"string"==typeof t.insert).map(t=>t.insert).join("")}insertContents(t,e){const i=pt(e),o=(new A).retain(t).concat(i);return this.scroll.insertContents(t,i),this.update(o)}insertEmbed(t,e,i){return this.scroll.insertAt(t,e,i),this.update((new A).retain(t).insert({[e]:i}))}insertText(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e), |
| 7252 | 7301 | Object.keys(i).forEach(o=>{this.scroll.formatAt(t,e.length,o,i[o])}),this.update((new A).retain(t).insert(e,(0,a.cloneDeep)(i)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if(t?.statics.blotName!==X.blotName)return!1;const e=t;return!(e.children.length>1)&&e.children.head instanceof D}removeFormat(t,e){const i=this.getText(t,e),[o,a]=this.scroll.line(t+e);let l=0,n=new A;null!=o&&(l=o.length()-a,n=o.delta().slice(a,a+l-1).insert("\n"));const s=this.getContents(t,e+l).diff((new A).insert(i).concat(n)),r=(new A).retain(t).concat(s);return this.applyDelta(r)}update(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const o=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(rt)&&this.scroll.find(e[0].target)){ |
| 7253 | -const a=this.scroll.find(e[0].target),l=F(a),n=a.offset(this.scroll),s=e[0].oldValue.replace($.CONTENTS,""),r=(new A).insert(s),b=(new A).insert(a.value()),c=i&&{oldRange:mt(i.oldRange,-n),newRange:mt(i.newRange,-n)};t=(new A).retain(n).concat(r.diff(b,c)).reduce((t,e)=>e.insert?t.insert(e.insert,l):t.push(e),new A),this.delta=o.compose(t)}else this.delta=this.getDelta(),t&&(0,a.isEqual)(o.compose(t),this.delta)||(t=o.diff(this.delta,i));return t}},gt=class{static DEFAULTS={};constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=e}},ft="\ufeff",yt=class extends U{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(t=>{this.contentNode.appendChild(t)}),this.leftGuard=document.createTextNode(ft),this.rightGuard=document.createTextNode(ft),this.domNode.appendChild(this.leftGuard), | |
| 7302 | +const a=this.scroll.find(e[0].target),l=F(a),n=a.offset(this.scroll),s=e[0].oldValue.replace($.CONTENTS,""),r=(new A).insert(s),b=(new A).insert(a.value()),c=i&&{oldRange:mt(i.oldRange,-n),newRange:mt(i.newRange,-n)};t=(new A).retain(n).concat(r.diff(b,c)).reduce((t,e)=>e.insert?t.insert(e.insert,l):t.push(e),new A),this.delta=o.compose(t)}else this.delta=this.getDelta(),t&&(0,a.isEqual)(o.compose(t),this.delta)||(t=o.diff(this.delta,i));return t}},gt=class{static DEFAULTS={};constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=e}},ft="\ufeff",yt=class extends P{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(t=>{this.contentNode.appendChild(t)}),this.leftGuard=document.createTextNode(ft),this.rightGuard=document.createTextNode(ft),this.domNode.appendChild(this.leftGuard), | |
| 7254 | 7303 | this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e,i=null;const o=t.data.split(ft).join("");if(t===this.leftGuard)if(this.prev instanceof N){const t=this.prev.length();this.prev.insertAt(t,o),i={startNode:this.prev.domNode,startOffset:t+o.length}}else e=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(e),this),i={startNode:e,startOffset:o.length};else t===this.rightGuard&&(this.next instanceof N?(this.next.insertAt(0,o),i={startNode:this.next.domNode,startOffset:o.length}):(e=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(e),this.next),i={startNode:e,startOffset:o.length}));return t.data=ft,i}update(t,e){t.forEach(t=>{if("characterData"===t.type&&(t.target===this.leftGuard||t.target===this.rightGuard)){const i=this.restore(t.target);i&&(e.range=i)}})}},Tt=class{isComposing=!1;constructor(t,e){this.scroll=t, |
| 7255 | 7304 | this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;!e||e instanceof yt||(this.emitter.emit(ot.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(ot.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(ot.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(ot.events.COMPOSITION_END,t),this.isComposing=!1}};class Ht{static DEFAULTS={modules:{}};static themes={default:Ht};modules={};constructor(t,e){this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{null==this.modules[t]&&this.addModule(t)})}addModule(t){ |
| 7256 | -const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}const Mt=Ht,xt=t=>t.parentElement||t.getRootNode().host||null,kt=t=>{const e=t.getBoundingClientRect(),i="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,o="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*i,bottom:e.top+t.clientHeight*o,left:e.left}},vt=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},_t=(t,e,i,o,a,l)=>t<i&&e>o?0:t<i?-(i-t+a):e>o?e-t>o-i?t+a-i:e-o+l:0,Rt=["block","break","cursor","inline","scroll","text"],St=et("quill"),Wt=new b;x.uiClass="ql-ui";class Ut{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Wt,theme:"default"};static events=ot.events;static sources=ot.sources;static version="2.0.3";static imports={delta:A,parchment:o,"core/module":gt,"core/theme":Mt};static debug(t){!0===t&&(t="log"), | |
| 7305 | +const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}const Mt=Ht,xt=t=>t.parentElement||t.getRootNode().host||null,kt=t=>{const e=t.getBoundingClientRect(),i="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,o="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*i,bottom:e.top+t.clientHeight*o,left:e.left}},vt=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},_t=(t,e,i,o,a,l)=>t<i&&e>o?0:t<i?-(i-t+a):e>o?e-t>o-i?t+a-i:e-o+l:0,Rt=["block","break","cursor","inline","scroll","text"],St=et("quill"),Wt=new b;x.uiClass="ql-ui";class Pt{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Wt,theme:"default"};static events=ot.events;static sources=ot.sources;static version="2.0.3";static imports={delta:A,parchment:o,"core/module":gt,"core/theme":Mt};static debug(t){!0===t&&(t="log"), | |
| 7257 | 7306 | et.level(t)}static find(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Z.get(t)||Wt.find(t,e)}static import(t){return null==this.imports[t]&&St.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0],e=!!(arguments.length<=1?void 0:arguments[1]),i="attrName"in t?t.attrName:t.blotName;"string"==typeof i?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(i=>{this.register(i,t[i],e)})}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],i=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[t]||i||St.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&"boolean"!=typeof e&&"abstract"!==e.blotName&&Wt.register(e),"function"==typeof e.register&&e.register(Wt)}}constructor(t){ |
| 7258 | -let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(t,e){const i=Pt(t);if(!i)throw new Error("Invalid Quill container");const o=!e.theme||e.theme===Ut.DEFAULTS.theme?Mt:Ut.import(`themes/${e.theme}`);if(!o)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...n}=Ut.DEFAULTS,{modules:s,...r}=o.DEFAULTS;let c=jt(e.modules);null!=c&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const d=(0,a.merge)({},jt(l),jt(s),c),u={...n,...wt(r),...wt(e)};let p=e.registry;return p?e.formats&&St.warn('Ignoring "formats" option because "registry" is specified'):p=e.formats?((t,e,i)=>{const o=new b;return Rt.forEach(t=>{const i=e.query(t);i&&o.register(i)}),t.forEach(t=>{let a=e.query(t);a||i.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`);let l=0;for(;a;)if(o.register(a),a="blotName"in a?a.requiredContainer??null:null,l+=1,l>100){ | |
| 7259 | -i.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}}),o})(e.formats,u.registry,St):u.registry,{...u,registry:p,container:i,theme:o,modules:Object.entries(d).reduce((t,e)=>{let[i,o]=e;if(!o)return t;const l=Ut.import(`modules/${i}`);return null==l?(St.error(`Cannot load ${i} module. Are you sure you registered it?`),t):{...t,[i]:(0,a.merge)({},l.DEFAULTS||{},o)}},{}),bounds:Pt(u.bounds)}}(t,e),this.container=this.options.container,null==this.container)return void St.error("Invalid Quill container",t);this.options.debug&&Ut.debug(this.options.debug);const i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Z.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new ot;const o=w.blotName,l=this.options.registry.query(o);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${o}" blot`) | |
| 7307 | +let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(t,e){const i=Ut(t);if(!i)throw new Error("Invalid Quill container");const o=!e.theme||e.theme===Pt.DEFAULTS.theme?Mt:Pt.import(`themes/${e.theme}`);if(!o)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...n}=Pt.DEFAULTS,{modules:s,...r}=o.DEFAULTS;let c=jt(e.modules);null!=c&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const d=(0,a.merge)({},jt(l),jt(s),c),u={...n,...wt(r),...wt(e)};let p=e.registry;return p?e.formats&&St.warn('Ignoring "formats" option because "registry" is specified'):p=e.formats?((t,e,i)=>{const o=new b;return Rt.forEach(t=>{const i=e.query(t);i&&o.register(i)}),t.forEach(t=>{let a=e.query(t);a||i.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`);let l=0;for(;a;)if(o.register(a),a="blotName"in a?a.requiredContainer??null:null,l+=1,l>100){ | |
| 7308 | +i.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}}),o})(e.formats,u.registry,St):u.registry,{...u,registry:p,container:i,theme:o,modules:Object.entries(d).reduce((t,e)=>{let[i,o]=e;if(!o)return t;const l=Pt.import(`modules/${i}`);return null==l?(St.error(`Cannot load ${i} module. Are you sure you registered it?`),t):{...t,[i]:(0,a.merge)({},l.DEFAULTS||{},o)}},{}),bounds:Ut(u.bounds)}}(t,e),this.container=this.options.container,null==this.container)return void St.error("Invalid Quill container",t);this.options.debug&&Pt.debug(this.options.debug);const i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Z.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new ot;const o=w.blotName,l=this.options.registry.query(o);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${o}" blot`) | |
| 7260 | 7309 | ;if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new ht(this.scroll),this.selection=new st(this.scroll,this.emitter),this.composition=new Tt(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(ot.events.EDITOR_CHANGE,t=>{t===ot.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(ot.events.SCROLL_UPDATE,(t,e)=>{const i=this.selection.lastRange,[o]=this.selection.getRange(),a=i&&o?{oldRange:i,newRange:o}:void 0;zt.call(this,()=>this.editor.update(null,e,a),t)}),this.emitter.on(ot.events.SCROLL_EMBED_UPDATE,(t,e)=>{const i=this.selection.lastRange,[o]=this.selection.getRange(),a=i&&o?{oldRange:i, |
| 7261 | -newRange:o}:void 0;zt.call(this,()=>{const i=(new A).retain(t.offset(this)).retain({[t.statics.blotName]:e});return this.editor.update(i,[],a)},Ut.sources.USER)}),i){const t=this.clipboard.convert({html:`${i}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){const e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,i){return[t,e,,i]=Ct(t,e,i),zt.call(this,()=>this.editor.deleteText(t,e),i,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t), | |
| 7310 | +newRange:o}:void 0;zt.call(this,()=>{const i=(new A).retain(t.offset(this)).retain({[t.statics.blotName]:e});return this.editor.update(i,[],a)},Pt.sources.USER)}),i){const t=this.clipboard.convert({html:`${i}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){const e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,i){return[t,e,,i]=Ct(t,e,i),zt.call(this,()=>this.editor.deleteText(t,e),i,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t), | |
| 7262 | 7311 | this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot.sources.API;return zt.call(this,()=>{const i=this.getSelection(!0);let o=new A;if(null==i)return o;if(this.scroll.query(t,l.BLOCK))o=this.editor.formatLine(i.index,i.length,{[t]:e});else{if(0===i.length)return this.selection.format(t,e),o;o=this.editor.formatText(i.index,i.length,{[t]:e})}return this.setSelection(i,ot.sources.SILENT),o},i)}formatLine(t,e,i,o,a){let l;return[t,e,l,a]=Ct(t,e,i,o,a),zt.call(this,()=>this.editor.formatLine(t,e,l),a,t,0)}formatText(t,e,i,o,a){let l;return[t,e,l,a]=Ct(t,e,i,o,a),zt.call(this,()=>this.editor.formatText(t,e,l),a,t,0)}getBounds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=null |
| 7263 | 7312 | ;if(i="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length),!i)return null;const o=this.container.getBoundingClientRect();return{bottom:i.bottom-o.top,height:i.height,left:i.left-o.left,right:i.right-o.left,top:i.top-o.top,width:i.width}}getContents(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t;return[t,e]=Ct(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){ |
| 7264 | -let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ct(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ct(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ut.sources.API | |
| 7313 | +let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ct(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ct(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Pt.sources.API | |
| 7265 | 7314 | ;return zt.call(this,()=>this.editor.insertEmbed(t,e,i),o,t)}insertText(t,e,i,o,a){let l;return[t,,l,a]=Ct(t,0,i,o,a),zt.call(this,()=>this.editor.insertText(t,e,l),a,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,i){return[t,e,,i]=Ct(t,e,i),zt.call(this,()=>this.editor.removeFormat(t,e),i,t)}scrollRectIntoView(t){((t,e)=>{const i=t.ownerDocument;let o=e,a=t;for(;a;){const t=a===i.body,e=t?{top:0,right:window.visualViewport?.width??i.documentElement.clientWidth,bottom:window.visualViewport?.height??i.documentElement.clientHeight,left:0}:kt(a),l=getComputedStyle(a),n=_t(o.left,o.right,e.left,e.right,vt(l.scrollPaddingLeft),vt(l.scrollPaddingRight)),s=_t(o.top,o.bottom,e.top,e.bottom,vt(l.scrollPaddingTop),vt(l.scrollPaddingBottom));if(n||s)if(t)i.defaultView?.scrollBy(n,s);else{const{scrollLeft:t,scrollTop:e}=a;s&&(a.scrollTop+=s), |
| 7266 | -n&&(a.scrollLeft+=n);const i=a.scrollLeft-t,l=a.scrollTop-e;o={left:o.left-i,top:o.top-l,right:o.right-i,bottom:o.bottom-l}}a=t||"fixed"===l.position?null:xt(a)}})(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.sources.API;return zt.call(this,()=>{t=new A(t);const e=this.getLength(),i=this.editor.deleteText(0,e),o=this.editor.insertContents(0,t),a=this.editor.deleteText(this.getLength()-1,1);return i.compose(o).compose(a)},e)}setSelection(t,e,i){null==t?this.selection.setRange(null,e||Ut.sources.API):([t,e,,i]=Ct(t,e,i),this.selection.setRange(new lt(Math.max(0,t),e),i), | |
| 7267 | -i!==ot.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.sources.API;const i=(new A).insert(t);return this.setContents(i,e)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.sources.API;return zt.call(this,()=>(t=new A(t),this.editor.applyDelta(t)),e,!0)}}function Pt(t){return"string"==typeof t?document.querySelector(t):t}function jt(t){return Object.entries(t??{}).reduce((t,e)=>{let[i,o]=e;return{...t,[i]:!0===o?{}:o}},{})}function wt(t){return Object.fromEntries(Object.entries(t).filter(t=>void 0!==t[1]))}function zt(t,e,i,o){if(!this.isEnabled()&&e===ot.sources.USER&&!this.allowReadOnlyEdits)return new A;let a=null==i?null:this.getSelection();const l=this.editor.delta,n=t();if(null!=a&&(!0===i&&(i=a.index), | |
| 7315 | +n&&(a.scrollLeft+=n);const i=a.scrollLeft-t,l=a.scrollTop-e;o={left:o.left-i,top:o.top-l,right:o.right-i,bottom:o.bottom-l}}a=t||"fixed"===l.position?null:xt(a)}})(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.sources.API;return zt.call(this,()=>{t=new A(t);const e=this.getLength(),i=this.editor.deleteText(0,e),o=this.editor.insertContents(0,t),a=this.editor.deleteText(this.getLength()-1,1);return i.compose(o).compose(a)},e)}setSelection(t,e,i){null==t?this.selection.setRange(null,e||Pt.sources.API):([t,e,,i]=Ct(t,e,i),this.selection.setRange(new lt(Math.max(0,t),e),i), | |
| 7316 | +i!==ot.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.sources.API;const i=(new A).insert(t);return this.setContents(i,e)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.sources.API;return zt.call(this,()=>(t=new A(t),this.editor.applyDelta(t)),e,!0)}}function Ut(t){return"string"==typeof t?document.querySelector(t):t}function jt(t){return Object.entries(t??{}).reduce((t,e)=>{let[i,o]=e;return{...t,[i]:!0===o?{}:o}},{})}function wt(t){return Object.fromEntries(Object.entries(t).filter(t=>void 0!==t[1]))}function zt(t,e,i,o){if(!this.isEnabled()&&e===ot.sources.USER&&!this.allowReadOnlyEdits)return new A;let a=null==i?null:this.getSelection();const l=this.editor.delta,n=t();if(null!=a&&(!0===i&&(i=a.index), | |
| 7268 | 7317 | null==o?a=At(a,n,e):0!==o&&(a=At(a,i,o,e)),this.setSelection(a,ot.sources.SILENT)),n.length()>0){const t=[ot.events.TEXT_CHANGE,n,l,e];this.emitter.emit(ot.events.EDITOR_CHANGE,...t),e!==ot.sources.SILENT&&this.emitter.emit(...t)}return n}function Ct(t,e,i,o,a){let l={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(a=o,o=i,i=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(a=o,o=i,i=e,e=0),"object"==typeof i?(l=i,a=o):"string"==typeof i&&(null!=o?l[i]=o:a=i),[t,e,l,a=a||ot.sources.API]}function At(t,e,i,o){const a="number"==typeof i?i:0;if(null==t)return null;let l,n;return e&&"function"==typeof e.transformPosition?[l,n]=[t.index,t.index+t.length].map(t=>e.transformPosition(t,o!==ot.sources.USER)):[l,n]=[t.index,t.index+t.length].map(t=>t<e||t===e&&o===ot.sources.USER?t:a>=0?t+a:Math.max(e,t+a)),new lt(l,n-l)}const Lt=class extends W{};function Dt(t){return t instanceof X||t instanceof B}function Nt(t){ |
| 7269 | 7318 | return"function"==typeof t.updateContent}function It(t,e,i){i.reduce((e,i)=>{const o=A.Op.length(i);let a=i.attributes||{};if(null!=i.insert)if("string"==typeof i.insert){const o=i.insert;t.insertAt(e,o);const[l]=t.descendant(y,e),n=F(l);a=A.AttributeMap.diff(n,a)||{}}else if("object"==typeof i.insert){const o=Object.keys(i.insert)[0];if(null==o)return e;if(t.insertAt(e,o,i.insert[o]),null!=t.scroll.query(o,l.INLINE)){const[i]=t.descendant(y,e),o=F(i);a=A.AttributeMap.diff(o,a)||{}}}return Object.keys(a).forEach(i=>{t.formatAt(e,o,i,a[i])}),e+o},e)}const Vt={scope:l.BLOCK,whitelist:["right","center","justify"]},Ot=new n("align","align",Vt),Yt=new d("align","ql-align",Vt),Xt=new p("align","text-align",Vt);class Bt extends p{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map(t=>`00${parseInt(t,10).toString(16)}`.slice(-2)).join("")}`):e}}const Et=new d("color","ql-color",{scope:l.INLINE |
| 7270 | -}),Ft=new Bt("color","color",{scope:l.INLINE}),qt=new d("background","ql-bg",{scope:l.INLINE}),$t=new Bt("background","background-color",{scope:l.INLINE});class Gt extends Lt{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(t=>t.length()<=1?"":t.domNode.innerText).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${V(this.code(t,e))}\n</pre>`}}class Zt extends X{static TAB=" ";static register(){Ut.register(Gt)}}class Kt extends Y{}Kt.blotName="code",Kt.tagName="CODE",Zt.blotName="code-block",Zt.className="ql-code-block",Zt.tagName="DIV",Gt.blotName="code-block-container",Gt.className="ql-code-block-container",Gt.tagName="DIV",Gt.allowedChildren=[Zt],Zt.allowedChildren=[N,D,$],Zt.requiredContainer=Gt;const Jt={scope:l.BLOCK,whitelist:["rtl"]},Qt=new n("direction","dir",Jt),te=new d("direction","ql-direction",Jt),ee=new p("direction","direction",Jt),ie={scope:l.INLINE,whitelist:["serif","monospace"] | |
| 7319 | +}),Ft=new Bt("color","color",{scope:l.INLINE}),qt=new d("background","ql-bg",{scope:l.INLINE}),$t=new Bt("background","background-color",{scope:l.INLINE});class Gt extends Lt{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(t=>t.length()<=1?"":t.domNode.innerText).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${V(this.code(t,e))}\n</pre>`}}class Zt extends X{static TAB=" ";static register(){Pt.register(Gt)}}class Kt extends Y{}Kt.blotName="code",Kt.tagName="CODE",Zt.blotName="code-block",Zt.className="ql-code-block",Zt.tagName="DIV",Gt.blotName="code-block-container",Gt.className="ql-code-block-container",Gt.tagName="DIV",Gt.allowedChildren=[Zt],Zt.allowedChildren=[N,D,$],Zt.requiredContainer=Gt;const Jt={scope:l.BLOCK,whitelist:["rtl"]},Qt=new n("direction","dir",Jt),te=new d("direction","ql-direction",Jt),ee=new p("direction","direction",Jt),ie={scope:l.INLINE,whitelist:["serif","monospace"] | |
| 7271 | 7320 | },oe=new d("font","ql-font",ie),ae=new class extends p{value(t){return super.value(t).replace(/["']/g,"")}}("font","font-family",ie),le=new d("size","ql-size",{scope:l.INLINE,whitelist:["small","large","huge"]}),ne=new p("size","font-size",{scope:l.INLINE,whitelist:["10px","18px","32px"]}),se=et("quill:keyboard"),re=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class be extends gt{static match(t,e){return!["altKey","ctrlKey","metaKey","shiftKey"].some(i=>!!e[i]!==t[i]&&null!==e[i])&&(e.key===t.key||e.key===t.which)}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(t=>{this.options.bindings[t]&&this.addBinding(this.options.bindings[t])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0 |
| 7272 | 7321 | },this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=function(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!=typeof t)return null;t=(0,a.cloneDeep)(t)}return t.shortKey&&(t[re]=t.shortKey,delete t.shortKey),t}(t);null!=o?("function"==typeof e&&(e={handler:e}),"function"==typeof i&&(i={handler:i}),(Array.isArray(o.key)?o.key:[o.key]).forEach(t=>{const a={...o,key:t,...e,...i} |
| 7273 | -;this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})):se.warn("Attempted to add invalid keyboard binding",o)}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return;if(229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(e=>be.match(t,e));if(0===e.length)return;const i=Ut.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(null==o||!this.quill.hasFocus())return;const[l,n]=this.quill.getLine(o.index),[s,r]=this.quill.getLeaf(o.index),[b,c]=0===o.length?[s,r]:this.quill.getLeaf(o.index+o.length),d=s instanceof C?s.value().slice(0,r):"",u=b instanceof C?b.value().slice(c):"",p={collapsed:0===o.length,empty:0===o.length&&l.length()<=1,format:this.quill.getFormat(o),line:l,offset:n,prefix:d,suffix:u,event:t};e.some(t=>{if(null!=t.collapsed&&t.collapsed!==p.collapsed)return!1 | |
| 7322 | +;this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})):se.warn("Attempted to add invalid keyboard binding",o)}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return;if(229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(e=>be.match(t,e));if(0===e.length)return;const i=Pt.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(null==o||!this.quill.hasFocus())return;const[l,n]=this.quill.getLine(o.index),[s,r]=this.quill.getLeaf(o.index),[b,c]=0===o.length?[s,r]:this.quill.getLeaf(o.index+o.length),d=s instanceof C?s.value().slice(0,r):"",u=b instanceof C?b.value().slice(c):"",p={collapsed:0===o.length,empty:0===o.length&&l.length()<=1,format:this.quill.getFormat(o),line:l,offset:n,prefix:d,suffix:u,event:t};e.some(t=>{if(null!=t.collapsed&&t.collapsed!==p.collapsed)return!1 | |
| 7274 | 7323 | ;if(null!=t.empty&&t.empty!==p.empty)return!1;if(null!=t.offset&&t.offset!==p.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(t=>null==p.format[t]))return!1}else if("object"==typeof t.format&&!Object.keys(t.format).every(e=>!0===t.format[e]?null!=p.format[e]:!1===t.format[e]?null==p.format[e]:(0,a.isEqual)(t.format[e],p.format[e])))return!1;return!(null!=t.prefix&&!t.prefix.test(p.prefix)||null!=t.suffix&&!t.suffix.test(p.suffix)||!0===t.handler.call(this,o,p,t))})&&t.preventDefault()})}handleBackspace(t,e){const i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(0===t.index||this.quill.getLength()<=1)return;let o={};const[a]=this.quill.getLine(t.index);let l=(new A).retain(t.index-i).delete(i);if(0===e.offset){const[e]=this.quill.getLine(t.index-1);if(e&&!("block"===e.statics.blotName&&e.length()<=1)){const e=a.formats(),i=this.quill.getFormat(t.index-1,1);if(o=A.AttributeMap.diff(e,i)||{},Object.keys(o).length>0){ |
| 7275 | -const e=(new A).retain(t.index+a.length()-2).retain(1,o);l=l.compose(e)}}}this.quill.updateContents(l,Ut.sources.USER),this.quill.focus()}handleDelete(t,e){const i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-i)return;let o={};const[a]=this.quill.getLine(t.index);let l=(new A).retain(t.index).delete(i);if(e.offset>=a.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const i=a.formats(),n=this.quill.getFormat(t.index,1);o=A.AttributeMap.diff(i,n)||{},Object.keys(o).length>0&&(l=l.retain(e.length()-1).retain(1,o))}}this.quill.updateContents(l,Ut.sources.USER),this.quill.focus()}handleDeleteRange(t){he({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const i=Object.keys(e.format).reduce((t,i)=>(this.quill.scroll.query(i,l.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t),{}),o=(new A).retain(t.index).delete(t.length).insert("\n",i);this.quill.updateContents(o,Ut.sources.USER), | |
| 7276 | -this.quill.setSelection(t.index+1,Ut.sources.SILENT),this.quill.focus()}}const ce={bindings:{bold:pe("bold"),italic:pe("italic"),underline:pe("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",Ut.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",Ut.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",Ut.sources.USER):null!=e.format.list&&this.quill.format("list",!1,Ut.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Ut.sources.USER)}},tab:{key:"Tab",handler(t,e){ | |
| 7277 | -if(e.format.table)return!0;this.quill.history.cutoff();const i=(new A).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(i,Ut.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,Ut.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Ut.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const i={list:!1};e.format.indent&&(i.indent=!1),this.quill.formatLine(t.index,t.length,i,Ut.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,i]=this.quill.getLine(t.index),o={...e.formats(),list:"checked"},a=(new A).retain(t.index).insert("\n",o).retain(e.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,Ut.sources.USER),this.quill.setSelection(t.index+1,Ut.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{ | |
| 7278 | -key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[i,o]=this.quill.getLine(t.index),a=(new A).retain(t.index).insert("\n",e.format).retain(i.length()-o-1).retain(1,{header:null});this.quill.updateContents(a,Ut.sources.USER),this.quill.setSelection(t.index+1,Ut.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[i,o,a,l]=e.getTable(t),n=function(t,e,i,o){return null==e.prev&&null==e.next?null==i.prev&&null==i.next?0===o?-1:1:null==i.prev?-1:1:null==e.prev?-1:null==e.next?1:null}(0,o,a,l);if(null==n)return;let s=i.offset();if(n<0){const e=(new A).retain(s).insert("\n");this.quill.updateContents(e,Ut.sources.USER),this.quill.setSelection(t.index+1,t.length,Ut.sources.SILENT) | |
| 7279 | -}else if(n>0){s+=i.length();const t=(new A).retain(s).insert("\n");this.quill.updateContents(t,Ut.sources.USER),this.quill.setSelection(s,Ut.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:i,line:o}=e,a=o.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(a-1,Ut.sources.USER):this.quill.setSelection(a+o.length(),Ut.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(null==this.quill.scroll.query("list"))return!0;const{length:i}=e.prefix,[o,a]=this.quill.getLine(t.index);if(a>i)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",Ut.sources.USER),this.quill.history.cutoff();const n=(new A).retain(t.index-a).delete(i+1).retain(o.length()-2-a).retain(1,{list:l}) | |
| 7280 | -;return this.quill.updateContents(n,Ut.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,Ut.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,i]=this.quill.getLine(t.index);let o=2,a=e;for(;null!=a&&a.length()<=1&&a.formats()["code-block"];)if(a=a.prev,o-=1,o<=0){const o=(new A).retain(t.index+e.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Ut.sources.USER),this.quill.setSelection(t.index-1,Ut.sources.SILENT),!1}return!0}},"embed left":ue("ArrowLeft",!1),"embed left shift":ue("ArrowLeft",!0),"embed right":ue("ArrowRight",!1),"embed right shift":ue("ArrowRight",!0),"table down":me(!1),"table up":me(!0)}};function de(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,i){let{event:o}=i;const a=this.quill.scroll.query("code-block"),{TAB:l}=a;if(0===e.length&&!o.shiftKey)return this.quill.insertText(e.index,l,Ut.sources.USER), | |
| 7281 | -void this.quill.setSelection(e.index+l.length,Ut.sources.SILENT);const n=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:s,length:r}=e;n.forEach((e,i)=>{t?(e.insertAt(0,l),0===i?s+=l.length:r+=l.length):e.domNode.textContent.startsWith(l)&&(e.deleteAt(0,l.length),0===i?s-=l.length:r-=l.length)}),this.quill.update(Ut.sources.USER),this.quill.setSelection(s,r,Ut.sources.SILENT)}}}function ue(t,e){const i="ArrowLeft"===t?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[i]:/^$/,handler(i){let{index:o}=i;"ArrowRight"===t&&(o+=i.length+1);const[a]=this.quill.getLeaf(o);return!(a instanceof U&&("ArrowLeft"===t?e?this.quill.setSelection(i.index-1,i.length+1,Ut.sources.USER):this.quill.setSelection(i.index-1,Ut.sources.USER):e?this.quill.setSelection(i.index,i.length+1,Ut.sources.USER):this.quill.setSelection(i.index+i.length+1,Ut.sources.USER),1))}}}function pe(t){return{key:t[0],shortKey:!0,handler(e,i){this.quill.format(t,!i.format[t],Ut.sources.USER)}}} | |
| 7282 | -function me(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,i){const o=t?"prev":"next",a=i.line,l=a.parent[o];if(null!=l){if("table-row"===l.statics.blotName){let t=l.children.head,e=a;for(;null!=e.prev;)e=e.prev,t=t.next;const o=t.offset(this.quill.scroll)+Math.min(i.offset,t.length()-1);this.quill.setSelection(o,0,Ut.sources.USER)}}else{const e=a.table()[o];null!=e&&(t?this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Ut.sources.USER):this.quill.setSelection(e.offset(this.quill.scroll),0,Ut.sources.USER))}return!1}}}function he(t){let{quill:e,range:i}=t;const o=e.getLines(i);let a={};if(o.length>1){const t=o[0].formats(),e=o[o.length-1].formats();a=A.AttributeMap.diff(e,t)||{}}e.deleteText(i,Ut.sources.USER),Object.keys(a).length>0&&e.formatLine(i.index,1,a,Ut.sources.USER),e.setSelection(i.index,Ut.sources.SILENT)}be.DEFAULTS=ce | |
| 7324 | +const e=(new A).retain(t.index+a.length()-2).retain(1,o);l=l.compose(e)}}}this.quill.updateContents(l,Pt.sources.USER),this.quill.focus()}handleDelete(t,e){const i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-i)return;let o={};const[a]=this.quill.getLine(t.index);let l=(new A).retain(t.index).delete(i);if(e.offset>=a.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const i=a.formats(),n=this.quill.getFormat(t.index,1);o=A.AttributeMap.diff(i,n)||{},Object.keys(o).length>0&&(l=l.retain(e.length()-1).retain(1,o))}}this.quill.updateContents(l,Pt.sources.USER),this.quill.focus()}handleDeleteRange(t){he({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const i=Object.keys(e.format).reduce((t,i)=>(this.quill.scroll.query(i,l.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t),{}),o=(new A).retain(t.index).delete(t.length).insert("\n",i);this.quill.updateContents(o,Pt.sources.USER), | |
| 7325 | +this.quill.setSelection(t.index+1,Pt.sources.SILENT),this.quill.focus()}}const ce={bindings:{bold:pe("bold"),italic:pe("italic"),underline:pe("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",Pt.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",Pt.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",Pt.sources.USER):null!=e.format.list&&this.quill.format("list",!1,Pt.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Pt.sources.USER)}},tab:{key:"Tab",handler(t,e){ | |
| 7326 | +if(e.format.table)return!0;this.quill.history.cutoff();const i=(new A).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(i,Pt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,Pt.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Pt.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const i={list:!1};e.format.indent&&(i.indent=!1),this.quill.formatLine(t.index,t.length,i,Pt.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,i]=this.quill.getLine(t.index),o={...e.formats(),list:"checked"},a=(new A).retain(t.index).insert("\n",o).retain(e.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,Pt.sources.USER),this.quill.setSelection(t.index+1,Pt.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{ | |
| 7327 | +key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[i,o]=this.quill.getLine(t.index),a=(new A).retain(t.index).insert("\n",e.format).retain(i.length()-o-1).retain(1,{header:null});this.quill.updateContents(a,Pt.sources.USER),this.quill.setSelection(t.index+1,Pt.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[i,o,a,l]=e.getTable(t),n=function(t,e,i,o){return null==e.prev&&null==e.next?null==i.prev&&null==i.next?0===o?-1:1:null==i.prev?-1:1:null==e.prev?-1:null==e.next?1:null}(0,o,a,l);if(null==n)return;let s=i.offset();if(n<0){const e=(new A).retain(s).insert("\n");this.quill.updateContents(e,Pt.sources.USER),this.quill.setSelection(t.index+1,t.length,Pt.sources.SILENT) | |
| 7328 | +}else if(n>0){s+=i.length();const t=(new A).retain(s).insert("\n");this.quill.updateContents(t,Pt.sources.USER),this.quill.setSelection(s,Pt.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:i,line:o}=e,a=o.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(a-1,Pt.sources.USER):this.quill.setSelection(a+o.length(),Pt.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(null==this.quill.scroll.query("list"))return!0;const{length:i}=e.prefix,[o,a]=this.quill.getLine(t.index);if(a>i)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",Pt.sources.USER),this.quill.history.cutoff();const n=(new A).retain(t.index-a).delete(i+1).retain(o.length()-2-a).retain(1,{list:l}) | |
| 7329 | +;return this.quill.updateContents(n,Pt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,Pt.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,i]=this.quill.getLine(t.index);let o=2,a=e;for(;null!=a&&a.length()<=1&&a.formats()["code-block"];)if(a=a.prev,o-=1,o<=0){const o=(new A).retain(t.index+e.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Pt.sources.USER),this.quill.setSelection(t.index-1,Pt.sources.SILENT),!1}return!0}},"embed left":ue("ArrowLeft",!1),"embed left shift":ue("ArrowLeft",!0),"embed right":ue("ArrowRight",!1),"embed right shift":ue("ArrowRight",!0),"table down":me(!1),"table up":me(!0)}};function de(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,i){let{event:o}=i;const a=this.quill.scroll.query("code-block"),{TAB:l}=a;if(0===e.length&&!o.shiftKey)return this.quill.insertText(e.index,l,Pt.sources.USER), | |
| 7330 | +void this.quill.setSelection(e.index+l.length,Pt.sources.SILENT);const n=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:s,length:r}=e;n.forEach((e,i)=>{t?(e.insertAt(0,l),0===i?s+=l.length:r+=l.length):e.domNode.textContent.startsWith(l)&&(e.deleteAt(0,l.length),0===i?s-=l.length:r-=l.length)}),this.quill.update(Pt.sources.USER),this.quill.setSelection(s,r,Pt.sources.SILENT)}}}function ue(t,e){const i="ArrowLeft"===t?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[i]:/^$/,handler(i){let{index:o}=i;"ArrowRight"===t&&(o+=i.length+1);const[a]=this.quill.getLeaf(o);return!(a instanceof P&&("ArrowLeft"===t?e?this.quill.setSelection(i.index-1,i.length+1,Pt.sources.USER):this.quill.setSelection(i.index-1,Pt.sources.USER):e?this.quill.setSelection(i.index,i.length+1,Pt.sources.USER):this.quill.setSelection(i.index+i.length+1,Pt.sources.USER),1))}}}function pe(t){return{key:t[0],shortKey:!0,handler(e,i){this.quill.format(t,!i.format[t],Pt.sources.USER)}}} | |
| 7331 | +function me(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,i){const o=t?"prev":"next",a=i.line,l=a.parent[o];if(null!=l){if("table-row"===l.statics.blotName){let t=l.children.head,e=a;for(;null!=e.prev;)e=e.prev,t=t.next;const o=t.offset(this.quill.scroll)+Math.min(i.offset,t.length()-1);this.quill.setSelection(o,0,Pt.sources.USER)}}else{const e=a.table()[o];null!=e&&(t?this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Pt.sources.USER):this.quill.setSelection(e.offset(this.quill.scroll),0,Pt.sources.USER))}return!1}}}function he(t){let{quill:e,range:i}=t;const o=e.getLines(i);let a={};if(o.length>1){const t=o[0].formats(),e=o[o.length-1].formats();a=A.AttributeMap.diff(e,t)||{}}e.deleteText(i,Pt.sources.USER),Object.keys(a).length>0&&e.formatLine(i.index,1,a,Pt.sources.USER),e.setSelection(i.index,Pt.sources.SILENT)}be.DEFAULTS=ce | |
| 7283 | 7332 | ;const ge=/font-weight:\s*normal/,fe=["P","OL","UL"],ye=t=>t&&fe.includes(t.tagName),Te=/\bmso-list:[^;]*ignore/i,He=/\bmso-list:[^;]*\bl(\d+)/i,Me=/\bmso-list:[^;]*\blevel(\d+)/i,xe=[function(t){"urn:schemas-microsoft-com:office:word"===t.documentElement.getAttribute("xmlns:w")&&(t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]")),i=[],o=[];e.forEach(t=>{(t.getAttribute("style")||"").match(Te)?i.push(t):o.push(t)}),i.forEach(t=>t.parentNode?.removeChild(t));const a=t.documentElement.innerHTML,l=o.map(t=>((t,e)=>{const i=t.getAttribute("style"),o=i?.match(He);if(!o)return null;const a=Number(o[1]),l=i?.match(Me),n=l?Number(l[1]):1,s=new RegExp(`@list l${a}:level${n}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),r=e.match(s);return{id:a,indent:n,type:r&&"bullet"===r[1]?"bullet":"ordered",element:t}})(t,a)).filter(t=>t);for(;l.length;){const t=[];let e=l.shift();for(;e;)t.push(e), |
| 7284 | 7333 | e=l.length&&l[0]?.element===e.element.nextElementSibling&&l[0].id===e.id?l.shift():null;const i=document.createElement("ul");t.forEach(t=>{const e=document.createElement("li");e.setAttribute("data-list",t.type),t.indent>1&&e.setAttribute("class","ql-indent-"+(t.indent-1)),e.innerHTML=t.element.innerHTML,i.appendChild(e)});const o=t[0]?.element,{parentNode:a}=o??{};o&&a?.replaceChild(i,o),t.slice(1).forEach(t=>{let{element:e}=t;a?.removeChild(e)})}})(t)},function(t){t.querySelector('[id^="docs-internal-guid-"]')&&((t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(t=>t.getAttribute("style")?.match(ge)).forEach(e=>{const i=t.createDocumentFragment();i.append(...e.childNodes),e.parentNode?.replaceChild(i,e)})})(t),(t=>{Array.from(t.querySelectorAll("br")).filter(t=>ye(t.previousElementSibling)&&ye(t.nextElementSibling)).forEach(t=>{t.parentNode?.removeChild(t)})})(t))}],ke=et("quill:clipboard"),ve=[[Node.TEXT_NODE,function(t,e,i){let o=t.data |
| 7285 | -;if("O:P"===t.parentElement?.tagName)return e.insert(o.trim());if(!je(t)){if(0===o.trim().length&&o.includes("\n")&&!function(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Ue(t.previousElementSibling,e)&&!Ue(t.nextElementSibling,e)}(t,i))return e;o=o.replace(/[^\S\u00a0]/g," "),o=o.replace(/ {2,}/g," "),(null==t.previousSibling&&null!=t.parentElement&&Ue(t.parentElement,i)||t.previousSibling instanceof Element&&Ue(t.previousSibling,i))&&(o=o.replace(/^ /,"")),(null==t.nextSibling&&null!=t.parentElement&&Ue(t.parentElement,i)||t.nextSibling instanceof Element&&Ue(t.nextSibling,i))&&(o=o.replace(/ $/,"")),o=o.replaceAll(" "," ")}return e.insert(o)}],[Node.TEXT_NODE,Ce],["br",function(t,e){return We(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,Ce],[Node.ELEMENT_NODE,function(t,e,i){const o=i.query(t);if(null==o)return e;if(o.prototype instanceof U){const e={},a=o.value(t);if(null!=a)return e[o.blotName]=a,(new A).insert(e,o.formats(t,i)) | |
| 7334 | +;if("O:P"===t.parentElement?.tagName)return e.insert(o.trim());if(!je(t)){if(0===o.trim().length&&o.includes("\n")&&!function(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Pe(t.previousElementSibling,e)&&!Pe(t.nextElementSibling,e)}(t,i))return e;o=o.replace(/[^\S\u00a0]/g," "),o=o.replace(/ {2,}/g," "),(null==t.previousSibling&&null!=t.parentElement&&Pe(t.parentElement,i)||t.previousSibling instanceof Element&&Pe(t.previousSibling,i))&&(o=o.replace(/^ /,"")),(null==t.nextSibling&&null!=t.parentElement&&Pe(t.parentElement,i)||t.nextSibling instanceof Element&&Pe(t.nextSibling,i))&&(o=o.replace(/ $/,"")),o=o.replaceAll(" "," ")}return e.insert(o)}],[Node.TEXT_NODE,Ce],["br",function(t,e){return We(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,Ce],[Node.ELEMENT_NODE,function(t,e,i){const o=i.query(t);if(null==o)return e;if(o.prototype instanceof P){const e={},a=o.value(t);if(null!=a)return e[o.blotName]=a,(new A).insert(e,o.formats(t,i)) | |
| 7286 | 7335 | }else if(o.prototype instanceof R&&!We(e,"\n")&&e.insert("\n"),"blotName"in o&&"formats"in o&&"function"==typeof o.formats)return Se(e,o.blotName,o.formats(t,i),i);return e}],[Node.ELEMENT_NODE,function(t,e,i){const o=n.keys(t),a=d.keys(t),s=p.keys(t),r={};return o.concat(a).concat(s).forEach(e=>{let o=i.query(e,l.ATTRIBUTE);null!=o&&(r[o.attrName]=o.value(t),r[o.attrName])||(o=_e[e],null==o||o.attrName!==e&&o.keyName!==e||(r[o.attrName]=o.value(t)||void 0),o=Re[e],null==o||o.attrName!==e&&o.keyName!==e||(o=Re[e],r[o.attrName]=o.value(t)||void 0))}),Object.entries(r).reduce((t,e)=>{let[o,a]=e;return Se(t,o,a,i)},e)}],[Node.ELEMENT_NODE,function(t,e,i){const o={},a=t.style||{};return"italic"===a.fontStyle&&(o.italic=!0),"underline"===a.textDecoration&&(o.underline=!0),"line-through"===a.textDecoration&&(o.strike=!0),(a.fontWeight?.startsWith("bold")||parseInt(a.fontWeight,10)>=700)&&(o.bold=!0),e=Object.entries(o).reduce((t,e)=>{let[o,a]=e;return Se(t,o,a,i)},e), |
| 7287 | 7336 | parseFloat(a.textIndent||0)>0?(new A).insert("\t").concat(e):e}],["li",function(t,e,i){const o=i.query(t);if(null==o||"list"!==o.blotName||!We(e,"\n"))return e;let a=-1,l=t.parentNode;for(;null!=l;)["OL","UL"].includes(l.tagName)&&(a+=1),l=l.parentNode;return a<=0?e:e.reduce((t,e)=>e.insert?e.attributes&&"number"==typeof e.attributes.indent?t.push(e):t.insert(e.insert,{indent:a,...e.attributes||{}}):t,new A)}],["ol, ul",function(t,e,i){const o=t;let a="OL"===o.tagName?"ordered":"bullet";const l=o.getAttribute("data-checked");return l&&(a="true"===l?"checked":"unchecked"),Se(e,"list",a,i)}],["pre",function(t,e,i){const o=i.query("code-block");return Se(e,"code-block",!o||!("formats"in o)||"function"!=typeof o.formats||o.formats(t,i),i)}],["tr",function(t,e,i){const o="TABLE"===t.parentElement?.tagName?t.parentElement:t.parentElement?.parentElement;return null!=o?Se(e,"table",Array.from(o.querySelectorAll("tr")).indexOf(t)+1,i):e |
| 7288 | -}],["b",ze("bold")],["i",ze("italic")],["strike",ze("strike")],["style",function(){return new A}]],_e=[Ot,Qt].reduce((t,e)=>(t[e.keyName]=e,t),{}),Re=[Xt,$t,Ft,ee,ae,ne].reduce((t,e)=>(t[e.keyName]=e,t),{});function Se(t,e,i,o){return o.query(e)?t.reduce((t,o)=>{if(!o.insert)return t;if(o.attributes&&o.attributes[e])return t.push(o);const a=i?{[e]:i}:{};return t.insert(o.insert,{...a,...o.attributes})},new A):t}function We(t,e){let i="";for(let o=t.ops.length-1;o>=0&&i.length<e.length;--o){const e=t.ops[o];if("string"!=typeof e.insert)break;i=e.insert+i}return i.slice(-1*e.length)===e}function Ue(t,e){if(!(t instanceof Element))return!1;const i=e.query(t);return!(i&&i.prototype instanceof U)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())} | |
| 7289 | -const Pe=new WeakMap;function je(t){return null!=t&&(Pe.has(t)||("PRE"===t.tagName?Pe.set(t,!0):Pe.set(t,je(t.parentNode))),Pe.get(t))}function we(t,e,i,o,a){return e.nodeType===e.TEXT_NODE?o.reduce((i,o)=>o(e,i,t),new A):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,n)=>{let s=we(t,n,i,o,a);return n.nodeType===e.ELEMENT_NODE&&(s=i.reduce((e,i)=>i(n,e,t),s),s=(a.get(n)||[]).reduce((e,i)=>i(n,e,t),s)),l.concat(s)},new A):new A}function ze(t){return(e,i,o)=>Se(i,t,!0,o)}function Ce(t,e,i){if(!We(e,"\n")){if(Ue(t,i)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&t.nextSibling){let o=t.nextSibling;for(;null!=o;){if(Ue(o,i))return e.insert("\n");const t=i.query(o);if(t&&t.prototype instanceof B)return e.insert("\n");o=o.firstChild}}}return e}function Ae(t,e){let i=e;for(let e=t.length-1;e>=0;e-=1){const o=t[e];t[e]={delta:i.transform(o.delta,!0),range:o.range&&Le(o.range,i)},i=o.delta.transform(i), | |
| 7337 | +}],["b",ze("bold")],["i",ze("italic")],["strike",ze("strike")],["style",function(){return new A}]],_e=[Ot,Qt].reduce((t,e)=>(t[e.keyName]=e,t),{}),Re=[Xt,$t,Ft,ee,ae,ne].reduce((t,e)=>(t[e.keyName]=e,t),{});function Se(t,e,i,o){return o.query(e)?t.reduce((t,o)=>{if(!o.insert)return t;if(o.attributes&&o.attributes[e])return t.push(o);const a=i?{[e]:i}:{};return t.insert(o.insert,{...a,...o.attributes})},new A):t}function We(t,e){let i="";for(let o=t.ops.length-1;o>=0&&i.length<e.length;--o){const e=t.ops[o];if("string"!=typeof e.insert)break;i=e.insert+i}return i.slice(-1*e.length)===e}function Pe(t,e){if(!(t instanceof Element))return!1;const i=e.query(t);return!(i&&i.prototype instanceof P)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())} | |
| 7338 | +const Ue=new WeakMap;function je(t){return null!=t&&(Ue.has(t)||("PRE"===t.tagName?Ue.set(t,!0):Ue.set(t,je(t.parentNode))),Ue.get(t))}function we(t,e,i,o,a){return e.nodeType===e.TEXT_NODE?o.reduce((i,o)=>o(e,i,t),new A):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,n)=>{let s=we(t,n,i,o,a);return n.nodeType===e.ELEMENT_NODE&&(s=i.reduce((e,i)=>i(n,e,t),s),s=(a.get(n)||[]).reduce((e,i)=>i(n,e,t),s)),l.concat(s)},new A):new A}function ze(t){return(e,i,o)=>Se(i,t,!0,o)}function Ce(t,e,i){if(!We(e,"\n")){if(Pe(t,i)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&t.nextSibling){let o=t.nextSibling;for(;null!=o;){if(Pe(o,i))return e.insert("\n");const t=i.query(o);if(t&&t.prototype instanceof B)return e.insert("\n");o=o.firstChild}}}return e}function Ae(t,e){let i=e;for(let e=t.length-1;e>=0;e-=1){const o=t[e];t[e]={delta:i.transform(o.delta,!0),range:o.range&&Le(o.range,i)},i=o.delta.transform(i), | |
| 7290 | 7339 | 0===t[e].delta.length()&&t.splice(e,1)}}function Le(t,e){if(!t)return t;const i=e.transformPosition(t.index);return{index:i,length:e.transformPosition(t.index+t.length)-i}}class De extends gt{constructor(t,e){super(t,e),t.root.addEventListener("drop",e=>{e.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(e.clientX,e.clientY);else if(document.caretPositionFromPoint){const t=document.caretPositionFromPoint(e.clientX,e.clientY);i=document.createRange(),i.setStart(t.offsetNode,t.offset),i.setEnd(t.offsetNode,t.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const i=t.selection.normalizedToRange(o);e.dataTransfer?.files&&this.upload(i,e.dataTransfer.files)}})}upload(t,e){const i=[];Array.from(e).forEach(t=>{t&&this.options.mimetypes?.includes(t.type)&&i.push(t)}),i.length>0&&this.options.handler.call(this,t,i)}}De.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image"))return |
| 7291 | -;const i=e.map(t=>new Promise(e=>{const i=new FileReader;i.onload=()=>{e(i.result)},i.readAsDataURL(t)}));Promise.all(i).then(e=>{const i=e.reduce((t,e)=>t.insert({image:e}),(new A).retain(t.index).delete(t.length));this.quill.updateContents(i,ot.sources.USER),this.quill.setSelection(t.index+e.length,ot.sources.SILENT)})}};const Ne=De,Ie=["insertText","insertReplacementText"],Ve=/Mac/i.test(navigator.platform);Ut.register({"blots/block":X,"blots/block/embed":B,"blots/break":D,"blots/container":Lt,"blots/cursor":$,"blots/embed":yt,"blots/inline":Y,"blots/scroll":class extends w{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=X;static allowedChildren=[X,B,Lt];constructor(t,e,i){let{emitter:o}=i;super(t,e),this.emitter=o,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",t=>this.handleDragStart(t))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch | |
| 7340 | +;const i=e.map(t=>new Promise(e=>{const i=new FileReader;i.onload=()=>{e(i.result)},i.readAsDataURL(t)}));Promise.all(i).then(e=>{const i=e.reduce((t,e)=>t.insert({image:e}),(new A).retain(t.index).delete(t.length));this.quill.updateContents(i,ot.sources.USER),this.quill.setSelection(t.index+e.length,ot.sources.SILENT)})}};const Ne=De,Ie=["insertText","insertReplacementText"],Ve=/Mac/i.test(navigator.platform);Pt.register({"blots/block":X,"blots/block/embed":B,"blots/break":D,"blots/container":Lt,"blots/cursor":$,"blots/embed":yt,"blots/inline":Y,"blots/scroll":class extends w{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=X;static allowedChildren=[X,B,Lt];constructor(t,e,i){let{emitter:o}=i;super(t,e),this.emitter=o,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",t=>this.handleDragStart(t))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch | |
| 7292 | 7341 | ;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(ot.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(ot.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(ot.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[i,o]=this.line(t),[a]=this.line(t+e);if(super.deleteAt(t,e),null!=a&&i!==a&&o>0){if(i instanceof B||a instanceof B)return void this.optimize();const t=a.children.head instanceof D?null:a.children.head;i.moveChildren(a,t),i.remove()}this.optimize()}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,i,o){super.formatAt(t,e,i,o),this.optimize()}insertAt(t,e,i){if(t>=this.length())if(null==i||null==this.scroll.query(e,l.BLOCK)){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t),null==i&&e.endsWith("\n")?t.insertAt(0,e.slice(0,-1),i):t.insertAt(0,e,i)}else{const t=this.scroll.create(e,i);this.appendChild(t) |
| 7293 | 7342 | }else super.insertAt(t,e,i);this.optimize()}insertBefore(t,e){if(t.statics.scope===l.INLINE_BLOT){const i=this.scroll.create(this.statics.defaultChild.blotName);i.appendChild(t),super.insertBefore(i,e)}else super.insertBefore(t,e)}insertContents(t,e){const i=this.deltaToRenderBlocks(e.concat((new A).insert("\n"))),o=i.pop();if(null==o)return;this.batchStart();const a=i.shift();if(a){const e="block"===a.type&&(0===a.delta.length()||!this.descendant(B,t)[0]&&t<this.length()),i="block"===a.type?a.delta:(new A).insert({[a.key]:a.value});It(this,t,i);const o="block"===a.type?1:0,l=t+i.length()+o;e&&this.insertAt(l-1,"\n");const n=F(this.line(t)[0]),s=A.AttributeMap.diff(n,a.attributes)||{};Object.keys(s).forEach(t=>{this.formatAt(l-1,1,t,s[t])}),t=l}let[l,n]=this.children.find(t);i.length&&(l&&(l=l.split(n),n=0),i.forEach(t=>{if("block"===t.type)It(this.createBlock(t.attributes,l||void 0),0,t.delta);else{const e=this.create(t.key,t.value);this.insertBefore(e,l||void 0), |
| 7294 | 7343 | Object.keys(t.attributes).forEach(i=>{e.format(i,t.attributes[i])})}})),"block"===o.type&&o.delta.length()&&It(this,l?l.offset(l.scroll)+n:this.length(),o.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[i,o]=e;return i instanceof y?[i,o]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Dt,t)}lines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;const i=(t,e,o)=>{let a=[],l=o;return t.children.forEachAt(e,o,(t,e,o)=>{Dt(t)?a.push(t):t instanceof W&&(a=a.concat(i(t,e,l))),l-=o}),a};return i(this,t,e)}optimize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(ot.events.SCROLL_OPTIMIZE,t,e))}path(t){ |
| 7295 | 7344 | return super.path(t).slice(1)}remove(){}update(t){if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));let e=ot.sources.USER;"string"==typeof t&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter(t=>{let{target:e}=t;const i=this.find(e,!0);return i&&!Nt(i)})).length>0&&this.emitter.emit(ot.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(ot.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,i){const[o]=this.descendant(t=>t instanceof B,t);o&&o.statics.blotName===e&&Nt(o)&&o.updateContent(i)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let i=new A;return t.forEach(t=>{const o=t?.insert;if(o)if("string"==typeof o){const a=o.split("\n");a.slice(0,-1).forEach(o=>{i.insert(o,t.attributes),e.push({type:"block",delta:i,attributes:t.attributes??{}}),i=new A});const l=a[a.length-1];l&&i.insert(l,t.attributes)}else{const a=Object.keys(o)[0];if(!a)return |
| 7296 | 7345 | ;this.query(a,l.INLINE)?i.push(t):(i.length()&&e.push({type:"block",delta:i,attributes:{}}),i=new A,e.push({type:"blockEmbed",key:a,value:o[a],attributes:t.attributes??{}}))}}),i.length()&&e.push({type:"block",delta:i,attributes:{}}),e}createBlock(t,e){let i;const o={};Object.entries(t).forEach(t=>{let[e,a]=t;null!=this.query(e,l.BLOCK&l.BLOT)?i=e:o[e]=a});const a=this.create(i||this.statics.defaultChild.blotName,i?t[i]:void 0);this.insertBefore(a,e||void 0);const n=a.length();return Object.entries(o).forEach(t=>{let[e,i]=t;a.formatAt(0,n,e,i)}),a}},"blots/text":N,"modules/clipboard":class extends gt{static DEFAULTS={matchers:[]};constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",t=>this.onCaptureCopy(t,!1)),this.quill.root.addEventListener("cut",t=>this.onCaptureCopy(t,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],ve.concat(this.options.matchers??[]).forEach(t=>{let[e,i]=t;this.addMatcher(e,i)})}addMatcher(t,e){ |
| 7297 | -this.matchers.push([t,e])}convert(t){let{html:e,text:i}=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o[Zt.blotName])return(new A).insert(i||"",{[Zt.blotName]:o[Zt.blotName]});if(!e)return(new A).insert(i||"",o);const a=this.convertHTML(e);return We(a,"\n")&&(null==a.ops[a.ops.length-1].attributes||o.table)?a.compose((new A).retain(a.length()-1).delete(1)):a}normalizeHTML(t){(t=>{t.documentElement&&xe.forEach(e=>{e(t)})})(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const i=e.body,o=new WeakMap,[a,l]=this.prepareMatching(i,o);return we(this.quill.scroll,i,a,l,o)}dangerouslyPasteHTML(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ut.sources.API;if("string"==typeof t){const i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,Ut.sources.SILENT)}else{const o=this.convert({html:e,text:""});this.quill.updateContents((new A).retain(t).concat(o),i), | |
| 7298 | -this.quill.setSelection(t+o.length(),Ut.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();const[i]=this.quill.selection.getRange();if(null==i)return;const{html:o,text:a}=this.onCopy(i,e);t.clipboardData?.setData("text/plain",a),t.clipboardData?.setData("text/html",o),e&&he({range:i,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(t=>"#"!==t[0]).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(null==e)return;const i=t.clipboardData?.getData("text/html");let o=t.clipboardData?.getData("text/plain");if(!i&&!o){const e=t.clipboardData?.getData("text/uri-list");e&&(o=this.normalizeURIList(e))}const a=Array.from(t.clipboardData?.files||[]);if(!i&&a.length>0)this.quill.uploader.upload(e,a);else{if(i&&a.length>0){const t=(new DOMParser).parseFromString(i,"text/html") | |
| 7299 | -;if(1===t.body.childElementCount&&"IMG"===t.body.firstElementChild?.tagName)return void this.quill.uploader.upload(e,a)}this.onPaste(e,{html:i,text:o})}}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:i,html:o}=e;const a=this.quill.getFormat(t.index),l=this.convert({text:i,html:o},a);ke.log("onPaste",l,{text:i,html:o});const n=(new A).retain(t.index).delete(t.length).concat(l);this.quill.updateContents(n,Ut.sources.USER),this.quill.setSelection(n.length()-t.length,Ut.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const i=[],o=[];return this.matchers.forEach(a=>{const[l,n]=a;switch(l){case Node.TEXT_NODE:o.push(n);break;case Node.ELEMENT_NODE:i.push(n);break;default:Array.from(t.querySelectorAll(l)).forEach(t=>{if(e.has(t)){const i=e.get(t);i?.push(n)}else e.set(t,[n])})}}),[i,o]}},"modules/history":class extends gt{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0 | |
| 7300 | -;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e),this.quill.on(Ut.events.EDITOR_CHANGE,(t,e,i,o)=>{t===Ut.events.SELECTION_CHANGE?e&&o!==Ut.sources.SILENT&&(this.currentRange=e):t===Ut.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&o!==Ut.sources.USER?this.transform(e):this.record(e,i)),this.currentRange=Le(this.currentRange,e))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",t=>{"historyUndo"===t.inputType?(this.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(this.redo(),t.preventDefault())})}change(t,e){if(0===this.stack[t].length)return;const i=this.stack[t].pop();if(!i)return;const o=this.quill.getContents(),a=i.delta.invert(o) | |
| 7301 | -;this.stack[e].push({delta:a,range:Le(i.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Ut.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let i=t.invert(e),o=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const t=this.stack.undo.pop();t&&(i=i.compose(t.delta),o=t.range)}else this.lastRecorded=a;0!==i.length()&&(this.stack.undo.push({delta:i,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Ae(this.stack.undo,t),Ae(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Ut.sources.USER);else{const e=function(t,e){const i=e.reduce((t,e)=>t+(e.delete||0),0);let o=e.length()-i;return function(t,e){ | |
| 7302 | -const i=e.ops[e.ops.length-1];return null!=i&&(null!=i.insert?"string"==typeof i.insert&&i.insert.endsWith("\n"):null!=i.attributes&&Object.keys(i.attributes).some(e=>null!=t.query(e,l.BLOCK)))}(t,e)&&(o-=1),o}(this.quill.scroll,t.delta);this.quill.setSelection(e,Ut.sources.USER)}}},"modules/keyboard":be,"modules/uploader":Ne,"modules/input":class extends gt{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",t=>{this.handleBeforeInput(t)}),/Android/i.test(navigator.userAgent)||t.on(Ut.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){he({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){const i=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents((new A).retain(t.index).insert(e,i),Ut.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,Ut.sources.SILENT),!0}handleBeforeInput(t){ | |
| 7346 | +this.matchers.push([t,e])}convert(t){let{html:e,text:i}=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o[Zt.blotName])return(new A).insert(i||"",{[Zt.blotName]:o[Zt.blotName]});if(!e)return(new A).insert(i||"",o);const a=this.convertHTML(e);return We(a,"\n")&&(null==a.ops[a.ops.length-1].attributes||o.table)?a.compose((new A).retain(a.length()-1).delete(1)):a}normalizeHTML(t){(t=>{t.documentElement&&xe.forEach(e=>{e(t)})})(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const i=e.body,o=new WeakMap,[a,l]=this.prepareMatching(i,o);return we(this.quill.scroll,i,a,l,o)}dangerouslyPasteHTML(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt.sources.API;if("string"==typeof t){const i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,Pt.sources.SILENT)}else{const o=this.convert({html:e,text:""});this.quill.updateContents((new A).retain(t).concat(o),i), | |
| 7347 | +this.quill.setSelection(t+o.length(),Pt.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();const[i]=this.quill.selection.getRange();if(null==i)return;const{html:o,text:a}=this.onCopy(i,e);t.clipboardData?.setData("text/plain",a),t.clipboardData?.setData("text/html",o),e&&he({range:i,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(t=>"#"!==t[0]).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(null==e)return;const i=t.clipboardData?.getData("text/html");let o=t.clipboardData?.getData("text/plain");if(!i&&!o){const e=t.clipboardData?.getData("text/uri-list");e&&(o=this.normalizeURIList(e))}const a=Array.from(t.clipboardData?.files||[]);if(!i&&a.length>0)this.quill.uploader.upload(e,a);else{if(i&&a.length>0){const t=(new DOMParser).parseFromString(i,"text/html") | |
| 7348 | +;if(1===t.body.childElementCount&&"IMG"===t.body.firstElementChild?.tagName)return void this.quill.uploader.upload(e,a)}this.onPaste(e,{html:i,text:o})}}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:i,html:o}=e;const a=this.quill.getFormat(t.index),l=this.convert({text:i,html:o},a);ke.log("onPaste",l,{text:i,html:o});const n=(new A).retain(t.index).delete(t.length).concat(l);this.quill.updateContents(n,Pt.sources.USER),this.quill.setSelection(n.length()-t.length,Pt.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const i=[],o=[];return this.matchers.forEach(a=>{const[l,n]=a;switch(l){case Node.TEXT_NODE:o.push(n);break;case Node.ELEMENT_NODE:i.push(n);break;default:Array.from(t.querySelectorAll(l)).forEach(t=>{if(e.has(t)){const i=e.get(t);i?.push(n)}else e.set(t,[n])})}}),[i,o]}},"modules/history":class extends gt{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0 | |
| 7349 | +;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e),this.quill.on(Pt.events.EDITOR_CHANGE,(t,e,i,o)=>{t===Pt.events.SELECTION_CHANGE?e&&o!==Pt.sources.SILENT&&(this.currentRange=e):t===Pt.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&o!==Pt.sources.USER?this.transform(e):this.record(e,i)),this.currentRange=Le(this.currentRange,e))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",t=>{"historyUndo"===t.inputType?(this.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(this.redo(),t.preventDefault())})}change(t,e){if(0===this.stack[t].length)return;const i=this.stack[t].pop();if(!i)return;const o=this.quill.getContents(),a=i.delta.invert(o) | |
| 7350 | +;this.stack[e].push({delta:a,range:Le(i.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Pt.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let i=t.invert(e),o=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const t=this.stack.undo.pop();t&&(i=i.compose(t.delta),o=t.range)}else this.lastRecorded=a;0!==i.length()&&(this.stack.undo.push({delta:i,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Ae(this.stack.undo,t),Ae(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Pt.sources.USER);else{const e=function(t,e){const i=e.reduce((t,e)=>t+(e.delete||0),0);let o=e.length()-i;return function(t,e){ | |
| 7351 | +const i=e.ops[e.ops.length-1];return null!=i&&(null!=i.insert?"string"==typeof i.insert&&i.insert.endsWith("\n"):null!=i.attributes&&Object.keys(i.attributes).some(e=>null!=t.query(e,l.BLOCK)))}(t,e)&&(o-=1),o}(this.quill.scroll,t.delta);this.quill.setSelection(e,Pt.sources.USER)}}},"modules/keyboard":be,"modules/uploader":Ne,"modules/input":class extends gt{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",t=>{this.handleBeforeInput(t)}),/Android/i.test(navigator.userAgent)||t.on(Pt.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){he({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){const i=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents((new A).retain(t.index).insert(e,i),Pt.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,Pt.sources.SILENT),!0}handleBeforeInput(t){ | |
| 7303 | 7352 | if(this.quill.composition.isComposing||t.defaultPrevented||!Ie.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||!0===e.collapsed)return;const i=function(t){return"string"==typeof t.data?t.data:t.dataTransfer?.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null}(t);if(null==i)return;const o=this.quill.selection.normalizeNative(e),a=o?this.quill.selection.normalizedToRange(o):null;a&&this.replaceText(a,i)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}},"modules/uiNode":class extends gt{isListening=!1;selectionChangeDeadline=0;constructor(t,e){super(t,e),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:i,event:o}=e;if(!(i instanceof x&&i.uiNode))return!0;const a="rtl"===getComputedStyle(i.domNode).direction |
| 7304 | -;return!!(a&&"ArrowRight"!==o.key||!a&&"ArrowLeft"!==o.key)||(this.quill.setSelection(t.index-1,t.length+(o.shiftKey?1:0),Ut.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&(t=>"ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||!(!Ve||"a"!==t.key||!0!==t.ctrlKey))(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(!0!==e.collapsed||0!==e.startOffset)return;const i=this.quill.scroll.find(e.startContainer);if(!(i instanceof x&&i.uiNode))return;const o=document.createRange();o.setStartAfter(i.uiNode), | |
| 7305 | -o.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(o)}}});const Oe=Ut,Ye=new class extends d{add(t,e){let i=0;if("+1"===e||"-1"===e){const o=this.value(t)||0;i="+1"===e?o+1:o-1}else"number"==typeof e&&(i=e);return 0===i?(this.remove(t),!0):super.add(t,i.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}("indent","ql-indent",{scope:l.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),Xe=Ye;class Be extends Lt{}Be.blotName="list-container",Be.tagName="OL";class Ee extends X{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Ut.register(Be)}constructor(t,e){super(t,e);const i=e.ownerDocument.createElement("span"),o=i=>{if(!t.isEnabled())return;const o=this.statics.formats(e,t);"checked"===o?(this.format("list","unchecked"),i.preventDefault()):"unchecked"===o&&(this.format("list","checked"),i.preventDefault())} | |
| 7353 | +;return!!(a&&"ArrowRight"!==o.key||!a&&"ArrowLeft"!==o.key)||(this.quill.setSelection(t.index-1,t.length+(o.shiftKey?1:0),Pt.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&(t=>"ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||!(!Ve||"a"!==t.key||!0!==t.ctrlKey))(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(!0!==e.collapsed||0!==e.startOffset)return;const i=this.quill.scroll.find(e.startContainer);if(!(i instanceof x&&i.uiNode))return;const o=document.createRange();o.setStartAfter(i.uiNode), | |
| 7354 | +o.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(o)}}});const Oe=Pt,Ye=new class extends d{add(t,e){let i=0;if("+1"===e||"-1"===e){const o=this.value(t)||0;i="+1"===e?o+1:o-1}else"number"==typeof e&&(i=e);return 0===i?(this.remove(t),!0):super.add(t,i.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}("indent","ql-indent",{scope:l.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),Xe=Ye;class Be extends Lt{}Be.blotName="list-container",Be.tagName="OL";class Ee extends X{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Pt.register(Be)}constructor(t,e){super(t,e);const i=e.ownerDocument.createElement("span"),o=i=>{if(!t.isEnabled())return;const o=this.statics.formats(e,t);"checked"===o?(this.format("list","unchecked"),i.preventDefault()):"unchecked"===o&&(this.format("list","checked"),i.preventDefault())} | |
| 7306 | 7355 | ;i.addEventListener("mousedown",o),i.addEventListener("touchstart",o),this.attachUI(i)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}Ee.blotName="list",Ee.tagName="LI",Be.allowedChildren=[Ee],Ee.requiredContainer=Be;const Fe=class extends Y{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};class qe extends Y{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return $e(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){ |
| 7307 | 7356 | t===this.statics.blotName&&e?this.domNode.setAttribute("href",this.constructor.sanitize(e)):super.format(t,e)}}function $e(t,e){const i=document.createElement("a");i.href=t;const o=i.href.slice(0,i.href.indexOf(":"));return e.indexOf(o)>-1}const Ge=["alt","height","width"],Ze=["height","width"],Ke=new d("code-token","hljs",{scope:l.INLINE});class Je extends Y{static formats(t,e){for(;null!=t&&t!==e.domNode;){if(t.classList&&t.classList.contains(Zt.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,i){super(t,e,i),Ke.add(this.domNode,i)}format(t,e){t!==Je.blotName?super.format(t,e):e?Ke.add(this.domNode,e):(Ke.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Ke.value(this.domNode)||this.unwrap()}}Je.blotName="code-token",Je.className="ql-token";class Qe extends Zt{static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("data-language",t),e}static formats(t){ |
| 7308 | 7357 | return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),Je.blotName,!1),super.replaceWith(t,e)}}class ti extends Gt{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===Qe.blotName&&(this.forceNext=!0,this.children.forEach(i=>{i.format(t,e)}))}formatAt(t,e,i,o){i===Qe.blotName&&(this.forceNext=!0),super.formatAt(t,e,i,o)}highlight(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const i=`${Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).map(t=>t.textContent).join("\n")}\n`,o=Qe.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==i){if(i.trim().length>0||null==this.cachedText){const e=this.children.reduce((t,e)=>t.concat(E(e,!1)),new A),a=t(i,o);e.diff(a).reduce((t,e)=>{let{retain:i,attributes:o}=e |
| 7309 | -;return i?(o&&Object.keys(o).forEach(e=>{[Qe.blotName,Je.blotName].includes(e)&&this.formatAt(t,i,e,o[e])}),t+i):t},0)}this.cachedText=i,this.forceNext=!1}}html(t,e){const[i]=this.children.find(t);return`<pre data-language="${i?Qe.formats(i.domNode):"plain"}">\n${V(this.code(t,e))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const t=Qe.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}ti.allowedChildren=[Qe],Qe.requiredContainer=ti,Qe.allowedChildren=[Je,$,N,D];class ei extends gt{static register(){Ut.register(Je,!0),Ut.register(Qe,!0),Ut.register(ti,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((t,e)=>{let{key:i}=e;return t[i]=!0,t},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()} | |
| 7310 | -initListener(){this.quill.on(Ut.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof ti))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(t=>{let{key:i,label:o}=t;const a=e.ownerDocument.createElement("option");a.textContent=o,a.setAttribute("value",i),e.appendChild(a)}),e.addEventListener("change",()=>{t.format(Qe.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=Qe.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Ut.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(Ut.sources.USER);const i=this.quill.getSelection();(null==t?this.quill.scroll.descendants(ti):[t]).forEach(t=>{ | |
| 7311 | -t.highlight(this.highlightBlot,e)}),this.quill.update(Ut.sources.SILENT),null!=i&&this.quill.setSelection(i,Ut.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(e=this.languages[e]?e:"plain","plain"===e)return V(t).split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Zt.blotName]:e}),t.insert(i)),new A);const i=this.quill.root.ownerDocument.createElement("div");return i.classList.add(Zt.className),i.innerHTML=((t,e,i)=>{if("string"==typeof t.versionString){const o=t.versionString.split(".")[0];if(parseInt(o,10)>=11)return t.highlight(i,{language:e}).value}return t.highlight(e,i).value})(this.options.hljs,e,t),we(this.quill.scroll,i,[(t,e)=>{const i=Ke.value(t);return i?e.compose((new A).retain(e.length(),{[Je.blotName]:i})):e}],[(t,i)=>t.data.split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Zt.blotName]:e}),t.insert(i)),i)],new WeakMap)}}ei.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{ | |
| 7358 | +;return i?(o&&Object.keys(o).forEach(e=>{[Qe.blotName,Je.blotName].includes(e)&&this.formatAt(t,i,e,o[e])}),t+i):t},0)}this.cachedText=i,this.forceNext=!1}}html(t,e){const[i]=this.children.find(t);return`<pre data-language="${i?Qe.formats(i.domNode):"plain"}">\n${V(this.code(t,e))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const t=Qe.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}ti.allowedChildren=[Qe],Qe.requiredContainer=ti,Qe.allowedChildren=[Je,$,N,D];class ei extends gt{static register(){Pt.register(Je,!0),Pt.register(Qe,!0),Pt.register(ti,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((t,e)=>{let{key:i}=e;return t[i]=!0,t},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()} | |
| 7359 | +initListener(){this.quill.on(Pt.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof ti))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(t=>{let{key:i,label:o}=t;const a=e.ownerDocument.createElement("option");a.textContent=o,a.setAttribute("value",i),e.appendChild(a)}),e.addEventListener("change",()=>{t.format(Qe.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=Qe.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Pt.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(Pt.sources.USER);const i=this.quill.getSelection();(null==t?this.quill.scroll.descendants(ti):[t]).forEach(t=>{ | |
| 7360 | +t.highlight(this.highlightBlot,e)}),this.quill.update(Pt.sources.SILENT),null!=i&&this.quill.setSelection(i,Pt.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(e=this.languages[e]?e:"plain","plain"===e)return V(t).split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Zt.blotName]:e}),t.insert(i)),new A);const i=this.quill.root.ownerDocument.createElement("div");return i.classList.add(Zt.className),i.innerHTML=((t,e,i)=>{if("string"==typeof t.versionString){const o=t.versionString.split(".")[0];if(parseInt(o,10)>=11)return t.highlight(i,{language:e}).value}return t.highlight(e,i).value})(this.options.hljs,e,t),we(this.quill.scroll,i,[(t,e)=>{const i=Ke.value(t);return i?e.compose((new A).retain(e.length(),{[Je.blotName]:i})):e}],[(t,i)=>t.data.split("\n").reduce((t,i,o)=>(0!==o&&t.insert("\n",{[Zt.blotName]:e}),t.insert(i)),i)],new WeakMap)}}ei.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{ | |
| 7312 | 7361 | key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class ii extends X{static blotName="table";static tagName="TD";static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",ni()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===ii.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class oi extends Lt{static blotName="table-row";static tagName="TR";checkMerge(){ |
| 7313 | 7362 | if(super.checkMerge()&&null!=this.next.children.head){const t=this.children.head.formats(),e=this.children.tail.formats(),i=this.next.children.head.formats(),o=this.next.children.tail.formats();return t.table===e.table&&t.table===i.table&&t.table===o.table}return!1}optimize(t){super.optimize(t),this.children.forEach(t=>{if(null==t.next)return;const e=t.formats(),i=t.next.formats();if(e.table!==i.table){const e=this.splitAfter(t);e&&e.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class ai extends Lt{static blotName="table-body";static tagName="TBODY"}class li extends Lt{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(oi),e=t.reduce((t,e)=>Math.max(e.children.length,t),0);t.forEach(t=>{new Array(e-t.children.length).fill(0).forEach(()=>{let e;null!=t.children.head&&(e=ii.formats(t.children.head.domNode)) |
| 7314 | 7363 | ;const i=this.scroll.create(ii.blotName,e);t.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(ai);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const i=e.children.at(t);null!=i&&i.remove()})}insertColumn(t){const[e]=this.descendant(ai);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const i=e.children.at(t),o=ii.formats(e.children.head.domNode),a=this.scroll.create(ii.blotName,o);e.insertBefore(a,i)})}insertRow(t){const[e]=this.descendant(ai);if(null==e||null==e.children.head)return;const i=ni(),o=this.scroll.create(oi.blotName);e.children.head.children.forEach(()=>{const t=this.scroll.create(ii.blotName,i);o.appendChild(t)});const a=e.children.at(t);e.insertBefore(o,a)}rows(){const t=this.children.head;return null==t?[]:t.children.map(t=>t)}}function ni(){return`row-${Math.random().toString(36).slice(2,6)}`}li.allowedChildren=[ai],ai.requiredContainer=li,ai.allowedChildren=[oi], |
| 7315 | 7364 | oi.requiredContainer=ai,oi.allowedChildren=[ii],ii.requiredContainer=oi;const si=et("quill:toolbar");class ri extends gt{constructor(t,e){if(super(t,e),Array.isArray(this.options.container)){const e=document.createElement("div");e.setAttribute("role","toolbar"),function(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(e=>{const i=document.createElement("span");i.classList.add("ql-formats"),e.forEach(t=>{if("string"==typeof t)bi(i,t);else{const e=Object.keys(t)[0],o=t[e];Array.isArray(o)?function(t,e,i){const o=document.createElement("select");o.classList.add(`ql-${e}`),i.forEach(t=>{const e=document.createElement("option");!1!==t?e.setAttribute("value",String(t)):e.setAttribute("selected","selected"),o.appendChild(e)}),t.appendChild(o)}(i,e,o):bi(i,e,o)}}),t.appendChild(i)})}(e,this.options.container),t.container?.parentNode?.insertBefore(e,t.container),this.container=e |
| 7316 | -}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(t=>{const e=this.options.handlers?.[t];e&&this.addHandler(t,e)}),Array.from(this.container.querySelectorAll("button, select")).forEach(t=>{this.attach(t)}),this.quill.on(Ut.events.EDITOR_CHANGE,()=>{const[t]=this.quill.selection.getRange();this.update(t)})):si.error("Container required for toolbar",this.options)}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(t=>0===t.indexOf("ql-"));if(!e)return;if(e=e.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[e]&&null==this.quill.scroll.query(e))return void si.warn("ignoring attaching to nonexistent format",e,t);const i="SELECT"===t.tagName?"change":"click" | |
| 7317 | -;t.addEventListener(i,i=>{let o;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];o=!e.hasAttribute("selected")&&(e.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,o);else if(this.quill.scroll.query(e).prototype instanceof U){if(o=prompt(`Enter ${e}`),!o)return;this.quill.updateContents((new A).retain(a.index).delete(a.length).insert({[e]:o}),Ut.sources.USER)}else this.quill.format(e,o,Ut.sources.USER);this.update(a)}),this.controls.push([e,t])}update(t){const e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(i=>{const[o,a]=i;if("SELECT"===a.tagName){let i=null;if(null==t)i=null;else if(null==e[o])i=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){let t=e[o];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),i=a.querySelector(`option[value="${t}"]`)} | |
| 7365 | +}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(t=>{const e=this.options.handlers?.[t];e&&this.addHandler(t,e)}),Array.from(this.container.querySelectorAll("button, select")).forEach(t=>{this.attach(t)}),this.quill.on(Pt.events.EDITOR_CHANGE,()=>{const[t]=this.quill.selection.getRange();this.update(t)})):si.error("Container required for toolbar",this.options)}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(t=>0===t.indexOf("ql-"));if(!e)return;if(e=e.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[e]&&null==this.quill.scroll.query(e))return void si.warn("ignoring attaching to nonexistent format",e,t);const i="SELECT"===t.tagName?"change":"click" | |
| 7366 | +;t.addEventListener(i,i=>{let o;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];o=!e.hasAttribute("selected")&&(e.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,o);else if(this.quill.scroll.query(e).prototype instanceof P){if(o=prompt(`Enter ${e}`),!o)return;this.quill.updateContents((new A).retain(a.index).delete(a.length).insert({[e]:o}),Pt.sources.USER)}else this.quill.format(e,o,Pt.sources.USER);this.update(a)}),this.controls.push([e,t])}update(t){const e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(i=>{const[o,a]=i;if("SELECT"===a.tagName){let i=null;if(null==t)i=null;else if(null==e[o])i=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){let t=e[o];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),i=a.querySelector(`option[value="${t}"]`)} | |
| 7318 | 7367 | null==i?(a.value="",a.selectedIndex=-1):i.selected=!0}else if(null==t)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const t=e[o],i=t===a.getAttribute("value")||null!=t&&t.toString()===a.getAttribute("value")||null==t&&!a.getAttribute("value");a.classList.toggle("ql-active",i),a.setAttribute("aria-pressed",i.toString())}else{const t=null!=e[o];a.classList.toggle("ql-active",t),a.setAttribute("aria-pressed",t.toString())}})}}function bi(t,e,i){const o=document.createElement("button");o.setAttribute("type","button"),o.classList.add(`ql-${e}`),o.setAttribute("aria-pressed","false"),null!=i?(o.value=i,o.setAttribute("aria-label",`${e}: ${i}`)):o.setAttribute("aria-label",e),t.appendChild(o)}ri.DEFAULTS={},ri.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(null!=t)if(0===t.length){const t=this.quill.getFormat();Object.keys(t).forEach(t=>{ |
| 7319 | -null!=this.quill.scroll.query(t,l.INLINE)&&this.quill.format(t,!1,Ut.sources.USER)})}else this.quill.removeFormat(t.index,t.length,Ut.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",Ut.sources.USER):t||"right"!==e||this.quill.format("align",!1,Ut.sources.USER),this.quill.format("direction",t,Ut.sources.USER)},indent(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e),o=parseInt(i.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===i.direction&&(e*=-1),this.quill.format("indent",o+e,Ut.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Ut.sources.USER)},list(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,Ut.sources.USER):this.quill.format("list","unchecked",Ut.sources.USER):this.quill.format("list",t,Ut.sources.USER)}}} | |
| 7368 | +null!=this.quill.scroll.query(t,l.INLINE)&&this.quill.format(t,!1,Pt.sources.USER)})}else this.quill.removeFormat(t.index,t.length,Pt.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",Pt.sources.USER):t||"right"!==e||this.quill.format("align",!1,Pt.sources.USER),this.quill.format("direction",t,Pt.sources.USER)},indent(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e),o=parseInt(i.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===i.direction&&(e*=-1),this.quill.format("indent",o+e,Pt.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Pt.sources.USER)},list(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,Pt.sources.USER):this.quill.format("list","unchecked",Pt.sources.USER):this.quill.format("list",t,Pt.sources.USER)}}} | |
| 7320 | 7369 | ;const ci='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',di={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', |
| 7321 | 7370 | justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'}, |
| 7322 | 7371 | background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', |
| 7323 | 7372 | blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:ci,"code-block":ci, |
| @@ -7348,17 +7397,17 @@ | ||
| 7348 | 7397 | this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class vi extends fi{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{"Enter"===t.key?(this.save(),t.preventDefault()):"Escape"===t.key&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const i=this.quill.getBounds(this.quill.selection.savedRange);null!=i&&this.position(i),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){ |
| 7349 | 7398 | this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,ot.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,ot.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=function(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:t}(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(null!=e){const i=e.index+e.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,ot.sources.USER), |
| 7350 | 7399 | "formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",ot.sources.USER),this.quill.setSelection(i+2,ot.sources.USER)}break}}this.textbox.value="",this.hide()}}function _i(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(e=>{const o=document.createElement("option");e===i?o.setAttribute("selected","selected"):o.setAttribute("value",String(e)),t.appendChild(o)})}const Ri=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Si extends vi{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(t,e){super(t,e),this.quill.on(ot.events.EDITOR_CHANGE,(t,e,i,o)=>{if(t===ot.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===ot.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="", |
| 7351 | 7400 | this.root.style.width=`${this.root.offsetWidth}px`;const t=this.quill.getLines(e.index,e.length);if(1===t.length){const t=this.quill.getBounds(e);null!=t&&this.position(t)}else{const i=t[t.length-1],o=this.quill.getIndex(i),a=Math.min(i.length()-1,e.index+e.length-o),l=this.quill.getBounds(new lt(o,a));null!=l&&this.position(l)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ot.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(null!=t){const e=this.quill.getBounds(t);null!=e&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),i=this.root.querySelector(".ql-tooltip-arrow");return i.style.marginLeft="",0!==e&&(i.style.marginLeft=-1*e-i.offsetWidth/2+"px"),e}}class Wi extends ki{constructor(t,e){ |
| 7352 | -null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Ri),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Si(this.quill,this.options.bounds),null!=t.container&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),di),this.buildPickers(t.container.querySelectorAll("select"),di))}}Wi.DEFAULTS=(0,a.merge)({},ki.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Ut.sources.USER)}}}}});const Ui=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Pi extends vi{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("") | |
| 7401 | +null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Ri),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Si(this.quill,this.options.bounds),null!=t.container&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),di),this.buildPickers(t.container.querySelectorAll("select"),di))}}Wi.DEFAULTS=(0,a.merge)({},ki.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Pt.sources.USER)}}}}});const Pi=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Ui extends vi{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("") | |
| 7353 | 7402 | ;preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(null!=this.linkRange){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,ot.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(ot.events.SELECTION_CHANGE,(t,e,i)=>{if(null!=t){if(0===t.length&&i===ot.sources.USER){const[e,i]=this.quill.scroll.descendant(qe,t.index);if(null!=e){this.linkRange=new lt(t.index-i,e.length());const o=qe.formats(e.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const a=this.quill.getBounds(this.linkRange);return void(null!=a&&this.position(a))}}else delete this.linkRange;this.hide()}})}show(){super.show(), |
| 7354 | -this.root.removeAttribute("data-mode")}}class ji extends ki{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Ui),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),di),this.buildPickers(t.container.querySelectorAll("select"),di),this.tooltip=new Pi(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,i)=>{t.handlers.link.call(t,!i.format.link)}))}}ji.DEFAULTS=(0,a.merge)({},ki.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e=`mailto:${e}`);const{tooltip:i}=this.quill.theme;i.edit("link",e)}else this.quill.format("link",!1,Ut.sources.USER)}}}}});const wi=ji;Oe.register({ | |
| 7403 | +this.root.removeAttribute("data-mode")}}class ji extends ki{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Pi),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),di),this.buildPickers(t.container.querySelectorAll("select"),di),this.tooltip=new Ui(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,i)=>{t.handlers.link.call(t,!i.format.link)}))}}ji.DEFAULTS=(0,a.merge)({},ki.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e=`mailto:${e}`);const{tooltip:i}=this.quill.theme;i.edit("link",e)}else this.quill.format("link",!1,Pt.sources.USER)}}}}});const wi=ji;Oe.register({ | |
| 7355 | 7404 | "attributors/attribute/direction":Qt,"attributors/class/align":Yt,"attributors/class/background":qt,"attributors/class/color":Et,"attributors/class/direction":te,"attributors/class/font":oe,"attributors/class/size":le,"attributors/style/align":Xt,"attributors/style/background":$t,"attributors/style/color":Ft,"attributors/style/direction":ee,"attributors/style/font":ae,"attributors/style/size":ne},!0),Oe.register({"formats/align":Yt,"formats/direction":te,"formats/indent":Xe,"formats/background":$t,"formats/color":Ft,"formats/font":oe,"formats/size":le,"formats/blockquote":class extends X{static blotName="blockquote";static tagName="blockquote"},"formats/code-block":Zt,"formats/header":class extends X{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}},"formats/list":Ee,"formats/bold":Fe,"formats/code":Kt,"formats/italic":class extends Fe{static blotName="italic";static tagName=["EM","I"]}, |
| 7356 | -"formats/link":qe,"formats/script":class extends Y{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}},"formats/strike":class extends Fe{static blotName="strike";static tagName=["S","STRIKE"]},"formats/underline":class extends Y{static blotName="underline";static tagName="U"},"formats/formula":class extends yt{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}},"formats/image":class extends U{ | |
| 7405 | +"formats/link":qe,"formats/script":class extends Y{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}},"formats/strike":class extends Fe{static blotName="strike";static tagName=["S","STRIKE"]},"formats/underline":class extends Y{static blotName="underline";static tagName="U"},"formats/formula":class extends yt{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}},"formats/image":class extends P{ | |
| 7357 | 7406 | static blotName="image";static tagName="IMG";static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Ge.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return $e(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){Ge.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}},"formats/video":class extends B{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Ze.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static sanitize(t){return qe.sanitize(t)}static value(t){ |
| 7358 | -return t.getAttribute("src")}format(t,e){Ze.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}},"modules/syntax":ei,"modules/table":class extends gt{static register(){Ut.register(ii),Ut.register(oi),Ut.register(ai),Ut.register(li)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(li).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(Ut.sources.USER))}deleteRow(){const[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(Ut.sources.USER))}deleteTable(){const[t]=this.getTable();if(null==t)return;const e=t.offset();t.remove(),this.quill.update(Ut.sources.USER),this.quill.setSelection(e,Ut.sources.SILENT)}getTable(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection() | |
| 7359 | -;if(null==t)return[null,null,null,-1];const[e,i]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==ii.blotName)return[null,null,null,-1];const o=e.parent;return[o.parent.parent,o,e,i]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=a.cellOffset();i.insertColumn(l+t),this.quill.update(Ut.sources.USER);let n=o.rowOffset();0===t&&(n+=1),this.quill.setSelection(e.index+n,e.length,Ut.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=o.rowOffset();i.insertRow(l+t),this.quill.update(Ut.sources.USER),t>0?this.quill.setSelection(e,Ut.sources.SILENT):this.quill.setSelection(e.index+o.children.length,e.length,Ut.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const i=this.quill.getSelection() | |
| 7360 | -;if(null==i)return;const o=new Array(t).fill(0).reduce(t=>{const i=new Array(e).fill("\n").join("");return t.insert(i,{table:ni()})},(new A).retain(i.index));this.quill.updateContents(o,Ut.sources.USER),this.quill.setSelection(i.index,Ut.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ut.events.SCROLL_OPTIMIZE,t=>{t.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(Ut.events.TEXT_CHANGE,(t,e,i)=>{i===Ut.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":ri,"themes/bubble":Wi,"themes/snow":wi,"ui/icons":di,"ui/picker":mi,"ui/icon-picker":gi,"ui/color-picker":hi,"ui/tooltip":fi},!0);const zi=Oe},66162(t,e,i){"use strict";i.d(e,{W:()=>r});var o=i(83148),a=i(53481),l=i(51609);function n(){return n=Object.assign||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},n.apply(this,arguments)} | |
| 7407 | +return t.getAttribute("src")}format(t,e){Ze.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}},"modules/syntax":ei,"modules/table":class extends gt{static register(){Pt.register(ii),Pt.register(oi),Pt.register(ai),Pt.register(li)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(li).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(Pt.sources.USER))}deleteRow(){const[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(Pt.sources.USER))}deleteTable(){const[t]=this.getTable();if(null==t)return;const e=t.offset();t.remove(),this.quill.update(Pt.sources.USER),this.quill.setSelection(e,Pt.sources.SILENT)}getTable(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection() | |
| 7408 | +;if(null==t)return[null,null,null,-1];const[e,i]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==ii.blotName)return[null,null,null,-1];const o=e.parent;return[o.parent.parent,o,e,i]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=a.cellOffset();i.insertColumn(l+t),this.quill.update(Pt.sources.USER);let n=o.rowOffset();0===t&&(n+=1),this.quill.setSelection(e.index+n,e.length,Pt.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[i,o,a]=this.getTable(e);if(null==a)return;const l=o.rowOffset();i.insertRow(l+t),this.quill.update(Pt.sources.USER),t>0?this.quill.setSelection(e,Pt.sources.SILENT):this.quill.setSelection(e.index+o.children.length,e.length,Pt.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const i=this.quill.getSelection() | |
| 7409 | +;if(null==i)return;const o=new Array(t).fill(0).reduce(t=>{const i=new Array(e).fill("\n").join("");return t.insert(i,{table:ni()})},(new A).retain(i.index));this.quill.updateContents(o,Pt.sources.USER),this.quill.setSelection(i.index,Pt.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Pt.events.SCROLL_OPTIMIZE,t=>{t.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(Pt.events.TEXT_CHANGE,(t,e,i)=>{i===Pt.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":ri,"themes/bubble":Wi,"themes/snow":wi,"ui/icons":di,"ui/picker":mi,"ui/icon-picker":gi,"ui/color-picker":hi,"ui/tooltip":fi},!0);const zi=Oe},66162(t,e,i){"use strict";i.d(e,{W:()=>r});var o=i(83148),a=i(53481),l=i(51609);function n(){return n=Object.assign||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},n.apply(this,arguments)} | |
| 7361 | 7410 | function s({bounds:t,boundsOptions:e,center:i,children:s,className:r,id:b,placeholder:c,style:d,whenReady:u,zoom:p,...m},h){const[g]=(0,l.useState)({className:r,id:b,style:d}),[f,y]=(0,l.useState)(null);(0,l.useImperativeHandle)(h,()=>f?.map??null,[f]);const T=(0,l.useCallback)(l=>{if(null!==l&&null===f){const n=new a.Map(l,m);null!=i&&null!=p?n.setView(i,p):null!=t&&n.fitBounds(t,e),null!=u&&n.whenReady(u),y((0,o.fB)(n))}},[]);(0,l.useEffect)(()=>()=>{f?.map.remove()},[f]);const H=f?l.createElement(o.hL,{value:f},s):c??null;return l.createElement("div",n({},g,{ref:T}),H)}const r=(0,l.forwardRef)(s)},14489(t,e,i){"use strict";i.d(e,{p:()=>s});var o=i(83148),a=i(56667),l=i(36543),n=i(53481);const s=(0,l.Nq)(function({position:t,...e},i){const l=new n.Marker(t,e);return(0,a.Q)(l,(0,o.W4)(i,{overlayContainer:l}))},function(t,e,i){e.position!==i.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==i.icon&&t.setIcon(e.icon), |
| 7362 | 7411 | null!=e.zIndexOffset&&e.zIndexOffset!==i.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==i.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==i.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())})},81344(t,e,i){"use strict";i.d(e,{e:()=>s});var o=i(36543),a=i(57685),l=i(56667),n=i(53481);const s=(0,o.X3)(function({url:t,...e},i){const o=new n.TileLayer(t,(0,a.P)(e,i));return(0,l.Q)(o,i)},function(t,e,i){!function(t,e,i){const{opacity:o,zIndex:a}=e;null!=o&&o!==i.opacity&&t.setOpacity(o),null!=a&&a!==i.zIndex&&t.setZIndex(a)}(t,e,i);const{url:o}=e;null!=o&&o!==i.url&&t.setUrl(o)})},63748(t){"use strict";t.exports={UU:"ablocks/map",uK:{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", |
| 7363 | 7412 | title:"Jhenaidah"}]},mapZoom:{type:"number",default:10},mapType:{type:"string",default:"GM"},scrollWheelZoom:{type:"boolean",default:!1},centerIndex:{type:"number",default:0},iconHeight:{type:"number",default:40},iconWidth:{type:"number",default:25},cssFilter:{type:"object",default:{blur:"",brightness:"",contrast:"",saturate:"",hue:"",blurH:"",brightnessH:"",contrastH:"",saturateH:"",hueH:""}},mapWidth:{type:"object",default:{value:100,valueTablet:"",valueMobile:"",valueUnit:"%",valueUnitTablet:"",valueUnitMobile:""}},mapHeight:{type:"object",default:{value:500,valueTablet:"",valueMobile:"",valueUnit:"px",valueUnitTablet:"",valueUnitMobile:""}},iconSvgPath:{type:"string", |
| 7364 | 7413 | 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:""},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:""}, |
| @@ -7372,8 +7421,8 @@ | ||
| 7372 | 7421 | 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", |
| 7373 | 7422 | 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", |
| 7374 | 7423 | 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:{ |
| 7375 | 7424 | type:"object"}},_animation_page_trigger:{type:"array",default:[],items:{type:"object"}}}}}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return l[t].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=l,s.amdO={},t=[],s.O=(e,i,o,a)=>{if(!i){var l=1/0;for(c=0;c<t.length;c++){for(var[i,o,a]=t[c],n=!0,r=0;r<i.length;r++)(!1&a||l>=a)&&Object.keys(s.O).every(t=>s.O[t](i[r]))?i.splice(r--,1):(n=!1,a<l&&(l=a));if(n){t.splice(c--,1);var b=o();void 0!==b&&(e=b)}}return e}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[i,o,a]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},i=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var a=Object.create(null);s.r(a);var l={};e=e||[null,i({}),i([]),i(i)] |
| 7376 | -;for(var n=2&o&&t;("object"==typeof n||"function"==typeof n)&&!~e.indexOf(n);n=i(n))Object.getOwnPropertyNames(n).forEach(e=>l[e]=()=>t[e]);return l.default=()=>t,s.d(a,l),a},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce((e,i)=>(s.f[i](t,e),e),[])),s.u=t=>(({82:"ablocks-code-editor",5961:"ablocks-chart",6758:"ablocks-leaflet",7530:"ablocks-lottie",8399:"ablocks-google-fonts"}[t]||t)+".js?ver="+{82:"b81137796961db4af734",106:"d0eaad53c5153e09eabf",5961:"006387df67e9cde43451",6758:"f47402c3209a1686a532",7530:"aeb5c601eb9a350eb624",8399:"324d36c74460f2cb90cb"}[t]),s.miniCssF=t=>{},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o={},a="academy-blocks:",s.l=(t,e,i,l)=>{if(o[t])o[t].push(e);else{var n,r;if(void 0!==i)for(var b=document.getElementsByTagName("script"),c=0;c<b.length;c++){var d=b[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==a+i){n=d;break}}n||(r=!0, | |
| 7425 | +;for(var n=2&o&&t;("object"==typeof n||"function"==typeof n)&&!~e.indexOf(n);n=i(n))Object.getOwnPropertyNames(n).forEach(e=>l[e]=()=>t[e]);return l.default=()=>t,s.d(a,l),a},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce((e,i)=>(s.f[i](t,e),e),[])),s.u=t=>(({82:"ablocks-code-editor",5961:"ablocks-chart",6758:"ablocks-leaflet",7530:"ablocks-lottie",8399:"ablocks-google-fonts"}[t]||t)+".js?ver="+{82:"b81137796961db4af734",106:"d0eaad53c5153e09eabf",5961:"006387df67e9cde43451",6758:"3a0790e25849b42f47d7",7530:"aeb5c601eb9a350eb624",8399:"21cea396e60f154f6c75"}[t]),s.miniCssF=t=>{},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o={},a="academy-blocks:",s.l=(t,e,i,l)=>{if(o[t])o[t].push(e);else{var n,r;if(void 0!==i)for(var b=document.getElementsByTagName("script"),c=0;c<b.length;c++){var d=b[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==a+i){n=d;break}}n||(r=!0, | |
| 7377 | 7426 | (n=document.createElement("script")).charset="utf-8",s.nc&&n.setAttribute("nonce",s.nc),n.setAttribute("data-webpack",a+i),n.src=t),o[t]=[e];var u=(e,i)=>{n.onerror=n.onload=null,clearTimeout(p);var a=o[t];if(delete o[t],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(t=>t(i)),e)return e(i)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),r&&document.head.appendChild(n)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var e=globalThis.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=i[o--].src} |
| 7378 | 7427 | if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={2617:0,7232:0};s.f.j=(e,i)=>{var o=s.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else if(7232!=e){var a=new Promise((i,a)=>o=t[e]=[i,a]);i.push(o[2]=a);var l=s.p+s.u(e),n=new Error;s.l(l,i=>{if(s.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var a=i&&("load"===i.type?"missing":i.type),l=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+a+": "+l+")",n.name="ChunkLoadError",n.type=a,n.request=l,o[1](n)}},"chunk-"+e,e)}else t[e]=0},s.O.j=e=>0===t[e];var e=(e,i)=>{var o,a,[l,n,r]=i,b=0;if(l.some(e=>0!==t[e])){for(o in n)s.o(n,o)&&(s.m[o]=n[o]);if(r)var c=r(s)}for(e&&e(i);b<l.length;b++)a=l[b],s.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return s.O(c)},i=globalThis.webpackChunkacademy_blocks=globalThis.webpackChunkacademy_blocks||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})() |
| 7379 | -;var r=s.O(void 0,[7232],()=>s(91504));r=s.O(r)})(); | |
| 7428 | +;var r=s.O(void 0,[7232],()=>s(67083));r=s.O(r)})(); | |