Plugin Directory

Changeset 3062342

Timestamp:
04/02/2024 02:54:19 AM (4 months ago)
Author:
jrtashjian
Message:

Update to version 1.1.0 from GitHub

Location:
omniform
Files:
6 added
74 edited
1 copied

Legend:

Unmodified
Added
Removed
  • omniform/tags/1.1.0/build/block-library/button/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/button",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/captcha/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/captcha",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/field/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/field",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/fieldset/block.json

    r2963371 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/fieldset",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/form/block.json

    r2963371 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/form",
    55  "category": "omniform",
  • omniform/tags/1.1.0/build/block-library/form/index.asset.php

    r2994256 r3062342  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '8039ff3287cd87869643');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '');
  • omniform/tags/1.1.0/build/block-library/form/index.css

    r2963371 r3062342  
    11.omniform-create-form-modal{z-index:z-index(".omniform-create-form-modal")}@media(min-width:600px){.omniform-create-form-modal .components-modal__frame{max-width:500px}}.omniform-create-form-modal .badge{background-color:#000;border-radius:50rem;color:#fff;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:8px;padding:4px 8px;text-align:center;vertical-align:baseline;white-space:nowrap}.omniform-create-form-modal__modal-actions{padding-top:12px}.omniform-create-form-modal__area-base-control .components-base-control__label{cursor:auto;margin:16px 0 8px}.omniform-create-form-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover:not(:focus),.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover:not(:focus),.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:not(:focus){box-shadow:none}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover:focus,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover:focus,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:focus{border-bottom:1px solid #fff}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover:last-of-type,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover:last-of-type,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:last-of-type{border-bottom:none}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:not(:hover),.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:not(:hover) .omniform-create-form-modal__option-label div,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio[aria-checked=true] .omniform-create-form-modal__option-label div{color:#949494}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio .omniform-create-form-modal__option-label{padding-top:4px;white-space:normal}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio .omniform-create-form-modal__option-label div{font-size:12px;padding-top:4px}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio .omniform-create-form-modal__checkbox{margin-left:auto;min-width:24px}
    2 .components-panel__body.is-opened.omniform-view-responses__panel{height:48px;padding:0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button{font-weight:600;height:100%;padding:16px;width:100%}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:active,.components-panel__body.is-opened.omniform-view-responses__panel .components-button:hover{background:#f0f0f0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-form__selection-modal .block-library-form__selection-content{padding-top:16px}@media(min-width:600px){.block-editor-form__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media(min-width:782px){.block-editor-form__selection-modal .components-modal__frame{width:750px}}@media(min-width:960px){.block-editor-form__selection-modal .components-modal__frame{height:70%}}
     2.components-panel__body.is-opened.omniform-view-responses__panel{height:48px;padding:0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button{font-weight:600;height:100%;padding:16px;width:100%}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:active,.components-panel__body.is-opened.omniform-view-responses__panel .components-button:hover{background:#f0f0f0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-form__selection-modal .block-library-form__selection-content{padding-top:16px}}
  • omniform/tags/1.1.0/build/block-library/form/index.js

    r2994256 r3062342  
    1 (()=>{"use strict";var e,t={12:()=>{var e=function(){return e=Object.assign||function(e){for(var t,l=1,a=arguments.length;l<a;l++)for(var o in t=arguments[l])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e){return e.toLowerCase()}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var l=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function o(e,t,l){return t instanceof RegExp?e.replace(t,l):t.reduce((function(e,t){return e.replace(t,l)}),e)}function n(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const r=window.wp.blocks,i=window.wp.data,c=window.wp.htmlEntities,m=window.wp.hooks,s=JSON.parse('{"name":"omniform/form"}'),h=window.React,d=window.wp.blockEditor,v=window.wp.components,f=window.wp.coreData,E=window.wp.element,p=window.wp.i18n,u="omniform",Z=window.wp.primitives,V=(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M3.33 15.424a4.842 4.842 0 0 1 0-6.848l.207-.208v-2.42a2.421 2.421 0 0 1 2.421-2.422H8.38l.086-.086a4.842 4.842 0 0 1 6.848 0l.086.086h2.665a2.421 2.421 0 0 1 2.421 2.421v2.665a4.842 4.842 0 0 1 0 6.776v2.665a2.421 2.421 0 0 1-2.421 2.42h-2.665l-.086.087a4.842 4.842 0 0 1-6.848 0l-.086-.086H5.96a2.421 2.421 0 0 1-2.422-2.421v-2.421l-.207-.208ZM12 5a7 7 0 0 1 7 7h-1.604A5.396 5.396 0 0 0 12 6.604V5Zm0 12.396V19a7 7 0 0 1-7-7h1.604A5.396 5.396 0 0 0 12 17.396ZM15.5 12A3.5 3.5 0 0 0 12 8.5v1.896c.886 0 1.604.718 1.604 1.604H15.5Zm-5.104 0c0 .886.718 1.604 1.604 1.604V15.5A3.5 3.5 0 0 1 8.5 12h1.896Z",clipRule:"evenodd"})),H=((0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4 11a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2H4Zm16 2H4v2h16v-2Z",clipRule:"evenodd"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M2 7h8v2H2V7Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16ZM16 17H5V7h11l3.55 5L16 17Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M14 11H6v2h8v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M2 9a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9Zm2 0h16v6H4V9Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M12 1.95c-5.52 0-10 4.48-10 10s4.48 10 10 10h5v-2h-5c-4.34 0-8-3.66-8-8s3.66-8 8-8 8 3.66 8 8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57v-1.43c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.38 0 2.64-.56 3.54-1.47.65.89 1.77 1.47 2.96 1.47 1.97 0 3.5-1.6 3.5-3.57v-1.43c0-5.52-4.48-10-10-10Zm0 13c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3Z"})),(0,h.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5Zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2Zm-3-4h8v2H8v-2Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"m20.5 10 .5-2h-4l1-4h-2l-1 4h-4l1-4h-2L9 8H5l-.5 2h4l-1 4h-4L3 16h4l-1 4h2l1-4h4l-1 4h2l1-4h4l.5-2h-4l1-4h4Zm-7 4h-4l1-4h4l-1 4Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16H5V5h14v14ZM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99 8-8Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 12a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12Zm2 0c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm0 16H5V10h14v10Zm0-12H5V6h14v2ZM9 14H7v-2h2v2Zm4 0h-2v-2h2v2Zm4 0h-2v-2h2v2Zm-8 4H7v-2h2v2Zm4 0h-2v-2h2v2Zm4 0h-2v-2h2v2Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57a.84.84 0 0 0-.31-.05c-.26 0-.51.1-.71.29l-2.2 2.2a15.149 15.149 0 0 1-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8Zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4.273 3 3 4.273 5.727 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h11.727l4.003 4.003 1.273-1.273L4.273 3ZM4 9h3.727l2 2H6v2h5.727l2 2H4V9Z",clipRule:"evenodd"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M18.819 15H20V9h-7.181l-2-2H20a2 2 0 0 1 2 2v6a2 2 0 0 1-1.305 1.876L18.819 15Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"m13.62 8 1.8-3-1.8-3h-3.58l-1.8 3 1.8 3h3.58Zm-3.58 1-1.8 3 1.8 3h3.58l1.8-3-1.8-3h-3.58Zm6.24 2.51h3.59l1.79-3-1.79-3h-3.59l-1.8 3 1.8 3Zm3.59 1h-3.59l-1.8 3 1.8 3h3.59l1.79-3-1.79-3Zm-12.49-1 1.8-3-1.8-3H3.79L2 8.51l1.79 3h3.59Zm0 1H3.79l-1.79 3 1.79 3h3.59l1.8-3-1.8-3ZM10.04 16l-1.8 3 1.8 3h3.58l1.8-3-1.8-3h-3.58Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M18 9H6v2h12V9Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6 13h8v2H6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H4Zm16 2H4v10h16V7Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6 7h8v2H6V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M14 11H6v2h8v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6 15h8v2H6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M18 7h-2v2h2V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12.5a1.5 1.5 0 0 0 1.5-1.5V13h2.5a1.5 1.5 0 0 0 1.5-1.5V5a2 2 0 0 0-2-2H4Zm16 8V5H4v14h12v-6.5a1.5 1.5 0 0 1 1.5-1.5H20Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7Zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M14 10H3v2h11v-2Zm0-4H3v2h11V6Zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4ZM3 16h7v-2H3v2Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M7 7h2v2H7V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M9 11H7v2h2v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M7 15h2v2H7v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 11h-6v2h6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M11 15h6v2h-6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 7h-6v2h6V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5Zm14 2H5v14h14V5Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 11H7v2h10v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M2 8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8Zm2 0h16v8H4V8Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M7 7h2v2H7V7Z"}),(0,h.createElement)(Z.Path,{d:"M9 11H7v2h2v-2Z"}),(0,h.createElement)(Z.Path,{d:"M7 15h2v2H7v-2Z"}),(0,h.createElement)(Z.Path,{d:"M17 11h-6v2h6v-2Z"}),(0,h.createElement)(Z.Path,{d:"M11 15h6v2h-6v-2Z"}),(0,h.createElement)(Z.Path,{d:"M17 7h-6v2h6V7Z"}),(0,h.createElement)(Z.Path,{fillRule:"evenodd",d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5Zm14 2H5v14h14V5Z",clipRule:"evenodd"}))),M=(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z"})),_=(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h2c0-1.66 1.34-3 3-3s3 1.34 3 3v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2Zm0 12H6V10h12v10Zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2Z"})),w=((0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5l-8-3Zm6 9.09c0 4-2.55 7.7-6 8.83-3.45-1.13-6-4.82-6-8.83v-4.7l6-2.25 6 2.25v4.7Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#1C3AA9",d:"M22 11.986c0-.143-.004-.286-.01-.43V3.44l-2.237 2.244A9.956 9.956 0 0 0 12.015 2 9.958 9.958 0 0 0 4.06 5.962l3.667 3.717a4.868 4.868 0 0 1 1.486-1.672c.64-.501 1.547-.91 2.802-.91a1 1 0 0 1 .355.05 4.833 4.833 0 0 1 3.696 2.233l-2.596 2.604c3.288-.013 7.003-.02 8.53.002Z"}),(0,h.createElement)(Z.Path,{fill:"#4285F4",d:"M11.957 2c-.143 0-.286.004-.428.01H3.436l2.237 2.244A10.007 10.007 0 0 0 2 12.014c0 3.257 1.55 6.15 3.95 7.979l3.706-3.678a4.864 4.864 0 0 1-1.667-1.49c-.5-.642-.908-1.552-.908-2.81 0-.153.018-.27.051-.356A4.851 4.851 0 0 1 9.36 7.952l2.596 2.603c-.013-3.298-.02-7.023.002-8.555Z"}),(0,h.createElement)(Z.Path,{fill:"#ABABAB",d:"M2 12.014c0 .144.004.287.01.43v8.116l2.238-2.244A9.956 9.956 0 0 0 11.985 22a9.959 9.959 0 0 0 7.956-3.962l-3.668-3.717a4.869 4.869 0 0 1-1.485 1.672c-.64.501-1.548.911-2.803.911a.998.998 0 0 1-.354-.051 4.833 4.833 0 0 1-3.696-2.233l2.596-2.604c-3.289.013-7.004.02-8.531-.002Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#0074BF",d:"M17 19.5h-2.5V22H17v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#0074BF",d:"M14.5 19.5H12V22h2.5v-2.5ZM12 19.5H9.5V22H12v-2.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#0074BF",d:"M9.5 19.5H7V22h2.5v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M19.5 17H17v2.5h2.5V17Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M17 17h-2.5v2.5H17V17Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M14.5 17H12v2.5h2.5V17ZM12 17H9.5v2.5H12V17Z"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M9.5 17H7v2.5h2.5V17Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M7 17H4.5v2.5H7V17Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M22 14.5h-2.5V17H22v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M19.5 14.5H17V17h2.5v-2.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M17 14.5h-2.5V17H17v-2.5ZM14.5 14.5H12V17h2.5v-2.5ZM12 14.5H9.5V17H12v-2.5ZM9.5 14.5H7V17h2.5v-2.5Z"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M7 14.5H4.5V17H7v-2.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M4.5 14.5H2V17h2.5v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#009DBF",d:"M22 12h-2.5v2.5H22V12Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#009DBF",d:"M19.5 12H17v2.5h2.5V12ZM17 12h-2.5v2.5H17V12ZM14.5 12H12v2.5h2.5V12ZM12 12H9.5v2.5H12V12ZM9.5 12H7v2.5h2.5V12ZM7 12H4.5v2.5H7V12Z"}),(0,h.createElement)(Z.Path,{fill:"#009DBF",d:"M4.5 12H2v2.5h2.5V12Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00ABBF",d:"M22 9.5h-2.5V12H22V9.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00ABBF",d:"M19.5 9.5H17V12h2.5V9.5ZM17 9.5h-2.5V12H17V9.5ZM14.5 9.5H12V12h2.5V9.5ZM12 9.5H9.5V12H12V9.5ZM9.5 9.5H7V12h2.5V9.5ZM7 9.5H4.5V12H7V9.5Z"}),(0,h.createElement)(Z.Path,{fill:"#00ABBF",d:"M4.5 9.5H2V12h2.5V9.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M22 7h-2.5v2.5H22V7Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M19.5 7H17v2.5h2.5V7Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M17 7h-2.5v2.5H17V7ZM14.5 7H12v2.5h2.5V7ZM12 7H9.5v2.5H12V7ZM9.5 7H7v2.5h2.5V7Z"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M7 7H4.5v2.5H7V7Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M4.5 7H2v2.5h2.5V7Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M19.5 4.5H17V7h2.5V4.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M17 4.5h-2.5V7H17V4.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M14.5 4.5H12V7h2.5V4.5ZM12 4.5H9.5V7H12V4.5Z"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M9.5 4.5H7V7h2.5V4.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M7 4.5H4.5V7H7V4.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00D4BF",d:"M17 2h-2.5v2.5H17V2Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#00D4BF",d:"M14.5 2H12v2.5h2.5V2ZM12 2H9.5v2.5H12V2Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00D4BF",d:"M9.5 2H7v2.5h2.5V2Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#fff",d:"m8.582 11.211.697-1.559c.254-.4.22-.89-.058-1.167a.713.713 0 0 0-.435-.206.77.77 0 0 0-.33.033 1.05 1.05 0 0 0-.58.45s-.954 2.224-1.31 3.224c-.354 1-.212 2.834 1.156 4.206 1.451 1.45 3.553 1.783 4.893.777a.84.84 0 0 0 .157-.103l4.13-3.448c.2-.166.497-.508.23-.898-.26-.38-.752-.121-.953.007l-2.376 1.729a.107.107 0 0 1-.154-.018c-.06-.074-.071-.27.024-.349l3.643-3.092c.315-.284.359-.696.104-.978-.249-.277-.644-.268-.962.018l-3.28 2.564a.145.145 0 0 1-.21-.027c-.065-.072-.09-.197-.016-.27L16.667 8.5a.726.726 0 0 0 .036-1.026.693.693 0 0 0-.504-.216.74.74 0 0 0-.522.207l-3.796 3.566c-.09.09-.269 0-.29-.106a.114.114 0 0 1 .032-.106L14.53 7.51a.715.715 0 1 0-1.01-1.014l-4.407 4.872c-.158.158-.39.166-.501.074a.166.166 0 0 1-.029-.23Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#F38020",d:"M12.703 3.165a9.406 9.406 0 0 0-6.538 2.377l.595-3.26L5.216 2 4.17 7.724 9.896 8.77l.282-1.545-2.94-.536a7.822 7.822 0 1 1-2.41 3.9l-1.52-.399a9.42 9.42 0 1 0 9.395-7.024Z"}),(0,h.createElement)(Z.Path,{fill:"#F38020",fillRule:"evenodd",d:"m18.28 10.253-1.412-1.411-5.538 5.538-2.202-2.201-1.414 1.413 3.62 3.62 1.413-1.415-.006-.005 5.539-5.539Z",clipRule:"evenodd"})),["omniform/button","omniform/fieldset","omniform/field","omniform/label","omniform/input","omniform/textarea","omniform/select","omniform/select-group","omniform/select-option","omniform/captcha","core/audio","core/block","core/code","core/column","core/columns","core/cover","core/file","core/gallery","core/group","core/heading","core/image","core/list-item","core/list","core/missing","core/paragraph","core/pattern","core/preformatted","core/separator","core/site-logo","core/site-tagline","core/site-title","core/spacer","core/table","core/video"]);function P({blockProps:e,formId:t,hasInnerBlocks:l}){const a=(0,E.useMemo)((()=>({postId:t,postType:u})),[t]),[o,n,r]=(0,f.useEntityBlockEditor)("postType",u,{id:t}),i=(0,d.useInnerBlocksProps)(e,{allowedBlocks:w,value:o,onInput:n,onChange:r,renderAppender:l?void 0:d.InnerBlocks.ButtonBlockAppender});return(0,h.createElement)(d.BlockContextProvider,{value:a},(0,h.createElement)("div",{...i}))}const y=window.wp.url,B=(0,E.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,E.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));function g({formId:e,isEntityAvailable:t}){const[l,a]=(0,f.useEntityProp)("postType",u,"title",e);return t&&(0,h.createElement)(d.InspectorControls,null,(0,h.createElement)(v.PanelBody,{className:"omniform-view-responses__panel"},(0,h.createElement)(v.Button,{icon:B,href:(0,y.addQueryArgs)("edit.php",{post_type:"omniform_response",omniform_id:e})},(0,p.__)("View responses","omniform"))),(0,h.createElement)(v.PanelBody,{title:(0,p.__)("Form Settings","omniform")},(0,h.createElement)(v.TextControl,{label:(0,p.__)("Name","omniform"),value:l,onChange:a,help:(0,p.__)("This name will not be visible to viewers and is only for identifying the form.","omniform")}),(0,h.createElement)(v.Button,{variant:"primary",href:(0,y.addQueryArgs)("post.php",{action:"edit",post:e})},(0,p.__)("View in Form Editor","omniform"))))}const b=window.wp.notices;function F(e){const{forms:t=[],isResolving:l}=(0,i.useSelect)((e=>{var t,l;const{getEntityRecords:a,isResolving:o}=e(f.store),n={per_page:-1,status:"publish"},r={per_page:-1,status:"draft"};return{forms:[...null!==(t=a("postType",u,n))&&void 0!==t?t:[],...null!==(l=a("postType",u,r))&&void 0!==l?l:[]],isLoading:o("getEntityRecords",["postType",u,n])||o("getEntityRecords",["postType",u,r])}}),[]);return{forms:(0,E.useMemo)((()=>t&&t.filter((t=>t.id!==e))||[]),[t,e]),isResolving:l}}const x=window.wp.compose,S=(0,E.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,E.createElement)(Z.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function C({closeModal:e,onCreate:t}){const[l,a]=(0,E.useState)(""),[o,n]=(0,E.useState)("uncategorized"),[r,i]=(0,E.useState)(!1),c=(0,x.useInstanceId)(C),m=[{type:"uncategorized",description:(0,p.__)("General forms are used to collect and organize information for processing or storage.","omniform"),icon:H,label:(0,p.__)("General","omniform")},{type:"search",description:(0,p.__)("A search form allows users to enter a search query and find relevant information on the website.","omniform"),icon:M,label:(0,h.createElement)(h.Fragment,null,(0,p.__)("Search","omniform"),(0,h.createElement)("span",{className:"badge"},(0,p.__)("coming soon","omniform"))),disabled:!0},{type:"login",description:(0,p.__)("A login form is used to authenticate a user's identity and grant them access to the website.","omniform"),icon:_,label:(0,h.createElement)(h.Fragment,null,(0,p.__)("Login","omniform"),(0,h.createElement)("span",{className:"badge"},(0,p.__)("coming soon","omniform"))),disabled:!0}];return(0,h.createElement)(v.Modal,{title:(0,p.__)("Create a form","omniform"),closeLabel:(0,p.__)("Close","omniform"),onRequestClose:e,overlayClassName:"omniform-create-form-modal"},(0,h.createElement)("form",{onSubmit:async e=>{e.preventDefault(),l&&(i(!0),await t({title:l,type:o}))}},(0,h.createElement)(v.TextControl,{label:(0,p.__)("Name","omniform"),value:l,onChange:a,required:!0}),(0,h.createElement)(v.BaseControl,{label:(0,p.__)("Type","omniform"),id:`omniform-create-form-modal__area-selection-${c}`,className:"omniform-create-form-modal__area-base-control"},(0,h.createElement)(v.__experimentalRadioGroup,{label:(0,p.__)("Type","omniform"),className:"omniform-create-form-modal__area-radio-group",id:`omniform-create-form-modal__area-selection-${c}`,onChange:n,checked:o},m.map((({icon:e,label:t,type:l,description:a,disabled:n})=>(0,h.createElement)(v.__experimentalRadio,{key:l,value:l,className:"omniform-create-form-modal__area-radio",disabled:n},(0,h.createElement)(v.Flex,{align:"start",justify:"start"},(0,h.createElement)(v.FlexItem,null,(0,h.createElement)(v.Icon,{icon:e})),(0,h.createElement)(v.FlexBlock,{className:"omniform-create-form-modal__option-label"},t,(0,h.createElement)("div",null,a)),(0,h.createElement)(v.FlexItem,{className:"omniform-create-form-modal__checkbox"},o===l&&(0,h.createElement)(v.Icon,{icon:S})))))))),(0,h.createElement)(v.Flex,{className:"omniform-create-form-modal__modal-actions",justify:"flex-end"},(0,h.createElement)(v.FlexItem,null,(0,h.createElement)(v.Button,{variant:"secondary",onClick:()=>{e()}},(0,p.__)("Cancel","omniform"))),(0,h.createElement)(v.FlexItem,null,(0,h.createElement)(v.Button,{variant:"primary",type:"submit",disabled:!l,isBusy:r},(0,p.__)("Create","omniform"))))))}function k({setAttributes:e,onOpenSelectionModal:t}){const{forms:l,isResolving:a}=F(),o=function(e){const{saveEntityRecord:t}=(0,i.useDispatch)(f.store);return async(l=[],a=(0,p.__)("Untitled Form","omniform"),o="uncategorized")=>{const n={title:a,content:(0,r.serialize)(l),status:"publish"},i=await t("postType",u,n);e({ref:i.id})}}(e),[n,c]=(0,E.useState)(!1),{createSuccessNotice:m,createErrorNotice:s}=(0,i.useDispatch)(b.store);return(0,h.createElement)(v.Placeholder,{icon:null,label:(0,p.__)("OmniForm Form","omniform"),instructions:(0,p.__)("Choose an existing form or create a new one.","omniform")},a&&(0,h.createElement)(v.Spinner,null),!a&&!!l.length&&(0,h.createElement)(v.Button,{variant:"primary",onClick:t},(0,p.__)("Choose","omniform")),!a&&(0,h.createElement)(v.Button,{variant:"secondary",onClick:()=>c(!0)},(0,p.__)("Start blank","omniform")),n&&(0,h.createElement)(C,{closeModal:()=>c(!1),onCreate:async({title:e,type:t})=>{if(e)try{await o([],e,t),m((0,p.__)("Form created","omniform"),{type:"snackbar"}),c(!1)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,p.__)("An error occurred while creating the form.","omniform");s(t,{type:"snackbar"}),c(!1)}else s((0,p.__)("Title is not defined","omniform"),{type:"snackbar"})}}))}function D({formId:e=null,onClose:t,setAttributes:l}){const{forms:a}=F(e),o=(0,E.useMemo)((()=>a.map((e=>({name:e.slug,title:e.title.raw,blocks:(0,r.createBlock)("omniform/form",{ref:e.id}),viewportWidth:768,form:e})))),a),n=(0,x.useAsyncList)(o),i=!!a.length;return(0,h.createElement)("div",{className:"block-library-form__selection-content"},i&&(0,h.createElement)(d.__experimentalBlockPatternsList,{blockPatterns:o,shownPatterns:n,onClickPattern:e=>{var a;a=e.form,l({ref:a.id}),t()},orientation:"horizontal"}),!i&&(0,h.createElement)(v.__experimentalHStack,{alignment:"center"},(0,h.createElement)("p",null,(0,p.__)("No results found.","omniform"))))}const{name:R}=s;(0,r.registerBlockType)(R,{edit:function({context:e,attributes:t,setAttributes:l,clientId:a}){const{postId:o,postType:n}=e,{ref:r}=t,c=n===u?o:r,m=(0,d.__experimentalUseHasRecursion)(c),[s,Z]=(0,E.useState)(!1),{isResolved:H,innerBlocks:M,isMissing:_}=(0,i.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:l}=e(f.store),{getBlocks:o}=e(d.store),n=["postType",u,c],r=c?t(...n):null,i=!!c&&l("getEditedEntityRecord",n);return{innerBlocks:o(a),isResolved:i,isMissing:i&&!r}}),[c,a]),w=(0,d.useBlockProps)({className:"block-library-block__reusable-block-container"}),y=!c,B=!y&&!_&&H;return JSON.stringify(e)===JSON.stringify({})&&void 0===r?(0,h.createElement)("div",{...w},(0,h.createElement)(v.Placeholder,{icon:V,label:(0,p.__)("OmniForm","omniform"),instructions:(0,p.__)("A single form will be rendered here.","omniform")})):0===M.length&&_?(0,h.createElement)("div",{...w},(0,h.createElement)(d.Warning,null,(0,p.__)("Form has been deleted or is unavailable.","omniform"))):B&&m?(0,h.createElement)("div",{...w},(0,h.createElement)(d.Warning,null,(0,p.__)("Form cannot be rendered inside itself.","omniform"))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)(d.__experimentalRecursionProvider,{uniqueId:c},(0,h.createElement)(g,{formId:c,isEntityAvailable:B}),y&&(0,h.createElement)("div",{...w},(0,h.createElement)(k,{clientId:a,formId:c,setAttributes:l,onOpenSelectionModal:()=>Z(!0)})),B&&(0,h.createElement)(P,{blockProps:w,formId:c,hasInnerBlocks:M.length>0}),!y&&!H&&(0,h.createElement)("div",{...w},(0,h.createElement)(v.Spinner,null))),s&&(0,h.createElement)(v.Modal,{overlayClassName:"block-editor-form__selection-modal",title:(0,p.__)("Choose a Form","omniform"),closeLabel:(0,p.__)("Cancel","omniform"),onRequestClose:()=>Z(!1)},(0,h.createElement)(D,{formId:c,setAttributes:l,onClose:()=>Z(!1)})))},icon:{foreground:"#D92E83",src:V},__experimentalLabel:({ref:r})=>{if(!r)return;const m=(0,i.select)("core").getEntityRecord("postType",u,r);return m?(0,c.decodeEntities)(m.title?.rendered)||(0,c.decodeEntities)(m.title?.raw)||(s=m.slug,void 0===h&&(h={}),function(e,n){void 0===n&&(n={});for(var r=n.splitRegexp,i=void 0===r?l:r,c=n.stripRegexp,m=void 0===c?a:c,s=n.transform,h=void 0===s?t:s,d=n.delimiter,v=void 0===d?" ":d,f=o(o(e,i,"$1\0$2"),m,"\0"),E=0,p=f.length;"\0"===f.charAt(E);)E++;for(;"\0"===f.charAt(p-1);)p--;return f.slice(E,p).split("\0").map(h).join(v)}(s,e({delimiter:" ",transform:n},h))):void 0;var s,h}}),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removeOmniformFromOmniformPostType",((e,t)=>"omniform/form"!==t.name||"omniform"!==(0,i.select)("core/editor").getCurrentPostType()?e:(0,i.select)("core/edit-post").isEditingTemplate()))}},l={};function a(e){var o=l[e];if(void 0!==o)return o.exports;var n=l[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.m=t,e=[],a.O=(t,l,o,n)=>{if(!l){var r=1/0;for(s=0;s<e.length;s++){for(var[l,o,n]=e[s],i=!0,c=0;c<l.length;c++)(!1&n||r>=n)&&Object.keys(a.O).every((e=>a.O[e](l[c])))?l.splice(c--,1):(i=!1,n<r&&(r=n));if(i){e.splice(s--,1);var m=o();void 0!==m&&(t=m)}}return t}n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[l,o,n]},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={925:0,43:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var o,n,[r,i,c]=l,m=0;if(r.some((t=>0!==e[t]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(c)var s=c(a)}for(t&&t(l);m<r.length;m++)n=r[m],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(s)},l=globalThis.webpackChunkomniform=globalThis.webpackChunkomniform||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var o=a.O(void 0,[43],(()=>a(12)));o=a.O(o)})();
     1(()=>{"use strict";var e,t={12:()=>{)})();
  • omniform/tags/1.1.0/build/block-library/input/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/input",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/label/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/label",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/select-group/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/select-group",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/select-option/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/select-option",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/select/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/select",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/build/block-library/textarea/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/textarea",
    55  "category": "omniform-control-simple",
  • omniform/tags/1.1.0/changelog.txt

    r2994256 r3062342  
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    111
    2121.0.5 / 2023-11-10
  • omniform/tags/1.1.0/includes/Application.php

    r2994256 r3062342  
    2727     * @var string
    2828     */
    29     const VERSION = '1.0.5';
     29    const VERSION = '1.';
    3030
    3131    /**
  • omniform/tags/1.1.0/includes/BlockLibrary/BlockLibraryServiceProvider.php

    r2963371 r3062342  
    116116
    117117        foreach ( $blocks as $block ) {
     118
    118119            $block_object = new $block();
    119120
     
    141142                                'ref' => $post->ID,
    142143                            ),
    143                             'viewportWidth' => 768,
     144                            'viewportWidth' => ,
    144145                        ),
    145146                    );
     
    174175            'postTypes'     => array( 'omniform' ),
    175176            'categories'    => array( 'omniform' ),
    176             'viewportWidth' => 768,
     177            'viewportWidth' => ,
    177178        );
    178179
  • omniform/tags/1.1.0/includes/BlockLibrary/BlockPatterns/appointment.php

    r2964814 r3062342  
    77
    88return array(
    9     'title'   => esc_attr__( 'Appointment', 'omniform' ),
     9    'title'   => esc_attr__( 'Appointment', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading {"className":"wp-block-heading"} -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Book an Appointment', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'Please fill out the form below to make an appointment.', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/tags/1.1.0/includes/BlockLibrary/BlockPatterns/contact.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Contact', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Contact Us', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'If you have any questions or comments, or if you\'d like to work with me or collaborate on a project, please don\'t hesitate to get in touch. I look forward to hearing from you!', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/tags/1.1.0/includes/BlockLibrary/BlockPatterns/feedback.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Feedback', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Feedback', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'We value your feedback! Please take a moment to fill out our website feedback form to let us know how we can improve your experience. Your input is important to us and we appreciate your time. Thank you for visiting our website.', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/tags/1.1.0/includes/BlockLibrary/BlockPatterns/newsletter.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Newsletter', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"style":{"spacing":{"padding":{"top":"2em","right":"2em","bottom":"2em","left":"2em"},"blockGap":"1em"},"border":{"radius":"8px","width":"3px"}},"borderColor":"contrast","textColor":"foreground","layout":{"type":"default"}} -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:group {"style":{"spacing":{"padding":{"top":"2em","right":"2em","bottom":"2em","left":"2em"},"blockGap":"1em"},"border":{"radius":"8px","width":"3px"}},"borderColor":"contrast","textColor":"foreground","layout":{"type":"default"}} -->
    1213        <div class="wp-block-group has-border-color has-contrast-border-color has-foreground-color has-text-color" style="border-width:3px;border-radius:8px;padding-top:2em;padding-right:2em;padding-bottom:2em;padding-left:2em"><!-- wp:columns {"isStackedOnMobile":false} -->
    1314        <div class="wp-block-columns is-not-stacked-on-mobile"><!-- wp:column {"verticalAlignment":"top","width":"80%","style":{"spacing":{"blockGap":"0.75em"}}} -->
     
    3334        <!-- wp:omniform/button {"buttonType":"submit","buttonLabel":"' . esc_html__( 'Join', 'omniform' ) . '","className":"is-style-fill"} /--></div>
    3435        <!-- /wp:group --></div>
     36
    3537        <!-- /wp:group -->
    3638    ',
  • omniform/tags/1.1.0/includes/BlockLibrary/BlockPatterns/registration.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Membership Registration', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Membership Registration', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'Join our community and take advantage of our member perks! Sign up for a membership and unlock access to special features and discounts.', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/tags/1.1.0/includes/BlockLibrary/BlockPatterns/rsvp.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'RSVP', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
    13         <div class="wp-block-group"><!-- wp:heading {"textAlign":"center"} -->
    14         <h2 class="wp-block-heading has-text-align-center">' . esc_html__( 'Are You Attending?', 'omniform' ) . '</h2>
    15         <!-- /wp:heading -->
    16 
    17         <!-- wp:paragraph {"align":"center"} -->
    18         <p class="has-text-align-center">' . esc_html__( 'RSVP', 'omniform' ) . '</p>
    19         <!-- /wp:paragraph --></div>
    20         <!-- /wp:group -->
    21 
    22         <!-- wp:omniform/field {"fieldLabel":"' . esc_html__( 'Name', 'omniform' ) . '","fieldName":"' . esc_html__( 'name', 'omniform' ) . '"} -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:omniform/field {"fieldLabel":"' . esc_html__( 'Name', 'omniform' ) . '","fieldName":"' . esc_html__( 'name', 'omniform' ) . '"} -->
    2313        <!-- wp:omniform/label /-->
    2414
  • omniform/tags/1.1.0/includes/BlockLibrary/Blocks/Fieldset.php

    r2994256 r3062342  
    3737        $label_required = null;
    3838
    39         if ( $this->get_block_context( 'isRequired' ) ) {
     39        if ( $this->get_block_( 'isRequired' ) ) {
    4040            $form_id = omniform()->get( Form::class )->get_id() ?? $this->get_block_context( 'postId' );
    4141
  • omniform/tags/1.1.0/includes/BlockLibrary/Blocks/Form.php

    r2963371 r3062342  
    2222        }
    2323
    24         if ( ! empty( $this->attributes['ref'] ) ) {
    25             $entity_id = $this->attributes['ref'];
     24        if ( ! empty( $this-> ) ) {
     25            $entity_id = $this->;
    2626        }
    2727
     
    3131
    3232        // Setup the Form object.
    33         $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( $entity_id );
    34 
    35         if ( ! $form ) {
     33        try {
     34            /** @var \OmniForm\Plugin\Form */ // phpcs:ignore
     35            $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( $entity_id );
     36        } catch ( \Exception $e ) {
    3637            // Display notice for logged in editors, render nothing for visitors.
    3738            return current_user_can( 'edit_posts' )
    3839                ? sprintf(
    3940                    '<p style="color:var(--wp--preset--color--vivid-red,#cf2e2e);">%s</p>',
    40                     /* translators: %d: Form ID. */
    41                     esc_html( sprintf( __( 'Form ID &#8220;%d&#8221; has been removed.', 'omniform' ), $entity_id ) )
     41                    esc_html( $e->getMessage() )
    4242                )
    4343                : '';
    4444        }
    4545
    46         if ( ! $form->is_published() || $form->is_private() ) {
     46        // If the form is password protected, render the password form.
     47        if ( $form->is_password_protected() ) {
     48            return get_the_password_form();
     49        }
     50
     51        if ( ! $form->is_published() ) {
    4752            // Display notice for logged in editors, render nothing for visitors.
    4853            return current_user_can( 'edit_post', $form->get_id() )
  • omniform/tags/1.1.0/includes/BlockLibrary/Blocks/Input.php

    r2964814 r3062342  
    8585
    8686    /**
     87
     88
     89
     90
     91
     92
     93
     94
     95
    8796     * Gets the validation rules for the field.
    8897     *
  • omniform/tags/1.1.0/includes/BlockLibrary/Blocks/Textarea.php

    r2994256 r3062342  
    2121            '<textarea %s>%s</textarea>',
    2222            get_block_wrapper_attributes( $this->get_extra_wrapper_attributes() ),
    23             esc_textarea( $this->get_block_attribute( 'fieldValue' ) )
     23            esc_textarea( $this->get_block_attribute( 'fieldValue' ) )
    2424        );
    2525    }
  • omniform/tags/1.1.0/includes/Plugin/Form.php

    r2964814 r3062342  
    1212use OmniForm\Dependencies\Dflydev\DotAccessData;
    1313use OmniForm\Dependencies\Respect\Validation;
     14
     15
    1416
    1517/**
     
    5759     * @param int $form_id Form ID.
    5860     *
    59      * @return Form|false Form object, false otherwise.
     61     * @return Form Form object.
     62     *
     63     * @throws InvalidFormIdException If the form ID is invalid.
     64     * @throws FormNotFoundException If the form is not found.
    6065     */
    6166    public function get_instance( $form_id ) {
    6267        $form_id = (int) $form_id;
     68
    6369        if ( ! $form_id ) {
    64             return false;
     70            throw new InvalidFormIdException(
     71                /* translators: %d: Form ID. */
     72                esc_attr( sprintf( __( 'Form ID must be an integer. &#8220;%s&#8221; is not a valid integer.', 'omniform' ), $form_id ) )
     73            );
    6574        }
    6675
     
    6877
    6978        if ( ! $_form || 'omniform' !== $_form->post_type ) {
    70             return false;
     79            throw new FormNotFoundException(
     80                /* translators: %d: Form ID. */
     81                esc_attr( sprintf( __( 'Form ID &#8220;%d&#8221; does not exist.', 'omniform' ), $form_id ) )
     82            );
    7183        }
    7284
     
    8294     * Return the form's ID.
    8395     *
    84      * @return number
     96     * @return
    8597     */
    8698    public function get_id() {
     
    98110
    99111    /**
    100      * The form's private status.
     112     * The form's p status.
    101113     *
    102114     * @return bool
    103115     */
    104     public function is_private() {
    105         return ! empty( $this->post_data->post_password );
     116    public function is_p() {
     117        return );
    106118    }
    107119
     
    168180        // If the block is a fieldset, add it to the list of groups.
    169181        if ( $block instanceof Fieldset ) {
     182
     183
     184
     185
     186
     187
     188
     189
    170190            $this->groups[ $block->get_field_group_name() ] = $block->get_field_group_label();
    171191        }
  • omniform/tags/1.1.0/includes/Plugin/RestApi/ResponsesController.php

    r2963371 r3062342  
    5050     */
    5151    public function create_response( \WP_REST_Request $request ) {
    52         $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( absint( $request->get_param( 'id' ) ) );
    53 
    54         if ( ! $form ) {
     52       
     53            $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( absint( $request->get_param( 'id' ) ) );
     54        ) {
    5555            return new \WP_Error(
    5656                'omniform_not_found',
    57                 esc_attr__( 'The requested form was not found.', 'omniform' ),
     57                esc_ ),
    5858                array( 'status' => 404 )
    5959            );
  • omniform/tags/1.1.0/omniform.php

    r2994256 r3062342  
    44 * Plugin URI: https://omniform.io
    55 * Description: Easily create and manage custom forms with the block editor, customizable fields, and form submission management for your website.
    6  * Version: 1.0.5
    7  * Requires at least: 6.2
     6 * Version: 1.
     7 * Requires at least: 6.
    88 * Requires PHP: 7.4
    99 * Author: JR Tashjian
  • omniform/tags/1.1.0/readme.txt

    r2994256 r3062342  
    22Contributors: jrtashjian
    33Tags: contact form, block editor, form builder, forms, email
    4 Requires at least: 6.2
     4Requires at least: 6.
    55Tested up to: 6.4
    66Requires PHP: 7.4
    7 Stable tag: 1.0.5
     7Stable tag: 1.
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8383== Changelog ==
    8484
    85 = 1.0.5 / 2023-11-10 =
     85= 1. =
    8686
    87 * Fix is_required() method to return false if both contexts are null
    88 * Fix field name sanitization in BaseControlBlock
    89 * Toolbar Addition: Set Fields or Fieldsets as Required [#17](https://github.com/jrtashjian/omniform/pull/17)
    90 * Focus message container after submission
    91 * Textarea placeholder should not be the value
    92 
    93 = 1.0.4 / 2023-09-19 =
    94 
    95 * Make newsletter notice dismissable [#16](https://github.com/jrtashjian/omniform/pull/16)
    96 * Show the form editor post title
    97 
    98 = 1.0.3 / 2023-09-09 =
    99 
    100 * Field specific validation rules [#15](https://github.com/jrtashjian/omniform/pull/15)
    101 * Language pack support [#14](https://github.com/jrtashjian/omniform/pull/14)
    102 
    103 = 1.0.2 / 2023-09-06 =
    104 
    105 * Initial release on WordPress.org!
     87  * Improve validation for grouped fields [#18](https://github.com/jrtashjian/omniform/pull/18)
     88  * Require WordPress version 6.3
     89  * Upgrade blocks to API version 3
     90  * Properly restrict nested blocks within the form block
     91  * Use global content_width for preview viewportWidth, if available
     92  * Add proper password protection for form rendering
  • omniform/tags/1.1.0/vendor/composer/autoload_classmap.php

    r2963371 r3062342  
    421421    'OmniForm\\Dependencies\\Respect\\Validation\\Validator' => $baseDir . '/vendor_prefixed/respect/validation/library/Validator.php',
    422422    'OmniForm\\Dependencies\\Symfony\\Polyfill\\Mbstring\\Mbstring' => $baseDir . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php',
     423
     424
    423425    'OmniForm\\HCaptchaRule' => $baseDir . '/includes/HCaptchaRule.php',
    424426    'OmniForm\\Plugin\\Form' => $baseDir . '/includes/Plugin/Form.php',
  • omniform/tags/1.1.0/vendor/composer/autoload_static.php

    r2994256 r3062342  
    440440        'OmniForm\\Dependencies\\Respect\\Validation\\Validator' => __DIR__ . '/../..' . '/vendor_prefixed/respect/validation/library/Validator.php',
    441441        'OmniForm\\Dependencies\\Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php',
     442
     443
    442444        'OmniForm\\HCaptchaRule' => __DIR__ . '/../..' . '/includes/HCaptchaRule.php',
    443445        'OmniForm\\Plugin\\Form' => __DIR__ . '/../..' . '/includes/Plugin/Form.php',
  • omniform/tags/1.1.0/vendor_prefixed/league/container/CHANGELOG.md

    r2963371 r3062342  
    22
    33All Notable changes to `League\Container` will be documented in this file
     4
     5
     6
     7
     8
     9
    410
    511## 4.2.0
  • omniform/tags/1.1.0/vendor_prefixed/league/container/src/Container.php

    r2994256 r3062342  
    8787        return $this;
    8888    }
     89
     90
     91
     92
     93
     94
     95
    8996    public function get($id)
    9097    {
    9198        return $this->resolve($id);
    9299    }
     100
     101
     102
     103
     104
     105
     106
    93107    public function getNew($id)
    94108    {
  • omniform/tags/1.1.0/vendor_prefixed/league/container/src/Definition/Definition.php

    r2994256 r3062342  
    1010use OmniForm\Dependencies\League\Container\ContainerAwareTrait;
    1111use OmniForm\Dependencies\League\Container\Exception\ContainerException;
     12
    1213use OmniForm\Dependencies\Psr\Container\ContainerInterface;
    1314use ReflectionClass;
     
    4546     */
    4647    protected $resolved;
     48
     49
     50
     51
    4752    /**
    4853     * @param string     $id
     
    147152            $container = null;
    148153        }
     154
     155
     156
     157
     158
    149159        // if we still have a string, try to pull it from the container
    150160        // this allows for `alias -> alias -> ... -> concrete
    151161        if (\is_string($concrete) && $container instanceof ContainerInterface && $container->has($concrete)) {
     162
    152163            $concrete = $container->get($concrete);
    153164        }
  • omniform/tags/1.1.0/vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderAggregate.php

    r2994256 r3062342  
    2525            return $this;
    2626        }
    27         if ($provider instanceof ContainerAwareInterface) {
    28             $provider->setContainer($this->getContainer());
    29         }
     27        $provider->setContainer($this->getContainer());
    3028        if ($provider instanceof BootableServiceProviderInterface) {
    3129            $provider->boot();
  • omniform/trunk/build/block-library/button/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/button",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/captcha/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/captcha",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/field/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/field",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/fieldset/block.json

    r2963371 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/fieldset",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/form/block.json

    r2963371 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/form",
    55  "category": "omniform",
  • omniform/trunk/build/block-library/form/index.asset.php

    r2994256 r3062342  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '8039ff3287cd87869643');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '');
  • omniform/trunk/build/block-library/form/index.css

    r2963371 r3062342  
    11.omniform-create-form-modal{z-index:z-index(".omniform-create-form-modal")}@media(min-width:600px){.omniform-create-form-modal .components-modal__frame{max-width:500px}}.omniform-create-form-modal .badge{background-color:#000;border-radius:50rem;color:#fff;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:8px;padding:4px 8px;text-align:center;vertical-align:baseline;white-space:nowrap}.omniform-create-form-modal__modal-actions{padding-top:12px}.omniform-create-form-modal__area-base-control .components-base-control__label{cursor:auto;margin:16px 0 8px}.omniform-create-form-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover:not(:focus),.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover:not(:focus),.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:not(:focus){box-shadow:none}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover:focus,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover:focus,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:focus{border-bottom:1px solid #fff}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-primary:hover:last-of-type,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio.is-secondary:hover:last-of-type,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:last-of-type{border-bottom:none}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:not(:hover),.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio:not(:hover) .omniform-create-form-modal__option-label div,.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio[aria-checked=true] .omniform-create-form-modal__option-label div{color:#949494}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio .omniform-create-form-modal__option-label{padding-top:4px;white-space:normal}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio .omniform-create-form-modal__option-label div{font-size:12px;padding-top:4px}.omniform-create-form-modal__area-radio-group .components-button.omniform-create-form-modal__area-radio .omniform-create-form-modal__checkbox{margin-left:auto;min-width:24px}
    2 .components-panel__body.is-opened.omniform-view-responses__panel{height:48px;padding:0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button{font-weight:600;height:100%;padding:16px;width:100%}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:active,.components-panel__body.is-opened.omniform-view-responses__panel .components-button:hover{background:#f0f0f0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-form__selection-modal .block-library-form__selection-content{padding-top:16px}@media(min-width:600px){.block-editor-form__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media(min-width:782px){.block-editor-form__selection-modal .components-modal__frame{width:750px}}@media(min-width:960px){.block-editor-form__selection-modal .components-modal__frame{height:70%}}
     2.components-panel__body.is-opened.omniform-view-responses__panel{height:48px;padding:0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button{font-weight:600;height:100%;padding:16px;width:100%}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:active,.components-panel__body.is-opened.omniform-view-responses__panel .components-button:hover{background:#f0f0f0}.components-panel__body.is-opened.omniform-view-responses__panel .components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-form__selection-modal .block-library-form__selection-content{padding-top:16px}}
  • omniform/trunk/build/block-library/form/index.js

    r2994256 r3062342  
    1 (()=>{"use strict";var e,t={12:()=>{var e=function(){return e=Object.assign||function(e){for(var t,l=1,a=arguments.length;l<a;l++)for(var o in t=arguments[l])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e){return e.toLowerCase()}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var l=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function o(e,t,l){return t instanceof RegExp?e.replace(t,l):t.reduce((function(e,t){return e.replace(t,l)}),e)}function n(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const r=window.wp.blocks,i=window.wp.data,c=window.wp.htmlEntities,m=window.wp.hooks,s=JSON.parse('{"name":"omniform/form"}'),h=window.React,d=window.wp.blockEditor,v=window.wp.components,f=window.wp.coreData,E=window.wp.element,p=window.wp.i18n,u="omniform",Z=window.wp.primitives,V=(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M3.33 15.424a4.842 4.842 0 0 1 0-6.848l.207-.208v-2.42a2.421 2.421 0 0 1 2.421-2.422H8.38l.086-.086a4.842 4.842 0 0 1 6.848 0l.086.086h2.665a2.421 2.421 0 0 1 2.421 2.421v2.665a4.842 4.842 0 0 1 0 6.776v2.665a2.421 2.421 0 0 1-2.421 2.42h-2.665l-.086.087a4.842 4.842 0 0 1-6.848 0l-.086-.086H5.96a2.421 2.421 0 0 1-2.422-2.421v-2.421l-.207-.208ZM12 5a7 7 0 0 1 7 7h-1.604A5.396 5.396 0 0 0 12 6.604V5Zm0 12.396V19a7 7 0 0 1-7-7h1.604A5.396 5.396 0 0 0 12 17.396ZM15.5 12A3.5 3.5 0 0 0 12 8.5v1.896c.886 0 1.604.718 1.604 1.604H15.5Zm-5.104 0c0 .886.718 1.604 1.604 1.604V15.5A3.5 3.5 0 0 1 8.5 12h1.896Z",clipRule:"evenodd"})),H=((0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4 11a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2H4Zm16 2H4v2h16v-2Z",clipRule:"evenodd"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M2 7h8v2H2V7Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16ZM16 17H5V7h11l3.55 5L16 17Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M14 11H6v2h8v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M2 9a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9Zm2 0h16v6H4V9Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M12 1.95c-5.52 0-10 4.48-10 10s4.48 10 10 10h5v-2h-5c-4.34 0-8-3.66-8-8s3.66-8 8-8 8 3.66 8 8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57v-1.43c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.38 0 2.64-.56 3.54-1.47.65.89 1.77 1.47 2.96 1.47 1.97 0 3.5-1.6 3.5-3.57v-1.43c0-5.52-4.48-10-10-10Zm0 13c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3Z"})),(0,h.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5Zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2Zm-3-4h8v2H8v-2Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"m20.5 10 .5-2h-4l1-4h-2l-1 4h-4l1-4h-2L9 8H5l-.5 2h4l-1 4h-4L3 16h4l-1 4h2l1-4h4l-1 4h2l1-4h4l.5-2h-4l1-4h4Zm-7 4h-4l1-4h4l-1 4Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16H5V5h14v14ZM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99 8-8Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 12a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12Zm2 0c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm0 16H5V10h14v10Zm0-12H5V6h14v2ZM9 14H7v-2h2v2Zm4 0h-2v-2h2v2Zm4 0h-2v-2h2v2Zm-8 4H7v-2h2v2Zm4 0h-2v-2h2v2Zm4 0h-2v-2h2v2Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57a.84.84 0 0 0-.31-.05c-.26 0-.51.1-.71.29l-2.2 2.2a15.149 15.149 0 0 1-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8Zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4.273 3 3 4.273 5.727 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h11.727l4.003 4.003 1.273-1.273L4.273 3ZM4 9h3.727l2 2H6v2h5.727l2 2H4V9Z",clipRule:"evenodd"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M18.819 15H20V9h-7.181l-2-2H20a2 2 0 0 1 2 2v6a2 2 0 0 1-1.305 1.876L18.819 15Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"m13.62 8 1.8-3-1.8-3h-3.58l-1.8 3 1.8 3h3.58Zm-3.58 1-1.8 3 1.8 3h3.58l1.8-3-1.8-3h-3.58Zm6.24 2.51h3.59l1.79-3-1.79-3h-3.59l-1.8 3 1.8 3Zm3.59 1h-3.59l-1.8 3 1.8 3h3.59l1.79-3-1.79-3Zm-12.49-1 1.8-3-1.8-3H3.79L2 8.51l1.79 3h3.59Zm0 1H3.79l-1.79 3 1.79 3h3.59l1.8-3-1.8-3ZM10.04 16l-1.8 3 1.8 3h3.58l1.8-3-1.8-3h-3.58Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M18 9H6v2h12V9Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6 13h8v2H6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H4Zm16 2H4v10h16V7Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6 7h8v2H6V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M14 11H6v2h8v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M6 15h8v2H6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M18 7h-2v2h2V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M4 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12.5a1.5 1.5 0 0 0 1.5-1.5V13h2.5a1.5 1.5 0 0 0 1.5-1.5V5a2 2 0 0 0-2-2H4Zm16 8V5H4v14h12v-6.5a1.5 1.5 0 0 1 1.5-1.5H20Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7Zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M14 10H3v2h11v-2Zm0-4H3v2h11V6Zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4ZM3 16h7v-2H3v2Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M7 7h2v2H7V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M9 11H7v2h2v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M7 15h2v2H7v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 11h-6v2h6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M11 15h6v2h-6v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 7h-6v2h6V7Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5Zm14 2H5v14h14V5Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M17 11H7v2h10v-2Z"}),(0,h.createElement)(Z.Path,{fill:"#D92E83",fillRule:"evenodd",d:"M2 8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8Zm2 0h16v8H4V8Z",clipRule:"evenodd"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M7 7h2v2H7V7Z"}),(0,h.createElement)(Z.Path,{d:"M9 11H7v2h2v-2Z"}),(0,h.createElement)(Z.Path,{d:"M7 15h2v2H7v-2Z"}),(0,h.createElement)(Z.Path,{d:"M17 11h-6v2h6v-2Z"}),(0,h.createElement)(Z.Path,{d:"M11 15h6v2h-6v-2Z"}),(0,h.createElement)(Z.Path,{d:"M17 7h-6v2h6V7Z"}),(0,h.createElement)(Z.Path,{fillRule:"evenodd",d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5Zm14 2H5v14h14V5Z",clipRule:"evenodd"}))),M=(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z"})),_=(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h2c0-1.66 1.34-3 3-3s3 1.34 3 3v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2Zm0 12H6V10h12v10Zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2Z"})),w=((0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#D92E83",d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5l-8-3Zm6 9.09c0 4-2.55 7.7-6 8.83-3.45-1.13-6-4.82-6-8.83v-4.7l6-2.25 6 2.25v4.7Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#1C3AA9",d:"M22 11.986c0-.143-.004-.286-.01-.43V3.44l-2.237 2.244A9.956 9.956 0 0 0 12.015 2 9.958 9.958 0 0 0 4.06 5.962l3.667 3.717a4.868 4.868 0 0 1 1.486-1.672c.64-.501 1.547-.91 2.802-.91a1 1 0 0 1 .355.05 4.833 4.833 0 0 1 3.696 2.233l-2.596 2.604c3.288-.013 7.003-.02 8.53.002Z"}),(0,h.createElement)(Z.Path,{fill:"#4285F4",d:"M11.957 2c-.143 0-.286.004-.428.01H3.436l2.237 2.244A10.007 10.007 0 0 0 2 12.014c0 3.257 1.55 6.15 3.95 7.979l3.706-3.678a4.864 4.864 0 0 1-1.667-1.49c-.5-.642-.908-1.552-.908-2.81 0-.153.018-.27.051-.356A4.851 4.851 0 0 1 9.36 7.952l2.596 2.603c-.013-3.298-.02-7.023.002-8.555Z"}),(0,h.createElement)(Z.Path,{fill:"#ABABAB",d:"M2 12.014c0 .144.004.287.01.43v8.116l2.238-2.244A9.956 9.956 0 0 0 11.985 22a9.959 9.959 0 0 0 7.956-3.962l-3.668-3.717a4.869 4.869 0 0 1-1.485 1.672c-.64.501-1.548.911-2.803.911a.998.998 0 0 1-.354-.051 4.833 4.833 0 0 1-3.696-2.233l2.596-2.604c-3.289.013-7.004.02-8.531-.002Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#0074BF",d:"M17 19.5h-2.5V22H17v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#0074BF",d:"M14.5 19.5H12V22h2.5v-2.5ZM12 19.5H9.5V22H12v-2.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#0074BF",d:"M9.5 19.5H7V22h2.5v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M19.5 17H17v2.5h2.5V17Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M17 17h-2.5v2.5H17V17Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M14.5 17H12v2.5h2.5V17ZM12 17H9.5v2.5H12V17Z"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M9.5 17H7v2.5h2.5V17Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#0082BF",d:"M7 17H4.5v2.5H7V17Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M22 14.5h-2.5V17H22v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M19.5 14.5H17V17h2.5v-2.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M17 14.5h-2.5V17H17v-2.5ZM14.5 14.5H12V17h2.5v-2.5ZM12 14.5H9.5V17H12v-2.5ZM9.5 14.5H7V17h2.5v-2.5Z"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M7 14.5H4.5V17H7v-2.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#008FBF",d:"M4.5 14.5H2V17h2.5v-2.5Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#009DBF",d:"M22 12h-2.5v2.5H22V12Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#009DBF",d:"M19.5 12H17v2.5h2.5V12ZM17 12h-2.5v2.5H17V12ZM14.5 12H12v2.5h2.5V12ZM12 12H9.5v2.5H12V12ZM9.5 12H7v2.5h2.5V12ZM7 12H4.5v2.5H7V12Z"}),(0,h.createElement)(Z.Path,{fill:"#009DBF",d:"M4.5 12H2v2.5h2.5V12Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00ABBF",d:"M22 9.5h-2.5V12H22V9.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00ABBF",d:"M19.5 9.5H17V12h2.5V9.5ZM17 9.5h-2.5V12H17V9.5ZM14.5 9.5H12V12h2.5V9.5ZM12 9.5H9.5V12H12V9.5ZM9.5 9.5H7V12h2.5V9.5ZM7 9.5H4.5V12H7V9.5Z"}),(0,h.createElement)(Z.Path,{fill:"#00ABBF",d:"M4.5 9.5H2V12h2.5V9.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M22 7h-2.5v2.5H22V7Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M19.5 7H17v2.5h2.5V7Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M17 7h-2.5v2.5H17V7ZM14.5 7H12v2.5h2.5V7ZM12 7H9.5v2.5H12V7ZM9.5 7H7v2.5h2.5V7Z"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M7 7H4.5v2.5H7V7Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00B9BF",d:"M4.5 7H2v2.5h2.5V7Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M19.5 4.5H17V7h2.5V4.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M17 4.5h-2.5V7H17V4.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M14.5 4.5H12V7h2.5V4.5ZM12 4.5H9.5V7H12V4.5Z"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M9.5 4.5H7V7h2.5V4.5Z",opacity:".8"}),(0,h.createElement)(Z.Path,{fill:"#00C6BF",d:"M7 4.5H4.5V7H7V4.5Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00D4BF",d:"M17 2h-2.5v2.5H17V2Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#00D4BF",d:"M14.5 2H12v2.5h2.5V2ZM12 2H9.5v2.5H12V2Z",opacity:".7"}),(0,h.createElement)(Z.Path,{fill:"#00D4BF",d:"M9.5 2H7v2.5h2.5V2Z",opacity:".5"}),(0,h.createElement)(Z.Path,{fill:"#fff",d:"m8.582 11.211.697-1.559c.254-.4.22-.89-.058-1.167a.713.713 0 0 0-.435-.206.77.77 0 0 0-.33.033 1.05 1.05 0 0 0-.58.45s-.954 2.224-1.31 3.224c-.354 1-.212 2.834 1.156 4.206 1.451 1.45 3.553 1.783 4.893.777a.84.84 0 0 0 .157-.103l4.13-3.448c.2-.166.497-.508.23-.898-.26-.38-.752-.121-.953.007l-2.376 1.729a.107.107 0 0 1-.154-.018c-.06-.074-.071-.27.024-.349l3.643-3.092c.315-.284.359-.696.104-.978-.249-.277-.644-.268-.962.018l-3.28 2.564a.145.145 0 0 1-.21-.027c-.065-.072-.09-.197-.016-.27L16.667 8.5a.726.726 0 0 0 .036-1.026.693.693 0 0 0-.504-.216.74.74 0 0 0-.522.207l-3.796 3.566c-.09.09-.269 0-.29-.106a.114.114 0 0 1 .032-.106L14.53 7.51a.715.715 0 1 0-1.01-1.014l-4.407 4.872c-.158.158-.39.166-.501.074a.166.166 0 0 1-.029-.23Z"})),(0,h.createElement)(Z.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(Z.Path,{fill:"#F38020",d:"M12.703 3.165a9.406 9.406 0 0 0-6.538 2.377l.595-3.26L5.216 2 4.17 7.724 9.896 8.77l.282-1.545-2.94-.536a7.822 7.822 0 1 1-2.41 3.9l-1.52-.399a9.42 9.42 0 1 0 9.395-7.024Z"}),(0,h.createElement)(Z.Path,{fill:"#F38020",fillRule:"evenodd",d:"m18.28 10.253-1.412-1.411-5.538 5.538-2.202-2.201-1.414 1.413 3.62 3.62 1.413-1.415-.006-.005 5.539-5.539Z",clipRule:"evenodd"})),["omniform/button","omniform/fieldset","omniform/field","omniform/label","omniform/input","omniform/textarea","omniform/select","omniform/select-group","omniform/select-option","omniform/captcha","core/audio","core/block","core/code","core/column","core/columns","core/cover","core/file","core/gallery","core/group","core/heading","core/image","core/list-item","core/list","core/missing","core/paragraph","core/pattern","core/preformatted","core/separator","core/site-logo","core/site-tagline","core/site-title","core/spacer","core/table","core/video"]);function P({blockProps:e,formId:t,hasInnerBlocks:l}){const a=(0,E.useMemo)((()=>({postId:t,postType:u})),[t]),[o,n,r]=(0,f.useEntityBlockEditor)("postType",u,{id:t}),i=(0,d.useInnerBlocksProps)(e,{allowedBlocks:w,value:o,onInput:n,onChange:r,renderAppender:l?void 0:d.InnerBlocks.ButtonBlockAppender});return(0,h.createElement)(d.BlockContextProvider,{value:a},(0,h.createElement)("div",{...i}))}const y=window.wp.url,B=(0,E.createElement)(Z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,E.createElement)(Z.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));function g({formId:e,isEntityAvailable:t}){const[l,a]=(0,f.useEntityProp)("postType",u,"title",e);return t&&(0,h.createElement)(d.InspectorControls,null,(0,h.createElement)(v.PanelBody,{className:"omniform-view-responses__panel"},(0,h.createElement)(v.Button,{icon:B,href:(0,y.addQueryArgs)("edit.php",{post_type:"omniform_response",omniform_id:e})},(0,p.__)("View responses","omniform"))),(0,h.createElement)(v.PanelBody,{title:(0,p.__)("Form Settings","omniform")},(0,h.createElement)(v.TextControl,{label:(0,p.__)("Name","omniform"),value:l,onChange:a,help:(0,p.__)("This name will not be visible to viewers and is only for identifying the form.","omniform")}),(0,h.createElement)(v.Button,{variant:"primary",href:(0,y.addQueryArgs)("post.php",{action:"edit",post:e})},(0,p.__)("View in Form Editor","omniform"))))}const b=window.wp.notices;function F(e){const{forms:t=[],isResolving:l}=(0,i.useSelect)((e=>{var t,l;const{getEntityRecords:a,isResolving:o}=e(f.store),n={per_page:-1,status:"publish"},r={per_page:-1,status:"draft"};return{forms:[...null!==(t=a("postType",u,n))&&void 0!==t?t:[],...null!==(l=a("postType",u,r))&&void 0!==l?l:[]],isLoading:o("getEntityRecords",["postType",u,n])||o("getEntityRecords",["postType",u,r])}}),[]);return{forms:(0,E.useMemo)((()=>t&&t.filter((t=>t.id!==e))||[]),[t,e]),isResolving:l}}const x=window.wp.compose,S=(0,E.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,E.createElement)(Z.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function C({closeModal:e,onCreate:t}){const[l,a]=(0,E.useState)(""),[o,n]=(0,E.useState)("uncategorized"),[r,i]=(0,E.useState)(!1),c=(0,x.useInstanceId)(C),m=[{type:"uncategorized",description:(0,p.__)("General forms are used to collect and organize information for processing or storage.","omniform"),icon:H,label:(0,p.__)("General","omniform")},{type:"search",description:(0,p.__)("A search form allows users to enter a search query and find relevant information on the website.","omniform"),icon:M,label:(0,h.createElement)(h.Fragment,null,(0,p.__)("Search","omniform"),(0,h.createElement)("span",{className:"badge"},(0,p.__)("coming soon","omniform"))),disabled:!0},{type:"login",description:(0,p.__)("A login form is used to authenticate a user's identity and grant them access to the website.","omniform"),icon:_,label:(0,h.createElement)(h.Fragment,null,(0,p.__)("Login","omniform"),(0,h.createElement)("span",{className:"badge"},(0,p.__)("coming soon","omniform"))),disabled:!0}];return(0,h.createElement)(v.Modal,{title:(0,p.__)("Create a form","omniform"),closeLabel:(0,p.__)("Close","omniform"),onRequestClose:e,overlayClassName:"omniform-create-form-modal"},(0,h.createElement)("form",{onSubmit:async e=>{e.preventDefault(),l&&(i(!0),await t({title:l,type:o}))}},(0,h.createElement)(v.TextControl,{label:(0,p.__)("Name","omniform"),value:l,onChange:a,required:!0}),(0,h.createElement)(v.BaseControl,{label:(0,p.__)("Type","omniform"),id:`omniform-create-form-modal__area-selection-${c}`,className:"omniform-create-form-modal__area-base-control"},(0,h.createElement)(v.__experimentalRadioGroup,{label:(0,p.__)("Type","omniform"),className:"omniform-create-form-modal__area-radio-group",id:`omniform-create-form-modal__area-selection-${c}`,onChange:n,checked:o},m.map((({icon:e,label:t,type:l,description:a,disabled:n})=>(0,h.createElement)(v.__experimentalRadio,{key:l,value:l,className:"omniform-create-form-modal__area-radio",disabled:n},(0,h.createElement)(v.Flex,{align:"start",justify:"start"},(0,h.createElement)(v.FlexItem,null,(0,h.createElement)(v.Icon,{icon:e})),(0,h.createElement)(v.FlexBlock,{className:"omniform-create-form-modal__option-label"},t,(0,h.createElement)("div",null,a)),(0,h.createElement)(v.FlexItem,{className:"omniform-create-form-modal__checkbox"},o===l&&(0,h.createElement)(v.Icon,{icon:S})))))))),(0,h.createElement)(v.Flex,{className:"omniform-create-form-modal__modal-actions",justify:"flex-end"},(0,h.createElement)(v.FlexItem,null,(0,h.createElement)(v.Button,{variant:"secondary",onClick:()=>{e()}},(0,p.__)("Cancel","omniform"))),(0,h.createElement)(v.FlexItem,null,(0,h.createElement)(v.Button,{variant:"primary",type:"submit",disabled:!l,isBusy:r},(0,p.__)("Create","omniform"))))))}function k({setAttributes:e,onOpenSelectionModal:t}){const{forms:l,isResolving:a}=F(),o=function(e){const{saveEntityRecord:t}=(0,i.useDispatch)(f.store);return async(l=[],a=(0,p.__)("Untitled Form","omniform"),o="uncategorized")=>{const n={title:a,content:(0,r.serialize)(l),status:"publish"},i=await t("postType",u,n);e({ref:i.id})}}(e),[n,c]=(0,E.useState)(!1),{createSuccessNotice:m,createErrorNotice:s}=(0,i.useDispatch)(b.store);return(0,h.createElement)(v.Placeholder,{icon:null,label:(0,p.__)("OmniForm Form","omniform"),instructions:(0,p.__)("Choose an existing form or create a new one.","omniform")},a&&(0,h.createElement)(v.Spinner,null),!a&&!!l.length&&(0,h.createElement)(v.Button,{variant:"primary",onClick:t},(0,p.__)("Choose","omniform")),!a&&(0,h.createElement)(v.Button,{variant:"secondary",onClick:()=>c(!0)},(0,p.__)("Start blank","omniform")),n&&(0,h.createElement)(C,{closeModal:()=>c(!1),onCreate:async({title:e,type:t})=>{if(e)try{await o([],e,t),m((0,p.__)("Form created","omniform"),{type:"snackbar"}),c(!1)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,p.__)("An error occurred while creating the form.","omniform");s(t,{type:"snackbar"}),c(!1)}else s((0,p.__)("Title is not defined","omniform"),{type:"snackbar"})}}))}function D({formId:e=null,onClose:t,setAttributes:l}){const{forms:a}=F(e),o=(0,E.useMemo)((()=>a.map((e=>({name:e.slug,title:e.title.raw,blocks:(0,r.createBlock)("omniform/form",{ref:e.id}),viewportWidth:768,form:e})))),a),n=(0,x.useAsyncList)(o),i=!!a.length;return(0,h.createElement)("div",{className:"block-library-form__selection-content"},i&&(0,h.createElement)(d.__experimentalBlockPatternsList,{blockPatterns:o,shownPatterns:n,onClickPattern:e=>{var a;a=e.form,l({ref:a.id}),t()},orientation:"horizontal"}),!i&&(0,h.createElement)(v.__experimentalHStack,{alignment:"center"},(0,h.createElement)("p",null,(0,p.__)("No results found.","omniform"))))}const{name:R}=s;(0,r.registerBlockType)(R,{edit:function({context:e,attributes:t,setAttributes:l,clientId:a}){const{postId:o,postType:n}=e,{ref:r}=t,c=n===u?o:r,m=(0,d.__experimentalUseHasRecursion)(c),[s,Z]=(0,E.useState)(!1),{isResolved:H,innerBlocks:M,isMissing:_}=(0,i.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:l}=e(f.store),{getBlocks:o}=e(d.store),n=["postType",u,c],r=c?t(...n):null,i=!!c&&l("getEditedEntityRecord",n);return{innerBlocks:o(a),isResolved:i,isMissing:i&&!r}}),[c,a]),w=(0,d.useBlockProps)({className:"block-library-block__reusable-block-container"}),y=!c,B=!y&&!_&&H;return JSON.stringify(e)===JSON.stringify({})&&void 0===r?(0,h.createElement)("div",{...w},(0,h.createElement)(v.Placeholder,{icon:V,label:(0,p.__)("OmniForm","omniform"),instructions:(0,p.__)("A single form will be rendered here.","omniform")})):0===M.length&&_?(0,h.createElement)("div",{...w},(0,h.createElement)(d.Warning,null,(0,p.__)("Form has been deleted or is unavailable.","omniform"))):B&&m?(0,h.createElement)("div",{...w},(0,h.createElement)(d.Warning,null,(0,p.__)("Form cannot be rendered inside itself.","omniform"))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)(d.__experimentalRecursionProvider,{uniqueId:c},(0,h.createElement)(g,{formId:c,isEntityAvailable:B}),y&&(0,h.createElement)("div",{...w},(0,h.createElement)(k,{clientId:a,formId:c,setAttributes:l,onOpenSelectionModal:()=>Z(!0)})),B&&(0,h.createElement)(P,{blockProps:w,formId:c,hasInnerBlocks:M.length>0}),!y&&!H&&(0,h.createElement)("div",{...w},(0,h.createElement)(v.Spinner,null))),s&&(0,h.createElement)(v.Modal,{overlayClassName:"block-editor-form__selection-modal",title:(0,p.__)("Choose a Form","omniform"),closeLabel:(0,p.__)("Cancel","omniform"),onRequestClose:()=>Z(!1)},(0,h.createElement)(D,{formId:c,setAttributes:l,onClose:()=>Z(!1)})))},icon:{foreground:"#D92E83",src:V},__experimentalLabel:({ref:r})=>{if(!r)return;const m=(0,i.select)("core").getEntityRecord("postType",u,r);return m?(0,c.decodeEntities)(m.title?.rendered)||(0,c.decodeEntities)(m.title?.raw)||(s=m.slug,void 0===h&&(h={}),function(e,n){void 0===n&&(n={});for(var r=n.splitRegexp,i=void 0===r?l:r,c=n.stripRegexp,m=void 0===c?a:c,s=n.transform,h=void 0===s?t:s,d=n.delimiter,v=void 0===d?" ":d,f=o(o(e,i,"$1\0$2"),m,"\0"),E=0,p=f.length;"\0"===f.charAt(E);)E++;for(;"\0"===f.charAt(p-1);)p--;return f.slice(E,p).split("\0").map(h).join(v)}(s,e({delimiter:" ",transform:n},h))):void 0;var s,h}}),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removeOmniformFromOmniformPostType",((e,t)=>"omniform/form"!==t.name||"omniform"!==(0,i.select)("core/editor").getCurrentPostType()?e:(0,i.select)("core/edit-post").isEditingTemplate()))}},l={};function a(e){var o=l[e];if(void 0!==o)return o.exports;var n=l[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.m=t,e=[],a.O=(t,l,o,n)=>{if(!l){var r=1/0;for(s=0;s<e.length;s++){for(var[l,o,n]=e[s],i=!0,c=0;c<l.length;c++)(!1&n||r>=n)&&Object.keys(a.O).every((e=>a.O[e](l[c])))?l.splice(c--,1):(i=!1,n<r&&(r=n));if(i){e.splice(s--,1);var m=o();void 0!==m&&(t=m)}}return t}n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[l,o,n]},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={925:0,43:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var o,n,[r,i,c]=l,m=0;if(r.some((t=>0!==e[t]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(c)var s=c(a)}for(t&&t(l);m<r.length;m++)n=r[m],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(s)},l=globalThis.webpackChunkomniform=globalThis.webpackChunkomniform||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var o=a.O(void 0,[43],(()=>a(12)));o=a.O(o)})();
     1(()=>{"use strict";var e,t={12:()=>{)})();
  • omniform/trunk/build/block-library/input/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/input",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/label/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/label",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/select-group/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/select-group",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/select-option/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/select-option",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/select/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/select",
    55  "category": "omniform-control-simple",
  • omniform/trunk/build/block-library/textarea/block.json

    r2964814 r3062342  
    11{
    2   "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/block.json",
    3   "apiVersion": 2,
     2  "$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/wp/6./schemas/json/block.json",
     3  "apiVersion": ,
    44  "name": "omniform/textarea",
    55  "category": "omniform-control-simple",
  • omniform/trunk/changelog.txt

    r2994256 r3062342  
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
    111
    2121.0.5 / 2023-11-10
  • omniform/trunk/includes/Application.php

    r2994256 r3062342  
    2727     * @var string
    2828     */
    29     const VERSION = '1.0.5';
     29    const VERSION = '1.';
    3030
    3131    /**
  • omniform/trunk/includes/BlockLibrary/BlockLibraryServiceProvider.php

    r2963371 r3062342  
    116116
    117117        foreach ( $blocks as $block ) {
     118
    118119            $block_object = new $block();
    119120
     
    141142                                'ref' => $post->ID,
    142143                            ),
    143                             'viewportWidth' => 768,
     144                            'viewportWidth' => ,
    144145                        ),
    145146                    );
     
    174175            'postTypes'     => array( 'omniform' ),
    175176            'categories'    => array( 'omniform' ),
    176             'viewportWidth' => 768,
     177            'viewportWidth' => ,
    177178        );
    178179
  • omniform/trunk/includes/BlockLibrary/BlockPatterns/appointment.php

    r2964814 r3062342  
    77
    88return array(
    9     'title'   => esc_attr__( 'Appointment', 'omniform' ),
     9    'title'   => esc_attr__( 'Appointment', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading {"className":"wp-block-heading"} -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Book an Appointment', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'Please fill out the form below to make an appointment.', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/trunk/includes/BlockLibrary/BlockPatterns/contact.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Contact', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Contact Us', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'If you have any questions or comments, or if you\'d like to work with me or collaborate on a project, please don\'t hesitate to get in touch. I look forward to hearing from you!', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/trunk/includes/BlockLibrary/BlockPatterns/feedback.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Feedback', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Feedback', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'We value your feedback! Please take a moment to fill out our website feedback form to let us know how we can improve your experience. Your input is important to us and we appreciate your time. Thank you for visiting our website.', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/trunk/includes/BlockLibrary/BlockPatterns/newsletter.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Newsletter', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"style":{"spacing":{"padding":{"top":"2em","right":"2em","bottom":"2em","left":"2em"},"blockGap":"1em"},"border":{"radius":"8px","width":"3px"}},"borderColor":"contrast","textColor":"foreground","layout":{"type":"default"}} -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:group {"style":{"spacing":{"padding":{"top":"2em","right":"2em","bottom":"2em","left":"2em"},"blockGap":"1em"},"border":{"radius":"8px","width":"3px"}},"borderColor":"contrast","textColor":"foreground","layout":{"type":"default"}} -->
    1213        <div class="wp-block-group has-border-color has-contrast-border-color has-foreground-color has-text-color" style="border-width:3px;border-radius:8px;padding-top:2em;padding-right:2em;padding-bottom:2em;padding-left:2em"><!-- wp:columns {"isStackedOnMobile":false} -->
    1314        <div class="wp-block-columns is-not-stacked-on-mobile"><!-- wp:column {"verticalAlignment":"top","width":"80%","style":{"spacing":{"blockGap":"0.75em"}}} -->
     
    3334        <!-- wp:omniform/button {"buttonType":"submit","buttonLabel":"' . esc_html__( 'Join', 'omniform' ) . '","className":"is-style-fill"} /--></div>
    3435        <!-- /wp:group --></div>
     36
    3537        <!-- /wp:group -->
    3638    ',
  • omniform/trunk/includes/BlockLibrary/BlockPatterns/registration.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'Membership Registration', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:heading -->
    13         <h2 class="wp-block-heading">' . esc_html__( 'Membership Registration', 'omniform' ) . '</h2>
    14         <!-- /wp:heading -->
    15 
    16         <!-- wp:paragraph -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:paragraph -->
    1713        <p>' . esc_html__( 'Join our community and take advantage of our member perks! Sign up for a membership and unlock access to special features and discounts.', 'omniform' ) . '</p>
    1814        <!-- /wp:paragraph -->
  • omniform/trunk/includes/BlockLibrary/BlockPatterns/rsvp.php

    r2964814 r3062342  
    99    'title'   => esc_attr__( 'RSVP', 'omniform' ),
    1010    'content' => '
    11         <!-- wp:group {"layout":{"type":"constrained"}} -->
    12         <div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
    13         <div class="wp-block-group"><!-- wp:heading {"textAlign":"center"} -->
    14         <h2 class="wp-block-heading has-text-align-center">' . esc_html__( 'Are You Attending?', 'omniform' ) . '</h2>
    15         <!-- /wp:heading -->
    16 
    17         <!-- wp:paragraph {"align":"center"} -->
    18         <p class="has-text-align-center">' . esc_html__( 'RSVP', 'omniform' ) . '</p>
    19         <!-- /wp:paragraph --></div>
    20         <!-- /wp:group -->
    21 
    22         <!-- wp:omniform/field {"fieldLabel":"' . esc_html__( 'Name', 'omniform' ) . '","fieldName":"' . esc_html__( 'name', 'omniform' ) . '"} -->
     11        <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5em","bottom":"5em","left":"5em","right":"5em"}}},"layout":{"type":"constrained"}} -->
     12        <div class="wp-block-group alignfull" style="padding-top:5em;padding-right:5em;padding-bottom:5em;padding-left:5em"><!-- wp:omniform/field {"fieldLabel":"' . esc_html__( 'Name', 'omniform' ) . '","fieldName":"' . esc_html__( 'name', 'omniform' ) . '"} -->
    2313        <!-- wp:omniform/label /-->
    2414
  • omniform/trunk/includes/BlockLibrary/Blocks/Fieldset.php

    r2994256 r3062342  
    3737        $label_required = null;
    3838
    39         if ( $this->get_block_context( 'isRequired' ) ) {
     39        if ( $this->get_block_( 'isRequired' ) ) {
    4040            $form_id = omniform()->get( Form::class )->get_id() ?? $this->get_block_context( 'postId' );
    4141
  • omniform/trunk/includes/BlockLibrary/Blocks/Form.php

    r2963371 r3062342  
    2222        }
    2323
    24         if ( ! empty( $this->attributes['ref'] ) ) {
    25             $entity_id = $this->attributes['ref'];
     24        if ( ! empty( $this-> ) ) {
     25            $entity_id = $this->;
    2626        }
    2727
     
    3131
    3232        // Setup the Form object.
    33         $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( $entity_id );
    34 
    35         if ( ! $form ) {
     33        try {
     34            /** @var \OmniForm\Plugin\Form */ // phpcs:ignore
     35            $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( $entity_id );
     36        } catch ( \Exception $e ) {
    3637            // Display notice for logged in editors, render nothing for visitors.
    3738            return current_user_can( 'edit_posts' )
    3839                ? sprintf(
    3940                    '<p style="color:var(--wp--preset--color--vivid-red,#cf2e2e);">%s</p>',
    40                     /* translators: %d: Form ID. */
    41                     esc_html( sprintf( __( 'Form ID &#8220;%d&#8221; has been removed.', 'omniform' ), $entity_id ) )
     41                    esc_html( $e->getMessage() )
    4242                )
    4343                : '';
    4444        }
    4545
    46         if ( ! $form->is_published() || $form->is_private() ) {
     46        // If the form is password protected, render the password form.
     47        if ( $form->is_password_protected() ) {
     48            return get_the_password_form();
     49        }
     50
     51        if ( ! $form->is_published() ) {
    4752            // Display notice for logged in editors, render nothing for visitors.
    4853            return current_user_can( 'edit_post', $form->get_id() )
  • omniform/trunk/includes/BlockLibrary/Blocks/Input.php

    r2964814 r3062342  
    8585
    8686    /**
     87
     88
     89
     90
     91
     92
     93
     94
     95
    8796     * Gets the validation rules for the field.
    8897     *
  • omniform/trunk/includes/BlockLibrary/Blocks/Textarea.php

    r2994256 r3062342  
    2121            '<textarea %s>%s</textarea>',
    2222            get_block_wrapper_attributes( $this->get_extra_wrapper_attributes() ),
    23             esc_textarea( $this->get_block_attribute( 'fieldValue' ) )
     23            esc_textarea( $this->get_block_attribute( 'fieldValue' ) )
    2424        );
    2525    }
  • omniform/trunk/includes/Plugin/Form.php

    r2964814 r3062342  
    1212use OmniForm\Dependencies\Dflydev\DotAccessData;
    1313use OmniForm\Dependencies\Respect\Validation;
     14
     15
    1416
    1517/**
     
    5759     * @param int $form_id Form ID.
    5860     *
    59      * @return Form|false Form object, false otherwise.
     61     * @return Form Form object.
     62     *
     63     * @throws InvalidFormIdException If the form ID is invalid.
     64     * @throws FormNotFoundException If the form is not found.
    6065     */
    6166    public function get_instance( $form_id ) {
    6267        $form_id = (int) $form_id;
     68
    6369        if ( ! $form_id ) {
    64             return false;
     70            throw new InvalidFormIdException(
     71                /* translators: %d: Form ID. */
     72                esc_attr( sprintf( __( 'Form ID must be an integer. &#8220;%s&#8221; is not a valid integer.', 'omniform' ), $form_id ) )
     73            );
    6574        }
    6675
     
    6877
    6978        if ( ! $_form || 'omniform' !== $_form->post_type ) {
    70             return false;
     79            throw new FormNotFoundException(
     80                /* translators: %d: Form ID. */
     81                esc_attr( sprintf( __( 'Form ID &#8220;%d&#8221; does not exist.', 'omniform' ), $form_id ) )
     82            );
    7183        }
    7284
     
    8294     * Return the form's ID.
    8395     *
    84      * @return number
     96     * @return
    8597     */
    8698    public function get_id() {
     
    98110
    99111    /**
    100      * The form's private status.
     112     * The form's p status.
    101113     *
    102114     * @return bool
    103115     */
    104     public function is_private() {
    105         return ! empty( $this->post_data->post_password );
     116    public function is_p() {
     117        return );
    106118    }
    107119
     
    168180        // If the block is a fieldset, add it to the list of groups.
    169181        if ( $block instanceof Fieldset ) {
     182
     183
     184
     185
     186
     187
     188
     189
    170190            $this->groups[ $block->get_field_group_name() ] = $block->get_field_group_label();
    171191        }
  • omniform/trunk/includes/Plugin/RestApi/ResponsesController.php

    r2963371 r3062342  
    5050     */
    5151    public function create_response( \WP_REST_Request $request ) {
    52         $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( absint( $request->get_param( 'id' ) ) );
    53 
    54         if ( ! $form ) {
     52       
     53            $form = omniform()->get( \OmniForm\Plugin\Form::class )->get_instance( absint( $request->get_param( 'id' ) ) );
     54        ) {
    5555            return new \WP_Error(
    5656                'omniform_not_found',
    57                 esc_attr__( 'The requested form was not found.', 'omniform' ),
     57                esc_ ),
    5858                array( 'status' => 404 )
    5959            );
  • omniform/trunk/omniform.php

    r2994256 r3062342  
    44 * Plugin URI: https://omniform.io
    55 * Description: Easily create and manage custom forms with the block editor, customizable fields, and form submission management for your website.
    6  * Version: 1.0.5
    7  * Requires at least: 6.2
     6 * Version: 1.
     7 * Requires at least: 6.
    88 * Requires PHP: 7.4
    99 * Author: JR Tashjian
  • omniform/trunk/readme.txt

    r2994256 r3062342  
    22Contributors: jrtashjian
    33Tags: contact form, block editor, form builder, forms, email
    4 Requires at least: 6.2
     4Requires at least: 6.
    55Tested up to: 6.4
    66Requires PHP: 7.4
    7 Stable tag: 1.0.5
     7Stable tag: 1.
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8383== Changelog ==
    8484
    85 = 1.0.5 / 2023-11-10 =
     85= 1. =
    8686
    87 * Fix is_required() method to return false if both contexts are null
    88 * Fix field name sanitization in BaseControlBlock
    89 * Toolbar Addition: Set Fields or Fieldsets as Required [#17](https://github.com/jrtashjian/omniform/pull/17)
    90 * Focus message container after submission
    91 * Textarea placeholder should not be the value
    92 
    93 = 1.0.4 / 2023-09-19 =
    94 
    95 * Make newsletter notice dismissable [#16](https://github.com/jrtashjian/omniform/pull/16)
    96 * Show the form editor post title
    97 
    98 = 1.0.3 / 2023-09-09 =
    99 
    100 * Field specific validation rules [#15](https://github.com/jrtashjian/omniform/pull/15)
    101 * Language pack support [#14](https://github.com/jrtashjian/omniform/pull/14)
    102 
    103 = 1.0.2 / 2023-09-06 =
    104 
    105 * Initial release on WordPress.org!
     87  * Improve validation for grouped fields [#18](https://github.com/jrtashjian/omniform/pull/18)
     88  * Require WordPress version 6.3
     89  * Upgrade blocks to API version 3
     90  * Properly restrict nested blocks within the form block
     91  * Use global content_width for preview viewportWidth, if available
     92  * Add proper password protection for form rendering
  • omniform/trunk/vendor/composer/autoload_classmap.php

    r2963371 r3062342  
    421421    'OmniForm\\Dependencies\\Respect\\Validation\\Validator' => $baseDir . '/vendor_prefixed/respect/validation/library/Validator.php',
    422422    'OmniForm\\Dependencies\\Symfony\\Polyfill\\Mbstring\\Mbstring' => $baseDir . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php',
     423
     424
    423425    'OmniForm\\HCaptchaRule' => $baseDir . '/includes/HCaptchaRule.php',
    424426    'OmniForm\\Plugin\\Form' => $baseDir . '/includes/Plugin/Form.php',
  • omniform/trunk/vendor/composer/autoload_static.php

    r2994256 r3062342  
    440440        'OmniForm\\Dependencies\\Respect\\Validation\\Validator' => __DIR__ . '/../..' . '/vendor_prefixed/respect/validation/library/Validator.php',
    441441        'OmniForm\\Dependencies\\Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php',
     442
     443
    442444        'OmniForm\\HCaptchaRule' => __DIR__ . '/../..' . '/includes/HCaptchaRule.php',
    443445        'OmniForm\\Plugin\\Form' => __DIR__ . '/../..' . '/includes/Plugin/Form.php',
  • omniform/trunk/vendor_prefixed/league/container/CHANGELOG.md

    r2963371 r3062342  
    22
    33All Notable changes to `League\Container` will be documented in this file
     4
     5
     6
     7
     8
     9
    410
    511## 4.2.0
  • omniform/trunk/vendor_prefixed/league/container/src/Container.php

    r2994256 r3062342  
    8787        return $this;
    8888    }
     89
     90
     91
     92
     93
     94
     95
    8996    public function get($id)
    9097    {
    9198        return $this->resolve($id);
    9299    }
     100
     101
     102
     103
     104
     105
     106
    93107    public function getNew($id)
    94108    {
  • omniform/trunk/vendor_prefixed/league/container/src/Definition/Definition.php

    r2994256 r3062342  
    1010use OmniForm\Dependencies\League\Container\ContainerAwareTrait;
    1111use OmniForm\Dependencies\League\Container\Exception\ContainerException;
     12
    1213use OmniForm\Dependencies\Psr\Container\ContainerInterface;
    1314use ReflectionClass;
     
    4546     */
    4647    protected $resolved;
     48
     49
     50
     51
    4752    /**
    4853     * @param string     $id
     
    147152            $container = null;
    148153        }
     154
     155
     156
     157
     158
    149159        // if we still have a string, try to pull it from the container
    150160        // this allows for `alias -> alias -> ... -> concrete
    151161        if (\is_string($concrete) && $container instanceof ContainerInterface && $container->has($concrete)) {
     162
    152163            $concrete = $container->get($concrete);
    153164        }
  • omniform/trunk/vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderAggregate.php

    r2994256 r3062342  
    2525            return $this;
    2626        }
    27         if ($provider instanceof ContainerAwareInterface) {
    28             $provider->setContainer($this->getContainer());
    29         }
     27        $provider->setContainer($this->getContainer());
    3028        if ($provider instanceof BootableServiceProviderInterface) {
    3129            $provider->boot();
Note: See TracChangeset for help on using the changeset viewer.