File manager - Edit - /home/palg2351/public_html/wp-content/plugins/jetformbuilder/modules/advanced-choices/assets/build/editor.js
Back
(()=>{"use strict";var e={d:(t,l)=>{for(var C in l)e.o(l,C)&&!e.o(t,C)&&Object.defineProperty(t,C,{enumerable:!0,get:l[C]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{metadata:()=>X,name:()=>me,settings:()=>ue});var l={};e.r(l),e.d(l,{metadata:()=>Se,name:()=>Pe,settings:()=>De});var C={};e.r(C),e.d(C,{metadata:()=>dt,name:()=>ut,settings:()=>pt});const r=window.React,{__:o}=wp.i18n,{useDispatch:i,useSelect:c}=wp.data,{createBlocksFromInnerBlocksTemplate:a}=wp.blocks;let{__experimentalBlockVariationPicker:n,BlockVariationPicker:m,useBlockEditContext:s}=wp.blockEditor;m=m||n;const{useBlockAttributes:d}=JetFBHooks,u=function(){const{clientId:e}=s(),[,t]=d(),{replaceInnerBlocks:l}=i("core/block-editor"),{variations:C,defaultVariation:n}=c((e=>{const{getBlockVariations:t,getDefaultBlockVariation:l}=e("core/blocks");return{defaultVariation:l(me),variations:t(me,"block")}}),[]);return(0,r.createElement)(m,{allowSkip:!0,label:o("Select choices layout","jet-form-builder"),instructions:o("You can select one of predefined layout, or skip this step and build custom from scratch","jet-form-builder"),variations:C,onSelect:(C=n)=>{C.attributes&&t(C.attributes),C.innerBlocks&&l(e,a(C.innerBlocks),!0)}})},{createContext:h}=wp.element,f=h({current:!1,updateCurrent:()=>{}}),{ToolbarButton:p}=wp.components,{SVG:b,Path:V}=wp.primitives,{useBlockEditContext:g}=wp.blockEditor,{__:w}=wp.i18n,{useCallback:v}=wp.element,{createBlock:j}=wp.blocks,{useDispatch:E,select:k}=wp.data,H=function(){const{clientId:e}=g(),{insertBlock:t}=E("core/block-editor"),l=v((()=>{const l=k("core/block-editor").getBlockCount(e),C=j("jet-forms/choice",{value:`value-of-${l}-choice`,calc_value:l});t(C,l,e)}),[e]);return(0,r.createElement)(p,{onClick:l,icon:(0,r.createElement)(b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(V,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5zM12 4H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2v-6h-1.5v6a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5h6V4z"})),label:w("Add new Choice","jet-form-builder")})},M=(0,r.createElement)("svg",{width:"298",height:"144",viewBox:"0 0 298 144",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("rect",{width:"298",height:"144",rx:"4",fill:"#E2E8F0"}),(0,r.createElement)("rect",{x:"12",y:"12",width:"86",height:"120",rx:"8",fill:"white"}),(0,r.createElement)("rect",{x:"20",y:"44",width:"70",height:"60",rx:"4",fill:"#F1F5F9"}),(0,r.createElement)("path",{d:"M67 86V62H43V86H67ZM50.3333 76L53.6667 80.0133L58.3333 74L64.3333 82H45.6667L50.3333 76Z",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"20",y:"110",width:"70",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"20",y:"116",width:"58",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("path",{d:"M47.5586 27.4648V28.0039C47.5586 28.6445 47.4785 29.2188 47.3184 29.7266C47.1582 30.2344 46.9277 30.666 46.627 31.0215C46.3262 31.377 45.9648 31.6484 45.543 31.8359C45.125 32.0234 44.6562 32.1172 44.1367 32.1172C43.6328 32.1172 43.1699 32.0234 42.748 31.8359C42.3301 31.6484 41.9668 31.377 41.6582 31.0215C41.3535 30.666 41.1172 30.2344 40.9492 29.7266C40.7812 29.2188 40.6973 28.6445 40.6973 28.0039V27.4648C40.6973 26.8242 40.7793 26.252 40.9434 25.748C41.1113 25.2402 41.3477 24.8086 41.6523 24.4531C41.957 24.0938 42.3184 23.8203 42.7363 23.6328C43.1582 23.4453 43.6211 23.3516 44.125 23.3516C44.6445 23.3516 45.1133 23.4453 45.5312 23.6328C45.9531 23.8203 46.3145 24.0938 46.6152 24.4531C46.9199 24.8086 47.1523 25.2402 47.3125 25.748C47.4766 26.252 47.5586 26.8242 47.5586 27.4648ZM46.4395 28.0039V27.4531C46.4395 26.9453 46.3867 26.4961 46.2812 26.1055C46.1797 25.7148 46.0293 25.3867 45.8301 25.1211C45.6309 24.8555 45.3867 24.6543 45.0977 24.5176C44.8125 24.3809 44.4883 24.3125 44.125 24.3125C43.7734 24.3125 43.4551 24.3809 43.1699 24.5176C42.8887 24.6543 42.6465 24.8555 42.4434 25.1211C42.2441 25.3867 42.0898 25.7148 41.9805 26.1055C41.8711 26.4961 41.8164 26.9453 41.8164 27.4531V28.0039C41.8164 28.5156 41.8711 28.9688 41.9805 29.3633C42.0898 29.7539 42.2461 30.084 42.4492 30.3535C42.6562 30.6191 42.9004 30.8203 43.1816 30.957C43.4668 31.0938 43.7852 31.1621 44.1367 31.1621C44.5039 31.1621 44.8301 31.0938 45.1152 30.957C45.4004 30.8203 45.6406 30.6191 45.8359 30.3535C46.0352 30.084 46.1855 29.7539 46.2871 29.3633C46.3887 28.9688 46.4395 28.5156 46.4395 28.0039ZM50.1719 26.8789V34.4375H49.082V25.6602H50.0781L50.1719 26.8789ZM54.4434 28.7773V28.9004C54.4434 29.3613 54.3887 29.7891 54.2793 30.1836C54.1699 30.5742 54.0098 30.9141 53.7988 31.2031C53.5918 31.4922 53.3359 31.7168 53.0312 31.877C52.7266 32.0371 52.377 32.1172 51.9824 32.1172C51.5801 32.1172 51.2246 32.0508 50.916 31.918C50.6074 31.7852 50.3457 31.5918 50.1309 31.3379C49.916 31.084 49.7441 30.7793 49.6152 30.4238C49.4902 30.0684 49.4043 29.668 49.3574 29.2227V28.5664C49.4043 28.0977 49.4922 27.6777 49.6211 27.3066C49.75 26.9355 49.9199 26.6191 50.1309 26.3574C50.3457 26.0918 50.6055 25.8906 50.9102 25.7539C51.2148 25.6133 51.5664 25.543 51.9648 25.543C52.3633 25.543 52.7168 25.6211 53.0254 25.7773C53.334 25.9297 53.5938 26.1484 53.8047 26.4336C54.0156 26.7188 54.1738 27.0605 54.2793 27.459C54.3887 27.8535 54.4434 28.293 54.4434 28.7773ZM53.3535 28.9004V28.7773C53.3535 28.4609 53.3203 28.1641 53.2539 27.8867C53.1875 27.6055 53.084 27.3594 52.9434 27.1484C52.8066 26.9336 52.6309 26.7656 52.416 26.6445C52.2012 26.5195 51.9453 26.457 51.6484 26.457C51.375 26.457 51.1367 26.5039 50.9336 26.5977C50.7344 26.6914 50.5645 26.8184 50.4238 26.9785C50.2832 27.1348 50.168 27.3145 50.0781 27.5176C49.9922 27.7168 49.9277 27.9238 49.8848 28.1387V29.6562C49.9629 29.9297 50.0723 30.1875 50.2129 30.4297C50.3535 30.668 50.541 30.8613 50.7754 31.0098C51.0098 31.1543 51.3047 31.2266 51.6602 31.2266C51.9531 31.2266 52.2051 31.166 52.416 31.0449C52.6309 30.9199 52.8066 30.75 52.9434 30.5352C53.084 30.3203 53.1875 30.0742 53.2539 29.7969C53.3203 29.5156 53.3535 29.2168 53.3535 28.9004ZM58.4805 25.6602V26.4922H55.0527V25.6602H58.4805ZM56.2129 24.1191H57.2969V30.4297C57.2969 30.6445 57.3301 30.8066 57.3965 30.916C57.4629 31.0254 57.5488 31.0977 57.6543 31.1328C57.7598 31.168 57.873 31.1855 57.9941 31.1855C58.084 31.1855 58.1777 31.1777 58.2754 31.1621C58.377 31.1426 58.4531 31.127 58.5039 31.1152L58.5098 32C58.4238 32.0273 58.3105 32.0527 58.1699 32.0762C58.0332 32.1035 57.8672 32.1172 57.6719 32.1172C57.4062 32.1172 57.1621 32.0645 56.9395 31.959C56.7168 31.8535 56.5391 31.6777 56.4062 31.4316C56.2773 31.1816 56.2129 30.8457 56.2129 30.4238V24.1191ZM60.9297 25.6602V32H59.8398V25.6602H60.9297ZM59.7578 23.9785C59.7578 23.8027 59.8105 23.6543 59.916 23.5332C60.0254 23.4121 60.1855 23.3516 60.3965 23.3516C60.6035 23.3516 60.7617 23.4121 60.8711 23.5332C60.9844 23.6543 61.041 23.8027 61.041 23.9785C61.041 24.1465 60.9844 24.291 60.8711 24.4121C60.7617 24.5293 60.6035 24.5879 60.3965 24.5879C60.1855 24.5879 60.0254 24.5293 59.916 24.4121C59.8105 24.291 59.7578 24.1465 59.7578 23.9785ZM62.3828 28.9004V28.7656C62.3828 28.3086 62.4492 27.8848 62.582 27.4941C62.7148 27.0996 62.9062 26.7578 63.1562 26.4688C63.4062 26.1758 63.709 25.9492 64.0645 25.7891C64.4199 25.625 64.8184 25.543 65.2598 25.543C65.7051 25.543 66.1055 25.625 66.4609 25.7891C66.8203 25.9492 67.125 26.1758 67.375 26.4688C67.6289 26.7578 67.8223 27.0996 67.9551 27.4941C68.0879 27.8848 68.1543 28.3086 68.1543 28.7656V28.9004C68.1543 29.3574 68.0879 29.7812 67.9551 30.1719C67.8223 30.5625 67.6289 30.9043 67.375 31.1973C67.125 31.4863 66.8223 31.7129 66.4668 31.877C66.1152 32.0371 65.7168 32.1172 65.2715 32.1172C64.8262 32.1172 64.4258 32.0371 64.0703 31.877C63.7148 31.7129 63.4102 31.4863 63.1562 31.1973C62.9062 30.9043 62.7148 30.5625 62.582 30.1719C62.4492 29.7812 62.3828 29.3574 62.3828 28.9004ZM63.4668 28.7656V28.9004C63.4668 29.2168 63.5039 29.5156 63.5781 29.7969C63.6523 30.0742 63.7637 30.3203 63.9121 30.5352C64.0645 30.75 64.2539 30.9199 64.4805 31.0449C64.707 31.166 64.9707 31.2266 65.2715 31.2266C65.5684 31.2266 65.8281 31.166 66.0508 31.0449C66.2773 30.9199 66.4648 30.75 66.6133 30.5352C66.7617 30.3203 66.873 30.0742 66.9473 29.7969C67.0254 29.5156 67.0645 29.2168 67.0645 28.9004V28.7656C67.0645 28.4531 67.0254 28.1582 66.9473 27.8809C66.873 27.5996 66.7598 27.3516 66.6074 27.1367C66.459 26.918 66.2715 26.7461 66.0449 26.6211C65.8223 26.4961 65.5605 26.4336 65.2598 26.4336C64.9629 26.4336 64.7012 26.4961 64.4746 26.6211C64.252 26.7461 64.0645 26.918 63.9121 27.1367C63.7637 27.3516 63.6523 27.5996 63.5781 27.8809C63.5039 28.1582 63.4668 28.4531 63.4668 28.7656ZM70.5977 27.0137V32H69.5137V25.6602H70.5391L70.5977 27.0137ZM70.3398 28.5898L69.8887 28.5723C69.8926 28.1387 69.957 27.7383 70.082 27.3711C70.207 27 70.3828 26.6777 70.6094 26.4043C70.8359 26.1309 71.1055 25.9199 71.418 25.7715C71.7344 25.6191 72.084 25.543 72.4668 25.543C72.7793 25.543 73.0605 25.5859 73.3105 25.6719C73.5605 25.7539 73.7734 25.8867 73.9492 26.0703C74.1289 26.2539 74.2656 26.4922 74.3594 26.7852C74.4531 27.0742 74.5 27.4277 74.5 27.8457V32H73.4102V27.834C73.4102 27.502 73.3613 27.2363 73.2637 27.0371C73.166 26.834 73.0234 26.6875 72.8359 26.5977C72.6484 26.5039 72.418 26.457 72.1445 26.457C71.875 26.457 71.6289 26.5137 71.4062 26.627C71.1875 26.7402 70.998 26.8965 70.8379 27.0957C70.6816 27.2949 70.5586 27.5234 70.4688 27.7812C70.3828 28.0352 70.3398 28.3047 70.3398 28.5898ZM82.5684 23.4219V32H81.4844V24.7754L79.2988 25.5723V24.5938L82.3984 23.4219H82.5684Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M32.6667 23.3333V32.6667H23.3333V23.3333H32.6667ZM32.6667 22H23.3333C22.6 22 22 22.6 22 23.3333V32.6667C22 33.4 22.6 34 23.3333 34H32.6667C33.4 34 34 33.4 34 32.6667V23.3333C34 22.6 33.4 22 32.6667 22Z",fill:"#64748B"}),(0,r.createElement)("rect",{x:"107",y:"13",width:"84",height:"118",rx:"7",fill:"white",stroke:"#4272F9",strokeWidth:"2"}),(0,r.createElement)("rect",{x:"114",y:"44",width:"70",height:"60",rx:"4",fill:"#F1F5F9"}),(0,r.createElement)("path",{d:"M161 86V62H137V86H161ZM144.333 76L147.667 80.0133L152.333 74L158.333 82H139.667L144.333 76Z",fill:"#CBD5E1"}),(0,r.createElement)("path",{d:"M141.559 27.4648V28.0039C141.559 28.6445 141.479 29.2188 141.318 29.7266C141.158 30.2344 140.928 30.666 140.627 31.0215C140.326 31.377 139.965 31.6484 139.543 31.8359C139.125 32.0234 138.656 32.1172 138.137 32.1172C137.633 32.1172 137.17 32.0234 136.748 31.8359C136.33 31.6484 135.967 31.377 135.658 31.0215C135.354 30.666 135.117 30.2344 134.949 29.7266C134.781 29.2188 134.697 28.6445 134.697 28.0039V27.4648C134.697 26.8242 134.779 26.252 134.943 25.748C135.111 25.2402 135.348 24.8086 135.652 24.4531C135.957 24.0938 136.318 23.8203 136.736 23.6328C137.158 23.4453 137.621 23.3516 138.125 23.3516C138.645 23.3516 139.113 23.4453 139.531 23.6328C139.953 23.8203 140.314 24.0938 140.615 24.4531C140.92 24.8086 141.152 25.2402 141.312 25.748C141.477 26.252 141.559 26.8242 141.559 27.4648ZM140.439 28.0039V27.4531C140.439 26.9453 140.387 26.4961 140.281 26.1055C140.18 25.7148 140.029 25.3867 139.83 25.1211C139.631 24.8555 139.387 24.6543 139.098 24.5176C138.812 24.3809 138.488 24.3125 138.125 24.3125C137.773 24.3125 137.455 24.3809 137.17 24.5176C136.889 24.6543 136.646 24.8555 136.443 25.1211C136.244 25.3867 136.09 25.7148 135.98 26.1055C135.871 26.4961 135.816 26.9453 135.816 27.4531V28.0039C135.816 28.5156 135.871 28.9688 135.98 29.3633C136.09 29.7539 136.246 30.084 136.449 30.3535C136.656 30.6191 136.9 30.8203 137.182 30.957C137.467 31.0938 137.785 31.1621 138.137 31.1621C138.504 31.1621 138.83 31.0938 139.115 30.957C139.4 30.8203 139.641 30.6191 139.836 30.3535C140.035 30.084 140.186 29.7539 140.287 29.3633C140.389 28.9688 140.439 28.5156 140.439 28.0039ZM144.172 26.8789V34.4375H143.082V25.6602H144.078L144.172 26.8789ZM148.443 28.7773V28.9004C148.443 29.3613 148.389 29.7891 148.279 30.1836C148.17 30.5742 148.01 30.9141 147.799 31.2031C147.592 31.4922 147.336 31.7168 147.031 31.877C146.727 32.0371 146.377 32.1172 145.982 32.1172C145.58 32.1172 145.225 32.0508 144.916 31.918C144.607 31.7852 144.346 31.5918 144.131 31.3379C143.916 31.084 143.744 30.7793 143.615 30.4238C143.49 30.0684 143.404 29.668 143.357 29.2227V28.5664C143.404 28.0977 143.492 27.6777 143.621 27.3066C143.75 26.9355 143.92 26.6191 144.131 26.3574C144.346 26.0918 144.605 25.8906 144.91 25.7539C145.215 25.6133 145.566 25.543 145.965 25.543C146.363 25.543 146.717 25.6211 147.025 25.7773C147.334 25.9297 147.594 26.1484 147.805 26.4336C148.016 26.7188 148.174 27.0605 148.279 27.459C148.389 27.8535 148.443 28.293 148.443 28.7773ZM147.354 28.9004V28.7773C147.354 28.4609 147.32 28.1641 147.254 27.8867C147.188 27.6055 147.084 27.3594 146.943 27.1484C146.807 26.9336 146.631 26.7656 146.416 26.6445C146.201 26.5195 145.945 26.457 145.648 26.457C145.375 26.457 145.137 26.5039 144.934 26.5977C144.734 26.6914 144.564 26.8184 144.424 26.9785C144.283 27.1348 144.168 27.3145 144.078 27.5176C143.992 27.7168 143.928 27.9238 143.885 28.1387V29.6562C143.963 29.9297 144.072 30.1875 144.213 30.4297C144.354 30.668 144.541 30.8613 144.775 31.0098C145.01 31.1543 145.305 31.2266 145.66 31.2266C145.953 31.2266 146.205 31.166 146.416 31.0449C146.631 30.9199 146.807 30.75 146.943 30.5352C147.084 30.3203 147.188 30.0742 147.254 29.7969C147.32 29.5156 147.354 29.2168 147.354 28.9004ZM152.48 25.6602V26.4922H149.053V25.6602H152.48ZM150.213 24.1191H151.297V30.4297C151.297 30.6445 151.33 30.8066 151.396 30.916C151.463 31.0254 151.549 31.0977 151.654 31.1328C151.76 31.168 151.873 31.1855 151.994 31.1855C152.084 31.1855 152.178 31.1777 152.275 31.1621C152.377 31.1426 152.453 31.127 152.504 31.1152L152.51 32C152.424 32.0273 152.311 32.0527 152.17 32.0762C152.033 32.1035 151.867 32.1172 151.672 32.1172C151.406 32.1172 151.162 32.0645 150.939 31.959C150.717 31.8535 150.539 31.6777 150.406 31.4316C150.277 31.1816 150.213 30.8457 150.213 30.4238V24.1191ZM154.93 25.6602V32H153.84V25.6602H154.93ZM153.758 23.9785C153.758 23.8027 153.811 23.6543 153.916 23.5332C154.025 23.4121 154.186 23.3516 154.396 23.3516C154.604 23.3516 154.762 23.4121 154.871 23.5332C154.984 23.6543 155.041 23.8027 155.041 23.9785C155.041 24.1465 154.984 24.291 154.871 24.4121C154.762 24.5293 154.604 24.5879 154.396 24.5879C154.186 24.5879 154.025 24.5293 153.916 24.4121C153.811 24.291 153.758 24.1465 153.758 23.9785ZM156.383 28.9004V28.7656C156.383 28.3086 156.449 27.8848 156.582 27.4941C156.715 27.0996 156.906 26.7578 157.156 26.4688C157.406 26.1758 157.709 25.9492 158.064 25.7891C158.42 25.625 158.818 25.543 159.26 25.543C159.705 25.543 160.105 25.625 160.461 25.7891C160.82 25.9492 161.125 26.1758 161.375 26.4688C161.629 26.7578 161.822 27.0996 161.955 27.4941C162.088 27.8848 162.154 28.3086 162.154 28.7656V28.9004C162.154 29.3574 162.088 29.7812 161.955 30.1719C161.822 30.5625 161.629 30.9043 161.375 31.1973C161.125 31.4863 160.822 31.7129 160.467 31.877C160.115 32.0371 159.717 32.1172 159.271 32.1172C158.826 32.1172 158.426 32.0371 158.07 31.877C157.715 31.7129 157.41 31.4863 157.156 31.1973C156.906 30.9043 156.715 30.5625 156.582 30.1719C156.449 29.7812 156.383 29.3574 156.383 28.9004ZM157.467 28.7656V28.9004C157.467 29.2168 157.504 29.5156 157.578 29.7969C157.652 30.0742 157.764 30.3203 157.912 30.5352C158.064 30.75 158.254 30.9199 158.48 31.0449C158.707 31.166 158.971 31.2266 159.271 31.2266C159.568 31.2266 159.828 31.166 160.051 31.0449C160.277 30.9199 160.465 30.75 160.613 30.5352C160.762 30.3203 160.873 30.0742 160.947 29.7969C161.025 29.5156 161.064 29.2168 161.064 28.9004V28.7656C161.064 28.4531 161.025 28.1582 160.947 27.8809C160.873 27.5996 160.76 27.3516 160.607 27.1367C160.459 26.918 160.271 26.7461 160.045 26.6211C159.822 26.4961 159.561 26.4336 159.26 26.4336C158.963 26.4336 158.701 26.4961 158.475 26.6211C158.252 26.7461 158.064 26.918 157.912 27.1367C157.764 27.3516 157.652 27.5996 157.578 27.8809C157.504 28.1582 157.467 28.4531 157.467 28.7656ZM164.598 27.0137V32H163.514V25.6602H164.539L164.598 27.0137ZM164.34 28.5898L163.889 28.5723C163.893 28.1387 163.957 27.7383 164.082 27.3711C164.207 27 164.383 26.6777 164.609 26.4043C164.836 26.1309 165.105 25.9199 165.418 25.7715C165.734 25.6191 166.084 25.543 166.467 25.543C166.779 25.543 167.061 25.5859 167.311 25.6719C167.561 25.7539 167.773 25.8867 167.949 26.0703C168.129 26.2539 168.266 26.4922 168.359 26.7852C168.453 27.0742 168.5 27.4277 168.5 27.8457V32H167.41V27.834C167.41 27.502 167.361 27.2363 167.264 27.0371C167.166 26.834 167.023 26.6875 166.836 26.5977C166.648 26.5039 166.418 26.457 166.145 26.457C165.875 26.457 165.629 26.5137 165.406 26.627C165.188 26.7402 164.998 26.8965 164.838 27.0957C164.682 27.2949 164.559 27.5234 164.469 27.7812C164.383 28.0352 164.34 28.3047 164.34 28.5898ZM178.596 31.1094V32H173.012V31.2207L175.807 28.1094C176.15 27.7266 176.416 27.4023 176.604 27.1367C176.795 26.8672 176.928 26.627 177.002 26.416C177.08 26.2012 177.119 25.9824 177.119 25.7598C177.119 25.4785 177.061 25.2246 176.943 24.998C176.83 24.7676 176.662 24.584 176.439 24.4473C176.217 24.3105 175.947 24.2422 175.631 24.2422C175.252 24.2422 174.936 24.3164 174.682 24.4648C174.432 24.6094 174.244 24.8125 174.119 25.0742C173.994 25.3359 173.932 25.6367 173.932 25.9766H172.848C172.848 25.4961 172.953 25.0566 173.164 24.6582C173.375 24.2598 173.688 23.9434 174.102 23.709C174.516 23.4707 175.025 23.3516 175.631 23.3516C176.17 23.3516 176.631 23.4473 177.014 23.6387C177.396 23.8262 177.689 24.0918 177.893 24.4355C178.1 24.7754 178.203 25.1738 178.203 25.6309C178.203 25.8809 178.16 26.1348 178.074 26.3926C177.992 26.6465 177.877 26.9004 177.729 27.1543C177.584 27.4082 177.414 27.6582 177.219 27.9043C177.027 28.1504 176.822 28.3926 176.604 28.6309L174.318 31.1094H178.596Z",fill:"#0F172A"}),(0,r.createElement)("g",{clipPath:"url(#clip0_171_1873)"},(0,r.createElement)("path",{d:"M128.667 23.4533L121.06 31.0667L118.233 28.24L119.173 27.3L121.06 29.1867L127.727 22.52L128.667 23.4533ZM127.193 26.8133C127.28 27.1933 127.333 27.5933 127.333 28C127.333 30.9467 124.947 33.3333 122 33.3333C119.053 33.3333 116.667 30.9467 116.667 28C116.667 25.0533 119.053 22.6667 122 22.6667C123.053 22.6667 124.027 22.9733 124.853 23.5L125.813 22.54C124.733 21.78 123.42 21.3333 122 21.3333C118.32 21.3333 115.333 24.32 115.333 28C115.333 31.68 118.32 34.6667 122 34.6667C125.68 34.6667 128.667 31.68 128.667 28C128.667 27.2067 128.52 26.4467 128.267 25.74L127.193 26.8133Z",fill:"#4272F9"})),(0,r.createElement)("rect",{x:"114",y:"110",width:"70",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"114",y:"116",width:"58",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"200",y:"12",width:"86",height:"120",rx:"8",fill:"white"}),(0,r.createElement)("rect",{x:"208",y:"110",width:"70",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"208",y:"116",width:"58",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"208",y:"44",width:"70",height:"60",rx:"4",fill:"#F1F5F9"}),(0,r.createElement)("path",{d:"M255 86V62H231V86H255ZM238.333 76L241.667 80.0133L246.333 74L252.333 82H233.667L238.333 76Z",fill:"#CBD5E1"}),(0,r.createElement)("path",{d:"M235.559 27.4648V28.0039C235.559 28.6445 235.479 29.2188 235.318 29.7266C235.158 30.2344 234.928 30.666 234.627 31.0215C234.326 31.377 233.965 31.6484 233.543 31.8359C233.125 32.0234 232.656 32.1172 232.137 32.1172C231.633 32.1172 231.17 32.0234 230.748 31.8359C230.33 31.6484 229.967 31.377 229.658 31.0215C229.354 30.666 229.117 30.2344 228.949 29.7266C228.781 29.2188 228.697 28.6445 228.697 28.0039V27.4648C228.697 26.8242 228.779 26.252 228.943 25.748C229.111 25.2402 229.348 24.8086 229.652 24.4531C229.957 24.0938 230.318 23.8203 230.736 23.6328C231.158 23.4453 231.621 23.3516 232.125 23.3516C232.645 23.3516 233.113 23.4453 233.531 23.6328C233.953 23.8203 234.314 24.0938 234.615 24.4531C234.92 24.8086 235.152 25.2402 235.312 25.748C235.477 26.252 235.559 26.8242 235.559 27.4648ZM234.439 28.0039V27.4531C234.439 26.9453 234.387 26.4961 234.281 26.1055C234.18 25.7148 234.029 25.3867 233.83 25.1211C233.631 24.8555 233.387 24.6543 233.098 24.5176C232.812 24.3809 232.488 24.3125 232.125 24.3125C231.773 24.3125 231.455 24.3809 231.17 24.5176C230.889 24.6543 230.646 24.8555 230.443 25.1211C230.244 25.3867 230.09 25.7148 229.98 26.1055C229.871 26.4961 229.816 26.9453 229.816 27.4531V28.0039C229.816 28.5156 229.871 28.9688 229.98 29.3633C230.09 29.7539 230.246 30.084 230.449 30.3535C230.656 30.6191 230.9 30.8203 231.182 30.957C231.467 31.0938 231.785 31.1621 232.137 31.1621C232.504 31.1621 232.83 31.0938 233.115 30.957C233.4 30.8203 233.641 30.6191 233.836 30.3535C234.035 30.084 234.186 29.7539 234.287 29.3633C234.389 28.9688 234.439 28.5156 234.439 28.0039ZM238.172 26.8789V34.4375H237.082V25.6602H238.078L238.172 26.8789ZM242.443 28.7773V28.9004C242.443 29.3613 242.389 29.7891 242.279 30.1836C242.17 30.5742 242.01 30.9141 241.799 31.2031C241.592 31.4922 241.336 31.7168 241.031 31.877C240.727 32.0371 240.377 32.1172 239.982 32.1172C239.58 32.1172 239.225 32.0508 238.916 31.918C238.607 31.7852 238.346 31.5918 238.131 31.3379C237.916 31.084 237.744 30.7793 237.615 30.4238C237.49 30.0684 237.404 29.668 237.357 29.2227V28.5664C237.404 28.0977 237.492 27.6777 237.621 27.3066C237.75 26.9355 237.92 26.6191 238.131 26.3574C238.346 26.0918 238.605 25.8906 238.91 25.7539C239.215 25.6133 239.566 25.543 239.965 25.543C240.363 25.543 240.717 25.6211 241.025 25.7773C241.334 25.9297 241.594 26.1484 241.805 26.4336C242.016 26.7188 242.174 27.0605 242.279 27.459C242.389 27.8535 242.443 28.293 242.443 28.7773ZM241.354 28.9004V28.7773C241.354 28.4609 241.32 28.1641 241.254 27.8867C241.188 27.6055 241.084 27.3594 240.943 27.1484C240.807 26.9336 240.631 26.7656 240.416 26.6445C240.201 26.5195 239.945 26.457 239.648 26.457C239.375 26.457 239.137 26.5039 238.934 26.5977C238.734 26.6914 238.564 26.8184 238.424 26.9785C238.283 27.1348 238.168 27.3145 238.078 27.5176C237.992 27.7168 237.928 27.9238 237.885 28.1387V29.6562C237.963 29.9297 238.072 30.1875 238.213 30.4297C238.354 30.668 238.541 30.8613 238.775 31.0098C239.01 31.1543 239.305 31.2266 239.66 31.2266C239.953 31.2266 240.205 31.166 240.416 31.0449C240.631 30.9199 240.807 30.75 240.943 30.5352C241.084 30.3203 241.188 30.0742 241.254 29.7969C241.32 29.5156 241.354 29.2168 241.354 28.9004ZM246.48 25.6602V26.4922H243.053V25.6602H246.48ZM244.213 24.1191H245.297V30.4297C245.297 30.6445 245.33 30.8066 245.396 30.916C245.463 31.0254 245.549 31.0977 245.654 31.1328C245.76 31.168 245.873 31.1855 245.994 31.1855C246.084 31.1855 246.178 31.1777 246.275 31.1621C246.377 31.1426 246.453 31.127 246.504 31.1152L246.51 32C246.424 32.0273 246.311 32.0527 246.17 32.0762C246.033 32.1035 245.867 32.1172 245.672 32.1172C245.406 32.1172 245.162 32.0645 244.939 31.959C244.717 31.8535 244.539 31.6777 244.406 31.4316C244.277 31.1816 244.213 30.8457 244.213 30.4238V24.1191ZM248.93 25.6602V32H247.84V25.6602H248.93ZM247.758 23.9785C247.758 23.8027 247.811 23.6543 247.916 23.5332C248.025 23.4121 248.186 23.3516 248.396 23.3516C248.604 23.3516 248.762 23.4121 248.871 23.5332C248.984 23.6543 249.041 23.8027 249.041 23.9785C249.041 24.1465 248.984 24.291 248.871 24.4121C248.762 24.5293 248.604 24.5879 248.396 24.5879C248.186 24.5879 248.025 24.5293 247.916 24.4121C247.811 24.291 247.758 24.1465 247.758 23.9785ZM250.383 28.9004V28.7656C250.383 28.3086 250.449 27.8848 250.582 27.4941C250.715 27.0996 250.906 26.7578 251.156 26.4688C251.406 26.1758 251.709 25.9492 252.064 25.7891C252.42 25.625 252.818 25.543 253.26 25.543C253.705 25.543 254.105 25.625 254.461 25.7891C254.82 25.9492 255.125 26.1758 255.375 26.4688C255.629 26.7578 255.822 27.0996 255.955 27.4941C256.088 27.8848 256.154 28.3086 256.154 28.7656V28.9004C256.154 29.3574 256.088 29.7812 255.955 30.1719C255.822 30.5625 255.629 30.9043 255.375 31.1973C255.125 31.4863 254.822 31.7129 254.467 31.877C254.115 32.0371 253.717 32.1172 253.271 32.1172C252.826 32.1172 252.426 32.0371 252.07 31.877C251.715 31.7129 251.41 31.4863 251.156 31.1973C250.906 30.9043 250.715 30.5625 250.582 30.1719C250.449 29.7812 250.383 29.3574 250.383 28.9004ZM251.467 28.7656V28.9004C251.467 29.2168 251.504 29.5156 251.578 29.7969C251.652 30.0742 251.764 30.3203 251.912 30.5352C252.064 30.75 252.254 30.9199 252.48 31.0449C252.707 31.166 252.971 31.2266 253.271 31.2266C253.568 31.2266 253.828 31.166 254.051 31.0449C254.277 30.9199 254.465 30.75 254.613 30.5352C254.762 30.3203 254.873 30.0742 254.947 29.7969C255.025 29.5156 255.064 29.2168 255.064 28.9004V28.7656C255.064 28.4531 255.025 28.1582 254.947 27.8809C254.873 27.5996 254.76 27.3516 254.607 27.1367C254.459 26.918 254.271 26.7461 254.045 26.6211C253.822 26.4961 253.561 26.4336 253.26 26.4336C252.963 26.4336 252.701 26.4961 252.475 26.6211C252.252 26.7461 252.064 26.918 251.912 27.1367C251.764 27.3516 251.652 27.5996 251.578 27.8809C251.504 28.1582 251.467 28.4531 251.467 28.7656ZM258.598 27.0137V32H257.514V25.6602H258.539L258.598 27.0137ZM258.34 28.5898L257.889 28.5723C257.893 28.1387 257.957 27.7383 258.082 27.3711C258.207 27 258.383 26.6777 258.609 26.4043C258.836 26.1309 259.105 25.9199 259.418 25.7715C259.734 25.6191 260.084 25.543 260.467 25.543C260.779 25.543 261.061 25.5859 261.311 25.6719C261.561 25.7539 261.773 25.8867 261.949 26.0703C262.129 26.2539 262.266 26.4922 262.359 26.7852C262.453 27.0742 262.5 27.4277 262.5 27.8457V32H261.41V27.834C261.41 27.502 261.361 27.2363 261.264 27.0371C261.166 26.834 261.023 26.6875 260.836 26.5977C260.648 26.5039 260.418 26.457 260.145 26.457C259.875 26.457 259.629 26.5137 259.406 26.627C259.188 26.7402 258.998 26.8965 258.838 27.0957C258.682 27.2949 258.559 27.5234 258.469 27.7812C258.383 28.0352 258.34 28.3047 258.34 28.5898ZM268.588 27.2012H269.361C269.74 27.2012 270.053 27.1387 270.299 27.0137C270.549 26.8848 270.734 26.7109 270.855 26.4922C270.98 26.2695 271.043 26.0195 271.043 25.7422C271.043 25.4141 270.988 25.1387 270.879 24.916C270.77 24.6934 270.605 24.5254 270.387 24.4121C270.168 24.2988 269.891 24.2422 269.555 24.2422C269.25 24.2422 268.98 24.3027 268.746 24.4238C268.516 24.541 268.334 24.709 268.201 24.9277C268.072 25.1465 268.008 25.4043 268.008 25.7012H266.924C266.924 25.2676 267.033 24.873 267.252 24.5176C267.471 24.1621 267.777 23.8789 268.172 23.668C268.57 23.457 269.031 23.3516 269.555 23.3516C270.07 23.3516 270.521 23.4434 270.908 23.627C271.295 23.8066 271.596 24.0762 271.811 24.4355C272.025 24.791 272.133 25.2344 272.133 25.7656C272.133 25.9805 272.082 26.2109 271.98 26.457C271.883 26.6992 271.729 26.9258 271.518 27.1367C271.311 27.3477 271.041 27.5215 270.709 27.6582C270.377 27.791 269.979 27.8574 269.514 27.8574H268.588V27.2012ZM268.588 28.0918V27.4414H269.514C270.057 27.4414 270.506 27.5059 270.861 27.6348C271.217 27.7637 271.496 27.9355 271.699 28.1504C271.906 28.3652 272.051 28.6016 272.133 28.8594C272.219 29.1133 272.262 29.3672 272.262 29.6211C272.262 30.0195 272.193 30.373 272.057 30.6816C271.924 30.9902 271.734 31.252 271.488 31.4668C271.246 31.6816 270.961 31.8438 270.633 31.9531C270.305 32.0625 269.947 32.1172 269.561 32.1172C269.189 32.1172 268.84 32.0645 268.512 31.959C268.188 31.8535 267.9 31.7012 267.65 31.502C267.4 31.2988 267.205 31.0508 267.064 30.7578C266.924 30.4609 266.854 30.123 266.854 29.7441H267.938C267.938 30.041 268.002 30.3008 268.131 30.5234C268.264 30.7461 268.451 30.9199 268.693 31.0449C268.939 31.166 269.229 31.2266 269.561 31.2266C269.893 31.2266 270.178 31.1699 270.416 31.0566C270.658 30.9395 270.844 30.7637 270.973 30.5293C271.105 30.2949 271.172 30 271.172 29.6445C271.172 29.2891 271.098 28.998 270.949 28.7715C270.801 28.541 270.59 28.3711 270.316 28.2617C270.047 28.1484 269.729 28.0918 269.361 28.0918H268.588Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M220.667 23.3333V32.6667H211.333V23.3333H220.667ZM220.667 22H211.333C210.6 22 210 22.6 210 23.3333V32.6667C210 33.4 210.6 34 211.333 34H220.667C221.4 34 222 33.4 222 32.6667V23.3333C222 22.6 221.4 22 220.667 22Z",fill:"#64748B"}),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_171_1873"},(0,r.createElement)("rect",{width:"16",height:"16",fill:"white",transform:"translate(114 20)"})))),{__:L}=wp.i18n;let{InspectorControls:Z,useBlockProps:y,useInnerBlocksProps:_,useBlockEditContext:x}=wp.blockEditor;const{ToolBarFields:B,BlockLabel:F,BlockName:N,BlockDescription:S,BlockAdvancedValue:A,FieldWrapper:I,StylePanel:P,StyleColorItem:R,StyleColorItemsWrapper:T,StyleBorderItem:D,StyleBorderRadiusItem:O,SwitchPageOnChangeControls:J}=JetFBComponents,{PanelBody:G,ToggleControl:q}=wp.components,{useJetStyle:W,useUniqueNameOnDuplicate:z,useUniqKey:U}=JetFBHooks,{useState:Y}=wp.element,$=["jet-forms/choice"],K=()=>{const{clientId:e}=x(),t=e+"sample-control-1",l=e+"sample-control-2";return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",{className:"jet-form-builder-choice--item"},(0,r.createElement)("span",{className:"jet-form-builder-choice--item-control"},(0,r.createElement)("input",{id:t,type:"checkbox",className:"jet-form-builder-choice--item-control-input"}),(0,r.createElement)("label",{htmlFor:t},L("Item #1","jet-form-builder")))),(0,r.createElement)("li",{className:"jet-form-builder-choice--item"},(0,r.createElement)("span",{className:"jet-form-builder-choice--item-control"},(0,r.createElement)("input",{id:l,type:"checkbox",className:"jet-form-builder-choice--item-control-input"}),(0,r.createElement)("label",{htmlFor:l},L("Item #2","jet-form-builder")))))},Q={className:"jet-form-builder-choice"},X=JSON.parse('{"apiVersion":2,"name":"jet-forms/choices-field","category":"jet-form-builder-fields","title":"Advanced Choices Field","description":"","icon":"<svg width=\\"52\\" height=\\"53\\" viewBox=\\"0 0 52 53\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\">\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M10 14C8.89543 14 8 14.8954 8 16V22C8 23.1046 8.89543 24 10 24H16C17.1046 24 18 23.1046 18 22V16C18 14.8954 17.1046 14 16 14H10ZM16 16H10V22H16V16Z\\" fill=\\"currentColor\\"/>\\n<path d=\\"M23 16C22.4477 16 22 16.4477 22 17C22 17.5523 22.4477 18 23 18H37C37.5523 18 38 17.5523 38 17C38 16.4477 37.5523 16 37 16H23Z\\" fill=\\"currentColor\\"/>\\n<path d=\\"M22 21C22 20.4477 22.4477 20 23 20H37C37.5523 20 38 20.4477 38 21C38 21.5523 37.5523 22 37 22H23C22.4477 22 22 21.5523 22 21Z\\" fill=\\"currentColor\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M23.5 37C25.433 37 27 35.433 27 33.5C27 31.567 25.433 30 23.5 30C21.567 30 20 31.567 20 33.5C20 35.433 21.567 37 23.5 37ZM23.5 35C24.3284 35 25 34.3284 25 33.5C25 32.6716 24.3284 32 23.5 32C22.6716 32 22 32.6716 22 33.5C22 34.3284 22.6716 35 23.5 35Z\\" fill=\\"currentColor\\"/>\\n<path d=\\"M27.0789 39C27.3469 39 27.6037 39.1076 27.7917 39.2985L32.7127 44.2985C33.1001 44.6922 33.0951 45.3253 32.7015 45.7127C32.3078 46.1001 31.6747 46.0951 31.2873 45.7015L27.0789 41.4256L22.8706 45.7015C22.6826 45.8924 22.4259 46 22.1579 46C21.8899 46 21.6332 45.8924 21.4452 45.7015L18.5789 42.7892L15.7127 45.7015C15.3253 46.0951 14.6922 46.1001 14.2985 45.7127C13.9049 45.3253 13.8999 44.6922 14.2873 44.2985L17.8662 40.6622C18.0542 40.4712 18.311 40.3636 18.5789 40.3636C18.8469 40.3636 19.1037 40.4712 19.2917 40.6622L22.1579 43.5744L26.3662 39.2985C26.5542 39.1076 26.811 39 27.0789 39Z\\" fill=\\"currentColor\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M12 0C9.79086 0 8 1.79086 8 4V7H4C1.79086 7 0 8.79086 0 11V49C0 51.2091 1.79086 53 4 53H42C44.2091 53 46 51.2091 46 49V44H48C50.2091 44 52 42.2091 52 40V4C52 1.79086 50.2091 0 48 0H12ZM42 9C43.1046 9 44 9.89543 44 11V49C44 50.1046 43.1046 51 42 51H4C2.89543 51 2 50.1046 2 49V11C2 9.89543 2.89543 9 4 9H42ZM10 4C10 2.89543 10.8954 2 12 2H48C49.1046 2 50 2.89543 50 4V40C50 41.1046 49.1046 42 48 42H46V11C46 8.79086 44.2091 7 42 7H10V4Z\\" fill=\\"currentColor\\"/>\\n</svg>","attributes":{"isPreview":{"type":"boolean","default":false},"value":{"type":"object","default":{}},"allow_multiple":{"type":"boolean","default":false},"label":{"type":"string","default":"","jfb":{"rich":true}},"name":{"type":"string","default":"field_name"},"desc":{"type":"string","default":"","jfb":{"rich":true}},"default":{"type":["string","array","number","boolean","object"],"default":"","jfb":{"rich-no-preset":true}},"required":{"type":"boolean","default":false},"visibility":{"type":"string","default":""}},"keywords":["jetformbuilder","field","choices"],"textdomain":"jet-form-builder","supports":{"html":false,"jetFBSwitchPageOnChange":true,"jetFBSanitizeValue":true,"jetStyle":{"--jfb-choice-text":[".jet-form-builder-choice--item","color","text"],"--jfb-choice-bg":[".jet-form-builder-choice--item","color","background"],"--jfb-choice-border":[".jet-form-builder-choice--item","border"],"--jfb-choice-border-radius":[".jet-form-builder-choice--item","border","radius"],"--jfb-choice-hover-text":[".jet-form-builder-choice--item:hover","color","text"],"--jfb-choice-hover-bg":[".jet-form-builder-choice--item:hover","color","background"],"--jfb-choice-hover-border":[".jet-form-builder-choice--item:hover","border"],"--jfb-choice-hover-border-radius":[".jet-form-builder-choice--item:hover","border","radius"],"--jfb-choice-checked-text":[".jet-form-builder-choice--item.is-checked","color","text"],"--jfb-choice-checked-bg":[".jet-form-builder-choice--item.is-checked","color","background"],"--jfb-choice-checked-border":[".jet-form-builder-choice--item.is-checked","border"],"--jfb-choice-checked-border-radius":[".jet-form-builder-choice--item.is-checked","border","radius"]},"jetCustomWrapperLayout":true,"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"allowSizingOnChildren":true,"default":{"type":"flex"}},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"units":["px","em","rem","vh","vw"]}},"providesContext":{"jet-forms/choices-field--multiple":"allow_multiple","jet-forms/choices-field--required":"required","jet-forms/choices-field--name":"name","jet-forms/choices-field--default":"default"},"usesContext":["jet-forms/repeater-field--name","jet-forms/repeater-row--default","jet-forms/repeater-row--current-index"],"viewScript":"jet-fb-advanced-choices","style":"jet-fb-advanced-choices"}'),{__:ee}=wp.i18n,{assetUrl:te}=JetFBActions,le=e=>["core/image",{alt:e,url:te("img/image-placeholder.jpg"),width:100,height:100}],Ce=[{name:"simple-empty",title:ee("Simple Empty","jet-form-builder"),innerBlocks:[["jet-forms/choice"],["jet-forms/choice"]],isDefault:!0,scope:["hidden"]},{name:"simple-buttons",title:ee("Text","jet-form-builder"),description:ee("Simple buttons list with labels","jet-form-builder"),icon:(0,r.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M24.7125 10.7017C25.1 10.3082 25.0952 9.67505 24.7017 9.28752C24.3082 8.89998 23.675 8.90482 23.2875 9.29831L12.1609 20.5961L8.69122 17.2774C8.29212 16.8956 7.65911 16.9097 7.27736 17.3088C6.89561 17.7079 6.90967 18.3409 7.30878 18.7226L12.2028 23.4039L24.7125 10.7017Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4V28C32 30.2091 30.2091 32 28 32H4C1.79086 32 0 30.2091 0 28V4ZM4 2H28C29.1046 2 30 2.89543 30 4V28C30 29.1046 29.1046 30 28 30H4C2.89543 30 2 29.1046 2 28V4C2 2.89543 2.89543 2 4 2Z",fill:"#0F172A"})),innerBlocks:[["jet-forms/choice",{value:"Book Name #1",calc_value:"100"},[["core/paragraph",{content:"Book Name #1"}]]],["jet-forms/choice",{value:"Book Name #2",calc_value:"200"},[["core/paragraph",{content:"Book Name #2"}]]],["jet-forms/choice",{value:"Book Name #3",calc_value:"200"},[["core/paragraph",{content:"Book Name #3"}]]]],scope:["block"]},{name:"images",title:ee("Images","jet-form-builder"),description:ee("Image buttons","jet-form-builder"),icon:(0,r.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 15C18.433 15 20 13.433 20 11.5C20 9.567 18.433 8 16.5 8C14.567 8 13 9.567 13 11.5C13 13.433 14.567 15 16.5 15ZM16.5 13C17.3284 13 18 12.3284 18 11.5C18 10.6716 17.3284 10 16.5 10C15.6716 10 15 10.6716 15 11.5C15 12.3284 15.6716 13 16.5 13Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M20.7917 17.2985C20.6037 17.1076 20.3469 17 20.0789 17C19.811 17 19.5542 17.1076 19.3662 17.2985L15.1579 21.5744L12.2917 18.6622C12.1037 18.4712 11.8469 18.3636 11.5789 18.3636C11.311 18.3636 11.0542 18.4712 10.8662 18.6622L7.28729 22.2985C6.89989 22.6922 6.90492 23.3253 7.29854 23.7127C7.69216 24.1001 8.32531 24.0951 8.71271 23.7015L11.5789 20.7892L14.4452 23.7015C14.6332 23.8924 14.8899 24 15.1579 24C15.4259 24 15.6826 23.8924 15.8706 23.7015L20.0789 19.4256L24.2873 23.7015C24.6747 24.0951 25.3078 24.1001 25.7015 23.7127C26.0951 23.3253 26.1001 22.6922 25.7127 22.2985L20.7917 17.2985Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4V28C32 30.2091 30.2091 32 28 32H4C1.79086 32 0 30.2091 0 28V4ZM4 2H28C29.1046 2 30 2.89543 30 4V28C30 29.1046 29.1046 30 28 30H4C2.89543 30 2 29.1046 2 28V4C2 2.89543 2.89543 2 4 2Z",fill:"#0F172A"})),innerBlocks:[["jet-forms/choice",{value:"Book Name #1",calc_value:"100"},[le("Book Name #1")]],["jet-forms/choice",{value:"Book Name #2",calc_value:"200"},[le("Book Name #2")]],["jet-forms/choice",{value:"Book Name #3",calc_value:"200"},[le("Book Name #3")]]],scope:["block"]},{name:"buttons-with-images",title:ee("Images with description","jet-form-builder"),description:ee("Image buttons with labels in footer","jet-form-builder"),icon:(0,r.createElement)("svg",{width:"32",height:"38",viewBox:"0 0 32 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 13C18.433 13 20 11.433 20 9.5C20 7.567 18.433 6 16.5 6C14.567 6 13 7.567 13 9.5C13 11.433 14.567 13 16.5 13ZM16.5 11C17.3284 11 18 10.3284 18 9.5C18 8.67157 17.3284 8 16.5 8C15.6716 8 15 8.67157 15 9.5C15 10.3284 15.6716 11 16.5 11Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M20.7917 15.2985C20.6037 15.1076 20.3469 15 20.0789 15C19.811 15 19.5542 15.1076 19.3662 15.2985L15.1579 19.5744L12.2917 16.6622C12.1037 16.4712 11.8469 16.3636 11.5789 16.3636C11.311 16.3636 11.0542 16.4712 10.8662 16.6622L7.28729 20.2985C6.89989 20.6922 6.90492 21.3253 7.29854 21.7127C7.69216 22.1001 8.32531 22.0951 8.71271 21.7015L11.5789 18.7892L14.4452 21.7015C14.6332 21.8924 14.8899 22 15.1579 22C15.4259 22 15.6826 21.8924 15.8706 21.7015L20.0789 17.4256L24.2873 21.7015C24.6747 22.0951 25.3078 22.1001 25.7015 21.7127C26.0951 21.3253 26.1001 20.6922 25.7127 20.2985L20.7917 15.2985Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4V24C32 26.2091 30.2091 28 28 28H4C1.79086 28 0 26.2091 0 24V4ZM4 2H28C29.1046 2 30 2.89543 30 4V24C30 25.1046 29.1046 26 28 26H4C2.89543 26 2 25.1046 2 24V4C2 2.89543 2.89543 2 4 2Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M1 32C0.447715 32 0 32.4477 0 33C0 33.5523 0.447715 34 1 34H31C31.5523 34 32 33.5523 32 33C32 32.4477 31.5523 32 31 32H1Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M0 37C0 36.4477 0.447715 36 1 36H27C27.5523 36 28 36.4477 28 37C28 37.5523 27.5523 38 27 38H1C0.447715 38 0 37.5523 0 37Z",fill:"#0F172A"})),innerBlocks:[["jet-forms/choice",{value:"Book Name #1",calc_value:"100"},[le("Book Name #1"),["core/paragraph",{content:"Book Name #1"}]]],["jet-forms/choice",{value:"Book Name #2",calc_value:"200"},[le("Book Name #2"),["core/paragraph",{content:"Book Name #2"}]]],["jet-forms/choice",{value:"Book Name #3",calc_value:"200"},[le("Book Name #3"),["core/paragraph",{content:"Book Name #3"}]]]],scope:["block"]},{name:"images-with-controls",title:ee("Images with controls","jet-form-builder"),description:ee("Image buttons with controls in footer","jet-form-builder"),icon:(0,r.createElement)("svg",{width:"32",height:"40",viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 0C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10C7.76142 10 10 7.76142 10 5C10 2.23858 7.76142 0 5 0ZM2 5C2 6.65685 3.34315 8 5 8C6.65685 8 8 6.65685 8 5C8 3.34315 6.65685 2 5 2C3.34315 2 2 3.34315 2 5Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M12 3C12 2.44772 12.4477 2 13 2H31C31.5523 2 32 2.44772 32 3C32 3.55228 31.5523 4 31 4H13C12.4477 4 12 3.55228 12 3Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 25C18.433 25 20 23.433 20 21.5C20 19.567 18.433 18 16.5 18C14.567 18 13 19.567 13 21.5C13 23.433 14.567 25 16.5 25ZM16.5 23C17.3284 23 18 22.3284 18 21.5C18 20.6716 17.3284 20 16.5 20C15.6716 20 15 20.6716 15 21.5C15 22.3284 15.6716 23 16.5 23Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M20.7917 27.2985C20.6037 27.1076 20.3469 27 20.0789 27C19.811 27 19.5542 27.1076 19.3662 27.2985L15.1579 31.5744L12.2917 28.6622C12.1037 28.4712 11.8469 28.3636 11.5789 28.3636C11.311 28.3636 11.0542 28.4712 10.8662 28.6622L7.28729 32.2985C6.89989 32.6922 6.90492 33.3253 7.29854 33.7127C7.69216 34.1001 8.32531 34.0951 8.71271 33.7015L11.5789 30.7892L14.4452 33.7015C14.6332 33.8924 14.8899 34 15.1579 34C15.4259 34 15.6826 33.8924 15.8706 33.7015L20.0789 29.4256L24.2873 33.7015C24.6747 34.0951 25.3078 34.1001 25.7015 33.7127C26.0951 33.3253 26.1001 32.6922 25.7127 32.2985L20.7917 27.2985Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C1.79086 12 0 13.7909 0 16V36C0 38.2091 1.79086 40 4 40H28C30.2091 40 32 38.2091 32 36V16C32 13.7909 30.2091 12 28 12H4ZM28 14H4C2.89543 14 2 14.8954 2 16V36C2 37.1046 2.89543 38 4 38H28C29.1046 38 30 37.1046 30 36V16C30 14.8954 29.1046 14 28 14Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M13 6C12.4477 6 12 6.44772 12 7C12 7.55228 12.4477 8 13 8H31C31.5523 8 32 7.55228 32 7C32 6.44772 31.5523 6 31 6H13Z",fill:"#0F172A"})),innerBlocks:[["jet-forms/choice",{value:"Book Name #1",calc_value:"100"},[le("Book Name #1"),["jet-forms/choice-control",{label:"Book Name #1"}]]],["jet-forms/choice",{value:"Book Name #2",calc_value:"200"},[le("Book Name #2"),["jet-forms/choice-control",{label:"Book Name #1"}]]],["jet-forms/choice",{value:"Book Name #3",calc_value:"200"},[le("Book Name #3"),["jet-forms/choice-control",{label:"Book Name #1"}]]]],scope:["block"]}],{useInnerBlocksProps:re}=wp.blockEditor,{Fragment:oe}=wp.element,{createBlock:ie}=wp.blocks,ce=e=>"manual_input"===e.field_options_from&&Array.isArray(e.field_options)&&e.field_options.length>0,ae=(e,t)=>{var l;const C=e.field_options.map((e=>{var t,l;return ie("jet-forms/choice",{value:e.value,calc_value:null!==(t=e.calculate)&&void 0!==t?t:""},[ie("jet-forms/choice-control",{label:null!==(l=e.label)&&void 0!==l?l:""})])}));return ie(me,{name:e.name,label:e.label,desc:e.desc,value:e.value,default:e.default,required:e.required,visibility:e.visibility,switch_on_change:null!==(l=e.switch_on_change)&&void 0!==l&&l,allow_multiple:!!t},C)},ne={from:[{type:"block",blocks:["jet-forms/checkbox-field"],isMatch:ce,transform:e=>ae(e,!0),priority:-1},{type:"block",blocks:["jet-forms/radio-field"],isMatch:ce,transform:e=>ae(e,!1),priority:-1},{type:"block",blocks:["jet-forms/select-field"],isMatch:ce,transform:e=>ae(e,e.multiple),priority:-1}]},{name:me,icon:se}=X,{__:de}=wp.i18n;X.supports.__experimentalLayout=X.supports.layout;const ue={icon:(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:se}}),description:de("Turn any block, text, images, or other objects into the object \nfor selection with this block.","jet-form-builder"),edit:function(e){const{isSelected:t,attributes:l,setAttributes:C}=e;z();const o=U(),i=y(),c=W(Q),a=_(c,{allowedBlocks:$,placeholder:t?(0,r.createElement)(u,null):(0,r.createElement)(K,null)}),n=function({allow_multiple:e}){const[t,l]=Y((()=>e?[]:""));return{current:t,updateCurrent:C=>{if(!e)return void l(t!==C?C:"");const r=Array.isArray(t)?t:[t];r.includes(C)?l(r.filter((e=>e!==C))):l([...r,C])}}}(l);return l.isPreview?(0,r.createElement)("div",{style:{width:"100%",display:"flex",justifyContent:"center"}},M):(0,r.createElement)(f.Provider,{value:n},(0,r.createElement)(B,null,(0,r.createElement)(H,null)),!l.allow_multiple&&(0,r.createElement)(J,null),(0,r.createElement)(Z,null,(0,r.createElement)(G,{title:L("General","jet-form-builder")},(0,r.createElement)(F,null),(0,r.createElement)(N,null),(0,r.createElement)(S,null)),(0,r.createElement)(G,{title:L("Value","jet-form-builder")},(0,r.createElement)(q,{label:L("Allow multiple choices","jet-form-builder"),checked:l.allow_multiple,help:L("Enable this option if you need to be able \nto select multiple options","jet-form-builder"),onChange:e=>C({allow_multiple:e})}),(0,r.createElement)(A,{help:l.allow_multiple&&L("You should list the choice \nvalues separated by commas that should be selected by default. But this \nis not the case when you use a dynamic value using a preset, macros, etc.","jet-form-builder")}))),(0,r.createElement)(Z,{group:"styles"},(0,r.createElement)(P,{label:L("Default choice","jet-form-builder")},(0,r.createElement)(T,null,(0,r.createElement)(R,{cssVar:"--jfb-choice-text",label:L("Text Choice","jet-form-builder")}),(0,r.createElement)(R,{cssVar:"--jfb-choice-bg",label:L("Background Choice","jet-form-builder")})),(0,r.createElement)(D,{cssVar:"--jfb-choice-border",label:L("Border","jet-form-builder"),enableAlpha:!0,labelForControl:!0}),(0,r.createElement)(O,{cssVar:"--jfb-choice-border-radius",label:L("Radius","jet-form-builder")})),(0,r.createElement)(P,{label:L("Hover choice","jet-form-builder")},(0,r.createElement)(T,null,(0,r.createElement)(R,{cssVar:"--jfb-choice-hover-text",label:L("Text Choice","jet-form-builder")}),(0,r.createElement)(R,{cssVar:"--jfb-choice-hover-bg",label:L("Background Choice","jet-form-builder")})),(0,r.createElement)(D,{cssVar:"--jfb-choice-hover-border",label:L("Border","jet-form-builder"),enableAlpha:!0,labelForControl:!0}),(0,r.createElement)(O,{cssVar:"--jfb-choice-hover-border-radius",label:L("Radius","jet-form-builder")})),(0,r.createElement)(P,{label:L("Checked choice","jet-form-builder")},(0,r.createElement)(T,null,(0,r.createElement)(R,{cssVar:"--jfb-choice-checked-text",label:L("Text Choice","jet-form-builder")}),(0,r.createElement)(R,{cssVar:"--jfb-choice-checked-bg",label:L("Background Choice","jet-form-builder")})),(0,r.createElement)(D,{cssVar:"--jfb-choice-checked-border",label:L("Border","jet-form-builder"),enableAlpha:!0,labelForControl:!0}),(0,r.createElement)(O,{cssVar:"--jfb-choice-checked-border-radius",label:L("Radius","jet-form-builder")}))),(0,r.createElement)("div",{...i,key:o("viewBlock")},(0,r.createElement)(I,{...e,key:o("viewBlockWrapper")},(0,r.createElement)("ul",{...a}))))},save:function(){const e=re.save();return(0,r.createElement)(oe,{...e})},example:{attributes:{isPreview:!0}},variations:Ce,transforms:ne},{createContext:he}=wp.element,fe=he({clientId:!1}),{useBlockEditContext:pe}=wp.blockEditor,{useContext:be}=wp.element,Ve=function(){const{clientId:e,name:t}=pe(),{current:l,updateCurrent:C}=be(f),{clientId:r}=be(fe);return"jet-forms/choice"===t?[l.includes?.(e),()=>{C(e)}]:[l.includes?.(r),()=>{C(r)}]},{ToolbarButton:ge}=wp.components,{SVG:we,Path:ve}=wp.primitives,{__:je}=wp.i18n,Ee=function(){const[e,t]=Ve();return(0,r.createElement)(ge,{icon:(0,r.createElement)(we,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(ve,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),title:je(e?"Show unchecked state":"Show checked state","jet-form-builder"),onClick:()=>t(),isActive:e})},{useSelect:ke}=wp.data,He=["jet-forms/choice-control"],Me=(0,r.createElement)("svg",{width:"298",height:"144",viewBox:"0 0 298 144",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("rect",{width:"298",height:"144",rx:"4",fill:"#E2E8F0"}),(0,r.createElement)("rect",{x:"93",y:"12",width:"128",height:"122",rx:"8",fill:"white"}),(0,r.createElement)("rect",{x:"109",y:"114",width:"96",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"109",y:"120",width:"79",height:"4",rx:"2",fill:"#CBD5E1"}),(0,r.createElement)("rect",{x:"109",y:"52",width:"96",height:"56",rx:"4",fill:"#F1F5F9"}),(0,r.createElement)("path",{d:"M169 92.0666V68.8666H145V92.0666H169ZM152.333 82.4L155.667 86.2795L160.333 80.4666L166.333 88.2H147.667L152.333 82.4Z",fill:"#CBD5E1"}),(0,r.createElement)("path",{d:"M147.078 32.9531V33.6719C147.078 34.526 146.971 35.2917 146.758 35.9688C146.544 36.6458 146.237 37.2214 145.836 37.6953C145.435 38.1693 144.953 38.5312 144.391 38.7812C143.833 39.0312 143.208 39.1562 142.516 39.1562C141.844 39.1562 141.227 39.0312 140.664 38.7812C140.107 38.5312 139.622 38.1693 139.211 37.6953C138.805 37.2214 138.49 36.6458 138.266 35.9688C138.042 35.2917 137.93 34.526 137.93 33.6719V32.9531C137.93 32.099 138.039 31.3359 138.258 30.6641C138.482 29.987 138.797 29.4115 139.203 28.9375C139.609 28.4583 140.091 28.0938 140.648 27.8438C141.211 27.5938 141.828 27.4688 142.5 27.4688C143.193 27.4688 143.818 27.5938 144.375 27.8438C144.938 28.0938 145.419 28.4583 145.82 28.9375C146.227 29.4115 146.536 29.987 146.75 30.6641C146.969 31.3359 147.078 32.099 147.078 32.9531ZM145.586 33.6719V32.9375C145.586 32.2604 145.516 31.6615 145.375 31.1406C145.24 30.6198 145.039 30.1823 144.773 29.8281C144.508 29.474 144.182 29.2057 143.797 29.0234C143.417 28.8411 142.984 28.75 142.5 28.75C142.031 28.75 141.607 28.8411 141.227 29.0234C140.852 29.2057 140.529 29.474 140.258 29.8281C139.992 30.1823 139.786 30.6198 139.641 31.1406C139.495 31.6615 139.422 32.2604 139.422 32.9375V33.6719C139.422 34.3542 139.495 34.9583 139.641 35.4844C139.786 36.0052 139.995 36.4453 140.266 36.8047C140.542 37.1589 140.867 37.4271 141.242 37.6094C141.622 37.7917 142.047 37.8828 142.516 37.8828C143.005 37.8828 143.44 37.7917 143.82 37.6094C144.201 37.4271 144.521 37.1589 144.781 36.8047C145.047 36.4453 145.247 36.0052 145.383 35.4844C145.518 34.9583 145.586 34.3542 145.586 33.6719ZM150.562 32.1719V42.25H149.109V30.5469H150.438L150.562 32.1719ZM156.258 34.7031V34.8672C156.258 35.4818 156.185 36.0521 156.039 36.5781C155.893 37.099 155.68 37.5521 155.398 37.9375C155.122 38.3229 154.781 38.6224 154.375 38.8359C153.969 39.0495 153.503 39.1562 152.977 39.1562C152.44 39.1562 151.966 39.0677 151.555 38.8906C151.143 38.7135 150.794 38.4557 150.508 38.1172C150.221 37.7786 149.992 37.3724 149.82 36.8984C149.654 36.4245 149.539 35.8906 149.477 35.2969V34.4219C149.539 33.7969 149.656 33.237 149.828 32.7422C150 32.2474 150.227 31.8255 150.508 31.4766C150.794 31.1224 151.141 30.8542 151.547 30.6719C151.953 30.4844 152.422 30.3906 152.953 30.3906C153.484 30.3906 153.956 30.4948 154.367 30.7031C154.779 30.9062 155.125 31.1979 155.406 31.5781C155.688 31.9583 155.898 32.4141 156.039 32.9453C156.185 33.4714 156.258 34.0573 156.258 34.7031ZM154.805 34.8672V34.7031C154.805 34.2812 154.76 33.8854 154.672 33.5156C154.583 33.1406 154.445 32.8125 154.258 32.5312C154.076 32.2448 153.841 32.0208 153.555 31.8594C153.268 31.6927 152.927 31.6094 152.531 31.6094C152.167 31.6094 151.849 31.6719 151.578 31.7969C151.312 31.9219 151.086 32.0911 150.898 32.3047C150.711 32.513 150.557 32.7526 150.438 33.0234C150.323 33.2891 150.237 33.5651 150.18 33.8516V35.875C150.284 36.2396 150.43 36.5833 150.617 36.9062C150.805 37.224 151.055 37.4818 151.367 37.6797C151.68 37.8724 152.073 37.9688 152.547 37.9688C152.938 37.9688 153.273 37.888 153.555 37.7266C153.841 37.5599 154.076 37.3333 154.258 37.0469C154.445 36.7604 154.583 36.4323 154.672 36.0625C154.76 35.6875 154.805 35.2891 154.805 34.8672ZM161.641 30.5469V31.6562H157.07V30.5469H161.641ZM158.617 28.4922H160.062V36.9062C160.062 37.1927 160.107 37.4089 160.195 37.5547C160.284 37.7005 160.398 37.7969 160.539 37.8438C160.68 37.8906 160.831 37.9141 160.992 37.9141C161.112 37.9141 161.237 37.9036 161.367 37.8828C161.503 37.8568 161.604 37.8359 161.672 37.8203L161.68 39C161.565 39.0365 161.414 39.0703 161.227 39.1016C161.044 39.138 160.823 39.1562 160.562 39.1562C160.208 39.1562 159.883 39.0859 159.586 38.9453C159.289 38.8047 159.052 38.5703 158.875 38.2422C158.703 37.9089 158.617 37.4609 158.617 36.8984V28.4922ZM164.906 30.5469V39H163.453V30.5469H164.906ZM163.344 28.3047C163.344 28.0703 163.414 27.8724 163.555 27.7109C163.701 27.5495 163.914 27.4688 164.195 27.4688C164.471 27.4688 164.682 27.5495 164.828 27.7109C164.979 27.8724 165.055 28.0703 165.055 28.3047C165.055 28.5286 164.979 28.7214 164.828 28.8828C164.682 29.0391 164.471 29.1172 164.195 29.1172C163.914 29.1172 163.701 29.0391 163.555 28.8828C163.414 28.7214 163.344 28.5286 163.344 28.3047ZM166.844 34.8672V34.6875C166.844 34.0781 166.932 33.513 167.109 32.9922C167.286 32.4661 167.542 32.0104 167.875 31.625C168.208 31.2344 168.612 30.9323 169.086 30.7188C169.56 30.5 170.091 30.3906 170.68 30.3906C171.273 30.3906 171.807 30.5 172.281 30.7188C172.76 30.9323 173.167 31.2344 173.5 31.625C173.839 32.0104 174.096 32.4661 174.273 32.9922C174.451 33.513 174.539 34.0781 174.539 34.6875V34.8672C174.539 35.4766 174.451 36.0417 174.273 36.5625C174.096 37.0833 173.839 37.5391 173.5 37.9297C173.167 38.3151 172.763 38.6172 172.289 38.8359C171.82 39.0495 171.289 39.1562 170.695 39.1562C170.102 39.1562 169.568 39.0495 169.094 38.8359C168.62 38.6172 168.214 38.3151 167.875 37.9297C167.542 37.5391 167.286 37.0833 167.109 36.5625C166.932 36.0417 166.844 35.4766 166.844 34.8672ZM168.289 34.6875V34.8672C168.289 35.2891 168.339 35.6875 168.438 36.0625C168.536 36.4323 168.685 36.7604 168.883 37.0469C169.086 37.3333 169.339 37.5599 169.641 37.7266C169.943 37.888 170.294 37.9688 170.695 37.9688C171.091 37.9688 171.438 37.888 171.734 37.7266C172.036 37.5599 172.286 37.3333 172.484 37.0469C172.682 36.7604 172.831 36.4323 172.93 36.0625C173.034 35.6875 173.086 35.2891 173.086 34.8672V34.6875C173.086 34.2708 173.034 33.8776 172.93 33.5078C172.831 33.1328 172.68 32.8021 172.477 32.5156C172.279 32.224 172.029 31.9948 171.727 31.8281C171.43 31.6615 171.081 31.5781 170.68 31.5781C170.284 31.5781 169.935 31.6615 169.633 31.8281C169.336 31.9948 169.086 32.224 168.883 32.5156C168.685 32.8021 168.536 33.1328 168.438 33.5078C168.339 33.8776 168.289 34.2708 168.289 34.6875ZM177.797 32.3516V39H176.352V30.5469H177.719L177.797 32.3516ZM177.453 34.4531L176.852 34.4297C176.857 33.8516 176.943 33.3177 177.109 32.8281C177.276 32.3333 177.51 31.9036 177.812 31.5391C178.115 31.1745 178.474 30.8932 178.891 30.6953C179.312 30.4922 179.779 30.3906 180.289 30.3906C180.706 30.3906 181.081 30.4479 181.414 30.5625C181.747 30.6719 182.031 30.849 182.266 31.0938C182.505 31.3385 182.688 31.6562 182.812 32.0469C182.938 32.4323 183 32.9036 183 33.4609V39H181.547V33.4453C181.547 33.0026 181.482 32.6484 181.352 32.3828C181.221 32.112 181.031 31.9167 180.781 31.7969C180.531 31.6719 180.224 31.6094 179.859 31.6094C179.5 31.6094 179.172 31.6849 178.875 31.8359C178.583 31.987 178.331 32.1953 178.117 32.4609C177.909 32.7266 177.745 33.0312 177.625 33.375C177.51 33.7135 177.453 34.0729 177.453 34.4531ZM193.758 27.5625V39H192.312V29.3672L189.398 30.4297V29.125L193.531 27.5625H193.758Z",fill:"#0F172A"}),(0,r.createElement)("g",{clipPath:"url(#clip0_147_2251)"},(0,r.createElement)("path",{d:"M131 27.18L119.59 38.6L115.35 34.36L116.76 32.95L119.59 35.78L129.59 25.78L131 27.18ZM128.79 32.22C128.92 32.79 129 33.39 129 34C129 38.42 125.42 42 121 42C116.58 42 113 38.42 113 34C113 29.58 116.58 26 121 26C122.58 26 124.04 26.46 125.28 27.25L126.72 25.81C125.1 24.67 123.13 24 121 24C115.48 24 111 28.48 111 34C111 39.52 115.48 44 121 44C126.52 44 131 39.52 131 34C131 32.81 130.78 31.67 130.4 30.61L128.79 32.22Z",fill:"#4272F9"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_147_2251"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"white",transform:"translate(109 22)"})))),{__:Le}=wp.i18n,{InspectorControls:Ze,useBlockProps:ye,useInnerBlocksProps:_e,BlockControls:xe}=wp.blockEditor,{PanelBody:Be,TextControl:Fe}=wp.components,{classnames:Ne}=JetFBActions,Se=JSON.parse('{"apiVersion":2,"name":"jet-forms/choice","title":"Advanced Choice","parent":["jet-forms/choices-field"],"category":"jet-form-builder-fields","keywords":["jetformbuilder","field","choices","choice"],"description":"","icon":"<svg width=\\"46\\" height=\\"46\\" viewBox=\\"0 0 46 46\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\">\\n<path d=\\"M22 10C22 9.44771 22.4477 9 23 9H37C37.5523 9 38 9.44771 38 10C38 10.5523 37.5523 11 37 11H23C22.4477 11 22 10.5523 22 10Z\\" fill=\\"currentColor\\"/>\\n<path d=\\"M23 13C22.4477 13 22 13.4477 22 14C22 14.5523 22.4477 15 23 15H37C37.5523 15 38 14.5523 38 14C38 13.4477 37.5523 13 37 13H23Z\\" fill=\\"currentColor\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M10 7C8.89543 7 8 7.89543 8 9V15C8 16.1046 8.89543 17 10 17H16C17.1046 17 18 16.1046 18 15V9C18 7.89543 17.1046 7 16 7H10ZM16 9H10V15H16V9Z\\" fill=\\"currentColor\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M23.5 30C25.433 30 27 28.433 27 26.5C27 24.567 25.433 23 23.5 23C21.567 23 20 24.567 20 26.5C20 28.433 21.567 30 23.5 30ZM23.5 28C24.3284 28 25 27.3284 25 26.5C25 25.6716 24.3284 25 23.5 25C22.6716 25 22 25.6716 22 26.5C22 27.3284 22.6716 28 23.5 28Z\\" fill=\\"currentColor\\"/>\\n<path d=\\"M27.7917 32.2985C27.6037 32.1076 27.3469 32 27.0789 32C26.811 32 26.5542 32.1076 26.3662 32.2985L22.1579 36.5744L19.2917 33.6622C19.1037 33.4712 18.8469 33.3636 18.5789 33.3636C18.311 33.3636 18.0542 33.4712 17.8662 33.6622L14.2873 37.2985C13.8999 37.6922 13.9049 38.3253 14.2985 38.7127C14.6922 39.1001 15.3253 39.0951 15.7127 38.7015L18.5789 35.7892L21.4452 38.7015C21.6332 38.8924 21.8899 39 22.1579 39C22.4259 39 22.6826 38.8924 22.8706 38.7015L27.0789 34.4256L31.2873 38.7015C31.6747 39.0951 32.3078 39.1001 32.7015 38.7127C33.0951 38.3253 33.1001 37.6922 32.7127 37.2985L27.7917 32.2985Z\\" fill=\\"currentColor\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M4 0C1.79086 0 0 1.79086 0 4V42C0 44.2091 1.79086 46 4 46H42C44.2091 46 46 44.2091 46 42V4C46 1.79086 44.2091 0 42 0H4ZM42 2H4C2.89543 2 2 2.89543 2 4V42C2 43.1046 2.89543 44 4 44H42C43.1046 44 44 43.1046 44 42V4C44 2.89543 43.1046 2 42 2Z\\" fill=\\"currentColor\\"/>\\n</svg>","textdomain":"jet-form-builder","attributes":{"value":{"type":"string","default":""},"calc_value":{"type":"string","default":""},"className":{"type":"string","default":""},"backgroundColor":{"type":"string","default":"#f0f4f9"},"isPreview":{"type":"boolean","default":false}},"supports":{"html":false,"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"default":{"type":"flex","orientation":"vertical"}},"color":{},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"units":["px","em","rem","vh","vw"]}},"providesContext":{"jet-forms/choice--value":"value","jet-forms/choice--calc_value":"calc_value"},"usesContext":["jet-forms/repeater-field--name","jet-forms/repeater-row--default","jet-forms/repeater-row--current-index","jet-forms/choices-field--multiple","jet-forms/choices-field--required","jet-forms/choices-field--default","jet-forms/choices-field--name","jet-forms/choices-field--raw-name"]}'),{useInnerBlocksProps:Ae}=wp.blockEditor,{Fragment:Ie}=wp.element,{name:Pe,icon:Re}=Se,{__:Te}=wp.i18n;Se.supports.__experimentalLayout=Se.supports.layout;const De={icon:(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:Re}}),description:Te("Apply a variety of settings of the one particular choice block.","jet-form-builder"),edit:function(e){const{attributes:t,setAttributes:l,clientId:C}=e,[o]=Ve(),i=Ne({"jet-form-builder-choice--item":!0,"is-checked":o,"jfb-collapse-block-margin":!0,"jfb-collapse-block-border":!0}),c=ke((e=>{const t=[],l=e("core/blocks").getBlockTypes();for(const e of l)!e.name||!He.includes(e.name)&&e.name.includes("jet-forms/")||t.push(e.name);return t}),[]),a=ye({className:i}),n=_e(a,{template:[["core/paragraph",{}]],allowedBlocks:c});return t.isPreview?(0,r.createElement)("div",{style:{width:"100%",display:"flex",justifyContent:"center"}},Me):(0,r.createElement)(fe.Provider,{value:{clientId:C}},(0,r.createElement)("li",{...n}),(0,r.createElement)(xe,{group:"block"},(0,r.createElement)(Ee,null)),(0,r.createElement)(Ze,null,(0,r.createElement)(Be,{title:Le("General","jet-form-builder")},(0,r.createElement)(Fe,{label:Le("Value","jet-form-builder"),value:t.value,onChange:e=>l({value:e.trim()})}),(0,r.createElement)(Fe,{label:Le("Value for Calculated Field","jet-form-builder"),help:Le("This value will be used for calculations\nin the Calculated Field.","jet-form-builder"),value:t.calc_value,onChange:e=>l({calc_value:e.trim()})}))))},save:function(){const e=Ae.save();return(0,r.createElement)(Ie,{...e})},example:{attributes:{isPreview:!0}}},Oe=(0,r.createElement)("svg",{width:"298",height:"144",viewBox:"0 0 298 144",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("rect",{width:"298",height:"144",rx:"4",fill:"#E2E8F0"}),(0,r.createElement)("rect",{x:"50",y:"26",width:"198",height:"92",rx:"8",fill:"white"}),(0,r.createElement)("path",{d:"M124.234 74.4785H126.109C126.012 75.377 125.755 76.181 125.338 76.8906C124.921 77.6003 124.332 78.1634 123.57 78.5801C122.809 78.9902 121.858 79.1953 120.719 79.1953C119.885 79.1953 119.127 79.0391 118.443 78.7266C117.766 78.4141 117.184 77.9714 116.695 77.3984C116.207 76.819 115.829 76.1257 115.562 75.3184C115.302 74.5046 115.172 73.5996 115.172 72.6035V71.1875C115.172 70.1914 115.302 69.2897 115.562 68.4824C115.829 67.6686 116.21 66.972 116.705 66.3926C117.206 65.8132 117.809 65.3672 118.512 65.0547C119.215 64.7422 120.006 64.5859 120.885 64.5859C121.959 64.5859 122.867 64.7878 123.609 65.1914C124.352 65.5951 124.928 66.1549 125.338 66.8711C125.755 67.5807 126.012 68.4043 126.109 69.3418H124.234C124.143 68.6777 123.974 68.1081 123.727 67.6328C123.479 67.151 123.128 66.7799 122.672 66.5195C122.216 66.2591 121.62 66.1289 120.885 66.1289C120.253 66.1289 119.697 66.2493 119.215 66.4902C118.74 66.7311 118.339 67.0729 118.014 67.5156C117.695 67.9583 117.454 68.4889 117.291 69.1074C117.128 69.7259 117.047 70.4128 117.047 71.168V72.6035C117.047 73.3001 117.118 73.9544 117.262 74.5664C117.411 75.1784 117.636 75.7155 117.936 76.1777C118.235 76.64 118.616 77.0046 119.078 77.2715C119.54 77.5319 120.087 77.6621 120.719 77.6621C121.52 77.6621 122.158 77.5352 122.633 77.2812C123.108 77.0273 123.466 76.6628 123.707 76.1875C123.954 75.7122 124.13 75.1426 124.234 74.4785ZM130.211 64V79H128.404V64H130.211ZM129.781 73.3164L129.029 73.2871C129.036 72.5645 129.143 71.8971 129.352 71.2852C129.56 70.6667 129.853 70.1296 130.23 69.6738C130.608 69.2181 131.057 68.8665 131.578 68.6191C132.105 68.3652 132.688 68.2383 133.326 68.2383C133.847 68.2383 134.316 68.3099 134.732 68.4531C135.149 68.5898 135.504 68.8112 135.797 69.1172C136.096 69.4232 136.324 69.8203 136.48 70.3086C136.637 70.7904 136.715 71.3796 136.715 72.0762V79H134.898V72.0566C134.898 71.5033 134.817 71.0605 134.654 70.7285C134.492 70.39 134.254 70.1458 133.941 69.9961C133.629 69.8398 133.245 69.7617 132.789 69.7617C132.34 69.7617 131.93 69.8561 131.559 70.0449C131.194 70.2337 130.878 70.4941 130.611 70.8262C130.351 71.1582 130.146 71.5391 129.996 71.9688C129.853 72.3919 129.781 72.8411 129.781 73.3164ZM138.941 73.834V73.6094C138.941 72.8477 139.052 72.1413 139.273 71.4902C139.495 70.8327 139.814 70.263 140.23 69.7812C140.647 69.293 141.152 68.9154 141.744 68.6484C142.337 68.375 143.001 68.2383 143.736 68.2383C144.479 68.2383 145.146 68.375 145.738 68.6484C146.337 68.9154 146.845 69.293 147.262 69.7812C147.685 70.263 148.007 70.8327 148.229 71.4902C148.45 72.1413 148.561 72.8477 148.561 73.6094V73.834C148.561 74.5957 148.45 75.3021 148.229 75.9531C148.007 76.6042 147.685 77.1738 147.262 77.6621C146.845 78.1439 146.34 78.5215 145.748 78.7949C145.162 79.0618 144.498 79.1953 143.756 79.1953C143.014 79.1953 142.346 79.0618 141.754 78.7949C141.161 78.5215 140.654 78.1439 140.23 77.6621C139.814 77.1738 139.495 76.6042 139.273 75.9531C139.052 75.3021 138.941 74.5957 138.941 73.834ZM140.748 73.6094V73.834C140.748 74.3613 140.81 74.8594 140.934 75.3281C141.057 75.7904 141.243 76.2005 141.49 76.5586C141.744 76.9167 142.06 77.1999 142.438 77.4082C142.815 77.61 143.255 77.7109 143.756 77.7109C144.251 77.7109 144.684 77.61 145.055 77.4082C145.432 77.1999 145.745 76.9167 145.992 76.5586C146.24 76.2005 146.425 75.7904 146.549 75.3281C146.679 74.8594 146.744 74.3613 146.744 73.834V73.6094C146.744 73.0885 146.679 72.597 146.549 72.1348C146.425 71.666 146.236 71.2526 145.982 70.8945C145.735 70.5299 145.423 70.2435 145.045 70.0352C144.674 69.8268 144.238 69.7227 143.736 69.7227C143.242 69.7227 142.805 69.8268 142.428 70.0352C142.057 70.2435 141.744 70.5299 141.49 70.8945C141.243 71.2526 141.057 71.666 140.934 72.1348C140.81 72.597 140.748 73.0885 140.748 73.6094ZM152.789 68.4336V79H150.973V68.4336H152.789ZM150.836 65.6309C150.836 65.3379 150.924 65.0905 151.1 64.8887C151.282 64.6868 151.549 64.5859 151.9 64.5859C152.245 64.5859 152.509 64.6868 152.691 64.8887C152.88 65.0905 152.975 65.3379 152.975 65.6309C152.975 65.9108 152.88 66.1517 152.691 66.3535C152.509 66.5488 152.245 66.6465 151.9 66.6465C151.549 66.6465 151.282 66.5488 151.1 66.3535C150.924 66.1517 150.836 65.9108 150.836 65.6309ZM159.918 77.7109C160.348 77.7109 160.745 77.623 161.109 77.4473C161.474 77.2715 161.773 77.0306 162.008 76.7246C162.242 76.4121 162.376 76.0573 162.408 75.6602H164.127C164.094 76.2852 163.883 76.8678 163.492 77.4082C163.108 77.9421 162.604 78.375 161.979 78.707C161.354 79.0326 160.667 79.1953 159.918 79.1953C159.124 79.1953 158.43 79.0553 157.838 78.7754C157.252 78.4954 156.764 78.1113 156.373 77.623C155.989 77.1348 155.699 76.5749 155.504 75.9434C155.315 75.3053 155.221 74.6315 155.221 73.9219V73.5117C155.221 72.8021 155.315 72.1315 155.504 71.5C155.699 70.862 155.989 70.2988 156.373 69.8105C156.764 69.3223 157.252 68.9382 157.838 68.6582C158.43 68.3783 159.124 68.2383 159.918 68.2383C160.745 68.2383 161.467 68.4076 162.086 68.7461C162.704 69.0781 163.189 69.5339 163.541 70.1133C163.899 70.6862 164.094 71.3372 164.127 72.0664H162.408C162.376 71.6302 162.252 71.2363 162.037 70.8848C161.829 70.5332 161.542 70.2533 161.178 70.0449C160.82 69.8301 160.4 69.7227 159.918 69.7227C159.365 69.7227 158.899 69.8333 158.521 70.0547C158.15 70.2695 157.854 70.5625 157.633 70.9336C157.418 71.2982 157.262 71.7051 157.164 72.1543C157.073 72.597 157.027 73.0495 157.027 73.5117V73.9219C157.027 74.3841 157.073 74.8398 157.164 75.2891C157.255 75.7383 157.408 76.1452 157.623 76.5098C157.844 76.8743 158.141 77.1673 158.512 77.3887C158.889 77.6035 159.358 77.7109 159.918 77.7109ZM170.543 79.1953C169.807 79.1953 169.14 79.0716 168.541 78.8242C167.949 78.5703 167.438 78.2155 167.008 77.7598C166.585 77.304 166.259 76.7637 166.031 76.1387C165.803 75.5137 165.689 74.8301 165.689 74.0879V73.6777C165.689 72.8184 165.816 72.0534 166.07 71.3828C166.324 70.7057 166.669 70.1328 167.105 69.6641C167.542 69.1953 168.036 68.8405 168.59 68.5996C169.143 68.3587 169.716 68.2383 170.309 68.2383C171.064 68.2383 171.715 68.3685 172.262 68.6289C172.815 68.8893 173.268 69.2539 173.619 69.7227C173.971 70.1849 174.231 70.7318 174.4 71.3633C174.57 71.9883 174.654 72.6719 174.654 73.4141V74.2246H166.764V72.75H172.848V72.6133C172.822 72.1445 172.724 71.6888 172.555 71.2461C172.392 70.8034 172.132 70.4388 171.773 70.1523C171.415 69.8659 170.927 69.7227 170.309 69.7227C169.898 69.7227 169.521 69.8105 169.176 69.9863C168.831 70.1556 168.535 70.4095 168.287 70.748C168.04 71.0866 167.848 71.5 167.711 71.9883C167.574 72.4766 167.506 73.0397 167.506 73.6777V74.0879C167.506 74.5892 167.574 75.0612 167.711 75.5039C167.854 75.9401 168.059 76.3242 168.326 76.6562C168.6 76.9883 168.928 77.2487 169.312 77.4375C169.703 77.6263 170.146 77.7207 170.641 77.7207C171.279 77.7207 171.819 77.5905 172.262 77.3301C172.704 77.0697 173.092 76.7214 173.424 76.2852L174.518 77.1543C174.29 77.4993 174 77.8281 173.648 78.1406C173.297 78.4531 172.864 78.707 172.35 78.9023C171.842 79.0977 171.24 79.1953 170.543 79.1953ZM183.688 68.4336V79H181.871V68.4336H183.688ZM181.734 65.6309C181.734 65.3379 181.822 65.0905 181.998 64.8887C182.18 64.6868 182.447 64.5859 182.799 64.5859C183.144 64.5859 183.408 64.6868 183.59 64.8887C183.779 65.0905 183.873 65.3379 183.873 65.6309C183.873 65.9108 183.779 66.1517 183.59 66.3535C183.408 66.5488 183.144 66.6465 182.799 66.6465C182.447 66.6465 182.18 66.5488 181.998 66.3535C181.822 66.1517 181.734 65.9108 181.734 65.6309ZM191.012 68.4336V69.8203H185.299V68.4336H191.012ZM187.232 65.8652H189.039V76.3828C189.039 76.7409 189.094 77.0111 189.205 77.1934C189.316 77.3757 189.459 77.4961 189.635 77.5547C189.811 77.6133 189.999 77.6426 190.201 77.6426C190.351 77.6426 190.507 77.6296 190.67 77.6035C190.839 77.571 190.966 77.5449 191.051 77.5254L191.061 79C190.917 79.0456 190.729 79.0879 190.494 79.127C190.266 79.1725 189.99 79.1953 189.664 79.1953C189.221 79.1953 188.814 79.1074 188.443 78.9316C188.072 78.7559 187.776 78.4629 187.555 78.0527C187.34 77.6361 187.232 77.0762 187.232 76.373V65.8652ZM197.516 79.1953C196.78 79.1953 196.113 79.0716 195.514 78.8242C194.921 78.5703 194.41 78.2155 193.98 77.7598C193.557 77.304 193.232 76.7637 193.004 76.1387C192.776 75.5137 192.662 74.8301 192.662 74.0879V73.6777C192.662 72.8184 192.789 72.0534 193.043 71.3828C193.297 70.7057 193.642 70.1328 194.078 69.6641C194.514 69.1953 195.009 68.8405 195.562 68.5996C196.116 68.3587 196.689 68.2383 197.281 68.2383C198.036 68.2383 198.688 68.3685 199.234 68.6289C199.788 68.8893 200.24 69.2539 200.592 69.7227C200.943 70.1849 201.204 70.7318 201.373 71.3633C201.542 71.9883 201.627 72.6719 201.627 73.4141V74.2246H193.736V72.75H199.82V72.6133C199.794 72.1445 199.697 71.6888 199.527 71.2461C199.365 70.8034 199.104 70.4388 198.746 70.1523C198.388 69.8659 197.9 69.7227 197.281 69.7227C196.871 69.7227 196.493 69.8105 196.148 69.9863C195.803 70.1556 195.507 70.4095 195.26 70.748C195.012 71.0866 194.82 71.5 194.684 71.9883C194.547 72.4766 194.479 73.0397 194.479 73.6777V74.0879C194.479 74.5892 194.547 75.0612 194.684 75.5039C194.827 75.9401 195.032 76.3242 195.299 76.6562C195.572 76.9883 195.901 77.2487 196.285 77.4375C196.676 77.6263 197.118 77.7207 197.613 77.7207C198.251 77.7207 198.792 77.5905 199.234 77.3301C199.677 77.0697 200.064 76.7214 200.396 76.2852L201.49 77.1543C201.262 77.4993 200.973 77.8281 200.621 78.1406C200.27 78.4531 199.837 78.707 199.322 78.9023C198.814 79.0977 198.212 79.1953 197.516 79.1953ZM205.533 70.5332V79H203.717V68.4336H205.436L205.533 70.5332ZM205.162 73.3164L204.322 73.2871C204.329 72.5645 204.423 71.8971 204.605 71.2852C204.788 70.6667 205.058 70.1296 205.416 69.6738C205.774 69.2181 206.22 68.8665 206.754 68.6191C207.288 68.3652 207.906 68.2383 208.609 68.2383C209.104 68.2383 209.56 68.3099 209.977 68.4531C210.393 68.5898 210.755 68.8079 211.061 69.1074C211.367 69.4069 211.604 69.791 211.773 70.2598C211.943 70.7285 212.027 71.2949 212.027 71.959V79H210.221V72.0469C210.221 71.4935 210.126 71.0508 209.938 70.7188C209.755 70.3867 209.495 70.1458 209.156 69.9961C208.818 69.8398 208.421 69.7617 207.965 69.7617C207.431 69.7617 206.985 69.8561 206.627 70.0449C206.269 70.2337 205.982 70.4941 205.768 70.8262C205.553 71.1582 205.396 71.5391 205.299 71.9688C205.208 72.3919 205.162 72.8411 205.162 73.3164ZM212.008 72.3203L210.797 72.6914C210.803 72.112 210.898 71.5553 211.08 71.0215C211.269 70.4876 211.539 70.0124 211.891 69.5957C212.249 69.179 212.688 68.8503 213.209 68.6094C213.73 68.362 214.326 68.2383 214.996 68.2383C215.562 68.2383 216.064 68.3132 216.5 68.4629C216.943 68.6126 217.314 68.8438 217.613 69.1562C217.919 69.4622 218.15 69.8561 218.307 70.3379C218.463 70.8197 218.541 71.3926 218.541 72.0566V79H216.725V72.0371C216.725 71.4447 216.63 70.9857 216.441 70.6602C216.259 70.3281 215.999 70.097 215.66 69.9668C215.328 69.8301 214.931 69.7617 214.469 69.7617C214.072 69.7617 213.72 69.8301 213.414 69.9668C213.108 70.1035 212.851 70.2923 212.643 70.5332C212.434 70.7676 212.275 71.0378 212.164 71.3438C212.06 71.6497 212.008 71.9753 212.008 72.3203Z",fill:"#0F172A"}),(0,r.createElement)("g",{clipPath:"url(#clip0_149_2283)"},(0,r.createElement)("path",{d:"M103.667 64.0433L90.355 77.3666L85.4083 72.42L87.0533 70.775L90.355 74.0766L102.022 62.41L103.667 64.0433ZM101.088 69.9233C101.24 70.5883 101.333 71.2883 101.333 72C101.333 77.1566 97.1567 81.3333 92 81.3333C86.8433 81.3333 82.6667 77.1566 82.6667 72C82.6667 66.8433 86.8433 62.6666 92 62.6666C93.8433 62.6666 95.5467 63.2033 96.9933 64.125L98.6733 62.445C96.7833 61.115 94.485 60.3333 92 60.3333C85.56 60.3333 80.3333 65.56 80.3333 72C80.3333 78.44 85.56 83.6666 92 83.6666C98.44 83.6666 103.667 78.44 103.667 72C103.667 70.6116 103.41 69.2816 102.967 68.045L101.088 69.9233Z",fill:"#4272F9"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_149_2283"},(0,r.createElement)("rect",{width:"28",height:"28",fill:"white",transform:"translate(78 58)"})))),{__:Je,sprintf:Ge}=wp.i18n,{useBlockProps:qe,RichText:We,InspectorControls:ze,MediaUpload:Ue,MediaUploadCheck:Ye,BlockControls:$e}=wp.blockEditor,{useInstanceId:Ke}=wp.compose;let{Button:Qe,PanelBody:Xe,RangeControl:et,__experimentalToggleGroupControl:tt,ToggleGroupControl:lt,__experimentalToggleGroupControlOption:Ct,ToggleGroupControlOption:rt}=wp.components;lt=lt||tt,rt=rt||Ct;const{BaseHelp:ot,BaseLabel:it,StylePanel:ct,StylePanelItem:at}=JetFBComponents,{useStyle:nt,useJetStyle:mt}=JetFBHooks;function st({open:e,hasValue:t=!1}){return(0,r.createElement)(Qe,{isSecondary:!0,isSmall:!0,icon:"edit",onClick:e,className:t?"jet-fb has-value":"",label:Je(t?"Edit icon":"Choose icon","jet-form-builder")},Je(t?"Edit":"Choose","jet-form-builder"))}const dt=JSON.parse('{"apiVersion":2,"name":"jet-forms/choice-control","title":"Choice Control","ancestor":["jet-forms/choice"],"category":"jet-form-builder-fields","keywords":["jetformbuilder","field","check","choice","control"],"description":"","icon":"<svg width=\\"56\\" height=\\"56\\" viewBox=\\"0 0 56 56\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\">\\n<mask id=\\"path-1-inside-1_203_1158\\" fill=\\"currentColor\\">\\n<path d=\\"M32.7014 10.2872C33.095 10.6746 33.1002 11.3077 32.7128 11.7014L15.294 29.4042L8.30878 22.7226C7.90967 22.3409 7.89561 21.7079 8.27736 21.3088C8.65911 20.9097 9.29212 20.8956 9.69122 21.2774L15.2514 26.5958L31.2872 10.2986C31.6746 9.90496 32.3077 9.89985 32.7014 10.2872Z\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M22 40H4C1.79086 40 0 38.2091 0 36V4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V22H41.1875C41.7398 22 42.1875 22.4477 42.1875 23V25.8861C42.1875 26.3518 42.5109 26.7505 42.9541 26.8934C43.2664 26.9941 43.5753 27.1116 43.8809 27.2461C44.1952 27.3718 44.5023 27.5082 44.8023 27.6554C45.2056 27.8532 45.6944 27.7899 46.0121 27.4723L48.0546 25.4298C48.4451 25.0392 49.0783 25.0392 49.4688 25.4298L52.5702 28.5312C52.9608 28.9217 52.9608 29.5549 52.5702 29.9454L50.5277 31.9879C50.2101 32.3056 50.1468 32.7944 50.3446 33.1977C50.4918 33.4977 50.6282 33.8048 50.7539 34.1191C50.8884 34.4247 51.0059 34.7336 51.1066 35.0459C51.2495 35.4891 51.6482 35.8125 52.1139 35.8125H55C55.5523 35.8125 56 36.2602 56 36.8125V41.1875C56 41.7398 55.5523 42.1875 55 42.1875H52.1139C51.6482 42.1875 51.2495 42.5109 51.1066 42.9541C51.0059 43.2664 50.8884 43.5753 50.7539 43.8809C50.6282 44.1952 50.4918 44.5023 50.3446 44.8023C50.1468 45.2056 50.2101 45.6944 50.5277 46.0121L52.5702 48.0546C52.9608 48.4451 52.9608 49.0783 52.5702 49.4688L49.4688 52.5702C49.0783 52.9608 48.4451 52.9608 48.0546 52.5702L46.0121 50.5277C45.6944 50.2101 45.2052 50.1458 44.8049 50.3495C44.5041 50.5026 44.196 50.6484 43.8809 50.7871C43.5759 50.9091 43.2675 51.0177 42.9558 51.1128C42.5104 51.2486 42.1875 51.6482 42.1875 52.1139V55C42.1875 55.5523 41.7398 56 41.1875 56H36.8125C36.2602 56 35.8125 55.5523 35.8125 55V52.1139C35.8125 51.6482 35.4896 51.2486 35.0442 51.1128C34.7325 51.0177 34.4241 50.9091 34.1191 50.7871C33.804 50.6484 33.4959 50.5026 33.1951 50.3495C32.7948 50.1458 32.3056 50.2101 31.9879 50.5277L29.9454 52.5702C29.5549 52.9608 28.9217 52.9608 28.5312 52.5702L25.4298 49.4688C25.0392 49.0783 25.0392 48.4451 25.4298 48.0546L27.4723 46.0121C27.7899 45.6944 27.8542 45.2052 27.6505 44.8049C27.4974 44.5041 27.3516 44.196 27.2129 43.8809C27.0909 43.5759 26.9823 43.2675 26.8872 42.9558C26.7514 42.5104 26.3518 42.1875 25.8861 42.1875H23C22.4477 42.1875 22 41.7398 22 41.1875V40ZM4 2H36C37.1046 2 38 2.89543 38 4V22H36.8125C36.2602 22 35.8125 22.4477 35.8125 23V25.8861C35.8125 26.3518 35.4891 26.7505 35.0459 26.8934C34.7336 26.9941 34.4247 27.1116 34.1191 27.2461C33.8048 27.3718 33.4977 27.5082 33.1977 27.6554C32.7944 27.8532 32.3056 27.7899 31.9879 27.4723L29.9454 25.4298C29.5549 25.0392 28.9217 25.0392 28.5312 25.4298L25.4298 28.5312C25.0392 28.9217 25.0392 29.5549 25.4298 29.9454L27.4723 31.9879C27.7899 32.3056 27.8542 32.7948 27.6505 33.1951C27.4974 33.4959 27.3516 33.804 27.2129 34.1191C27.0909 34.4241 26.9823 34.7325 26.8872 35.0442C26.7514 35.4896 26.3518 35.8125 25.8861 35.8125H23C22.4477 35.8125 22 36.2602 22 36.8125V38H4C2.89543 38 2 37.1046 2 36V4C2 2.89543 2.89543 2 4 2ZM35.248 42.752C36.2884 43.7923 37.5391 44.3125 39 44.3125C40.4609 44.3125 41.7116 43.7923 42.752 42.752C43.7923 41.7116 44.3125 40.4609 44.3125 39C44.3125 37.5391 43.7923 36.2884 42.752 35.248C41.7116 34.2077 40.4609 33.6875 39 33.6875C37.5391 33.6875 36.2884 34.2077 35.248 35.248C34.2077 36.2884 33.6875 37.5391 33.6875 39C33.6875 40.4609 34.2077 41.7116 35.248 42.752Z\\"/>\\n</mask>\\n<path d=\\"M32.7014 10.2872C33.095 10.6746 33.1002 11.3077 32.7128 11.7014L15.294 29.4042L8.30878 22.7226C7.90967 22.3409 7.89561 21.7079 8.27736 21.3088C8.65911 20.9097 9.29212 20.8956 9.69122 21.2774L15.2514 26.5958L31.2872 10.2986C31.6746 9.90496 32.3077 9.89985 32.7014 10.2872Z\\" stroke=\\"#0F172A\\" stroke-width=\\"4\\" mask=\\"url(#path-1-inside-1_203_1158)\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M22 40H4C1.79086 40 0 38.2091 0 36V4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V22H41.1875C41.7398 22 42.1875 22.4477 42.1875 23V25.8861C42.1875 26.3518 42.5109 26.7505 42.9541 26.8934C43.2664 26.9941 43.5753 27.1116 43.8809 27.2461C44.1952 27.3718 44.5023 27.5082 44.8023 27.6554C45.2056 27.8532 45.6944 27.7899 46.0121 27.4723L48.0546 25.4298C48.4451 25.0392 49.0783 25.0392 49.4688 25.4298L52.5702 28.5312C52.9608 28.9217 52.9608 29.5549 52.5702 29.9454L50.5277 31.9879C50.2101 32.3056 50.1468 32.7944 50.3446 33.1977C50.4918 33.4977 50.6282 33.8048 50.7539 34.1191C50.8884 34.4247 51.0059 34.7336 51.1066 35.0459C51.2495 35.4891 51.6482 35.8125 52.1139 35.8125H55C55.5523 35.8125 56 36.2602 56 36.8125V41.1875C56 41.7398 55.5523 42.1875 55 42.1875H52.1139C51.6482 42.1875 51.2495 42.5109 51.1066 42.9541C51.0059 43.2664 50.8884 43.5753 50.7539 43.8809C50.6282 44.1952 50.4918 44.5023 50.3446 44.8023C50.1468 45.2056 50.2101 45.6944 50.5277 46.0121L52.5702 48.0546C52.9608 48.4451 52.9608 49.0783 52.5702 49.4688L49.4688 52.5702C49.0783 52.9608 48.4451 52.9608 48.0546 52.5702L46.0121 50.5277C45.6944 50.2101 45.2052 50.1458 44.8049 50.3495C44.5041 50.5026 44.196 50.6484 43.8809 50.7871C43.5759 50.9091 43.2675 51.0177 42.9558 51.1128C42.5104 51.2486 42.1875 51.6482 42.1875 52.1139V55C42.1875 55.5523 41.7398 56 41.1875 56H36.8125C36.2602 56 35.8125 55.5523 35.8125 55V52.1139C35.8125 51.6482 35.4896 51.2486 35.0442 51.1128C34.7325 51.0177 34.4241 50.9091 34.1191 50.7871C33.804 50.6484 33.4959 50.5026 33.1951 50.3495C32.7948 50.1458 32.3056 50.2101 31.9879 50.5277L29.9454 52.5702C29.5549 52.9608 28.9217 52.9608 28.5312 52.5702L25.4298 49.4688C25.0392 49.0783 25.0392 48.4451 25.4298 48.0546L27.4723 46.0121C27.7899 45.6944 27.8542 45.2052 27.6505 44.8049C27.4974 44.5041 27.3516 44.196 27.2129 43.8809C27.0909 43.5759 26.9823 43.2675 26.8872 42.9558C26.7514 42.5104 26.3518 42.1875 25.8861 42.1875H23C22.4477 42.1875 22 41.7398 22 41.1875V40ZM4 2H36C37.1046 2 38 2.89543 38 4V22H36.8125C36.2602 22 35.8125 22.4477 35.8125 23V25.8861C35.8125 26.3518 35.4891 26.7505 35.0459 26.8934C34.7336 26.9941 34.4247 27.1116 34.1191 27.2461C33.8048 27.3718 33.4977 27.5082 33.1977 27.6554C32.7944 27.8532 32.3056 27.7899 31.9879 27.4723L29.9454 25.4298C29.5549 25.0392 28.9217 25.0392 28.5312 25.4298L25.4298 28.5312C25.0392 28.9217 25.0392 29.5549 25.4298 29.9454L27.4723 31.9879C27.7899 32.3056 27.8542 32.7948 27.6505 33.1951C27.4974 33.4959 27.3516 33.804 27.2129 34.1191C27.0909 34.4241 26.9823 34.7325 26.8872 35.0442C26.7514 35.4896 26.3518 35.8125 25.8861 35.8125H23C22.4477 35.8125 22 36.2602 22 36.8125V38H4C2.89543 38 2 37.1046 2 36V4C2 2.89543 2.89543 2 4 2ZM35.248 42.752C36.2884 43.7923 37.5391 44.3125 39 44.3125C40.4609 44.3125 41.7116 43.7923 42.752 42.752C43.7923 41.7116 44.3125 40.4609 44.3125 39C44.3125 37.5391 43.7923 36.2884 42.752 35.248C41.7116 34.2077 40.4609 33.6875 39 33.6875C37.5391 33.6875 36.2884 34.2077 35.248 35.248C34.2077 36.2884 33.6875 37.5391 33.6875 39C33.6875 40.4609 34.2077 41.7116 35.248 42.752Z\\" stroke=\\"#0F172A\\" stroke-width=\\"4\\" mask=\\"url(#path-1-inside-1_203_1158)\\"/>\\n</svg>","textdomain":"jet-form-builder","attributes":{"label":{"type":"string","default":""},"control_type":{"type":"string","default":""},"default_image_control":{"type":"object","default":{}},"checked_image_control":{"type":"object","default":""},"style":{"type":"object","default":{".jet-form-builder-choice--item-control-img":{"width":"24px"}}},"isPreview":{"type":"boolean","default":false}},"supports":{"html":false,"jetStyle":{"--jfb-choice-control-width":[".jet-form-builder-choice--item-control-img","width"]},"spacing":{"margin":true,"padding":true,"units":["px","em","rem","vh","vw"]},"color":{"text":true,"background":false}},"usesContext":["jet-forms/repeater-field--name","jet-forms/repeater-row--default","jet-forms/repeater-row--current-index","jet-forms/choices-field--multiple","jet-forms/choices-field--required","jet-forms/choices-field--name","jet-forms/choices-field--raw-name","jet-forms/choices-field--default","jet-forms/choice--value","jet-forms/choice--calc_value"]}'),{name:ut,icon:ht}=dt,{__:ft}=wp.i18n,pt={icon:(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:ht}}),description:ft('Get the adjusting options for the Image and Choice Control block \nwith "Images and Controls" layout of the Advanced Choices Field.',"jet-form-builder"),edit:function e(t){const{context:l,setAttributes:C,attributes:o}=t,{"jet-forms/choices-field--multiple":i,"jet-forms/choices-field--name":c}=l,a=mt(),n=qe({className:Ge("jet-form-builder-choice--item-control %s",a.className),style:a.style}),m=Ke(e,c),[s,d]=Ve(),u="image"===o.control_type&&(s?o?.checked_image_control?.url:o?.default_image_control?.url),[h,f]=nt("--jfb-choice-control-width"),p=parseInt(h);return o.isPreview?(0,r.createElement)("div",{style:{width:"100%",display:"flex",justifyContent:"center"}},Oe):(0,r.createElement)(r.Fragment,null,(0,r.createElement)($e,{group:"block"},(0,r.createElement)(Ee,null)),(0,r.createElement)("span",{...n},u?(0,r.createElement)("img",{src:u,className:"jet-form-builder-choice--item-control-img",alt:c+" "+Je("control","jet-form-builder")}):(0,r.createElement)("input",{id:m,type:i?"checkbox":"radio",checked:s,onChange:()=>d(),className:"jet-form-builder-choice--item-control-input"}),(0,r.createElement)(We,{tagName:"label",value:o.label,onChange:e=>C({label:e}),placeholder:Je("Label for input...","jet-form-builder"),multiline:!1})),(0,r.createElement)(ze,null,(0,r.createElement)("div",{style:{padding:"20px"}},(0,r.createElement)(lt,{onChange:e=>C({control_type:e}),value:o.control_type,label:Je("Control type","jet-form-builder"),isBlock:!0},(0,r.createElement)(rt,{label:Je(i?"Checkbox input":"Radio input","jet-form-builder"),value:""}),(0,r.createElement)(rt,{label:Je("Image","jet-form-builder"),value:"image"})))),"image"===o.control_type&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ze,null,(0,r.createElement)(Ye,null,(0,r.createElement)(Xe,{title:Je("Control Default","jet-form-builder")},(0,r.createElement)(it,{label:Je("Default icon","jet-form-builder")},(0,r.createElement)(Ue,{onSelect:e=>{var t;return C({default_image_control:{...null!==(t=o.default_image_control)&&void 0!==t?t:{},url:e.url,id:e.id}})},allowedTypes:["image/*"],value:o.default_image_control?.id,render:({open:e})=>(0,r.createElement)(st,{open:e,hasValue:!!o.default_image_control?.url})}),!!o.default_image_control?.url&&(0,r.createElement)(Qe,{isDestructive:!0,isSmall:!0,icon:"no-alt",onClick:()=>C({default_image_control:{}}),label:Je("Remove default icon","jet-form-builder")})),!!o.default_image_control?.url&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("img",{src:o.default_image_control?.url,style:{maxWidth:"150px",maxHeight:"150px",margin:"1em 0"}})),(0,r.createElement)(ot,null,Je("Choose icon for default state of choice","jet-form-builder"))),(0,r.createElement)(Xe,{title:Je("Control Checked","jet-form-builder")},(0,r.createElement)(it,{label:Je("Checked Icon","jet-form-builder")},(0,r.createElement)(Ue,{onSelect:e=>{var t;return C({checked_image_control:{...null!==(t=o.checked_image_control)&&void 0!==t?t:{},url:e.url,id:e.id}})},allowedTypes:["image/*"],value:o.checked_image_control?.id,render:({open:e})=>(0,r.createElement)(st,{open:e,hasValue:!!o.checked_image_control?.url})}),!!o.checked_image_control?.url&&(0,r.createElement)(Qe,{isDestructive:!0,isSmall:!0,icon:"no-alt",onClick:()=>C({checked_image_control:{}}),label:Je("Remove checked icon","jet-form-builder")})),!!o.checked_image_control?.url&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("img",{src:o.checked_image_control?.url,style:{maxWidth:"150px",maxHeight:"150px",margin:"1em 0"}})),(0,r.createElement)(ot,null,Je("Choose icon for checked state of choice","jet-form-builder"))))),(0,r.createElement)(ze,{group:"styles"},(0,r.createElement)(ct,{label:Je("Image control","jet-form-builder")},(0,r.createElement)(at,{label:Je("Width","jet-form-builder"),cssVar:"--jfb-choice-control-width",defaultValue:"24px"},(0,r.createElement)(et,{help:Je("Specify the width of the image in pixels.","jet-form-builder"),initialPosition:24,label:Je("Width","jet-form-builder"),value:p,max:200,min:0,onChange:e=>f(e?`${e}px`:0)}))))))},example:{attributes:{isPreview:!0}}},{addFilter:bt}=wp.hooks;bt("jet.fb.register.fields","jet-form-builder/advanced-choices",(function(e){return e.push(t,l,C),e}))})();
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.19 |
proxy
|
phpinfo
|
Settings