File manager - Edit - /home/palg2351/public_html/wp-content/plugins/jetformbuilder/modules/actions-v2/assets/build/editor.js
Back
(()=>{"use strict";var e={92:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(716),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},168:e=>{e.exports=function(e){return e[1]}},185:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,'.s1ani5eo:not([data-conditions-count="0"])::after{content:attr(data-conditions-count);position:absolute;font-size:1.2em;background-color:var(--wp-admin-theme-color);color:#fff;padding:2px 4px;border-radius:6px;top:0;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:monospace;line-height:normal;}\n',""]);const a=s},206:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".cue09js{cursor:not-allowed;opacity:0.3;}.jet-form-action.draggable .cue09js{cursor:-webkit-grab;cursor:grab;opacity:1;}\n.f13vj9vm{position:absolute;opacity:0;-webkit-transition:0.2s ease-in-out;transition:0.2s ease-in-out;top:0;right:0;height:100%;background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 15%);padding:0 4px 0 25px;}.f13vj9vm.f13vj9vm{width:auto;}.rtl .f13vj9vm{left:0;padding:0 25px 0 4px;}\n.a4jlrqo{position:relative;}.a4jlrqo:hover .f13vj9vm{opacity:1;}\n",""]);const a=s},210:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(914),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},262:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},357:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},409:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(185),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},433:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);o&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},512:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".s5b5a3p{padding:1em;}\n",""]);const a=s},542:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(206),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},545:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(985),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},553:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".sfffqhk{text-align:center;}\n",""]);const a=s},569:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".s1goy86j{padding:1em;}\n",""]);const a=s},598:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},626:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},653:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".myen4j{margin-bottom:unset;}\n.e9ooo02.e9ooo02{box-shadow:#cc1818 0 0 0 2px;}\n.c131zb0w{-webkit-animation:show-current-c131zb0w 2s infinite;animation:show-current-c131zb0w 2s infinite;}@-webkit-keyframes show-current-c131zb0w{50%{box-shadow:rgba(3, 102, 214, 0.3) 0 0 0 3px;}}@keyframes show-current-c131zb0w{50%{box-shadow:rgba(3, 102, 214, 0.3) 0 0 0 3px;}}\n.da595pz{background-image:repeating-linear-gradient(-45deg, #ffffff75 0 20px, #d5d5d57d 20px 40px);}\n",""]);const a=s},657:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},673:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var r={},s=[],a=0;a<e.length;a++){var l=e[a],c=o.base?l[0]+o.base:l[0],d=r[c]||0,u="".concat(c," ").concat(d);r[c]=d+1;var p=n(u),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(m);else{var w=i(m,o);o.byIndex=a,t.splice(a,0,{identifier:u,updater:w,references:1})}s.push(u)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var r=o(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<r.length;s++){var a=n(r[s]);t[a].references--}for(var l=o(e,i),c=0;c<r.length;c++){var d=n(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},716:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".ajopllc{margin:unset;text-align:center;font-size:15px;color:#1d2327;}\n.c1j3i9l6{fill:currentColor;}\n.odma714{opacity:0;position:absolute;width:100%;height:100%;z-index:1;top:0;left:0;background-color:rgba(255, 255, 255, 0.6);padding:1em;text-align:center;color:#1d2327;font-weight:600;cursor:auto;}\n.fqw6jzj{cursor:pointer;padding:1.5em;border-radius:2px;border:1px solid #ddd;position:relative;color:#848485;}.fqw6jzj,.fqw6jzj .ajopllc,.fqw6jzj .odma714{-webkit-transition:0.2s ease-in-out;transition:0.2s ease-in-out;}.fqw6jzj:hover{box-shadow:rgba(0, 0, 0, 0.16) 0 1px 4px;}.fqw6jzj:hover,.fqw6jzj:hover .ajopllc{color:var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));}.fqw6jzj.is-disabled,.fqw6jzj.is-disabled .ajopllc{color:#c7c7c7;}.fqw6jzj.is-disabled:hover>*:not(.odma714){-webkit-filter:blur(2px);filter:blur(2px);}.fqw6jzj.is-disabled:hover .odma714{opacity:1;}\n",""]);const a=s},841:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(569),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},848:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(512),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},877:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(653),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},914:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".ekbdm2s{padding:0 4px;border-radius:5px;color:#5c5c5c;font-size:0.9em;background-color:#f3f4f5;cursor:pointer;margin:auto;border:0;font-family:monospace;}.ekbdm2s:after{content:' X';font-weight:bold;}.ekbdm2s:focus{outline:1px solid #5c5c5c;background-color:#e7e8e9;}\n",""]);const a=s},929:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(553),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},950:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".sauuswy{border-top:1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));margin-top:16px;margin-left:-16px;margin-bottom:-8px;padding-top:8px;}.sauuswy.sauuswy{width:calc(100% + 32px);}\n",""]);const a=s},974:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(673),i=n.n(o),r=n(598),s=n.n(r),a=n(262),l=n.n(a),c=n(657),d=n.n(c),u=n(357),p=n.n(u),m=n(626),w=n.n(m),f=n(950),g={};g.styleTagTransform=w(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),i()(f.A,g);const h=f.A&&f.A.locals?f.A.locals:void 0},985:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(168),i=n.n(o),r=n(433),s=n.n(r)()(i());s.push([e.id,".a14pz2hj{font-size:13px;line-height:1.4;}\n",""]);const a=s}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={id:o,exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};n.r(o),n.d(o,{ActionFetchButton:()=>He,ActionGridItem:()=>Ke,ActionItemBody:()=>Dt,ActionItemFooter:()=>Kt,ActionItemHeader:()=>nn,ActionItemWrapper:()=>un,ActionListItemContext:()=>nt,ActionMessages:()=>vn,ActionMessagesSlotFills:()=>wn,ActionModalBackButton:()=>Fn,ActionModalCloseButton:()=>In,ActionModalHeaderSlotFill:()=>Pn,ActionTitle:()=>gt,ActionsAfterNewButtonSlotFill:()=>On,ActionsFlow:()=>Go,AddActionButton:()=>Wn,AllProActionsLink:()=>Xn,BaseAction:()=>sn,BaseComputedField:()=>Do,CurrentActionEditContext:()=>b,DeleteActionButton:()=>Ht,EditActionConditionsButton:()=>jt,EditActionSettingsButton:()=>Et,EventsList:()=>Yt,FetchAjaxButton:()=>eo,FetchApiButton:()=>Me,FieldsMapField:()=>Co,ListActionItem:()=>oo,PlaceholderMessage:()=>so,RequestButton:()=>Be,RequestLoadingButton:()=>uo,STORE_NAME:()=>ge,TableListContainer:()=>So,TableListHead:()=>jo,TableListRow:()=>xo,ToggleActionExecutionButton:()=>Tt,ValidateButton:()=>wo,ValidateButtonWithStore:()=>ho,ValidatedSelectControl:()=>Eo,ValidatedTextControl:()=>bo,ValidatorProvider:()=>yo,addAction:()=>$o,addComputedField:()=>Qo,convertFlow:()=>ni,convertListToFieldsMap:()=>ri,globalTab:()=>li,registerAction:()=>Wo,useActionCallback:()=>yt,useActionErrors:()=>an,useActionValidatorProvider:()=>vo,useActions:()=>ct,useActionsEdit:()=>pt,useCurrentAction:()=>jn,useLoopedAction:()=>rt,useRequestFields:()=>Ro,useUpdateCurrentAction:()=>_n,useUpdateCurrentActionMeta:()=>No,withCurrentAction:()=>Ae,withDispatchActionLoading:()=>ke,withRequestFields:()=>qo,withSelectActionLoading:()=>Ee});var i={};n.r(i),n.d(i,{addAction:()=>D,addCallback:()=>U,addComputedField:()=>G,clearCurrent:()=>R,editAction:()=>W,editMeta:()=>M,openActionSettings:()=>Z,registerAction:()=>q,registerActions:()=>z,registerCategory:()=>V,setCurrentAction:()=>T,setLoading:()=>P,setLoadingResult:()=>H,setMeta:()=>I,showActionsInserterModal:()=>Y,updateCurrentConditions:()=>O,updateCurrentSettings:()=>N});var r={};n.r(r),n.d(r,{getAction:()=>oe,getActions:()=>ee,getActionsMap:()=>Q,getAllLoading:()=>fe,getCategories:()=>ne,getComputedFields:()=>K,getCurrentAction:()=>ue,getCurrentEdit:()=>pe,getCurrentLoading:()=>we,getCurrentSettings:()=>me,getErrorVisibility:()=>de,getLoading:()=>X,getLoadingIndex:()=>$,getMetaIndex:()=>ce,getOpenScenario:()=>le,getSortedActions:()=>te,isConditionalModal:()=>se,isFixed:()=>ae,isSettingsModal:()=>re,isShowActionsInserterModal:()=>ie});const s=window.wp.data,a="SET_CURRENT_ACTION",l="SET_LOADING",c="UPDATE_ACTION_CONDITIONS",d="SET_CURRENT_META",u="EDIT_CURRENT_META",p="CLEAR_CURRENT",m="ADD_COMPUTED_FIELD",w="EDIT_ACTION",f="REGISTER_ACTION",g="REGISTER_CATEGORY",h="SHOW_ACTIONS_INSERTER_MODAL",v=window.React,y=window.wp.element;var A;const C=(0,y.createContext)({});window.JetFBComponents=null!==(A=window.JetFBComponents)&&void 0!==A?A:{},window.JetFBComponents.CurrentActionEditContext=C;const b=C,E=window.wp.components;function F(e,t=""){const n=window.jetFormActionTypes.find((t=>e===t.id));if(!n)return!1;const o=window[n.self];return t&&o[t]?o[t]:o}function S({actionType:e=!1,source:t=!1},n,o=""){let i=!1;return t&&t[n]?i=t[n]:e&&(i=F(e)[n]),i?e=>e?i[e]?i[e]:o:i:()=>o}const B=function(e,t){const n=function(e,t=!1){t||(t=F(e));const n=S({source:t},"__labels","[Empty Label]"),o=S({source:t},"__help_messages"),i=(s={source:t},S(s,"__messages",{})),r=function(e){return S(e,"__gateway_attrs",[])}({source:t});var s;return{source:t,label:n,help:o,messages:i,gatewayAttrs:r,setSource:function(t={}){const n=function(e){const t=window.jetFormActionTypes.find((t=>e===t.id));return!!t&&t.self}(e);return!(!n||!window[n]||(window[n]={...window[n],...t},0))}}}(e);return o=>{const i={onChangeSetting:(e,t)=>{o.onChange({...o.settings,[t]:e})},getMapField:({source:e="fields_map",name:t})=>{const n=o.settings;return void 0!==n[e]&&void 0!==n[e][t]?n[e][t]:""},setMapField:({source:e="fields_map",nameField:t,value:n})=>{const i={...o.settings[e],[t]:n};o.onChange({...o.settings,[e]:i})},onChangeSettingObj:e=>{o.onChange({...o.settings,...e})}},r={...o,...n,...i},s=(0,E.withFilters)(`jet.fb.render.action.${e}`)((()=>null));return(0,v.createElement)(b.Provider,{value:r},(0,v.createElement)(t,{...r}),(0,v.createElement)(s,{...r}))}},x={id:-1,state:"",success:!1,response:{},loading:!1,buttonClassName:["jet-form-validate-button"]},j=(e={})=>{const t={...x};return e.state&&(t.buttonClassName=["jet-form-validate-button",e.state]),{...t,...e}},k=window.wp.i18n,J=window.wp.primitives,_=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),L={currentAction:{},types:[{type:"login",label:(0,k.__)("User Login","jet-form-builder"),icon:_,disabled:!0,category:"user",proActionLink:"https://jetformbuilder.com/addons/user-login/"},{type:"redirect_to_woo_checkout",label:(0,k.__)("Add to Cart & Redirect to Checkout","jet-form-builder"),icon:(0,v.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,v.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,v.createElement)("g",null,(0,v.createElement)("path",{d:"M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}))),disabled:!0,proActionLink:"https://jetformbuilder.com/addons/woocommerce-cart-checkout-action/"}],categories:[{type:"communication",label:(0,k.__)("Communication & Notifications","jet-form-builder")},{type:"user",label:(0,k.__)("User Management","jet-form-builder")},{type:"content",label:(0,k.__)("Content & Data Management","jet-form-builder")},{type:"advanced",label:(0,k.__)("Advanced Integration","jet-form-builder")}],meta:{},loadingState:[j()],computedFields:[],showActionsInserterModal:!1};function T(e={}){return{type:a,item:e}}function I(e){return{type:d,item:e}}function M(e){return{type:u,item:e}}function R(){return{type:p}}function P(e){var t,n;return null!==(t=e.loading)&&void 0!==t||(e.loading=!0),null!==(n=e.state)&&void 0!==n||(e.state="loading"),({dispatch:t,select:n})=>{const o=n.getLoadingIndex(e.id),i=[...n.getAllLoading()];-1!==o?i[o]=j(e):i.push(j(e)),t({type:l,payload:i})}}function H(e){return({dispatch:t})=>{t.setLoading({id:e.id,state:e.success?"is-valid":"is-invalid",success:e.success,response:e.response,loading:!1})}}function N(e){return({select:t,dispatch:n})=>{const o=t.getCurrentAction(),i={...t.getCurrentSettings(),...e};n({type:a,item:{...o,settings:{...o.settings,[o.type]:i}}})}}function O(e){return{type:c,item:e}}function z(e){return({dispatch:t})=>{for(const n of e)t.registerAction(n)}}function q(e){return({select:t,dispatch:n})=>{t.getAction(e.type)?n({type:w,actionSettings:e}):n.addAction(e)}}function V(e){return{type:g,category:e}}function D(e){return{type:f,actionSettings:e}}function U(e,t){return({dispatch:n})=>{n.registerAction({type:e,edit:t})}}function G(e,t={}){return{type:m,field:e,settings:t}}function W(e,t){return({dispatch:n})=>{n.registerAction({...t,type:e})}}function Z({item:e,index:t,scenario:n=""}){return({dispatch:o})=>{o.setCurrentAction({...e,index:t}),o.setMeta({index:t,modalType:"settings",scenario:n})}}function Y(e){return{type:h,show:e}}function $(e,t){return e.loadingState.findIndex((e=>e.id===t))}function X(e,t){const n=$(e,t);return-1!==n?e.loadingState[n]:{...x}}function K(e){return e.computedFields}function Q(e){const t={};for(const n of e.types)t[n.type]=n;return t}function ee(e){return e.types}function te(e){const t={};return e.categories.forEach(((e,n)=>{t[e.type]=n})),e.types.toSorted(((e,n)=>(t.hasOwnProperty(e.category)?t[e.category]:1/0)-(t.hasOwnProperty(n.category)?t[n.category]:1/0)))}function ne(e){return e.categories}function oe(e,t){return e.types.find((({type:e})=>e===t))}function ie(e){return e.showActionsInserterModal}function re(e){return"settings"===e.meta?.modalType}function se(e){return"conditions"===e.meta?.modalType}function ae(e,t){var n;const o=oe(e,t);return null!==(n=o?.fixed)&&void 0!==n&&n}function le(e){return e.meta?.scenario}function ce(e){return e.meta?.index}function de(e){return e.meta?.errorsShow}function ue(e){return e.currentAction}function pe(e){var t;const n=null!==(t=e.currentAction?.type)&&void 0!==t&&t;return oe(e,n)?.edit}function me(e){var t,n,o;return null!==(o=(null!==(t=e.currentAction?.settings)&&void 0!==t?t:{})[null!==(n=e.currentAction?.type)&&void 0!==n&&n])&&void 0!==o?o:{}}function we(e){const t=e.currentAction?.id;return X(e,t)}function fe(e){return e.loadingState}const ge="jet-forms/actions",he=(0,s.createReduxStore)(ge,{reducer:function(e=L,t){switch(t?.type){case a:const n={};return"function"==typeof t.item?n.currentAction=t.item(e.currentAction):n.currentAction=t.item,{...e,...n};case d:return{...e,meta:{...t.item}};case u:return{...e,meta:{...e.meta,...t.item}};case p:return{...e,currentAction:{},meta:{}};case l:return{...e,loadingState:t.payload};case c:const{conditions:o=[]}=e.currentAction,i="function"==typeof t.item?t.item(o):t.item;return{...e,currentAction:{...e.currentAction,conditions:i}};case f:const{actionSettings:r}=t;return r.hasOwnProperty("label")||(r.label=window.jetFormActionTypes.find((e=>e.id===r.type))?.name),{...e,types:[...e.types,{...r,edit:B(r.type,r.edit)}]};case g:return{...e,categories:[...e.categories,{...t.category}]};case m:const s=[...e.computedFields,{field:t.field,settings:t.settings}].sort(((e,t)=>{var n,o;return(null!==(n=e.settings?.priority)&&void 0!==n?n:10)-(null!==(o=t.settings?.priority)&&void 0!==o?o:10)}));return{...e,computedFields:s};case w:const{actionSettings:v}=t;"edit"in v&&(v.edit=B(v.type,v.edit));const y=e.types.map((e=>e.type!==v.type?e:{...e,...v}));return{...e,types:y};case h:return{...e,showActionsInserterModal:t.show};default:return e}},actions:i,selectors:r});var ve;function ye(e){return{currentAction:e(ge).getCurrentAction()}}window.JetFBHooks=null!==(ve=window.JetFBHooks)&&void 0!==ve?ve:{},window.JetFBHooks.withCurrentAction=ye;const Ae=ye;var Ce;function be(e){return{loadingState:e(ge).getCurrentLoading()}}window.JetFBHooks=null!==(Ce=window.JetFBHooks)&&void 0!==Ce?Ce:{},window.JetFBHooks.withSelectActionLoading=be;const Ee=be;var Fe;function Se({label:e,ajaxArgs:t={},onSuccessRequest:n=()=>{},onFailRequest:o=()=>{},onLoading:i=()=>{},className:r="",children:s=()=>{},disabled:a=!1,customRequest:l=!1,isHidden:c=!1,hasFetched:d=-1,...u}){r="string"==typeof r?r:r.join(" ");const p=()=>{!1===l?(i(),jQuery.ajax({url:ajaxurl,type:"POST",data:t}).done((e=>e.success?n(e):o())).fail((()=>o()))):"function"==typeof l?l():o()};return(0,y.useEffect)((()=>{c&&-1===d&&p()}),[]),c?null:(0,v.createElement)(E.Button,{disabled:a,key:"validate_api_key",onClick:p,className:r+" jet-fb-button line-with-input",variant:"secondary",...u},s&&s,e)}window.JetFBComponents=null!==(Fe=window?.JetFBComponents)&&void 0!==Fe?Fe:{},window.JetFBComponents.RequestButton=Se;const Be=Se;var xe;function je(e){return{setLoading(t){e(ge).setLoading({id:t})},setResultSuccess(t,n){e(ge).setLoadingResult({id:t,success:!0,response:n})},setResultFail(t){e(ge).setLoadingResult({id:t,success:!1,response:{}})}}}window.JetFBHooks=null!==(xe=window.JetFBHooks)&&void 0!==xe?xe:{},window.JetFBHooks.withDispatchActionLoading=je;const ke=je,Je=window.wp.compose,_e=window.wp.apiFetch;var Le,Te=n.n(_e);function Ie({initialLabel:e="Valid",label:t="InValid",apiArgs:n={},loadingState:o,setLoading:i,id:r,setResultSuccess:s,setResultFail:a,onLoading:l=()=>{},onSuccess:c=()=>{},onFail:d=()=>{},isHidden:u=!1}){return(0,v.createElement)(Be,{disabled:o.loading,hasFetched:o.id,label:(-1===o.id||o.loading)&&e?e:t,className:o.buttonClassName,isHidden:u,customRequest:()=>{i(r),l(),Te()(n).then((e=>{s(r,e),c(e)})).catch((e=>{a(r),d(e)}))},isDestructive:o.buttonClassName.includes("is-invalid")},(0,v.createElement)("i",{className:"dashicons"}))}window.JetFBComponents=null!==(Le=window?.JetFBComponents)&&void 0!==Le?Le:{},window.JetFBComponents.FetchApiButton=Ie;const Me=(0,Je.compose)((0,s.withDispatch)(ke))(Ie);var Re;function Pe({currentAction:e,...t}){return(0,v.createElement)(Me,{id:e.id,...t})}window.JetFBComponents=null!==(Re=window?.JetFBComponents)&&void 0!==Re?Re:{},window.JetFBComponents.ActionFetchButton=Pe;const He=(0,Je.compose)((0,s.withSelect)(Ae),(0,s.withSelect)(Ee))(Pe);function Ne(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Oe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ze=Ne((function(e){return Oe.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),qe=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach((e=>{(e?e.split(" "):[]).forEach((e=>{if(e.startsWith("atm_")){const[,n]=e.split("_");t[n]=e}else n.push(e)}))}));const o=[];for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.push(t[e]);return o.push(...n),o.join(" ")},Ve=(e,t)=>{const n={};return Object.keys(e).filter((e=>t=>-1===e.indexOf(t))(t)).forEach((t=>{n[t]=e[t]})),n},De=function(e){let t="";return n=>{const o=(o,i)=>{const{as:r=e,class:s=t}=o;var a;const l=function(e,t){const n=Ve(t,["as","class"]);if(!e){const e="function"==typeof ze?{default:ze}:ze;Object.keys(n).forEach((t=>{e.default(t)||delete n[t]}))}return n}(void 0===n.propsAsIs?!("string"==typeof r&&-1===r.indexOf("-")&&(a=r[0],a.toUpperCase()!==a)):n.propsAsIs,o);l.ref=i,l.className=n.atomic?qe(n.class,l.className||s):qe(l.className||s,n.class);const{vars:c}=n;if(c){const e={};for(const t in c){const i=c[t],r=i[0],s=i[1]||"",a="function"==typeof r?r(o):r;n.name,e[`--${t}`]=`${a}${s}`}const t=l.style||{},i=Object.keys(t);i.length>0&&i.forEach((n=>{e[n]=t[n]})),l.style=e}return e.__wyw_meta&&e!==r?(l.as=r,(0,v.createElement)(e,l)):(0,v.createElement)(r,l)},i=v.forwardRef?(0,v.forwardRef)(o):e=>{const t=Ve(e,["innerRef"]);return o(t,e.innerRef)};return i.displayName=n.name,i.__wyw_meta={className:n.class||t,extends:e},i}};const Ue=(0,y.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,y.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Ge=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})),We=function({action:e}){var t;return(0,v.createElement)(E.Flex,{direction:"column",justify:"space-evenly",align:"center"},(0,v.createElement)("span",null,(0,k.__)("This is paid addon. You can buy it here:","jet-form-builder")),(0,v.createElement)(E.ExternalLink,{href:null!==(t=e.proActionLink)&&void 0!==t?t:"https://jetformbuilder.com/pricing/"},"jetformbuilder.com"))},Ze=De("h5")({name:"ActionTitle",class:"ajopllc",propsAsIs:!1}),Ye=De(Ue)({name:"ColoredIcon",class:"c1j3i9l6",propsAsIs:!0}),$e=De("div")({name:"Overlay",class:"odma714",propsAsIs:!1}),Xe=De(E.Flex)({name:"FlexWrapper",class:"fqw6jzj",propsAsIs:!0}),Ke=function({action:e,onClick:t}){var n,o;const i=null!==(n=e?.disabledOverlay)&&void 0!==n?n:We;return(0,v.createElement)(Xe,{onClick:t,direction:"column",align:"center",justify:"flex-start",className:e.disabled?"jfb-action-grid-item is-disabled":"jfb-action-grid-item"},(0,v.createElement)(Ye,{icon:null!==(o=e?.icon)&&void 0!==o?o:Ge,size:32}),(0,v.createElement)(Ze,null,e.label),e?.docHref&&(0,v.createElement)(E.ExternalLink,{href:e?.docHref},(0,k.__)("Documentation","jet-form-builder")),e.disabled&&(0,v.createElement)($e,null,(0,v.createElement)(i,{action:e})))};n(92);const Qe=(0,v.createElement)(J.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));var et;const tt=(0,y.createContext)({index:-1,action:{}});window.JetFBComponents=null!==(et=window.JetFBComponents)&&void 0!==et?et:{},window.JetFBComponents.ActionListItemContext=tt;const nt=tt;var ot;function it(){return(0,y.useContext)(nt)}window.JetFBHooks=null!==(ot=window.JetFBHooks)&&void 0!==ot?ot:{},window.JetFBHooks.useLoopedAction=it;const rt=it,st=window.jfb.data;var at;function lt(e=void 0){return(0,st.useMetaState)("_jf_actions","[]",e)}window.JetFBHooks=null!==(at=window.JetFBHooks)&&void 0!==at?at:{},window.JetFBHooks.useActions=lt;const ct=lt;var dt;const ut=()=>{const[e,t]=ct(),n=(n,o)=>{const i=e.map((e=>n!==e.id?e:{...JSON.parse(JSON.stringify(e)),...o}));t([...i])};return{actions:e,setActions:t,moveAction:(n,o)=>{const i=JSON.parse(JSON.stringify(e[n])),r=JSON.parse(JSON.stringify(e[o]));e.splice(o,1,i),e.splice(n,1,r),t([...e])},deleteAction:n=>{e.splice(n,1),t([...e])},updateActionObj:n,toggleExecute:e=>{var t;n(e.id,{is_execute:!(null===(t=e.is_execute)||void 0===t||t)})},addActionProps:n=>{const o=JSON.parse(JSON.stringify(n));o.id=0>o.id?-1*o.id:o.id,t([...e,{...o}])}}};window.JetFBHooks=null!==(dt=window.JetFBHooks)&&void 0!==dt?dt:{},window.JetFBHooks.useActionsEdit=ut;const pt=ut;var mt;const wt=De("span")({name:"ActionLabel",class:"a14pz2hj",propsAsIs:!1});function ft(){const{deleteAction:e}=pt(),{action:t,index:n}=rt(),o=(0,s.useSelect)((e=>e(ge).getAction(t.type)),[]);return Boolean(o)?(0,v.createElement)(wt,null,o.label):(0,v.createElement)(WideButton,{isDestructive:!0,variant:"secondary",onClick:()=>e(n)},(0,k.__)("Action is not registered. Delete","jet-form-builder"))}window.JetFBComponents=null!==(mt=window?.JetFBComponents)&&void 0!==mt?mt:{},window.JetFBComponents.ActionTitle=ft;const gt=ft;var ht;n(545);const vt=(e=!1)=>(0,s.useSelect)((t=>e?t("jet-forms/actions").getAction(e)?.edit:t("jet-forms/actions").getCurrentEdit()),[e]);window.JetFBHooks=null!==(ht=window.JetFBHooks)&&void 0!==ht?ht:{},window.JetFBHooks.useActionCallback=vt;const yt=vt,At=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));var Ct;function bt(){const{action:e,index:t}=rt(),{setCurrentAction:n,setMeta:o}=(0,s.useDispatch)("jet-forms/actions"),i=yt(e.type);return(0,v.createElement)(E.Button,{disabled:!i,size:"small",icon:At,label:(0,k.__)("Edit Action","jet-form-builder"),tooltipPosition:"top",onClick:()=>{n({...e,index:t}),o({index:t,modalType:"settings"})}})}window.JetFBComponents=null!==(Ct=window?.JetFBComponents)&&void 0!==Ct?Ct:{},window.JetFBComponents.EditActionSettingsButton=bt;const Et=bt,Ft=(0,v.createElement)(J.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,v.createElement)(J.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));var St;const Bt=De(E.Button)({name:"StyledButton",class:"s1ani5eo",propsAsIs:!0});function xt(){var e;const{action:t,index:n}=rt(),{setCurrentAction:o,setMeta:i}=(0,s.useDispatch)("jet-forms/actions");return(0,v.createElement)(Bt,{size:"small",icon:Ft,"data-conditions-count":null!==(e=t?.conditions?.length)&&void 0!==e?e:0,onClick:()=>{o({...t,index:n}),i({index:n,modalType:"conditions"})},label:(0,k.__)("Edit Conditions & Events","jet-form-builder"),tooltipPosition:"top"})}window.JetFBComponents=null!==(St=window?.JetFBComponents)&&void 0!==St?St:{},window.JetFBComponents.EditActionConditionsButton=xt;const jt=xt;n(409);const kt=(0,v.createElement)(J.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(J.Path,{d:"M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.348.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.051 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.05-1.18l1.021 1.7.858-.514-1.034-1.723c.442-.313.837-.646 1.184-.977.703-.669 1.22-1.337 1.563-1.839l.002-.003 1.61.914.493-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005a8.29 8.29 0 0 1-.422.689 10.097 10.097 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.544 2.293-2.503 0-4.327-1.132-5.546-2.293a10.099 10.099 0 0 1-1.359-1.599 8.267 8.267 0 0 1-.422-.689l-.003-.005Z"})),Jt=(0,v.createElement)(J.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(J.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"}));var _t;function Lt(){var e;const{action:t}=rt(),n=null===(e=t.is_execute)||void 0===e||e,{toggleExecute:o}=pt();return(0,v.createElement)(E.Button,{size:"small",icon:n?kt:Jt,label:n?(0,k.__)("Turn off","jet-form-builder"):(0,k.__)("Turn on","jet-form-builder"),onClick:()=>o(t),tooltipPosition:"top"})}window.JetFBComponents=null!==(_t=window?.JetFBComponents)&&void 0!==_t?_t:{},window.JetFBComponents.ToggleActionExecutionButton=Lt;const Tt=Lt,It=window.jfb.components,Mt=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"}));var Rt;function Pt(){const{index:e}=rt(),{deleteAction:t}=pt(),{showPopover:n,setShowPopover:o,ref:i,popoverProps:r}=(0,It.useTriggerPopover)();return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(E.Button,{ref:i,isDestructive:!0,size:"small",icon:Mt,label:(0,k.__)("Delete action","jet-form-builder"),tooltipPosition:"top",onClick:()=>o((e=>!e))}),n&&(0,v.createElement)(It.PopoverStandard,{placement:"top-end",noArrow:!1,...r},(0,v.createElement)("span",null,(0,k.__)("Delete this action?","jet-form-builder"))," ",(0,v.createElement)(E.Button,{isLink:!0,isDestructive:!0,onClick:()=>t(e)},(0,k.__)("Yes","jet-form-builder"))," / ",(0,v.createElement)(E.Button,{isLink:!0,onClick:()=>o(!1)},(0,k.__)("No","jet-form-builder"))))}window.JetFBComponents=null!==(Rt=window?.JetFBComponents)&&void 0!==Rt?Rt:{},window.JetFBComponents.DeleteActionButton=Pt;const Ht=Pt;var Nt;const Ot=De(Ue)({name:"CursoredIcon",class:"cue09js",propsAsIs:!0}),zt=De(E.Flex)({name:"FlexActionButtons",class:"f13vj9vm",propsAsIs:!0}),qt=De(E.CardBody)({name:"ActionCardBody",class:"a4jlrqo",propsAsIs:!0});function Vt(){const{action:e}=rt(),t=(0,s.useSelect)((t=>t("jet-forms/actions").getAction(e.type)),[e.type]);return(0,v.createElement)(qt,null,void 0===t&&(0,v.createElement)("small",null,"Action ",(0,v.createElement)("b",null,'"',e.type,'"')," is not supported"),void 0!==t&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)(E.Flex,{align:"center",justify:"flex-start",gap:1},(0,v.createElement)(Ot,{className:"jfb-action-handle",icon:Qe}),(0,v.createElement)(gt,null)),(0,v.createElement)(zt,{justify:"flex-end"},(0,v.createElement)(Et,null),!t.disableConditions&&(0,v.createElement)(jt,null),(0,v.createElement)(Tt,null),(0,v.createElement)(Ht,null))))}window.JetFBComponents=null!==(Nt=window?.JetFBComponents)&&void 0!==Nt?Nt:{},window.JetFBComponents.ActionItemBody=Vt;const Dt=Vt;var Ut;n(542);const Gt=De("button")({name:"EventButton",class:"ekbdm2s",propsAsIs:!1});function Wt(e){var t,n;const{slug:o,index:i}=e,{action:r}=(0,y.useContext)(nt),a=(0,s.useSelect)((e=>e("jet-forms/events").getType(o)),[o]),{updateActionObj:l}=pt(),c=[null!==(t=a?.title)&&void 0!==t?t:"",(0,k.__)("(Click to delete)","jet-form-builder")].join(" ");return(0,v.createElement)(Gt,{type:"button",title:c,onClick:()=>{r.events.splice(i,1),l(r.id,{...r})}},null!==(n=a?.value)&&void 0!==n?n:o)}function Zt(e){const{events:t=[]}=e;return t.map(((e,t)=>(0,v.createElement)(Wt,{key:e,slug:e,index:t})))}window.JetFBComponents=null!==(Ut=window?.JetFBComponents)&&void 0!==Ut?Ut:{},window.JetFBComponents.EventsList=Zt;const Yt=Zt;var $t;function Xt({children:e,...t}={}){const{action:n}=rt(),o=window.JetFormEditorData.actionConditionExcludeEvents;return o[n.type]&&n.events?.length&&(n.events=n.events.filter((e=>!o[n.type].includes(e)))),Boolean(n.events?.length)&&(0,v.createElement)(E.CardFooter,{style:{flexWrap:"wrap",rowGap:"0.5em"},...t},(0,v.createElement)(Yt,{events:n.events}),e)}n(210),window.JetFBComponents=null!==($t=window?.JetFBComponents)&&void 0!==$t?$t:{},window.JetFBComponents.ActionItemFooter=Xt;const Kt=Xt,Qt=window.wp.hooks;var en;function tn({children:e,...t}={}){const{action:n}=rt(),o=(0,Qt.applyFilters)(`jet.fb.section.actions.header.${n.type}`,null,n);return o?(0,v.createElement)(E.CardHeader,{...t},o,e):null}window.JetFBComponents=null!==(en=window?.JetFBComponents)&&void 0!==en?en:{},window.JetFBComponents.ActionItemHeader=tn;const nn=tn;function on(e=null){this.initData(e)}function rn(){return Math.floor(8999*Math.random())+1e3}on.prototype.initData=function(e){var t,n,o,i,r;this.id=null!==(t=e?.id)&&void 0!==t?t:rn(),this.settings=null!==(n=e?.settings)&&void 0!==n?n:{},this.type=null!==(o=e?.type)&&void 0!==o?o:"send_email",this.conditions=null!==(i=e?.conditions)&&void 0!==i?i:[],this.events=null!==(r=e?.events)&&void 0!==r?r:[],Object.defineProperty(this,"selfSettings",{get:()=>{var e;return this.settings.hasOwnProperty(null!==(e=this.type)&&void 0!==e?e:"")?this.settings[this.type]:{}},set:e=>{var t;this.settings.hasOwnProperty(null!==(t=this.type)&&void 0!==t?t:"")||(this.settings[this.type]={}),this.settings[this.type]={...this.settings[this.type],...e}}}),Object.defineProperty(this,"index",{get:()=>{var t;return null!==(t=e?.index)&&void 0!==t?t:0}})},on.prototype.refactorSettings=function(){const e=this.settings;this.settings={},this.selfSettings=e},on.prototype.resetID=function(){this.id=rn()},window.JetFBComponents=window.JetFBComponents||{},window.JetFBComponents.BaseAction=on;const sn=on,an=function(e){e=new sn(e);const t=(0,s.useSelect)((t=>{const n=t(ge).getAction(e.type);return n?.validators?n.validators:[]}),[e.type]),n=[];for(const o of t){const t=o({settings:e.selfSettings});Array.isArray(t)?n.push(...t):t&&n.push(t)}return n};var ln;const cn=De(E.Card)({name:"MarginLessCard",class:"myen4j",propsAsIs:!0});function dn({className:e="",...t}={}){var n;const{action:o}=rt(),{currentAction:i,isFixed:r}=(0,s.useSelect)((e=>({currentAction:e("jet-forms/actions").getCurrentAction(),isFixed:e("jet-forms/actions").isFixed(o.type)})),[o.type]),a=an(o),l=null===(n=o.is_execute)||void 0===n||n,c=Boolean(a.length)?(0,k.__)("This action isn't set up properly. Please check the settings of the action","jet-form-builder"):"",d=c?E.Tooltip:y.Fragment,u=c?{text:c,delay:200,placement:"top"}:{};return(0,v.createElement)(d,{...u},(0,v.createElement)(cn,{elevation:2,size:"extraSmall",className:qe("jet-form-action",e,!r&&"draggable",!l&&"da595pz",i?.id===o.id&&"c131zb0w",a.length&&"e9ooo02"),...t}))}window.JetFBComponents=null!==(ln=window?.JetFBComponents)&&void 0!==ln?ln:{},window.JetFBComponents.ActionItemWrapper=dn;const un=dn;var pn;n(877);const mn={};for(const{self:e}of window.jetFormActionTypes)if(window[e]?.hasOwnProperty?.("__messages")&&Object.keys(window[e].__messages)?.length)for(const t of Object.keys(window[e].__messages))mn.hasOwnProperty(t)||(mn[t]=(0,E.createSlotFill)(`JFBActionMessageRow-${t}`));window.JetFBComponents=null!==(pn=window?.JetFBComponents)&&void 0!==pn?pn:{},window.JetFBComponents.ActionMessagesSlotFills=mn;const wn=mn;var fn;function gn(e){const{type:t,label:n,value:o,onChange:i}=e,{Slot:r}=(0,y.useMemo)((()=>wn[t]),[t]);return(0,v.createElement)(xo,{tag:"jfb-message-item",label:n},(({htmlId:t})=>(0,v.createElement)(r,{fillProps:{...e,id:t}},(e=>Boolean(e?.length)?e:(0,v.createElement)(It.StyledTextControl,{id:t,value:o,onChange:i})))))}function hn(e){const{settings:t,source:n,getMapField:o,setMapField:i,messages:r,onChangeSetting:s}=e;return(0,y.useEffect)((()=>{const e=t.messages||{},o={};Object.entries(n.__messages).forEach((([t,n])=>{e[t]||(o[t]=n.value)})),o&&s({...e,...o},"messages")}),[]),(0,v.createElement)("div",{createId:!1,className:It.TableListStyle.Wrap},(0,v.createElement)(It.Label,{className:It.TableListStyle.Label},(0,k.__)("Messages Settings","jet-form-builder")),(0,v.createElement)(It.Help,{className:It.TableListStyle.WhiteSpaceNormal},"Change error message according to USER LOGIN form field; it can be username or email."),(0,v.createElement)(So,null,t.messages&&Object.entries(t.messages).map((([e])=>{return(0,v.createElement)(gn,{key:"message_"+e,type:e,label:r(e).label,value:(t=e,o({name:t,source:"messages"})),onChange:t=>{i({value:t,nameField:e,source:"messages"})}});var t}))))}window.JetFBComponents=null!==(fn=window?.JetFBComponents)&&void 0!==fn?fn:{},window.JetFBComponents.ActionMessages=hn;const vn=hn,yn=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),An=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var Cn;const bn=document.body.classList.contains("rtl");function En(){const{deleteAction:e}=pt(),{index:t}=rt(),{ref:n,setShowPopover:o,showPopover:i,popoverProps:r}=(0,It.useTriggerPopover)(),{showActionsInserterModal:a}=(0,s.useDispatch)(ge);return(0,s.useSelect)((e=>"inserter"===e(ge).getOpenScenario()),[])&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)(E.Button,{ref:n,variant:"tertiary",icon:bn?yn:An,onClick:()=>o((e=>!e))},(0,k.__)("Back","jet-form-builder")),i&&(0,v.createElement)(It.PopoverStandard,{placement:"bottom",noArrow:!1,...r},(0,v.createElement)("span",null,(0,k.__)("Are you sure? All your changes will be lost.","jet-form-builder"))," ",(0,v.createElement)(E.Button,{isLink:!0,isDestructive:!0,onClick:()=>{e(t),a(!0)}},(0,k.__)("Yes","jet-form-builder"))," / ",(0,v.createElement)(E.Button,{isLink:!0,onClick:()=>o(!1)},(0,k.__)("No","jet-form-builder"))))}window.JetFBComponents=null!==(Cn=window?.JetFBComponents)&&void 0!==Cn?Cn:{},window.JetFBComponents.ActionModalBackButton=En;const Fn=En,Sn=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var Bn;function xn(){const[e,t]=(0,s.useSelect)((e=>[e(ge).getCurrentAction(),e(ge).getCurrentSettings()]),[]),{updateCurrentSettings:n}=(0,s.useDispatch)(ge);return{currentAction:e,currentSettings:t,updateSettings:n}}window.JetFBHooks=null!==(Bn=window.JetFBHooks)&&void 0!==Bn?Bn:{},window.JetFBHooks.useCurrentAction=xn;const jn=xn;var kn;const Jn=()=>{const{currentAction:e}=jn(),{setCurrentAction:t,clearCurrent:n,updateCurrentConditions:o}=(0,s.useDispatch)(ge);return{setCurrentAction:t,setTypeSettings:n=>{t({...e,settings:{...e.settings,[e.type]:n}})},clearCurrent:n,updateCurrentConditions:o}};window.JetFBHooks=null!==(kn=window.JetFBHooks)&&void 0!==kn?kn:{},window.JetFBHooks.useUpdateCurrentAction=Jn;const _n=Jn;var Ln;function Tn(){const{clearCurrent:e}=_n();return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(E.Button,{icon:Sn,onClick:()=>e(),label:(0,k.__)("Close","jet-form-builder")}))}window.JetFBComponents=null!==(Ln=window?.JetFBComponents)&&void 0!==Ln?Ln:{},window.JetFBComponents.ActionModalCloseButton=Tn;const In=Tn;var Mn;const Rn=(0,E.createSlotFill)("JFBActionModalHeader");window.JetFBComponents=null!==(Mn=window?.JetFBComponents)&&void 0!==Mn?Mn:{},window.JetFBComponents.ActionModalHeaderSlotFill=Rn;const Pn=Rn;var Hn;const Nn=(0,E.createSlotFill)("JFBActionsAfterNewButton");window.JetFBComponents=null!==(Hn=window?.JetFBComponents)&&void 0!==Hn?Hn:{},window.JetFBComponents.ActionsAfterNewButtonSlotFill=Nn;const On=Nn,zn=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),qn=(0,v.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(J.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Vn=De("div")({name:"StyledPlaceholder",class:"sfffqhk",propsAsIs:!1}),Dn=function(){const{actions:e,setActions:t}=pt(),{openActionSettings:n,showActionsInserterModal:o}=(0,s.useDispatch)(ge),{search:i,setSearch:r,category:a,categories:l,actionTypes:c,setCategory:d}=(()=>{const[e,t]=(0,y.useState)(""),[n,o]=(0,y.useState)(""),{actionTypes:i,categories:r}=(0,s.useSelect)((t=>{const o=t(ge);return{actionTypes:o.getSortedActions().filter((t=>(!e||!t?.category&&"misc"===e||t?.category===e)&&t?.label?.toLowerCase?.().includes?.(n.toLowerCase()))),categories:[{value:"",label:(0,k.__)("All","jet-form-builder")},...o.getCategories().map((e=>({value:e?.type,label:e?.label}))),{value:"misc",label:(0,k.__)("Misc","jet-form-builder")}]}}),[n,e]);return{search:n,setSearch:o,category:e,categories:r,actionTypes:i,setCategory:t}})();return(0,y.useEffect)((()=>()=>{r(""),d("")}),[]),(0,v.createElement)(E.Modal,{size:"large",title:(0,k.__)("Add new action","jet-form-builder"),onRequestClose:()=>o(!1),headerActions:(0,v.createElement)(It.StyledFlexControl,{expanded:!1},(0,v.createElement)(E.TextControl,{placeholder:(0,k.__)("Search action by name…","jet-form-builder"),value:i,onChange:r}),(0,v.createElement)(E.SelectControl,{value:a,onChange:d,options:l}))},!Boolean(c?.length)&&(0,v.createElement)(Vn,null,(0,v.createElement)("h3",null,(0,k.__)("No actions were found by your search parameters.","jet-form-builder")),(0,v.createElement)(E.Button,{variant:"secondary",icon:qn,onClick:()=>{r(""),d("")}},(0,k.__)("Clear search & category fields","jet-form-builder"))),(0,v.createElement)(E.__experimentalGrid,{columns:4,className:"jfb-actions-grid"},c.map((i=>(0,v.createElement)(Ke,{key:i.type,action:i,onClick:r=>{i.disabled||((i,r)=>{const s=Array.from(i.target?.classList);if(s?.[0]?.includes?.("components-external-link"))return;const a={...new sn({type:r.type})};t([...e,a]),o(!1),n({item:a,index:e.length,scenario:"inserter"})})(r,i)}})))))};var Un;function Gn(){const{showActionsInserterModal:e}=(0,s.useDispatch)(ge),t=(0,s.useSelect)((e=>e(ge).isShowActionsInserterModal()),[]);return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(E.Button,{isPrimary:!0,onClick:()=>e(!0),icon:zn},(0,k.__)("New Action","jet-form-builder")),t&&(0,v.createElement)(Dn,null))}n(929),window.JetFBComponents=null!==(Un=window?.JetFBComponents)&&void 0!==Un?Un:{},window.JetFBComponents.AddActionButton=Gn;const Wn=Gn;var Zn;const Yn=De(E.Flex)({name:"StyledFlex",class:"sauuswy",propsAsIs:!0});function $n(){return!JetFormEditorData.isActivePro&&(0,v.createElement)(Yn,{gap:3,justify:"center"},(0,v.createElement)("a",{href:JetFormEditorData.utmLinks.allProActions,target:"_blank",rel:"external noreferrer noopener",style:{textDecoration:"none"}},(0,v.createElement)(E.Flex,null,(0,k.__)("All PRO Actions","jet-form-builder"),(0,v.createElement)(Ue,{size:20,icon:(0,v.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",fill:"currentColor"},(0,v.createElement)("path",{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}))}))))}window.JetFBComponents=null!==(Zn=window?.JetFBComponents)&&void 0!==Zn?Zn:{},window.JetFBComponents.AllProActionsLink=$n;const Xn=$n;var Kn;function Qn({initialLabel:e="Valid",label:t="InValid",ajaxArgs:n={},loadingState:o,setLoading:i,id:r,setResultSuccess:s,setResultFail:a}){return(0,v.createElement)(Be,{disabled:o.loading,ajaxArgs:n,label:-1===o.id&&e?e:t,onLoading:()=>{i(r)},onSuccessRequest:e=>{s(r,e)},onFailRequest:()=>a(r),className:o.buttonClassName},(0,v.createElement)("i",{className:"dashicons"}))}n(974),window.JetFBComponents=null!==(Kn=window?.JetFBComponents)&&void 0!==Kn?Kn:{},window.JetFBComponents.FetchAjaxButton=Qn;const eo=(0,Je.compose)((0,s.withSelect)(Ee),(0,s.withDispatch)(ke))(Qn);var to;function no(){return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(un,null,(0,v.createElement)(nn,null),(0,v.createElement)(Dt,null),(0,v.createElement)(Kt,null)))}window.JetFBComponents=null!==(to=window?.JetFBComponents)&&void 0!==to?to:{},window.JetFBComponents.ListActionItem=no;const oo=no;var io;function ro({style:e,children:t}){const n={fontSize:"1.5em",padding:"2em",textAlign:"center",backgroundColor:"aliceblue",...e};return(0,v.createElement)("p",{style:n},t)}window.JetFBComponents=null!==(io=window?.JetFBComponents)&&void 0!==io?io:{},window.JetFBComponents.PlaceholderMessage=ro;const so=ro,ao=["jet-form-validate-button"];var lo;function co({label:e,ajaxArgs:t={},onSuccessRequest:n=()=>{},onFailRequest:o=()=>{}}){const[i,r,s]=function(){const[e,t]=(0,y.useState)([...ao]);return[e.join(" "),()=>{t([...ao,"loading"])},()=>{t(ao)}]}();return(0,v.createElement)(Be,{ajaxArgs:t,label:e,onLoading:r,onSuccessRequest:e=>{s(),n(e)},onFailRequest:()=>{s(),o()},className:i},(0,v.createElement)("i",{className:"dashicons"}))}window.JetFBComponents=null!==(lo=window?.JetFBComponents)&&void 0!==lo?lo:{},window.JetFBComponents.RequestLoadingButton=co;const uo=co;var po;function mo({initialValid:e=null,label:t,ajaxArgs:n={},onValid:o=()=>{},onInvalid:i=()=>{}}){const[r,s]=(0,y.useState)({}),[a,l,c,d]=function(e){const t="is-valid",n="is-invalid",[o,i]=(0,y.useState)((()=>[...ao,...e?[t]:!1===e?[n]:[]]));return[o.join(" "),()=>{i([...ao,t])},()=>{i([...ao,n])},()=>{i([...ao,"loading"])}]}(e||null);return(0,v.createElement)(Be,{ajaxArgs:n,label:t,onLoading:d,onSuccessRequest:e=>{l(),o(e),s({})},onFailRequest:()=>{c(),i(),s({isDestructive:!0})},className:a,...r},(0,v.createElement)("i",{className:"dashicons"}))}window.JetFBComponents=null!==(po=window?.JetFBComponents)&&void 0!==po?po:{},window.JetFBComponents.ValidateButton=mo;const wo=mo;var fo;function go(e){const t=(0,s.useSelect)((e=>e(ge).getCurrentAction()),[]);return(0,v.createElement)(eo,{id:t.id,...e})}window.JetFBComponents=null!==(fo=window?.JetFBComponents)&&void 0!==fo?fo:{},window.JetFBComponents.ValidateButtonWithStore=go;const ho=go,vo=function({isSupported:e}){const{currentAction:t,isShowErrors:n}=(0,s.useSelect)((e=>({currentAction:e(ge).getCurrentAction(),isShowErrors:e(ge).getErrorVisibility()})),[]),[o,i]=(0,y.useState)(!1);return{hasError:an(o||n?t:{type:!1}).some(e),setShowError:i}},yo=function({isSupported:e,children:t}){return t(vo({isSupported:e}))},Ao=De(E.Flex)({name:"StyledFlex",class:"s5b5a3p",propsAsIs:!0}),Co=function e({tag:t,label:n,help:o="",isRequired:i,formFields:r,value:s,onChange:a}){const l=i?It.RequiredLabel:It.Label,{hasError:c,setShowError:d}=vo({isSupported:e=>`field_${t}`===e?.property}),u=(0,Je.useInstanceId)(e,"jfb-field-map");return(0,v.createElement)(E.Card,{elevation:2},(0,v.createElement)(Ao,{direction:"column",gap:3},c&&(0,v.createElement)(It.IconText,null,(0,k.__)("Please fill this required field","jet-form-builder")),(0,v.createElement)(It.RowControl,{createId:!1,controlSize:1,className:qe(c&&It.ControlWithErrorStyle)},(0,v.createElement)(l,{htmlFor:u},n),(0,v.createElement)(It.StyledSelectControl,{id:u,value:s,onChange:a,onBlur:()=>d(!0),options:r})),Boolean(o)&&(0,v.createElement)(It.Help,null,o)))};n(848);const bo=function({value:e,onChange:t,label:n,help:o,isErrorSupported:i=()=>!1,errorText:r="",required:s=!1,disabled:a=!1}){const{hasError:l,setShowError:c}=vo({isSupported:i}),d=s?It.RequiredLabel:It.Label;return(0,v.createElement)(It.RowControl,null,(({id:i})=>(0,v.createElement)(v.Fragment,null,(0,v.createElement)(d,{htmlFor:i},n),(0,v.createElement)(It.RowControlEnd,{hasError:l,errorText:r},(0,v.createElement)(It.StyledTextControl,{id:i,value:e,onChange:t,onBlur:()=>c(!0),help:o,disabled:a})))))},Eo=function({value:e,onChange:t,label:n,help:o="",options:i,required:r=!1,isErrorSupported:s=()=>!1}){const{hasError:a,setShowError:l}=vo({isSupported:s}),c=r?It.RequiredLabel:It.Label;return(0,v.createElement)(It.RowControl,null,(({id:r})=>(0,v.createElement)(v.Fragment,null,(0,v.createElement)(c,{htmlFor:r},n),(0,v.createElement)(It.RowControlEnd,{hasError:a},(0,v.createElement)(It.StyledSelectControl,{id:r,value:e,onChange:t,onBlur:()=>l(!0),help:o,options:i})))))},Fo=De(E.Flex)({name:"StyledFlex",class:"s1goy86j",propsAsIs:!0});function So({children:e}){return(0,v.createElement)(E.Card,{className:It.TableListStyle.Card},e)}function Bo({tag:e,label:t,help:n,isRequired:o,children:i}){const r=o?It.RequiredLabel:It.Label,{hasError:s,setShowError:a}=vo({isSupported:t=>`field_${e}`===t?.property}),l=(0,Je.useInstanceId)(Bo,e);return(0,v.createElement)(Fo,{className:It.TableListStyle.Td,direction:"column",gap:3},s&&(0,v.createElement)(It.IconText,null,(0,k.__)("Please fill this required field","jet-form-builder")),(0,v.createElement)(It.RowControl,{createId:!1,controlSize:1,className:qe(s&&It.ControlWithErrorStyle)},(0,v.createElement)("div",{className:It.TableListStyle.TdItem},(0,v.createElement)(r,{htmlFor:l,className:It.TableListStyle.WhiteSpaceNormal},t),Boolean(n)&&(0,v.createElement)(It.Help,{className:It.TableListStyle.WhiteSpaceNormal},n)),(0,v.createElement)("div",{className:It.TableListStyle.TdItem},"function"==typeof i?i({setShowError:a,htmlId:l}):(0,y.isValidElement)(i)?(0,y.cloneElement)(i,{setShowError:a}):i)))}function xo({tag:e,label:t,help:n="",isRequired:o,children:i}){return(0,v.createElement)(yo,{isSupported:t=>`field_${e}`===t?.property},(({hasError:r,setShowError:s})=>(0,v.createElement)(Bo,{tag:e,label:t,help:n,isRequired:o},i)))}function jo({columns:e}){return(0,v.createElement)(E.Flex,{className:It.TableListStyle.Th},e.map(((e,t)=>(0,v.createElement)(E.FlexItem,{key:`col_${t}`,className:It.TableListStyle.ThItem},e))))}var ko;n(841);const{useSelect:Jo}=wp.data,{useContext:_o}=wp.element,Lo=({actions:e,fields:t})=>{for(const n of e){const{[n.type]:e={}}=n.settings;if(e.requestFields)for(const o of e.requestFields)-1===t.findIndex((e=>e.value===o.name))&&t.push({from:n.type,id:n.id,label:o.name,value:o.name,name:o.name,help:o.help})}},To=({computed:e,action:t,fields:n,nameSet:o})=>{if(!e.isSupported(t,n))return;e.setAction(t),e.hasInList=!1;let i=e.getName();if(o.has(i)&&(e.hasInList=!0,i=e.getName()),n.some((({value:e})=>e===i)))return;o.add(i);const r=e.getLabel();n.push({from:t.type,id:t.id,label:r||i,value:i,name:i,help:e.getHelp()})};function Io({fields:e,actions:t,computed:n,nameSet:o}){t=t.map((e=>new sn(e)));for(const{field:i,settings:r}of n){if(r?.isScoped)continue;const n=new i;for(const i of t)To({computed:n,action:i,nameSet:o,fields:e});if(n.action||!n.isSupportedGlobal())continue;const s=n.getLabel(),a=n.getName();e.push({label:s||a,value:a,name:a,help:n.getHelp()})}}function Mo({returnOnEmptyCurrentAction:e=!0}={}){const t=Jo((e=>e("core/editor").getEditedPostAttribute("meta")||{}),[]),n=_o(b),{currentAction:o,computedList:i}=Jo((e=>({currentAction:e(ge).getCurrentAction(),computedList:e(ge).getComputedFields()})),[]);if(!n?.actionId&&e)return[];const r=JSON.parse(t._jf_actions||"[]");Number.isNaN(Number(o?.index))||r.splice(o.index);const s=new Set,a=[];for(const{field:e,settings:t}of i){if(!t?.isScoped)continue;const n=new e;To({computed:n,action:o,nameSet:s,fields:a})}return Lo({actions:r,fields:a}),Io({fields:a,actions:r,computed:i,nameSet:s}),a}window.JetFBHooks=null!==(ko=window.JetFBHooks)&&void 0!==ko?ko:{},window.JetFBHooks.useRequestFields=Mo;const Ro=Mo;var Po;const Ho=()=>{const{currentAction:e}=jn(),{updateActionObj:t,addActionProps:n}=pt();return 0>e.id?e=>n(e):n=>{t(e.id,n)}};window.JetFBHooks=null!==(Po=window.JetFBHooks)&&void 0!==Po?Po:{},window.JetFBHooks.useUpdateCurrentActionMeta=Ho;const No=Ho;var Oo;function zo(e){const t=e("core/editor").getEditedPostAttribute("meta")||{},n=JSON.parse(t._jf_actions||"[]"),o=e(ge).getCurrentAction(),i=e(ge).getComputedFields();n.splice(o.index);const r=[],s=new Set;return Lo({actions:n,fields:r}),Io({fields:r,actions:n,computed:i,nameSet:s}),{requestFields:r}}window.JetFBHooks=null!==(Oo=window.JetFBHooks)&&void 0!==Oo?Oo:{},window.JetFBHooks.withRequestFields=zo;const qo=zo;function Vo(){this.action=null,this.hasInList=!1}Vo.prototype.isSupported=function(e,t){return this.getSupportedActions().includes(e.type)},Vo.prototype.isSupportedGlobal=function(){return!1},Vo.prototype.getSupportedActions=function(){return[]},Vo.prototype.setAction=function(e){this.action=e},Vo.prototype.getName=function(){return""},Vo.prototype.getLabel=function(){return""},Vo.prototype.getHelp=function(){return""},window.JetFBComponents=window.JetFBComponents||{},window.JetFBComponents.BaseComputedField=Vo;const Do=Vo;function Uo(e=null){this.list=e}Uo.prototype={setList(e){this.list=e},resetID(){for(const e of this.list)e.resetID()},hasType(e){return this.list.some((t=>t.type===e))},add(e){"string"==typeof e&&(e={type:e}),this.list.push(new sn(e))}},window.JetFBComponents=window.JetFBComponents||{},window.JetFBComponents.ActionsFlow=Uo;const Go=Uo,Wo=function(e){(0,s.dispatch)(ge).registerAction(e)};var Zo;function Yo(e,t){(0,s.dispatch)(ge).addCallback(e,t)}window.JetFBActions=null!==(Zo=window.JetFBActions)&&void 0!==Zo?Zo:{},window.JetFBActions.addAction=Yo;const $o=Yo;var Xo;function Ko(e,t={}){(0,s.dispatch)(ge).addComputedField(e,t)}window.JetFBActions=null!==(Xo=window.JetFBActions)&&void 0!==Xo?Xo:{},window.JetFBActions.addComputedField=Ko;const Qo=Ko;var ei;function ti(e=[]){const t=[];for(const n of e){const e=new sn(n);e.refactorSettings(),t.push(e)}return new Go(t)}window.JetFBActions=null!==(ei=window.JetFBActions)&&void 0!==ei?ei:{},window.JetFBActions.convertFlow=ti;const ni=ti;var oi;function ii(...e){const t=[];for(const n of e)Array.isArray(n)&&t.push(...n.map((e=>[e.value,e])));return t}window.JetFBActions=null!==(oi=window.JetFBActions)&&void 0!==oi?oi:{},window.JetFBActions.convertListToFieldsMap=ii;const ri=ii;var si;function ai({slug:e,element:t="",empty:n=""}){const o=JetFormEditorData.global_settings;return o?t?o[e]&&o[e][t]?o[e][t]:n:o[e]||n:n}window.JetFBActions=null!==(si=window.JetFBActions)&&void 0!==si?si:{},window.JetFBActions.globalTab=ai;const li=ai;(0,s.register)(he),(window.jfb=window.jfb||{}).actions=o})();
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings