!function(){var e,t,r={5956:function(e){"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),o=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),o=e.slice(t);return Array.prototype.concat.call([],n(r),n(o))}function s(e){try{return decodeURIComponent(e)}catch(s){for(var t=e.match(r)||[],o=1;oNumber(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function m(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function y(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,o)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===o[e]&&(o[e]={}),o[e][t[1]]=r):o[e]=r};case"bracket":return(e,r,o)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==o[e]?o[e]=[].concat(o[e],r):o[e]=[r]:o[e]=r};case"comma":case"separator":return(t,r,o)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),s="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=s?u(r,e):r;const i=n||s?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);o[t]=i};case"bracket-separator":return(t,r,o)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(o[t]=r?u(r,e):r);const s=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==o[t]?o[t]=[].concat(o[t],s):o[t]=s};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;for(const n of e.split("&")){if(""===n)continue;let[e,i]=s(t.decode?n.replace(/\+/g," "):n,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:u(i,t),r(u(e,t),i,o)}for(const e of Object.keys(o)){const r=o[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=f(r[e],t);else o[e]=f(r,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(((e,t)=>{const r=o[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=l(r):e[t]=r,e}),Object.create(null))}t.extract=m,t.parse=y,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],o=function(e){switch(e.arrayFormat){case"index":return t=>(r,o)=>{const n=r.length;return void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[p(t,e),"[",n,"]"].join("")]:[...r,[p(t,e),"[",p(n,e),"]=",p(o,e)].join("")]};case"bracket":return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[p(t,e),"[]"].join("")]:[...r,[p(t,e),"[]=",p(o,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(o,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?o:(n=null===n?"":n,0===o.length?[[p(r,e),t,p(n,e)].join("")]:[[o,p(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,p(t,e)]:[...r,[p(t,e),"=",p(o,e)].join("")]}}(t),n={};for(const t of Object.keys(e))r(t)||(n[t]=e[t]);const s=Object.keys(n);return!1!==t.sort&&s.sort(t.sort),s.map((r=>{const n=e[r];return void 0===n?"":null===n?p(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":n.reduce(o(r),[]).join("&"):p(r,t)+"="+p(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,o]=s(e,"#");return Object.assign({url:r.split("?")[0]||"",query:y(m(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:u(o,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const o=d(e.url).split("?")[0]||"",n=t.extract(e.url),s=t.parse(n,{sort:!1}),i=Object.assign(s,e.query);let c=t.stringify(i,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[a]?p(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${o}${c}${u}`},t.pick=(e,r,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[a]:!1},o);const{url:n,query:s,fragmentIdentifier:c}=t.parseUrl(e,o);return t.stringifyUrl({url:n,query:i(s,r),fragmentIdentifier:c},o)},t.exclude=(e,r,o)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,o)}},9646:function(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},3182:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},3026:function(e,t,r){var o=r(353);e.exports=function(e){return null==e?"\\s":e.source?e.source:"["+o(e)+"]"}},353:function(e,t,r){var o=r(2728);e.exports=function(e){return o(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}},4661:function(e){e.exports={nbsp:" ",cent:"¢",pound:"£",yen:"¥",euro:"€",copy:"©",reg:"®",lt:"<",gt:">",quot:'"',amp:"&",apos:"'"}},2728:function(e){e.exports=function(e){return null==e?"":""+e}},9649:function(e,t,r){var o=r(2728);e.exports=function(e){return o(e).replace(/<\/?[^>]+>/g,"")}},3768:function(e,t,r){var o=r(2728),n=r(3026),s=String.prototype.trim;e.exports=function(e,t){return e=o(e),!t&&s?s.call(e):(t=n(t),e.replace(new RegExp("^"+t+"+|"+t+"+$","g"),""))}},1517:function(e,t,r){var o=r(2728),n=r(4661);e.exports=function(e){return o(e).replace(/\&([^;]{1,10});/g,(function(e,t){var r;return t in n?n[t]:(r=t.match(/^#x([\da-fA-F]+)$/))?String.fromCharCode(parseInt(r[1],16)):(r=t.match(/^#(\d+)$/))?String.fromCharCode(~~r[1]):e}))}},9492:function(e,t,r){"use strict";var o=r(6111),n=r(7616),s=r(5798);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var t=1;t0),"gform-icon--preset-active",v.length>0),"gform-icon-preset--".concat(v),v.length>0),(0,s.spacerClasses)(P)),d),ref:t},u);return n.React.createElement("span",T,i)}));u.propTypes={children:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.node),n.PropTypes.node]),customAttributes:n.PropTypes.object,customClasses:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.array,n.PropTypes.object]),icon:n.PropTypes.string,iconPrefix:n.PropTypes.string,spacing:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number,n.PropTypes.array,n.PropTypes.object])},u.displayName="Icon",t.A=u},1911:function(e,t,r){"use strict";var o=r(6111),n=r(7616),s=r(5798),i=r(1440);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function c(e){for(var t=1;t0&&(a+=r*t),o>0&&(a+=o*t),n>0&&(a+=n*e),s>0&&(a+=s*e),n>0&&r>0&&(a-=n*r),n>0&&o>0&&(a-=n*o),s>0&&r>0&&(a-=s*r),s>0&&o>0&&(a-=s*o),(i-a)/i},De=function(e,t,r,o,n){var s,i,a,c,p,u,l=o.innerWidth,d=o.innerHeight,m=n-r.top,f=r.bottom-(d-n),y=n-r.left,g=r.right-(l-n);switch(e){case"top":switch(t){case"top":return!0;case"bottom":a=n-(s=r.bottom+44),c=s+r.height-(d-n),p=y,u=g;break;case"left":a=n-(s=r.bottom+v+8-r.height/2),c=s+r.height-(d-n),p=n-(i=r.left+r.width/2-8-v-r.width),u=i+r.width-(l-n);break;case"right":a=n-(s=r.bottom+v+8-r.height/2),c=s+r.height-(d-n),p=n-(i=r.left+r.width/2+8+v),u=i+r.width-(l-n);break;default:return!1}break;case"bottom":switch(t){case"top":a=n-(s=r.top-44-r.height),c=s+r.height-(d-n),p=y,u=g;break;case"bottom":return!0;case"left":a=n-(s=r.top-v-8-r.height/2),c=s+r.height-(d-n),p=n-(i=r.left+r.width/2-8-v-r.width),u=i+r.width-(l-n);break;case"right":a=n-(s=r.top-v-8-r.height/2),c=s+r.height-(d-n),p=n-(i=r.left+r.width/2+8+v),u=i+r.width-(l-n);break;default:return!1}break;case"left":switch(t){case"top":a=n-(s=r.top+r.height/2-8-v-r.height),c=s+r.height-(d-n),p=n-(i=r.right+v+8-r.width/2),u=i+r.width-(l-n);break;case"bottom":a=n-(s=r.top+r.height/2+8+v),c=s+r.height-(d-n),p=n-(i=r.right+v+8-r.width/2),u=i+r.width-(l-n);break;case"left":return!0;case"right":a=m,c=f,p=n-(i=r.right+44),u=i+r.width-(l-n);break;default:return!1}break;case"right":switch(t){case"top":a=n-(s=r.top+r.height/2-8-v-r.height),c=s+r.height-(d-n),p=n-(i=r.left-v-8-r.width/2),u=i+r.width-(l-n);break;case"bottom":a=n-(s=r.top+r.height/2+8+v),c=s+r.height-(d-n),p=n-(i=r.left-v-8-r.width/2),u=i+r.width-(l-n);break;case"left":a=m,c=f,p=n-(i=r.left-44-r.width),u=i+r.width-(l-n);break;case"right":return!0;default:return!1}break;default:return!1}return we(r.width,r.height,p,u,a,c)},Ae=function(e,t,r){if(!r.current)return t;var o=r.current.getBoundingClientRect(),n=r.current.ownerDocument.defaultView,s=n.innerWidth,i=n.innerHeight,a=e-o.top,c=o.bottom-(i-e),p=e-o.left,u=o.right-(s-e),l=we(o.width,o.height,p,u,a,c),d={};switch(t){case"top":d.top=l,d.bottom=De("top","bottom",o,n,e),d.left=De("top","left",o,n,e),d.right=De("top","right",o,n,e);break;case"bottom":d.top=De("bottom","top",o,n,e),d.bottom=l,d.left=De("bottom","left",o,n,e),d.right=De("bottom","right",o,n,e);break;case"left":d.top=De("left","top",o,n,e),d.bottom=De("left","bottom",o,n,e),d.left=l,d.right=De("left","right",o,n,e);break;case"right":d.top=De("right","top",o,n,e),d.bottom=De("right","bottom",o,n,e),d.left=De("right","left",o,n,e),d.right=l;break;default:return t}return Object.keys(d).reduce((function(e,t){return d[t]>d[e]?t:e}),t)},je=function(e){var t=e.con,r=void 0===t?"":t,o=e.cAttributes,n=void 0===o?{size:"text-xs"}:o;if(!r)return null;var i=n.customClasses,c=(0,s.A)(n,l),p=m({customClasses:(0,a.classnames)(["gform-tooltip__tooltip-content"],i),color:"white",size:"text-xs"},c);return a.React.createElement(u.A,p,r)},Ce=m({className:(0,a.classnames)(m((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)({"gform-tooltip":!0},"gform-tooltip--position-".concat(ve),!0),"gform-tooltip--theme-".concat(V),!0),"gform-tooltip--type-".concat(Y),!0),"gform-tooltip--initialized",!!re),"gform-tooltip--anim-in-ready",ue),"gform-tooltip--anim-in-active",ue&&fe),(0,c.spacerClasses)(q)),C)},A),Ee={className:"gform-tooltip__trigger","aria-describedby":Q,onBlur:Te,onFocus:Pe,onMouseEnter:Pe,onMouseLeave:Te},Re=m({className:"gform-tooltip__tooltip",role:"tooltip",id:Q,onTransitionEnd:function(){fe||le(!1)}},Z),_e={icon:R,iconPrefix:k,preset:F},ke={};re&&(ke.width=re+"px"),z&&(ke.maxWidth=z+"px"),Re.style=ke;var xe=K;return a.React.createElement(xe,(0,o.A)({},Ce,{ref:t}),a.React.createElement("button",Ee,a.React.createElement(p.A,_e)),a.React.createElement("div",(0,o.A)({ref:X},Re),a.React.createElement(je,{con:T,cAttributes:w}),h,a.React.createElement("span",{className:"gform-tooltip__tooltip-arrow"})))}));h.propTypes={buffer:a.PropTypes.number,children:a.PropTypes.oneOfType([a.PropTypes.arrayOf(a.PropTypes.node),a.PropTypes.node]),content:a.PropTypes.string,contentAttributes:a.PropTypes.object,customAttributes:a.PropTypes.object,customClasses:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.array,a.PropTypes.object]),icon:a.PropTypes.string,iconPrefix:a.PropTypes.string,iconPreset:a.PropTypes.string,intentDelay:a.PropTypes.number,id:a.PropTypes.string,maxWidth:a.PropTypes.number,position:a.PropTypes.string,spacing:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.number,a.PropTypes.array,a.PropTypes.object]),theme:a.PropTypes.string,tooltipCustomAttributes:a.PropTypes.object,type:a.PropTypes.string},h.displayName="Tooltip",t.A=h},1609:function(e){"use strict";e.exports=window.React},5795:function(e){"use strict";e.exports=window.ReactDOM},7616:function(e){"use strict";e.exports=window.gform.libraries},8335:function(e){"use strict";e.exports=window.gform.utils.react},5798:function(e){"use strict";e.exports=window.gform.utils},8085:function(e,t,r){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),function(){var e={709:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var s=new Promise((function(r,n){o=e[t]=[r,n]}));r.push(o[2]=s);var i=n.p+n.u(t),a=new Error;n.l(i,(function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var s=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,o[1](a)}}),"chunk-"+t,t)}};var t=function(t,r){var o,s,i=r[0],a=r[1],c=r[2],p=0;if(i.some((function(t){return 0!==e[t]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)c(n)}for(t&&t(r);p\n\t\t\t\n\t\t\t
\n\t\t\t\t

').concat(r,"

\n\t\t\t\t").concat(h?'\n\t\t\t\t\t\n\t\t\t\t\t\t').concat(n,"\n\t\t\t\t\t\n\t\t\t\t"):"","\n\t\t\t
\n\t\t\t").concat(w?'\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t'):"","\n\t\t\n\t")},f=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{container:document,content:"",cookieName:"",ctaLabel:"",ctaLink:"",customAttributes:{},customClasses:[],dismissableAriaLabel:"",dismissableTitle:"",hasCta:!1,id:(0,u.uniqueId)("alert"),isDismissable:!1,isInline:!1,rendered:!1,renderOnInit:!0,spacing:"",target:"",targetPosition:"afterbegin",theme:"cosmos",type:"default"},o),(0,u.trigger)({event:"gform/alert/pre_init",native:!1,data:{instance:this}}),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,m(this.options));this.elements.alert=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"dismissAlert",value:function(e){if((0,u.getClosest)(e.target,"#".concat(this.options.id)).style.display="none",this.options.cookieName){var t=(0,u.uniqueId)("gform-alert");u.cookieStorage.set(this.options.cookieName,t,1,!0)}}},{key:"bindEvents",value:function(){(0,u.delegate)("#".concat(this.options.id),'[data-js="gform-alert-dismiss-trigger"]',"click",this.dismissAlert.bind(this))}},{key:"init",value:function(){this.bindEvents(),this.render(),(0,u.trigger)({event:"gform/alert/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized alert component.")}}])}(),y=n(2492),g=n(7616),b=n(4878),v=n(8335);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function P(e){for(var t=1;t"):"","\n\t\t\t\t").concat(g?'
'):"","\n\t\t\t\t\t\n\t\t\t\t\t").concat(g&&j&&p?'').concat(j,""):"","\n\t\t\t\t\t").concat(g&&j&&!p?''.concat(j,""):"","\n\t\t\t\t").concat(g?"
":"","\n\t\t\t").concat(g?""):"",'\n\t\t\t\n\t\t")},se=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{background:"#ecedf8",customAttributes:{},customClasses:[],displayNoneOnHide:!0,displayText:!0,foreground:"#242748",id:(0,u.uniqueId)("loader"),mask:!0,maskTheme:"light",position:"center",rendered:!1,renderOnInit:!0,showOnRender:!0,size:5,target:"",targetPosition:"afterbegin",text:"",textColor:"#000",theme:"cosmos",type:"simple",wrapperCustomAttributes:{},wrapperCustomClasses:[],wrapperTagName:"div"},o),(0,u.trigger)({event:"gform/loader/pre_init",native:!1,data:{instance:this}}),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"positionLoader",value:function(){var e=this.options,t=e.position,r=e.target,o=(0,u.getNode)(r,document,!0),n=this.elements.maskPositioner,s=u.viewport.elVisibleHeight(o),i=u.viewport.height(),a=o.getBoundingClientRect().top,c=0;("auto"===t&&o.offsetHeight>i&&a<0||"sticky"===t&&s0)&&(c=Math.abs(o.getBoundingClientRect().top)),n.style.top="".concat(c+(s/2-n.offsetHeight/2),"px")}},{key:"removeLoader",value:function(){var e=this.elements,t=e.loaderEl,r=e.style;t.parentNode.removeChild(t),r.parentNode.removeChild(r)}},{key:"showLoader",value:function(){var e=this.options,t=e.mask,r=e.position,o=this.elements.loaderEl;o.style.display="",o.style.opacity="",!t||"auto"!==r&&"sticky"!==r||this.positionLoader(),(0,u.trigger)({event:"gform/loader/post_show",native:!1,data:{instance:this}})}},{key:"hideLoader",value:function(){var e=this.options.displayNoneOnHide,t=this.elements.loaderEl;e?t.style.display="none":t.style.opacity="0",(0,u.trigger)({event:"gform/loader/post_hide",native:!1,data:{instance:this}})}},{key:"setInitialUI",value:function(){var e=this.options,t=e.mask,r=e.position,o=e.showOnRender;o||this.hideLoader(),o&&t&&("auto"===r||"sticky"===r)&&this.positionLoader()}},{key:"storeElements",value:function(){var e=this.options.id;this.elements={loader:(0,u.getNode)("#".concat(e),document,!0),mask:(0,u.getNode)("#".concat(e,"-mask"),document,!0),maskPositioner:(0,u.getNode)("#".concat(e,"-mask-positioner"),document,!0),style:(0,u.getNode)("#".concat(e,"-style"),document,!0)},this.elements.loaderEl=this.elements.mask?this.elements.mask:this.elements.loader}},{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;if(!t){var n=(0,u.getNode)(r,document,!0);this.options.mask&&(n.style.position="relative"),n.insertAdjacentHTML(o,ne(this.options))}this.elements.loader=(0,u.getNode)("#".concat(this.options.id),document,!0),this.elements.wrapper=this.elements.loader.parentNode}},{key:"init",value:function(){this.render(),this.storeElements(),this.setInitialUI(),(0,u.trigger)({event:"gform/loader/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized loader component.")}}])}(),ie=function(e){var t=e.activeText,r=void 0===t?"":t,o=e.activeType,n=void 0===o?"":o,s=e.attributes,i=void 0===s?"":s,a=e.customClasses,p=void 0===a?[]:a,l=e.html,d=void 0===l?"":l,m=e.icon,f=void 0===m?"":m,y=e.iconPosition,g=void 0===y?"leading":y,b=e.id,v=void 0===b?(0,u.uniqueId)("button"):b,h=e.interactive,P=void 0!==h&&h,T=e.label,O=void 0===T?"":T,w=e.round,D=void 0!==w&&w,A=e.size,j=void 0===A?"size-r":A,C=e.spacing,E=void 0===C?"":C,R=e.type,_=void 0===R?"primary":R,k=(0,u.objectToAttributes)({id:v,class:["gform-button","gform-button--".concat(j),"gform-button--".concat(_),D?"gform-button--round":"",P?"gform-button--interactive":"",n?"gform-button--active-type-".concat(n):"",f&&"leading"===g?"gform-button--icon-leading":"",f&&"trailing"===g?"gform-button--icon-trailing":""].concat(c(Object.keys((0,u.spacerClasses)(E))),c(p))}),x=f?''):"";return"\n\t\t\n\t")},ae=function(){return s((function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e),this.options=(0,u.deepMerge)({activeText:"",activeType:"",attributes:"",customClasses:[],disableWhileActive:!0,html:"",icon:"",iconPosition:"leading",id:(0,u.uniqueId)("button"),interactive:!1,interactiveOnClick:!0,label:"",loaderOptions:{additionalClasses:"gform-button__loader",background:"transparent",foreground:"#3e7da6",mask:!1,showOnRender:!1,size:1},lockSize:!0,onActive:function(){},onInactive:function(){},rendered:!1,renderOnInit:!0,round:!1,size:"size-r",target:"",type:"primary"},r),this.options.target||this.options.rendered?((0,u.trigger)({event:"gform/button/pre_init",native:!1,data:{instance:this}}),this.elements={},this.instances={},this.state={active:!1},this.options.renderOnInit&&this.init()):(0,u.consoleError)("You must supply a target to the button component.")}),[{key:"activateButton",value:function(){var e=this.options,t=e.activeType,r=e.disableWhileActive,o=e.lockSize,n=e.onActive,s=this.elements.button;if((0,u.trigger)({event:"gform/button/activated",native:!1,data:{instance:this}}),o){var i=s.getBoundingClientRect();s.style.width="".concat(i.width,"px")}r&&(s.disabled=!0),this.elements.button.classList.add("gform-button--activated"),"loader"===t&&this.instances.loader.showLoader(),this.state.active=!0,n(this)}},{key:"deactivateButton",value:function(){var e=this.options,t=e.activeType,r=e.disableWhileActive,o=e.lockSize,n=e.onInactive,s=this.elements.button;(0,u.trigger)({event:"gform/button/deactivated",native:!1,data:{instance:this}}),this.elements.button.classList.remove("gform-button--activated"),"loader"===t&&this.instances.loader.hideLoader(),r&&(s.disabled=!1),o&&(s.style.width=""),this.state.active=!1,n(this)}},{key:"handleButtonClick",value:function(){this.state.active||this.activateButton()}},{key:"storeElements",value:function(){var e=this.elements.button,t=this.options,r=t.activeText,o=t.icon,n=t.label;r&&(this.elements.activeText=(0,u.getNode)("button-active-text",e)),o&&(this.elements.icon=(0,u.getNode)("button-icon",e)),n&&(this.elements.inactiveText=(0,u.getNode)("button-inactive-text",e))}},{key:"renderInteractive",value:function(){var e=this.options,t=e.activeType,r=e.interactive,o=e.loaderOptions,n=this.elements.button;r&&"loader"===t&&(o.target="#".concat(n.id),this.instances.loader=new se(o))}},{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML("beforeend",ie(this.options));this.elements.button=(0,u.getNode)("#".concat(this.options.id),document,!0),this.renderInteractive(),(0,u.consoleInfo)("Gravity Forms Admin: Initialized button component on ".concat(r,"."))}},{key:"bindEvents",value:function(){var e=this.options,t=e.interactive,r=e.interactiveOnClick;t&&r&&this.elements.button.addEventListener("click",this.handleButtonClick.bind(this))}},{key:"init",value:function(){this.render(),this.storeElements(),this.bindEvents(),(0,u.trigger)({event:"gform/button/post_render",native:!1,data:{instance:this}})}}])}(),ce=n(3057),pe=g.React.forwardRef,ue=pe((function(e,t){var r=e.height,o=void 0===r?20:r,n=e.title,s=void 0===n?"":n,i=e.width,a=void 0===i?20:i;return g.React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:o,fill:"none",viewBox:"0 0 20 20",ref:t},""!==s&&g.React.createElement("title",null,s),g.React.createElement("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 0 1 0 1.414L9.414 10l3.293 3.293a1 1 0 0 1-1.414 1.414l-4-4a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"}))}));ue.propTypes={height:g.PropTypes.number,title:g.PropTypes.string,width:g.PropTypes.number};var le=pe((function(e,t){var r=e.height,o=void 0===r?20:r,n=e.title,s=void 0===n?"":n,i=e.width,a=void 0===i?20:i;return g.React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:o,fill:"none",viewBox:"0 0 20 20",ref:t},""!==s&&g.React.createElement("title",null,s),g.React.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 0 1 0-1.414L10.586 10 7.293 6.707a1 1 0 0 1 1.414-1.414l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"}))}));le.propTypes={height:g.PropTypes.number,title:g.PropTypes.string,width:g.PropTypes.number};var de=pe((function(e,t){var r=e.height,o=void 0===r?20:r,n=e.title,s=void 0===n?"":n,i=e.width,a=void 0===i?20:i;return g.React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:o,fill:"none",viewBox:"0 0 20 20",ref:t},""!==s&&g.React.createElement("title",null,s),g.React.createElement("path",{fillRule:"evenodd",d:"M9.707 14.707a1 1 0 0 0 0-1.414L6.414 10l3.293-3.293a1 1 0 0 0-1.414-1.414l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414 0Z",clipRule:"evenodd"}),g.React.createElement("path",{fillRule:"evenodd",d:"M15.707 14.707a1 1 0 0 0 0-1.414L12.414 10l3.293-3.293a1 1 0 0 0-1.414-1.414l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414 0Z",clipRule:"evenodd"}))}));de.propTypes={height:g.PropTypes.number,title:g.PropTypes.string,width:g.PropTypes.number};var me=pe((function(e,t){var r=e.height,o=void 0===r?20:r,n=e.title,s=void 0===n?"":n,i=e.width,a=void 0===i?20:i;return g.React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:o,fill:"none",viewBox:"0 0 20 20",ref:t},""!==s&&g.React.createElement("title",null,s),g.React.createElement("path",{fillRule:"evenodd",d:"M10.293 14.707a1 1 0 0 1 0-1.414L13.586 10l-3.293-3.293a1 1 0 1 1 1.414-1.414l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"}),g.React.createElement("path",{fillRule:"evenodd",d:"M4.293 14.707a1 1 0 0 1 0-1.414L7.586 10 4.293 6.707a1 1 0 0 1 1.414-1.414l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"}))}));me.propTypes={height:g.PropTypes.number,title:g.PropTypes.string,width:g.PropTypes.number};var fe=["onKeyDown"],ye=["ariaId","ariaText","customAttributes","id","onClick","onKeyDown","title"];function ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function be(e){for(var t=1;t=0&&(r=-(e.right+20-t)),W.current.style.marginInlineStart="".concat(r,"px")}};Pe((function(){if(C&&Z)return ne(),window.addEventListener("resize",ne),function(){window.removeEventListener("resize",ne)}}),[C,Z]);var se=function(e){_&&k(null),H(e.view)},ie=(0,u.deepMerge)(Oe,be(be({className:(0,g.classnames)(["gform-calendar__calendar"],n)},Y),{},{activeStartDate:_,onActiveStartDateChange:function(e){["drillDown","drillUp"].includes(e.action)||(se(e),Y.onActiveStartDateChange(e))},onChange:function(e,t){N(e),Y.onChange(e,t),s&&K()},onViewChange:function(e){se(e),Y.onViewChange(e)},value:B,view:z})),ae=be({label:"Today",customClasses:(0,g.classnames)("gform-calendar__today-button",D),onClick:function(){var e,t=new Date,r=ie.selectRange?[(e=new Date,e.setHours(0,0,0,0),e),we()]:t;k(t),H(Q),f(),ie.onChange(r),z!==Q&&ie.onViewChange({action:"drillDown",activeStartDate:De(Q,t),value:t,view:Q}),s&&K()},size:"size-height-s",type:"white"},w),pe=be({label:"Reset",customClasses:(0,g.classnames)("gform-calendar__reset-button",h),onClick:function(){var e=ie.selectRange?[]:null;m(),ie.onChange(e),s&&K()},size:"size-height-s",type:"white"},b),ue=A.ariaId,le=void 0===ue?"".concat(M,"-trigger-aria"):ue,de=A.ariaText,me=void 0===de?"":de,ge=A.customAttributes,ve=void 0===ge?{}:ge,Ae=A.id,je=void 0===Ae?"".concat(M,"-trigger"):Ae,Ce=A.onClick,Ee=void 0===Ce?function(){}:Ce,Re=A.onKeyDown,_e=void 0===Re?function(){}:Re,ke=A.title,xe=void 0===ke?"":ke,Fe=(0,ce.A)(A,ye),Be=be({className:(0,g.classnames)("gform-calendar__trigger",j),customAttributes:be({"aria-expanded":Z?"true":"false","aria-haspopup":"dialog","aria-labelledby":xe?void 0:"".concat(le," ").concat(je),id:je,onKeyDown:function(e){V(e),_e(e)},title:xe||void 0},ve),onClick:function(e){Ee(e),Z?K():U()},size:"size-height-m",type:"white"},Fe),Se={className:(0,g.classnames)(be({"gform-calendar__wrapper":!0,"gform-calendar__wrapper--open":Z,"gform-calendar__wrapper--hide":$,"gform-calendar__wrapper--reveal":J},C?(0,u.spacerClasses)(O):{})),ref:X},Ne=C?"div":Te,Ie=T||P;return g.React.createElement(Ne,"div"===Ne?Se:{},C&&g.React.createElement(g.React.Fragment,null,g.React.createElement("span",{className:"gform-visually-hidden",id:le},me),g.React.createElement(S,(0,e.A)({},Be,{ref:q}))),g.React.createElement("div",(0,e.A)({},oe,{ref:function(e){W.current=e,"function"==typeof r?r(e):r&&(r.current=e)}}),g.React.createElement(g.ReactCalendar.Calendar,ie),Ie&&g.React.createElement("div",{className:"gform-calendar__footer"},T&&g.React.createElement(S,ae),P&&g.React.createElement(S,pe))))})),je=ve((function(t,r){var o=be(be({},{calendarAttributes:{},calendarClasses:[],closeOnChange:!0,customAttributes:{},customClasses:[],id:"",onAfterClose:function(){},onAfterOpen:function(){},onClose:function(){},onOpen:function(){},onResetClick:function(){},onTodayClick:function(){},resetAttributes:{},resetClasses:[],showResetButton:!1,showTodayButton:!0,spacing:"",todayAttributes:{},todayClasses:[],triggerAttributes:{},triggerClasses:[],withTrigger:!1}),t),n={id:o.id};return g.React.createElement(v.IdProvider,n,g.React.createElement(Ae,(0,e.A)({},o,{ref:r})))}));je.propTypes={calendarAttributes:g.PropTypes.object,calendarClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),closeOnChange:g.PropTypes.bool,customAttributes:g.PropTypes.object,customClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),id:g.PropTypes.string,onAfterClose:g.PropTypes.func,onAfterOpen:g.PropTypes.func,onClose:g.PropTypes.func,onOpen:g.PropTypes.func,onResetClick:g.PropTypes.func,onTodayClick:g.PropTypes.func,resetAttributes:g.PropTypes.object,resetClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),showResetButton:g.PropTypes.bool,showTodayButton:g.PropTypes.bool,spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),todayAttributes:g.PropTypes.object,todayClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),triggerAttributes:g.PropTypes.object,triggerClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),withTrigger:g.PropTypes.bool};var Ce=je,Ee=g.React.Suspense,Re=g.React.lazy,_e=function(e){var t=e.height,r=void 0===t?400:t,o=e.type,s=function(e){if("area"===e)return Re((function(){return Promise.all([n.e(968),n.e(91)]).then(n.bind(n,91))}));throw new Error("Unknown chart type: ".concat(e))}(void 0===o?"area":o);return g.React.createElement(Ee,{fallback:g.React.createElement(V.A,{display:"flex",customAttributes:{style:{alignItems:"center",justifyContent:"center"}},y:r},g.React.createElement(j,{foreground:"#9092b2"}))},g.React.createElement(s,e))},ke=n(2734),xe=n(1911),Fe=function(e){var t=e.replace("#","").match(/.{1,2}/g);return{R:parseInt(t[0],16),G:parseInt(t[1],16),B:parseInt(t[2],16)}},Be=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Fe(e);return t?.299*r.R+.587*r.G+.114*r.B>186?"#000000":"#FFFFFF":(r.R=(255-r.R).toString(16),r.G=(255-r.G).toString(16),r.B=(255-r.B).toString(16),function(e,t,r){var o={R:e,G:t,B:r};return 1===e.length&&(o.R="0"+o.R),1===t.length&&(o.G="0"+o.G),1===r.length&&(o.B="0"+o.B),"#".concat(o.R).concat(o.G).concat(o.B)}(r.R,r.G,r.B))};function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ne(e){for(var t=1;te.offsetHeight?"above":"below"};L(s()),W({left:((null==w||null===(e=w.current)||void 0===e?void 0:e.offsetLeft)||0)+((null==w||null===(t=w.current)||void 0===t?void 0:t.offsetWidth)/2||0),top:"above"===s()?((null==w||null===(r=w.current)||void 0===r?void 0:r.offsetTop)||0)-10:((null==w||null===(o=w.current)||void 0===o?void 0:o.offsetBottom)||0)+(null==w||null===(n=w.current)||void 0===n?void 0:n.offsetHeight)+10})}),[w]),Le((function(){var e=function(e){G.current&&(G.current.contains(e.target)||w.current.contains(e.target)||U())};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}}));var K=function(e){R(e),b(e)},U=function(){m()},V=Ne({className:(0,g.classnames)(Ne((0,p.A)({"gform-input--picker":!0},"gform-input--picker--pos-".concat(I),!0),(0,u.spacerClasses)(T)),s),style:{top:M.top,left:M.left},ref:G},o),$={className:(0,g.classnames)({"gform-input--picker-input":!0})},Z={color:E,onChange:K,className:(0,g.classnames)({"gform-input":!0}),id:"".concat(q,"-hex"),type:"text"},J={label:(null==a?void 0:a.hex)||"",htmlFor:"".concat(q,"-hex")},Y={type:"primary-new",label:(null==a?void 0:a.apply)||"",onClick:function(){return h(E)},size:"size-xs"};return g.React.createElement("div",V,g.React.createElement("div",{className:"gform-input__picker-ui"},g.React.createElement(g.HexColorPicker,{color:E,onChange:K}),g.React.createElement("div",{className:"gform-input__picker-inputs"},g.React.createElement("div",$,g.React.createElement(xe.A,J),g.React.createElement(g.HexColorInput,Z)),Object.keys(x).map((function(t){return function(t,r){var o={htmlFor:"".concat(q,"-").concat(r)},n={readOnly:!0,value:t,type:"text",id:"".concat(q,"-").concat(r),className:(0,g.classnames)({"gform-input":!0})},s={className:(0,g.classnames)({"gform-input--picker-input":!0,"gform-input--picker-input--rgb":!0}),key:r};return g.React.createElement("div",s,g.React.createElement(xe.A,(0,e.A)({},o,{label:r})),g.React.createElement("input",n))}(x[t],t)})))),g.React.createElement("div",{className:"gform-input__picker-controls"},g.React.createElement(S,Y)))};Me.propTypes={customAttributes:g.PropTypes.object,customClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),i18n:g.PropTypes.object,onCancel:g.PropTypes.func,onChange:g.PropTypes.func,onSave:g.PropTypes.func,spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),triggerRef:g.PropTypes.object,value:g.PropTypes.string};var We=Me;function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ge(e){for(var t=1;t0,je=it(it({},me),{},{className:(0,g.classnames)(it(it((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({"gform-input-wrapper":!0},"gform-input-wrapper--theme-".concat(ae),!0),"gform-input-wrapper--input",!0),"gform-input-wrapper--with-action",Ae),"gform-input-wrapper--clearable",c),"gform-input-wrapper--disabled",D),(0,u.spacerClasses)(oe)),{},(0,p.A)((0,p.A)((0,p.A)({"gform-input-wrapper--required":Y},"gform-input-wrapper--border-".concat(i),!0),"gform-input-wrapper--with-icon",De),"gform-input-wrapper--text-security-".concat(se),"password"!==pe&&"none"!==se)),ye),ref:r}),Ce=it(it({},P),{},{className:(0,g.classnames)((0,p.A)((0,p.A)({"gform-input":!0,"gform-typography--size-text-sm":"cosmos"===ae},"gform-input--".concat(te),!0),"gform-input--".concat(pe),!0),O),disabled:D||!0===(null==B?void 0:B.locked),id:Oe,name:I,onBlur:z,onKeyDown:K,onChange:function(e){var t=e.target.value;Te(t),M(t,e)},onFocus:V,type:pe,value:Pe});Z&&(Ce.placeholder=Z),j.content&&(Ce["aria-describedby"]=we),Y&&(Ce.required=!0);var Ee=it(it({},B),{},{htmlFor:Oe}),Re=it(it({},j),{},{id:we}),_e=it({customClasses:(0,g.classnames)(["gform-input-help-text--required"]),id:we},X),ke=it(it({},_),{},{customClasses:(0,g.classnames)(["gform-input__icon"],_.customClasses||[])}),Fe=it(it({icon:"circle-close",type:"unstyled"},d),{},{customClasses:(0,g.classnames)(["gform-input__clearable-button"],d.customClasses||[])}),Be=it(it({iconPosition:"leading",type:"white"},n),{},{customClasses:(0,g.classnames)(["gform-input__action-button"],n.customClasses||[]),onClick:function(e){n.onClick&&n.onClick(e,Pe)}}),Se=be;return g.React.createElement(Se,je,g.React.createElement(xe.A,Ee),Y&&g.React.createElement(nt.A,_e),"above"===E&&g.React.createElement(nt.A,Re),g.React.createElement(v.ConditionalWrapper,{condition:Ae,wrapper:function(e){return g.React.createElement("div",{className:"gform-input__action-wrapper"},e,g.React.createElement(S,Be))}},g.React.createElement(v.ConditionalWrapper,{condition:De,wrapper:function(e){return g.React.createElement("div",{className:"gform-input__wrapper"},e)}},g.React.createElement("input",Ce),De&&g.React.createElement(b.A,ke),c&&Pe&&g.React.createElement(S,(0,e.A)({},Fe,{onClick:function(){Te(""),q()}})))),"below"===E&&g.React.createElement(nt.A,Re))}));ct.propTypes={borderStyle:g.PropTypes.string,clearable:g.PropTypes.bool,clearableButtonAttributes:g.PropTypes.object,controlled:g.PropTypes.bool,customAttributes:g.PropTypes.object,customClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),disabled:g.PropTypes.bool,helpTextAttributes:g.PropTypes.object,helpTextPosition:g.PropTypes.string,iconAttributes:g.PropTypes.object,id:g.PropTypes.string,labelAttributes:g.PropTypes.object,name:g.PropTypes.string,onBlur:g.PropTypes.func,onChange:g.PropTypes.func,onClear:g.PropTypes.func,onKeyDown:g.PropTypes.func,onFocus:g.PropTypes.func,placeholder:g.PropTypes.string,required:g.PropTypes.bool,requiredLabel:g.PropTypes.object,size:g.PropTypes.string,spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),textSecurity:g.PropTypes.string,theme:g.PropTypes.string,type:g.PropTypes.string,value:g.PropTypes.string,wrapperAttributes:g.PropTypes.object,wrapperClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),wrapperTagName:g.PropTypes.string},ct.displayName="Input";var pt=ct;function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function lt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return(0,u.isObject)(e)&&!(0,u.isEmptyObject)(e)?Object.entries(e).map((function(t){var r=(0,y.A)(t,1)[0];return e[r]})):e}(e.choices);return r.length?g.React.createElement("optgroup",{label:e.label,key:"".concat((0,u.slugify)(e.label),"-").concat(t)},r.map((function(e,t){return ne(e,t)}))):ne(e,t)}));return g.React.createElement(oe,X,g.React.createElement(xe.A,te),"above"===f&&g.React.createElement(nt.A,re),g.React.createElement("div",{className:"gform-select__wrapper"},g.React.createElement("select",ee,se)),"below"===f&&g.React.createElement(nt.A,re))}));vt.propTypes={customAttributes:g.PropTypes.object,customClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),disabled:g.PropTypes.bool,helpTextAttributes:g.PropTypes.object,helpTextPosition:g.PropTypes.string,id:g.PropTypes.string,initialValue:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number]),labelAttributes:g.PropTypes.object,name:g.PropTypes.string,onBlur:g.PropTypes.func,onChange:g.PropTypes.func,onFocus:g.PropTypes.func,options:g.PropTypes.array,size:g.PropTypes.string,spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),theme:g.PropTypes.string,wrapperAttributes:g.PropTypes.object,wrapperClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),wrapperTagName:g.PropTypes.string},vt.displayName="Select";var ht=vt;function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Tt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r={flex:"1 0px"};if(!t||arguments.length>1&&void 0!==arguments[1]&&arguments[1])return r;var o=["flex","flexGrow","flexShrink","flexBasis"],n=Object.keys(t).filter((function(e){return o.includes(e)})).reduce((function(e,r){return e[r]=t[r],e}),{});return(0,e.A)(r,n)},Gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.reduce((function(e,t){return e[t]=!1,e}),{});return e.reduce((function(e,r){return t.includes(r.name)?Wt(Wt({},e),{},(0,p.A)({},r.name,r)):e}),r)};function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var Ut=(0,g.React.forwardRef)((function(t,r){var o=t.columns,n=void 0===o?[]:o,s=t.columnRowAttributes,i=void 0===s?{}:s,a=t.columnRowClasses,c=void 0===a?[]:a,u=t.columnStyleProps,l=void 0===u?{}:u,d=t.equalGrid,m=void 0!==d&&d,f=t.gridId,y=void 0===f?"":f,b=t.location,v=void 0===b?"header":b,h=t.modules,P=void 0===h?[]:h,T=t.showColumns,O=void 0===T||T,w=t.showColumnsInFooter;if(!O||"footer"===v&&!(void 0===w||w))return null;var D=Gt(P,["BulkActions"]).BulkActions,A=function(e){for(var t=1;t\n\t\t
\n\t\t\t\n\t\t\t').concat(N?'
':"","\n\t\t\t").concat(N?'
').concat(L?'"):"").concat(N,"
"):"","\n\t\t\t").concat(N?"
":"",'\n\t\t\t
').concat(O,"
\n\t\t\t").concat("dialog"===x||"alert"===x?'
':"","\n\t\t\t").concat("dialog"===x?'\n\t\t\t\t\n\t\t\t\t\t'.concat(n,'\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t").concat(v?''):"").concat(P,"\n\t\t\t\t\n\t\t\t"):"","\n\t\t\t").concat("alert"===x?'\n\t\t\t\t\n\t\t\t\t\t'.concat(r,"\n\t\t\t\t\n\t\t\t"):"","\n\t\t\t").concat("dialog"===x||"alert"===x?"
":"","\n\t\t
\n\t\n\t")},Pr=function(){return s((function r(){var o=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),(0,p.A)(this,"closeDialog",(function(){var e=o.elements.mask,t=o.options,r=t.animationDelay,n=t.onClose;e.classList.contains("gform-dialog--anim-in-active")&&(e.classList.remove("gform-dialog--anim-in-active"),window.setTimeout((function(){e.classList.remove("gform-dialog--anim-in-ready")}),r),o.state.open=!1,o.elements.activeTrigger&&o.elements.activeTrigger.focus(),o.options.lockBody&&u.bodyLock.unlock(),n())})),(0,p.A)(this,"maybeCloseDialog",(function(e){var t;(null===(t=e.detail)||void 0===t?void 0:t.activeId)!==o.options.id&&o.closeDialog()})),(0,p.A)(this,"handleKeyEvents",(function(e){return(0,u.focusLoop)(e,o.elements.activeTrigger,o.elements.dialog,o.closeDialog)})),(0,p.A)(this,"handleTriggerClick",(function(e){o.elements.activeTrigger=e.target,o.state.open?o.closeDialog():o.showDialog()})),(0,p.A)(this,"handleMaskClick",(function(e){e.target.id===o.options.id||(0,u.getClosest)(e.target,'[data-js="'.concat(o.options.id,'"]'))||o.closeDialog()})),(0,p.A)(this,"handleConfirm",(function(e){var t=o.options.onConfirm;(0,u.trigger)({event:"gform/dialog/confirm",native:!1,data:{instance:o,button:e.target}}),o.options.closeOnConfirmClick&&o.closeDialog(),t()})),this.options={},(0,e.A)(this.options,{alertButtonText:"",animationDelay:250,cancelButtonText:"",closeButtonClasses:"gform-dialog__close",closeButtonTitle:"",closeOnMaskClick:!0,closeOnConfirmClick:!0,confirmButtonAttributes:"",confirmButtonIcon:"",confirmButtonText:"",id:(0,u.uniqueId)("dialog"),lockBody:!1,maskBlur:!0,maskClasses:"gform-dialog__mask",maskTheme:"light",mode:"",onClose:function(){},onConfirm:function(){},onOpen:function(){},position:"fixed",renderOnInit:!0,target:"body",title:"",titleIcon:"",titleIconColor:"",triggers:"",wrapperClasses:"gform-dialog",zIndex:10},n),(0,u.trigger)({event:"gform/dialog/pre_init",native:!1,data:{instance:this}}),this.elements={},this.state={open:!1},this.options.renderOnInit&&this.init()}),[{key:"showDialog",value:function(){var e=this.elements.mask;this.options.lockBody&&u.bodyLock.lock(),this.options.onOpen(),e.classList.add("gform-dialog--anim-in-ready"),window.setTimeout((function(){e.classList.add("gform-dialog--anim-in-active")}),25),this.elements.closeButton.focus(),this.state.open=!0}},{key:"storeElements",value:function(){var e=(0,u.getNodes)(this.options.id)[0];this.elements={activeTrigger:null,alertButton:(0,u.getNodes)("gform-dialog-alert",!1,e)[0],content:(0,u.getNodes)("gform-dialog-content",!1,e)[0],cancelButton:(0,u.getNodes)("gform-dialog-cancel",!1,e)[0],closeButton:(0,u.getNodes)("gform-dialog-close",!1,e)[0],confirmButton:(0,u.getNodes)("gform-dialog-confirm",!1,e)[0],dialog:e,footer:(0,u.getNodes)("gform-dialog-footer",!1,e)[0],header:(0,u.getNodes)("gform-dialog-header",!1,e)[0],mask:e.parentNode,triggers:this.options.triggers?(0,u.getNodes)(this.options.triggers,!0,document,!0):[]}}},{key:"render",value:function(){var e=this.options.target;(0,u.getNodes)(e,!1,document,!0)[0].insertAdjacentHTML("beforeend",hr(this.options))}},{key:"bindEvents",value:function(){var e=this;this.elements.dialog.addEventListener("keydown",this.handleKeyEvents),this.elements.closeButton.addEventListener("click",this.closeDialog),this.options.triggers&&(0,u.getNodes)(this.options.triggers,!0,document,!0).forEach((function(t){return t.addEventListener("click",e.handleTriggerClick)})),this.options.closeOnMaskClick&&this.elements.mask.addEventListener("click",this.handleMaskClick),this.elements.alertButton&&this.elements.alertButton.addEventListener("click",this.closeDialog),this.elements.cancelButton&&this.elements.cancelButton.addEventListener("click",this.closeDialog),this.elements.confirmButton&&this.elements.confirmButton.addEventListener("click",this.handleConfirm),document.addEventListener("gform/dialog/close",this.maybeCloseFlyout),document.addEventListener("gform/dialog/close-all",this.closeFlyout)}},{key:"init",value:function(){this.render(),this.storeElements(),this.bindEvents(),(0,u.trigger)({event:"gform/dialog/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized dialog component.")}}])}();function Tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Or(e){for(var t=1;t=0&&"[object Array]"===Object.prototype.toString.call(e)};var Jr=Wr((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():Zr(e)?[]:function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)?"":function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)?{}:$r(e)?function(){return arguments}():void 0})),Yr=Jr;function Qr(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Xr(e,t,r){for(var o=0,n=r.length;o=0;)Kr(t=ro[r],e)&&!no(o,t)&&(o[o.length]=t),r-=1;return o})):Wr((function(e){return Object(e)!==e?[]:Object.keys(e)})),io=Wr((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ao(e,t,r,o){var n=Qr(e);function s(e,t){return co(e,t,r.slice(),o.slice())}return!Xr((function(e,t){return!Xr(s,t,e)}),Qr(t),n)}function co(e,t,r,o){if(eo(e,t))return!0;var n,s,i=io(e);if(i!==io(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(s=String(n).match(/^function (\w*)/))?"":s[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!eo(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!eo(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return o[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&ao(e.entries(),t.entries(),r.concat([e]),o.concat([t]));case"Set":return e.size===t.size&&ao(e.values(),t.values(),r.concat([e]),o.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=so(e);if(c.length!==so(t).length)return!1;var p=r.concat([e]),u=o.concat([t]);for(a=c.length-1;a>=0;){var l=c[a];if(!Kr(l,t)||!co(t[l],e[l],p,u))return!1;a-=1}return!0}var po=qr((function(e,t){return co(e,t,[],[])})),uo=Wr((function(e){return null!=e&&po(e,Yr(e))}));function lo(e,t,r){return function(){if(0===arguments.length)return r();var o=Array.prototype.slice.call(arguments,0),n=o.pop();if(!Zr(n)){for(var s=0;s=0&&this.i>=this.n?(r=o)&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}:o},e}(),go=qr((function(e,t){return new yo(e,t)}));function bo(e,t){return function(){var r=arguments.length;if(0===r)return t();var o=arguments[r-1];return Zr(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}function vo(e){return function t(r,o,n){switch(arguments.length){case 0:return t;case 1:return Mr(r)?t:qr((function(t,o){return e(r,t,o)}));case 2:return Mr(r)&&Mr(o)?t:Mr(r)?qr((function(t,r){return e(t,o,r)})):Mr(o)?qr((function(t,o){return e(r,t,o)})):Wr((function(t){return e(r,o,t)}));default:return Mr(r)&&Mr(o)&&Mr(n)?t:Mr(r)&&Mr(o)?qr((function(t,r){return e(t,r,n)})):Mr(r)&&Mr(n)?qr((function(t,r){return e(t,o,r)})):Mr(o)&&Mr(n)?qr((function(t,o){return e(r,t,o)})):Mr(r)?Wr((function(t){return e(t,o,n)})):Mr(o)?Wr((function(t){return e(r,t,n)})):Mr(n)?Wr((function(t){return e(r,o,t)})):e(r,o,n)}}}var ho=vo(bo("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)}))),Po=qr(lo(["take"],go,(function(e,t){return ho(0,e<0?1/0:e,t)}))),To=qr((function(e,t){return po(Po(e.length,t),e)})),Oo=n(3224);function wo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=new window.FormData;return function e(t,i){if(!function(e){return Array.isArray(r)&&r.some((function(t){return t===e}))}(i))if(i=i||"",t instanceof window.File)s.append(i,t);else if(Array.isArray(t))for(var a=0;a1&&void 0!==m[1]?m[1]:{},n=No({method:"GET"},o=m.length>2&&void 0!==m[2]?m[2]:{}),s=Gr(["body"],n),i="GET"!==s.method&&"HEAD"!==s.method,a=s.baseUrl,i&&(c=o.body?o.body:{},r[t].nonce&&(c._ajax_nonce=r[t].nonce),r[t].action&&(c.action=r[t].action),s.body=wo(c)),s.json&&(s.body=JSON.stringify(s.json)),p=s.params||{},!i&&r[t].nonce&&(p._ajax_nonce=r[t].nonce),!i&&r[t].action&&(p.action=r[t].action),p&&!uo(p)&&(u=Bo(p),l=(0,jo.stringify)(u,{arrayFormat:"bracket"}),a="".concat(a,"?").concat(l)),d=s.headers?No({},s.headers):{},Date.now(),e.abrupt("return",window.fetch(a,No(No({},s),{},{headers:d})).then((function(e){return e.ok?e.text().then((function(t){try{var r=JSON.parse(t);Date.now();return{data:r,status:e.status,totalPages:e.headers.get("x-wp-totalpages"),totalPosts:e.headers.get("x-wp-total")}}catch(r){var o=_o()(Eo()(xo()(t))),n=new Error("Invalid server response. ".concat(o));throw n.detail={url:a,data:o,status:e.status,error:r,text:t},n}})):To(e.headers.get("Content-Type"),"application/json")?e.text().then((function(t){try{return{data:JSON.parse(t),status:e.status}}catch(n){var r=_o()(Eo()(xo()(t))),o=new Error("Invalid server response. ".concat(r));throw o.detail={url:a,data:r,status:e.status,error:n,text:t},o}})):e.text().then((function(t){var r=_o()(Eo()(xo()(t))),o=new Error("Unknown server response. ".concat(r));throw o.detail={url:a,data:r,status:e.status},o}))})).catch((function(e){return{error:e}})));case 18:case"end":return e.stop()}}),e)}))),Lo.apply(this,arguments)}function zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ho(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return e.listData?(0,u.saferHtml)(Do||(Do=Lr(['\n\t\t\t
  • \n\t\t\t\t','\n\t\t\t\t
      '])),e.label)+Mo(e.listData)+"
    \n\t\t\t
  • \n\t\t\t":(0,u.saferHtml)(Ao||(Ao=Lr(['\n\t\t
  • \n\t\t\t\n\t\t
  • \n\t\t"])),e.value,e.value,e.label)})).join("")},Wo=function(e){return'\n\t
    \n\t\t").concat(e.triggerTitle?"":'\n\t\t\t').concat(e.triggerAriaText,"\n\t\t"),'\n\t\t\n\t\t\t\n\t\t\t\t').concat(e.triggerSelected?e.triggerSelected:e.triggerPlaceholder,'\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t').concat(e.hasSearch?'\n\t\t\t\n\t\t\t'):"",'\n\t\t\t
    \n\t\t\t\t
      \n\t\t\t\t\t').concat(Mo(e.listData),"\n\t\t\t\t
    \n\t\t\t
    \n\t\t\n\t
    \n")},qo=function(){return s((function r(){var o,n=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),(0,p.A)(this,"parseRestResponse",(function(e){return e.map((function(e){return{value:e.id,label:e.title.rendered}}))})),(0,p.A)(this,"handleAsyncSearch",(0,u.debounce)(function(){var e=Ir(Hr().mark((function e(t){var r,o,s,i;return Hr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.target.value.trim().length){e.next=3;break}return n.elements.dropdownList.innerHTML=Mo(n.options.listData),e.abrupt("return");case 3:if(o=n.options.endpointArgs,"GET"===(s=Ho({baseUrl:n.options.baseUrl,method:"POST",body:Ho(Ho({},o),{},{search:t.target.value})},n.options.endpointRequestOptions)).method&&(s.params=s.body),!n.state.isMock){e.next=10;break}return(0,u.consoleInfo)("Mock endpoint, data that would have been sent is:"),(0,u.consoleInfo)(s),e.abrupt("return");case 10:return n.showSpinnerEl(),e.next=13,Io(n.options.endpointKey,n.options.endpoints,s);case 13:i=e.sent,n.hideSpinnerEl(),!n.options.endpointUseRest&&null!=i&&null!==(r=i.data)&&void 0!==r&&r.success&&(n.elements.dropdownList.innerHTML=Mo(i.data.data)),n.options.endpointUseRest&&i.data.length&&(n.elements.dropdownList.innerHTML=Mo(n.parseRestResponse(i.data)));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{wait:300})),this.options={},(0,e.A)(this.options,{autoPosition:!1,attributes:"",baseUrl:"",closeOnSelect:!0,container:"",detectTitleLength:!1,dropdownListAttributes:"data-simplebar",endpoints:{},endpointArgs:{},endpointKey:"",endpointRequestOptions:{},endpointUseRest:!1,hasSearch:!0,insertPosition:"afterbegin",listData:[],onItemSelect:function(){},onOpen:function(){},onClose:function(){},render:!1,renderListData:!1,renderTarget:"",reveal:"click",searchAriaText:"",searchInputId:"gform-form-switcher-search",searchPlaceholder:"",searchType:"basic",selector:"gform-dropdown",showSpinner:!1,swapLabel:!0,titleLengthThresholdMedium:23,titleLengthThresholdLong:32,triggerAriaId:"gform-form-switcher-label",triggerAriaText:"",triggerClasses:"",triggerId:"gform-form-switcher-control",triggerPlaceholder:"",triggerSelected:"",triggerTitle:"",wrapperClasses:"gform-dropdown"},s),this.elements={},this.templates={dropdownListItems:Mo,dropdownTemplate:Wo},(0,u.trigger)({event:"gform/dropdown/pre_init",native:!1,data:{instance:this}}),this.state={isMock:"mock_endpoint"===(null===(o=this.options.endpoints)||void 0===o||null===(o=o.get_posts)||void 0===o?void 0:o.action),open:!1,unloading:!1},this.options.render&&this.render(),this.options.container=this.options.container?document.querySelectorAll(this.options.container)[0]:document,this.elements.container=(0,u.getNodes)(this.options.selector,!1,this.options.container)[0],this.elements.container?(this.elements.titleEl=(0,u.getNodes)("gform-dropdown-control-text",!1,this.elements.container)[0],this.elements.dropdownList=(0,u.getNodes)("gform-dropdown-list",!1,this.elements.container)[0],this.elements.dropdownContainer=(0,u.getNodes)("gform-dropdown-container",!1,this.elements.container)[0],this.options.renderListData&&!this.options.render&&this.renderListData(),this.init(),this.hideSpinnerEl=function(){this.elements.container.classList.remove("gform-dropdown--show-spinner")},this.showSpinnerEl=function(){this.elements.container.classList.add("gform-dropdown--show-spinner")}):(0,u.consoleError)("Gform dropdown couldn't find [data-js=\"".concat(this.options.selector,'"] to instantiate on.'))}),[{key:"handleChange",value:function(e){(0,u.trigger)({event:"gform/dropdown/item_selected",native:!1,data:{instance:this,event:e}}),this.elements.control.setAttribute("data-value",e.target.dataset.value),this.options.onItemSelect(e.target.dataset.value),this.options.showSpinner&&this.showSpinnerEl(),this.options.swapLabel&&(this.elements.controlText.innerText=e.target.innerText,this.elements.controlText.innerText===this.options.triggerPlaceholder?this.elements.control.classList.add("gform-dropdown__control--placeholder"):this.elements.control.classList.remove("gform-dropdown__control--placeholder")),this.options.closeOnSelect&&this.handleControl()}},{key:"handleControl",value:function(){this.state.open?this.closeDropdown():this.openDropdown()}},{key:"handlePosition",value:function(){this.options.autoPosition&&(this.elements.container.parentNode.offsetHeight-(this.elements.container.offsetTop+this.elements.container.offsetHeight+this.elements.dropdownContainer.offsetHeight)<10?this.elements.container.classList.add("gform-dropdown--position-top"):this.elements.container.classList.remove("gform-dropdown--position-top"))}},{key:"openDropdown",value:function(){this.state.open||(this.options.onOpen(),this.elements.container.classList.add("gform-dropdown--reveal"),setTimeout(function(){this.elements.container.classList.add("gform-dropdown--open"),this.elements.control.setAttribute("aria-expanded","true"),this.state.open=!0,this.handlePosition()}.bind(this),25),setTimeout(function(){this.elements.container.classList.remove("gform-dropdown--reveal")}.bind(this),200))}},{key:"closeDropdown",value:function(){this.options.onClose(),this.state.open=!1,this.elements.container.classList.remove("gform-dropdown--open"),this.elements.container.classList.add("gform-dropdown--hide"),this.elements.control.setAttribute("aria-expanded","false"),setTimeout(function(){this.elements.container.classList.remove("gform-dropdown--hide")}.bind(this),150)}},{key:"handleMouseenter",value:function(){"hover"!==this.options.reveal||this.state.open||this.state.unloading||this.openDropdown()}},{key:"handleMouseleave",value:function(){"hover"!==this.options.reveal||this.state.unloading||this.closeDropdown()}},{key:"handleA11y",value:function(e){if(this.state.open)return 27===e.keyCode?(this.closeDropdown(),void this.elements.control.focus()):void(9!==e.keyCode||(0,u.getClosest)(e.target,'[data-js="'+this.options.selector+'"]')||this.elements.triggers[0].focus())}},{key:"handleBasicSearch",value:function(e){var t=e.target.value.toLowerCase();this.elements.triggers.forEach((function(e){e.innerText.toLowerCase().includes(t)?e.parentNode.style.display="":e.parentNode.style.display="none"}))}},{key:"handleSearch",value:function(e){"basic"!==this.options.searchType?this.handleAsyncSearch(e):this.handleBasicSearch(e)}},{key:"storeTriggers",value:function(){this.elements.control=(0,u.getNodes)("gform-dropdown-control",!1,this.elements.container)[0],this.elements.controlText=(0,u.getNodes)("gform-dropdown-control-text",!1,this.elements.control)[0],this.elements.triggers=(0,u.getNodes)("gform-dropdown-trigger",!0,this.elements.container)}},{key:"render",value:function(){this.options.renderTarget=this.options.renderTarget?document.querySelectorAll(this.options.renderTarget)[0]:document.body,this.options.renderTarget.insertAdjacentHTML(this.options.insertPosition,Wo(this.options))}},{key:"renderListData",value:function(){this.elements.dropdownList.innerHTML=Mo(this.options.listData)}},{key:"setup",value:function(){if("hover"===this.options.reveal&&this.elements.container.classList.add("gform-dropdown--hover"),this.options.detectTitleLength){var e=this.elements.titleEl?this.elements.titleEl.innerText:"";e.length>this.options.titleLengthThresholdMedium&&e.length<=this.options.titleLengthThresholdLong?this.elements.container.parentNode.classList.add("gform-dropdown--medium-title"):e.length>this.options.titleLengthThresholdLong&&this.elements.container.parentNode.classList.add("gform-dropdown--long-title")}(0,u.consoleInfo)('Gravity Forms Admin: Initialized dropdown component on [data-js="'.concat(this.options.selector,'"].'))}},{key:"bindEvents",value:function(){var e='[data-js="'.concat(this.options.selector,'"]');(0,u.delegate)(e,'[data-js="gform-dropdown-trigger"]',"click",this.handleChange.bind(this)),(0,u.delegate)(e,'[data-js="gform-dropdown-control"]',"click",this.handleControl.bind(this)),(0,u.delegate)(e,'[data-js="gform-dropdown-search"]',"keyup",this.handleSearch.bind(this)),this.elements.container.addEventListener("mouseenter",this.handleMouseenter.bind(this)),this.elements.container.addEventListener("mouseleave",this.handleMouseleave.bind(this)),this.elements.container.addEventListener("keyup",this.handleA11y.bind(this)),document.addEventListener("keyup",this.handleA11y.bind(this)),document.addEventListener("click",function(e){!this.elements.container.contains(e.target)&&this.state.open&&this.handleControl()}.bind(this),!0),addEventListener("beforeunload",function(){this.state.unloading=!0}.bind(this))}},{key:"init",value:function(){this.storeTriggers(),this.bindEvents(),this.setup(),(0,u.trigger)({event:"gform/dropdown/post_render",native:!1,data:{instance:this}})}}])}();function Go(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ko(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=e.multi,o=void 0!==r&&r,n=e.onClose,s=void 0===n?function(){}:n,i=e.onAfterClose,a=void 0===i?function(){}:i,p=e.onOpen,u=void 0===p?function(){}:p,l=e.onAfterOpen,d=void 0===l?function(){}:l,m=t((function(e){return e.listItems})),f=t((function(e){return e.selectedItem})),y=t((function(e){return e.setActiveItem})),g=t((function(e){return e.setSelectedItem})),b=t((function(e){return e.setSearchValue})),v=t((function(e){return e.setOpen})),h=t((function(e){return e.setHide})),P=t((function(e){return e.setReveal})),T=t((function(e){return e.triggerRef})),O=function(e){null==s||s(e),v(!1),h(!0),setTimeout((function(){h(!1),b(""),null==a||a(e)}),150)};return Ko(Ko({},e),{},{close:O,open:function(e){null==u||u(e),P(!0),requestAnimationFrame((function(){v(!0),setTimeout((function(){P(!1),null==d||d(e)}),150)}))},resetAndClose:function(e){setTimeout((function(){y(o?m.items[0]:f)}),150),O(e)},selectItem:function(e){return function(t){if(o){var r=f.some((function(t){return t.value===e.value}));g(r?f.filter((function(t){return t.value!==e.value})):[].concat(c(f),[e]))}else g(e),requestAnimationFrame((function(){var e;O(t),null==T||null===(e=T.current)||void 0===e||e.focus()}))}},selectMultipleItems:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){return f.some((function(e){return e.value===t.value}))||e.push(t),e}),c(f));g(e)}})};function Vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function $o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=e.resetAndClose,o=void 0===r?function(){}:r,n=t((function(e){return e.triggerRef})),s=t((function(e){return e.popoverRef}));return $o($o({},e),{},{handleBlur:function(e){requestAnimationFrame((function(){n.current&&s.current&&(n.current.contains(document.activeElement)||s.current.contains(document.activeElement))||null==o||o(e)}))}})},Jo="Enter",Yo="ArrowUp",Qo="ArrowDown",Xo="ArrowLeft",en="ArrowRight",tn="PageUp",rn="PageDown",on="Home",nn="End",sn="Delete",an="Backspace";function cn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function pn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=e.hasSearch,o=void 0!==r&&r,n=e.multi,s=void 0!==n&&n,i=e.open,a=void 0===i?function(){}:i,p=e.resetAndClose,u=void 0===p?function(){}:p,l=e.selectItem,d=void 0===l?function(){}:l,m=e.selectMultipleItems,f=void 0===m?function(){}:m,y=t((function(e){return e.activeItem})),g=t((function(e){return e.selectedItem})),b=t((function(e){return e.listItems})),v=t((function(e){return e.open})),h=t((function(e){return e.setActiveItem})),P=t((function(e){return e.setSelectedItem})),T=t((function(e){return e.baseElRef})),O=t((function(e){return e.popoverRef})),w=t((function(e){return e.triggerRef})),D=[Yo,Qo,on,tn,nn,rn,Jo];o||D.push(" "),s&&D.push("a");return pn(pn({},e),{},{handleEscKeyDown:function(e){var t;"Escape"===e.key&&(u(e),null==w||null===(t=w.current)||void 0===t||t.focus())},handleTriggerKeyDown:function(e){var t;[Yo,Qo].includes(e.key)&&(v||a(),null==T||null===(t=T.current)||void 0===t||t.focus())},handleListKeyDown:function(e){if(!e.defaultPrevented&&D.includes(e.key)){if(s&&"a"===e.key||e.preventDefault(),[Yo,Qo].includes(e.key)){var t,r,n=b.ids.indexOf(y.id);if(-1===n)return;e.key===Yo&&-1===(r=n-1)&&(r=b.ids.length-1),e.key===Qo&&(r=n+1)===b.ids.length&&(r=0);var i=b.items[r];h(i),"search"!==i.component&&e.shiftKey&&d(i)(e),null==O||null===(t=O.current)||void 0===t||null===(t=t.querySelector("#".concat(i.id)))||void 0===t||t.focus()}if([on,tn].includes(e.key)){var a=b.items[0];if(e.shiftKey&&e.ctrlKey){var p=b.ids.indexOf(y.id),u=b.items.slice(0,p+1);f(u.reverse())}h(a)}if([nn,rn].includes(e.key)){var l=o?b.ids.length-2:b.ids.length-1,m=b.items[l];if(e.shiftKey&&e.ctrlKey){var v=b.ids.indexOf(y.id),T=b.items.slice(v,l+1);f(T)}h(m)}if("a"===e.key&&e.ctrlKey){if(g.length===b.items.length-(o?1:0))return void P([]);var w=b.items.filter((function(e){return"search"!==e.component}));f(w)}[Jo].concat(c(o?[]:[" "])).includes(e.key)&&d(y)(e)}}})};function ln(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function dn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim()},fn=function(e,t){return(0,u.slugify)("".concat(e,"-").concat(t))},yn=function(e){return{component:"search",id:fn(e,"search")}},gn=function(e){var t=function(e,t){var r=t.hasSearch,o=void 0!==r&&r,n=t.id,s=void 0===n?"":n;return[].concat(c(e),c(o?[yn(s)]:[])).map((function(e){return"search"===e.component?e:dn(dn({},e),{},{id:fn(s,e.value)})}))}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return{ids:t.map((function(e){return e.id})),items:t}},bn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null;switch(e.component){case"Icon":t=React.createElement(b.A,e.props);break;case"Image":t=React.createElement(Xe,e.props);break;default:t=null}return t};function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function hn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).label||"";return!!t&&mn(t).toLowerCase().startsWith(e.toLowerCase())},Tn=function(e,t,r){var o=e.filter((function(e){return Pn(e,t)}));if(o.length)return null!=r&&r.id&&Pn(r,t)?t.length>1?r:function(e,t){var r=e.findIndex((function(e){return e.id===t.id}));return[].concat(c(e.slice(r+1)),c(e.slice(0,r)))}(o,r).filter((function(e){return e.id!==r.id}))[0]:o[0]},On=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=t((function(e){return e.activeItem})),o=t((function(e){return e.chars})),n=t((function(e){return e.charTimeoutId})),s=t((function(e){return e.listItems})),i=t((function(e){return e.open})),a=t((function(e){return e.setActiveItem})),c=t((function(e){return e.setSelectedItem})),p=t((function(e){return e.setChars})),u=t((function(e){return e.setCharTimeoutId})),l=t((function(e){return e.listRef})),d=t((function(e){return e.triggerRef})),m=t((function(e){return e.baseElRef})),f=e.hasSearch,y=void 0!==f&&f,g=function(){return p("")};return hn(hn({},e),{},{handleKeyDownCapture:function(e){var t;if(y)e.target!==m.current&&(null==m||null===(t=m.current)||void 0===t||t.focus());else if(!e.defaultPrevented){if(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!(" "!==e.key||!t.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])$/.test(e.key)}(e,o))return g();e.preventDefault(),clearTimeout(n),u(setTimeout(g,500));var f,b=e.key.toLowerCase(),v=o+b,h=Tn(s.items,v,r);if(!h&&v.length>1&&(v=b,h=Tn(s.items,v,r)),h)if(p(v),a(h),e.target!==(null==d?void 0:d.current)||i)null==l||null===(f=l.current)||void 0===f||null===(f=f.querySelector("#".concat(h.id)))||void 0===f||f.focus();else c(h);else g()}}})};function wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Dn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return(0,v.create)(Dn(Dn({},An),e),jn)};function En(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Rn(e){for(var t=1;t1&&e===t-1&&i.current.previousSibling.focus(),1===t&&s.current.focus()},c={content:r.label,customClasses:["gform-dropdown__pill"],customAttributes:{role:"option",tabIndex:"0","aria-keyshortcuts":"Backspace Delete",onKeyDown:function(e){[an,sn].includes(e.key)&&a()}},tagName:"div",onClick:a};return g.React.createElement(kn,(0,e.A)({},c,{ref:i}))},Mn=Sn((function(t,r){var o=t.multi,n=void 0!==o&&o,s=(0,v.useIdContext)(),i=(0,v.useStoreContext)((function(e){return e.selectedItem}));if(!n||!Array.isArray(i))return null;var a={className:"gform-dropdown__pills",id:fn(s,"pills"),role:"listbox"};return g.React.createElement("div",(0,e.A)({},a,{ref:r}),i.map((function(e,t){return g.React.createElement(Hn,{key:t,item:e})})))})),Wn=Sn((function(t,r){var o=t.children,n=void 0===o?null:o,s=t.handleBlur,i=void 0===s?function(){}:s,a=t.handleEscKeyDown,c=void 0===a?function(){}:a,p=t.handleKeyDownCapture,u=void 0===p?function(){}:p,l=t.handleListKeyDown,d=void 0===l?function(){}:l,m=t.popoverAttributes,f=void 0===m?{}:m,y=t.popoverClasses,b=void 0===y?[]:y,h=t.popoverMaxHeight,P=void 0===h?0:h,T=(0,v.useIdContext)(),O=(0,v.useStoreContext)((function(e){return e.open})),w=fn(T,"popover"),D=Bn(Bn({className:(0,g.classnames)({"gform-dropdown__popover":!0},b)},f),{},{"data-dialog":!0,id:w,onBlur:i,onKeyDown:function(e){c(e),d(e)},onKeyDownCapture:function(e){return u(e)},role:"dialog",tabIndex:"-1"});return O||(D.hidden=!0),P&&(D.style={maxHeight:"".concat(P,"px")}),g.React.createElement("div",{className:"gform-dropdown__popover-wrapper"},g.React.createElement("div",(0,e.A)({},D,{ref:r}),n))})),qn=Sn((function(t,r){var o=t.handleBlur,n=void 0===o?function(){}:o,s=t.handleKeyDownCapture,i=void 0===s?function(){}:s,a=t.handleListKeyDown,c=void 0===a?function(){}:a,p=t.hasSearch,u=void 0!==p&&p,l=t.label,d=void 0===l?"":l,m=t.listAttributes,f=void 0===m?{}:m,y=t.listClasses,b=void 0===y?[]:y,h=t.listItems,P=void 0===h?[]:h,T=t.multi,O=void 0!==T&&T,w=t.popoverMaxHeight,D=void 0===w?0:w,A=t.selectedIcon,j=void 0===A?"check":A,C=t.selectedIconPrefix,E=void 0===C?"gform-icon":C,R=t.selectItem,_=void 0===R?function(){}:R,k=(0,v.useIdContext)(),x=(0,v.useStoreContext)((function(e){return e.activeItem})),F=(0,v.useStoreContext)((function(e){return e.listItems})),B=(0,v.useStoreContext)((function(e){return e.selectedItem})),S=(0,v.useStoreContext)((function(e){return e.setActiveItem})),N=(0,v.useStoreContext)((function(e){return e.baseElRef})),I=fn(k,"list"),L=Bn(Bn({className:(0,g.classnames)(["gform-dropdown__list"],b)},f),{},{id:I,onBlur:n,onKeyDown:function(e){c(e)},onKeyDownCapture:function(e){return i(e)},role:"listbox"});if(!u){if(L.tabIndex="0",d){var z=fn(k,"label");L["aria-labelledby"]=z}P.length&&(L["aria-activedescendant"]=x.id)}if(D){var H=u?D-58:D;H>0&&(L.style={maxHeight:"".concat(H,"px")})}return g.React.createElement("div",(0,e.A)({},L,{ref:r}),F.items.map((function(t){if("search"===t.component)return null;var r=O?B.some((function(e){return e.value===t.value})):B.value===t.value,o={className:"gform-dropdown__list-item",id:t.id,"aria-selected":r?"true":"false",tabIndex:"-1",role:"option",onMouseMove:function(){S(t)},onClick:_(t),onFocus:function(){var e;return null==N||null===(e=N.current)||void 0===e?void 0:e.focus()}};x.value===t.value&&(o["data-active-item"]="true");var n={className:(0,g.classnames)(["gform-dropdown__list-item-inner","gform-text","gform-text--color-port","gform-typography--size-text-sm","gform-typography--weight-regular"])};return g.React.createElement("div",(0,e.A)({},o,{key:t.id}),g.React.createElement("div",n,t.beforeLabel&&g.React.createElement("span",{className:"gform-dropdown__list-item-before-label"},bn(t.beforeLabel)),g.React.createElement("span",{className:"gform-dropdown__list-item-label"},t.label),(t.afterLabel&&!O||O&&r)&&g.React.createElement("span",{className:"gform-dropdown__list-item-after-label"},bn(O&&r?{component:"Icon",props:{iconPrefix:E,icon:j}}:t.afterLabel))))})))})),Gn=Sn((function(e,t){var r=e.hasSearch,o=void 0!==r&&r,n=e.searchAttributes,s=void 0===n?{}:n,i=e.searchClasses,a=void 0===i?[]:i,c=(0,v.useIdContext)(),p=(0,v.useStoreContext)((function(e){return e.dropdownOpen})),u=(0,v.useStoreContext)((function(e){return e.activeItem})),l=(0,v.useStoreContext)((function(e){return e.searchValue})),d=(0,v.useStoreContext)((function(e){return e.setActiveItem})),m=(0,v.useStoreContext)((function(e){return e.setSearchValue}));if(!o)return null;var f=fn(c,"list"),y=fn(c,"search"),b=s.customAttributes,h=void 0===b?{}:b,P=s.wrapperClasses,T=void 0===P?[]:P,O=(0,ce.A)(s,xn),w=Bn(Bn({customClasses:(0,g.classnames)(["gform-dropdown__search"],a)},O),{},{controlled:!0,customAttributes:Bn(Bn({},h),{},{autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":f,"aria-expanded":p?"true":"false",onMouseMove:function(){d(yn(c))},ref:t}),id:y,wrapperClasses:(0,g.classnames)(["gform-dropdown__search-wrapper"],T),onChange:function(e){m(e)},value:l});return"search"===u.component?w.customAttributes["data-active-item"]="true":w.customAttributes["aria-activedescendant"]=u.id,g.React.createElement(pt,w)})),Kn=Sn((function(t,r){var o=(0,v.useIdContext)(),n=(0,v.useStoreContext)((function(e){return e.open})),s=(0,v.useStoreContext)((function(e){return e.reveal})),i=(0,v.useStoreContext)((function(e){return e.hide})),a=(0,v.useStoreContext)((function(e){return e.listItems})),c=(0,v.useStoreContext)((function(e){return e.searchValue})),l=(0,v.useStoreContext)((function(e){return e.selectedItem})),d=(0,v.useStoreContext)((function(e){return e.initialTriggerHeight})),m=(0,v.useStoreContext)((function(e){return e.setListItems})),f=(0,v.useStoreContext)((function(e){return e.setActiveItem})),y=(0,v.useStoreContext)((function(e){return e.setSelectedItem})),b=(0,v.useStoreContext)((function(e){return e.setTriggerHeight})),h=(0,v.useStoreContext)((function(e){return e.setInitialTriggerHeight})),P=In(!1),T=(0,v.useStoreContext)((function(e){return e.triggerRef})),O=(0,v.useStoreContext)((function(e){return e.popoverRef})),w=(0,v.useStoreContext)((function(e){return e.listRef})),D=(0,v.useStoreContext)((function(e){return e.searchRef})),A=(0,v.useStoreContext)((function(e){return e.baseElRef})),j=(0,v.useStoreContext)((function(e){return e.pillsRef})),C=t.customAttributes,E=void 0===C?{}:C,R=t.customClasses,_=void 0===R?[]:R,k=t.hasSearch,x=void 0!==k&&k,F=t.listItems,B=void 0===F?[]:F,S=t.multi,N=void 0!==S&&S,I=t.popoverMaxHeight,L=void 0===I?0:I,z=t.simplebar,H=void 0===z||z,M=t.size,W=void 0===M?"r":M,q=t.spacing,G=void 0===q?"":q,K=t.width,U=void 0===K?0:K;Nn((function(){if(P.current){var e=gn(function(e,t){return""===t?e:e.filter((function(e){var r=e.label||"";return!!r&&-1!==mn(r).toLowerCase().indexOf(t.toLowerCase())}))}(B,c),{hasSearch:x,id:o});f(e.items[0]),m(e)}else P.current=!0}),[o,B,c]),Nn((function(){var e;n&&(null==A||null===(e=A.current)||void 0===e||e.focus())}),[n,A]),Nn((function(){N?(0,u.isObject)(l)&&(0!==Object.keys(l).length?y([l]):y([])):Array.isArray(l)&&(0!==l.length?y(l[0]):y(a.items[0]||{}))}),[N]),Nn((function(){T.current&&h(T.current.offsetHeight)}),[W,T]),Nn((function(){if(N){if(j.current&&d){var e=j.current.offsetHeight;b(e<=d?0:e)}}else b(0)}),[N,l,j,d]);var V=Bn({className:(0,g.classnames)(Bn((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({"gform-dropdown":!0,"gform-dropdown--react":!0},"gform-dropdown--size-".concat(W),W),"gform-dropdown--open",n),"gform-dropdown--reveal",s),"gform-dropdown--hide",i),"gform-dropdown--multi",N),"gform-dropdown--has-simplebar",H),"gform-dropdown--has-search",x),(0,u.spacerClasses)(G)),_),style:{width:U?"".concat(U,"px"):void 0}},E),$=x?L-58:L;return g.React.createElement("div",(0,e.A)({},V,{ref:r}),g.React.createElement(Ln,t),g.React.createElement("div",{className:"gform-dropdown__trigger-wrapper"},g.React.createElement(zn,(0,e.A)({},t,{ref:T})),g.React.createElement(Mn,(0,e.A)({},t,{ref:j}))),g.React.createElement(Wn,(0,e.A)({},t,{ref:O}),g.React.createElement(Gn,(0,e.A)({},t,{ref:D})),g.React.createElement(v.ConditionalWrapper,{condition:H&&L>0,wrapper:function(e){return g.React.createElement("div",{className:"gform-dropdown__popover-simplebar",style:{height:"".concat($,"px")}},g.React.createElement(g.SimpleBar,null,e))}},g.React.createElement(qn,(0,e.A)({},t,{ref:w})))))})),Un=function(e){var t=e.children,r=e.hasSearch,o=e.listItems,n=e.multi,s=(0,v.useIdContext)(),i=In(),a=In(),c=In(),p=In(),u=In(),l=gn(o,{hasSearch:r,id:s}),d=l.items[0]||{},m={initialState:{listItems:l,selectedItem:n?[]:d,activeItem:d,triggerRef:i,popoverRef:a,listRef:c,searchRef:p,baseElRef:r?p:c,pillsRef:u},createStore:Cn};return g.React.createElement(v.StoreProvider,m,t)},Vn=Sn((function(t,r){var o=function(e){return[Uo,Zo,un,On].reduce((function(e,t){return t(e,v.useStoreContext)}),e)}(t);return g.React.createElement(Kn,(0,e.A)({},o,{ref:r}))})),$n=Sn((function(t,r){var o=Bn(Bn({},{customAttributes:{},customClasses:[],disabled:!1,hasSearch:!1,i18n:{},id:"",label:"",labelAttributes:{},labelClasses:[],listAttributes:{},listClasses:[],listItems:[],multi:!1,onAfterClose:function(){},onAfterOpen:function(){},onClose:function(){},onOpen:function(){},popoverAttributes:{},popoverClasses:[],popoverMaxHeight:0,searchAttributes:{},searchClasses:[],selectedIcon:"check",selectedIconPrefix:"gform-icon",simplebar:!0,size:"r",spacing:"",triggerAttributes:{},triggerClasses:[],width:0}),t),n=o.hasSearch,s={id:o.id},i={hasSearch:n,listItems:o.listItems,multi:o.multi};return g.React.createElement(v.IdProvider,s,g.React.createElement(Un,i,g.React.createElement(Vn,(0,e.A)({},o,{ref:r}))))}));$n.propTypes={customAttributes:g.PropTypes.object,customClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),disabled:g.PropTypes.bool,hasSearch:g.PropTypes.bool,i18n:g.PropTypes.object,id:g.PropTypes.string,label:g.PropTypes.string,labelAttributes:g.PropTypes.object,labelClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),listAttributes:g.PropTypes.object,listClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),listItems:g.PropTypes.array,multi:g.PropTypes.bool,onAfterClose:g.PropTypes.func,onAfterOpen:g.PropTypes.func,onClose:g.PropTypes.func,onOpen:g.PropTypes.func,popoverAttributes:g.PropTypes.object,popoverClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),popoverMaxHeight:g.PropTypes.number,searchAttributes:g.PropTypes.object,searchClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),selectedIcon:g.PropTypes.string,selectedIconPrefix:g.PropTypes.string,simplebar:g.PropTypes.bool,size:g.PropTypes.oneOf(["r","l","xl"]),spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),triggerAttributes:g.PropTypes.object,triggerClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),width:g.PropTypes.number};var Zn=$n,Jn=["customClasses","id","onClick"],Yn=["customClasses","width"],Qn=["ariaId","ariaText","customAttributes","customClasses","id","onClick","onKeyDown","title"],Xn=["customClasses","onKeyDown"];function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ts(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(o,n){if(o.listItems){var s=o.key||"".concat(t.droplistId,"-group-").concat(r,"-").concat(n),i={depth:r,index:n,item:o,propsWithState:t};return g.React.createElement(cs,(0,e.A)({key:s},i))}var a=(0,g.classnames)({"gform-droplist__item":!0,"gform-droplist__item--has-divider":o.hasDivider},o.customClasses||[]),c=ts(ts({},o.props||{}),{},{depth:r,propsWithState:t}),p=o.key||"".concat(t.droplistId,"-group-").concat(r,"-").concat(n);return g.React.createElement("li",{key:p,className:a},g.React.createElement(as,c))}))},as=rs((function(t,r){var o=t.customAttributes,n=void 0===o?{}:o,s=t.customClasses,i=void 0===s?[]:s,a=t.depth,c=void 0===a?0:a,u=t.element,l=void 0===u?"button":u,d=t.iconAfter,m=void 0===d?"":d,f=t.iconAfterAttributes,y=void 0===f?{}:f,v=t.iconAfterClasses,h=void 0===v?[]:v,P=t.iconBefore,T=void 0===P?"":P,O=t.iconBeforeAttributes,w=void 0===O?{}:O,D=t.iconBeforeClasses,A=void 0===D?[]:D,j=t.iconPrefix,C=void 0===j?"gform-icon":j,E=t.index,R=void 0===E?0:E,_=t.label,k=void 0===_?"":_,x=t.labelAttributes,F=void 0===x?{}:x,B=t.labelClasses,S=void 0===B?[]:B,N=t.propsWithState,I=void 0===N?{}:N,L=t.style,z=void 0===L?"info":L;if(!["button","link"].includes(l))return null;var M=I.openOnHover,W=I.selectedState,q=I.setSelectedState,G=ts({className:(0,g.classnames)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({"gform-droplist__item-trigger":!0},"gform-droplist__item-trigger--".concat(z),!0),"gform-droplist__item-trigger--depth-".concat(c),!0),"gform-droplist__item-trigger--".concat(R),!0),"gform-droplist__item-trigger--disabled","button"===l&&n.disabled),i),onMouseEnter:M?function(){!function(){var e=n.id,t=void 0===e?"":e;if(W[c]!==t){var r=ts(ts({},Object.keys(W).filter((function(e){return e\n\t\t\n\t\t').concat(g?'\n\t\t\n\t\t
    \n\t\t'):"","\n\t\t").concat(x||u?'
    ':"","\n\t\t").concat(x?'
    '.concat(x,"
    "):"","\n\t\t").concat(u?'

    '.concat(u,"

    "):"","\n\t\t").concat(x||u?"
    ":"",'\n\t\t
    ').concat(c,"
    \n\t\n\t\n\t")},Ts=function(){return s((function r(){var o=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),(0,p.A)(this,"closeFlyout",(function(){var e=o.elements.flyout,t=o.options,r=t.animationDelay,n=t.onClose;e.classList.contains("gform-flyout--anim-in-active")&&(e.classList.remove("gform-flyout--anim-in-active"),window.setTimeout((function(){e.classList.remove("gform-flyout--anim-in-ready")}),r),o.state.open=!1,o.shrinkFlyout(),n(),(0,u.trigger)({event:"gform/flyout/close",native:!1,data:{instance:o}}))})),(0,p.A)(this,"maybeCloseFlyout",(function(e){var t;(null===(t=e.detail)||void 0===t?void 0:t.activeId)!==o.options.id&&(o.elements.flyout.classList.remove("anim-in-ready"),o.elements.flyout.classList.remove("anim-in-active"),o.elements.flyout.classList.remove("anim-out-ready"),o.elements.flyout.classList.remove("anim-out-active"),o.state.open=!1,o.shrinkFlyout())})),(0,p.A)(this,"handleKeyEvents",(function(e){return(0,u.focusLoop)(e,o.elements.activeTrigger,o.elements.flyout,o.closeFlyout)})),(0,p.A)(this,"handleTriggerClick",(function(e){o.elements.activeTrigger=e.target,o.state.open?(o.closeFlyout(),o.elements.activeTrigger.focus(),o.state.open=!1):(o.showFlyout(),o.elements.closeButton.focus(),o.state.open=!0)})),(0,p.A)(this,"handleExpandable",(function(){o.state.expanded?o.shrinkFlyout():o.expandFlyout()})),(0,p.A)(this,"handleResize",(function(){o.updateFlyoutWidth()})),this.options={},(0,e.A)(this.options,{animationDelay:170,closeButtonClasses:"gform-flyout__close",closeButtonTitle:"",closeOnOutsideClick:!0,closeOnOutsideClickExceptions:[],content:"",expandable:!1,expandableTitle:"",expandableWidth:100,description:"",desktopWidth:60,direction:"right",id:(0,u.uniqueId)("flyout"),insertPosition:"beforeend",lockBody:!1,maxWidth:850,mobileBreakpoint:768,mobileWidth:100,onClose:function(){},onOpen:function(){},position:"fixed",renderOnInit:!0,showDivider:!0,simplebar:!1,target:"body",title:"",triggers:'[data-js="gform-trigger-flyout"]',wrapperClasses:"gform-flyout",zIndex:10},n),(0,u.trigger)({event:"gform/flyout/pre_init",native:!1,data:{instance:this}}),this.elements={},this.state={expanded:!1,open:!1,unExpandedWidth:0},this.options.renderOnInit&&this.init()}),[{key:"showFlyout",value:function(){var e=this.elements.flyout;this.options.onOpen(),u.simpleBar.reInitChildren(e),e.classList.add("gform-flyout--anim-in-ready"),(0,u.trigger)({event:"gform/flyout/open",native:!1,data:{instance:this}}),window.setTimeout((function(){e.classList.add("gform-flyout--anim-in-active")}),25)}},{key:"updateFlyoutWidth",value:function(){var e=this.options,t=e.animationDelay;if(e.expandable&&!this.state.expanded){var r=this.elements,o=r.flyout,n=r.expandableTrigger;(this.elements.resizeParent?this.elements.resizeParent.clientWidth:u.viewport.width())<=o.clientWidth+50?(o.classList.add("gform-flyout--hide-expander"),window.setTimeout((function(){n.style.display="none"}),t)):(n.style.display="",window.setTimeout((function(){o.classList.remove("gform-flyout--hide-expander")}),20))}}},{key:"expandFlyout",value:function(){var e=this,t=this.options,r=t.expandableWidth;if(t.expandable&&!this.state.expanded){var o=this.elements.flyout;this.state.unExpandedWidth=o.clientWidth,o.style.width="".concat(this.state.unExpandedWidth,"px"),o.style.transition="none",(0,u.delay)((function(){o.style.maxWidth="none"}),20).delay((function(){o.style.transition=""}),20).delay((function(){o.style.width="calc(".concat(r,"% - 50px)"),o.classList.add("gform-flyout--expanded"),e.state.expanded=!0}),20)}}},{key:"shrinkFlyout",value:function(){var e=this.options,t=e.animationDelay;if(e.expandable&&this.state.expanded){var r=this.elements.flyout;r.style.width="".concat(this.state.unExpandedWidth,"px"),r.classList.remove("gform-flyout--expanded"),window.setTimeout((function(){r.style.width="",r.style.maxWidth=""}),t),this.state.expanded=!1}}},{key:"storeElements",value:function(){var e=(0,u.getNodes)(this.options.id)[0];this.elements={activeTrigger:null,content:(0,u.getNodes)("flyout-content",!1,e)[0],closeButton:(0,u.getNodes)("gform-flyout-close",!1,e)[0],expandableTrigger:this.options.expandable?(0,u.getNodes)("gform-flyout-expand",!1,e)[0]:null,flyout:e,resizeParent:"fixed"===this.options.position?null:e.parentNode,triggers:(0,u.getNodes)(this.options.triggers,!0,document,!0)}}},{key:"render",value:function(){var e=document.querySelectorAll(this.options.target)[0];e?(e.insertAdjacentHTML(this.options.insertPosition,Ps(this.options)),(0,u.consoleInfo)("Gravity Forms Admin: Initialized flyout component on ".concat(this.options.target,"."))):(0,u.consoleError)("Flyout could not render as ".concat(this.options.target," could not be found."))}},{key:"bindEvents",value:function(){var e=this;this.elements.flyout.addEventListener("keydown",this.handleKeyEvents),this.elements.closeButton.addEventListener("click",this.closeFlyout),(0,u.getNodes)(this.options.triggers,!0,document,!0).forEach((function(t){return t.addEventListener("click",e.handleTriggerClick)})),(0,u.resize)(this.handleResize),document.addEventListener("gform/flyout/close",this.maybeCloseFlyout),document.addEventListener("gform/flyout/close-all",this.closeFlyout),this.options.expandable&&this.elements.expandableTrigger.addEventListener("click",this.handleExpandable),this.options.closeOnOutsideClick&&document.addEventListener("click",function(e){this.elements.flyout.contains(e.target)||!this.state.open||(0,u.getClosest)(e.target,"#TB_window")||(0,u.matchesOrContainedInSelectors)(e.target,this.options.closeOnOutsideClickExceptions)||this.closeFlyout()}.bind(this))}},{key:"init",value:function(){this.render(),this.storeElements(),this.bindEvents(),this.updateFlyoutWidth(),(0,u.trigger)({event:"gform/flyout/post_render",native:!1,data:{instance:this}})}}])}();function Os(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ws(e){for(var t=1;t").concat(r,"")},Vs=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{content:"",customClasses:[],id:(0,u.uniqueId)("heading"),rendered:!1,renderOnInit:!0,size:"display-3xl",spacing:"",tagName:"h1",target:"",targetPosition:"afterbegin",weight:"semibold"},o),(0,u.trigger)({event:"gform/heading/pre_init",native:!1,data:{instance:this}}),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,Us(this.options));this.elements.heading=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/heading/post_render",native:!1,data:{instance:this}})}}])}();function $s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Zs(e){for(var t=1;t").concat(r,"\n\t")},Ys=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{content:"",customAttributes:{},customClasses:[],id:"",rendered:!1,renderOnInit:!0,size:"text-xs",spacing:"",target:"",targetPosition:"afterbegin",weight:"regular"},o),(0,u.trigger)({event:"gform/help_text/pre_init",native:!1,data:{instance:this}}),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,Js(this.options));this.elements.helpText=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/help_text/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized help text component on ".concat(this.options.target,"."))}}])}();function Qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Xs(e){for(var t=1;t'):"",I=f||g||r?"":"",L=f?'
    '.concat(f,"
    "):"",z=g?'
    '.concat(g,"
    "):"",H="";if(r&&(H='\n\t\t\t\n\t\t')),v&&("radio"===_||"checkbox"===_)){var M=d?' for="'.concat(d,'"'):"";F="\n\t\t\t\n\t\t\t\t").concat(v,"\n\t\t\t\n\t\t")}var W=(0,u.objectToAttributes)(Xs(Xs({},i),{},{id:d,type:_,value:x,class:["gform-input","gform-input--theme-".concat(E),"radio"!==_&&"checkbox"!==_&&"gform-input","radio"!==_&&"checkbox"!==_&&"gform-input--text",("radio"===_||"checkbox"===_)&&"gform-input--".concat(_)].concat(c(Object.keys((0,u.spacerClasses)(j))),c(p))}));return"\n\t\t".concat(N,"\n\t\t\t").concat(L,"\n\t\t\t\n\t\t\t").concat(z,"\n\t\t\t").concat(H,"\n\t\t").concat(I,"\n\t\t").concat(F,"\n\t")},ti=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{actionButton:!1,actionButtonIcon:"eye",customAttributes:{},customClasses:[],id:"",inputPrefix:"",inputSuffix:"",label:"",labelAttributes:"",labelClasses:"",placeholder:"",rendered:!1,renderOnInit:!0,spacing:"",target:"",targetPosition:"afterbegin",theme:"cosmos",type:"text",value:""},o),(0,u.trigger)({event:"gform/input/pre_init",native:!1,data:{instance:this}}),this.options.id=this.options.id||(0,u.uniqueId)("toggle"),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,ei(this.options));this.elements.input=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/input/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized input component.")}}])}(),ri=["customClasses"];function oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ni(e){for(var t=1;t").concat(p,"\n\t")},gi=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{customAttributes:{},customClasses:[],htmlFor:"",label:"",isVisible:!0,rendered:!1,renderOnInit:!0,size:"text-sm",spacing:"",target:"",targetPosition:"afterbegin",weight:"medium"},o),(0,u.trigger)({event:"gform/label/pre_init",native:!1,data:{instance:this}}),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,yi(this.options));this.elements.label=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/label/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized label component on ".concat(this.options.target,"."))}}])}();function bi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function vi(e){for(var t=1;t\n\t\t\t').concat(d,"\n\t\t\n\t")},Pi=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{customAttributes:{},customClasses:[],href:"",id:"",label:"",linkTarget:"_self",rendered:!1,renderOnInit:!0,spacing:"",target:"",targetPosition:"afterbegin",theme:"cosmos"},o),(0,u.trigger)({event:"gform/link/pre_init",native:!1,data:{instance:this}}),this.options.id=this.options.id||(0,u.uniqueId)("toggle"),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,hi(this.options));this.elements.link=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/link/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized link component.")}}])}();function Ti(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Oi(e){for(var t=1;tn&&a>i||(le(o,n,q),e.index=n)}}},drop:function(e){he((0,u.sprintf)(M.endDrop,q,e.index))}}),We=(0,y.A)(Me,2),qe=We[0].handlerId,Ge=We[1];se&&Z&&Y?ze(Ge(je)):ye&&Z&&Y&&(ze(Ce),He(Ge(je)));var Ke={className:"gform-repeater-item__wrapper"},Ue=ia({className:(0,g.classnames)(["gform-repeater-item__block-header"],a),size:"text-sm",weight:"medium"},s),Ve=ia({size:"size-height-m",type:Te===oa?"icon-white":"white",icon:"trash",iconPosition:"leading",label:M.deleteLabel,onClick:function(){return C(K,q)},disabled:pe&&oe<=pe,customClasses:(0,g.classnames)(["gform-repeater-item__delete"],A)},w),$e=ia({size:"size-height-m",type:"unstyled",iconPrefix:"gform-common-icon",icon:"chevron-down",onClick:function(e){m(K,q)},customClasses:(0,g.classnames)(["gform-repeater-item__collapsible"],T)},h),Ze=ia({className:(0,g.classnames)(ia((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({"gform-repeater-item":!0},"gform-repeater-item--type-".concat(Te),Te),"gform-repeater-item--has-arrows",me&&Y),"gform-repeater-item--has-drag-handle",ye&&Z&&Y),"gform-repeater-item--is-draggable",Z&&Y),"gform-repeater-item--is-sortable",Y),"gform-repeater-item--is-collapsed",V),"gform-repeater-item--is-dragging",Le),"gform-repeater-item--fill-content",L),"gform-repeater-item--disable-item-drag",!se),"gform-repeater-item--is-keyboard-nav",ke),(0,u.spacerClasses)(ae)),te),"data-index":K,"data-handler-id":qe,id:q},X);return g.React.createElement("div",(0,e.A)({},Ze,{ref:je}),g.React.createElement("div",Ke,function(){if(!((me||ye&&Z)&&Y))return null;var e=ia({size:"size-height-m",type:"icon-white",icon:"drag-indicator",label:M.dragLabel,customAttributes:{onKeyDown:Fe},onClick:function(e){return Be()},customClasses:(0,g.classnames)(["gform-repeater-item__control","gform-repeater-item__control--drag-toggle"],N),ref:ye&&!se?Ce:void 0,disabled:1===oe},F),t=ia({size:"size-height-m",type:"icon-white",label:(0,u.sprintf)(M.upLabel,q),iconPrefix:"gform-common-icon",icon:"chevron-up",onClick:function(e){return Se(0,"up")},customClasses:(0,g.classnames)(["gform-repeater-item__control","gform-repeater-item__control--up"],Ae),disabled:1===oe||1!==oe&&0===K},we),r=ia({size:"size-height-m",type:"icon-white",label:(0,u.sprintf)(M.downLabel,q),iconPrefix:"gform-common-icon",icon:"chevron-down",onClick:function(e){return Se(0,"down")},customClasses:(0,g.classnames)(["gform-repeater-item__control","gform-repeater-item__control--down"],k),disabled:1===oe||1!==oe&&K===oe-1},R),o=(0,g.classnames)(["gform-repeater-item__controls"]);return g.React.createElement("div",{className:o},ye&&Z&&Y&&g.React.createElement(S,e),me&&Y&&g.React.createElement(S,t),me&&Y&&g.React.createElement(S,r))}(),Te===ra&&o&&g.React.createElement(H.A,Ue,o),Te===oa&&l,be&&Te===oa&&g.React.createElement(S,Ve),b&&Te===ra&&g.React.createElement(S,$e)),Te===ra&&g.React.createElement("div",{className:"gform-repeater-item__block-content"},l,be&&g.React.createElement(S,Ve)))};la.propTypes={blockContentTitle:g.PropTypes.string,blockHeaderAttributes:g.PropTypes.object,blockHeaderClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string]),children:g.PropTypes.node,collapseItem:g.PropTypes.func,collapsible:g.PropTypes.bool,collapsibleButtonAttributes:g.PropTypes.object,collapsibleButtonClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string]),deleteButtonAttributes:g.PropTypes.object,deleteButtonClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string]),deleteItem:g.PropTypes.func,downButtonAttributes:g.PropTypes.object,downButtonClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string]),dragHandleAttributes:g.PropTypes.object,dragHandleClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string]),fillContent:g.PropTypes.bool,i18n:g.PropTypes.object,id:g.PropTypes.string.isRequired,index:g.PropTypes.number.isRequired,isCollapsed:g.PropTypes.bool,isDraggable:g.PropTypes.bool,isSortable:g.PropTypes.bool,itemAttributes:g.PropTypes.object,itemClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string]),itemCount:g.PropTypes.number,itemDraggable:g.PropTypes.bool,itemSpacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),minItems:g.PropTypes.number,moveItem:g.PropTypes.func.isRequired,showArrows:g.PropTypes.bool,showDragHandle:g.PropTypes.bool,showDelete:g.PropTypes.bool,speak:g.PropTypes.func,type:g.PropTypes.string,upButtonAttributes:g.PropTypes.object,upButtonClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string])};var da=la;function ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function fa(e){for(var t=1;t=ne)},r),Me=fa({id:"".concat($,"-repeater-screen-reader-text"),className:(0,g.classnames)(["gform-repeater__screen-reader-text","gform-visually-hidden"],ge),"aria-live":"polite"},fe),We=fa({className:(0,g.classnames)(fa((0,p.A)({"gform-repeater":!0,"gform-repeater--collapsible":m},"gform-repeater--type-".concat(Ee),!0),(0,u.spacerClasses)(je)),w),id:"".concat($,"-list-wrapper")},T);return g.React.createElement("div",We,g.React.createElement("div",Me,Se),ee.map((function(e,t){return g.React.createElement(da,{blockContentTitle:(null==e?void 0:e.repeater_item_block_content_title)||"",blockHeaderAttributes:i,blockHeaderClasses:l,collapseItem:Ie,collapsible:m,collapsibleButtonAttributes:b,collapsibleButtonClasses:h,deleteButtonAttributes:A,deleteButtonClasses:C,deleteItem:Le,downButtonAttributes:R,downButtonClasses:k,dragHandleAttributes:F,dragHandleClasses:N,fillContent:L,i18n:H,id:e.repeater_item_id,index:t,isCollapsed:e.repeater_item_collapsed,isDraggable:W,isSortable:G,itemAttributes:J,itemClasses:Q,itemCount:ee.length,itemDraggable:U,itemSpacing:re,key:e.repeater_item_id,minItems:ie,moveItem:ze,showArrows:Pe,showDelete:Oe,showDragHandle:De,speak:Ne,type:Ee,upButtonAttributes:_e,upButtonClasses:xe},de(e,t))})),ve&&g.React.createElement(S,He))};ga.propTypes={addButtonAttributes:g.PropTypes.object,addButtonClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),blockHeaderAttributes:g.PropTypes.object,blockHeaderClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),collapsible:g.PropTypes.bool,collapsibleButtonAttributes:g.PropTypes.object,collapsibleButtonClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),customAttributes:g.PropTypes.object,customClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),deleteButtonAttributes:g.PropTypes.object,deleteButtonClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),downButtonAttributes:g.PropTypes.object,downButtonClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),dragHandleAttributes:g.PropTypes.object,dragHandleClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),fillContent:g.PropTypes.bool,i18n:g.PropTypes.object,id:g.PropTypes.string.isRequired,items:g.PropTypes.array,isDraggable:g.PropTypes.bool,isSortable:g.PropTypes.bool,itemAttributes:g.PropTypes.object,itemClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),itemDraggable:g.PropTypes.bool,itemSpacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),maxItems:g.PropTypes.number,minItems:g.PropTypes.number,newItemState:g.PropTypes.object,onChange:g.PropTypes.func,renderItem:g.PropTypes.elementType,screenReaderAttributes:g.PropTypes.object,screenReaderClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string]),showAdd:g.PropTypes.bool,showArrows:g.PropTypes.bool,showDelete:g.PropTypes.bool,showDragHandle:g.PropTypes.bool,spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),type:g.PropTypes.oneOf([ra,oa]),upButtonAttributes:g.PropTypes.object,upButtonClasses:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.func,g.PropTypes.array,g.PropTypes.string])},ga.displayName="Repeater";var ba=ga,va=["children","customAttributes","customClasses","Header","layoutTagName","SecondaryContentChildren","SideBarChildren","sidebarMobilePosition"];function ha(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Pa(e){for(var t=1;t\n\t\t\t\t").concat(i,"\n\t\t\t\n\t\t")},U=w.map((function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,u.isObject)(e)&&!(0,u.isEmptyObject)(e)?Object.entries(e).map((function(t){var r=(0,y.A)(t,1)[0];return e[r]})):e}(e.choices);return t.length?'\n\t\t\t\n\t\t\t\t').concat(t.map((function(e){return K(e)})),"\n\t\t\t\n\t\t"):K(e)})),V=Js(G);return"\n\t\t<".concat(S," ").concat(H,">\n\t\t\t").concat(yi(q),"\n\t\t\t").concat("above"===d?V:"",'\n\t\t\t
    \n\t\t\t\t\n\t\t\t
    \n\t\t\t").concat("below"===d?V:"","\n\t\t\n\t")},Wa=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{customAttributes:{},customClasses:[],disabled:!1,helpTextAttributes:{},helpTextPosition:"below",id:"",initialValue:"",labelAttributes:{},name:"",options:[],rendered:!1,renderOnInit:!0,size:"size-r",spacing:"",theme:"cosmos",target:"",targetPosition:"afterbegin",wrapperAttributes:{},wrapperClasses:[],wrapperTagName:"div",ariaLabel:""},o),(0,u.trigger)({event:"gform/select/pre_init",native:!1,data:{instance:this}}),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,Ma(this.options));this.elements.select=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/select/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized select component.")}}])}(),qa=["ariaLive","children","closeButtonAttributes","closeButtonClasses","customAttributes","customClasses","delay","errorIconAttributes","errorIconClasses","id","interactive","message","onDismiss","spacing","successIconAttributes","successIconClasses","theme","type"];function Ga(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ka(e){for(var t=1;t\n\t")},oc=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{customAttributes:{},customClasses:[],id:"",rendered:!1,renderOnInit:!0,spacing:"",target:"",targetPosition:"afterbegin",theme:"cosmos"},o),(0,u.trigger)({event:"gform/stacked_icon/pre_init",native:!1,data:{instance:this}}),this.options.id=this.options.id||(0,u.uniqueId)("toggle"),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,rc(this.options));this.elements.stackedIcon=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/stacked_icon/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized stackedIcon component.")}}])}();function nc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function sc(e){for(var t=1;t\n\t\t\t").concat(f,"\n\t\t\n\t")},ac=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{customAttributes:{},customClasses:[],hasDot:!0,id:"",isStatic:!1,label:"",pill:!0,rendered:!1,renderOnInit:!0,size:"sm",spacing:"",status:"active",target:"",targetPosition:"afterbegin",theme:"cosmos"},o),(0,u.trigger)({event:"gform/status_indicator/pre_init",native:!1,data:{instance:this}}),this.options.id=this.options.id||(0,u.uniqueId)("toggle"),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,ic(this.options));this.elements.statusIndicator=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/status_indicator/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized statusIndicator component.")}}])}();function cc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var pc=(0,g.React.forwardRef)((function(t,r){var o=t.activeStep,n=void 0===o?1:o,s=t.customAttributes,i=void 0===s?{}:s,a=t.customClasses,l=void 0===a?[]:a,d=t.icon,m=void 0===d?"check-mark-alt":d,f=t.iconPrefix,y=void 0===f?"gform-common-icon":f,v=t.numSteps,h=void 0===v?1:v,P=t.spacing,T=void 0===P?"":P,O=(0,g.classnames)(function(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],o={className:(0,g.classnames)({"gform-input--swatch__option":!0}),key:t},n=dc({htmlFor:"".concat(P,"_").concat(e,"_").concat(t),label:(null==l?void 0:l.swatch)||"",isVisible:!1},v),s={onChange:ie,type:"radio",name:P,value:e,id:"".concat(P,"_").concat(e,"_").concat(t),checked:e===S};r&&(s.onClick=function(){H(e),Q({current:te.current[t]}),G(t),x(!0)});var i={className:(0,g.classnames)({"gform-input--swatch__option-preview":!0}),style:{backgroundColor:e},onClick:function(r){r.target.classList.contains("gform-input--swatch-delete")?function(e){$((function(t){return t.filter((function(t,r){return r!==e}))})),se()}(t):document.getElementById("".concat(P,"_").concat(e,"_").concat(t)).click()},ref:r?function(e){return te.current[t]=e}:null},a={icon:"check",customClasses:(0,g.classnames)({"gform-input--swatch-selected":!0}),customAttributes:{style:{color:Be(e)}}},c={icon:"delete",customClasses:(0,g.classnames)({"gform-input--swatch-delete":!0})};return g.React.createElement("li",o,g.React.createElement(xe.A,n),g.React.createElement("input",s),g.React.createElement("span",i,e===S&&g.React.createElement(b.A,a),r&&g.React.createElement(b.A,c)))},ce=dc({className:(0,g.classnames)(dc({"gform-input--swatch":!0},(0,u.spacerClasses)(j)),c),id:m,"data-js-setting-name":P},i),pe={className:(0,g.classnames)({"gform-input--swatch-options":!0})},ue={name:"".concat(P,"-all-swatches"),defaultValue:JSON.stringify(V),id:"".concat(P,"-all-swatches"),type:"hidden",ref:X},le={value:z||"#ffffff",onSave:function(e){H(e),V.includes(e)||$((function(t){var r=t;return r[q]=e,r})),N(e),x(!1)},onCancel:se,triggerRef:Y,i18n:(null==l?void 0:l.colorPicker)||{}};return g.React.createElement("div",(0,e.A)({},ce,{ref:r}),g.React.createElement("div",{style:{height:"0"}}),g.React.createElement("ul",pe,O.map((function(e,t){return ae(e,t)})),V.map((function(e,t){return ae(e,t,!0)})),n&&(re={className:(0,g.classnames)({"gform-input--swatch__option":!0,"gform-input--swatch__option--new":!0}),key:"add-new"},oe={className:(0,g.classnames)({"gform-input--swatch__option-preview":!0,"gform-input--swatch__option-preview--new":!0}),onClick:function(){Q(ee),G(V.length+1),x(!0)},ref:ee},ne={icon:"plus-regular"},g.React.createElement("li",re,g.React.createElement("span",oe,g.React.createElement(b.A,ne))))),k&&g.React.createElement(We,le),g.React.createElement("input",ue))}));gc.propTypes={allowNew:g.PropTypes.bool,customAttributes:g.PropTypes.object,customClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),i18n:g.PropTypes.object,id:g.PropTypes.string,labelAttributes:g.PropTypes.object,name:g.PropTypes.string,palette:g.PropTypes.array,paletteCustom:g.PropTypes.array,spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),value:g.PropTypes.string},gc.displayName="Swatch";var bc=gc,vc=function(e){var t=e.data,r=void 0===t?{}:t,o=e.outerBorder,n=void 0===o||o,s=e.responsive,i=["gform-table"];void 0!==s&&s&&i.push("gform-table--responsive"),n||i.push("gform-table--no-outer-border");var a=i.join(" "),c="",p="";return null!=r&&r.thead&&(c+="",c+=r.thead.map((function(e){return'').concat(e.content,"")})).join(""),c+=""),null!=r&&r.tbody&&(p+="",p+=r.tbody.map((function(e){return"".concat(e.map((function(e){return'').concat(e.content,"")})).join(""),"")})).join(""),p+=""),'\n\t\t').concat(c,"\n\t\t").concat(p,"\n\t
    ")};function hc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Pc(e){for(var t=1;t").concat(r,"")},Ec=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{content:"",customClasses:[],id:(0,u.uniqueId)("gform-text"),rendered:!1,renderOnInit:!0,size:"text-md",spacing:"",tagName:"div",target:"",targetPosition:"afterbegin",weight:"regular"},o),(0,u.trigger)({event:"gform/text/pre_init",native:!1,data:{instance:this}}),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,Cc(this.options));this.elements.text=(0,u.getNode)("#".concat(this.options.id),document,!0)}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/text/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized text component on ".concat(this.options.target,"."))}}])}();function Rc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=(0,u.objectToAttributes)(_c({class:["gform-label","gform-input__label","gform-input__label--textarea",n?"":"gform-visually-hidden"].concat(c(o)),for:e},r));return"\n\t\t\n\t")}(p,d,f,g,v),L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=(0,u.objectToAttributes)({class:["gform-input-help-text"],id:"".concat(t,"-help-text")});return"\n\t\t\n\t\t\t").concat(e,"\n\t\t\n\t")}(i,p);return"\n\t\t<".concat(B," ").concat(S,">\n\t\t\t").concat(d&&I,"\n\t\t\t\n\t\t\t").concat(i&&L,"\n\t\t\n\t")},xc=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{customAttributes:{},customClasses:[],helpText:"",id:"",label:"",labelCustomAttributes:{},labelCustomClasses:[],labelVisible:!0,placeholder:"",rendered:!1,renderOnInit:!0,spacing:"",target:"",targetPosition:"afterbegin",theme:"cosmos",value:"",wrapperCustomAttributes:{},wrapperCustomClasses:[],wrapperTagName:"div"},o),(0,u.trigger)({event:"gform/textarea/pre_init",native:!1,data:{instance:this}}),this.options.id=this.options.id||(0,u.uniqueId)("textarea"),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,kc(this.options));this.elements.textarea=(0,u.getNode)("#".concat(this.options.id),document,!0),this.elements.wrapper=this.elements.textarea.parentNode}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/textarea/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized textarea component.")}}])}();function Fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Bc(e){for(var t=1;t\n\t\t\t\n\t\t\t\n\t\t\t\t').concat(g,"\n\t\t\t\n\t\t\n\t")},Nc=function(){return s((function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,r),this.options={},(0,e.A)(this.options,{customAttributes:{},customClasses:[],disabled:!1,icons:!1,id:"",initialChecked:!1,label:"",labelPosition:"right",labelVisible:!1,name:"",rendered:!1,renderOnInit:!0,size:"size-s",spacing:"",target:"",targetPosition:"afterbegin",theme:"cosmos"},o),(0,u.trigger)({event:"gform/toggle/pre_init",native:!1,data:{instance:this}}),this.options.id=this.options.id||(0,u.uniqueId)("toggle"),this.elements={},this.options.renderOnInit&&this.init()}),[{key:"render",value:function(){var e=this.options,t=e.rendered,r=e.target,o=e.targetPosition;t||(0,u.getNode)(r,document,!0).insertAdjacentHTML(o,Sc(this.options));this.elements.input=(0,u.getNode)("#".concat(this.options.id),document,!0),this.elements.wrapper=this.elements.input.parentNode}},{key:"init",value:function(){this.render(),(0,u.trigger)({event:"gform/toggle/post_render",native:!1,data:{instance:this}}),(0,u.consoleInfo)("Gravity Forms Admin: Initialized toggle component.")}}])}(),Ic=n(1440);function Lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function zc(e){for(var t=1;t0&&g.React.createElement("div",M,g.React.createElement("div",{className:"gform-video__placeholder-inner"},h.length>0&&g.React.createElement(H.A,T),c&&g.React.createElement(S,W))),w,i)}));Mc.propTypes={aspectRatio:g.PropTypes.string,children:g.PropTypes.oneOfType([g.PropTypes.arrayOf(g.PropTypes.node),g.PropTypes.node]),placeholderButton:g.PropTypes.bool,placeholderButtonProps:g.PropTypes.object,placeholderCustomClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object]),placeholderImage:g.PropTypes.string,placeholderText:g.PropTypes.string,placeholderTextProps:g.PropTypes.object,player:g.PropTypes.node,spacing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number,g.PropTypes.array,g.PropTypes.object]),wrapperAttributes:g.PropTypes.object,wrapperClasses:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.array,g.PropTypes.object])},Mc.displayName="Video";var Wc=Mc;function qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Gc(e){for(var t=1;tYoutube Se Video Download Kaise Kare Gallery Mein –<\/strong> \u092f\u0942\u091f\u094d\u092f\u0942\u092c \u0938\u0947 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u0917\u0948\u0932\u0930\u0940 \u092e\u0947\u0902 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0938\u092c\u0938\u0947 \u092a\u0939\u0932\u0947 \u092f\u0942\u091f\u094d\u092f\u0942\u092c \u092e\u0947\u0902 \u0935\u094b \u0935\u0940\u0921\u093f\u092f\u094b \u0913\u092a\u0928 \u0915\u0930\u0928\u093e \u0939\u094b\u0917\u093e\u0964 \u091c\u093f\u0938 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u0906\u092a \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902, \u092b\u093f\u0930 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u0947 \u0928\u0940\u091a\u0947 \u0936\u0947\u092f\u0930 \u092a\u0930 \u0915\u094d\u0932\u093f\u0915 \u0915\u0930\u0915\u0947 \u092f\u0942\u0906\u0930\u090f\u0932 \u0915\u094b \u0915\u0949\u092a\u0940 \u0915\u0930\u0928\u093e \u0939\u0948\u0964 \u092b\u093f\u0930 \u0907\u0938\u0915\u0947 \u092c\u093e\u0926 yt1s.com \u0915\u0940 \u0935\u0947\u092c\u0938\u093e\u0907\u091f \u092a\u0930 \u091c\u093e\u0915\u0930 \u092f\u0942\u0906\u0930\u090f\u0932 \u0915\u094b \u092a\u0947\u0938\u094d\u091f \u0915\u0930\u0915\u0947 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u092a\u0930 \u091f\u0948\u092a \u0915\u0930\u0947\u0902\u0964<\/p>\n\n\n\n
    \"YouTube
    YouTube Se Video Download Kaise Kare Gallery Mein<\/figcaption><\/figure>\n\n\n\n

    Youtube Se Video Download Kaise Kare Gallery Mein –<\/strong> \u091c\u092c \u0906\u092a YouTube \u092a\u0930 \u0935\u0940\u0921\u093f\u092f\u094b \u0926\u0947\u0916\u0924\u0947 \u0939\u0948\u0902, \u0924\u094b \u0906\u092a\u0915\u094b \u0905\u0915\u094d\u0938\u0930 \u0915\u094b\u0908 \u0935\u0940\u0921\u093f\u092f\u094b \u092a\u0938\u0902\u0926 \u0906\u0924\u093e \u0939\u0948 \u0914\u0930 \u0906\u092a \u0909\u0938\u0947 \u0905\u092a\u0928\u0947 \u092e\u094b\u092c\u093e\u0907\u0932 \u0917\u0948\u0932\u0930\u0940 \u092e\u0947\u0902 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902\u0964 \u092c\u0939\u0941\u0924 \u0938\u0947 YouTube \u0935\u094d\u092f\u0942\u0905\u0930 \u0907\u0938\u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947\u0902 \u0938\u094b\u091a\u0924\u0947 \u0939\u0948\u0902 \u0932\u0947\u0915\u093f\u0928 \u0909\u0928\u094d\u0939\u0947\u0902 \u092f\u0939 \u092a\u0924\u093e \u0928\u0939\u0940\u0902 \u0939\u094b\u0924\u093e \u0915\u0940 \u092f\u0942\u091f\u094d\u092f\u0942\u092c \u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0948\u0938\u0947 \u0915\u0930\u0947\u0902\u0964<\/p>\n\n\n\n

    \u0906\u091c \u0915\u0947 \u0907\u0938 \u0906\u0930\u094d\u091f\u093f\u0915\u0932 \u092e\u0947\u0902, \u0939\u092e \u092c\u093e\u0924 \u0915\u0930\u0947\u0902\u0917\u0947 Youtube Video Download Kaise Kare Gallery Me \u0935\u094b \u092d\u0940 \u092c\u093f\u0928\u093e \u0915\u093f\u0938\u0940 \u0910\u092a \u0915\u0947\u0964 \u091c\u0940 \u0939\u093e\u0902, \u092e\u0948\u0902 \u092c\u093e\u0924 \u0915\u0930 \u0930\u0939\u093e \u0939\u0942\u0902 \u092f\u0942\u091f\u094d\u092f\u0942\u092c \u0938\u0947 \u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0915\u0947 \u095e\u094b\u0928 \u0915\u0940 \u0917\u0948\u0932\u0930\u0940 \u092e\u0947\u0902 \u0938\u0947\u0935 \u0915\u0930\u0928\u0947 \u0915\u0940\u0964 \u0905\u0917\u0930 \u0906\u092a \u092d\u0940 \u092f\u0942\u091f\u094d\u092f\u0942\u092c \u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0928\u0947 \u0915\u0940 \u0938\u094b\u091a \u0930\u0939\u0947 \u0939\u0948\u0902, \u0924\u094b \u0906\u092a \u0938\u0939\u0940 \u091c\u0917\u0939 \u092a\u0930 \u0906\u092f\u0947 \u0939\u0948\u0964<\/p>\n\n\n\n

    \u0906\u091c \u0939\u092e \u0906\u092a\u0915\u094b \u092a\u0942\u0930\u093e \u0938\u094d\u091f\u0947\u092a \u092c\u093e\u092f \u0938\u094d\u091f\u0947\u092a \u092c\u0924\u093e\u0928\u0947 \u0935\u093e\u0932\u0947 \u0939\u0948\u0902 \u0915\u093f \u0906\u092a \u0915\u0948\u0938\u0947 \u092f\u0942\u091f\u094d\u092f\u0942\u092c \u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0915\u0947 \u0905\u092a\u0928\u0947 \u092e\u094b\u092c\u093e\u0907\u0932 \u0915\u0940 \u0917\u0948\u0932\u0930\u0940 \u0928\u0947 \u0938\u0947\u0935 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0905\u0917\u0930 \u0906\u092a \u092d\u0940 YouTube \u0938\u0947 \u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902, \u0924\u094b \u092a\u0942\u0930\u0947 \u0906\u0930\u094d\u091f\u093f\u0915\u0932 \u0915\u094b \u092a\u0922\u093c\u0947\u0902\u0964 \u0924\u094b \u0906\u0907\u090f \u091c\u093e\u0928\u0924\u0947 \u0939\u0948\u0964<\/p>\n\n\n\n