diff --git a/assets/js/admin-views.min.js b/assets/js/admin-views.min.js index 1182dbbf2..7cf34f945 100644 --- a/assets/js/admin-views.min.js +++ b/assets/js/admin-views.min.js @@ -1 +1 @@ -!function($){var viewConfiguration,viewGeneralSettings;$.widget.bridge("gvTooltip",$.ui.tooltip);const $spinner=$('');viewConfiguration={startFreshStatus:!1,hasUnsavedChanges:!1,altKey:!1,dialogWidth:750,performingAjaxAction:!1,init:function(){var vcfg=viewConfiguration;vcfg.gvSelectForm=$("#gravityview_form_id"),vcfg.gvSwitchView=$("#gv_switch_view_button"),vcfg.currentFormId=vcfg.gvSelectForm.val(),vcfg.currentDirectoryTemplate=$("#gravityview_directory_template").val(),vcfg.currentSingletemplate=$("#gravityview_single_template").val(),vcfg.directAccessSelect=$("#gv-direct-access-select"),vcfg.toggleInitialVisibility(vcfg),$(document.body).on("keydown keyup",vcfg.altKeyListener).on("change","#gravityview_form_id",vcfg.formChange).on("click",'a[href="#gv_start_fresh"]',vcfg.startFresh).on("click","#publish, #save-post",vcfg.processFormSubmit).on("submit","#post",vcfg.processFormSubmit).on("click",".gv-view-types-hover",vcfg.selectTemplateHover).on("click","a[rel*=external]",vcfg.openExternalLinks).on("click mouseup keyup",vcfg.closeTooltips).on("click",'.gv-field-filter-form span[role="button"]',vcfg.switchTooltipLayout).on("click","#gv_switch_view_button",vcfg.switchView).on("click",".clear-all-fields",vcfg.removeAllFields).on("click",".gv_select_template",vcfg.selectTemplate).on("change","select[data-view-dropdown]",vcfg.selectTemplate).on("click",".ui-tooltip-content .gv-fields",vcfg.startAddField).on("click",".gv-add-field-before",function(){$(this).closest(".active-drop-container").find("a.gv-add-field").trigger("click",{before:$(this).closest(".gv-fields")})}).on("click",".gv-field-duplicate",vcfg.duplicateField).on("click","#gv-direct-access .edit-direct-access",vcfg.editDirectAccess).on("click","#gv-direct-access-select .cancel-direct-access",vcfg.cancelDirectAccess).on("click","#gv-direct-access-select .save-direct-access",vcfg.updateDirectAccess).on("gravityview_form_change",vcfg.updateFormLinks).on("gravityview_form_change",vcfg.updateWidgetFormIds).on("change",".gv-dialog-options input[name*=show_as_link]",vcfg.toggleShowAsEntry).on("change",".gv-dialog-options input[name*=only_loggedin]",vcfg.toggleCustomVisibility).on("change",".gv-dialog-options [name*=allow_edit_cap]",vcfg.toggleCustomVisibility).on("click",".gv-field-controls .gv-remove-field",vcfg.removeField).on("click",".gv-field-controls .gv-field-settings",vcfg.openFieldSettings).on("dblclick",".gv-fields:not(.gv-nonexistent-form-field)",vcfg.openFieldSettings).on("change","#gravityview_settings",vcfg.changedSettingsAction).on("click",".gv-field-details--toggle",function(e){var $dialog=$(this).parents(".ui-dialog"),was_closed=$(".gv-field-details",$dialog).hasClass("gv-field-details--closed");return viewConfiguration.toggleFieldDetails($dialog,was_closed),$.cookie("gv-field-details-expanded",was_closed,{path:gvGlobals.admin_cookiepath}),!1}).on("search keydown keyup",".gv-field-filter-form input:visible",vcfg.setupFieldFilters).on("click",".gv-section .is-dismissible .notice-dismiss",function(e){var warning_name=$(this).parents(".gv-section").attr("id")+"-"+$("#post_ID").val();$.cookie("warning-dismissed-"+warning_name,1,{path:gvGlobals.admin_cookiepath}),$(document.body).trigger("gravityview/tabs-ready")}).on("gravityview/loaded gravityview/tabs-ready gravityview/field-added gravityview/field-removed gravityview/all-fields-removed gravityview/show-as-entry gravityview/view-config-updated",vcfg.toggleTabConfigurationWarnings).on("gravityview/loaded gravityview/tabs-ready gravityview/field-added gravityview/field-removed gravityview/all-fields-removed gravityview/show-as-entry gravityview/view-config-updated",vcfg.toggleRemoveAllFields).on("search keydown keyup",".gv-field-filter-form input:visible",vcfg.setupFieldFilters).on("gravityview/loaded",function(){$(".gv-setting-list, #gravityview_settings").on("change",vcfg.toggleCheckboxes).trigger("change")}).on("change",".gv-dialog-options",vcfg.toggleCheckboxes).on("focus",".gv-add-field",function(e){$(this).parent(".gv-fields").addClass("trigger--hover")}).on("blur",".gv-add-field",function(e){$(this).parent(".gv-fields").removeClass("trigger--hover")}).on("keydown",".gv-add-field",function(e){return 13!==e.keyCode&&32!==e.keyCode||void $(this).parent(".gv-fields").addClass("trigger--active")}).on("keyup",".gv-add-field",function(e){return 13!==e.keyCode&&32!==e.keyCode||void $(this).parent(".gv-fields").removeClass("trigger--active")}).on("gravityview/dropdown/activate gravityview/dropdown/install",vcfg.enableLockedTemplate),$(window).on("resize",function(){var $open_dialog=$(".ui-dialog:visible").find(".ui-dialog-content");$open_dialog.dialog("option","position",{my:"center",at:"center",of:window});var window_width=vcfg.dialogWidth,ninety_five_per=.95*$(window).width();vcfg.dialogWidth>ninety_five_per&&(window_width=ninety_five_per),$open_dialog.dialog("option","width",window_width)}),window.addEventListener("beforeunload",event=>{vcfg.hasUnsavedChanges&&event.preventDefault()}),gvGlobals.passed_form_id&&vcfg.gvSelectForm.trigger("change");var _sendToEditor=window.send_to_editor;window.send_to_editor=function(val){var cursorPosition=$("#"+window.wpActiveEditor);if(!cursorPosition.hasClass("codemirror")&&_sendToEditor)return _sendToEditor(val);var codeMirror=cursorPosition.next(".CodeMirror")[0].CodeMirror,cursorPosition=codeMirror.getCursor();codeMirror.replaceRange(val,window.wp.CodeMirror.Pos(cursorPosition.line,cursorPosition.ch))},$("div .gform-dropdown__trigger").on("click.gravityforms",vcfg.sendMergeTagValueToCodemirrorEditor)},getCookieVal:function(cookie){return!(!cookie||"undefined"===cookie||"false"===cookie)&&cookie},toggleTabConfigurationWarnings:function(e){var tabs={single:{configured:$(".gv-dialog-options input[name*=show_as_link]:checked","#directory-active-fields").length||$('[data-fieldid="entry_link"]',"#directory-active-fields").length,icon:"dashicons-media-default"},edit:{configured:$('.gv-fields .field-key[value="edit_link"]').length,icon:"dashicons-welcome-write-blog"}};$.each(tabs,function(index,value){var show_warning=index+"-fields-"+$("#post_ID").val(),dismissed_warning=viewConfiguration.getCookieVal($.cookie("warning-dismissed-"+show_warning));const $fields_section=$("#"+index+"-fields");show_warning=$fields_section.find(".active-drop .gv-fields").length,show_warning=!dismissed_warning&&0===value.configured&&0",{class:"gv-error-message",text:error})))},validateValue(value,rules){if(rules){var i,validators=viewConfiguration.getValidators();for(i in rules)if(rules.hasOwnProperty(i)){var parts=rules[i],rule=parts.rule,message=parts.message,param="",isValid=!0;if(rule.includes(":")&&(rule=(parts=rule.split(/:(.+)/))[0],param=parts[1]),!(isValid=validators[rule]?validators[rule](value,param):isValid))return message}}},getValidators:function(){return{required:function(value){return null!=value&&""!==value.toString().trim()},max:function(value,max){return null!=value&&Number(value)<=max},min:function(value,min){return null!=value&&Number(value)>=min},email:function(value){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)},integer:function(value){return Number.isInteger?Number.isInteger(Number(value)):Number(value)%1==0},matches:function(value,pattern){return new RegExp(pattern).test(value)}}},zebraStripeSettings:function(){setTimeout(function(){viewGeneralSettings.metaboxObj.find("table").each(function(){var $trs=$(this).find("tr").filter(":visible");$trs.removeClass("alternate"),$trs.filter(":even").addClass("alternate")})},50)},toggleCheckboxes:function($parent){$parent=$parent.currentTarget||$parent;viewConfiguration.toggleRequired($parent,"requires",!1),viewConfiguration.toggleRequired($parent,"requires-not",!0);$parent=$($parent).is(".gv-fields")?$($parent):$($parent).parents(".gv-fields");$parent.length&&(viewConfiguration.toggleDisabled($("input[type=checkbox][name*=link_to_]",$parent),$("input[type=checkbox][name*=show_as_link]",$parent)),viewConfiguration.toggleDisabled($("input[type=checkbox][name*=link_phone]",$parent),$("input[type=checkbox][name*=show_as_link]",$parent)))},toggleDisabled:function($one,$two){0!==$one.length&&0!==$two.length&&($one.is(":checked")?$two.prop("disabled",!0):$two.is(":checked")&&$one.prop("disabled",!0))},toggleRequired:function(currentTarget,data_attr,reverse_logic){var $parent=$(currentTarget,"#post");$parent.find("[data-"+data_attr+"]").each(function(){var $this=$(this),requires_value=$this.data(data_attr).split("="),$input=requires_value[0],requires_value=requires_value[1],$input=$parent.find('[name$="['+$input+']"]').filter(":input");$input.is("[type=checkbox]")?reverse_logic?$this.toggle(0<$input.filter(":not(:checked)").filter(":not(:hidden)").length):$this.toggle($input.is(":checked")):void 0!==requires_value&&(reverse_logic?$this.toggle($input.val()!==requires_value):$this.toggle($input.val()===requires_value))})},switchTooltipLayout:function(e){var layout=$(this).data("value");viewConfiguration.setTooltipLayout(layout)},setTooltipLayout:function(layout){$(".gv-items-picker--"+layout).addClass("active"),$(".gv-items-picker").not(".gv-items-picker--"+layout).removeClass("active"),$(".gv-items-picker-container").attr("data-layout",layout),$.cookie("gv-items-picker-layout",layout,{path:gvGlobals.admin_cookiepath})},closeTooltips:function(e){var activeTooltips=$("[data-tooltip='active']"),close=!1,return_false=!1;switch(e.type){case"keyup":if(27===e.keyCode){if($(".ui-autocomplete").is(":visible"))return;return_false=close=0===$(".gv-field-filter-form input[data-has-search]:focus").length,window.Beacon&&window.Beacon("close")}((13===e.keyCode||32===e.keyCode)&&$(e.target).is(".close")||$(e.target).is(".dashicons-dismiss"))&&(close=!0);break;case"mouseup":$(e.target).parents(".ui-dialog,.ui-tooltip").length||$(e.target).is(".ui-dialog,.ui-tooltip")?close=!1:0vcfg.dialogWidth?vcfg.dialogWidth:$(window).width()-10},open:function(){return $('
').prependTo("#wpwrap"),$(document.body).trigger("gravityview/dialog-opened",thisDialog),vcfg.toggleCheckboxes(thisDialog),vcfg.setupFieldDetails(thisDialog),vcfg.refresh_merge_tags(thisDialog,function(){vcfg.setupCodeMirror(thisDialog)}),$sortableEls=$('.ui-widget-content[aria-hidden="false"]').find(".active-drop-widget, .active-drop-field"),$sortableEls.length&&$sortableEls.each((i,el)=>{$(el).hasClass("ui-sortable")&&$(el).sortable("disable")}),!0},close:function(e){e.preventDefault(),$("textarea.code",thisDialog).each(function(){$CodeMirror=$(this).next(".CodeMirror"),0!==$CodeMirror.length&&$CodeMirror[0].hasOwnProperty("CodeMirror")&&$CodeMirror[0].CodeMirror.toTextArea()}),thisDialog.find(".merge-tag-support").removeClass("merge-tag-support").addClass("gv-merge-tag-support"),$(".gv-field-settings.active","#gravityview_view_config").removeClass("active"),vcfg.setCustomLabel(thisDialog),$("#wpwrap").find("> .gv-overlay").fadeOut("fast",function(){$(this).remove()}),$sortableEls=$('.ui-widget-content[aria-hidden="false"]').find(".active-drop-widget, .active-drop-field"),$sortableEls.length&&$sortableEls.each((i,el)=>{$(el).hasClass("ui-sortable")&&$(el).sortable("enable")}),vcfg._restoreValue(),$(document.body).trigger("gravityview/dialog-closed",thisDialog)},closeOnEscape:!0,buttons:buttons})},setupCodeMirror:function(dialog){var vcfg=viewConfiguration;$("textarea.code:visible",dialog).each(function(){const codemirrorConfig=$.extend(!0,{},wp.codeEditor.defaultSettings);var $textarea,editorId,mergeTag,initialEditorCursorPos,$autocompleteEl,closeAutocompletion,mergeTags=$(this).data("codemirror");mergeTags&&(codemirrorConfig.codemirror=$.extend({},codemirrorConfig.codemirror,mergeTags));let editor=wp.codeEditor.initialize($(this),codemirrorConfig);($(this).hasClass("merge-tag-support")||$(this).hasClass("gv-merge-tag-support"))&&(editor.codemirror.setSize("95%"),$textarea=$(this),editorId=$textarea.attr("id"),mergeTags=window.gfMergeTags.getAutoCompleteMergeTags($textarea),mergeTag="",initialEditorCursorPos=editor.codemirror.getCursor(),$textarea.parent().find(".all-merge-tags").detach().insertBefore($textarea),$textarea.parent().find("div .gform-dropdown__trigger").on("click.gravityforms",vcfg.sendMergeTagValueToCodemirrorEditor),$textarea.autocomplete({appendTo:$textarea.parent(),minLength:1,position:{my:"center top",at:"center bottom",collision:"none"},source:mergeTags,select:function(event,currentEditorCursorPos){var val=currentEditorCursorPos.item.value.replace(/^{|}$/gm,""),currentEditorCursorPos=editor.codemirror.getCursor();editor.codemirror.replaceRange(val,initialEditorCursorPos,window.wp.CodeMirror.Pos(currentEditorCursorPos.line,currentEditorCursorPos.ch)),editor.codemirror.focus(),editor.codemirror.setCursor(window.wp.CodeMirror.Pos(currentEditorCursorPos.line,currentEditorCursorPos.ch+val.length+1))}}),$autocompleteEl=$textarea.parent().find("ul.ui-autocomplete"),closeAutocompletion=function(){$("#"+editorId).autocomplete("close")},$(document.body).on("keyup",function(e){$autocompleteEl.is(":visible")&&27===e.which&&(e.preventDefault(),closeAutocompletion(),$textarea.focus())}),editor.codemirror.on("mousedown",function(){closeAutocompletion()}),editor.codemirror.on("keydown",function(el,e){$autocompleteEl.is(":visible")&&(38!==e.which&&40!==e.which&&13!==e.which||($autocompleteEl.not(":focus")&&$autocompleteEl.focus(),e.preventDefault()))}),editor.codemirror.on("change",function(e,currentEditorCursorPos){"{}"===currentEditorCursorPos.text[0]&&(initialEditorCursorPos=editor.codemirror.getCursor());currentEditorCursorPos=editor.codemirror.getCursor();"{"!==(mergeTag=editor.codemirror.getRange({ch:initialEditorCursorPos.ch-1,line:initialEditorCursorPos.line},currentEditorCursorPos))[0]?closeAutocompletion():$("#"+editorId).autocomplete("search",mergeTag)}))})},sendMergeTagValueToCodemirrorEditor:function(e){var _activeEditorBackup=window.wpActiveEditor;window.wpActiveEditor=$(e.currentTarget).parentsUntil(".gv-setting-container").find("textarea").attr("id"),window.wpActiveEditor&&window.send_to_editor($(this).data("value")),window.wpActiveEditor=_activeEditorBackup},setupFieldDetails:function(dialog){$(".gv-field-details--container",dialog).insertAfter(".ui-dialog-title:visible");var show_details=$.cookie("gv-field-details-expanded"),show_details=viewConfiguration.getCookieVal(show_details);viewConfiguration.toggleFieldDetails(dialog,show_details),viewConfiguration.migrateSurveyScore(dialog)},migrateSurveyScore:function($dialog){var $score;0===$dialog.parents('[data-inputtype="survey"]').length||($score=$dialog.find(".gv-setting-container-score input"))&&0!=+$score.val()&&$dialog.find('.gv-setting-container-choice_display input[value="score"]').trigger("click").trigger("focus")},toggleFieldDetails:function($dialog,show_details){$parent=$dialog.parent(),$parent.find(".gv-field-details").toggleClass("gv-field-details--closed",!show_details).end().find(".gv-field-details--toggle .dashicons").toggleClass("dashicons-arrow-down",!!show_details).toggleClass("dashicons-arrow-right",!show_details).end()},setCustomLabel:function($label){var custom_label_text=$("[name*=admin_label]",$label),custom_label_text=custom_label_text.length&&custom_label_text.val()?custom_label_text:$("[name*=custom_label]",$label),$label=$label.parents(".gv-fields").find(".gv-field-label-text-container");custom_label_text.length&&(0<(custom_label_text=custom_label_text.val().trim()).length?$label.html(custom_label_text):$label.html($label.parent(".gv-field-label").data("original-title")))},getSortableFields:function(context,id){return new Promise((resolve,reject)=>{var vcfg=viewConfiguration;$(".gravityview_sort_field").prop("disabled","disabled").empty().append("");var data={action:"gv_sortable_fields_form",nonce:gvGlobals.nonce};void 0!==context&&"preset"===context?data.template_id=id:data.form_id=vcfg.gvSelectForm.val(),$.post(ajaxurl,data,function(response){"false"!==response&&"0"!==response&&$(".gravityview_sort_field").empty().append(response).prop("disabled",null),resolve()})})},hideViewConfig:function(){$("#gravityview_view_config").slideUp(150),$(document).trigger("gv_admin_views_hideViewConfig")},showViewConfig:function(){$("#gravityview_view_config").slideDown(150),viewGeneralSettings.metaboxObj.show(),viewConfiguration.toggleDropMessage(),viewConfiguration.init_tooltips(),$(document).trigger("gv_admin_views_showViewConfig")},switchView:function(vcfg){vcfg.preventDefault(),vcfg.stopImmediatePropagation();vcfg=viewConfiguration;vcfg.templateFilter("custom"),vcfg.toggleViewTypeMetabox()},templateFilter:function(templateType){$(".gv-view-types-module").each(function(){$(this).attr("data-filter")===templateType?$(this).parent().show():$(this).parent().hide()})},_isViewDropDown:function(){return viewConfiguration.wantedTemplate&&void 0!==viewConfiguration.wantedTemplate.data("view-data")},_getCurrentTemplateId(){var section=this._getTemplateSection();return null===section||"directory"===section?this.currentDirectoryTemplate:"single"===section?this.currentSingletemplate:""},_setCurrentTemplateId(template_id){var section=this._getTemplateSection();null!==section&&"directory"!==section||(this.currentDirectoryTemplate=template_id),null!==section&&"single"!==section||(this.currentSingletemplate=template_id)},_getTemplateId:function(use_base_template=!1){const $template=viewConfiguration.wantedTemplate;if(!$template)return"";let template_id=$template.data(use_base_template?"base-template":"templateid");return viewConfiguration._isViewDropDown()&&(template_id=viewConfiguration.wantedTemplate.val(),template_id=String($template.val())),template_id},_getTemplateSection:function(){let section=null;return viewConfiguration._isViewDropDown()&&(section=viewConfiguration.wantedTemplate.data("section")),section},_restoreValue:function(){viewConfiguration._isViewDropDown()&&viewConfiguration.wantedTemplate.data("view-data").restoreValue()},_storeValue:function(){viewConfiguration.wantedTemplate&&(viewConfiguration._isViewDropDown()?viewConfiguration.wantedTemplate.data("view-data").storeValue():$("select[data-view-dropdown]").each(function(){$(this).data("view-data").storeValue()}),this._setCurrentTemplateId(this._getTemplateId()))},selectTemplate:function(slugmatch,currentTemplate){var selectedTemplateId,regexMatch,vcfg=viewConfiguration;void 0!==currentTemplate&&null===currentTemplate.section||(slugmatch.preventDefault(),slugmatch.stopImmediatePropagation(),vcfg.wantedTemplate=$(this),selectedTemplateId=vcfg._getTemplateId(),regexMatch=/(.*?)_(.*?)$/i,slugmatch=(currentTemplate=vcfg._getCurrentTemplateId()).replace(regexMatch,"$2"),slugmatch=selectedTemplateId.replace(regexMatch,"$2")===slugmatch,currentTemplate&&!slugmatch&&vcfg.getConfiguredFields().length?currentTemplate!==selectedTemplateId?vcfg.getConfiguredFields().length?vcfg.showDialog("#gravityview_switch_template_dialog"):(vcfg.toggleViewTypeMetabox(),vcfg.selectTemplateContinue(slugmatch)):(vcfg.toggleViewTypeMetabox(),vcfg.showViewConfig()):($("#gravityview_select_template").slideUp(150),vcfg.selectTemplateContinue(slugmatch),vcfg._storeValue()))},selectTemplateContinue:function(slugmatch){var vcfg=viewConfiguration,selectedTemplateId=vcfg._getTemplateId(),selectedFormId=vcfg.gvSelectForm.val(),changeAllSection=!vcfg._getTemplateSection();changeAllSection&&($parent=vcfg._getTemplateId(),$("#gravityview_directory_template").val($parent).trigger("change",{section:null}),$("#gravityview_single_template").val($parent).trigger("change",{section:null}));var $parent=vcfg.wantedTemplate.parents(".gv-view-types-module");$parent.parents(".gv-grid").find(".gv-view-types-module").removeClass("gv-selected"),$parent.addClass("gv-selected"),vcfg.waiting("start"),vcfg.startFreshStatus?Promise.all([vcfg.getAvailableFields("preset",selectedTemplateId),vcfg.getPresetFields(selectedTemplateId),vcfg.getSortableFields("preset",selectedTemplateId)]).then(function(){$(".ui-tabs-panel").each(function(){vcfg.init_droppables(this)})}):(!slugmatch||changeAllSection?vcfg.updateActiveAreas(selectedTemplateId,+selectedFormId):vcfg.waiting("stop"),changeAllSection&&(vcfg.gvSwitchView.fadeIn(150),vcfg.toggleViewTypeMetabox())),vcfg.currentTemplateId=selectedTemplateId,vcfg.setUnsavedChanges(!0)},server_request:(ajaxRoute,payload)=>{const defer=$.Deferred();viewConfiguration.performingAjaxAction=!0,$(".gv-view-template-notice").hide();var{_wpNonce:nonce,_wpAjaxAction:action,_wpAjaxUrl:url,ajaxRouter,frontendFoundationVersion}=window.gvGlobals.foundation_licenses_router;return $.post(url,{nonce:nonce,action:action,ajaxRouter:ajaxRouter,ajaxRoute:ajaxRoute,frontendFoundationVersion:frontendFoundationVersion,payload:payload}).fail(response=>defer.reject(response.responseText)).done(response=>{response.success?(viewConfiguration.performingAjaxAction=!1,defer.resolve(response)):defer.reject(response.data)}),defer.promise()},selectTemplateHover:function(on_success){const vcfg=viewConfiguration,$link=$(on_success.target),$parent=$link.parents(".gv-view-types-module"),$select=$(this).find(".gv_select_template");if($link.is("[rel=internal]")&&!$link.hasClass("gv-layout-activate")&&!$link.hasClass("gv-layout-install"))return!0;on_success.preventDefault(),on_success.stopImmediatePropagation();var on_fail=error=>{$(".gv-view-template-notice").show().find("p").html(error),document.querySelector(".gv-view-template-notice").scrollIntoView({behavior:"smooth"})},do_always=()=>{vcfg.performingAjaxAction=!1,$link.removeClass("disabled"),$parent.removeClass("active")},on_success=()=>{$parent.find(".gv-view-types-hover > div:eq(0)").hide(),$parent.find(".gv-view-types-hover > div:eq(1)").removeClass("hidden"),$parent.removeClass("gv-view-template-placeholder"),$parent.find("a.gv_select_template").attr("data-templateid",$link.data("templateid")).trigger("click"),vcfg.activateViewSelection($link.data("templateid")),$select.trigger("click")};if($link.hasClass("gv-layout-activate"))return vcfg.performingAjaxAction?void 0:($parent.addClass("active"),$link.addClass("disabled").attr("disabled",!0),$link.html($spinner),void $.when(vcfg.server_request("activate_product",{text_domain:$link.attr("data-template-text-domain")})).then(on_success).always(do_always).fail(on_fail));$link.hasClass("gv-layout-install")&&(vcfg.performingAjaxAction||($parent.addClass("active"),$link.addClass("disabled").attr("disabled",!0),$link.html($spinner),$.when(vcfg.server_request("install_product",{id:$link.attr("data-download-id"),text_domain:$link.attr("data-template-text-domain"),activate:!0})).then(on_success).always(do_always).fail(on_fail)))},enableLockedTemplate:function(e,data){const $option=$(data?.option)||null;var action=data?.action||null,payload={text_domain:$option.data("template-text-domain"),activate:!0};if("{}"!==JSON.stringify(payload)){const $pill=$(e.target),$item=$pill.closest(".view-dropdown-list-item");$pill.addClass("is-idle").html($spinner),$item.addClass("is-idle"),$.when(viewConfiguration.server_request(action+"_product",payload)).then(()=>{$pill.removeClass("has-failed"),viewConfiguration.activateViewSelection($option.data("template-id")),data?.dropdown?.focusActive()}).fail(error=>{$pill.addClass("has-failed").text("Error"),console.log(error)}).always(()=>{$pill.removeClass("is-idle"),$item.removeClass("is-idle")})}},activateViewSelection:function(template_id){const $view_selectors=$("[data-view-dropdown]"),$options=$view_selectors.find('option[data-template-id="'+template_id+'"]');$options.attr("disabled",!1),$options.val(template_id),$view_selectors.each((_,el)=>{const dropdown=$(el).viewDropdown();dropdown.renderOptions()}),viewConfiguration.updateSettingsArea()},openExternalLinks:function(){return window.Beacon&&($(this).is("[data-beacon-article]")||$(this).is("[data-beacon-article-modal]")||$(this).is("[data-beacon-article-sidebar]")||$(this).is("[data-beacon-article-inline]"))||window.open(this.href),!1},previewTemplate:function(e){e.preventDefault(),e.stopImmediatePropagation();var parent=$(e.currentTarget).parents(".gv-view-types-module");parent.find(".gv-template-preview").dialog({dialogClass:"wp-dialog gv-dialog",appendTo:$("#gravityview_select_template"),width:viewConfiguration.dialogWidth,open:function(){$('
').prependTo("#wpwrap")},close:function(){$(this).dialog("option","appendTo",parent),$("#wpwrap").find("> .gv-overlay").fadeOut("fast",function(){$(this).remove()})},closeOnEscape:!0,buttons:[{text:gvGlobals.label_close,click:function(){$(this).dialog("close")}}]})},updateActiveAreas:function(template,data){var vcfg=viewConfiguration,data={action:"gv_get_active_areas",template_id:template,form_id:data,nonce:gvGlobals.nonce};return vcfg.updateViewConfig(data)},updateSettingsArea:function(){const $settings_content=$("#gravityview_settings .inside");$settings_content.html(""),$.get(document.URL,function(response){if(response){const $document=$(response);$settings_content.html($document.find("#gravityview_settings .inside").html()),viewGeneralSettings.refresh(),$("#gravityview_directory_template").trigger("change")}})},getPresetFields:function(data){var vcfg=viewConfiguration;$("#directory-active-fields, #single-active-fields").children().remove();data={action:"gv_get_preset_fields",template_id:data,nonce:gvGlobals.nonce};return vcfg.updateViewConfig(data)},updateViewConfig:function(data){return new Promise((resolve,reject)=>{const vcfg=viewConfiguration,section=vcfg._getTemplateSection(),update_directory="directory"===section||null===section,update_single="single"===section||null===section;update_directory&&$("#directory-active-fields").children().remove(),update_single&&$("#single-active-fields").children().remove(),$.post(ajaxurl,data,function(content){content&&(content=JSON.parse(content),update_directory&&($("#directory-header-widgets").html(content.header),$("#directory-footer-widgets").html(content.footer),$("#directory-active-fields").append(content.directory),$("#directory-header-widgets a[data-templateid], #directory-footer-widgets a[data-templateid]").attr("data-templateid",data.template_id).attr("data-formid",data.form_id)),update_single&&$("#single-active-fields").append(content.single),vcfg.showViewConfig(),vcfg.waiting("stop"),$(document.body).trigger("gravityview/view-config-updated",content,section)),resolve()}),vcfg.setUnsavedChanges(!0)})},waiting:function(action){$containers=$("#wpwrap,.gv-fields"),"start"===action?$containers.addClass("gv-wait"):$containers.removeClass("gv-wait")},remove_tooltips:function(el){$(el||".gv-add-field").is(":ui-tooltip")&&$(".gv-add-field").gvTooltip("destroy").off("click")},init_tooltips:function(el){0!==$(el||".gv-add-field","#post").not(":ui-tooltip").length&&$(el||".gv-add-field","#post").gvTooltip({show:150,hide:200,content:function(){var context=$(this).attr("data-context"),formId=$(this).attr("data-formid")||$("#gravityview_form_id").val(),templateId=$("#gravityview_directory_template").val();switch($(this).attr("data-objecttype")){case"field":return $("#"+context+"-available-fields-"+(formId||templateId)).html();case"widget":return $("#directory-available-widgets").html()}},close:function(){$(this).attr("data-tooltip",null)},open:function(event,tooltip){$(this).attr("data-tooltip","active").attr("data-tooltip-id",$(this).attr("aria-describedby")),$focus_item=$("input[type=search]",tooltip.tooltip),$focus_item.length||($focus_item=$(tooltip.tooltip).find(".close").first());var box="list";$(tooltip).find(".gv-items-picker-container[data-layout]").length?box=$(tooltip).find(".gv-items-picker-container[data-layout]").attr("data-layout"):(layout_cookie=$.cookie("gv-items-picker-layout"),viewConfiguration.getCookieVal(layout_cookie)&&(box=layout_cookie)),viewConfiguration.setTooltipLayout(box),$focus_item[0].focus({preventScroll:!0});box=$focus_item[0].getBoundingClientRect();(box.y<0||box.y>document.body.getBoundingClientRect().height)&&window.scrollTo({left:window.scrollX,top:window.scrollY+box.y+(box.y<0?-60:60),behavior:"smooth"})},closeOnEscape:!0,disabled:!0,position:{my:"center bottom",at:"center top-12"},tooltipClass:"gravityview-item-picker-tooltip top"}).attr("title",function(){return $(this).attr("title")||$(this).data("title")||""}).on("mouseout focusout",e=>e.stopImmediatePropagation()).on("click",function(e,data){$(this).attr("title",""),$(this).data("before",null),data?.before&&$(this).data("before",data.before),e.preventDefault(),$(this).gvTooltip("open")})},setupFieldFilters:function(e){var input=$(this).val().trim(),$tooltip=$(this).parents(".ui-tooltip-content"),$resultsNotFound=$tooltip.find(".gv-no-results");"keydown"!==e.type?($tooltip.find(".gv-fields").show().filter(function(){var match_title=$(this).find(".gv-field-label").attr("data-original-title").match(new RegExp(input,"i")),match_id=$(this).attr("data-fieldid").match(new RegExp(input,"i")),match_parent=!!$(this).attr("data-parent-label")&&$(this).attr("data-parent-label").match(new RegExp(input,"i"));return!match_title&&!match_id&&!match_parent}).hide(),$tooltip.find(".gv-fields:visible").length?$resultsNotFound.hide():$resultsNotFound.show()):$(this).attr("data-has-search",0{var vcfg=viewConfiguration;vcfg.toggleDropMessage(),vcfg.getConfiguredFields().remove();var data={action:"gv_available_fields",nonce:gvGlobals.nonce};data.form_preset_ids=void 0!==preset&&"preset"===preset?[templateid]:[vcfg.gvSelectForm.val()],$("#directory-available-fields-"+data.form_preset_ids[0]).length||$.post(ajaxurl,data,function(response){response.success||response.data||resolve(),$.each(response.data,function(context,markup){$("#"+context+"-fields").append(markup)}),resolve()})})},startAddField:function(e){$(this).has(".field-id-all-fields").length?viewConfiguration.addAllFields($(this)):viewConfiguration.addField($(this),e)},addAllFields:function(clicked){const fields=clicked.siblings(".gv-fields").filter(function(){var field_id=$(this).data("fieldid");return+field_id===parseInt(field_id,10)});!async function(){for(let i=0;inew Promise((resolve,reject)=>{$(document.body).one("gravityview/field-added",function(){resolve()}),$(el).trigger("click")}))(fields[i]);$("a.gv-add-field[data-tooltip='active']").gvTooltip("close")}()},addField:function(clicked,$before){$before.preventDefault();$before=clicked.closest(".ui-tooltip").attr("id");const $addButton=$('.gv-add-field[data-tooltip-id="'+$before+'"]');$before=$addButton.data("before");viewConfiguration.placeField(clicked,$addButton,$before,!!$before)},placeField:function($field,$addButton,$anchor,add_before_anchor=!1){const vcfg=viewConfiguration,$newField=$field.clone().hide();var data={action:"gv_field_options",template:$addButton.attr("data-templateid")??$addButton.parents(".gv-section").find(".view-template-select select").val()??$("#gravityview_directory_template").val(),area:$addButton.attr("data-areaid"),context:$addButton.attr("data-context"),field_id:$newField.attr("data-fieldid"),field_label:$newField.find(".gv-field-label").attr("data-original-title"),field_type:$addButton.attr("data-objecttype"),input_type:$newField.attr("data-inputtype"),form_id:parseInt($field.attr("data-formid"),10)||vcfg.currentFormId,nonce:gvGlobals.nonce};$.ajax({type:"POST",url:ajaxurl,data:data,async:!0,beforeSend:function(){vcfg.disable_publish()},complete:function(){vcfg.enable_publish()}}).done(function(response){var insert_method=/[^\[]+\[[^\]]+\]\[([^\]]+)\].*/i;if(0<$field.find("input.field-key").length){$newField.find(".gv-dialog, .gv-dialog-options").remove();const oldId=$field.find("input.field-key").attr("name").replace(insert_method,"$1"),newId=response.match(insert_method,"$1")[1]??null;response=$(response),$field.find(".gv-dialog-options :input").each(function(i,el){if($(el).attr("name")){const $fields=response.find('[name="'+$(el).attr("name").replaceAll(""+oldId,""+newId)+'"]');1===$fields.length?$fields.val($(el).val()):2===$fields.length&&$(el).is(":checked")&&$fields.prop("checked",!0)}})}$newField.append(response),$(".ui-tabs-panel").each(function(){vcfg.init_droppables(this)}),0<$(".gv-dialog-options",$newField).length&&$(".gv-field-settings",$newField).removeClass("hide-if-js"),$anchor?(insert_method=add_before_anchor?"insertBefore":"insertAfter",$newField[insert_method]($anchor)):$addButton.closest(".gv-droppable-area").find(".active-drop").append($newField),$(document.body).trigger("gravityview/field-added",$newField),$newField.fadeIn(100),vcfg.refreshGFtooltips()}).fail(function(jqXHR){vcfg.enable_publish(),alert(gvGlobals.field_loaderror),console.log(jqXHR)}).always(function(){vcfg.toggleDropMessage(),vcfg.setUnsavedChanges(!0)})},duplicateField:function($field){$field.preventDefault();$field=$(this).closest(".gv-fields");viewConfiguration.placeField($field,$(this).closest(".active-drop-container").find("a.gv-add-field"),$field)},refresh_merge_tags:function($source,onRefresh){let $merge_tag_supported=$source?$(".gv-merge-tag-support,.merge-tag-support",$source):$(".gv-merge-tag-support:visible");if($merge_tag_supported.removeClass("gv-merge-tag-support mt-initialized").addClass("merge-tag-support"),window.gform?.instances?.mergeTags)return $(".all-merge-tags",$source).remove(),document.dispatchEvent(new Event("DOMContentLoaded")),void setTimeout(function(){$merge_tag_supported.removeClass("merge-tag-support").addClass("gv-merge-tag-support"),onRefresh&&onRefresh()},300);"undefined"!=typeof form&&$(document.body).not(".gv-form-changed")&&0<=$merge_tag_supported.length&&(window.gfMergeTags&&($(".all-merge-tags:visible").remove(),gfMergeTags.hasOwnProperty("destroy")?$merge_tag_supported.each(function(){new gfMergeTagsObj(form,$(this))}):window.gfMergeTags=new gfMergeTagsObj(form)),$merge_tag_supported.removeClass("merge-tag-support").addClass("gv-merge-tag-support"),onRefresh&&onRefresh())},enable_publish:function(){$(document).trigger("autosave-enable-buttons.edit-post"),$("#publishing-action").find("#publish").prop("disabled",null).removeClass("button-primary-disabled")},disable_publish:function(){$(document).trigger("autosave-disable-buttons.edit-post"),$("#publishing-action").find("#publish").prop("disabled","disabled").addClass("button-primary-disabled")},init_droppables:function(panel){var vcfg;$(panel).find(".active-drop-field").sortable("instance")||(vcfg=viewConfiguration,$(panel).find(".active-drop-widget").sortable({placeholder:"fields-placeholder",items:"> .gv-fields",distance:2,revert:75,connectWith:".active-drop-widget",start:function(event,ui){$("#directory-fields, #single-fields").find(".active-drop-container-widget").addClass("is-receivable")},stop:function(event,ui){$("#directory-fields, #single-fields").find(".active-drop-container-widget").removeClass("is-receivable")},change:function(event,ui){vcfg.setUnsavedChanges(!0)},receive:function(event,ui){var sender_area=ui.sender.attr("data-areaid"),receiver_area=$(this).attr("data-areaid");ui.item.find('[name^="widgets['+sender_area+']"]').each(function(){var name=$(this).attr("name");$(this).attr("name",name.replace(sender_area,receiver_area))}),vcfg.toggleDropMessage()}}),$(panel).find(".active-drop-field").sortable({placeholder:"fields-placeholder",items:"> .gv-fields",distance:2,revert:75,connectWith:".active-drop-field",start:function(event,ui){$(document.body).find(".active-drop-container-field").addClass("is-receivable")},stop:function(event,ui){$(document.body).find(".active-drop-container-field").removeClass("is-receivable")},change:function(event,ui){vcfg.setUnsavedChanges(!0)},receive:function(event,ui){var sender_area,receiver_area;0",{name:"gv_fields",value:serialized_data,type:"hidden"})),setTimeout(function(){$post.data("gv-valid",!0),"click"===e.type?$(e.target).trigger("click"):$post.trigger("submit")},101),!1)},validateSettingFields:function(e){var $metabox=viewGeneralSettings.metaboxObj,tabPanelId=$metabox.find("[name^=template_settings].gv-error").filter(function(){return"none"!==$(this).closest("tr.alternate").css("display")});if(!tabPanelId.length)return!0;e.stopImmediatePropagation(),e.preventDefault();tabPanelId=tabPanelId.first().closest("div[role=tabpanel]").prop("id");return $metabox.find(".ui-tab[aria-controls="+tabPanelId+"] a.nav-tab").trigger("click"),window.scrollTo({top:$metabox.offset().top,behavior:"smooth"}),!1},createPresetForm:function(e,data){var vcfg=viewConfiguration,$target=$(e.target);e.stopPropagation();data={action:"gv_set_preset_form",template_id:data,nonce:gvGlobals.nonce};return $.ajax({type:"POST",url:ajaxurl,data:data,async:!1,success:function(response){"false"!==response&&"0"!==response?(vcfg.startFreshStatus=!1,vcfg.gvSelectForm.find("option:selected").removeAttr("selected").end().append(response),"click"===e.type?$target.trigger("click"):$("#post").trigger("submit")):$target.before('

'+gvGlobals.label_publisherror+"

")}}),!1}},viewGeneralSettings={templateId:null,metaboxObj:null,init:function(){viewGeneralSettings.metaboxObj=$("#gravityview_settings"),viewGeneralSettings.initTabs(),$("#gravityview_directory_template").on("change",viewGeneralSettings.updateSettingsDisplay),$(document.body).on("gravityview/settings/tab/enable",viewGeneralSettings.enableSettingTab).on("gravityview/settings/tab/disable",viewGeneralSettings.disableSettingTab)},refresh:function(){viewGeneralSettings.metaboxObj.trigger("change"),viewGeneralSettings.metaboxObj.tabs("destroy"),viewGeneralSettings.initTabs()},updateSettingsDisplay:function(){viewGeneralSettings.templateId=$(this).val(),$("tr[data-show-if]").each(viewGeneralSettings.toggleSetting)},toggleSetting:function(){var row=$(this),templates=row.attr("data-show-if");templates.length<1||!viewGeneralSettings.templateId||(0');$(document).on("click",".gk-gravityview-placeholder-actions [data-action]",function(payload){var action;payload.preventDefault(),viewConfiguration.hasUnsavedChanges&&!window.confirm(gvGlobals.discard_unsaved_changes)||$(this).hasClass("is-idle")||($(this).addClass("is-idle").html($spinner),action=$(this).data("action")+"_product",payload={text_domain:$(this).data("text-domain"),activate:!0},$.when(viewConfiguration.server_request(action,payload)).then(response=>{if(!response.success)throw new Error;document.location=document.location}).fail(()=>$(this).removeClass("is-idle").addClass("is-error").text("Try again")))})})}(jQuery); \ No newline at end of file +!function($){var viewConfiguration,viewGeneralSettings;$.widget.bridge("gvTooltip",$.ui.tooltip);const $spinner=$('');viewConfiguration={startFreshStatus:!1,hasUnsavedChanges:!1,altKey:!1,dialogWidth:750,performingAjaxAction:!1,init:function(){var vcfg=viewConfiguration;vcfg.gvSelectForm=$("#gravityview_form_id"),vcfg.gvSwitchView=$("#gv_switch_view_button"),vcfg.currentFormId=vcfg.gvSelectForm.val(),vcfg.currentDirectoryTemplate=$("#gravityview_directory_template").val(),vcfg.currentSingletemplate=$("#gravityview_single_template").val(),vcfg.directAccessSelect=$("#gv-direct-access-select"),vcfg.toggleInitialVisibility(vcfg),$(document.body).on("keydown keyup",vcfg.altKeyListener).on("change","#gravityview_form_id",vcfg.formChange).on("click",'a[href="#gv_start_fresh"]',vcfg.startFresh).on("click","#publish, #save-post",vcfg.processFormSubmit).on("submit","#post",vcfg.processFormSubmit).on("click",".gv-view-types-hover",vcfg.selectTemplateHover).on("click","a[rel*=external]",vcfg.openExternalLinks).on("click mouseup keyup",vcfg.closeTooltips).on("click",'.gv-field-filter-form span[role="button"]',vcfg.switchTooltipLayout).on("click","#gv_switch_view_button",vcfg.switchView).on("click",".clear-all-fields",vcfg.removeAllFields).on("click",".gv_select_template",vcfg.selectTemplate).on("change","select[data-view-dropdown]",vcfg.selectTemplate).on("click",".ui-tooltip-content .gv-fields",vcfg.startAddField).on("click",".gv-add-field-before",function(){$(this).closest(".active-drop-container").find("a.gv-add-field").trigger("click",{before:$(this).closest(".gv-fields")})}).on("click",".gv-field-duplicate",vcfg.duplicateField).on("click","#gv-direct-access .edit-direct-access",vcfg.editDirectAccess).on("click","#gv-direct-access-select .cancel-direct-access",vcfg.cancelDirectAccess).on("click","#gv-direct-access-select .save-direct-access",vcfg.updateDirectAccess).on("gravityview_form_change",vcfg.updateFormLinks).on("gravityview_form_change",vcfg.updateWidgetFormIds).on("change",".gv-dialog-options input[name*=show_as_link]",vcfg.toggleShowAsEntry).on("change",".gv-dialog-options input[name*=only_loggedin]",vcfg.toggleCustomVisibility).on("change",".gv-dialog-options [name*=allow_edit_cap]",vcfg.toggleCustomVisibility).on("click",".gv-field-controls .gv-remove-field",vcfg.removeField).on("click",".gv-field-controls .gv-field-settings",vcfg.openFieldSettings).on("dblclick",".gv-fields:not(.gv-nonexistent-form-field)",vcfg.openFieldSettings).on("change","#gravityview_settings",vcfg.changedSettingsAction).on("click",'div[data-js="gform-simplebar"]',vcfg.changedSettingsAction).on("click",".gv-field-details--toggle",function(e){var $dialog=$(this).parents(".ui-dialog"),was_closed=$(".gv-field-details",$dialog).hasClass("gv-field-details--closed");return viewConfiguration.toggleFieldDetails($dialog,was_closed),$.cookie("gv-field-details-expanded",was_closed,{path:gvGlobals.admin_cookiepath}),!1}).on("search keydown keyup",".gv-field-filter-form input:visible",vcfg.setupFieldFilters).on("click",".gv-section .is-dismissible .notice-dismiss",function(e){var warning_name=$(this).parents(".gv-section").attr("id")+"-"+$("#post_ID").val();$.cookie("warning-dismissed-"+warning_name,1,{path:gvGlobals.admin_cookiepath}),$(document.body).trigger("gravityview/tabs-ready")}).on("gravityview/loaded gravityview/tabs-ready gravityview/field-added gravityview/field-removed gravityview/all-fields-removed gravityview/show-as-entry gravityview/view-config-updated",vcfg.toggleTabConfigurationWarnings).on("gravityview/loaded gravityview/tabs-ready gravityview/field-added gravityview/field-removed gravityview/all-fields-removed gravityview/show-as-entry gravityview/view-config-updated",vcfg.toggleRemoveAllFields).on("search keydown keyup",".gv-field-filter-form input:visible",vcfg.setupFieldFilters).on("gravityview/loaded",function(){$(".gv-setting-list, #gravityview_settings").on("change",vcfg.toggleCheckboxes).trigger("change")}).on("change",".gv-dialog-options",vcfg.toggleCheckboxes).on("focus",".gv-add-field",function(e){$(this).parent(".gv-fields").addClass("trigger--hover")}).on("blur",".gv-add-field",function(e){$(this).parent(".gv-fields").removeClass("trigger--hover")}).on("keydown",".gv-add-field",function(e){return 13!==e.keyCode&&32!==e.keyCode||void $(this).parent(".gv-fields").addClass("trigger--active")}).on("keyup",".gv-add-field",function(e){return 13!==e.keyCode&&32!==e.keyCode||void $(this).parent(".gv-fields").removeClass("trigger--active")}).on("gravityview/dropdown/activate gravityview/dropdown/install",vcfg.enableLockedTemplate),$(window).on("resize",function(){var $open_dialog=$(".ui-dialog:visible").find(".ui-dialog-content");$open_dialog.dialog("option","position",{my:"center",at:"center",of:window});var window_width=vcfg.dialogWidth,ninety_five_per=.95*$(window).width();vcfg.dialogWidth>ninety_five_per&&(window_width=ninety_five_per),$open_dialog.dialog("option","width",window_width)}),window.addEventListener("beforeunload",event=>{vcfg.hasUnsavedChanges&&event.preventDefault()}),gvGlobals.passed_form_id&&vcfg.gvSelectForm.trigger("change");var _sendToEditor=window.send_to_editor;window.send_to_editor=function(val){var cursorPosition=$("#"+window.wpActiveEditor);if(!cursorPosition.hasClass("codemirror")&&_sendToEditor)return _sendToEditor(val);var codeMirror=cursorPosition.next(".CodeMirror")[0].CodeMirror,cursorPosition=codeMirror.getCursor();codeMirror.replaceRange(val,window.wp.CodeMirror.Pos(cursorPosition.line,cursorPosition.ch))},$("div .gform-dropdown__trigger").on("click.gravityforms",vcfg.sendMergeTagValueToCodemirrorEditor)},getCookieVal:function(cookie){return!(!cookie||"undefined"===cookie||"false"===cookie)&&cookie},toggleTabConfigurationWarnings:function(e){var tabs={single:{configured:$(".gv-dialog-options input[name*=show_as_link]:checked","#directory-active-fields").length||$('[data-fieldid="entry_link"]',"#directory-active-fields").length,icon:"dashicons-media-default"},edit:{configured:$('.gv-fields .field-key[value="edit_link"]').length,icon:"dashicons-welcome-write-blog"}};$.each(tabs,function(index,value){var show_warning=index+"-fields-"+$("#post_ID").val(),dismissed_warning=viewConfiguration.getCookieVal($.cookie("warning-dismissed-"+show_warning));const $fields_section=$("#"+index+"-fields");show_warning=$fields_section.find(".active-drop .gv-fields").length,show_warning=!dismissed_warning&&0===value.configured&&0",{class:"gv-error-message",text:error})))},validateValue(value,rules){if(rules){var i,validators=viewConfiguration.getValidators();for(i in rules)if(rules.hasOwnProperty(i)){var parts=rules[i],rule=parts.rule,message=parts.message,param="",isValid=!0;if(rule.includes(":")&&(rule=(parts=rule.split(/:(.+)/))[0],param=parts[1]),!(isValid=validators[rule]?validators[rule](value,param):isValid))return message}}},getValidators:function(){return{required:function(value){return null!=value&&""!==value.toString().trim()},max:function(value,max){return null!=value&&Number(value)<=max},min:function(value,min){return null!=value&&Number(value)>=min},email:function(value){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)},integer:function(value){return Number.isInteger?Number.isInteger(Number(value)):Number(value)%1==0},matches:function(value,pattern){return new RegExp(pattern).test(value)}}},zebraStripeSettings:function(){setTimeout(function(){viewGeneralSettings.metaboxObj.find("table").each(function(){var $trs=$(this).find("tr").filter(":visible");$trs.removeClass("alternate"),$trs.filter(":even").addClass("alternate")})},50)},toggleCheckboxes:function($parent){$parent=$parent.currentTarget||$parent;viewConfiguration.toggleRequired($parent,"requires",!1),viewConfiguration.toggleRequired($parent,"requires-not",!0);$parent=$($parent).is(".gv-fields")?$($parent):$($parent).parents(".gv-fields");$parent.length&&(viewConfiguration.toggleDisabled($("input[type=checkbox][name*=link_to_]",$parent),$("input[type=checkbox][name*=show_as_link]",$parent)),viewConfiguration.toggleDisabled($("input[type=checkbox][name*=link_phone]",$parent),$("input[type=checkbox][name*=show_as_link]",$parent)))},toggleDisabled:function($one,$two){0!==$one.length&&0!==$two.length&&($one.is(":checked")?$two.prop("disabled",!0):$two.is(":checked")&&$one.prop("disabled",!0))},toggleRequired:function(currentTarget,data_attr,reverse_logic){var $parent=$(currentTarget,"#post");$parent.find("[data-"+data_attr+"]").each(function(){var $this=$(this),requires_value=$this.data(data_attr).split("="),$input=requires_value[0],requires_value=requires_value[1],$input=$parent.find('[name$="['+$input+']"]').filter(":input");$input.is("[type=checkbox]")?reverse_logic?$this.toggle(0<$input.filter(":not(:checked)").filter(":not(:hidden)").length):$this.toggle($input.is(":checked")):void 0!==requires_value&&(reverse_logic?$this.toggle($input.val()!==requires_value):$this.toggle($input.val()===requires_value))})},switchTooltipLayout:function(e){var layout=$(this).data("value");viewConfiguration.setTooltipLayout(layout)},setTooltipLayout:function(layout){$(".gv-items-picker--"+layout).addClass("active"),$(".gv-items-picker").not(".gv-items-picker--"+layout).removeClass("active"),$(".gv-items-picker-container").attr("data-layout",layout),$.cookie("gv-items-picker-layout",layout,{path:gvGlobals.admin_cookiepath})},closeTooltips:function(e){var activeTooltips=$("[data-tooltip='active']"),close=!1,return_false=!1;switch(e.type){case"keyup":if(27===e.keyCode){if($(".ui-autocomplete").is(":visible"))return;return_false=close=0===$(".gv-field-filter-form input[data-has-search]:focus").length,window.Beacon&&window.Beacon("close")}((13===e.keyCode||32===e.keyCode)&&$(e.target).is(".close")||$(e.target).is(".dashicons-dismiss"))&&(close=!0);break;case"mouseup":$(e.target).parents(".ui-dialog,.ui-tooltip").length||$(e.target).is(".ui-dialog,.ui-tooltip")?close=!1:0vcfg.dialogWidth?vcfg.dialogWidth:$(window).width()-10},open:function(){return $('
').prependTo("#wpwrap"),$(document.body).trigger("gravityview/dialog-opened",thisDialog),vcfg.toggleCheckboxes(thisDialog),vcfg.setupFieldDetails(thisDialog),vcfg.refresh_merge_tags(thisDialog,function(){vcfg.setupCodeMirror(thisDialog)}),$sortableEls=$('.ui-widget-content[aria-hidden="false"]').find(".active-drop-widget, .active-drop-field"),$sortableEls.length&&$sortableEls.each((i,el)=>{$(el).hasClass("ui-sortable")&&$(el).sortable("disable")}),!0},close:function(e){e.preventDefault(),$("textarea.code",thisDialog).each(function(){$CodeMirror=$(this).next(".CodeMirror"),0!==$CodeMirror.length&&$CodeMirror[0].hasOwnProperty("CodeMirror")&&$CodeMirror[0].CodeMirror.toTextArea()}),thisDialog.find(".merge-tag-support").removeClass("merge-tag-support").addClass("gv-merge-tag-support"),$(".gv-field-settings.active","#gravityview_view_config").removeClass("active"),vcfg.setCustomLabel(thisDialog),$("#wpwrap").find("> .gv-overlay").fadeOut("fast",function(){$(this).remove()}),$sortableEls=$('.ui-widget-content[aria-hidden="false"]').find(".active-drop-widget, .active-drop-field"),$sortableEls.length&&$sortableEls.each((i,el)=>{$(el).hasClass("ui-sortable")&&$(el).sortable("enable")}),vcfg._restoreValue(),$(document.body).trigger("gravityview/dialog-closed",thisDialog)},closeOnEscape:!0,buttons:buttons})},setupCodeMirror:function(dialog){var vcfg=viewConfiguration;$("textarea.code:visible",dialog).each(function(){const codemirrorConfig=$.extend(!0,{},wp.codeEditor.defaultSettings);var $textarea,editorId,mergeTag,initialEditorCursorPos,$autocompleteEl,closeAutocompletion,mergeTags=$(this).data("codemirror");mergeTags&&(codemirrorConfig.codemirror=$.extend({},codemirrorConfig.codemirror,mergeTags));let editor=wp.codeEditor.initialize($(this),codemirrorConfig);($(this).hasClass("merge-tag-support")||$(this).hasClass("gv-merge-tag-support"))&&(editor.codemirror.setSize("95%"),$textarea=$(this),editorId=$textarea.attr("id"),mergeTags=window.gfMergeTags.getAutoCompleteMergeTags($textarea),mergeTag="",initialEditorCursorPos=editor.codemirror.getCursor(),$textarea.parent().find(".all-merge-tags").detach().insertBefore($textarea),$textarea.parent().find("div .gform-dropdown__trigger").on("click.gravityforms",vcfg.sendMergeTagValueToCodemirrorEditor),$textarea.autocomplete({appendTo:$textarea.parent(),minLength:1,position:{my:"center top",at:"center bottom",collision:"none"},source:mergeTags,select:function(event,currentEditorCursorPos){var val=currentEditorCursorPos.item.value.replace(/^{|}$/gm,""),currentEditorCursorPos=editor.codemirror.getCursor();editor.codemirror.replaceRange(val,initialEditorCursorPos,window.wp.CodeMirror.Pos(currentEditorCursorPos.line,currentEditorCursorPos.ch)),editor.codemirror.focus(),editor.codemirror.setCursor(window.wp.CodeMirror.Pos(currentEditorCursorPos.line,currentEditorCursorPos.ch+val.length+1))}}),$autocompleteEl=$textarea.parent().find("ul.ui-autocomplete"),closeAutocompletion=function(){$("#"+editorId).autocomplete("close")},$(document.body).on("keyup",function(e){$autocompleteEl.is(":visible")&&27===e.which&&(e.preventDefault(),closeAutocompletion(),$textarea.focus())}),editor.codemirror.on("mousedown",function(){closeAutocompletion()}),editor.codemirror.on("keydown",function(el,e){$autocompleteEl.is(":visible")&&(38!==e.which&&40!==e.which&&13!==e.which||($autocompleteEl.not(":focus")&&$autocompleteEl.focus(),e.preventDefault()))}),editor.codemirror.on("change",function(e,currentEditorCursorPos){"{}"===currentEditorCursorPos.text[0]&&(initialEditorCursorPos=editor.codemirror.getCursor());currentEditorCursorPos=editor.codemirror.getCursor();"{"!==(mergeTag=editor.codemirror.getRange({ch:initialEditorCursorPos.ch-1,line:initialEditorCursorPos.line},currentEditorCursorPos))[0]?closeAutocompletion():$("#"+editorId).autocomplete("search",mergeTag)}))})},sendMergeTagValueToCodemirrorEditor:function(e){var _activeEditorBackup=window.wpActiveEditor;window.wpActiveEditor=$(e.currentTarget).parentsUntil(".gv-setting-container").find("textarea").attr("id"),window.wpActiveEditor&&window.send_to_editor($(this).data("value")),window.wpActiveEditor=_activeEditorBackup},setupFieldDetails:function(dialog){$(".gv-field-details--container",dialog).insertAfter(".ui-dialog-title:visible");var show_details=$.cookie("gv-field-details-expanded"),show_details=viewConfiguration.getCookieVal(show_details);viewConfiguration.toggleFieldDetails(dialog,show_details),viewConfiguration.migrateSurveyScore(dialog)},migrateSurveyScore:function($dialog){var $score;0===$dialog.parents('[data-inputtype="survey"]').length||($score=$dialog.find(".gv-setting-container-score input"))&&0!=+$score.val()&&$dialog.find('.gv-setting-container-choice_display input[value="score"]').trigger("click").trigger("focus")},toggleFieldDetails:function($dialog,show_details){$parent=$dialog.parent(),$parent.find(".gv-field-details").toggleClass("gv-field-details--closed",!show_details).end().find(".gv-field-details--toggle .dashicons").toggleClass("dashicons-arrow-down",!!show_details).toggleClass("dashicons-arrow-right",!show_details).end()},setCustomLabel:function($label){var custom_label_text=$("[name*=admin_label]",$label),custom_label_text=custom_label_text.length&&custom_label_text.val()?custom_label_text:$("[name*=custom_label]",$label),$label=$label.parents(".gv-fields").find(".gv-field-label-text-container");custom_label_text.length&&(0<(custom_label_text=custom_label_text.val().trim()).length?$label.html(custom_label_text):$label.html($label.parent(".gv-field-label").data("original-title")))},getSortableFields:function(context,id){return new Promise((resolve,reject)=>{var vcfg=viewConfiguration;$(".gravityview_sort_field").prop("disabled","disabled").empty().append("");var data={action:"gv_sortable_fields_form",nonce:gvGlobals.nonce};void 0!==context&&"preset"===context?data.template_id=id:data.form_id=vcfg.gvSelectForm.val(),$.post(ajaxurl,data,function(response){"false"!==response&&"0"!==response&&$(".gravityview_sort_field").empty().append(response).prop("disabled",null),resolve()})})},hideViewConfig:function(){$("#gravityview_view_config").slideUp(150),$(document).trigger("gv_admin_views_hideViewConfig")},showViewConfig:function(){$("#gravityview_view_config").slideDown(150),viewGeneralSettings.metaboxObj.show(),viewConfiguration.toggleDropMessage(),viewConfiguration.init_tooltips(),$(document).trigger("gv_admin_views_showViewConfig")},switchView:function(vcfg){vcfg.preventDefault(),vcfg.stopImmediatePropagation();vcfg=viewConfiguration;vcfg.templateFilter("custom"),vcfg.toggleViewTypeMetabox()},templateFilter:function(templateType){$(".gv-view-types-module").each(function(){$(this).attr("data-filter")===templateType?$(this).parent().show():$(this).parent().hide()})},_isViewDropDown:function(){return viewConfiguration.wantedTemplate&&void 0!==viewConfiguration.wantedTemplate.data("view-data")},_getCurrentTemplateId(){var section=this._getTemplateSection();return null===section||"directory"===section?this.currentDirectoryTemplate:"single"===section?this.currentSingletemplate:""},_setCurrentTemplateId(template_id){var section=this._getTemplateSection();null!==section&&"directory"!==section||(this.currentDirectoryTemplate=template_id),null!==section&&"single"!==section||(this.currentSingletemplate=template_id)},_getTemplateId:function(use_base_template=!1){const $template=viewConfiguration.wantedTemplate;if(!$template)return"";let template_id=$template.data(use_base_template?"base-template":"templateid");return viewConfiguration._isViewDropDown()&&(template_id=viewConfiguration.wantedTemplate.val(),template_id=String($template.val())),template_id},_getTemplateSection:function(){let section=null;return viewConfiguration._isViewDropDown()&&(section=viewConfiguration.wantedTemplate.data("section")),section},_restoreValue:function(){viewConfiguration._isViewDropDown()&&viewConfiguration.wantedTemplate.data("view-data").restoreValue()},_storeValue:function(){viewConfiguration.wantedTemplate&&(viewConfiguration._isViewDropDown()?viewConfiguration.wantedTemplate.data("view-data").storeValue():$("select[data-view-dropdown]").each(function(){$(this).data("view-data").storeValue()}),this._setCurrentTemplateId(this._getTemplateId()))},selectTemplate:function(slugmatch,currentTemplate){var selectedTemplateId,regexMatch,vcfg=viewConfiguration;void 0!==currentTemplate&&null===currentTemplate.section||(slugmatch.preventDefault(),slugmatch.stopImmediatePropagation(),vcfg.wantedTemplate=$(this),selectedTemplateId=vcfg._getTemplateId(),regexMatch=/(.*?)_(.*?)$/i,slugmatch=(currentTemplate=vcfg._getCurrentTemplateId()).replace(regexMatch,"$2"),slugmatch=selectedTemplateId.replace(regexMatch,"$2")===slugmatch,currentTemplate&&!slugmatch&&vcfg.getConfiguredFields().length?currentTemplate!==selectedTemplateId?vcfg.getConfiguredFields().length?vcfg.showDialog("#gravityview_switch_template_dialog"):(vcfg.toggleViewTypeMetabox(),vcfg.selectTemplateContinue(slugmatch)):(vcfg.toggleViewTypeMetabox(),vcfg.showViewConfig()):($("#gravityview_select_template").slideUp(150),vcfg.selectTemplateContinue(slugmatch),vcfg._storeValue()))},selectTemplateContinue:function(slugmatch){var vcfg=viewConfiguration,selectedTemplateId=vcfg._getTemplateId(),selectedFormId=vcfg.gvSelectForm.val(),changeAllSection=!vcfg._getTemplateSection();changeAllSection&&($parent=vcfg._getTemplateId(),$("#gravityview_directory_template").val($parent).trigger("change",{section:null}),$("#gravityview_single_template").val($parent).trigger("change",{section:null}));var $parent=vcfg.wantedTemplate.parents(".gv-view-types-module");$parent.parents(".gv-grid").find(".gv-view-types-module").removeClass("gv-selected"),$parent.addClass("gv-selected"),vcfg.waiting("start"),vcfg.startFreshStatus?Promise.all([vcfg.getAvailableFields("preset",selectedTemplateId),vcfg.getPresetFields(selectedTemplateId),vcfg.getSortableFields("preset",selectedTemplateId)]).then(function(){$(".ui-tabs-panel").each(function(){vcfg.init_droppables(this)})}):(!slugmatch||changeAllSection?vcfg.updateActiveAreas(selectedTemplateId,+selectedFormId):vcfg.waiting("stop"),changeAllSection&&(vcfg.gvSwitchView.fadeIn(150),vcfg.toggleViewTypeMetabox())),vcfg.currentTemplateId=selectedTemplateId,vcfg.setUnsavedChanges(!0)},server_request:(ajaxRoute,payload)=>{const defer=$.Deferred();viewConfiguration.performingAjaxAction=!0,$(".gv-view-template-notice").hide();var{_wpNonce:nonce,_wpAjaxAction:action,_wpAjaxUrl:url,ajaxRouter,frontendFoundationVersion}=window.gvGlobals.foundation_licenses_router;return $.post(url,{nonce:nonce,action:action,ajaxRouter:ajaxRouter,ajaxRoute:ajaxRoute,frontendFoundationVersion:frontendFoundationVersion,payload:payload}).fail(response=>defer.reject(response.responseText)).done(response=>{response.success?(viewConfiguration.performingAjaxAction=!1,defer.resolve(response)):defer.reject(response.data)}),defer.promise()},selectTemplateHover:function(on_success){const vcfg=viewConfiguration,$link=$(on_success.target),$parent=$link.parents(".gv-view-types-module"),$select=$(this).find(".gv_select_template");if($link.is("[rel=internal]")&&!$link.hasClass("gv-layout-activate")&&!$link.hasClass("gv-layout-install"))return!0;on_success.preventDefault(),on_success.stopImmediatePropagation();var on_fail=error=>{$(".gv-view-template-notice").show().find("p").html(error),document.querySelector(".gv-view-template-notice").scrollIntoView({behavior:"smooth"})},do_always=()=>{vcfg.performingAjaxAction=!1,$link.removeClass("disabled"),$parent.removeClass("active")},on_success=()=>{$parent.find(".gv-view-types-hover > div:eq(0)").hide(),$parent.find(".gv-view-types-hover > div:eq(1)").removeClass("hidden"),$parent.removeClass("gv-view-template-placeholder"),$parent.find("a.gv_select_template").attr("data-templateid",$link.data("templateid")).trigger("click"),vcfg.activateViewSelection($link.data("templateid")),$select.trigger("click")};if($link.hasClass("gv-layout-activate"))return vcfg.performingAjaxAction?void 0:($parent.addClass("active"),$link.addClass("disabled").attr("disabled",!0),$link.html($spinner),void $.when(vcfg.server_request("activate_product",{text_domain:$link.attr("data-template-text-domain")})).then(on_success).always(do_always).fail(on_fail));$link.hasClass("gv-layout-install")&&(vcfg.performingAjaxAction||($parent.addClass("active"),$link.addClass("disabled").attr("disabled",!0),$link.html($spinner),$.when(vcfg.server_request("install_product",{id:$link.attr("data-download-id"),text_domain:$link.attr("data-template-text-domain"),activate:!0})).then(on_success).always(do_always).fail(on_fail)))},enableLockedTemplate:function(e,data){const $option=$(data?.option)||null;var action=data?.action||null,payload={text_domain:$option.data("template-text-domain"),activate:!0};if("{}"!==JSON.stringify(payload)){const $pill=$(e.target),$item=$pill.closest(".view-dropdown-list-item");$pill.addClass("is-idle").html($spinner),$item.addClass("is-idle"),$.when(viewConfiguration.server_request(action+"_product",payload)).then(()=>{$pill.removeClass("has-failed"),viewConfiguration.activateViewSelection($option.data("template-id")),data?.dropdown?.focusActive()}).fail(error=>{$pill.addClass("has-failed").text("Error"),console.log(error)}).always(()=>{$pill.removeClass("is-idle"),$item.removeClass("is-idle")})}},activateViewSelection:function(template_id){const $view_selectors=$("[data-view-dropdown]"),$options=$view_selectors.find('option[data-template-id="'+template_id+'"]');$options.attr("disabled",!1),$options.val(template_id),$view_selectors.each((_,el)=>{const dropdown=$(el).viewDropdown();dropdown.renderOptions()}),viewConfiguration.updateSettingsArea()},openExternalLinks:function(){return window.Beacon&&($(this).is("[data-beacon-article]")||$(this).is("[data-beacon-article-modal]")||$(this).is("[data-beacon-article-sidebar]")||$(this).is("[data-beacon-article-inline]"))||window.open(this.href),!1},previewTemplate:function(e){e.preventDefault(),e.stopImmediatePropagation();var parent=$(e.currentTarget).parents(".gv-view-types-module");parent.find(".gv-template-preview").dialog({dialogClass:"wp-dialog gv-dialog",appendTo:$("#gravityview_select_template"),width:viewConfiguration.dialogWidth,open:function(){$('
').prependTo("#wpwrap")},close:function(){$(this).dialog("option","appendTo",parent),$("#wpwrap").find("> .gv-overlay").fadeOut("fast",function(){$(this).remove()})},closeOnEscape:!0,buttons:[{text:gvGlobals.label_close,click:function(){$(this).dialog("close")}}]})},updateActiveAreas:function(template,data){var vcfg=viewConfiguration,data={action:"gv_get_active_areas",template_id:template,form_id:data,nonce:gvGlobals.nonce};return vcfg.updateViewConfig(data)},updateSettingsArea:function(){const $settings_content=$("#gravityview_settings .inside");$settings_content.html(""),$.get(document.URL,function(response){if(response){const $document=$(response);$settings_content.html($document.find("#gravityview_settings .inside").html()),viewGeneralSettings.refresh(),$("#gravityview_directory_template").trigger("change")}})},getPresetFields:function(data){var vcfg=viewConfiguration;$("#directory-active-fields, #single-active-fields").children().remove();data={action:"gv_get_preset_fields",template_id:data,nonce:gvGlobals.nonce};return vcfg.updateViewConfig(data)},updateViewConfig:function(data){return new Promise((resolve,reject)=>{const vcfg=viewConfiguration,section=vcfg._getTemplateSection(),update_directory="directory"===section||null===section,update_single="single"===section||null===section;update_directory&&$("#directory-active-fields").children().remove(),update_single&&$("#single-active-fields").children().remove(),$.post(ajaxurl,data,function(content){content&&(content=JSON.parse(content),update_directory&&($("#directory-header-widgets").html(content.header),$("#directory-footer-widgets").html(content.footer),$("#directory-active-fields").append(content.directory),$("#directory-header-widgets a[data-templateid], #directory-footer-widgets a[data-templateid]").attr("data-templateid",data.template_id).attr("data-formid",data.form_id)),update_single&&$("#single-active-fields").append(content.single),vcfg.showViewConfig(),vcfg.waiting("stop"),$(document.body).trigger("gravityview/view-config-updated",content,section)),resolve()}),vcfg.setUnsavedChanges(!0)})},waiting:function(action){$containers=$("#wpwrap,.gv-fields"),"start"===action?$containers.addClass("gv-wait"):$containers.removeClass("gv-wait")},remove_tooltips:function(el){$(el||".gv-add-field").is(":ui-tooltip")&&$(".gv-add-field").gvTooltip("destroy").off("click")},init_tooltips:function(el){0!==$(el||".gv-add-field","#post").not(":ui-tooltip").length&&$(el||".gv-add-field","#post").gvTooltip({show:150,hide:200,content:function(){var context=$(this).attr("data-context"),formId=$(this).attr("data-formid")||$("#gravityview_form_id").val(),templateId=$("#gravityview_directory_template").val();switch($(this).attr("data-objecttype")){case"field":return $("#"+context+"-available-fields-"+(formId||templateId)).html();case"widget":return $("#directory-available-widgets").html()}},close:function(){$(this).attr("data-tooltip",null)},open:function(event,tooltip){$(this).attr("data-tooltip","active").attr("data-tooltip-id",$(this).attr("aria-describedby")),$focus_item=$("input[type=search]",tooltip.tooltip),$focus_item.length||($focus_item=$(tooltip.tooltip).find(".close").first());var box="list";$(tooltip).find(".gv-items-picker-container[data-layout]").length?box=$(tooltip).find(".gv-items-picker-container[data-layout]").attr("data-layout"):(layout_cookie=$.cookie("gv-items-picker-layout"),viewConfiguration.getCookieVal(layout_cookie)&&(box=layout_cookie)),viewConfiguration.setTooltipLayout(box),$focus_item[0].focus({preventScroll:!0});box=$focus_item[0].getBoundingClientRect();(box.y<0||box.y>document.body.getBoundingClientRect().height)&&window.scrollTo({left:window.scrollX,top:window.scrollY+box.y+(box.y<0?-60:60),behavior:"smooth"})},closeOnEscape:!0,disabled:!0,position:{my:"center bottom",at:"center top-12"},tooltipClass:"gravityview-item-picker-tooltip top"}).attr("title",function(){return $(this).attr("title")||$(this).data("title")||""}).on("mouseout focusout",e=>e.stopImmediatePropagation()).on("click",function(e,data){$(this).attr("title",""),$(this).data("before",null),data?.before&&$(this).data("before",data.before),e.preventDefault(),$(this).gvTooltip("open")})},setupFieldFilters:function(e){var input=$(this).val().trim(),$tooltip=$(this).parents(".ui-tooltip-content"),$resultsNotFound=$tooltip.find(".gv-no-results");"keydown"!==e.type?($tooltip.find(".gv-fields").show().filter(function(){var match_title=$(this).find(".gv-field-label").attr("data-original-title").match(new RegExp(input,"i")),match_id=$(this).attr("data-fieldid").match(new RegExp(input,"i")),match_parent=!!$(this).attr("data-parent-label")&&$(this).attr("data-parent-label").match(new RegExp(input,"i"));return!match_title&&!match_id&&!match_parent}).hide(),$tooltip.find(".gv-fields:visible").length?$resultsNotFound.hide():$resultsNotFound.show()):$(this).attr("data-has-search",0{var vcfg=viewConfiguration;vcfg.toggleDropMessage(),vcfg.getConfiguredFields().remove();var data={action:"gv_available_fields",nonce:gvGlobals.nonce};data.form_preset_ids=void 0!==preset&&"preset"===preset?[templateid]:[vcfg.gvSelectForm.val()],$("#directory-available-fields-"+data.form_preset_ids[0]).length||$.post(ajaxurl,data,function(response){response.success||response.data||resolve(),$.each(response.data,function(context,markup){$("#"+context+"-fields").append(markup)}),resolve()})})},startAddField:function(e){$(this).has(".field-id-all-fields").length?viewConfiguration.addAllFields($(this)):viewConfiguration.addField($(this),e)},addAllFields:function(clicked){const fields=clicked.siblings(".gv-fields").filter(function(){var field_id=$(this).data("fieldid");return+field_id===parseInt(field_id,10)});!async function(){for(let i=0;inew Promise((resolve,reject)=>{$(document.body).one("gravityview/field-added",function(){resolve()}),$(el).trigger("click")}))(fields[i]);$("a.gv-add-field[data-tooltip='active']").gvTooltip("close")}()},addField:function(clicked,$before){$before.preventDefault();$before=clicked.closest(".ui-tooltip").attr("id");const $addButton=$('.gv-add-field[data-tooltip-id="'+$before+'"]');$before=$addButton.data("before");viewConfiguration.placeField(clicked,$addButton,$before,!!$before)},placeField:function($field,$addButton,$anchor,add_before_anchor=!1){const vcfg=viewConfiguration,$newField=$field.clone().hide();var data={action:"gv_field_options",template:$addButton.attr("data-templateid")??$addButton.parents(".gv-section").find(".view-template-select select").val()??$("#gravityview_directory_template").val(),area:$addButton.attr("data-areaid"),context:$addButton.attr("data-context"),field_id:$newField.attr("data-fieldid"),field_label:$newField.find(".gv-field-label").attr("data-original-title"),field_type:$addButton.attr("data-objecttype"),input_type:$newField.attr("data-inputtype"),form_id:parseInt($field.attr("data-formid"),10)||vcfg.currentFormId,nonce:gvGlobals.nonce};$.ajax({type:"POST",url:ajaxurl,data:data,async:!0,beforeSend:function(){vcfg.disable_publish()},complete:function(){vcfg.enable_publish()}}).done(function(response){var insert_method=/[^\[]+\[[^\]]+\]\[([^\]]+)\].*/i;if(0<$field.find("input.field-key").length){$newField.find(".gv-dialog, .gv-dialog-options").remove();const oldId=$field.find("input.field-key").attr("name").replace(insert_method,"$1"),newId=response.match(insert_method,"$1")[1]??null;response=$(response),$field.find(".gv-dialog-options :input").each(function(i,el){if($(el).attr("name")){const $fields=response.find('[name="'+$(el).attr("name").replaceAll(""+oldId,""+newId)+'"]');1===$fields.length?$fields.val($(el).val()):2===$fields.length&&$(el).is(":checked")&&$fields.prop("checked",!0)}})}$newField.append(response),$(".ui-tabs-panel").each(function(){vcfg.init_droppables(this)}),0<$(".gv-dialog-options",$newField).length&&$(".gv-field-settings",$newField).removeClass("hide-if-js"),$anchor?(insert_method=add_before_anchor?"insertBefore":"insertAfter",$newField[insert_method]($anchor)):$addButton.closest(".gv-droppable-area").find(".active-drop").append($newField),$(document.body).trigger("gravityview/field-added",$newField),$newField.fadeIn(100),vcfg.refreshGFtooltips()}).fail(function(jqXHR){vcfg.enable_publish(),alert(gvGlobals.field_loaderror),console.log(jqXHR)}).always(function(){vcfg.toggleDropMessage(),vcfg.setUnsavedChanges(!0)})},duplicateField:function($field){$field.preventDefault();$field=$(this).closest(".gv-fields");viewConfiguration.placeField($field,$(this).closest(".active-drop-container").find("a.gv-add-field"),$field)},refresh_merge_tags:function($source,onRefresh){let $merge_tag_supported=$source?$(".gv-merge-tag-support,.merge-tag-support",$source):$(".gv-merge-tag-support:visible");if($merge_tag_supported.removeClass("gv-merge-tag-support mt-initialized").addClass("merge-tag-support"),window.gform?.instances?.mergeTags)return $(".all-merge-tags",$source).remove(),document.dispatchEvent(new Event("DOMContentLoaded")),void setTimeout(function(){$merge_tag_supported.removeClass("merge-tag-support").addClass("gv-merge-tag-support"),onRefresh&&onRefresh()},300);"undefined"!=typeof form&&$(document.body).not(".gv-form-changed")&&0<=$merge_tag_supported.length&&(window.gfMergeTags&&($(".all-merge-tags:visible").remove(),gfMergeTags.hasOwnProperty("destroy")?$merge_tag_supported.each(function(){new gfMergeTagsObj(form,$(this))}):window.gfMergeTags=new gfMergeTagsObj(form)),$merge_tag_supported.removeClass("merge-tag-support").addClass("gv-merge-tag-support"),onRefresh&&onRefresh())},enable_publish:function(){$(document).trigger("autosave-enable-buttons.edit-post"),$("#publishing-action").find("#publish").prop("disabled",null).removeClass("button-primary-disabled")},disable_publish:function(){$(document).trigger("autosave-disable-buttons.edit-post"),$("#publishing-action").find("#publish").prop("disabled","disabled").addClass("button-primary-disabled")},init_droppables:function(panel){var vcfg;$(panel).find(".active-drop-field").sortable("instance")||(vcfg=viewConfiguration,$(panel).find(".active-drop-widget").sortable({placeholder:"fields-placeholder",items:"> .gv-fields",distance:2,revert:75,connectWith:".active-drop-widget",start:function(event,ui){$("#directory-fields, #single-fields").find(".active-drop-container-widget").addClass("is-receivable")},stop:function(event,ui){$("#directory-fields, #single-fields").find(".active-drop-container-widget").removeClass("is-receivable")},change:function(event,ui){vcfg.setUnsavedChanges(!0)},receive:function(event,ui){var sender_area=ui.sender.attr("data-areaid"),receiver_area=$(this).attr("data-areaid");ui.item.find('[name^="widgets['+sender_area+']"]').each(function(){var name=$(this).attr("name");$(this).attr("name",name.replace(sender_area,receiver_area))}),vcfg.toggleDropMessage()}}),$(panel).find(".active-drop-field").sortable({placeholder:"fields-placeholder",items:"> .gv-fields",distance:2,revert:75,connectWith:".active-drop-field",start:function(event,ui){$(document.body).find(".active-drop-container-field").addClass("is-receivable")},stop:function(event,ui){$(document.body).find(".active-drop-container-field").removeClass("is-receivable")},change:function(event,ui){vcfg.setUnsavedChanges(!0)},receive:function(event,ui){var sender_area,receiver_area;0",{name:"gv_fields",value:serialized_data,type:"hidden"})),setTimeout(function(){$post.data("gv-valid",!0),"click"===e.type?$(e.target).trigger("click"):$post.trigger("submit")},101),!1)},validateSettingFields:function(e){var $metabox=viewGeneralSettings.metaboxObj,tabPanelId=$metabox.find("[name^=template_settings].gv-error").filter(function(){return"none"!==$(this).closest("tr.alternate").css("display")});if(!tabPanelId.length)return!0;e.stopImmediatePropagation(),e.preventDefault();tabPanelId=tabPanelId.first().closest("div[role=tabpanel]").prop("id");return $metabox.find(".ui-tab[aria-controls="+tabPanelId+"] a.nav-tab").trigger("click"),window.scrollTo({top:$metabox.offset().top,behavior:"smooth"}),!1},createPresetForm:function(e,data){var vcfg=viewConfiguration,$target=$(e.target);e.stopPropagation();data={action:"gv_set_preset_form",template_id:data,nonce:gvGlobals.nonce};return $.ajax({type:"POST",url:ajaxurl,data:data,async:!1,success:function(response){"false"!==response&&"0"!==response?(vcfg.startFreshStatus=!1,vcfg.gvSelectForm.find("option:selected").removeAttr("selected").end().append(response),"click"===e.type?$target.trigger("click"):$("#post").trigger("submit")):$target.before('

'+gvGlobals.label_publisherror+"

")}}),!1}},viewGeneralSettings={templateId:null,metaboxObj:null,init:function(){viewGeneralSettings.metaboxObj=$("#gravityview_settings"),viewGeneralSettings.initTabs(),$("#gravityview_directory_template").on("change",viewGeneralSettings.updateSettingsDisplay),$(document.body).on("gravityview/settings/tab/enable",viewGeneralSettings.enableSettingTab).on("gravityview/settings/tab/disable",viewGeneralSettings.disableSettingTab)},refresh:function(){viewGeneralSettings.metaboxObj.trigger("change"),viewGeneralSettings.metaboxObj.tabs("destroy"),viewGeneralSettings.initTabs()},updateSettingsDisplay:function(){viewGeneralSettings.templateId=$(this).val(),$("tr[data-show-if]").each(viewGeneralSettings.toggleSetting)},toggleSetting:function(){var row=$(this),templates=row.attr("data-show-if");templates.length<1||!viewGeneralSettings.templateId||(0');$(document).on("click",".gk-gravityview-placeholder-actions [data-action]",function(payload){var action;payload.preventDefault(),viewConfiguration.hasUnsavedChanges&&!window.confirm(gvGlobals.discard_unsaved_changes)||$(this).hasClass("is-idle")||($(this).addClass("is-idle").html($spinner),action=$(this).data("action")+"_product",payload={text_domain:$(this).data("text-domain"),activate:!0},$.when(viewConfiguration.server_request(action,payload)).then(response=>{if(!response.success)throw new Error;document.location=document.location}).fail(()=>$(this).removeClass("is-idle").addClass("is-error").text("Try again")))})})}(jQuery); \ No newline at end of file diff --git a/assets/js/field-user-activation.min.js b/assets/js/field-user-activation.min.js index c4d7a967e..9d3b1aa26 100644 --- a/assets/js/field-user-activation.min.js +++ b/assets/js/field-user-activation.min.js @@ -1 +1 @@ -!function($){"use strict";var self={selector:".gv-user-activation-link"};$(function(){self.userActivation()}),self.userActivation=function(){$(document).on("click",self.selector,function(activationKey){activationKey.preventDefault();var spinner,that=$(this),activationKey=that.attr("activation-key");confirm(gvUserActivation.confirm_message)&&(spinner=self.ajaxSpinner(that,"margin-left:10px"),jQuery.post(gvUserActivation.ajax_url,{key:activationKey,action:"gf_user_activate",nonce:gvUserActivation.nonce},function(response){response.success?that.parent().html(gvUserActivation.success_message):alert(response.data.message),spinner.destroy()}))})},self.ajaxSpinner=function(elem,style){return this.elem=elem,this.image='',this.init=function(){return this.spinner=jQuery(this.image),jQuery(this.elem).after(this.spinner),this},this.destroy=function(){jQuery(this.spinner).remove()},this.init()}}(jQuery); \ No newline at end of file +!function($){"use strict";var self={selector:".gv-user-activation-link"};$(function(){self.userActivation()}),self.userActivation=function(){$(document).on("click",self.selector,function(activationKey){activationKey.preventDefault();var spinner,that=$(this),activationKey=that.attr("activation-key");confirm(gvUserActivation.confirm_message)&&(spinner=self.ajaxSpinner(that,"margin-left:10px"),jQuery.post(gvUserActivation.ajax_url,{key:activationKey,action:"gf_user_activate",nonce:gvUserActivation.nonce},function(response){spinner.destroy(),response.success?that.parent().html(gvUserActivation.success_message):alert(response.data.message)}))})},self.ajaxSpinner=function(elem,style){return this.elem=elem,this.image='',this.init=function(){return this.spinner=jQuery(this.image),jQuery(this.elem).after(this.spinner),this},this.destroy=function(){jQuery(this.spinner).remove()},this.init()}}(jQuery); \ No newline at end of file diff --git a/includes/class-common.php b/includes/class-common.php index 91b90e841..cbc0b0ca4 100644 --- a/includes/class-common.php +++ b/includes/class-common.php @@ -1183,7 +1183,7 @@ public static function format_date_without_timezone_offset( $gmt_datetime, $is_h $time_diff = time() - $gmt_time; if ( $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) { - return sprintf( esc_html__( '%s ago', 'gravityview' ), human_time_diff( $gmt_time ) ); + return sprintf( esc_html__( '%s ago', 'gk-gravityview' ), human_time_diff( $gmt_time ) ); } } @@ -1194,7 +1194,7 @@ public static function format_date_without_timezone_offset( $gmt_datetime, $is_h if ( $include_time ) { $time_format = GFCommon::get_default_time_format(); - return sprintf( esc_html__( '%1$s at %2$s', 'gravityview' ), date_i18n( $date_format, $gmt_time, true ), date_i18n( $time_format, $gmt_time, true ) ); + return sprintf( esc_html__( '%1$s at %2$s', 'gk-gravityview' ), date_i18n( $date_format, $gmt_time, true ), date_i18n( $time_format, $gmt_time, true ) ); } return date_i18n( $date_format, $gmt_time, true ); diff --git a/translations.pot b/translations.pot index 8d28d0acb..ce31ac6f5 100644 --- a/translations.pot +++ b/translations.pot @@ -2,20 +2,21 @@ # This file is distributed under the GPLv2 or later msgid "" msgstr "" -"Project-Id-Version: GravityView 2.32\n" +"Project-Id-Version: GravityView 2.33\n" "Report-Msgid-Bugs-To: https://www.gravitykit.com/support\n" "Last-Translator: GravityKit \n" "Language-Team: GravityKit \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-12-10T00:52:31+00:00\n" +"POT-Creation-Date: 2024-12-20T01:17:49+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.10.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Domain: gk-gravityview\n" #. Plugin Name of the plugin +#: gravityview.php #: future/includes/gutenberg/class-gv-gutenberg-blocks.php:165 #: includes/class-gravityview-admin-bar.php:60 #: includes/class-gravityview-roles-capabilities.php:149 @@ -25,14 +26,17 @@ msgstr "" #. Plugin URI of the plugin #. Author URI of the plugin +#: gravityview.php msgid "https://www.gravitykit.com" msgstr "" #. Description of the plugin +#: gravityview.php msgid "The best, easiest way to display Gravity Forms entries on your website." msgstr "" #. Author of the plugin +#: gravityview.php #: vendor_prefixed/gravitykit/foundation/src/Licenses/WP/PluginsPage.php:409 #: vendor_prefixed/gravitykit/foundation/src/WP/AdminMenu.php:197 #: vendor_prefixed/gravitykit/foundation/src/WP/AdminMenu.php:198 @@ -179,26 +183,23 @@ msgstr "" msgid "Change the slug for an entry. Make sure to at least include [entry_id] to avoid URL collisions." msgstr "" -#. Translators: [count] is replaced by the amount of characters. -#: future/includes/class-gv-permalinks.php:574 -#: future/includes/class-gv-permalinks.php:624 -msgid "At least [count] characters are required." +#: future/includes/class-gv-permalinks.php:541 +#: future/includes/class-gv-permalinks.php:592 +msgid "Only letters, numbers, underscores and dashes are allowed." msgstr "" -#. Translators: [slug] will contain the slug value. -#: future/includes/class-gv-permalinks.php:579 -#: future/includes/class-gv-permalinks.php:660 -msgid "Must contain \"[slug]\"." +#. Translators: [count] is replaced by the amount of characters. +#: future/includes/class-gv-permalinks.php:550 +msgid "At least [count] characters are required." msgstr "" -#: future/includes/class-gv-permalinks.php:582 -#: future/includes/class-gv-permalinks.php:615 -#: future/includes/class-gv-permalinks.php:666 -msgid "Only letters, numbers, underscores and dashes are allowed." +#: future/includes/class-gv-permalinks.php:556 +msgid "You have used a reserved word." msgstr "" -#: future/includes/class-gv-permalinks.php:630 -msgid "You have used a reserved word." +#. Translators: [slug] will contain the slug value. +#: future/includes/class-gv-permalinks.php:586 +msgid "Must contain \"[slug]\"." msgstr "" #: future/includes/class-gv-plugin.php:584 @@ -309,7 +310,7 @@ msgid "Edit Entry" msgstr "" #: future/includes/class-gv-renderer.php:296 -#: future/includes/class-gv-settings-view.php:498 +#: future/includes/class-gv-settings-view.php:499 #: includes/admin/metaboxes/class-gravityview-admin-metaboxes.php:145 #: includes/admin/metaboxes/views/view-configuration.php:94 #: includes/admin/metaboxes/views/view-configuration.php:167 @@ -320,7 +321,7 @@ msgid "Single Entry" msgstr "" #: future/includes/class-gv-renderer.php:300 -#: future/includes/class-gv-settings-view.php:497 +#: future/includes/class-gv-settings-view.php:498 #: includes/admin/metaboxes/class-gravityview-admin-metaboxes.php:137 #: includes/admin/metaboxes/views/view-configuration.php:93 #: includes/admin/metaboxes/views/view-configuration.php:115 @@ -565,8 +566,8 @@ msgid "Display a Form" msgstr "" #: future/includes/class-gv-settings-view.php:140 -#: future/includes/class-gv-settings-view.php:483 -#: future/includes/class-gv-settings-view.php:591 +#: future/includes/class-gv-settings-view.php:484 +#: future/includes/class-gv-settings-view.php:593 msgid "Redirect to URL" msgstr "" @@ -583,7 +584,7 @@ msgid "The text to display when there are no entries to show. HTML and shortcode msgstr "" #: future/includes/class-gv-settings-view.php:153 -#: includes/class-api.php:323 +#: includes/class-api.php:329 #: includes/class-gravityview-entry-list.php:115 msgid "No entries match your request." msgstr "" @@ -612,432 +613,440 @@ msgstr "" msgid "If there are no entries to show, the user will be taken to this URL." msgstr "" -#: future/includes/class-gv-settings-view.php:196 +#: future/includes/class-gv-settings-view.php:197 msgid "\"No Search Results\" Text" msgstr "" -#: future/includes/class-gv-settings-view.php:202 -#: includes/class-api.php:316 +#: future/includes/class-gv-settings-view.php:203 +#: includes/class-api.php:322 msgid "This search returned no results." msgstr "" -#: future/includes/class-gv-settings-view.php:208 +#: future/includes/class-gv-settings-view.php:209 msgid "Show all entries to administrators" msgstr "" -#: future/includes/class-gv-settings-view.php:209 +#: future/includes/class-gv-settings-view.php:210 msgid "Administrators will be able to see entries with any approval status." msgstr "" -#: future/includes/class-gv-settings-view.php:210 +#: future/includes/class-gv-settings-view.php:211 msgid "Logged-out visitors and non-administrators will only see approved entries, while administrators will see entries with all statuses. This makes it easier for administrators to moderate entries from a View." msgstr "" -#: future/includes/class-gv-settings-view.php:218 +#: future/includes/class-gv-settings-view.php:219 msgid "Hide View data until search is performed" msgstr "" -#: future/includes/class-gv-settings-view.php:221 +#: future/includes/class-gv-settings-view.php:222 msgid "When enabled it will only show any View entries after a search is performed." msgstr "" -#: future/includes/class-gv-settings-view.php:230 -#: future/includes/class-gv-settings-view.php:239 +#: future/includes/class-gv-settings-view.php:231 +#: future/includes/class-gv-settings-view.php:240 msgid "Hide empty fields" msgstr "" -#: future/includes/class-gv-settings-view.php:233 -#: future/includes/class-gv-settings-view.php:242 +#: future/includes/class-gv-settings-view.php:234 +#: future/includes/class-gv-settings-view.php:243 msgid "When enabled, empty fields will be not be displayed. If disabled, fields and their labels will be displayed with no content." msgstr "" -#: future/includes/class-gv-settings-view.php:248 +#: future/includes/class-gv-settings-view.php:249 msgid "Feeds" msgstr "" -#: future/includes/class-gv-settings-view.php:255 +#: future/includes/class-gv-settings-view.php:256 msgid "Allow User Edit" msgstr "" -#: future/includes/class-gv-settings-view.php:257 +#: future/includes/class-gv-settings-view.php:258 msgid "Allow logged-in users to edit entries they created." msgstr "" -#: future/includes/class-gv-settings-view.php:257 -#: future/includes/class-gv-settings-view.php:284 -#: future/includes/class-gv-settings-view.php:297 +#: future/includes/class-gv-settings-view.php:258 +#: future/includes/class-gv-settings-view.php:285 +#: future/includes/class-gv-settings-view.php:298 msgid "Administrators are able to %s regardless of this setting." msgstr "" -#: future/includes/class-gv-settings-view.php:257 +#: future/includes/class-gv-settings-view.php:258 msgctxt "an action that admins can perform" msgid "edit entries" msgstr "" -#: future/includes/class-gv-settings-view.php:259 +#: future/includes/class-gv-settings-view.php:260 msgid "Display \"Edit Entry\" fields to non-administrator users if they created the entry. Edit Entry fields will always be displayed to site administrators." msgstr "" -#: future/includes/class-gv-settings-view.php:268 +#: future/includes/class-gv-settings-view.php:269 msgid "Unapprove Entries After Edit" msgstr "" -#: future/includes/class-gv-settings-view.php:271 +#: future/includes/class-gv-settings-view.php:272 msgid "When an entry is edited by a non-administrator, reset the approval status to \"Unapproved\"." msgstr "" -#: future/includes/class-gv-settings-view.php:272 +#: future/includes/class-gv-settings-view.php:273 msgid "If the \"Show only approved entries\" setting is enabled, the entry will need to be re-approved by an administrator before it is shown in the View." msgstr "" -#: future/includes/class-gv-settings-view.php:282 +#: future/includes/class-gv-settings-view.php:283 msgid "Allow User Delete" msgstr "" -#: future/includes/class-gv-settings-view.php:284 +#: future/includes/class-gv-settings-view.php:285 msgid "Allow logged-in users to delete entries they created." msgstr "" -#: future/includes/class-gv-settings-view.php:284 +#: future/includes/class-gv-settings-view.php:285 msgctxt "an action that admins can perform" msgid "delete entries" msgstr "" -#: future/includes/class-gv-settings-view.php:286 +#: future/includes/class-gv-settings-view.php:287 msgid "Display \"Delete Entry\" fields to non-administrator users if they created the entry. Delete Entry fields will always be displayed to site administrators." msgstr "" -#: future/includes/class-gv-settings-view.php:295 +#: future/includes/class-gv-settings-view.php:296 msgid "Allow User Duplicate" msgstr "" -#: future/includes/class-gv-settings-view.php:297 +#: future/includes/class-gv-settings-view.php:298 msgid "Allow logged-in users to duplicate entries they created." msgstr "" -#: future/includes/class-gv-settings-view.php:297 +#: future/includes/class-gv-settings-view.php:298 msgctxt "an action that admins can perform" msgid "duplicate entries" msgstr "" -#: future/includes/class-gv-settings-view.php:299 +#: future/includes/class-gv-settings-view.php:300 msgid "Display \"Duplicate Entry\" fields to non-administrator users if they created the entry. Duplicate Entry fields will always be displayed to site administrators." msgstr "" -#: future/includes/class-gv-settings-view.php:308 +#: future/includes/class-gv-settings-view.php:309 msgid "Sort by field" msgstr "" -#: future/includes/class-gv-settings-view.php:310 +#: future/includes/class-gv-settings-view.php:311 msgid "By default, entries are sorted by Entry ID." msgstr "" -#: future/includes/class-gv-settings-view.php:314 -#: future/includes/class-gv-settings-view.php:345 +#: future/includes/class-gv-settings-view.php:315 +#: future/includes/class-gv-settings-view.php:346 msgid "Default" msgstr "" -#: future/includes/class-gv-settings-view.php:315 -#: future/includes/class-gv-settings-view.php:346 -#: includes/class-common.php:1655 +#: future/includes/class-gv-settings-view.php:316 +#: future/includes/class-gv-settings-view.php:347 +#: includes/class-common.php:1697 #: includes/fields/class-gravityview-field-date-created.php:29 msgid "Date Created" msgstr "" -#: future/includes/class-gv-settings-view.php:324 +#: future/includes/class-gv-settings-view.php:325 msgid "Sort direction" msgstr "" -#: future/includes/class-gv-settings-view.php:329 -#: future/includes/class-gv-settings-view.php:361 +#: future/includes/class-gv-settings-view.php:330 +#: future/includes/class-gv-settings-view.php:362 msgid "ASC" msgstr "" -#: future/includes/class-gv-settings-view.php:330 -#: future/includes/class-gv-settings-view.php:362 +#: future/includes/class-gv-settings-view.php:331 +#: future/includes/class-gv-settings-view.php:363 msgid "DESC" msgstr "" -#: future/includes/class-gv-settings-view.php:331 +#: future/includes/class-gv-settings-view.php:332 msgid "Random" msgstr "" -#: future/includes/class-gv-settings-view.php:340 +#: future/includes/class-gv-settings-view.php:341 msgid "Sort by secondary field" msgstr "" -#: future/includes/class-gv-settings-view.php:356 +#: future/includes/class-gv-settings-view.php:357 msgid "Secondary sort direction" msgstr "" -#: future/includes/class-gv-settings-view.php:372 +#: future/includes/class-gv-settings-view.php:373 msgid "Enable sorting by column" msgstr "" -#: future/includes/class-gv-settings-view.php:373 +#: future/includes/class-gv-settings-view.php:374 msgid "Column Sorting" msgstr "" -#: future/includes/class-gv-settings-view.php:392 +#: future/includes/class-gv-settings-view.php:393 msgid "Filter by Start Date" msgstr "" -#: future/includes/class-gv-settings-view.php:394 +#: future/includes/class-gv-settings-view.php:395 msgid "Show entries submitted after this date. Supports relative dates, such as \"-1 week\" or \"-1 month\"." msgstr "" -#: future/includes/class-gv-settings-view.php:405 +#: future/includes/class-gv-settings-view.php:406 msgid "Filter by End Date" msgstr "" -#: future/includes/class-gv-settings-view.php:407 +#: future/includes/class-gv-settings-view.php:408 msgid "Show entries submitted before this date. Supports relative dates, such as \"now\" or \"-3 days\"." msgstr "" -#: future/includes/class-gv-settings-view.php:418 +#: future/includes/class-gv-settings-view.php:419 msgid "CSS Class" msgstr "" -#: future/includes/class-gv-settings-view.php:419 +#: future/includes/class-gv-settings-view.php:420 msgid "CSS class to add to the wrapping HTML container." msgstr "" -#: future/includes/class-gv-settings-view.php:426 +#: future/includes/class-gv-settings-view.php:427 #: future/includes/gutenberg/blocks/view/edit.js:248 #: future/includes/gutenberg/build/view.js:1 msgid "Search Value" msgstr "" -#: future/includes/class-gv-settings-view.php:427 +#: future/includes/class-gv-settings-view.php:428 msgid "Define a default search value for the View" msgstr "" -#: future/includes/class-gv-settings-view.php:434 +#: future/includes/class-gv-settings-view.php:435 #: includes/widgets/search-widget/class-search-widget.php:313 #: future/includes/gutenberg/blocks/view/edit.js:239 #: future/includes/gutenberg/build/view.js:1 msgid "Search Field" msgstr "" -#: future/includes/class-gv-settings-view.php:435 +#: future/includes/class-gv-settings-view.php:436 msgid "If Search Value is set, you can define a specific field to search in. Otherwise, all fields will be searched." msgstr "" -#: future/includes/class-gv-settings-view.php:442 +#: future/includes/class-gv-settings-view.php:443 #: future/includes/gutenberg/blocks/view/edit.js:258 #: future/includes/gutenberg/build/view.js:1 msgid "Search Operator" msgstr "" -#: future/includes/class-gv-settings-view.php:449 +#: future/includes/class-gv-settings-view.php:450 msgid "Single Entry Title" msgstr "" -#: future/includes/class-gv-settings-view.php:451 +#: future/includes/class-gv-settings-view.php:452 msgid "When viewing a single entry, change the title of the page to this setting. Otherwise, the title will not change between the Multiple Entries and Single Entry views." msgstr "" -#: future/includes/class-gv-settings-view.php:462 +#: future/includes/class-gv-settings-view.php:463 #: future/includes/gutenberg/blocks/view/edit.js:302 #: future/includes/gutenberg/build/view.js:1 msgid "Back Link Label" msgstr "" -#: future/includes/class-gv-settings-view.php:464 +#: future/includes/class-gv-settings-view.php:465 msgid "The text of the link that returns to the multiple entries view." msgstr "" -#: future/includes/class-gv-settings-view.php:467 -#: includes/class-api.php:1068 +#: future/includes/class-gv-settings-view.php:468 +#: includes/class-api.php:1074 msgid "← Go back" msgstr "" -#: future/includes/class-gv-settings-view.php:474 +#: future/includes/class-gv-settings-view.php:475 msgid "Redirect After Editing" msgstr "" -#: future/includes/class-gv-settings-view.php:476 +#: future/includes/class-gv-settings-view.php:477 msgid "The page to redirect to after editing an entry." msgstr "" -#: future/includes/class-gv-settings-view.php:480 +#: future/includes/class-gv-settings-view.php:481 msgid "Stay on Edit Entry" msgstr "" -#: future/includes/class-gv-settings-view.php:481 -#: future/includes/class-gv-settings-view.php:535 +#: future/includes/class-gv-settings-view.php:482 +#: future/includes/class-gv-settings-view.php:537 msgid "Redirect to Single Entry" msgstr "" -#: future/includes/class-gv-settings-view.php:482 -#: future/includes/class-gv-settings-view.php:590 +#: future/includes/class-gv-settings-view.php:483 +#: future/includes/class-gv-settings-view.php:592 msgid "Redirect to Multiple Entries" msgstr "" -#: future/includes/class-gv-settings-view.php:491 +#: future/includes/class-gv-settings-view.php:492 msgid "Editing Returns To…" msgstr "" -#: future/includes/class-gv-settings-view.php:493 +#: future/includes/class-gv-settings-view.php:494 msgid "After editing an entry or clicking Cancel, where should the user be sent?" msgstr "" -#: future/includes/class-gv-settings-view.php:499 +#: future/includes/class-gv-settings-view.php:500 msgid "Other URL" msgstr "" -#: future/includes/class-gv-settings-view.php:509 +#: future/includes/class-gv-settings-view.php:510 msgid "Edit Entry Redirect URL" msgstr "" -#: future/includes/class-gv-settings-view.php:511 +#: future/includes/class-gv-settings-view.php:512 msgid "After editing an entry, the user will be taken to this URL." msgstr "" -#: future/includes/class-gv-settings-view.php:520 +#: future/includes/class-gv-settings-view.php:522 msgid "Update Button Text" msgstr "" -#: future/includes/class-gv-settings-view.php:524 +#: future/includes/class-gv-settings-view.php:526 #: includes/extensions/edit-entry/class-edit-entry-render.php:2549 msgctxt "Button to update an entry the user is editing" msgid "Update" msgstr "" -#: future/includes/class-gv-settings-view.php:528 +#: future/includes/class-gv-settings-view.php:530 msgid "Cancel Link Action" msgstr "" -#: future/includes/class-gv-settings-view.php:529 +#: future/includes/class-gv-settings-view.php:531 msgid "Choose what happens when you click Cancel while editing an entry in a lightbox." msgstr "" -#: future/includes/class-gv-settings-view.php:534 +#: future/includes/class-gv-settings-view.php:536 msgid "Close Lightbox" msgstr "" -#: future/includes/class-gv-settings-view.php:539 +#: future/includes/class-gv-settings-view.php:541 msgid "Cancel Link Text" msgstr "" -#: future/includes/class-gv-settings-view.php:543 +#: future/includes/class-gv-settings-view.php:545 #: includes/extensions/edit-entry/class-edit-entry-render.php:2548 msgctxt "Shown when the user decides not to edit an entry" msgid "Cancel" msgstr "" -#: future/includes/class-gv-settings-view.php:547 +#: future/includes/class-gv-settings-view.php:549 msgid "Next Page Button Text" msgstr "" -#: future/includes/class-gv-settings-view.php:549 -#: future/includes/class-gv-settings-view.php:557 +#: future/includes/class-gv-settings-view.php:551 +#: future/includes/class-gv-settings-view.php:559 msgid "Only shown when multi-page forms are enabled." msgstr "" -#: future/includes/class-gv-settings-view.php:555 +#: future/includes/class-gv-settings-view.php:557 msgid "Previous Page Button Text" msgstr "" -#: future/includes/class-gv-settings-view.php:563 +#: future/includes/class-gv-settings-view.php:565 #: includes/extensions/delete-entry/class-gravityview-field-delete-link.php:106 msgid "Delete Link Text" msgstr "" -#: future/includes/class-gv-settings-view.php:571 +#: future/includes/class-gv-settings-view.php:573 msgid "Enable Edit Locking" msgstr "" -#: future/includes/class-gv-settings-view.php:573 +#: future/includes/class-gv-settings-view.php:575 msgid "Prevent multiple users from editing the same entry at the same time." msgstr "" -#: future/includes/class-gv-settings-view.php:584 +#: future/includes/class-gv-settings-view.php:586 msgid "Redirect After Deleting" msgstr "" -#: future/includes/class-gv-settings-view.php:586 +#: future/includes/class-gv-settings-view.php:588 msgid "The page to redirect to after deleting an entry." msgstr "" -#: future/includes/class-gv-settings-view.php:595 +#: future/includes/class-gv-settings-view.php:597 msgid "Delete Entry Redirect URL" msgstr "" -#: future/includes/class-gv-settings-view.php:597 +#: future/includes/class-gv-settings-view.php:599 msgid "After deleting an entry, the user will be taken to this URL." msgstr "" -#: future/includes/class-gv-settings-view.php:606 +#: future/includes/class-gv-settings-view.php:609 msgid "Enable Enhanced Security" msgstr "" -#: future/includes/class-gv-settings-view.php:607 +#: future/includes/class-gv-settings-view.php:610 msgid "This will require a secret attribute on all shortcodes and blocks connected to this View, including [gravityview], [gvfield] and [gventry]." msgstr "" -#: future/includes/class-gv-settings-view.php:612 +#: future/includes/class-gv-settings-view.php:615 msgid "Prevent Direct Access" msgstr "" -#: future/includes/class-gv-settings-view.php:614 +#: future/includes/class-gv-settings-view.php:617 msgid "Only allow access to this View when embedded using the block or shortcode." msgstr "" -#: future/includes/class-gv-settings-view.php:627 +#: future/includes/class-gv-settings-view.php:630 msgid "Custom CSS" msgstr "" #. translators: Do not translate the words inside the square brackets ([]); they are replaced. -#: future/includes/class-gv-settings-view.php:632 +#: future/includes/class-gv-settings-view.php:635 msgid "CSS added here will be placed inside [style] tags in the page’s [head], after GravityView styles." msgstr "" -#: future/includes/class-gv-settings-view.php:656 +#: future/includes/class-gv-settings-view.php:659 msgid "Custom JavaScript" msgstr "" #. translators: Do not translate the words inside the square brackets ([]); they are replaced. -#: future/includes/class-gv-settings-view.php:660 +#: future/includes/class-gv-settings-view.php:663 msgid "JavaScript added here will be placed inside [script] tags in the page’s footer, after GravityView scripts." msgstr "" -#: future/includes/class-gv-settings-view.php:686 +#: future/includes/class-gv-settings-view.php:689 msgid "Prevent REST Access" msgstr "" -#: future/includes/class-gv-settings-view.php:688 +#: future/includes/class-gv-settings-view.php:691 msgid "Disable REST access to this View." msgstr "" -#: future/includes/class-gv-settings-view.php:699 +#: future/includes/class-gv-settings-view.php:702 msgid "Allow REST Access" msgstr "" -#: future/includes/class-gv-settings-view.php:701 +#: future/includes/class-gv-settings-view.php:704 msgid "Enable REST access to this View." msgstr "" -#: future/includes/class-gv-settings-view.php:711 +#: future/includes/class-gv-settings-view.php:714 msgid "Allow Export" msgstr "" -#: future/includes/class-gv-settings-view.php:713 +#: future/includes/class-gv-settings-view.php:716 msgid "Enable users to download data as a CSV or TSV file." msgstr "" -#: future/includes/class-gv-settings-view.php:716 +#: future/includes/class-gv-settings-view.php:719 msgid "If enabled, entries can be exported for this View by adding \"/csv/\" or \"/tsv/\" to the View URL. Each configured field will be a column in the exported file." msgstr "" -#: future/includes/class-gv-settings-view.php:727 +#: future/includes/class-gv-settings-view.php:730 msgid "Show All In File" msgstr "" -#: future/includes/class-gv-settings-view.php:729 +#: future/includes/class-gv-settings-view.php:732 msgid "Do not limit the number of entries output in the file." msgstr "" +#: future/includes/class-gv-settings-view.php:848 +msgid "Field is required" +msgstr "" + +#: future/includes/class-gv-settings-view.php:852 +msgid "Must be a valid URL. Can contain merge tags." +msgstr "" + #: future/includes/class-gv-shortcode-gravityview.php:178 #: future/includes/class-gv-shortcode-gventry.php:147 #: future/includes/class-gv-shortcode-gvfield.php:151 @@ -1589,7 +1598,7 @@ msgstr "" #: includes/admin/metaboxes/views/direct-access-status.php:98 #: includes/class-admin-add-shortcode.php:140 -#: includes/class-admin-views.php:1847 +#: includes/class-admin-views.php:1849 #: includes/extensions/edit-entry/class-edit-entry-locking.php:283 #: includes/extensions/edit-entry/class-edit-entry-render.php:1175 #: includes/extensions/edit-entry/class-edit-entry-render.php:1308 @@ -1734,7 +1743,7 @@ msgstr "" #. translators: %1$s is the vendor title. #: includes/admin/metaboxes/views/view-configuration.php:148 #: includes/class-admin-views.php:1470 -#: includes/class-admin-views.php:1846 +#: includes/class-admin-views.php:1848 #: includes/extensions/lightbox/fancybox/class-gravityview-lightbox-provider-fancybox.php:74 #: vendor_prefixed/gravitykit/foundation/src/Integrations/HelpScout.php:216 #: vendor_prefixed/gravitykit/foundation/src/translations.js.php:24 @@ -1808,7 +1817,7 @@ msgid "(no title)" msgstr "" #: includes/class-admin-add-shortcode.php:186 -#: includes/class-admin-views.php:1851 +#: includes/class-admin-views.php:1853 msgid "Loading…" msgstr "" @@ -2021,49 +2030,49 @@ msgstr "" msgid "Link to Edit Entry" msgstr "" -#: includes/class-admin-views.php:1842 +#: includes/class-admin-views.php:1844 msgid "Enter View name here" msgstr "" -#: includes/class-admin-views.php:1843 +#: includes/class-admin-views.php:1845 msgid "Reorder Search Fields" msgstr "" -#: includes/class-admin-views.php:1844 +#: includes/class-admin-views.php:1846 #: includes/widgets/search-widget/class-search-widget.php:311 msgid "Add Search Field" msgstr "" -#: includes/class-admin-views.php:1845 +#: includes/class-admin-views.php:1847 msgid "Remove Search Field" msgstr "" -#: includes/class-admin-views.php:1848 +#: includes/class-admin-views.php:1850 msgid "Continue" msgstr "" -#: includes/class-admin-views.php:1849 +#: includes/class-admin-views.php:1851 #: vendor_prefixed/trustedlogin/client/src/Form.php:1308 msgid "Ok" msgstr "" -#: includes/class-admin-views.php:1850 +#: includes/class-admin-views.php:1852 msgid "Error while creating the View for you. Check the settings or contact GravityView support." msgstr "" -#: includes/class-admin-views.php:1852 +#: includes/class-admin-views.php:1854 msgid "There was an error loading dynamic content." msgstr "" -#: includes/class-admin-views.php:1853 +#: includes/class-admin-views.php:1855 msgid "Error while adding the field. Please try again or contact GravityView support." msgstr "" -#: includes/class-admin-views.php:1854 +#: includes/class-admin-views.php:1856 msgid "Would you like to remove all fields in this zone?" msgstr "" -#: includes/class-admin-views.php:1855 +#: includes/class-admin-views.php:1857 msgid "You have unsaved changes. Continuing will discard them. Are you sure you want to proceed?" msgstr "" @@ -2103,23 +2112,23 @@ msgstr "" msgid "What’s New" msgstr "" -#: includes/class-admin-welcome.php:437 +#: includes/class-admin-welcome.php:429 msgid "View change history" msgstr "" -#: includes/class-admin-welcome.php:489 +#: includes/class-admin-welcome.php:481 msgid "GravityView is brought to you by:" msgstr "" -#: includes/class-admin-welcome.php:533 +#: includes/class-admin-welcome.php:525 msgid "Contributors" msgstr "" -#: includes/class-admin-welcome.php:565 +#: includes/class-admin-welcome.php:557 msgid "Want to contribute?" msgstr "" -#: includes/class-admin-welcome.php:566 +#: includes/class-admin-welcome.php:558 msgid "If you want to contribute to the code, %1$syou can on Github%2$s. If your contributions are accepted, you will be thanked here." msgstr "" @@ -2241,7 +2250,7 @@ msgid_plural "%s Views restored from the Trash." msgstr[0] "" msgstr[1] "" -#: includes/class-api.php:1499 +#: includes/class-api.php:1505 msgid "Map It" msgstr "" @@ -2257,24 +2266,29 @@ msgstr "" msgid "Post ID" msgstr "" -#: includes/class-common.php:1215 +#: includes/class-common.php:1186 +#: includes/class-common.php:1255 msgid "%s ago" msgstr "" -#: includes/class-common.php:1215 +#: includes/class-common.php:1197 +msgid "%1$s at %2$s" +msgstr "" + +#: includes/class-common.php:1255 msgid "%s from now" msgstr "" -#: includes/class-common.php:1608 +#: includes/class-common.php:1650 msgid "Default (Entry ID)" msgstr "" -#: includes/class-common.php:1659 +#: includes/class-common.php:1701 #: includes/fields/class-gravityview-field-date-updated.php:31 msgid "Date Updated" msgstr "" -#: includes/class-common.php:1791 +#: includes/class-common.php:1833 msgid "Email hidden; Javascript is required." msgstr "" @@ -2759,41 +2773,41 @@ msgstr "" msgid "A link to duplicate the entry. Respects the Duplicate Entry permissions." msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:499 -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:540 -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:874 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:500 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:541 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:875 msgid "There was an error duplicating the entry." msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:604 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:605 msgid "Are you sure you want to duplicate this entry?" msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:639 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:640 msgid "The link to duplicate this entry is not valid; it may have expired." msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:643 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:644 msgid "You do not have permission to duplicate this entry." msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:780 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:781 msgid "There was an error duplicating the entry: %s" msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:784 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:785 msgid "The entry was successfully duplicated." msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:830 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:831 msgid "Duplicate" msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:856 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:857 msgid "Entry duplicated." msgstr "" -#: includes/extensions/duplicate-entry/class-duplicate-entry.php:866 +#: includes/extensions/duplicate-entry/class-duplicate-entry.php:867 msgctxt "Error message links to logging page" msgid "Check the GravityView logs for more information." msgstr "" @@ -3102,7 +3116,7 @@ msgstr "" msgid "added on {date_created_formatted}" msgstr "" -#: includes/extensions/entry-notes/class-gravityview-field-notes.php:568 +#: includes/extensions/entry-notes/class-gravityview-field-notes.php:569 msgid "The note is empty." msgstr "" @@ -3465,6 +3479,7 @@ msgid "A dedicated link to the single entry with customizable text." msgstr "" #: includes/fields/class-gravityview-field-entry-link.php:79 +#: includes/fields/class-gravityview-field-source-id.php:70 #: includes/fields/class-gravityview-field-source-url.php:48 #: includes/fields/class-gravityview-field-website.php:45 msgid "Link Text:" @@ -4156,6 +4171,48 @@ msgstr "" msgid "The shipping fee for the payment." msgstr "" +#: includes/fields/class-gravityview-field-source-id.php:29 +msgid "Source ID" +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:30 +msgid "The post or page where the form was submitted." +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:50 +msgid "Link to URL" +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:51 +msgid "Link to the page where the entry was submitted." +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:57 +#: future/includes/gutenberg/blocks/entry-link/edit.js:96 +#: future/includes/gutenberg/build/entry-link.js:1 +msgid "Link Text" +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:58 +msgid "What should the link show?" +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:62 +msgid "ID of Source" +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:63 +msgid "Title of Source" +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:64 +msgid "Custom Text" +msgstr "" + +#: includes/fields/class-gravityview-field-source-id.php:71 +msgid "Customize the link text. If empty, the link text will be the source ID." +msgstr "" + #: includes/fields/class-gravityview-field-source-url.php:24 msgid "Source URL" msgstr "" @@ -4280,6 +4337,31 @@ msgstr "" msgid "Allow users with `gravityforms_edit_entries` to cancel subscriptions" msgstr "" +#: includes/fields/class-gravityview-field-user-activation.php:19 +msgid "User Activation" +msgstr "" + +#: includes/fields/class-gravityview-field-user-activation.php:21 +msgid "Activate and deactivate users." +msgstr "" + +#: includes/fields/class-gravityview-field-user-activation.php:59 +msgid "User Activated Successfully!" +msgstr "" + +#: includes/fields/class-gravityview-field-user-activation.php:60 +msgid "Are you sure you want to activate this user?" +msgstr "" + +#: includes/fields/class-gravityview-field-user-activation.php:142 +msgid "Invalid activation key" +msgstr "" + +#: includes/fields/class-gravityview-field-user-activation.php:146 +#: templates/fields/field-user_activation.php:36 +msgid "The user is already active" +msgstr "" + #: includes/fields/class-gravityview-field-username.php:27 msgid "Username" msgstr "" @@ -4567,6 +4649,7 @@ msgstr "" #: includes/presets/default-list/class-gravityview-default-template-list.php:28 #: includes/presets/default-table/class-gravityview-default-template-table.php:44 +#: includes/presets/layout-builder/class-gravityview-layout-builder.php:50 msgid "Link to single entry" msgstr "" @@ -4646,6 +4729,14 @@ msgstr "" msgid "Post available jobs in a simple job board." msgstr "" +#: includes/presets/layout-builder/class-gravityview-layout-builder.php:39 +msgid "Layout Builder" +msgstr "" + +#: includes/presets/layout-builder/class-gravityview-layout-builder.php:40 +msgid "Display items in customizable rows and columns." +msgstr "" + #: includes/presets/profiles/class-gravityview-preset-profiles.php:22 msgid "People Profiles" msgstr "" @@ -4654,26 +4745,26 @@ msgstr "" msgid "List people with individual profiles." msgstr "" -#: includes/presets/register-default-templates.php:66 +#: includes/presets/register-default-templates.php:67 msgid "Display items in a dynamic table powered by DataTables." msgstr "" -#: includes/presets/register-default-templates.php:70 -#: includes/presets/register-default-templates.php:83 -#: includes/presets/register-default-templates.php:96 +#: includes/presets/register-default-templates.php:71 +#: includes/presets/register-default-templates.php:84 +#: includes/presets/register-default-templates.php:97 msgid "All Access" msgstr "" -#: includes/presets/register-default-templates.php:79 +#: includes/presets/register-default-templates.php:80 msgid "Display entries on a map." msgstr "" -#: includes/presets/register-default-templates.php:91 +#: includes/presets/register-default-templates.php:92 msgctxt "DIY means \"Do It Yourself\"" msgid "DIY" msgstr "" -#: includes/presets/register-default-templates.php:92 +#: includes/presets/register-default-templates.php:93 msgid "A flexible, powerful layout for designers & developers." msgstr "" @@ -5155,6 +5246,22 @@ msgstr "" msgid "%s (%d out of %d stars)" msgstr "" +#: templates/fields/field-user_activation.php:15 +msgid "Install/activate Gravity Forms User Registration Add-On" +msgstr "" + +#: templates/fields/field-user_activation.php:24 +msgid "No feeds are found or feeds are not set to manual activation" +msgstr "" + +#: templates/fields/field-user_activation.php:30 +msgid "An error occurred" +msgstr "" + +#: templates/fields/field-user_activation.php:53 +msgid "Activate User" +msgstr "" + #: vendor_prefixed/gravitykit/foundation/src/Components/NewsletterSignup.php:221 msgid "The provided email address is not valid." msgstr "" @@ -7084,11 +7191,6 @@ msgstr "" msgid "URL" msgstr "" -#: future/includes/gutenberg/blocks/entry-link/edit.js:96 -#: future/includes/gutenberg/build/entry-link.js:1 -msgid "Link Text" -msgstr "" - #: future/includes/gutenberg/blocks/entry-link/edit.js:102 #: future/includes/gutenberg/build/entry-link.js:1 msgid "Link Attributes" @@ -7370,3 +7472,83 @@ msgstr "" #: future/includes/gutenberg/shared/js/sort-selector.js:75 msgid "No Sorting Fields found" msgstr "" + +#: future/includes/gutenberg/blocks/entry-field/block.json +msgctxt "block title" +msgid "GravityView Entry Field" +msgstr "" + +#: future/includes/gutenberg/blocks/entry-field/block.json +msgctxt "block description" +msgid "Display an entry field value." +msgstr "" + +#: future/includes/gutenberg/blocks/entry-field/block.json +#: future/includes/gutenberg/blocks/entry-link/block.json +#: future/includes/gutenberg/blocks/entry/block.json +#: future/includes/gutenberg/blocks/view-details/block.json +#: future/includes/gutenberg/blocks/view/block.json +msgctxt "block keyword" +msgid "GravityView" +msgstr "" + +#: future/includes/gutenberg/blocks/entry-field/block.json +#: future/includes/gutenberg/blocks/entry-link/block.json +#: future/includes/gutenberg/blocks/entry/block.json +#: future/includes/gutenberg/blocks/view-details/block.json +msgctxt "block keyword" +msgid "form entry" +msgstr "" + +#: future/includes/gutenberg/blocks/entry-field/block.json +#: future/includes/gutenberg/blocks/entry-link/block.json +#: future/includes/gutenberg/blocks/entry/block.json +#: future/includes/gutenberg/blocks/view-details/block.json +msgctxt "block keyword" +msgid "entry" +msgstr "" + +#: future/includes/gutenberg/blocks/entry-link/block.json +msgctxt "block title" +msgid "GravityView Entry Link" +msgstr "" + +#: future/includes/gutenberg/blocks/entry-link/block.json +msgctxt "block description" +msgid "Display a link to the GravityView entry." +msgstr "" + +#: future/includes/gutenberg/blocks/entry/block.json +msgctxt "block title" +msgid "GravityView Entry" +msgstr "" + +#: future/includes/gutenberg/blocks/entry/block.json +msgctxt "block description" +msgid "Display a GravityView entry." +msgstr "" + +#: future/includes/gutenberg/blocks/view-details/block.json +msgctxt "block title" +msgid "GravityView View Details" +msgstr "" + +#: future/includes/gutenberg/blocks/view-details/block.json +msgctxt "block description" +msgid "Display specific information about a GravityView View." +msgstr "" + +#: future/includes/gutenberg/blocks/view/block.json +msgctxt "block title" +msgid "GravityView View" +msgstr "" + +#: future/includes/gutenberg/blocks/view/block.json +msgctxt "block description" +msgid "Display a GravityView View." +msgstr "" + +#: future/includes/gutenberg/blocks/view/block.json +msgctxt "block keyword" +msgid "view" +msgstr ""