PageSourceSearch

https://surefeedback.com/wp-content/plugins/spectra-pro/spectra-pr…/index.js?ver=72372a0b610c829264db

js surefeedback.com collected 2026-09-25 20:14:44 UTC 188,299 bytes, 4 lines download raw bytes

1(()=>{"use strict";var e={41:(e,t,r)=>{function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}r.d(t,{Rk:()=>n,SF:()=>o,sk:()=>a});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},a=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},45:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(8587);function o(e,t){if(null==e)return{};var r,o,a=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},287:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(6427),o=r(7143),a=r(1275),s=r(6087),i=r(7723),l=r(6104),c=r(5318),u=r(790);const p=({settings:e,updateSetting:t,type:r="text"})=>{const[p,d]=(0,s.useState)(!0),[m,f]=(0,s.useState)([{label:(0,i.__)("Choose","spectra-pro"),value:""},{label:(0,i.__)("Custom Input","spectra-pro"),value:"custom"}]),h=e.source.postCustomField||"",v=(0,o.useSelect)((e=>e(a.store).getCurrentPostId()),[]);let g=null;"current_post"===e.source.type?g=v:"post_type"===e.source.type&&(g=e.source.postId);const b=new l.A(c.A.postCustomFields);return(0,s.useEffect)((()=>{g?(async()=>{d(!0);try{const e=await b.list({post_id:g,type:r}),t=Object.entries(e?.data||{}).map((([,e])=>e&&"object"==typeof e&&"label"in e&&"value"in e?{label:e.label,value:e.value}:null)).filter(Boolean),n=[{label:(0,i.__)("Choose","spectra-pro"),value:""},...t,{label:(0,i.__)("Custom Input","spectra-pro"),value:"custom"}];f(n)}catch(e){f([])}finally{d(!1)}})():d(!1)}),[g]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(n.SelectControl,{label:(0,i.__)("Custom Field","spectra-pro"),value:h,options:p?[{label:(0,i.__)("Loading…","spectra-pro"),value:""}]:m,onChange:e=>t("source.postCustomField",e)}),"custom"===h&&!p&&(0,u.jsx)(n.TextControl,{label:(0,i.__)("Custom Meta Key","spectra-pro"),value:e.source.postMetaKey||"",onChange:e=>t("source.postMetaKey",e)})]})}},350:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(6427),o=r(6087),a=r(7723),s=r(6104),i=r(5318),l=r(790);const c=({settings:e,updateSetting:t,type:r="text"})=>{const[c,u]=(0,o.useState)(!0),[p,d]=(0,o.useState)([{label:(0,a.__)("Choose","spectra-pro"),value:""},{label:(0,a.__)("Custom Input","spectra-pro"),value:"custom"}]),m=e.source.archiveMetaKey||"",f=new s.A(i.A.termsMeta);return(0,o.useEffect)((()=>{(async()=>{u(!0);try{const e=await f.list({type:r}),t=Object.entries(e?.data||{}).map((([,e])=>e&&"object"==typeof e&&"label"in e&&"value"in e?{label:e.label,value:e.value}:null)).filter(Boolean),n=[{label:(0,a.__)("Choose","spectra-pro"),value:""},...t,{label:(0,a.__)("Custom Input","spectra-pro"),value:"custom"}];d(n)}catch(e){d([{label:(0,a.__)("Choose","spectra-pro"),value:""},{label:(0,a.__)("Custom Input","spectra-pro"),value:"custom"}])}finally{u(!1)}})()}),[e.source.type,e.source.postId]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.SelectControl,{label:(0,a.__)("Custom Field","spectra-pro"),value:m,options:c?[{label:(0,a.__)("Loading…","spectra-pro"),value:""}]:p,onChange:e=>t("source.archiveMetaKey",e),disabled:c}),"custom"===m&&!c&&(0,l.jsx)(n.TextControl,{label:(0,a.__)("Custom Meta Key","spectra-pro"),value:e.source?.customArchiveMetaKey||"",onChange:e=>t("source.customArchiveMetaKey",e),help:(0,a.__)("Enter the meta key for the archive custom field","spectra-pro")})]})}},390:(e,t,r)=>{r.d(t,{C:()=>p,Cv:()=>k,G1:()=>i,K2:()=>f,Nc:()=>A,OW:()=>v,Sh:()=>b,Tb:()=>C,Tp:()=>d,VF:()=>_,YL:()=>m,c4:()=>y,di:()=>g,mw:()=>x,nf:()=>w,rH:()=>u,se:()=>h});var n=r(9735),o=1,a=1,s=0,i=0,l=0,c="";function u(e,t,r,n,s,i,l){return{value:e,root:t,parent:r,type:n,props:s,children:i,line:o,column:a,length:l,return:""}}function p(e,t){return(0,n.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function d(){return l}function m(){return l=i>0?(0,n.wN)(c,--i):0,a--,10===l&&(a=1,o--),l}function f(){return l=i<s?(0,n.wN)(c,i++):0,a++,10===l&&(a=1,o++),l}function h(){return(0,n.wN)(c,i)}function v(){return i}function g(e,t){return(0,n.c1)(c,e,t)}function b(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function y(e){return o=a=1,s=(0,n.b2)(c=e),i=0,[]}function _(e){return c="",e}function C(e){return(0,n.Bq)(g(i-1,S(91===e?e+2:40===e?e+1:e)))}function x(e){for(;(l=h())&&l<33;)f();return b(e)>2||b(l)>3?"":" "}function A(e,t){for(;--t&&f()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return g(e,v()+(t<6&&32==h()&&32==f()))}function S(e){for(;f();)switch(l){case e:return i;case 34:case 39:34!==e&&39!==e&&S(l);break;case 40:41===e&&S(e);break;case 92:f()}return i}function w(e,t){for(;f()&&e+l!==57&&(e+l!==84||47!==h()););return"/*"+g(t,i-1)+"*"+(0,n.HT)(47===e?e:f())}function k(e){for(;!b(h());)f();
1return g(e,i)}},405:(e,t,r)=>{r.d(t,{u:()=>u});var n=r(4467),o=r(9379),a=r(3453),s=r(45),i=r(1609),l=r(9800),c=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function u(e){var t=e.defaultOptions,r=void 0!==t&&t,u=e.cacheOptions,p=void 0!==u&&u,d=e.loadOptions;e.options;var m=e.isLoading,f=void 0!==m&&m,h=e.onInputChange,v=e.filterOption,g=void 0===v?null:v,b=(0,s.A)(e,c),y=b.inputValue,_=(0,i.useRef)(void 0),C=(0,i.useRef)(!1),x=(0,i.useState)(Array.isArray(r)?r:void 0),A=(0,a.A)(x,2),S=A[0],w=A[1],k=(0,i.useState)(void 0!==y?y:""),M=(0,a.A)(k,2),O=M[0],E=M[1],I=(0,i.useState)(!0===r),F=(0,a.A)(I,2),j=F[0],P=F[1],L=(0,i.useState)(void 0),T=(0,a.A)(L,2),D=T[0],V=T[1],H=(0,i.useState)([]),R=(0,a.A)(H,2),N=R[0],B=R[1],U=(0,i.useState)(!1),K=(0,a.A)(U,2),$=K[0],Y=K[1],z=(0,i.useState)({}),q=(0,a.A)(z,2),W=q[0],Z=q[1],G=(0,i.useState)(void 0),J=(0,a.A)(G,2),X=J[0],Q=J[1],ee=(0,i.useState)(void 0),te=(0,a.A)(ee,2),re=te[0],ne=te[1];p!==re&&(Z({}),ne(p)),r!==X&&(w(Array.isArray(r)?r:void 0),Q(r)),(0,i.useEffect)((function(){return C.current=!0,function(){C.current=!1}}),[]);var oe=(0,i.useCallback)((function(e,t){if(!d)return t();var r=d(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}),[d]);(0,i.useEffect)((function(){!0===r&&oe(O,(function(e){C.current&&(w(e||[]),P(!!_.current))}))}),[]);var ae=(0,i.useCallback)((function(e,t){var r=(0,l.L)(e,t,h);if(!r)return _.current=void 0,E(""),V(""),B([]),P(!1),void Y(!1);if(p&&W[r])E(r),V(r),B(W[r]),P(!1),Y(!1);else{var a=_.current={};E(r),P(!0),Y(!D),oe(r,(function(e){C&&a===_.current&&(_.current=void 0,P(!1),V(r),B(e||[]),Y(!1),Z(e?(0,o.A)((0,o.A)({},W),{},(0,n.A)({},r,e)):W))}))}}),[p,oe,D,W,h]),se=$?[]:O&&D?N:S||[];return(0,o.A)((0,o.A)({},b),{},{options:se,isLoading:j||f,onInputChange:ae,filterOption:g})}},413:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(7143),o=r(6087),a=r(4506),s=r(5370),i=r(790);const l=({props:e,attributes:t,contentAttr:r,currentValue:l,BlockEdit:c})=>{const[u,p]=(0,o.useState)(l),[d,m]=(0,o.useState)(!1),f=(0,o.useRef)(!1),h=(0,n.use
1Select)((e=>e("core/block-editor").getBlockCount()),[]),{context:v}=e;(0,o.useEffect)((()=>{h>0&&!d&&m(!0)}),[h]),(0,o.useEffect)((()=>{d&&!f.current&&l&&(f.current=!0,(async()=>{const e=await(0,a.A)(l,v);e!==l&&p(e)})())}),[d,v?.postId,v?.postType]);const g=l.includes('data-spectra-dc="{&quot;source&quot;:{&quot;type&quot;:&quot;current_post&quot;,'),b=(0,n.useSelect)((e=>{if(!g)return null;const t=e("core/editor");return{id:t.getCurrentPostId(),title:{rendered:t.getEditedPostAttribute("title")||""},excerpt:{rendered:t.getEditedPostAttribute("excerpt")||""},date_gmt:t.getEditedPostAttribute("date_gmt")||"",modified_gmt:t.getEditedPostAttribute("modified_gmt")||"",featured_media:t.getEditedPostAttribute("featured_media")||0}}),[g]);(0,o.useEffect)((()=>{f.current&&d&&g&&l&&(async()=>{const e=(new DOMParser).parseFromString(l,"text/html");let t=!1;const r=Array.from(e.querySelectorAll("span.spectra-pro-dc-content[data-spectra-dc]"));for(const e of r){const r=JSON.parse(e.getAttribute("data-spectra-dc")||"{}");if("current_post"!==r?.source?.type||!r?.source?.field)continue;const n=r.source.field;if(!["post_title","post_excerpt","post_date","post_time","featured_image"].includes(n))continue;const o=await(0,s.gh)(r,b),a=await(0,s.sP)(o,r);e.innerHTML!==a&&(e.innerHTML=a,t=!0)}t&&p(e.body.innerHTML)})()}),[d,g,l,b?.title?.rendered,b?.excerpt?.rendered,b?.date_gmt,b?.modified_gmt,b?.featured_media]);const y=(0,o.useMemo)((()=>({...e,attributes:{...t,[r]:u}})),[e,u]);return(0,i.jsx)(c,{...y})}},483:(e,t,r)=>{r.d(t,{A:()=>s,l:()=>a});var n=r(4534),o=r(9735);function a(e,t){for(var r="",n=(0,o.FK)(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function s(e,t,r,s){switch(e.type){case n.IO:if(e.children.length)break;case n.yE:case n.LU:return e.return=e.return||e.value;case n.YK:return"";case n.Sv:return e.return=e.value+"{"+a(e.children,s)+"}";case n.XZ:e.value=e.props.join(",")}return(0,o.b2)(r=a(e.children,s))?e.return=e.value+"{"+r+"}":""}},519:(e,t,r)=>{function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>n})},676:(e,t,r)=>{r.d(t,{M:()=>i,W:()=>l});var n=r(6087),o=r(7723),a=r(790);const s=(0,n.createContext)(),i=({children:e})=>{const t={type:"text",source:{type:"current_post",field:"post_title",postId:0,postType:"post",featuredImageField:"title",postCustomField:"",postMetaKey:"",taxonomyType:"",taxonomyValueSeparator:",",noComments:(0,o.__)("No Responses","spectra-pro"),oneComment:(0,o.__)("One Response","spectra-pro"),manyComments:(0,o.__)("{number} Responses","spectra-pro"),authorField:"",authorMetaKey:"",dateType:"published",dateFormat:"default",customDateFormat:"",timeType:"published",timeFormat:"default",customTimeFormat:"",userMetaKey:"",requestParamKey:"",archiveMetaKey:"",customArchiveMetaKey:""},replaceFullContent:!1,enableLink:!1,linkSource:"",linkSourcePostCustomField:"",linkSourcePostCustomMetaKey:"",linkSourceAuthorCustomField:"",linkSourceAuthorMetaKey:"",advanced:{before:"",after:"",charLength:"",fallback:""}},[r,i]=(0,n.useState)(t),l=(0,n.useCallback)(((e,t)=>{i((r=>{const n=e.split("."),o=n.reduceRight(((e,r,o)=>o===n.length-1?{[r]:t}:{[r]:e}),{}),a=(e,t)=>{const r={...e};return Object.keys(t).forEach((n=>{t[n]&&"object"==typeof t[n]&&!Array.isArray(t[n])?r[n]=a(e[n],t[n]):r[n]=t[n]})),r};return a(r,o)}))}),[]),c=(0,n.useCallback)(((e,t)=>{l(`advanced.${e}`,t)}),[l]),u=(0,n.useCallback)((()=>{i(t)}),[]),p={settings:r,updateSetting:l,updateAdvancedSetting:c,resetSettings:u};return(0,a.jsx)(s.Provider,{value:p,children:e})},l=()=>(0,n.useContext)(s)},790:e=>{e.exports=window.ReactJSXRuntime},841:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(6427),o=r(7723),a=r(790);const s=({settings:e,updateSetting:t})=>(0,a.jsx)(n.TextareaControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,o.__)("Shortcode","spectra-pro"),value:e.source.field||"",placeholder:(0,o.__)("Enter shortcode","spectra-pro"),onChange:e=>t("source.field",e),help:(0,o.__)("When adding a Shortcode, please use single quotes('') for shortcode attributes. Example format: [spectra id='123']","spectra-pro")})},870:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(6427),o=r(7723),a=r(1358),s=r(676),i=r(5370),l=r(9855),c=r(4842),u=r(790);const p=e=>{const{blockName:t,attributes:r,setAttributes:p,onClose:d,popoverRef:m}=e,{spectraProEnableDynamicImage:f,spectraProStaticImage:h,spectraProDynamicImage:v,spectraProEnableDynamicLink:g,href:b}=r,y=e=>{" "!==e.key&&"Enter"!==e.key||e.stopPropagation()};return(0,u.jsx)(c.H.Provider,{value:d,children:(0,u.jsx)("div",{ref:m,children:(0,u.jsxs)(n.__experimentalVStack,{spacing:4,children:[(0,u.jsxs)(n.__experimentalHStack,{justify:"space-between",children:[(0,u.jsx)("strong",{children:(0,o.__)("Dynamic Content","spectra-pro")}),(0,u.jsx)(n.Button,{icon:"no-alt",label:(0,o.__)("Close","spectra-pro"),onClick:e=>{e.stopPropagation(),d()},size:"small",variant:"tertiary"})]}),(0,u.jsx)("div",{onClick:e=>e.stopPropagation(),onKeyDown:y,role:"button",tabIndex:0,children:(0,u.jsx)(n.ToggleControl,{label:(0,o.__)("Dynamic Image","spectra-pro"),checked:f,onChange:async e=>{if(e){if(v){const e=await(0,i.pc)(v,"image");if(e?.url)return p({spectraProEnableDynamicImage:!0,url:e.url,id:e.id}),void(h||p({spectraProStaticImage:{id:r.id,url:r.url,type:r.type}}))}p({spectraProEnableDynamicImage:!0})}else p({spectraProEnableDynamicImage:!1,spectraProDynamicImage:null,url:h?.url,id:h?.id})}})}),f&&(0,u.jsx)(s.M,{children:(0,u.jsx)(a.A,{type:"image",blockName:t,attributes:r,setAttributes:p})}),(0,u.jsx)("div",{onClick:e=>e.stopPropagation(),onKeyDown:y,role:"button",tabIndex:0,children:(0,u.jsx)(n.ToggleControl,{label:(0,o.__)("Dynamic Link","spectra-pro"),checked:g,onChange:()=>
1{const e=!g,t={spectraProEnableDynamicLink:e};e?b||(t.href="spectra-dynamic-link"):t.href="spectra-dynamic-link"===b?"":b,p(t)}})}),g&&(0,u.jsx)(s.M,{children:(0,u.jsx)(l.A,{attributes:r,setAttributes:p,type:"image"})})]})})})}},876:e=>{e.exports=window.wp.richText},1275:e=>{e.exports=window.wp.editor},1287:(e,t,r)=>{r.d(t,{s:()=>a});var n=r(1609),o=!!n.useInsertionEffect&&n.useInsertionEffect,a=o||function(e){return e()};o||n.useLayoutEffect},1358:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(6427),o=r(7723),a=r(6087),s=r(676),i=r(2774),l=r(3557),c=r(9162),u=r(5370),p=r(4842),d=r(7143),m=r(790);const f=e=>{const{type:t="text",blockName:r=null,attributeLabel:f=null,attributeValue:h=null,attributes:{spectraProDynamicImage:v,url:g=""},setAttributes:b,clientId:y,context:_={}}=e,{settings:C,updateSetting:x,updateAdvancedSetting:A}=(0,s.W)(),[S,w]=(0,a.useState)(null),[k,M]=(0,a.useState)(!1),{__unstableMarkNextChangeAsNotPersistent:O,updateBlockAttributes:E}=(0,d.useDispatch)("core/block-editor"),I=()=>{const{source:e}=C;if(!e.type||!e.field)return!1;switch(e.type){case"post_type":return!!e.postId;case"archive":return"archive_meta"!==e.field||!!e.archiveMetaKey;default:return!0}};return(0,a.useEffect)((()=>{(0,c.Im)(v)||Object.entries(v).forEach((([e,t])=>{"advanced"===e?Object.entries(t).forEach((([e,t])=>{A(e,t)})):"source"===e?Object.entries(t).forEach((([e,t])=>{x(`source.${e}`,t)})):x(e,t)}))}),[v]),(0,m.jsxs)(m.Fragment,{children:[S&&(0,m.jsx)(n.Notice,{status:"error",isDismissible:!0,onDismiss:()=>w(null),children:S}),(0,m.jsx)(i.A,{settings:C,updateSetting:x}),(0,m.jsx)(l.A,{settings:C,updateSetting:x}),(0,m.jsx)(p.A,{settings:C,updateAdvancedSetting:A,directSave:e=>{if("core/image"!==r)return;const t=v||{type:"image",source:{type:C.source.type||"current_post",field:C.source.field||"featured_image"}},n={...t,advanced:{...t.advanced,fallback:e}};b({spectraProDynamicImage:n})}}),(0,m.jsx)(n.__experimentalHStack,{justify:"end",children:(0,m.jsx)(n.Button,{variant:"primary",onClick:async()=>{if(I()){M(!0),w(null);try{const e={type:"image",source:{type:C.source.type,field:C.source.field}},t=(e,t,r)=>{void 0!==r&&""!==r&&(e[t]=r)},n={post_type:()=>{t(e.source,"postId",C.source.postId),t(e.source,"postType",C.source.postType)},archive:()=>{"archive_meta"===C.source.field&&t(e.source,"archiveMetaKey",C.source.archiveMetaKey)}},o={custom_field:()=>{t(e.source,"postCustomField",C.source.postCustomField),"custom"===C.source.postCustomField&&t(e.source,"postMetaKey",C.source.postMetaKey)},author_info:()=>{t(e.source,"authorField",C.source.authorField),"custom"===C.source.authorField&&t(e.source,"authorMetaKey",C.source.authorMetaKey)}};n[C.source.type]?.(),o[C.source.field]?.(),C.advanced?.fallback&&(e.advanced={fallback:C.advanced.fallback}),"current_post"===C.source.type&&_?.postType&&_?.postId&&(x("source.postId",_.postId),x("source.postType",_.postType)),b({spectraProDynamicImage:e});const a=await(0,u.pc)(C,"image");await new Promise((e=>setTimeout(e,300)));const s=a&&"object"==typeof a&&a.url;f&&h&&requestAnimationFrame((()=>{O(),E(y,{[f]:{...h,media:s?a:void 0}})})),r&&"core/image"===r&&requestAnimationFrame((()=>{g?.length>0?(O(),E(y,{url:a?.url,id:a?.id})):b({url:a?.url,id:a?.id})}))}catch(e){w((0,o.__)("Failed to apply dynamic image.","spectra-pro"))}finally{M(!1)}}},isBusy:k,disabled:k||!I(),children:k?"image"===t?(0,c.Im)(v)?(0,o.__)("Adding Image…","spectra-pro"):(0,o.__)("Updating Image…","spectra-pro"):(0,c.Im)(v)?(0,o.__)("Applying…","spectra-pro"):(0,o.__)("Updating…","spectra-pro"):"image"===t?(0,c.Im)(v)?(0,o.__)("Add Image","spectra-pro"):(0,o.__)("Update Image","spectra-pro"):(0,c.Im)(v)?(0,o.__)("Apply","spectra-pro"):(0,o.__)("Update","spectra-pro")})})]})}},1568:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(6087);const o=e=>({width:24,height:24,fill:"none",className:e&&"spectra-block-icon--colored"}),a={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},s={login:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M12 16L16 12M16 12L12 8M16 12L4 12M7 16V17C7 18.6569 8.34315 20 10 20H17C18.6569 20 20 18.6569 20 17V7C20 5.34315 18.6569 4 17 4H10C8.34315 4 7 5.34315 7 7V8",...a})),register:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M11 19H1C1 15.134 4.13401 12 8 12C9.0736 12 10.0907 12.2417 11 12.6736M14 13V16M14 16V19M14 16H11M14 16H17M12 5C12 7.20914 10.2091 9 8 9C5.79086 9 4 7.20914 4 5C4 2.79086 5.79086 1 8 1C10.2091 1 12 2.79086 12 5Z",...a})),loopBuilder:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M6 16.1681C11 16.1681 13 8.16809 18 8.16809C19.0609 8.16809 20.0783 8.58952 20.8284 9.33966C21.5786 10.0898 22 11.1072 22 12.1681C22 13.229 21.5786 14.2464 20.8284 14.9965C20.0783 15.7467 19.0609 16.1681 18 16.1681C13 16.1681 11 8.16809 6 8.16809C4.93913 8.16809 3.92172 8.58952 3.17157 9.33966C2.42143 10.
10898 2 11.1072 2 12.1681C2 13.229 2.42143 14.2464 3.17157 14.9965C3.92172 15.7467 4.93913 16.1681 6 16.1681Z",...a})),loopBuilderChildren:{filter:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M9.99988 20.1681C9.9998 20.3539 10.0515 20.5361 10.1492 20.6942C10.2469 20.8523 10.3867 20.98 10.5529 21.0631L12.5529 22.0631C12.7054 22.1393 12.8748 22.1752 13.0451 22.1675C13.2154 22.1598 13.3809 22.1087 13.5259 22.019C13.6709 21.9293 13.7905 21.8041 13.8735 21.6552C13.9565 21.5062 14 21.3386 13.9999 21.1681V14.1681C14.0001 13.6725 14.1843 13.1946 14.5169 12.8271L21.7399 4.83809C21.8693 4.69465 21.9545 4.51677 21.985 4.32597C22.0155 4.13517 21.9901 3.93962 21.9118 3.76297C21.8335 3.58631 21.7057 3.43611 21.5439 3.33054C21.3821 3.22497 21.1931 3.16855 20.9999 3.16809H2.99988C2.80649 3.16816 2.61727 3.22431 2.45513 3.32973C2.293 3.43515 2.16491 3.58532 2.08639 3.76205C2.00786 3.93879 1.98227 4.1345 2.01271 4.32548C2.04315 4.51646 2.12831 4.69452 2.25788 4.83809L9.48288 12.8271C9.81542 13.1946 9.99966 13.6725 9.99988 14.1681V20.1681Z",...a})),filterButton:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M20 6H4C2.89543 6 2 6.89543 2 8V16C2 17.1046 2.89543 18 4 18H20C21.1046 18 22 17.1046 22 16V8C22 6.89543 21.1046 6 20 6Z",...a}),(0,n.createElement)("path",{d:"M6 11.9678L17.9998 12.0316",...a})),filterCheckbox:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M9 12L11 14L15 10M5 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3Z",...a})),filterSelect:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M20 6H4C2.89543 6 2 6.89543 2 8V16C2 17.1046 2.89543 18 4 18H20C21.1046 18 22 17.1046 22 16V8C22 6.89543 21.1046 6 20 6Z",...a}),(0,n.createElement)("path",{d:"M11.75 10.4375L14.875 13.5625L18 10.4375",...a})),noResults:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M13.5 8.5L8.5 13.5M8.5 8.5L13.5 13.5M21 21L16.7 16.7M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z",...a})),pagination:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M5.7875 8.56812L2.1875 12.1681L5.7875 15.7681",...a}),(0,n.createElement)("path",{d:"M11.9949 12.1681H12.0049M16.9949 12.1681H17.0049M6.99487 12.1681H7.00487",...a}),(0,n.createElement)("path",{d:"M18.2124 15.7681L21.8124 12.1681L18.2124 8.56812",...a})),paginationNext:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M8 12.1681H16M16 12.1681L12 16.1681M16 12.1681L12 8.16809M5 3.16809H19C20.1046 3.16809 21 4.06352 21 5.16809V19.1681C21 20.2727 20.1046 21.1681 19 21.1681H5C3.89543 21.1681 3 20.2727 3 19.1681V5.16809C3 4.06352 3.89543 3.16809 5 3.16809Z",...a})),paginationNumbers:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M1.604 9.79688L4.90869 7.59375V16.4062M11.4458 16.4062H11.4524M14.75 16.4062H14.7566M8.1416 16.4062H8.14821M17.9897 14.2031C17.9897 15.4199 18.9761 16.4062 20.1929 16.4062C21.4096 16.4062 22.396 15.4199 22.396 14.2031C22.396 12.9864 21.4096 12 20.1929 12C18.9761 12 17.9897 12.9864 17.9897 14.2031ZM17.9897 14.2031C17.9897 11.4492 19.0913 9.79688 21.2944 7.59375",...a})),paginationPrevious:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M12 8.16809L8 12.1681M8 12.1681L12 16.1681M8 12.1681H16M5 3.16809H19C20.1046 3.16809 21 4.06352 21 5.16809V19.1681C21 20.2727 20.1046 21.1681 19 21.1681H5C3.89543 21.1681 3 20.2727 3 19.1681V5.16809C3 4.06352 3.89543 3.16809 5 3.16809Z",...a})),reset:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M3 12.1681C3 13.9481 3.52784 15.6882 4.51677 17.1682C5.50571 18.6483 6.91131 19.8018 8.55585 20.483C10.2004 21.1642 12.01 21.3424 13.7558 20.9952C15.5016 20.6479 17.1053 19.7907 18.364 18.5321C19.6226 17.2734 20.4798 15.6697 20.8271 13.9239C21.1743 12.1781 20.9961 10.3685 20.3149 8.72394C19.6337 7.0794 18.4802 5.6738 17.0001 4.68486C15.5201 3.69593 13.78 3.16809 12 3.16809C9.48395 3.17756 7.06897 4.15931 5.26 5.90809L3 8.16809M3 8.16809V3.16809M3 8.16809H8",...a})),search:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M21 21.1681L16.7 16.8681M19 11.1681C19 15.5864 15.4183 19.1681 11 19.1681C6.58172 19.1681 3 15.5864 3 11.1681C3 6.74981 6.58172 3.16809 11 3.16809C15.4183 3.16809 19 6.74981 19 11.1681Z",...a})),sort:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M3 16.1681L7 20.1681M7 20.1681L11 16.1681M7 20.1681V4.16809M11 4.16809H21M11 8.16809H18M11 12.1681H15",...a})),template:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M4 16C2.9 16 2 15.1 2 14V4C2 2.9 2.9 2 4 2H14C15.1 2 16 2.9 16 4M10 8H20C21.1046 8 22 8.89543 22 10V20C22 21.1046 21.1046 22 20 22H10C8.89543 22 8 21.1046 8 20V10C8 8.89543 8.89543 8 10 8Z",...a}))},countdownExpiryWrapper:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M5.8125 17.0625C4.7125 17.0625 3.8125 16.1625 3.8125 15.0625V5.0625C3.8125 3.9625 4.7125 3.0625 5.8125 3.0625H15.8125C16.9125 3.0625 17.8125 3.9625 17.8125 5.0625",...a}),(0,n.createElement)("path",{d:"M13.125 6.8125H15.95M14.5375 15.2875L16.6562 13.1688M20.1875 15.2875C20.1875 18.408 17.6579 20.9376 14.5375 20.9376C11.4171 20.9376 8.88745 18.408 8.88745 15.2875C8.88745 12.1671 11.4171 9.63751 14.5375 9.63751C17.6579 9.63751 20.1875 12.1671 20.1875 15.2875Z",...a})),dynamic_content:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...o(e)},(0,n.createElement)("path",{d:"M20 6.4C20 7.72548 16.4183 8.8 12 8.8C7.58172 8.8 4 7.72548 4 6.4M20 6.4C20 5.07452 16.4183 4 12 4C7.58172 4 4 5.07452 4 6.4M20 6.4V17.6C20 18.2365 19.1571 18.847 17.6569 
119.2971C16.1566 19.7471 14.1217 20 12 20C9.87827 20 7.84344 19.7471 6.34315 19.2971C4.84285 18.847 4 18.2365 4 17.6V6.4M4 12C4 12.6365 4.84285 13.247 6.34315 13.6971C7.84344 14.1471 9.87827 14.4 12 14.4C14.1217 14.4 16.1566 14.1471 17.6569 13.6971C19.1571 13.247 20 12.6365 20 12",...a})),registerEmail:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M3 8L10.8906 13.2604C11.5624 13.7083 12.4376 13.7083 13.1094 13.2604L21 8M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19Z",...a})),registerPassword:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M15 7C16.1046 7 17 7.89543 17 9M21 9C21 12.3137 18.3137 15 15 15C14.3938 15 13.8087 14.9101 13.2571 14.7429L11 17H9V19H7V21H4C3.44772 21 3 20.5523 3 20V17.4142C3 17.149 3.10536 16.8946 3.29289 16.7071L9.25707 10.7429C9.08989 10.1914 9 9.60617 9 9C9 5.68629 11.6863 3 15 3C18.3137 3 21 5.68629 21 9Z",...a})),registerConfirmPassword:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M13 9C13 7.9 13.8954 7 15 7C16.1046 7 17 7.89543 17 9C17 10.1 16.1 11 15 11M15 11V10M15 11L16 11.5M21 9C21 12.3137 18.3137 15 15 15C14.3938 15 13.8087 14.9101 13.2571 14.7429L11 17H9V19H7V21H4C3.44772 21 3 20.5523 3 20V17.4142C3 17.149 3.10536 16.8946 3.29289 16.7071L9.25707 10.7429C9.08989 10.1914 9 9.60617 9 9C9 5.68629 11.6863 3 15 3C18.3137 3 21 5.68629 21 9Z",...a})),registerFirstName:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M18 9H13M13 12H17M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19ZM7 14H9C9.55228 14 10 13.5523 10 13V9C10 8.44772 9.55228 8 9 8H7C6.44772 8 6 8.44772 6 9V13C6 13.5523 6.44772 14 7 14Z",...a})),registerLastName:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M18 9H13M13 12H17M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19ZM7 14H9C9.55228 14 10 13.5523 10 13V9C10 8.44772 9.55228 8 9 8H7C6.44772 8 6 8.44772 6 9V13C6 13.5523 6.44772 14 7 14Z",...a})),registerUsername:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M18 9H13M13 12H17M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19ZM7 14H9C9.55228 14 10 13.5523 10 13V9C10 8.44772 9.55228 8 9 8H7C6.44772 8 6 8.44772 6 9V13C6 13.5523 6.44772 14 7 14Z",...a})),formFieldWrapper:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M5 4H6C6.79565 4 7.55871 4.31607 8.12132 4.87868C8.68393 5.44129 9 6.20435 9 7M9 7C9 6.20435 9.31607 5.44129 9.87868 4.87868C10.4413 4.31607 11.2044 4 12 4H13M9 7V17M13 20H12C11.2044 20 10.4413 19.6839 9.87868 19.1213C9.31607 18.5587 9 17.7956 9 17M9 17C9 17.7956 8.68393 18.5587 8.12132 19.1213C7.55871 19.6839 6.79565 20 6 20H5",...a,strokeOpacity:.4}),(0,n.createElement)("path",{d:"M5 16H4C3.46957 16 2.96086 15.7893 2.58579 15.4142C2.21071 15.0391 2 14.5304 2 14V10C2 9.46957 2.21071 8.96086 2.58579 8.58579C2.96086 8.21071 3.46957 8 4 8H5M13 8H20C20.5304 8 21.0391 8.21071 21.4142 8.58579C21.7893 8.96086 22 9.46957 22 10V14C22 14.5304 21.7893 15.0391 21.4142 15.4142C21.0391 15.7893 20.5304 16 20 16H13",...a})),formInputField:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M5 4H6C6.79565 4 7.55871 4.31607 8.12132 4.87868C8.68393 5.44129 9 6.20435 9 7M9 7C9 6.20435 9.31607 5.44129 9.87868 4.87868C10.4413 4.31607 11.2044 4 12 4H13M9 7V17M13 20H12C11.2044 20 10.4413 19.6839 9.87868 19.1213C9.31607 18.5587 9 17.7956 9 17M9 17C9 17.7956 8.68393 18.5587 8.12132 19.1213C7.55871 19.6839 6.79565 20 6 20H5",...a}),(0,n.createElement)("path",{d:"M5 16H4C3.46957 16 2.96086 15.7893 2.58579 15.4142C2.21071 15.0391 2 14.5304 2 14V10C2 9.46957 2.21071 8.96086 2.58579 8.58579C2.96086 8.21071 3.46957 8 4 8H5M13 8H20C20.5304 8 21.0391 8.21071 21.4142 8.58579C21.7893 8.96086 22 9.46957 22 10V14C22 14.5304 21.7893 15.0391 21.4142 15.4142C21.0391 15.7893 20.5304 16 20 16H13",...a})),formInputLabel:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M2.83984 6.15625H9.75047",...a}),(0,n.createElement)("rect",{x:"2.12543",y:"9.88203",width:"19.8575",height:"9.10463",rx:"1.71431",...a,strokeOpacity:.4}),(0,n.createElement)("path",{d:"M7.8463 16.3604C7.8463 15.8948 7.66137 15.4484 7.33219 15.1192C7.003 14.79 6.55653 14.6051 6.091 14.6051C5.62546 14.6051 5.17899 14.79 4.84981 15.1192C4.52063 15.4484 4.33569 15.8948 4.33569 16.3604M6.091 14.6051C6.73728 14.6051 7.2612 14.0811 7.2612 13.4349C7.2612 12.7886 6.73728 12.2646 6.091 12.2646C5.44471 12.2646 4.92079 12.7886 4.92079 13.4349C4.92079 14.0811 5.44471 14.6051 6.091 14.6051Z",fill:"currentColor",fillOpacity:.4,stroke:"none"})),formLink:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M9 17H7C5.67392 17 4.40215 16.4732 3.46447 15.5355C2.52678 14.5979 2 13.3261 2 12C2 10.6739 2.52678 9.40215 3.46447 8.46447C4.40215 7.52678 5.67392 7 7 7H9M15 7H17C18.3261 7 19.5979 7.52678 20.5355 8.46447C21.4732 9.40215 22 10.6739 22 12C22 13.3261 21.4732 14.5979 20.5355 15.5355C19.5979 16.4732 18.3261 17 17 17H15M8 12H16",...a})),formMessage:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M12 7V9M12 13H12.01M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z",...a})),formWrapper:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M11 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H12",...a}),(0,n.createElement)("path",{d:"M12 11.6875H16M12 16.6875H16M8 11.6875H8.01M8 16.6875H8.01",...a,strokeOpacity:.4}),(0,n.createElement)("path",{d:"M9.28125 7.0625H14.7188",...a,strokeOpacity:.4})),formCheckbox:(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 24",...o(e)},(0,n.createElement)("path",{d:"M9 12L11 14L15 10M5 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3Z",...a}))}},1609:e=>{e.exports=window.React},1694:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(5573),o=r(790);const a=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})})},1806:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(6427),o=r(7723),a=r(676),s=r(9855),i=r(790);const l=(e,t)=>
1{const{attributes:r,setAttributes:l}=t;if(!r)return e;const{spectraProEnableDynamicLink:c=!1}=r;return(0,i.jsxs)(n.__experimentalVStack,{className:"spectra-pro-block-editor-link-control",children:[(0,i.jsx)(n.ToggleControl,{label:(0,o.__)("Dynamic Link","spectra-pro"),checked:c,onChange:()=>{l({spectraProEnableDynamicLink:!c})}}),c&&(0,i.jsx)(a.M,{children:(0,i.jsx)(s.A,{attributes:r,setAttributes:l})})]})}},1811:(e,t,r)=>{r.d(t,{A:()=>a});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!((o=e[r])===(a=t[r])||n(o)&&n(a)))return!1;var o,a;return!0}function a(e,t){void 0===t&&(t=o);var r=null;function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var a=e.apply(this,n);return r={lastResult:a,lastArgs:n,lastThis:this},a}return n.clear=function(){r=null},n}},2045:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(7723),o=r(7994),a=r(676),s=r(3838),i=r(790);const l={title:(0,n.__)("Dynamic Content","spectra-pro"),tagName:"span",className:"spectra-pro-dc-content",attributes:{"data-spectra-dc":s.K5},edit:e=>(0,i.jsx)(a.M,{children:(0,i.jsx)(o.A,{...e})})}},2176:(e,t,r)=>{function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}r.d(t,{A:()=>n})},2184:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(6427),o=r(8443),a=r(6087),s=r(7723),i=r(790);const l=({settings:e,updateSetting:t})=>{const r=[{label:(0,s.__)("Published","spectra-pro"),value:"published"},{label:(0,s.__)("Modified","spectra-pro"),value:"modified"}],l=(0,a.useMemo)((()=>(0,o.dateI18n)("g:i a")),[]),c=(0,a.useMemo)((()=>(0,o.dateI18n)("g:i A")),[]),u=(0,a.useMemo)((()=>(0,o.dateI18n)("H:i")),[]),p=[{label:(0,s.__)("Default","spectra-pro"),value:"default"},{value:"g:i a",label:l},{value:"g:i A",label:c},{value:"H:i",label:u},{label:(0,s.__)("Custom","spectra-pro"),value:"custom"}];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.SelectControl,{label:(0,s.__)("Time Type","spectra-pro"),value:e.source.timeType,options:r,onChange:e=>t("source.timeType",e)}),(0,i.jsx)(n.SelectControl,{label:(0,s.__)("Time Format","spectra-pro"),value:e.source.timeFormat,options:p,onChange:e=>t("source.timeFormat",e)}),"custom"===e.source.timeFormat&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.TextControl,{label:(0,s.__)("Custom Time Format","spectra-pro"),value:e.source.customTimeFormat,onChange:e=>t("source.customTimeFormat",e)}),(0,i.jsx)("p",{className:"components-base-control__help",dangerouslySetInnerHTML:{__html:(0,s.sprintf)(/* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */ /* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */
2(0,s.__)("Learn more about time formats %1$shere%2$s.","spectra-pro"),'<a target="_blank" href="https://wordpress.org/support/article/formatting-date-and-time/">',"</a>")}})]})]})}},2284:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},2327:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(2284);function o(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},2398:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(6427),o=r(7723),a=r(790);const s=({settings:e,updateSetting:t})=>(0,a.jsx)(n.TextControl,{label:(0,o.__)("Parameter Name","spectra-pro"),value:e.source?.requestParamKey||"",onChange:e=>t("source.requestParamKey",e),help:(0,o.__)("Enter the name of the parameter to retrieve","spectra-pro")})},2577:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(6427),o=r(790);const a=e=>{const{options:t=[],value:r,onChange:a,...s}=e;return(0,o.jsx)(n.SelectControl,{...s,value:r,onChange:a,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:t.map(((e,t)=>e.options&&Array.isArray(e.options)?(0,o.jsx)("optgroup",{label:e.label,children:e.options.map(((e,r)=>(0,o.jsx)("option",{value:e.value,disabled:e.disabled||!1,children:e.label},`child-${t}-${r}`)))},`group-${t}`):(0,o.jsx)("option",{value:e.value,disabled:e.disabled||!1,children:e.label},`option-${t}`)))})}},2774:(e,t,r)=>{r.d(t,{A:()=>i});
vendor: 39,789 bytes, line 2
2var n=r(7723),o=r(2577),a=r(790);const s=[{label:(0,n.__)("Choose","spectra-pro"),value:""},{label:(0,n.__)("Current Post","spectra-pro"),value:"current_post"},{label:(0,n.__)("Post Type","spectra-pro"),value:"post_type"},{label:(0,n.__)("Archive","spectra-pro"),options:[{label:(0,n.__)("Archive Custom Field","spectra-pro"),value:"archive"}]},{label:(0,n.__)("Site","spectra-pro"),options:[{label:(0,n.__)("Site Logo URL","spectra-pro"),value:"site"}]}],i=({settings:e,updateSetting:t})=>(0,a.jsx)(o.A,{label:(0,n.__)("Data Source","spectra-pro"),value:e.source.type,options:s,onChange:e=>{t("source.type",e),t("source.field","site"===e?"site_logo":"archive"===e?"archive_meta":"featured_image")}})},2836:(e,t,r)=>{r.d(t,{u:()=>l});var n=r(9379),o=r(3453),a=r(45),s=r(1609),i=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function l(e){var t=e.defaultInputValue,r=void 0===t?"":t,l=e.defaultMenuIsOpen,c=void 0!==l&&l,u=e.defaultValue,p=void 0===u?null:u,d=e.inputValue,m=e.menuIsOpen,f=e.onChange,h=e.onInputChange,v=e.onMenuClose,g=e.onMenuOpen,b=e.value,y=(0,a.A)(e,i),_=(0,s.useState)(void 0!==d?d:r),C=(0,o.A)(_,2),x=C[0],A=C[1],S=(0,s.useState)(void 0!==m?m:c),w=(0,o.A)(S,2),k=w[0],M=w[1],O=(0,s.useState)(void 0!==b?b:p),E=(0,o.A)(O,2),I=E[0],F=E[1],j=(0,s.useCallback)((function(e,t){"function"==typeof f&&f(e,t),F(e)}),[f]),P=(0,s.useCallback)((function(e,t){var r;"function"==typeof h&&(r=h(e,t)),A(void 0!==r?r:e)}),[h]),L=(0,s.useCallback)((function(){"function"==typeof g&&g(),M(!0)}),[g]),T=(0,s.useCallback)((function(){"function"==typeof v&&v(),M(!1)}),[v]),D=void 0!==d?d:x,V=void 0!==m?m:k,H=void 0!==b?b:I;return(0,n.A)((0,n.A)({},y),{},{inputValue:D,menuIsOpen:V,onChange:j,onInputChange:P,onMenuClose:T,onMenuOpen:L,value:H})}},2866:(e,t,r)=>{r.d(t,{S:()=>ce});for(var n=r(8168),o=r(9379),a=r(3029),s=r(2901),i=r(5501),l=r(9426),c=r(9394),u=r(1609),p=r(9800),d=r(7437),m=r(1811),f=r(45),h={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},v=function(e){return(0,d.Y)("span",(0,n.A)({css:h},e))},g={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,r=e.label,n=void 0===r?"":r,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(n,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,o=e.label,a=void 0===o?"":o,s=e.selectValue,i=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(u(s,r),".");if("menu"===t&&c){var p=i?" disabled":"",d="".concat(l?" selected":"").concat(p);return"".concat(a).concat(d,", ").concat(u(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},b=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,a=e.focusableOptions,s=e.isFocused,i=e.selectValue,l=e.selectProps,c=e.id,p=e.isAppleDevice,m=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,b=l.isMulti,y=l.isOptionDisabled,_=l.isSearchable,C=l.menuIsOpen,x=l.options,A=l.screenReaderStatus,S=l.tabSelectsValue,w=l.isLoading,k=l["aria-label"],M=l["aria-live"],O=(0,u.useMemo)((function(){return(0,o.A)((0,o.A)({},g),m||{})}),[m]),E=(0,u.useMemo)((function(){var e,r="";if(t&&O.onChange){var n=t.option,a=t.options,s=t.removedValue,l=t.removedValues,c=t.value,u=s||n||(e=c,Array.isArray(e)?null:e),p=u?f(u):"",d=a||l||void 0,m=d?d.map(f):[],h=(0,o.A)({isDisabled:u&&y(u,i),label:p,labels:m},t);r=O.onChange(h)}return r}),[t,O,y,i,f]),I=(0,u.useMemo)((function(){var e="",t=r||n,o=!!(r&&i&&i.includes(r));if(t&&O.onFocus){var s={focused:t,label:f(t),isDisabled:y(t,i),isSelected:o,options:a,context:t===r?"menu":"value",selectValue:i,isAppleDevice:p};e=O.onFocus(s)}return e}),[r,n,f,y,O,a,i,p]),F=(0,u.useMemo)((function(){var e="";if(C&&x.length&&!w&&O.onFilter){var t=A({count:a.length});e=O.onFilter({inputValue:h,resultsMessage:t})}return e}),[a,h,C,O,x,A,w]),j="initial-input-focus"===(null==t?void 0:t.action),P=(0,u.useMemo)((function(){var e="";if(O.guidance){var t=n?"value":C?"menu":"input";e=O.guidance({"aria-label":k,context:t,isDisabled:r&&y(r,i),isMulti:b,isSearchable:_,tabSelectsValue:S,isInitialFocus:j})}return e}),[k,r,n,b,y,_,C,O,i,S,j]),L=(0,d.Y)(u.Fragment,null,(0,d.Y)("span",{id:"aria-selection"},E),(0,d.Y)("span",{id:"aria-focused"},I),(0,d.Y)("span",{id:"aria-results"},F),(0,d.Y)("span",{id:"aria-guidance"},P));return(0,d.Y)(u.Fragment,null,(0,d.Y)(v,{id:c},j&&L),(0,d.Y)(v,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!j&&L))},y=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],_=new RegExp("["+y.map((function(e){return e.letters})).join("")+"]","g"),C={},x=0;x<y.length;x++)for(var A=y[x],S=0;S<A.letters.length;S++)C[A.letters[S]]=A.base;var w=function(e){return e.replace(_,(function(e){return C[e]}))},k=(0,m.A)(w),M=function(e){return e.replace(/^\s+|\s+$/g,"")},O=function(e){return"".concat(e.label," ").concat(e.value)},E=["innerRef"];function I(e){var t=e.innerRef,r=(0,f.A)(e,E),o=(0,p.r)(r,"onExited","in","enter","exit","appear");return(0,d.Y)("input",(0,n.A)({ref:t},o,{css:(0,d.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var F=["boxSizing","height","overflow","paddingRight","position"],j={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function P(e){e.cancelable&&e.preventDefault()}function L(e){e.stopPropagation()}function T(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function D(){return"ontouchstart"in window||navigator.maxTouchPoints}var V=!("undefined"==typeof window||!window.document||!window.document.createElement),H=0,R={capture:!1,passive:!1},N=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},B={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function U(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=function(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,s=(0,u.useRef)(!1),i=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),d=(0,u.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,p=l.scrollHeight,d=l.clientHeight,m=c.current,f=t>0,h=p-d-u,v=!1;h>t&&s.current&&(n&&n(e),s.current=!1),f&&i.current&&(a&&a(e),i.current=!1),f&&t>h?(r&&!s.current&&r(e),m.scrollTop=p,v=!0,s.current=!0):!f&&-t>u&&(o&&!i.current&&o(e),m.scrollTop=0,v=!0,i.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,n,o,a]),m=(0,u.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,u.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,u.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),v=(0,u.useCallback)((function(e){if(e){var t=!!p.s&&{passive:!1};e.addEventListener("wheel",m,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,m]),g=(0,u.useCallback)((function(e){e&&(e.removeEventListener("wheel",m,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,m]);return(0,u.useEffect)((function(){if(t){var e=c.current;return v(e),function(){g(e)}}}),[t,v,g]),function(e){c.current=e}}({isEnabled:void 0===n||n,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,r=e.accountForScrollbars,n=void 0===r||r,o=(0,u.useRef)({}),a=(0,u.useRef)(null),s=(0,u.useCallback)((function(e){if(V){var t=document.body,r=t&&t.style;if(n&&F.forEach((function(e){var t=r&&r[e];o.current[e]=t})),n&&H<1){var a=parseInt(o.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,i=window.innerWidth-s+a||0;Object.keys(j).forEach((function(e){var t=j[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(i,"px"))}t&&D()&&(t.addEventListener("touchmove",P,R),e&&(e.addEventListener("touchstart",T,R),e.addEventListener("touchmove",L,R))),H+=1}}),[n]),i=(0,u.useCallback)((function(e){if(V){var t=document.body,r=t&&t.style;H=Math.max(H-1,0),n&&H<1&&F.forEach((function(e){var t=o.current[e];r&&(r[e]=t)})),t&&D()&&(t.removeEventListener("touchmove",P,R),e&&(e.removeEventListener("touchstart",T,R),e.removeEventListener("touchmove",L,R)))}}),[n]);return(0,u.useEffect)((function(){if(t){var e=a.current;return s(e),function(){i(e)}}}),[t,s,i]),function(e){a.current=e}}({isEnabled:r});return(0,d.Y)(u.Fragment,null,r&&(0,d.Y)("div",{onClick:N,css:B}),t((function(e){o(e),a(e)})))}var K={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$=function(e){var t=e.name,r=e.onFocus;return(0,d.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:K,value:"",onChange:function(){}})};function Y(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function z(){return Y(/^Mac/i)}var q={clearIndicator:p.a,container:p.b,control:p.d,dropdownIndicator:p.e,group:p.g,groupHeading:p.f,indicatorsContainer:p.i,indicatorSeparator:p.h,input:p.j,loadingIndicator:p.l,loadingMessage:p.k,menu:p.m,menuList:p.n,menuPortal:p.o,multiValue:p.p,multiValueLabel:p.q,multiValueRemove:p.t,noOptionsMessage:p.u,option:p.v,placeholder:p.w,singleValue:p.x,valueContainer:p.y},W={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Z={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,p.z)(),captureMenuScroll:!(0,p.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:O,trim:!0,matchFrom:"any"},undefined),n=r.ignoreCase,a=r.ignoreAccents,s=r.stringify,i=r.trim,l=r.matchFrom,c=i?M(t):t,u=i?M(s(e)):s(e);return n&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=k(c),u=w(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,p.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function G(e,t,r,n){return{type:"option",data:t,isDisabled:oe(e,t,r),isSelected:ae(e,t,r),label:re(e,t),value:ne(e,t),index:n}}function J(e,t){return e.options.map((function(r,n){if("options"in r){var o=r.options.map((function(r,n){return G(e,r,t,n)})).filter((function(t){return ee(e,t)}));return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var a=G(e,r,t,n);return ee(e,a)?a:void 0})).filter(p.K)}function X(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,c.A)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Q(e,t){return e.reduce((function(e,r){return"group"===r.type?e.push.apply(e,(0,c.A)(r.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(r.index,"-").concat(e.index)}})))):e.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),e}),[])}function ee(e,t){var r=e.inputValue,n=void 0===r?"":r,o=t.data,a=t.isSelected,s=t.label,i=t.value;return(!ie(e)||!a)&&se(e,{label:s,value:i,data:o},n)}var te=function(e,t){var r;return(null===(r=e.find((function(e){return e.data===t})))||void 0===r?void 0:r.id)||null},re=function(e,t){return e.getOptionLabel(t)},ne=function(e,t){return e.getOptionValue(t)};function oe(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function ae(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=ne(e,t);return r.some((function(t){return ne(e,t)===n}))}function se(e,t,r){return!e.filterOption||e.filterOption(t,r)}var ie=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},le=1,ce=function(e){(0,i.A)(r,e);var t=(0,l.A)(r);function r(e){var n;if((0,a.A)(this,r),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=z()||Y(/^iPhone/i)||Y(/^iPad/i)||z()&&navigator.maxTouchPoints>1,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props,o=r.onChange,a=r.name;t.name=a,n.ariaOnChange(e,t),o(e,t)},n.setValue=function(e,t,r){var o=n.props,a=o.closeMenuOnSelect,s=o.isMulti,i=o.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:i}),a&&(n.setState({inputIsHiddenAfterUpdate:!s}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,a=t.name,s=n.state.selectValue,i=o&&n.isOptionSelected(e,s),l=n.isOptionDisabled(e,s);if(i){var u=n.getOptionValue(e);n.setValue((0,p.B)(s.filter((function(e){return n.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(l)return void n.ariaOnChange((0,p.C)(e),{action:"select-option",option:e,name:a});o?n.setValue((0,p.B)([].concat((0,c.A)(s),[e])),"select-option",e):n.setValue((0,p.C)(e),"select-option")}r&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,r=n.state.selectValue,o=n.getOptionValue(e),a=r.filter((function(e){return n.getOptionValue(e)!==o})),s=(0,p.D)(t,a,a[0]||null);n.onChange(s,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange((0,p.D)(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,r=t[t.length-1],o=t.slice(0,t.length-1),a=(0,p.D)(e,o,o[0]||null);r&&n.onChange(a,{action:"pop-value",removedValue:r})},n.getFocusedOptionId=function(e){return te(n.state.focusableOptionsWithIds,e)},n.getFocusableOptionsWithIds=function(){return Q(J(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return p.E.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return re(n.props,e)},n.getOptionValue=function(e){return ne(n.props,e)},n.getStyles=function(e,t){var r=n.props.unstyled,o=q[e](t,r);o.boxSizing="border-box";var a=n.props.styles[e];return a?a(o,t):o},n.getClassNames=function(e,t){var r,o;return null===(r=(o=n.props.classNames)[e])||void 0===r?void 0:r.call(o,t)},n.getElementId=function(e){return"".concat(n.state.instancePrefix,"-").concat(e)},n.getComponents=function(){return(0,p.F)(n.props)},n.buildCategorizedOptions=function(){return J(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return X(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(e,t){n.setState({ariaSelection:(0,o.A)({value:e},t)})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.setState({inputIsHiddenAfterUpdate:!r}),n.onMenuClose()):n.openMenu("first"),e.preventDefault()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.preventDefault(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,p.G)(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches,r=t&&t.item(0);r&&(n.initialTouchX=r.clientX,n.initialTouchY=r.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches,r=t&&t.item(0);if(r){var o=Math.abs(r.clientX-n.initialTouchX),a=Math.abs(r.clientY-n.initialTouchY);n.userIsDragging=o>5||a>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=n.props.inputValue,r=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(r,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){if(!n.blockOptionHover&&n.state.focusedOption!==e){var t=n.getFocusableOptions().indexOf(e);n.setState({focusedOption:e,focusedOptionId:t>-1?n.getFocusedOptionId(e):null})}},n.shouldHideSelectedOptions=function(){return ie(n.props)},n.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),n.focus()},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,s=t.inputValue,i=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,m=n.state,f=m.focusedOption,h=m.focusedValue,v=m.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;n.focusValue("previous");break;case"ArrowRight":if(!r||s)return;n.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(h)n.removeValue(h);else{if(!o)return;r?n.popValue():i&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!p||!f||d&&n.isOptionSelected(f,v))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":c?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:s}),n.onMenuClose()):i&&a&&n.clearValue();break;case" ":if(s)return;if(!c){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++le),n.state.selectValue=(0,p.H)(e.value),e.menuIsOpen&&n.state.selectValue.length){var s=n.getFocusableOptionsWithIds(),i=n.buildFocusableOptions(),l=i.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=s,n.state.focusedOption=i[l],n.state.focusedOptionId=te(s,i[l])}return n}return(0,s.A)(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,p.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,o=this.state.isFocused;(o&&!r&&e.isDisabled||o&&n&&!e.menuIsOpen)&&this.focusInput(),o&&r&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||r||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,p.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,r=this.state,n=r.selectValue,o=r.isFocused,a=this.buildFocusableOptions(),s="first"===e?0:a.length-1;if(!this.props.isMulti){var i=a.indexOf(n[0]);i>-1&&(s=i)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[s],focusedOptionId:this.getFocusedOptionId(a[s])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=r.indexOf(n);n||(o=-1);var a=r.length-1,s=-1;if(r.length){switch(e){case"previous":s=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:r[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var o=0,a=n.indexOf(r);r||(a=-1),"up"===e?o=a>0?a-1:n.length-1:"down"===e?o=(a+1)%n.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>n.length-1&&(o=n.length-1):"last"===e&&(o=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(n[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(W):(0,o.A)((0,o.A)({},W),this.props.theme):W}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getClassNames,o=this.getValue,a=this.selectOption,s=this.setValue,i=this.props,l=i.isMulti,c=i.isRtl,u=i.options;return{clearValue:e,cx:t,getStyles:r,getClassNames:n,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:a,selectProps:i,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return oe(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ae(this.props,e,t)}},{key:"filterOption",value:function(e,t){return se(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,a=e.inputId,s=e.inputValue,i=e.tabIndex,l=e.form,c=e.menuIsOpen,d=e.required,m=this.getComponents().Input,f=this.state,h=f.inputIsHidden,v=f.ariaSelection,g=this.commonProps,b=a||this.getElementId("input"),y=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==v?void 0:v.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?u.createElement(m,(0,n.A)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:l,type:"text",value:s},y)):u.createElement(I,(0,n.A)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:p.J,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,c=this.commonProps,p=this.props,d=p.controlShouldRenderValue,m=p.isDisabled,f=p.isMulti,h=p.inputValue,v=p.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,_=g.isFocused;if(!this.hasValue()||!d)return h?null:u.createElement(l,(0,n.A)({},c,{key:"placeholder",isDisabled:m,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),v);if(f)return b.map((function(t,i){var l=t===y,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(r,(0,n.A)({},c,{components:{Container:o,Label:a,Remove:s},isFocused:l,isDisabled:m,key:p,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var C=b[0];return u.createElement(i,(0,n.A)({},c,{data:C,isDisabled:m}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,n.A)({},t,{innerProps:i,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,s=this.state.isFocused;return e&&a?u.createElement(e,(0,n.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var o=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return u.createElement(r,(0,n.A)({},o,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,n.A)({},t,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,o=t.GroupHeading,a=t.Menu,s=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,m=this.commonProps,f=this.state.focusedOption,h=this.props,v=h.captureMenuScroll,g=h.inputValue,b=h.isLoading,y=h.loadingMessage,_=h.minMenuHeight,C=h.maxMenuHeight,x=h.menuIsOpen,A=h.menuPlacement,S=h.menuPosition,w=h.menuPortalTarget,k=h.menuShouldBlockScroll,M=h.menuShouldScrollIntoView,O=h.noOptionsMessage,E=h.onMenuScrollToTop,I=h.onMenuScrollToBottom;if(!x)return null;var F,j=function(t,r){var o=t.type,a=t.data,s=t.isDisabled,i=t.isSelected,l=t.label,c=t.value,p=f===a,h=s?void 0:function(){return e.onOptionHover(a)},v=s?void 0:function(){return e.selectOption(a)},g="".concat(e.getElementId("option"),"-").concat(r),b={id:g,onClick:v,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return u.createElement(d,(0,n.A)({},m,{innerProps:b,data:a,isDisabled:s,isSelected:i,key:g,label:l,type:o,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())F=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,i=t.index,l="".concat(e.getElementId("group"),"-").concat(i),c="".concat(l,"-heading");return u.createElement(r,(0,n.A)({},m,{key:l,data:a,options:s,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(b){var P=y({inputValue:g});if(null===P)return null;F=u.createElement(l,m,P)}else{var L=O({inputValue:g});if(null===L)return null;F=u.createElement(c,m,L)}var T={minMenuHeight:_,maxMenuHeight:C,menuPlacement:A,menuPosition:S,menuShouldScrollIntoView:M},D=u.createElement(p.M,(0,n.A)({},m,T),(function(t){var r=t.ref,o=t.placerProps,i=o.placement,l=o.maxHeight;return u.createElement(a,(0,n.A)({},m,T,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:i}),u.createElement(U,{captureEnabled:v,onTopArrive:E,onBottomArrive:I,lockEnabled:k},(function(t){return u.createElement(s,(0,n.A)({},m,{innerRef:function(r){e.getMenuListRef(r),t(r)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:l,focusedOption:f}),F)})))}));return w||"fixed"===S?u.createElement(i,(0,n.A)({},m,{appendTo:w,controlElement:this.controlRef,menuPlacement:A,menuPosition:S}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,o=t.isMulti,a=t.name,s=t.required,i=this.state.selectValue;if(s&&!this.hasValue()&&!n)return u.createElement($,{name:a,onFocus:this.onValueInputFocus});if(a&&!n){if(o){if(r){var l=i.map((function(t){return e.getOptionValue(t)})).join(r);return u.createElement("input",{name:a,type:"hidden",value:l})}var c=i.length>0?i.map((function(t,r){return u.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(t)})})):u.createElement("input",{name:a,type:"hidden",value:""});return u.createElement("div",null,c)}var p=i[0]?this.getOptionValue(i[0]):"";return u.createElement("input",{name:a,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,s=t.isFocused,i=t.selectValue,l=this.getFocusableOptions();return u.createElement(b,(0,n.A)({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:a,isFocused:s,selectValue:i,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,o=e.
2SelectContainer,a=e.ValueContainer,s=this.props,i=s.className,l=s.id,c=s.isDisabled,p=s.menuIsOpen,d=this.state.isFocused,m=this.commonProps=this.getCommonProps();return u.createElement(o,(0,n.A)({},m,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),u.createElement(t,(0,n.A)({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:p}),u.createElement(a,(0,n.A)({},m,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(r,(0,n.A)({},m,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,s=t.ariaSelection,i=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,u=e.options,d=e.value,m=e.menuIsOpen,f=e.inputValue,h=e.isMulti,v=(0,p.H)(d),g={};if(r&&(d!==r.value||u!==r.options||m!==r.menuIsOpen||f!==r.inputValue)){var b=m?function(e,t){return X(J(e,t))}(e,v):[],y=m?Q(J(e,v),"".concat(c,"-option")):[],_=n?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n<t.length)return t[n]}return null}(t,v):null,C=function(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}(t,b);g={selectValue:v,focusedOption:C,focusedOptionId:te(y,C),focusableOptionsWithIds:y,focusedValue:_,clearFocusValueOnUpdate:!1}}var x=null!=a&&e!==r?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},A=s,S=i&&l;return i&&!S&&(A={value:(0,p.D)(h,v,v[0]||null),options:v,action:"initial-input-focus"},S=!l),"initial-input-focus"===(null==s?void 0:s.action)&&(A=null),(0,o.A)((0,o.A)((0,o.A)({},g),x),{},{prevProps:e,ariaSelection:A,prevWasFocused:S})}}]),r}(u.Component);ce.defaultProps=Z},2901:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(9922);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.A)(o.key),o)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},3029:(e,t,r)=>{function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},3072:(e,t)=>{var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case p:case a:case i:case s:case m:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case h:case l:return e;default:return t}}case o:return t}}}function x(e){return C(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=i,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||C(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return C(e)===d},t.isFragment=function(e){return C(e)===a},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===h},t.isPortal=function(e){return C(e)===o},t.isProfiler=function(e){return C(e)===i},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===i||e===s||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===_||e.$$typeof===g)},t.typeOf=C},3101:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(7143),o=r(6087),a=r(5370),s=r(790);const i=({props:e,blockName:t,attributes:r,contentAttr:i,BlockEdit:l})=>{const[c,u]=(0,o.useState)(null),[p,d]=(0,o.useState)(!1),{spectraProDynamicImage:m}=r,{context:f}
2=e,h=(0,o.useRef)(m),v=(0,n.useSelect)((e=>e("core/block-editor").getBlockCount()),[]),g=(0,n.useSelect)((e=>({Mobile:"sm",Tablet:"md",Desktop:"lg"}[e("core/editor")?.getDeviceType?.()||"Desktop"]||"lg")),[]);(0,o.useEffect)((()=>{v>0&&!p&&d(!0)}),[v]),(0,o.useEffect)((()=>{p&&(null!==c&&m===h.current||(h.current=m,(async()=>{const e="current_post"===m?.source?.type&&f?.postType&&f?.postId?{...m,source:{...m.source,postId:f.postId,postType:f.postType}}:m,t=await(0,a.pc)(e,"image");t?.url||u(void 0),u(t)})()))}),[p,m]);const b=(0,o.useMemo)((()=>{if(!c||!p)return e;if("core/image"===t)return{...e,attributes:{...r,url:c.url||r.url,id:c.id||r.id}};if("background"===i&&r.responsiveControls&&g){const t=r.responsiveControls[g]?.background;let n=t;if(!t?.type){let e=[];"sm"===g?e=["md","lg"]:"md"===g&&(e=["lg"]);for(const t of e){const e=r.responsiveControls[t]?.background;if(e?.type){n=e;break}}}if("video"===n?.type){const t={...r[i]||{},...n,type:"video"};return{...e,attributes:{...r,[i]:t}}}if("image"===t?.type||!t?.type){const n={...r.responsiveControls};n[g]||(n[g]={});const o={...t,type:"image",media:c};return n[g]={...n[g],background:o},{...e,attributes:{...r,[i]:o,responsiveControls:n}}}}return{...e,attributes:{...r,[i]:{...r[i],media:c}}}}),[e,c,t,r,i,p,g]);return(0,s.jsx)(l,{...b})}},3145:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},3221:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(6427),o=r(7723),a=r(790);const s=({hasExistingDynamicContent:e,isLoading:t,onRemove:r,onApply:s})=>(0,a.jsxs)(n.__experimentalHStack,{spacing:2,justify:"end",className:"spectra-pro-dynamic-content-footer",children:[e&&(0,a.jsx)(n.Button,{variant:"tertiary",onClick:r,disabled:t,children:(0,o.__)("Remove","spectra-pro")}),(0,a.jsx)(n.Button,{variant:"primary",onClick:s,isBusy:t,disabled:t,children:t?e?(0,o.__)("Updating…","spectra-pro"):(0,o.__)("Applying…","spectra-pro"):e?(0,o.__)("Update","spectra-pro"):(0,o.__)("Apply","spectra-pro")})]})},3350:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(6427),o=r(7723),a=r(2577),s=r(3838),i=r(6227),l=r(7187),c=r(790);const u=({settings:e,updateSetting:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,o.__)("Enable Link","spectra-pro"),checked:e.enableLink,onChange:r=>{t("enableLink",r),r&&t("linkSource",e.linkSource||"post_permalink")}}),e.enableLink&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.A,{label:(0,o.__)("Link Source","spectra-pro"),value:e.linkSource,options:s.OU,onChange:e=>t("linkSource",e)}),"custom_field"===e.linkSource&&(0,c.jsx)(l.A,{settings:e,updateSetting:t,type:"url"}),"author_info"===e.linkSource&&(0,c.jsx)(i.A,{settings:e,updateSetting:t,type:"url"})]})]})},3404:(e,t,r)=>{e.exports=r(3072)},3453:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(6369),o=r(6986),a=r(7800),s=r(6562);function i(e,t){return(0,n.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,s.A)()}},3557:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(7723),o=r(2577),a=r(8565),s=r(6537),i=r(287),l=r(5401),c=r(350),u=r(790);const p=[{label:(0,n.__)("Choose","spectra-pro"),value:""},{label:(0,n.__)("Post","spectra-pro"),options:[{label:(0,n.__)("Featured Image","spectra-pro"),value:"featured_image"},{label:(0,n.__)("Post Custom Field","spectra-pro"),value:"custom_field"}]},{label:(0,n.__)("Author","spectra-pro"),options:[{value:"avatar",label:(0,n.__)("Avatar (Profile Image)","spectra-pro")},{value:"author_info",label:(0,n.__)("Author Custom Field","spectra-pro")}]}],d=({settings:e,updateSetting:t})=>(0,u.jsxs)(u.Fragment,{children:["post_type"===e.source.type&&(0,u.jsx)(a.A,{settings:e,updateSetting:t}),"post_type"===e.source.type&&(0,u.jsx)(s.A,{settings:e,updateSetting:t}),("post_type"===e.source.type||"current_post"===e.source.type)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.A,{label:(0,n.__)("Source Field","spectra-pro"),value:e.source.field,options:p,onChange:e=>t("source.field",e)}),"custom_field"===e.source.field&&(0,u.jsx)(i.A,{settings:e,updateSetting:t,type:"image"}),"author_info"===e.source.field&&(0,u.jsx)(l.A,{settings:e,updateSetting:t,type:"image"})]}),"archive_meta"===e.source.field&&(0,u.jsx)(c.A,{settings:e,updateSetting:t,type:"image"})]})},3577:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(6427),o=r(7723),a=r(790);const s=({settings:e,updateSetting:t})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.TextControl,{label:(0,o.__)("No Responses","spectra-pro"),value:e.source.noComments,onChange:e=>t("source.noComments",e)}),(0,a.jsx)(n.TextControl,{label:(0,o.__)("One Response","spectra-pro"),value:e.source.oneComment,onChange:e=>t("source.oneComment",e)}),(0,a.jsx)(n.TextControl,{label:(0,o.__)("{number} Responses","spectra-pro"),value:e.source.manyComments,onChange:e=>t("source.manyComments",e)})]})},3662:(e,t,r)=>
2{function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},3716:(e,t,r)=>{r.d(t,{wE:()=>s});var n=r(4534),o=r(9735),a=r(390);function s(e){return(0,a.VF)(i("",null,null,null,[""],e=(0,a.c4)(e),0,[0],e))}function i(e,t,r,n,s,p,d,m,f){for(var h=0,v=0,g=d,b=0,y=0,_=0,C=1,x=1,A=1,S=0,w="",k=s,M=p,O=n,E=w;x;)switch(_=S,S=(0,a.K2)()){case 40:if(108!=_&&58==(0,o.wN)(E,g-1)){-1!=(0,o.K5)(E+=(0,o.HC)((0,a.Tb)(S),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:E+=(0,a.Tb)(S);break;case 9:case 10:case 13:case 32:E+=(0,a.mw)(_);break;case 92:E+=(0,a.Nc)((0,a.OW)()-1,7);continue;case 47:switch((0,a.se)()){case 42:case 47:(0,o.BC)(c((0,a.nf)((0,a.K2)(),(0,a.OW)()),t,r),f);break;default:E+="/"}break;case 123*C:m[h++]=(0,o.b2)(E)*A;case 125*C:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+v:-1==A&&(E=(0,o.HC)(E,/\f/g,"")),y>0&&(0,o.b2)(E)-g&&(0,o.BC)(y>32?u(E+";",n,r,g-1):u((0,o.HC)(E," ","")+";",n,r,g-2),f);break;case 59:E+=";";default:if((0,o.BC)(O=l(E,t,r,h,v,s,m,w,k=[],M=[],g),p),123===S)if(0===v)i(E,t,O,O,k,p,g,m,M);else switch(99===b&&110===(0,o.wN)(E,3)?100:b){case 100:case 108:case 109:case 115:i(e,O,O,n&&(0,o.BC)(l(e,O,O,0,0,s,m,w,s,k=[],g),M),s,M,g,m,n?k:M);break;default:i(E,O,O,O,[""],M,0,m,M)}}h=v=y=0,C=A=1,w=E="",g=d;break;case 58:g=1+(0,o.b2)(E),y=_;default:if(C<1)if(123==S)--C;else if(125==S&&0==C++&&125==(0,a.YL)())continue;switch(E+=(0,o.HT)(S),S*C){case 38:A=v>0?1:(E+="\f",-1);break;case 44:m[h++]=((0,o.b2)(E)-1)*A,A=1;break;case 64:45===(0,a.se)()&&(E+=(0,a.Tb)((0,a.K2)())),b=(0,a.se)(),v=g=(0,o.b2)(w=E+=(0,a.Cv)((0,a.OW)())),S++;break;case 45:45===_&&2==(0,o.b2)(E)&&(C=0)}}return p}function l(e,t,r,s,i,l,c,u,p,d,m){for(var f=i-1,h=0===i?l:[""],v=(0,o.FK)(h),g=0,b=0,y=0;g<s;++g)for(var _=0,C=(0,o.c1)(e,f+1,f=(0,o.tn)(b=c[g])),x=e;_<v;++_)(x=(0,o.Bq)(b>0?h[_]+" "+C:(0,o.HC)(C,/&\f/g,h[_])))&&(p[y++]=x);return(0,a.rH)(e,t,r,0===i?n.XZ:u,p,d,m)}function c(e,t,r){return(0,a.rH)(e,t,r,n.YK,(0,o.HT)((0,a.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,r,s){return(0,a.rH)(e,t,r,n.LU,(0,o.c1)(e,0,s),(0,o.c1)(e,s+1,-1),s)}},3731:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(6427),o=r(7723),a=r(6087),s=r(2577),i=r(5318),l=r(6104),c=r(790);const u=({settings:e,updateSetting:t})=>{const[r,u]=(0,a.useState)([]),[p,d]=(0,a.useState)(!0),m=[{label:(0,o.__)("Display Name","spectra-pro"),value:"display_name"},{label:(0,o.__)("Username","spectra-pro"),value:"login"},{value:"nicename",label:(0,o.__)("Nickname","spectra-pro")},{label:(0,o.__)("First Name","spectra-pro"),value:"first_name"},{label:(0,o.__)("Last Name","spectra-pro"),value:"last_name"},{label:(0,o.__)("Bio","spectra-pro"),value:"description"},{label:(0,o.__)("Email","spectra-pro"),value:"email"},{label:(0,o.__)("ID","spectra-pro"),value:"id"},{label:(0,o.__)("Website","spectra-pro"),value:"url"},{label:(0,o.__)("Avatar Image URL","spectra-pro"),value:"avatar"}],f=new l.A(i.A.userCustomFields);(0,a.useEffect)((()=>{if("current_user"!==e.source.type)return u([]),void d(!1);(async()=>{try{d(!0);const e=await f.list(),t=Object.entries(e?.data||{}).map((([,e])=>e&&"object"==typeof e&&"label"in e&&"value"in e?{label:e.label,value:e.value}:null)).filter(Boolean);u(t)}catch(e){u([])}finally{d(!1)}})()}),[e.source.type]);const h=[...m,...r,{label:(0,o.__)("Custom Input","spectra-pro"),value:"custom_input"}];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.A,{label:(0,o.__)("Custom Field","spectra-pro"),value:e.source.field,options:p?[{label:(0,o.__)("Loading…","spectra-pro"),value:""}]:h,onChange:e=>t("source.field",e),disabled:p}),"custom_input"===e.source.field&&!p&&(0,c.jsx)(n.TextControl,{label:(0,o.__)("Custom Meta Key","spectra-pro"),value:e.source.userMetaKey||"",onChange:e=>t("source.userMetaKey",e),help:(0,o.__)("Enter a custom meta key","spectra-pro")})]})}},3838:(e,t,r)=>{r.d(t,{AI:()=>c,Ap:()=>i,BY:()=>l,Dg:()=>a,K5:()=>o,LM:()=>u,OU:()=>m,PM:()=>s,YL:()=>p,oj:()=>f,qE:()=>d});var n=r(7723);const o="data-spectra-dc",a="spectra-pro/dynamic-content",s={"spectra/content":{contentAttr:"text"},"spectra/button":{contentAttr:"text"}},i=[...Object.keys(s)],l={"spectra/slider":{contentAttr:"background"},"spectra/container":{contentAttr:"background"},"spectra/modal-popup-content":{contentAttr:"background"},"core/image":{contentAttr:"url"},"spectra-pro/login":{contentAttr:"background"}},c=[...Object.keys(l)],u=["spectra/button","spectra/icon","core/image","spectra-pro/register"],p=[{label:"Current Post",value:"current_post"},{label:"Post Type",value:"post_type"},{label:"Archive",value:"archive"},{label:"Site",value:"site"},{label:"Current User",value:"current_user"},{label:"Request Parameter",value:"request_parameter"},{label:"Shortcode",value:"shortcode"}],d={current_post:[{label:(0,n.__)("Post","spectra-pro"),value:"post",options:[{label:(0,n.__)("Post Title","spectra-pro"),value:"post_title"},{label:(0,n.__)("Post Excerpt","spectra-pro"),value:"post_excerpt"},{label:(0,n.__)("Featured Image","spectra-pro"),value:"featured_image"}
2,{label:(0,n.__)("Post Custom Field","spectra-pro"),value:"custom_field"},{label:(0,n.__)("Post Date","spectra-pro"),value:"post_date"},{label:(0,n.__)("Post Time","spectra-pro"),value:"post_time"},{label:(0,n.__)("Post Terms","spectra-pro"),value:"post_terms"},{label:(0,n.__)("Post ID","spectra-pro"),value:"post_ID"},{label:(0,n.__)("Comments Number","spectra-pro"),value:"comments_number"}]},{label:(0,n.__)("Author","spectra-pro"),value:"author",options:[{value:"name",label:(0,n.__)("Name","spectra-pro")},{value:"first_name",label:(0,n.__)("First Name","spectra-pro")},{value:"last_name",label:(0,n.__)("Last Name","spectra-pro")},{value:"display_name",label:(0,n.__)("Display Name","spectra-pro")},{value:"login",label:(0,n.__)("Username","spectra-pro")},{value:"description",label:(0,n.__)("Description","spectra-pro")},{value:"nicename",label:(0,n.__)("Nickname","spectra-pro")},{value:"description",label:(0,n.__)("Bio","spectra-pro")},{value:"email",label:(0,n.__)("Email","spectra-pro")},{value:"id",label:(0,n.__)("User ID","spectra-pro")},{value:"url",label:(0,n.__)("Website","spectra-pro")},{value:"avatar",label:(0,n.__)("Avatar Image URL","spectra-pro")},{value:"author_info",label:(0,n.__)("Author Custom Field","spectra-pro")}]}],post_type:[{label:(0,n.__)("Post","spectra-pro"),value:"post",options:[{label:(0,n.__)("Post Title","spectra-pro"),value:"post_title"},{label:(0,n.__)("Post Excerpt","spectra-pro"),value:"post_excerpt"},{label:(0,n.__)("Featured Image","spectra-pro"),value:"featured_image"},{label:(0,n.__)("Post Custom Field","spectra-pro"),value:"custom_field"},{label:(0,n.__)("Post Date","spectra-pro"),value:"post_date"},{label:(0,n.__)("Post Time","spectra-pro"),value:"post_time"},{label:(0,n.__)("Post Terms","spectra-pro"),value:"post_terms"},{label:(0,n.__)("Post ID","spectra-pro"),value:"post_ID"},{label:(0,n.__)("Comments Number","spectra-pro"),value:"comments_number"}]},{label:(0,n.__)("Author","spectra-pro"),value:"author",options:[{value:"name",label:(0,n.__)("Name","spectra-pro")},{value:"first_name",label:(0,n.__)("First Name","spectra-pro")},{value:"last_name",label:(0,n.__)("Last Name","spectra-pro")},{value:"display_name",label:(0,n.__)("Display Name","spectra-pro")},{value:"login",label:(0,n.__)("Username","spectra-pro")},{value:"description",label:(0,n.__)("Description","spectra-pro")},{value:"nicename",label:(0,n.__)("Nickname","spectra-pro")},{value:"description",label:(0,n.__)("Bio","spectra-pro")},{value:"email",label:(0,n.__)("Email","spectra-pro")},{value:"id",label:(0,n.__)("User ID","spectra-pro")},{value:"url",label:(0,n.__)("Website","spectra-pro")},{value:"avatar",label:(0,n.__)("Avatar Image URL","spectra-pro")},{value:"author_info",label:(0,n.__)("Author Custom Field","spectra-pro")}]}],archive:[{label:(0,n.__)("Archive Title","spectra-pro"),value:"archive_title"},{label:(0,n.__)("Archive Description","spectra-pro"),value:"archive_description"},{label:(0,n.__)("Archive URL","spectra-pro"),value:"archive_url"},{label:(0,n.__)("Archive Custom Field","spectra-pro"),value:"archive_meta"}],site:[{label:"Site Title",value:"site_title"},{label:"Site Tagline",value:"site_tagline"},{label:"Site URL",value:"site_url"},{label:"Admin Email",value:"admin_email"}],request_parameter:[{label:"Get",value:"GET"},{label:"Post",value:"POST"},{label:"Query Var",value:"QUERY_VAR"}]},m=[{label:(0,n.__)("Choose","spectra-pro"),value:""},{label:(0,n.__)("Post","spectra-pro"),value:"post",options:[{label:(0,n.__)("Post Permalink","spectra-pro"),value:"post_permalink"},{label:(0,n.__)("Comments Area","spectra-pro"),value:"comments_area"},{label:(0,n.__)("Featured Image","spectra-pro"),value:"featured_image"},{label:(0,n.__)("Post Custom Field","spectra-pro"),value:"custom_field"}]},{label:(0,n.__)("Author","spectra-pro"),value:"author",options:[{value:"avatar",label:(0,n.__)("Avatar (Profile URL)","spectra-pro")},{value:"author_info",label:(0,n.__)("Author Custom Field","spectra-pro")},{value:"author_archive",label:(0,n.__)("Author Archive URL","spectra-pro")},{value:"author_page",label:(0,n.__)("Author Page URL","spectra-pro")}]}],f=((0,n.__)("Post Permalink","spectra-pro"),(0,n.__)("Comments Area","spectra-pro"),(0,n.__)("Featured Image URL","spectra-pro"),(0,n.__)("Post Custom Field","
2spectra-pro"),(0,n.__)("Author Archive","spectra-pro"),(0,n.__)("Author Website","spectra-pro"),(0,n.__)("First Term Archive","spectra-pro"),(0,n.__)("Post Permalink","spectra-pro"),(0,n.__)("Comments Area","spectra-pro"),(0,n.__)("Featured Image URL","spectra-pro"),(0,n.__)("Post Custom Field","spectra-pro"),(0,n.__)("Author Archive","spectra-pro"),(0,n.__)("Author Website","spectra-pro"),(0,n.__)("First Term Archive","spectra-pro"),(0,n.__)("Site URL","spectra-pro"),(0,n.__)("Home URL","spectra-pro"),(0,n.__)("Archive URL","spectra-pro"),(0,n.__)("Archive Custom Field","spectra-pro"),(0,n.__)("User Profile URL","spectra-pro"),(0,n.__)("User Website URL","spectra-pro"),(0,n.__)("User Custom Field","spectra-pro"),(0,n.__)("Parameter Value as URL","spectra-pro"),(0,n.__)("Shortcode Output as URL","spectra-pro"),[{value:"title",label:(0,n.__)("Title","spectra-pro")},{value:"alt_text",label:(0,n.__)("Alt","spectra-pro")},{value:"caption",label:(0,n.__)("Caption","spectra-pro")},{value:"description",label:(0,n.__)("Description","spectra-pro")},{value:"link",label:(0,n.__)("File URL","spectra-pro")},{value:"source_url",label:(0,n.__)("Attachment URL","spectra-pro")}])},3893:(e,t,r)=>{function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{A:()=>n})},3917:(e,t,r)=>{r.d(t,{J:()=>g});var n=r(5137),o=r(3969),a=r(6289),s=!1,i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},p=(0,a.A)((function(e){return c(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,(function(e,t,r){return h={name:t,styles:r,next:h},t}))}return 1===o.A[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"},m="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function f(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return h={name:o.name,styles:o.styles,next:h},o.name;var a=r;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)h={name:i.name,styles:i.styles,next:h},i=i.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=f(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?n+=a+"{"+t[l]+"}":u(l)&&(n+=p(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&s)throw new Error(m);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=f(e,t,i);switch(a){case"animation":case"animationName":n+=p(a)+":"+c+";";break;default:n+=a+"{"+c+"}"}}else for(var h=0;h<i.length;h++)u(i[h])&&(n+=p(a)+":"+d(a,i[h])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var l=h,c=r(e);return h=l,f(e,t,c)}}var v=r;if(null==t)return v;var g=t[v];return void 0!==g?g:v}var h,v=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";h=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(r,t,s)):a+=s[0];for(var i=1;i<e.length;i++)a+=f(r,t,e[i]),o&&(a+=s[i]);v.lastIndex=0;for(var l,c="";null!==(l=v.exec(a));)c+="-"+l[1];return{name:(0,n.A)(a)+c,styles:a,next:h}}},3925:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(6427),o=r(7723),a=r(3838),s=r(790);const i=({settings:e,updateSetting:t})=>(0,s.jsx)(n.SelectControl,{label:(0,o.__)("Featured Image Attribute","spectra-pro"),value:e.source.featuredImageField,options:a.oj,onChange:e=>t("source.featuredImageField",e)})},3954:(e,t,r)=>
2{function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{A:()=>n})},3969:(e,t,r)=>{r.d(t,{A:()=>n});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},4146:(e,t,r)=>{var n=r(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return n.isMemo(e)?s:i[e.$$typeof]||o}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var o=m(r);o&&o!==f&&e(t,o,n)}var s=u(r);p&&(s=s.concat(p(r)));for(var i=l(t),h=l(r),v=0;v<s.length;++v){var g=s[v];if(!(a[g]||n&&n[g]||h&&h[g]||i&&i[g])){var b=d(r,g);try{c(t,g,b)}catch(e){}}}}return t}},4243:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(3145);function o(e){if(Array.isArray(e))return(0,n.A)(e)}},4467:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(9922);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},4506:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(5370);const o=async(e,t)=>{if(!e||!e.includes("spectra-pro-dc-content"))return e;const r=(new DOMParser).parseFromString(e,"text/html"),o=Array.from(r.body.querySelectorAll("span.spectra-pro-dc-content[data-spectra-dc]"));return 0===o.length?e:((await Promise.all(o.map((async e=>{const r=e.getAttribute("data-spectra-dc"),o=e.innerHTML;if(!r)return{element:e,dynamicContent:o};const a=JSON.parse(r);try{if(!a?.source?.type||!a?.source?.field)return{element:e,dynamicContent:o};const r={...a,source:{...a.source,..."current_post"===a?.source?.type&&t?.postType&&t?.postId&&{postId:t.postId,postType:t.postType}}};return{element:e,dynamicContent:await(0,n.pc)(r)}}catch(t){return{element:e,dynamicContent:o}}})))).forEach((e=>{e&&e.element.innerHTML!==e.dynamicContent&&(e.element.innerHTML=e.dynamicContent)})),r.body.innerHTML)}},4534:(e,t,r)=>{r.d(t,{IO:()=>p,LU:()=>l,MS:()=>n,Sv:()=>u,XZ:()=>i,YK:()=>s,j:()=>a,vd:()=>o,yE:()=>c});var n="-ms-",o="-moz-",a="-webkit-",s="comm",i="rule",l="decl",c="@import",u="@keyframes",p="@layer"},4684:(e,t,r)=>{r.d(t,{E:()=>h,c:()=>m,h:()=>p});var n=r(1609),o=r(5815),a=r(41),s=r(3917),i=r(1287),l=n.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),c=(l.Provider,function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(l);return e(t,o,r)}))}),u=n.createContext({}),p={}.hasOwnProperty,d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var r={};for(var n in t)p.call(t,n)&&(r[n]=t[n]);return r[d]=e,r},f=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,a.SF)(t,r,n),(0,i.s)((function(){return(0,a.sk)(t,r,n)})),null},h=c((function(e,t,r){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[d],l=[o],c="";"string"==typeof e.className?c=(0,a.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var m=(0,s.J)(l,void 0,n.useContext(u));c+=t.key+"-"+m.name;var h={};for(var v in e)p.call(e,v)&&"css"!==v&&v!==d&&(h[v]=e[v]);return h.className=c,r&&(h.ref=r),n.createElement(n.Fragment,null,n.createElement(f,{cache:t,serialized:m,isStringTag:"string"==typeof i}),n.createElement(i,h))}))},4715:e=>{e.exports=window.wp.blockEditor},4842:(e,t,r)=>{r.d(t,{A:()=>c,H:()=>l});var n=r(4715),o=r(6427),a=r(6087),s=r(7723),i=r(790);const l=(0,a.createContext)(null),c=({settings:e,updateAdvancedSetting:t,directSave:r})=>{const[c,u]=(0,a.useState)(null),p=(0,a.useContext)(l),d=(0,a.useRef)(null);(0,a.useEffect)((()=>{e?.advanced?.fallback&&!c&&u(e.advanced.fallback)}
2),[e?.advanced?.fallback,c]);const m=()=>{u(null),t("fallback",void 0)},f=e=>{p&&p.reopen&&(d.current=p.reopen),p&&p(),setTimeout((()=>{e()}),100)},h=(0,a.useMemo)((()=>({open:e})=>(0,i.jsx)(i.Fragment,{children:c&&c.url?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.BaseControl,{id:"spectra-pro-dynamic-content-fallback-image",label:(0,s.__)("Fallback Image","spectra-pro"),children:(0,i.jsx)("img",{id:"spectra-pro-dynamic-content-advanced-settings-fallback-image",src:c.url,alt:c.alt||(0,s.__)("Fallback image","spectra-pro"),style:{maxWidth:"100%",height:"auto",borderRadius:"4px",border:"1px solid #ddd"}})}),(0,i.jsxs)(o.__experimentalHStack,{spacing:4,children:[(0,i.jsx)(o.Button,{variant:"secondary",onClick:()=>f(e),"aria-label":(0,s.__)("Replace fallback image","spectra-pro"),children:(0,s.__)("Replace","spectra-pro")}),(0,i.jsx)(o.Button,{variant:"link",onClick:m,isDestructive:!0,"aria-label":(0,s.__)("Remove fallback image","spectra-pro"),children:(0,s.__)("Remove","spectra-pro")})]}),(0,i.jsx)("span",{className:"components-base-control__help",children:(0,s.__)("This image will be used as a fallback if no dynamic image is found.","spectra-pro")})]}):(0,i.jsx)(o.BaseControl,{id:"spectra-pro-dynamic-content-fallback-image",label:(0,s.__)("Fallback Image","spectra-pro"),children:(0,i.jsx)(o.__experimentalHStack,{justify:"start",children:(0,i.jsx)(o.Button,{__next40pxDefaultSize:!0,onClick:()=>f(e),variant:"secondary","aria-label":(0,s.__)("Select fallback image","spectra-pro"),children:(0,s.__)("Set Fallback Image","spectra-pro")})})})})),[c,m,p]);return(0,i.jsx)(n.MediaUploadCheck,{children:(0,i.jsx)(n.MediaUpload,{onSelect:e=>{const n={id:e.id,url:e.url,type:e.type};u(n),t("fallback",n),r&&r(n),d.current&&setTimeout((()=>{d.current(),d.current=null}),300)},allowedTypes:["image"],value:c?.id,render:h})})}},4914:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(6427),o=r(7143),a=r(6087),s=r(7723),i=r(1358),l=r(676),c=r(5370),u=r(790);const p=(e,t)=>{const{type:r,attributeLabel:p,attributeValue:d,attributes:m,setAttributes:f,setShowPreview:h,clientId:v,context:g={}}=t,{spectraProEnableDynamicImage:b,spectraProDynamicImage:y}=m,{__unstableMarkNextChangeAsNotPersistent:_,updateBlockAttributes:C}=(0,o.useDispatch)("core/block-editor");return(0,a.useEffect)((()=>{h("image"!==r||!b)}),[b,h,r]),"image"!==r?e:(0,u.jsx)(n.__experimentalToolsPanel,{label:(0,s.__)("Dynamic Image","spectra-pro"),resetAll:()=>{f({spectraProEnableDynamicImage:!1})},children:(0,u.jsx)(n.__experimentalToolsPanelItem,{label:(0,s.__)("Dynamic Image","spectra-pro"),isS
2hownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>f({spectraProEnableDynamicImage:!1}),children:(0,u.jsxs)(n.__experimentalVStack,{spacing:4,children:[(0,u.jsx)(n.ToggleControl,{label:(0,s.__)("Dynamic Image","spectra-pro"),checked:b,onChange:async e=>{if(f({spectraProEnableDynamicImage:e}),e&&y){const e=await(0,c.pc)(y,"image");e?.url&&requestAnimationFrame((()=>{_(),C(v,{[p]:{...d,media:e}})}))}}}),b&&(0,u.jsx)(l.M,{children:(0,u.jsx)(i.A,{attributes:m,setAttributes:f,attributeLabel:p,attributeValue:d,context:g})})]})})})}},5047:(e,t,r)=>{r.d(t,{v:()=>n});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++}
2,t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}()},5137:(e,t,r)=>{function n(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}r.d(t,{A:()=>n})},5318:(e,t,r)=>{r.d(t,{A:()=>o});const n="/spectra/pro/v2/",o={dynamicContent:n+"dynamic-content",userCustomFields:n+"dynamic-content/user-custom-fields",postCustomFields:n+"dynamic-content/post-custom-fields",terms:n+"dynamic-content/terms",termsMeta:n+"dynamic-content/terms-meta",commentsCount:n+"dynamic-content/comments-count"}},5370:(e,t,r)=>{r.d(t,{Ir:()=>p,V5:()=>d,Ww:()=>u,XL:()=>E,gh:()=>f,pT:()=>O,pc:()=>m,sP:()=>M});var n=r(7143),o=r(8443),a=r(8537),s=r(7723),i=r(6104),l=r(3838),c=r(5318);const u=e=>!!e?.name&&l.Ap.includes(e.name),p=e=>!!e?.name&&l.AI.includes(e.name),d=e=>!!e?.name&&l.LM.includes(e.name),m=async(e,t="text")=>{const{source:{type:r,field:o,postId:a=0,postType:i="post"},advanced:l={}}=e;let c="";try{switch(r){case"current_post":{let r=null;if(a){const t=e.source.postType||(0,n.select)("core/editor")?.getCurrentPostType()||"post";r=await(0,n.resolveSelect)("core").getEntityRecord("postType",t,a)}if(!r&&(r=(0,n.select)("core/editor").getCurrentPost(),!r))throw new Error((0,s.__)("Current post not available","spectra-pro"));c=await f(e,r,t);break}case"post_type":{if(!a)throw new Error((0,s.__)("Post ID is required","spectra-pro"));const r=await(0,n.resolveSelect)("core").getEntityRecord("postType",i,a);if(!r)throw new Error((0,s.__)("Post not found.","spectra-pro"));c=await f(e,r,t);break}case"site":c=await S(e);break;case"current_user":c=await w(e);break;case"archive":c=await A(e);break;case"request_parameter":c=await k(e);break;case"shortcode":c=o;break;default:c=""}return"image"===t?!c||"object"==typeof c&&0===Object.keys(c).length?l?.fallback||"":c:M(c,e,t)}catch(e){return l?.fallback||(0,s.__)("N/A","spectra-pro")}},f=async(e,t=null,r="text")=>{if(!t||"post_type"===e.source.type&&!t.id)return"";const{field:n="post_title"}=e.source;if(["name","first_name","last_name","display_name","login","description","nicename","description","email","ID","url","avatar","author_info"].includes(n))return w({...e,source:{...e.source,postId:t.id}});switch(n){case"post_title":return t.title?.rendered||t.title||"";case"post_excerpt":const n=t.excerpt?.raw||t.excerpt?.rendered||t.excerpt||"";if(t.excerpt?.rendered&&!t.excerpt?.raw){const e=document.createElement("div");return e.innerHTML=n,(0,a.decodeEntities)(e.textContent||e.innerText||"")}return n;case"featured_image":return h(t,e,r);case"custom_field":return await v(t,e,r);case"post_date":return g(t,e);case"post_time":return b(t,e);case"post_terms":return y(t,e);case"post_ID":return t.id.toString();case"comments_number":return _(t,e);default:return""}},h=async(e,t,r="text")=>{const o=e?.featured_media;if(!o)return"";let a=(0,n.select)("core")?.getMedia(o);if(!a)try{a=await(0,n.resolveSelect)("core").getEntityRecord("postType","attachment",o)}catch(e){return""}if(!a)return"";if("image"===r)return{url:a.source_url,id:a.id};switch(t.source?.featuredImageField){case"title":return a.title?.raw||"";case"alt_text":return a.alt_text||"";case"caption":return a.caption?.raw||"";case"description":return a.description?.raw||"";case"link":return a.media_link||"";default:return a.source_url||""}},v=async(e,t,r="text")=>{if(!e||!e.id)return"";const{postCustomField:n=""}=t.source;return n?(t.source.postId=e.id,e.type&&(t.source.postType=e.type),await I(t,r)):""},g=(e,t)=>{const{dateType:r,dateFormat:n,customDateFormat:o}=t.source,a="modified"===r?e.modified_gmt:e.date_gmt;return a?C(a,n,o):""},b=(e,t)=>{const{timeType:r,timeFormat:n,customTimeFormat:o}=t.source,a="modified"===r?e.modified_gmt:e.date_gmt;return a?x(a,n,o):""},y=async(e,t)=>{const{taxonomyType:r="category",taxonomyValueSeparator:o=","}=t.source;if(!r||!e?.id)return"";let a=(0,n.select)("core")?.getEntityRecords("taxonomy",r,{post:e.id});if(!a)try{a=await(0,n.resolveSelect)("core").getEntityRecords("taxonomy",r,{post:e.id})}catch(e){return""}return a&&a.map((e=>e.name)).join(o)||""},_=async(e,t)=>{if(!e||!e.id)return"";let r=0;const n=new i.A(c.A.commentsCount),o=await n.list({post_id:e.id});o?.data&&(r=parseInt(o.data,10));const a=r||0,{noComments:l=(0,s.__)("No Responses","spectra-pro"),oneComment:u=(0,s.__)("One Response","spectra-pro"),manyComments:p=(0,s.__)("{number} Responses","spectra-pro")}=t.source;return 0===a?l:1===a?u:p.replace("{number}",a)},C=(e,t,r)=>
2{const n={default:"F j, Y","F j, Y":"F j, Y","Y-m-d":"Y-m-d","m/d/Y":"m/d/Y","d/m/Y":"d/m/Y",human_readable:"",custom:r||"F j, Y"};if("human_readable"===t)return(0,o.humanTimeDiff)(e);const a=n[t]||n.default;return(0,o.dateI18n)(a,e)},x=(e,t,r)=>{const n={default:"g:i a","g:i a":"g:i a","g:i A":"g:i A","H:i":"H:i",custom:r||"g:i a"},a=n[t]||n.default;return(0,o.dateI18n)(a,e)},A=async e=>await I(e),S=async e=>e.source?.field?await I(e):"",w=async e=>e.source?.field?await I(e):"",k=async e=>e.source?.requestParamKey?await I(e):"",M=async(e,t)=>{const{advanced:r}=t;try{return"string"==typeof(e=await e)&&e.trim()||!r?.fallback||(e=r?.fallback||""),!e.length>0?(0,s.__)("N/A","spectra-pro"):(r?.charLength&&e.length>parseInt(r?.charLength)&&(e=e.substring(0,parseInt(r?.charLength))+"…"),r?.before&&(e=r?.before+e),r?.after&&(e+=r?.after),e)}catch(e){return r?.fallback||(0,s.__)("N/A","spectra-pro")}},O=e=>l.qE[e]||[],E=e=>({current_post:[{label:"Post Permalink",value:"post_permalink"},{label:"Comments Area",value:"comments_area"},{label:"Featured Image URL",value:"featured_image"},{label:"Post Custom Field",value:"custom_field"},{label:"Author Archive",value:"author_archive"},{label:"Author Website",value:"author_website"},{label:"First Term Archive",value:"post_terms"}],post_type:[{label:"Post Permalink",value:"post_permalink"},{label:"Comments Area",value:"comments_area"},{label:"Featured Image URL",value:"featured_image"},{label:"Post Custom Field",value:"custom_field"},{label:"Author Archive",value:"author_archive"},{label:"Author Website",value:"author_website"},{label:"First Term Archive",value:"post_terms"}],site:[{label:"Site URL",value:"site_url"},{label:"Home URL",value:"home_url"}],archive:[{label:"Archive URL",value:"archive_url"},{label:"Archive Custom Field",value:"archive_meta"}],current_user:[{label:"User Profile URL",value:"user_profile"},{label:"User Website URL",value:"user_website"},{label:"User Custom Field",value:"custom_field"}],request_parameter:[{label:"Parameter Value as URL",value:"parameter_url"}],shortcode:[{label:"Shortcode Output as URL",value:"shortcode_url"}]}[e]||[]),I=async(e,t="text")=>{const r=new i.A(c.A.dynamicContent);try{const n=await r.list({settings:JSON.stringify(e),type:t});return n&&n?.data?n.data:e?.advanced?.fallback||(0,s.__)("N/A","spectra-pro")}catch(t){return e?.advanced?.fallback||(0,s.__)("N/A","spectra-pro")}}},5386:(e,t,r)=>{r.d(t,{A:()=>_});var n=r(7723),o=r(2577),a=r(5370),s=r(8565),i=r(6537),l=r(2398),c=r(350),u=r(3731),p=r(841),d=r(3925),m=r(287),f=r(5401),h=r(6252),v=r(2184),g=r(3577),b=r(9075),y=r(790);const _=({settings:e,updateSetting:t})=>{const r=(0,a.pT)(e.source.type);let _=(0,n.__)("Source Field","spectra-pro");switch(e.source.type){case"request_parameter":_=(0,n.__)("Type","spectra-pro");break;case"shortcode":_=(0,n.__)("Shortcode","spectra-pro");break;case"current_user":_=(0,n.__)("User Field","spectra-pro")}return(0,y.jsxs)(y.Fragment,{children:["post_type"===e.source.type&&(0,y.jsx)(s.A,{settings:e,updateSetting:t}),"post_type"===e.source.type&&(0,y.jsx)(i.A,{settings:e,updateSetting:t}),"shortcode"!==e.source.type&&"current_user"!==e.source.type&&(0,y.jsx)(o.A,{label:_,value:e.source.field,options:r,onChange:e=>t("source.field",e)}),("post_type"===e.source.type||"current_post"===e.source.type)&&(0,y.jsxs)(y.Fragment,{children:["custom_field"===e.source.field&&(0,y.jsx)(m.A,{settings:e,updateSetting:t}),"post_terms"===e.source.field&&(0,y.jsx)(b.A,{settings:e,updateSetting:t}),"comments_number"===e.source.field&&(0,y.jsx)(g.A,{settings:e,updateSetting:t}),"author_info"===e.source.field&&(0,y.jsx)(f.A,{settings:e,updateSetting:t}),"post_date"===e.source.field&&(0,y.jsx)(h.A,{settings:e,updateSetting:t}),"post_time"===e.source.field&&(0,y.jsx)(v.A,{settings:e,updateSetting:t}),"featured_image"===e.source.field&&(0,y.jsx)(d.A,{settings:e,updateSetting:t})]}),"shortcode"===e.source.type&&(0,y.jsx)(p.A,{settings:e,updateSetting:t}),"current_user"===e.source.type&&(0,y.jsx)(u.A,{settings:e,updateSetting:t}),"archive_meta"===e.source.field&&(0,y.jsx)(c.A,{settings:e,updateSetting:t}),"request_parameter"===e.source.type&&(0,y.jsx)(l.A,{settings:e,updateSetting:t})]})}},5401:(e,t,r)=>{r.d(t,{A:()=>p});
2var n=r(6427),o=r(7143),a=r(1275),s=r(6087),i=r(7723),l=r(6104),c=r(5318),u=r(790);const p=({settings:e,updateSetting:t,type:r="text"})=>{const[p,d]=(0,s.useState)([]),[m,f]=(0,s.useState)(!0),h=new l.A(c.A.userCustomFields),v=(0,o.useSelect)((e=>e(a.store).getCurrentPostId()),[]);(0,s.useEffect)((()=>{(async()=>{const t="current_post"===e.source.type?v:"post_type"===e.source.type?e.source?.post_id:null;if(!t)return d([]),void f(!1);f(!0);try{const e=await h.list({post_id:t,type:r}),n=Object.entries(e?.data||{}).map((([,e])=>e&&"object"==typeof e&&"label"in e&&"value"in e?{label:e.label,value:e.value}:null)).filter(Boolean);d(n)}catch(e){d([])}finally{f(!1)}})()}),[e.source.type,e.source?.post_id]);const g=[{label:(0,i.__)("Choose","spectra-pro"),value:""},...p,{label:(0,i.__)("Custom Field","spectra-pro"),value:"custom"}];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(n.SelectControl,{label:(0,i.__)("Custom Field","spectra-pro"),value:e.source.authorField||"",options:m?[{label:(0,i.__)("Loading…","spectra-pro"),value:""}]:g,onChange:e=>t("source.authorField",e),disabled:m}),"custom"===e.source.authorField&&(0,u.jsx)(n.TextControl,{label:(0,i.__)("Custom Meta Key","spectra-pro"),value:e.source.authorMetaKey||"",onChange:e=>t("source.authorMetaKey",e)})]})}},5501:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(3662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.A)(e,t)}},5573:e=>{e.exports=window.wp.primitives},5795:e=>{e.exports=window.ReactDOM},5815:(e,t,r)=>{r.d(t,{A:()=>v});var n=r(5047),o=r(390),a=r(9735),s=r(4534),i=r(483),l=r(9503),c=r(3716),u=function(e,t,r){for(var n=0,a=0;n=a,a=(0,o.se)(),38===n&&12===a&&(t[r]=1),!(0,o.Sh)(a);)(0,o.K2)();return(0,o.di)(e,o.G1)},p=new WeakMap,d=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||p.get(r))&&!n){p.set(e,!0);for(var s=[],i=function(e,t){return(0,o.VF)(function(e,t){var r=-1,n=44;do{switch((0,o.Sh)(n)){case 0:38===n&&12===(0,o.se)()&&(t[r]=1),e[r]+=u(o.G1-1,t,r);break;case 2:e[r]+=(0,o.Tb)(n);break;case 4:if(44===n){e[++r]=58===(0,o.se)()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=(0,a.HT)(n)}}while(n=(0,o.K2)());return e}((0,o.c4)(e),t))}(t,s),l=r.props,c=0,d=0;c<i.length;c++)for(var m=0;m<l.length;m++,d++)e.props[d]=s[c]?i[c].replace(/&\f/g,l[m]):l[m]+" "+i[c]}}},m=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function f(e,t){switch((0,a.tW)(e,t)){case 5103:return s.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return s.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return s.j+e+s.vd+e+s.MS+e+e;case 6828:case 4268:return s.j+e+s.MS+e+e;case 6165:return s.j+e+s.MS+"flex-"+e+e;case 5187:return s.j+e+(0,a.HC)(e,/(\w+).+(:[^]+)/,s.j+"box-$1$2"+s.MS+"flex-$1$2")+e;case 5443:return s.j+e+s.MS+"flex-item-"+(0,a.HC)(e,/flex-|-self/,"")+e;case 4675:return s.j+e+s.MS+"flex-line-pack"+(0,a.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return s.j+e+s.MS+(0,a.HC)(e,"shrink","negative")+e;case 5292:return s.j+e+s.MS+(0,a.HC)(e,"basis","preferred-size")+e;case 6060:return s.j+"box-"+(0,a.HC)(e,"-grow","")+s.j+e+s.MS+(0,a.HC)(e,"grow","positive")+e;case 4554:return s.j+(0,a.HC)(e,/([^-])(transform)/g,"$1"+s.j+"$2")+e;case 6187:return(0,a.HC)((0,a.HC)((0,a.HC)(e,/(zoom-|grab)/,s.j+"$1"),/(image-set)/,s.j+"$1"),e,"")+e;case 5495:case 3959:return(0,a.HC)(e,/(image-set\([^]*)/,s.j+"$1$`$1");case 4968:return(0,a.HC)((0,a.HC)(e,/(.+:)(flex-)?(.*)/,s.j+"box-pack:$3"+s.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,a.HC)(e,/(.+)-inline(.+)/,s.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,a.b2)(e)-1-t>6)switch((0,a.wN)(e,t+1)){case 109:if(45!==(0,a.wN)(e,t+4))break;case 102:return(0,a.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+s.j+"$2-$3$1"+s.vd+(108==(0,a.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,a.K5)(e,"stretch")?f((0,a.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,a.wN)(e,t+1))break;case 6444:switch((0,a.wN)(e,(0,a.b2)(e)-3-(~(0,a.K5)(e,"!important")&&10))){case 107:return(0,a.HC)(e,":",":"+s.j)+e;case 101:return(0,a.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+s.j+(45===(0,a.wN)(e,14)?"inline-":"")+"box$3$1"+s.j+"$2$3$1"+s.MS+"$2box$3")+e}break;case 5936:switch((0,a.wN)(e,t+11)){case 114:return s.j+e+s.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return s.j+e+s.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return s.j+e+s.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return s.j+e+s.MS+e+e}return e}var h=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case s.LU:e.return=f(e.value,e.length);break;case s.Sv:return(0,i.l)([(0,o.C)(e,{value:(0,a.HC)(e.value,"@","@"+s.j)})],n);case s.XZ:if(e.length)return(0,a.kg)(e.props,(function(t){switch((0,a.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,i.l)([(0,o.C)(e,{props:[(0,a.HC)(t,/:(read-\w+)/,":"+s.vd+"$1")]})],n);case"::placeholder":return(0,i.l)([(0,o.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,":"+s.j+"input-$1")]}),(0,o.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,":"+s.vd+"$1")]}),(0,o.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,s.MS+"input-$1")]})],n)}return""}))}}],v=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,a,s=e.stylisPlugins||h,u={},p=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)u[t[r]]=!0;p.push(e)}));var f,v=[d,m],g=[i.A,(0,l.MY)((function(e){f.insert(e)}))],b=(0,l.r1)(v.concat(s,g));a=function(e,t,r,n){var o;f=r,o=e?e+"{"+t.styles+"}":t.styles,(0,i.l)((0,c.wE)(o),b),n&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new n.v({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:a};return y.sheet.hydrate(p),y}},5893:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(9491),o=r(3101),a=r(5370),s=r(3838),i=r(790);const l=(0,n.createHigherOrderComponent)((e=>t=>{if(!(0,a.Ir)(t))return(0,i.jsx)(e,{...t});const{clientId:r,name:n,attributes:l}=t,{spectraProEnableDynamicImage:c,spectraProDynamicImage:u}=l,p=s.BY?.[n];if(!p)return(0,i.jsx)(e,{...t});const d=p.contentAttr;return c&&u?(0,i.jsx)(o.A,{clientId:r,blockName:n,attributes:l,contentAttr:d,props:t,BlockEdit:e}):(0,i.jsx)(e,{...t})}),"withDynamicImage")},6087:e=>{e.exports=window.wp.element},6104:(e,t,r)=>{r.d(t,{A:()=>l});const n=window.wp.apiFetch;var o=r.n(n);const a=window._SPECTRA_PRO_BLOCK_EDITOR_DATA_;o().use(o().createNonceMiddleware(a.nonce)),o().use(o().createRootURLMiddleware(a.rootApiUrl));const s=o();var i=r(9162);const l=class{uri;constructor(e){this.uri=`${e}/`}async list(e){return s({path:e?`${this.uri}?${(0,i.yC)(e)}`:this.uri,method:"get"}).then((e=>e))}}},6227:(e,t,r)=>{r.d(t,{A:()=>p});
2var n=r(6427),o=r(7143),a=r(1275),s=r(6087),i=r(7723),l=r(6104),c=r(5318),u=r(790);const p=({settings:e,updateSetting:t,type:r="text"})=>{const[p,d]=(0,s.useState)([]),[m,f]=(0,s.useState)(!0),h=new l.A(c.A.userCustomFields),v=(0,o.useSelect)((e=>e(a.store).getCurrentPostId()),[]);(0,s.useEffect)((()=>{(async()=>{const e=v;if(!e)return d([]),void f(!1);f(!0);try{const t=await h.list({post_id:e,type:r}),n=Object.entries(t?.data||{}).map((([,e])=>e&&"object"==typeof e&&"label"in e&&"value"in e?{label:e.label,value:e.value}:null)).filter(Boolean);d(n)}catch(e){d([])}finally{f(!1)}})()}),[]);const g=[{label:(0,i.__)("Choose","spectra-pro"),value:""},...p,{label:(0,i.__)("Custom Input","spectra-pro"),value:"custom"}];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(n.SelectControl,{label:(0,i.__)("Custom Field","spectra-pro"),value:e.linkSourceAuthorCustomField||"",options:m?[{label:(0,i.__)("Loading…","spectra-pro"),value:""}]:g,onChange:e=>t("linkSourceAuthorCustomField",e),disabled:m}),"custom"===e.linkSourceAuthorCustomField&&(0,u.jsx)(n.TextControl,{label:(0,i.__)("Custom Meta Key","spectra-pro"),value:e.source?.linkSourceAuthorMetaKey||"",onChange:e=>t("linkSourceAuthorMetaKey",e)})]})}},6252:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(6427),o=r(8443),a=r(6087),s=r(7723),i=r(790);const l=({settings:e,updateSetting:t})=>{const r=[{label:(0,s.__)("Published","spectra-pro"),value:"published"},{label:(0,s.__)("Modified","spectra-pro"),value:"modified"}],l=(0,a.useMemo)((()=>(0,o.dateI18n)("F j, Y")),[]),c=(0,a.useMemo)((()=>(0,o.dateI18n)("Y-m-d")),[]),u=(0,a.useMemo)((()=>(0,o.dateI18n)("m/d/Y")),[]),p=(0,a.useMemo)((()=>(0,o.dateI18n)("d/m/Y")),[]),d=[{value:"",label:(0,s.__)("Default","spectra-pro")},{value:"F j, Y",label:l},{value:"Y-m-d",label:c},{value:"m/d/Y",label:u},{value:"d/m/Y",label:p},{value:"human_readable",label:(0,s.__)("Human Readable","spectra-pro")},{value:"custom",label:(0,s.__)("Custom","spectra-pro")}];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.SelectControl,{label:(0,s.__)("Date Type","spectra-pro"),value:e.source.dateType,options:r,onChange:e=>t("source.dateType",e)}),(0,i.jsx)(n.SelectControl,{label:(0,s.__)("Date Format","spectra-pro"),value:e.source.dateFormat,options:d,onChange:e=>t("source.dateFormat",e)}),"custom"===e.source.dateFormat&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.TextControl,{label:(0,s.__)("Custom Date Format","spectra-pro"),value:e.source.customDateFormat,onChange:e=>t("source.customDateFormat",e)}),(0,i.jsx)("p",{className:"components-base-control__help",dangerouslySetInnerHTML:{__html:(0,s.sprintf)(/* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */ /* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */
3(0,s.__)("Learn more about date formats %1$shere%2$s.","spectra-pro"),'<a target="_blank" href="https://wordpress.org/support/article/formatting-date-and-time/">',"</a>")}})]})]})}},6289:(e,t,r)=>{function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},6369:(e,t,r)=>{function n(e){if(Array.isArray(e))return e}r.d(t,{A:()=>n})},6409:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(6427),o=r(7723),a=r(790);const s=({settings:e,updateSetting:t})=>(0,a.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,o.__)("Replace Full Content","spectra-pro"),checked:e.replaceFullContent,onChange:e=>t("replaceFullContent",e)})},6427:e=>{e.exports=window.wp.components},6537:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(6087),o=r(7723),a=r(7143),s=r(6427),i=r(8168),l=r(1609),c=r(2866),u=r(2836),p=r(405),d=(r(5795),r(7003),(0,l.forwardRef)((function(e,t){var r=(0,p.u)(e),n=(0,u.u)(r);return l.createElement(c.S,(0,i.A)({ref:t},n))}))),m=r(8537),f=r(790);const h=({settings:e,updateSetting:t})=>{const[r,i]=(0,n.useState)(null),l=e.source.postType||"post",{initialOptions:c,isLoadingInitial:u}=(0,a.useSelect)((t=>{if("post_type"!==e.source.type)return{initialOptions:[],isLoadingInitial:!1};const r={per_page:5,orderby:"date",order:"desc",post_type:l},n=t("core").getEntityRecords("postType",l,r),a=t("core").hasFinishedResolution("getEntityRecords",["postType",l,r]);return{initialOptions:n?n.map((e=>({value:e.id.toString(),label:(0,m.decodeEntities)(e.title.rendered)||(0,o.__)("Untitled","spectra-pro")}))):[],isLoadingInitial:!a}}),[e.source.type,l]),p=(0,a.useSelect)((t=>{if("post_type"!==e.source.type||!e.source.postId)return null;const r=t("core").getEntityRecord("postType",l,e.source.postId);
3return r?{value:r.id.toString(),label:(0,m.decodeEntities)(r.title.rendered)||(0,o.__)("Untitled","spectra-pro")}:null}),[e.source.type,e.source.postId,l]);(0,n.useEffect)((()=>{p&&p.value===e.source.postId?.toString()?i(p):i(null)}),[p,l,e.source.postId]);const h=(0,a.useSelect)((e=>l?e("core").getPostType(l):null),[l]);if("post_type"!==e.source.type)return null;const v=h?.labels?.singular_name?(0,o.sprintf)(/* translators: %s: post type singular name */ /* translators: %s: post type singular name */
4(0,o.__)("Select %s","spectra-pro"),(0,m.decodeEntities)(h.labels.singular_name)):(0,o.__)("Select Post","spectra-pro");return(0,f.jsx)(s.BaseControl,{id:"spectra-pro-dynamic-content-post-selector",label:v,children:(0,f.jsx)(d,{cacheOptions:!0,loadOptions:(e,t)=>{const r=e.trim()?{search:e,per_page:10,post_type:l}:{per_page:5,orderby:"date",order:"desc",post_type:l},n=wp.data.select("core").getEntityRecords("postType",l,r),a=wp.data.select("core").hasFinishedResolution("getEntityRecords",["postType",l,r]);n?t(n.map((e=>({value:e.id.toString(),label:(0,m.decodeEntities)(e.title.rendered)||(0,o.__)("Untitled","spectra-pro")})))):a||t([])},defaultOptions:c,value:r,onChange:e=>{i(e),t("source.postId",e?e.value:0)},placeholder:u?(0,o.__)("Loading…","spectra-pro"):(0,o.__)("Search for a post…","spectra-pro"),noOptionsMessage:()=>(0,o.__)("No posts found","spectra-pro"),loadingMessage:()=>(0,o.__)("Loading posts…","spectra-pro"),isClearable:!0,isDisabled:u,styles:{control:(e,t)=>({...e,cursor:t.menuIsOpen?"default":"pointer",color:"currentcolor",fontFamily:"inherit",border:"1px solid var(--wp-components-color-gray-600, #949494)"}),clearIndicator:e=>({...e,":hover":{color:e.color,cursor:"pointer"}})}},l)})}},6542:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(6730),o=r(790);const a=e=>t=>{const{name:r}=t;if("core/image"!==r)return(0,o.jsx)(e,{...t});const{name:a,attributes:s,setAttributes:i}=t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e,{...t}),(0,o.jsx)(n.A,{blockName:a,attributes:s,setAttributes:i})]})}},6562:(e,t,r)=>{function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>n})},6635:(e,t,r)=>{function n(){return"undefined"!=typeof window}function o(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function i(e){return!!n()&&(e instanceof Node||e instanceof a(e).Node)}function l(e){return!!n()&&(e instanceof Element||e instanceof a(e).Element)}function c(e){return!!n()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!(!n()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function p(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=b(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(o(e))}function m(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function f(e){const t=v(),r=l(e)?b(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function h(e){let t=_(e);for(;c(t)&&!g(t);){if(f(t))return t;if(m(t))return null;t=_(t)}return null}function v(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(o(e))}function b(e){return a(e).getComputedStyle(e)}function y(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||s(e);return u(t)?t.host:t}function C(e){const t=_(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&p(t)?t:C(t)}function x(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=C(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),i=a(o);if(s){const e=A(i);
4return t.concat(i,i.visualViewport||[],p(o)?o:[],e&&r?x(e):[])}return t.concat(o,x(o,[],r))}function A(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}r.d(t,{$4:()=>_,CP:()=>y,L9:()=>b,Lv:()=>d,Tc:()=>v,Tf:()=>m,ZU:()=>p,_m:()=>A,ep:()=>s,eu:()=>g,gJ:()=>h,mq:()=>o,sQ:()=>f,sb:()=>c,v9:()=>x,vq:()=>l,zk:()=>a})},6730:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(4715),o=r(6427),a=r(7143),s=r(6087),i=r(7723),l=r(870),c=r(1568),u=r(790);const p=e=>{const{blockName:t,attributes:r,setAttributes:p}=e,[d,m]=(0,s.useState)(!1),f=(0,s.useRef)(null);(0,s.useEffect)((()=>{if(!d)return;const e=e=>{const t=f.current?.contains(e.target),r=e.target?.closest('[aria-label="Dynamic Content"]');t||r||m(!1)};return setTimeout((()=>{document.addEventListener("click",e,!0)}),100),()=>{document.removeEventListener("click",e,!0)}}),[d]);const h=(0,a.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]);if(!h||"core/image"!==h.name)return null;const{spectraProEnableDynamicImage:v,spectraProEnableDynamicLink:g}=r,b=v||g,y=Object.assign((()=>m(!1)),{reopen:()=>m(!0)});return(0,u.jsxs)(n.BlockControls,{children:[(0,u.jsx)(o.ToolbarGroup,{children:(0,u.jsx)(o.ToolbarButton,{icon:c.A.dynamic_content,label:(0,i.__)("Dynamic Content","spectra-pro"),onClick:()=>m(!d),isActive:b})}),d&&(0,u.jsx)(o.Popover,{focusOnMount:!1,className:"spectra-pro-dynamic-image-popover",onClickOutside:()=>{},onFocusOutside:()=>{},position:"bottom left",noArrow:!1,children:(0,u.jsx)(l.A,{blockName:t,attributes:r,setAttributes:p,onClose:y,popoverRef:f})})]})}},6822:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(2284),o=r(9417);function a(e,t){if(t&&("object"==(0,n.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},6897:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(5573),o=r(790);const a=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})})},6986:(e,t,r)=>{function n(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,s,i=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return i}}r.d(t,{A:()=>n})},7003:(e,t,r)=>{r.d(t,{A:()=>n});var n=r(1609).useLayoutEffect},7143:e=>{e.exports=window.wp.data},7187:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(6427),o=r(7143),a=r(1275),s=r(6087),i=r(7723),l=r(6104),c=r(5318),u=r(790);const p=({settings:e,updateSetting:t,type:r="text"})=>{const p=e.source?.postCustomField||"",[d,m]=(0,s.useState)(!0),[f,h]=(0,s.useState)((()=>{const e=[{label:(0,i.__)("Choose","spectra-pro"),value:""},{label:(0,i.__)("Custom Input","spectra-pro"),value:"custom"}];return p&&"custom"!==p&&""!==p&&e.splice(1,0,{label:p,value:p}),e})),v=(0,o.useSelect)((e=>e(a.store).getCurrentPostId()),[]),g=new l.A(c.A.postCustomFields);return(0,s.useEffect)((()=>{v?(async()=>{m(!0);try{const e=await g.list({post_id:v,type:r}),t=Object.entries(e?.data||{}).map((([,e])=>e&&"object"==typeof e&&"label"in e&&"value"in e?{label:e.label,value:e.value}:null)).filter(Boolean),n=[{label:(0,i.__)("Choose","spectra-pro"),value:""},...t,{label:(0,i.__)("Custom Input","spectra-pro"),value:"custom"}];h(n)}catch(e){const t=[{label:(0,i.__)("Choose","spectra-pro"),value:""},{label:(0,i.__)("Custom Input","spectra-pro"),value:"custom"}];p&&"custom"!==p&&""!==p&&t.splice(1,0,{label:p,value:p}),h(t)}finally{m(!1)}})():m(!1)}),[v,p]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(n.SelectControl,{label:(0,i.__)("Custom Field","spectra-pro"),value:p,options:d?[{label:(0,i.__)("Loading…","spectra-pro"),value:""},...p&&""!==p?[{label:p,value:p}]:[]]:f,onChange:e=>t("source.postCustomField",e)}),"custom"===p&&!d&&(0,u.jsx)(n.TextControl,{label:(0,i.__)("Custom Meta Key","spectra-pro"),value:e.source?.postMetaKey||"",onChange:e=>t("source.postMetaKey",e)})]})}},7193:(e,t,r)=>{r.d(t,{B1:()=>l,Jx:()=>i,LI:()=>a,RI:()=>s,T9:()=>o,jk:()=>n});const n=Math.min,o=Math.max,a=Math.round,s=Math.floor,i=e=>({x:e,y:e});function l(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}},7437:(e,t,r)=>{r.d(t,{AH:()=>c,Y:()=>l,i7:()=>u});var n,o,a=r(4684),s=r(1609),i=(r(1287),r(3917)),l=(r(5815),r(4146),function(e,t){var r=arguments;if(null==t||!a.h.call(t,"css"))return s.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=a.E,o[1]=(0,a.c)(e,t);for(var i=2;i<n;i++)o[i]=r[i];return s.createElement.apply(null,o)});function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.J)(t)}function u(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}n=l||(l={}),o||(o=n.JSX||(n.JSX={}))},7528:(e,t,r)=>{function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{A:()=>n})},7723:e=>{e.exports=window.wp.i18n},7800:(e,t,r)=>{r.d(t,{A:()=>
4o});var n=r(3145);function o(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}},7994:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(4715),o=r(6427),a=r(7143),s=r(6087),i=r(7723),l=r(876),c=r(8206),u=r(5370),p=r(1568),d=r(790);const m=({isActive:e,contentRef:t,value:r,onChange:m})=>{const[f,h]=(0,s.useState)(!1),[v,g]=(0,s.useState)(null),[b,y]=(0,s.useState)(!1),_=(0,l.useAnchor)({ref:t,value:r}),C=(0,a.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]);return(0,s.useEffect)((()=>{if(e){const e=Date.now();!b&&(!v||e-v>300)&&h(!0)}else h(!1),g(null);y(e)}),[e]),(0,u.Ww)(C)?(0,d.jsxs)(n.BlockControls,{children:[(0,d.jsx)(o.ToolbarGroup,{children:(0,d.jsx)(o.ToolbarButton,{icon:b?p.A.dynamic_content(!1):p.A.dynamic_content(),label:(0,i.__)("Dynamic Content","spectra-pro"),onClick:()=>{const e=!f;h(e),e&&g(null)},isActive:e})}),f&&(0,d.jsx)(n.URLPopover,{anchor:_,focusOnMount:!1,className:"spectra-pro-dynamic-content-popover",children:(0,d.jsx)(c.A,{value:r,onChange:m,onClose:(e=!1)=>{h(!1),e&&g(Date.now())}})})]}):null}},8140:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(5370);const o=(e,t)=>{let r={...e.attributes};return(0,n.Ir)({name:t})&&(r={...r,spectraProEnableDynamicImage:{type:"boolean",default:!1},spectraProDynamicImage:{type:"object",default:null}}),(0,n.V5)({name:t})&&(r={...r,spectraProEnableDynamicLink:{type:"boolean",default:!1},spectraProDynamicLink:{type:"object",default:null}}),{...e,attributes:r}}},8168:(e,t,r)=>{function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},8206:(e,t,r)=>{r.d(t,{A:()=>g});var n=r(6427),o=r(7723),a=r(6087),s=r(876),i=r(676),l=r(9657),c=r(5386),u=r(3350),p=r(3838),d=r(5370),m=r(6409),f=r(9138),h=r(3221),v=r(790);const g=({value:e,onChange:t,onClose:r,context:g={}})=>{const{settings:b,updateSetting:y,updateAdvancedSetting:_,resetSettings:C}=(0,i.W)(),[x,A]=(0,a.useState)(null),[S,w]=(0,a.useState)(!1),[k,M]=(0,a.useState)(!1),{start:O}=e,E=(0,s.getActiveFormat)(e,p.Dg),I=!!E;(0,a.useEffect)((()=>{if(I)try{const e=JSON.parse(E?.attributes[p.K5]||"{}");Object.entries(e).forEach((([e,t])=>{"advanced"===e?Object.entries(t).forEach((([e,t])=>{_(e,t)})):"source"===e?Object.entries(t).forEach((([e,t])=>{y(`source.${e}`,t)})):y(e,t)}))}catch(e){}else C()}),[I,E,y,_]);const F=()=>{const{source:e}=b;if(!e.type||!e.field)return!1;switch(e.type){case"post_type":return!!e.postId;case"current_user":return"custom_field"!==e.field||!(!e.userMetaKey||"custom"===e.userMetaKey&&!e.user_custom_meta_key);case"archive":return"archive_meta"!==e.field||!!e.archiveMetaKey;case"request_parameter":return!!e.requestParamKey;default:return!0}};return(0,v.jsxs)(n.__experimentalVStack,{children:[x&&(0,v.jsx)(n.Notice,{status:"error",isDismissible:!0,onDismiss:()=>A(null),children:x}),(0,v.jsx)(l.A,{settings:b,updateSetting:y}),(0,v.jsx)(c.A,{settings:b,updateSetting:y}),(0,v.jsx)(m.A,{settings:b,updateSetting:y}),(0,v.jsx)(u.A,{settings:b,updateSetting:y}),(0,v.jsx)(f.A,{settings:b,updateAdvancedSetting:_,settingsOpen:k,setSettingsOpen:M}),(0,v.jsx)(h.A,{hasExistingDynamicContent:I,isLoading:S,onRemove:()=>{if(I){const n=(0,s.removeFormat)(e,p.Dg);t(n),C(),r()}},onApply:async()=>{if(F){w(!0);try{const n={source:{type:b.source.type,field:b.source.field}},o=(e,t,r)=>{void 0!==r&&""!==r&&(e[t]=r)},a={post_type:()=>{o(n.source,"postId",b.source.postId),o(n.source,"postType",b.source.postType)},current_user:()=>{"custom_input"===b.source.field&&o(n.source,"userMetaKey",b.source.userMetaKey)},request_parameter:()=>o(n.source,"requestParamKey",b.source.requestParamKey),archive:()=>{"archive_meta"===b.source.field&&o(n.source,"archiveMetaKey",b.source.archiveMetaKey)}},i={featured_image:()=>o(n.source,"featuredImageField",b.source.featuredImageField),custom_field:()=>{o(n.source,"postCustomField",b.source.postCustomField),"custom"===b.source.postCustomField&&o(n.source,"postMetaKey",b.source.postMetaKey)},author_info:()=>{o(n.source,"authorField",b.source.authorField),"custom"===b.source.authorField&&o(n.source,"authorMetaKey",b.source.authorMetaKey)},post_date:()=>{o(n.source,"dateType",b.source.dateType),o(n.source,"dateFormat",b.source.dateFormat),"custom"===b.source.dateFormat&&o(n.source,"customDateFormat",b.source.customDateFormat)},post_time:()=>{o(n.source,"timeType",b.source.timeType),o(n.source,"timeFormat",b.source.timeFormat),"custom"===b.source.timeFormat&&o(n.source,"customTimeFormat",b.source.customTimeFormat)},post_terms:()=>{o(n.source,"taxonomyType",b.source.taxonomyType),o(n.source,"taxonomyValueSeparator",b.source.taxonomyValueSeparator)},comments_number:()=>{o(n.source,"noComments",b.source.noComments),o(n.source,"oneComment",b.source.oneComment),o(n.source,"manyComments",b.source.manyComments)}};a[b.source.type]?.(),i[b.source.field]?.(),b.enableLink&&b.linkSource&&(n.enableLink=!0,n.linkSource=b.linkSource,"custom_field"===b.linkSource?(o(n,"linkSourcePostCustomField",b.linkSourcePostCustomField),"custom"===b.linkSourcePostCustomField&&o(n,"linkSourcePostCustomMetaKey",b.linkSourcePostCustomMetaKey
4)):"author_info"===b.linkSource&&(o(n,"linkSourceAuthorCustomField",b.linkSourceAuthorCustomField),"custom"===b.linkSourceAuthorCustomField&&o(n,"linkSourceAuthorMetaKey",b.linkSourceAuthorMetaKey)));const l=["before","after","charLength","fallback"],c=Object.fromEntries(l.filter((e=>b.advanced?.[e])).map((e=>[e,b.advanced[e]])));Object.keys(c).length&&(n.advanced=c);const u={type:p.Dg,attributes:{[p.K5]:JSON.stringify(n)}};"current_post"===b.source.type&&g?.postType&&g?.postId&&(y("source.postId",g.postId),y("source.postType",g.postType));const m=await(0,d.pc)(b);let f;if(b.replaceFullContent){const t=(0,s.create)({text:m});f=(0,s.replace)(e,e.text,t.text),f=(0,s.applyFormat)(f,u,0,f.text.length),f=(0,s.insert)(f,"​",f.text.length),f.start=f.text.length,f.end=f.text.length}else if(I){const t=E?.attributes?.[p.K5];let r=e.start,n=e.end;if(e.formats&&e.formats[e.start]){for(;r>0;){const n=e.formats[r-1];if(!n)break;if(!n.some((e=>e.type===p.Dg&&e.attributes?.[p.K5]===t)))break;r--}for(;n<e.text.length;){const r=e.formats[n];if(!r)break;if(!r.some((e=>e.type===p.Dg&&e.attributes?.[p.K5]===t)))break;n++}}if(f=(0,s.create)({html:e.text.substring(0,r)+m+e.text.substring(n)}),e.formats){f.formats=[];for(let t=0;t<f.text.length;t++)if(t<r)f.formats[t]=e.formats[t]||[];else if(t>=r+m.length){const o=t-m.length+(n-r);f.formats[t]=e.formats[o]||[]}}f=(0,s.applyFormat)(f,u,r,r+m.length)}else{const t=(0,s.create)({text:m});f=(0,s.insert)(e,t,O);const r=t.text.length;f=(0,s.applyFormat)(f,u,O,O+r),f=(0,s.insert)(f,"​",O+r),f.start=O+r+1,f.end=O+r+1}t(f),r(!0),C()}catch(e){A((0,o.__)("Failed to apply dynamic content.","spectra-pro"))}finally{w(!1)}}}})]})}},8443:e=>{e.exports=window.wp.date},8491:(e,t,r)=>{r.d(t,{ll:()=>p});var n=r(7193),o=r(6635);function a(e){return(0,o.vq)(e)?e:e.contextElement}function s(e){const t=a(e);if(!(0,o.sb)(t))return(0,n.Jx)(1);const r=t.getBoundingClientRect(),{width:s,height:i,$:l}=function(e){const t=(0,o.L9)(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=(0,o.sb)(e),i=s?e.offsetWidth:r,l=s?e.offsetHeight:a,c=(0,n.LI)(r)!==i||(0,n.LI)(a)!==l;return c&&(r=i,a=l),{width:r,height:a,$:c}}(t);let c=(l?(0,n.LI)(r.width):r.width)/s,u=(l?(0,n.LI)(r.height):r.height)/i;return c&&Number.isFinite(c)||(c=1),u&&Number.isFinite(u)||(u=1),{x:c,y:u}}const i=(0,n.Jx)(0);function l(e){const t=(0,o.zk)(e);return(0,o.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:i}function c(e,t,r,i){void 0===t&&(t=!1),void 0===r&&(r=!1);const c=e.getBoundingClientRect(),u=a(e);let p=(0,n.Jx)(1);t&&(i?(0,o.vq)(i)&&(p=s(i)):p=s(e));const d=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==(0,o.zk)(e))&&t}(u,r,i)?l(u):(0,n.Jx)(0);let m=(c.left+d.x)/p.x,f=(c.top+d.y)/p.y,h=c.width/p.x,v=c.height/p.y;if(u){const e=(0,o.zk)(u),t=i&&(0,o.vq)(i)?(0,o.zk)(i):i;let r=e,n=(0,o._m)(r);for(;n&&i&&t!==r;){const e=s(n),t=n.getBoundingClientRect(),a=(0,o.L9)(n),i=t.left+(n.clientLeft+parseFloat(a.paddingLeft))*e.x,l=t.top+(n.clientTop+parseFloat(a.paddingTop))*e.y;m*=e.x,f*=e.y,h*=e.x,v*=e.y,m+=i,f+=l,r=(0,o.zk)(n),n=(0,o._m)(r)}}return(0,n.B1)({width:h,height:v,x:m,y:f})}function u(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function p(e,t,r,s){void 0===s&&(s={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:p="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:m=!1}=s,f=a(e),h=i||l?[...f?(0,o.v9)(f):[],...(0,o.v9)(t)]:[];h.forEach((e=>{i&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)}));const v=f&&d?function(e,t){let r,a=null;const s=(0,o.ep)(e);function i(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}return function o(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),i();const p=e.getBoundingClientRect(),{left:d,top:m,width:f,height:h}=p;if(l||t(),!f||!h)return;const v={rootMargin:-(0,n.RI)(m)+"px "+-(0,n.RI)(s.clientWidth-(d+f))+"px "+-(0,n.RI)(s.clientHeight-(m+h))+"px "+-(0,n.RI)(d)+"px",threshold:(0,n.T9)(0,(0,n.jk)(1,c))||1};let g=!0;function b(t){const n=t[0].intersectionRatio;if(n!==c){if(!g)return o();n?o(!1,n):r=setTimeout((()=>{o(!1,1e-7)}),1e3)}1!==n||u(p,e.getBoundingClientRect())||o(),g=!1}try{a=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch(e){a=new IntersectionObserver(b,v)}a.observe(e)}(!0),i}(f,r):null;let g,b=-1,y=null;p&&(y=new ResizeObserver((e=>{let[n]=e;n&&n.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),r()})),f&&!m&&y.observe(f),y.observe(t));let _=m?c(e):null;return m&&function t(){const n=c(e);_&&!u(_,n)&&r(),_=n,g=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach((e=>{i&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)})),null==v||v(),null==(e=y)||e.disconnect(),y=null,m&&cancelAnimationFrame(g)}}o.ep,o.vq},8537:e=>{e.exports=window.wp.htmlEntities},8565:(e,t,r)=>{r.d(t,{A:()=>i});
4var n=r(7723),o=r(7143),a=r(2577),s=r(790);const i=({settings:e,updateSetting:t})=>{const r=(0,o.useSelect)((e=>{const t=e("core").getPostTypes({per_page:-1});return t?t.filter((e=>e.viewable&&!["attachment","wp_block","wp_template","wp_template_part","wp_navigation"].includes(e.slug))).map((e=>({value:e.slug,label:e.labels.singular_name||e.name}))):[]}),[]);if("post_type"!==e.source.type)return null;const i=e.source.postType||"post";return(0,s.jsx)(a.A,{label:(0,n.__)("Post Type","spectra-pro"),value:i,options:r,onChange:e=>{t("source.postType",e),t("source.postId",0)}})}},8587:(e,t,r)=>{function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},8613:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(9491),o=r(7143),a=r(413),s=r(3838),i=r(5370),l=r(790);const c=(0,n.createHigherOrderComponent)((e=>t=>{if(!(0,i.Ww)(t))return(0,l.jsx)(e,{...t});const{clientId:r,name:n,attributes:c}=t,u=s.PM?.[n];if(!u)return(0,l.jsx)(e,{...t});const p=u.contentAttr,d=c?.[p],m=(0,o.useSelect)((e=>{const t=e("core/block-editor").getBlock(r);return t?.attributes[p]||d}),[r,p]);return m&&m.includes(s.K5)?(0,l.jsx)(a.A,{clientId:r,attributes:c,contentAttr:p,currentValue:m,props:t,BlockEdit:e}):(0,l.jsx)(e,{...t})}),"withDynamicContent")},8798:(e,t,r)=>{r.d(t,{A:()=>M});var n={};r.r(n),r.d(n,{exclude:()=>k,extract:()=>_,parse:()=>C,parseUrl:()=>A,pick:()=>w,stringify:()=>x,stringifyUrl:()=>S});const o="%[a-f0-9]{2}",a=new RegExp("("+o+")|([^%]+?)","gi"),s=new RegExp("("+o+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function l(e){try{return decodeURIComponent(e)}catch{let t=e.match(a)||[];for(let r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(a)||[];return e}}function c(e,t){const r={};if(Array.isArray(t))for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(const n of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,n);o.enumerable&&t(n,e[n],e)&&Object.defineProperty(r,n,o)}return r}function u(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const r=e.indexOf(t);return-1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}const p=e=>null==e,d=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),m=Symbol("encodeFragmentIdentifier");function f(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?d(e):encodeURIComponent(e):e}function v(e,t){return t.decode?function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=s.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const e=l(r[0]);e!==r[0]&&(t[r[0]]=e)}r=s.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const r of n)e=e.replace(new RegExp(r,"g"),t[r]);return e}(e)}}(e):e}function g(e){return Array.isArray(e)?e.sort():"object"==typeof e?g(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function b(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e,t,r){return"string"===r&&"string"==typeof e?e:"function"==typeof r&&"string"==typeof e?r(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==r||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function _(e){const t=(e=b(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function C(e,t){f((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!o&&v(r,e).includes(e.arrayFormatSeparator);r=a?v(r,e):r;const s=o||a?r.split(e.arrayFormatSeparator).map((t=>v(t,e))):null===r?r:v(r,e);n[t]=s};case"bracket-separator":return(t,r,n)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(n[t]=r?v(r,e):r);const a=null===r?[]:v(r,e).split(e.arrayFormatSeparator);void 0!==n[t]?n[t]=[...n[t],...a]:n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[a,s]=u(e,"=");void 0===a&&(a=e),s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:v(s,t),r(v(a,t),s,n)}for(const[e,r]of Object.entries(n))if("object"==typeof r&&null!==r&&"string"!==t.types[e])for(const[n,o]of Object.entries(r)){const a=t.types[e]?t.types[e].replace("[]",""):void 0;r[n]=y(o,t,a)}else"object"==typeof r&&null!==r&&"string"===t.types[e]?n[e]=Object.values(r).join(t.arrayFormatSeparator):n[e]=y(r,t,t.types[e]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?g(r):r,e}
4),Object.create(null))}function x(e,t){if(!e)return"";f((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&p(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[h(t,e),"[",o,"]"].join("")]:[...r,[h(t,e),"[",h(o,e),"]=",h(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[h(t,e),"[]"].join("")]:[...r,[h(t,e),"[]=",h(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[h(t,e),":list="].join("")]:[...r,[h(t,e),":list=",h(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[h(r,e),t,h(o,e)].join("")]:[[n,h(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,h(t,e)]:[...r,[h(t,e),"=",h(n,e)].join("")]}}(t),o={};for(const[t,n]of Object.entries(e))r(t)||(o[t]=n);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const o=e[r];return void 0===o?"":null===o?h(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?h(r,t)+"[]":o.reduce(n(r),[]).join("&"):h(r,t)+"="+h(o,t)})).filter((e=>e.length>0)).join("&")}function A(e,t){t={decode:!0,...t};let[r,n]=u(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:C(_(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:v(n,t)}:{}}}function S(e,t){t={encode:!0,strict:!0,[m]:!0,...t};const r=b(e.url).split("?")[0]||"";let n=x({...C(_(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let o=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"==typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,o=t[m]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${o}`}function w(e,t,r){r={parseFragmentIdentifier:!0,[m]:!1,...r};const{url:n,query:o,fragmentIdentifier:a}=A(e,r);return S({url:n,query:c(o,t),fragmentIdentifier:a},r)}function k(e,t,r){return w(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}const M=n},9075:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(6427),o=r(6087),a=r(7723),s=r(6104),i=r(5318),l=r(790);const c=({settings:e,updateSetting:t})=>{const[r,c]=(0,o.useState)(!0),[u,p]=(0,o.useState)([{label:(0,a.__)("Loading…","spectra-pro"),value:""}]),d=new s.A(i.A.terms);return(0,o.useEffect)((()=>{(async()=>{c(!0);try{const e=await d.list(),t=Object.entries(e?.data||{}).map((([,e])=>e&&"object"==typeof e&&"label"in e&&"value"in e?{label:e.label,value:e.value}:null)).filter(Boolean);p(t)}catch(e){p([])}finally{c(!1)}})()}),[]),(0,o.useEffect)((()=>{t("source.taxonomyType",e.source?.taxonomyType||"category"),t("source.taxonomyValueSeparator",e.source?.taxonomyValueSeparator||",")}),[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.SelectControl,{label:(0,a.__)("Taxonomy","spectra-pro"),value:e.source?.taxonomyType||"",options:r?[{label:(0,a.__)("Loading…","spectra-pro"),value:""}]:u,onChange:e=>t("source.taxonomyType",e)}),e.source?.taxonomyType&&(0,l.jsx)(n.TextControl,{label:(0,a.__)("Separator","spectra-pro"),value:e.source?.taxonomyValueSeparator||"",onChange:e=>t("source.taxonomyValueSeparator",e),help:(0,a.__)("Separator between taxonomy terms","spectra-pro")})]})}},9138:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(6427),o=r(9491),a=r(1694),s=r(6897),i=r(7723),l=r(790);const c=({settings:e,updateAdvancedSetting:t,settingsOpen:r,setSettingsOpen:u})=>{const p=(0,o.useInstanceId)(c),d=`spectra-dynamic-content-advanced-settings-drawer-${p}`;return(0,l.jsxs)("div",{className:"spectra-pro-dynamic-content-advanced-settings",children:[(0,l.jsx)(n.Button,{__next40pxDefaultSize:!0,className:"spectra-pro-dynamic-content-advanced-settings__drawer-toggle","aria-expanded":r,onClick:()=>u(!r),icon:(0,i.isRTL)()?a.A:s.A,iconPosition:"left","aria-controls":d,children:(0,i.__)("Advanced","spectra-pro")}),(0,l.jsx)(l.Fragment,{children:r&&(0,l.jsx)("div",{className:"spectra-pro-dynamic-content-advanced-settings__drawer",id:d,children:(0,l.jsxs)(n.__experimentalVStack,{spacing:4,children:[(0,l.jsxs)(n.__experimentalHStack,{gap:2,align:"center",children:[(0,l.jsx)("label",{htmlFor:`before-${p}`,children:(0,i.__)("Before Text","spectra-pro")}),(0,l.jsx)(n.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,id:`before-${p}`,value:e.advanced.before,onChange:e=>t("before",e)})]}),(0,l.jsxs)(n.__experimentalHStack,{gap:2,align:"center",children:[(0,l.jsx)("label",{htmlFor:`after-${p}`,children:(0,i.__)("After Text","spectra-pro")}),(0,l.jsx)(n.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,id:`after-${p}`,value:e.advanced.after,onChange:e=>t("after",e)})]}),(0,l.jsxs)(n.__experimentalVStack,{align:"start",children:[(0,l.jsxs)(n.__experimentalHStack,{gap:2,align:"center",children:[(0,l.jsx)("label",{htmlFor:`fallback-${p}`,children:(0,i.__)("Fallback Text","spectra-pro")}),(0,l.jsx)(n.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,id:`fallback-${p}`,value:e.advanced.fallback,onChange:e=>t("fallback",e)})]}),(0,l.jsx)("p",{className:"components-base-control__help",children:(0,i.__)("Fallback text to display if the dynamic content is not found.","spectra-pro")})]}),(0,l.jsxs)(n.__experimentalHStack,{gap:2,align:"center",children:[(0,l.jsx)("label",{htmlFor:`char-limit-${p}`,children:(0,i.__)("Character Limit","spectra-pro")}),(0,l.jsx)(n.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,id:`char-limit-${p}`,type:"number",value:e.advanced.charLength,onChange:e=>t("charLength",e)})]})]})})})]})},u=c},9162:(e,t,r)=>{r.d(t,{Im:()=>i,yC:()=>o});var n=r(8798);const o=e=>a(e)?n.A.stringify(e,{arrayFormat:"comma"}):e,a=e=>"[object Object]"===(e=>Object.prototype.toString.call(e))(e),s=Array.isArray,i=e=>(e=>void 0===e)(e)||(e=>null===e)(e)||(e=>"string"==typeof e)(e)&&!e.length||s(e)&&!e.length||a(e)&&!Object.keys(e).length},9379:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(4467);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
4t%2?o(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},9394:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(4243),o=r(3893),a=r(7800),s=r(519);function i(e){return(0,n.A)(e)||(0,o.A)(e)||(0,a.A)(e)||(0,s.A)()}},9417:(e,t,r)=>{function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},9426:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(3954),o=r(2176),a=r(6822);function s(e){var t=(0,o.A)();return function(){var r,o=(0,n.A)(e);if(t){var s=(0,n.A)(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return(0,a.A)(this,r)}}},9491:e=>{e.exports=window.wp.compose},9503:(e,t,r)=>{r.d(t,{MY:()=>a,r1:()=>o});var n=r(9735);function o(e){var t=(0,n.FK)(e);return function(r,n,o,a){for(var s="",i=0;i<t;i++)s+=e[i](r,n,o,a)||"";return s}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},9657:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(6427),o=r(7723),a=r(3838),s=r(790);const i=({settings:e,updateSetting:t})=>(0,s.jsx)(n.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,o.__)("Data Source","spectra-pro"),value:e.source.type,options:a.YL,onChange:e=>{switch(t("source.type",e),e){case"post_type":case"current_post":t("source.field","post_title");break;case"request_parameter":t("source.field","GET");break;case"current_user":t("source.field","display_name");break;case"site":t("source.field","site_title");break;case"archive":t("source.field","archive_title");break;default:t("source.field","")}}})},9735:(e,t,r)=>{r.d(t,{BC:()=>h,Bq:()=>i,FK:()=>f,HC:()=>c,HT:()=>o,K5:()=>u,YW:()=>l,b2:()=>m,c1:()=>d,kg:()=>v,kp:()=>a,tW:()=>s,tn:()=>n,wN:()=>p});var n=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t){return 45^p(e,0)?(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3):0}function i(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function m(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}function v(e,t){return e.map(t).join("")}},9800:(e,t,r)=>{r.d(t,{A:()=>E,B:()=>V,C:()=>D,D:()=>T,E:()=>b,F:()=>Ie,G:()=>A,H:()=>y,I:()=>M,J:()=>v,K:()=>L,L:()=>x,M:()=>Y,a:()=>le,b:()=>J,d:()=>me,e:()=>ie,f:()=>ve,g:()=>he,h:()=>ce,i:()=>Q,j:()=>be,k:()=>Z,l:()=>pe,m:()=>K,n:()=>z,o:()=>G,p:()=>xe,q:()=>Ae,r:()=>H,s:()=>P,t:()=>Se,u:()=>W,v:()=>ke,w:()=>Me,x:()=>Oe,y:()=>X,z:()=>O});var n=r(9379),o=r(8168),a=r(7437),s=r(3453),i=r(45),l=r(2284),c=r(7528),u=r(4467),p=r(1609),d=r(5795),m=r(8491),f=r(7003),h=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],v=function(){};function g(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function b(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var a=[].concat(n);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&a.push("".concat(g(e,s)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var y=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.A)(e)&&null!==e?[e]:[];var t},_=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,i.A)(e,h);return(0,n.A)({},t)},C=function(e,t,r){var n=e.cx,o=e.getStyles,a=e.getClassNames,s=e.className;return{css:o(t,e),className:n(null!=r?r:{},a(t,e),s)}};function x(e,t,r){if(r){var n=r(e,t);if("string"==typeof n)return n}return e}function A(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function S(e){return A(e)?window.pageYOffset:e.scrollTop}function w(e,t){A(e)?window.scrollTo(0,t):e.scrollTop=t}function k(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,o=S(e),a=t-o,s=0;!function t(){var i,l=a*((i=(i=s+=10)/r-1)*i*i+1)+o;w(e,l),s<r?window.requestAnimationFrame(t):n(e)}()}function M(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?w(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o<r.top&&w(e,Math.max(t.offsetTop-o,0))}function O(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function E(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}
vendor: 16,747 bytes, line 4
4var I=!1,F={get passive(){return I=!0}},j="undefined"!=typeof window?window:{};j.addEventListener&&j.removeEventListener&&(j.addEventListener("p",v,F),j.removeEventListener("p",v,!1));var P=I;function L(e){return null!=e}function T(e,t,r){return e?t:r}function D(e){return e}function V(e){return e}var H=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.entries(e).filter((function(e){var t=(0,s.A)(e,1)[0];return!r.includes(t)})).reduce((function(e,t){var r=(0,s.A)(t,2),n=r[0],o=r[1];return e[n]=o,e}),{})},R=["children","innerProps"],N=["children","innerProps"];var B,U=function(e){return"auto"===e?"bottom":e},K=function(e,t){var r,o=e.placement,a=e.theme,s=a.borderRadius,i=a.spacing,l=a.colors;return(0,n.A)((r={label:"menu"},(0,u.A)(r,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,u.A)(r,"position","absolute"),(0,u.A)(r,"width","100%"),(0,u.A)(r,"zIndex",1),r),t?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},$=(0,p.createContext)(null),Y=function(e){var t=e.children,r=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,i=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,u=((0,p.useContext)($)||{}).setPortalPlacement,d=(0,p.useRef)(null),m=(0,p.useState)(o),h=(0,s.A)(m,2),v=h[0],g=h[1],b=(0,p.useState)(null),y=(0,s.A)(b,2),_=y[0],C=y[1],x=c.spacing.controlHeight;return(0,f.A)((function(){var e=d.current;if(e){var t="fixed"===i,n=function(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,o=e.placement,a=e.shouldScroll,s=e.isFixedPosition,i=e.controlHeight,l=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u,p=l.getBoundingClientRect().height,d=r.getBoundingClientRect(),m=d.bottom,f=d.height,h=d.top,v=r.offsetParent.getBoundingClientRect().top,g=s||A(u=l)?window.innerHeight:u.clientHeight,b=S(l),y=parseInt(getComputedStyle(r).marginBottom,10),_=parseInt(getComputedStyle(r).marginTop,10),C=v-_,x=g-h,M=C+b,O=p-b-h,E=m-g+b+y,I=b+h-_,F=160;switch(o){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:t};if(O>=f&&!s)return a&&k(l,E,F),{placement:"bottom",maxHeight:t};if(!s&&O>=n||s&&x>=n)return a&&k(l,E,F),{placement:"bottom",maxHeight:s?x-y:O-y};if("auto"===o||s){var j=t,P=s?C:M;return P>=n&&(j=Math.min(P-y-i,t)),{placement:"top",maxHeight:j}}if("bottom"===o)return a&&w(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(C>=f)return{placement:"top",maxHeight:t};if(M>=f&&!s)return a&&k(l,I,F),{placement:"top",maxHeight:t};if(!s&&M>=n||s&&C>=n){var L=t;return(!s&&M>=n||s&&C>=n)&&(L=s?C-_:M-_),a&&k(l,I,F),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:r,placement:a,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:x});g(n.maxHeight),C(n.placement),null==u||u(n.placement)}}),[o,a,i,l,r,u,x]),t({ref:d,placerProps:(0,n.A)((0,n.A)({},e),{},{placement:_||U(a),maxHeight:v})})},z=function(e,t){var r=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,n.A)({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},q=function(e,t){var r=e.theme,o=r.spacing.baseUnit,a=r.colors;return(0,n.A)({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},W=q,Z=q,G=function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},J=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},X=function(e,t){var r=e.theme.spacing,o=e.isMulti,a=e.hasValue,s=e.selectProps.controlShouldRenderValue;return(0,n.A)({alignItems:"center",display:o&&a&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(2*r.baseUnit,"px")})},Q=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ee=["size"],te=["innerProps","isRtl","size"],re={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ne=function(e){var t=e.size,r=(0,i.A)(e,ee);return(0,a.Y)("svg",(0,o.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:re},r))},oe=function(e){return(0,a.Y)(ne,(0,o.A)({size:20},e),(0,a.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ae=function(e){return(0,a.Y)(ne,(0,o.A)({size:20},e),(0,a.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},se=function(e,t){var r=e.isFocused,o=e.theme,a=o.spacing.baseUnit,s=o.colors;return(0,n.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?s.neutral60:s.neutral20,padding:2*a,":hover":{color:r?s.neutral80:s.neutral40}})},ie=se,le=se,ce=function(e,t){var r=e.isDisabled,o=e.theme,a=o.spacing.baseUnit,s=o.colors;return(0,n.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:2*a,marginTop:2*a})},ue=(0,a.i7)(B||(B=(0,c.A)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),pe=function(e,t){var r=e.isFocused,o=e.size,a=e.theme,s=a.colors,i=a.spacing.baseUnit;return(0,n.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?s.neutral60:s.neutral20,padding:2*i})},de=function(e){var t=e.delay,r=e.offset;return(0,a.Y)("span",{css:(0,a.AH)({animation:"".concat(ue," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},me=function(e,t){var r=e.isDisabled,o=e.isFocused,a=e.theme,s=a.colors,i=a.borderRadius,l=a.spacing;return(0,n.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:o?s.primary:s.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},fe=["data"],he=function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:2*r.baseUnit,paddingTop:2*r.baseUnit}},ve=function(e,t){var r=e.theme,o=r.colors,a=r.spacing;return(0,n.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},ge=["innerRef","isDisabled","isHidden","inputClassName"],be=function(e,t){var r=e.isDisabled,o=e.value,a=e.theme,s=a.spacing,i=a.colors;return(0,n.A)((0,n.A)({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},_e),t?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:i.neutral80})},ye={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,n.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ye)},Ce=function(e){return(0,n.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ye)},xe=function(e,t){var r=e.theme,o=r.spacing,a=r.borderRadius,s=r.colors;return(0,n.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},Ae=function(e,t){var r=e.theme,o=r.borderRadius,a=r.colors,s=e.cropWithEllipsis;return(0,n.A)({overflow:"hidden",textOverflow:s||void 0===s?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Se=function(e,t){var r=e.theme,o=r.spacing,a=r.borderRadius,s=r.colors,i=e.isFocused;return(0,n.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:i?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},we=function(e){var t=e.children,r=e.innerProps;return(0,a.Y)("div",r,t)},ke=function(e,t){var r=e.isDisabled,o=e.isFocused,a=e.isSelected,s=e.theme,i=s.spacing,l=s.colors;return(0,n.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},Me=function(e,t){var r=e.theme,o=r.spacing,a=r.colors;return(0,n.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Oe=function(e,t){var r=e.isDisabled,o=e.theme,a=o.spacing,s=o.colors;return(0,n.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?s.neutral40:s.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Ee={ClearIndicator:function(e){var t=e.children,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},C(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||(0,a.Y)(oe,null))},Control:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,s=e.innerRef,i=e.innerProps,l=e.menuIsOpen;return(0,a.Y)("div",(0,o.A)({ref:s},C(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":n,"control--menu-is-open":l}),i,{"aria-disabled":r||void 0}),t)},DropdownIndicator:function(e){var t=e.children,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},C(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||(0,a.Y)(ae,null))},DownChevron:ae,CrossIcon:oe,Group:function(e){var t=e.children,r=e.cx,n=e.getStyles,s=e.getClassNames,i=e.Heading,l=e.headingProps,c=e.innerProps,u=e.label,p=e.theme,d=e.selectProps;return(0,a.Y)("div",(0,o.A)({},C(e,"group",{group:!0}),c),(0,a.Y)(i,(0,o.A)({},l,{selectProps:d,theme:p,getStyles:n,getClassNames:s,cx:r}),u),(0,a.Y)("div",null,t))},GroupHeading:function(e){var t=_(e);t.data;var r=(0,i.A)(t,fe);return(0,a.Y)("div",(0,o.A)({},C(e,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(e){var t=e.children,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},C(e,"indicatorsContainer",{indicators:!0}),r),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,a.Y)("span",(0,o.A)({},t,C(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,r=e.value,n=_(e),s=n.innerRef,l=n.isDisabled,c=n.isHidden,u=n.inputClassName,p=(0,i.A)(n,ge);return(0,a.Y)("div",(0,o.A)({},C(e,"input",{"input-container":!0}),{"data-value":r||""}),(0,a.Y)("input",(0,o.A)({className:t({input:!0},u),ref:s,style:Ce(c),disabled:l},p)))},LoadingIndicator:function(e){var t=e.innerProps,r=e.isRtl,s=e.size,l=void 0===s?4:s,c=(0,i.A)(e,te);return(0,a.Y)("div",(0,o.A)({},C((0,n.A)((0,n.A)({},c),{},{innerProps:t,isRtl:r,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,a.Y)(de,{delay:0,offset:r}),(0,a.Y)(de,{delay:160,offset:!0}),(0,a.Y)(de,{delay:320,offset:!r}))},Menu:function(e){var t=e.children,r=e.innerRef,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},C(e,"menu",{menu:!0}),{ref:r},n),t)},MenuList:function(e){var t=e.children,r=e.innerProps,n=e.innerRef,s=e.isMulti;return(0,a.Y)("div",(0,o.A)({},C(e,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:n},r),t)},MenuPortal:function(e){var t=e.appendTo,r=e.children,i=e.controlElement,l=e.innerProps,c=e.menuPlacement,u=e.menuPosition,h=(0,p.useRef)(null),v=(0,p.useRef)(null),g=(0,p.useState)(U(c)),b=(0,s.A)(g,2),y=b[0],_=b[1],x=(0,p.useMemo)((function(){return{setPortalPlacement:_}}),[]),A=(0,p.useState)(null),S=(0,s.A)(A,2),w=S[0],k=S[1],M=(0,p.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===u?0:window.pageYOffset,r=e[y]+t;r===(null==w?void 0:w.offset)&&e.left===(null==w?void 0:w.rect.left)&&e.width===(null==w?void 0:w.rect.width)||k({offset:r,rect:e})}}),[i,u,y,null==w?void 0:w.offset,null==w?void 0:w.rect.left,null==w?void 0:w.rect.width]);(0,f.A)((function(){M()}),[M]);var O=(0,p.useCallback)((function(){"function"==typeof v.current&&(v.current(),v.current=null),i&&h.current&&(v.current=(0,m.ll)(i,h.current,M,{elementResize:"ResizeObserver"in window}))}),[i,M]);(0,f.A)((function(){O()}),[O]);var E=(0,p.useCallback)((function(e){h.current=e,O()}),[O]);if(!t&&"fixed"!==u||!w)return null;var I=(0,a.Y)("div",(0,o.A)({ref:E},C((0,n.A)((0,n.A)({},e),{},{offset:w.offset,position:u,rect:w.rect}),"menuPortal",{"menu-portal":!0}),l),r);return(0,a.Y)($.Provider,{value:x},t?(0,d.createPortal)(I,t):I)},LoadingMessage:function(e){var t=e.children,r=void 0===t?"Loading...":t,s=e.innerProps,l=(0,i.A)(e,N);return(0,a.Y)("div",(0,o.A)({},C((0,n.A)((0,n.A)({},l),{},{children:r,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),r)},NoOptionsMessage:function(e){var t=e.children,r=void 0===t?"No options":t,s=e.innerProps,l=(0,i.A)(e,R);return(0,a.Y)("div",(0,o.A)({},C((0,n.A)((0,n.A)({},l),{},{children:r,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),r)},MultiValue:function(e){var t=e.children,r=e.components,o=e.data,s=e.innerProps,i=e.isDisabled,l=e.removeProps,c=e.selectProps,u=r.Container,p=r.Label,d=r.Remove;return(0,a.Y)(u,{data:o,innerProps:(0,n.A)((0,n.A)({},C(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),s),selectProps:c},(0,a.Y)(p,{data:o,innerProps:(0,n.A)({},C(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),(0,a.Y)(d,{data:o,innerProps:(0,n.A)((0,n.A)({},C(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:c}))},MultiValueContainer:we,MultiValueLabel:we,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({role:"button"},r),t||(0,a.Y)(oe,{size:14}))},Option:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,s=e.isSelected,i=e.innerRef,l=e.innerProps;return(0,a.Y)("div",(0,o.A)({},C(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":n,"option--is-selected":s}),{ref:i,"aria-disabled":r},l),t)},Placeholder:function(e){var t=e.children,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},C(e,"placeholder",{placeholder:!0}),r),t)},SelectContainer:function(e){var t=e.children,r=e.innerProps,n=e.isDisabled,s=e.isRtl;return(0,a.Y)("div",(0,o.A)({},C(e,"container",{"--is-disabled":n,"--is-rtl":s}),r),t)},SingleValue:function(e){var t=e.children,r=e.isDisabled,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},C(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),n),t)},ValueContainer:function(e){var t=e.children,r=e.innerProps,n=e.isMulti,s=e.hasValue;return(0,a.Y)("div",(0,o.A)({},C(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":s}),r),t)}},Ie=function(e){return(0,n.A)((0,n.A)({},Ee),e.components)}},9855:(e,t,r)=>{r.d(t,{A:()=>v});var n=r(6427),o=r(7723),a=r(6087),s=r(676),i=r(2577),l=r(9162),c=r(7187),u=r(6227),p=r(9657),d=r(6537),m=r(350),f=r(5370),h=r(790);const v=e=>{const{type:t="text",attributes:{spectraProEnableDynamicLink:r,spectraProDynamicLink:v,href:g="",linkURL:b=""},setAttributes:y}=e,{settings:_,updateSetting:C}=(0,s.W)(),[x,A]=(0,a.useState)(null),[S,w]=(0,a.useState)(!1),[k,M]=(0,a.useState)(null);(0,a.useEffect)((()=>
4{if(r)return(0,l.Im)(v)?(C("source.type","current_post"),void C("linkField","post_permalink")):void(v.source&&Object.entries(v).forEach((([e,t])=>{"source"===e?Object.entries(t).forEach((([e,t])=>{C(`source.${e}`,t)})):C(e,t)})))}),[v,r]),(0,a.useEffect)((()=>{if(!(0,l.Im)(v)&&v.source)return;const e=_.linkField,t=(0,f.XL)(_.source.type);if(!t.some((t=>t.value===e))&&t.length>0){const e=t.find((e=>""!==e.value))||t[0];C("linkField",e.value)}}),[_.source.type]);const O=()=>{const{source:e}=_;if(!e.type)return!1;switch(e.type){case"post_type":return!!e.postId;case"current_post":default:return!0;case"current_user":return"custom_field"!==_.linkField||!(!e.userMetaKey||"custom"===e.userMetaKey&&!e.user_custom_meta_key);case"archive":return"archive_meta"!==_.linkField||!!e.archiveMetaKey;case"request_parameter":return!!e.requestParamKey;case"shortcode":return!!e.shortcodeContent}};return(0,h.jsxs)(h.Fragment,{children:[x&&(0,h.jsx)(n.Notice,{status:"error",isDismissible:!0,onDismiss:()=>A(null),children:x}),k&&(0,h.jsx)(n.Notice,{status:"success",isDismissible:!0,onDismiss:()=>M(null),children:k}),r&&(0,h.jsxs)(n.__experimentalVStack,{spacing:4,children:[(0,h.jsx)(p.A,{settings:_,updateSetting:C}),"post_type"===_.source.type&&(0,h.jsx)(d.A,{settings:_,updateSetting:C}),"request_parameter"===_.source.type&&(0,h.jsx)(n.TextControl,{label:(0,o.__)("Request Parameter Key","spectra-pro"),help:(0,o.__)('Enter the name of the URL parameter to extract (e.g., "category", "search_term")',"spectra-pro"),value:_.source.requestParamKey||"",onChange:e=>C("source.requestParamKey",e),placeholder:(0,o.__)("Parameter name","spectra-pro")}),"shortcode"===_.source.type&&(0,h.jsx)(n.TextControl,{label:(0,o.__)("Shortcode Content","spectra-pro"),help:(0,o.__)('Enter the shortcode that outputs a URL (e.g., "[my_url_shortcode]")',"spectra-pro"),value:_.source.shortcodeContent||"",onChange:e=>C("source.shortcodeContent",e),placeholder:(0,o.__)("[shortcode]","spectra-pro")}),(0,h.jsx)(i.A,{label:(0,o.__)("Link Field","spectra-pro"),value:_.linkField||"",options:(0,f.XL)(_.source.type),onChange:e=>C("linkField",e)}),"custom_field"===_.linkField&&("current_post"===_.source.type||"post_type"===_.source.type)&&(0,h.jsx)(c.A,{settings:_,updateSetting:C,type:"url"}),("author_archive"===_.linkField||"author_website"===_.linkField)&&"current_post"===_.source.type&&(0,h.jsx)(u.A,{settings:_,updateSetting:C,type:"url"}),"archive_meta"===_.linkField&&"archive"===_.source.type&&(0,h.jsx)(m.A,{settings:_,updateSetting:C,type:"url"})]}),(0,h.jsx)(n.__experimentalHStack,{justify:"end",children:(0,h.jsx)(n.Button,{variant:"primary",onClick:async()=>{if(O()){w(!0),A(null),M(null);try{const e={type:"link",source:{type:_.source.type},linkField:_.linkField||"post_permalink"},r=(e,t,r)=>{void 0!==r&&""!==r&&(e[t]=r)},n={post_type:()=>r(e.source,"postId",_.source.postId),current_user:()=>{"custom_field"===_.linkField&&r(e.source,"userMetaKey",_.source.userMetaKey)},request_parameter:()=>r(e.source,"requestParamKey",_.source.requestParamKey),shortcode:()=>r(e.source,"shortcodeContent",_.source.shortcodeContent),archive:()=>{"archive_meta"===_.linkField&&r(e.source,"archiveMetaKey",_.source.archiveMetaKey)}},a={custom_field:()=>{r(e.source,"postCustomField",_.source.postCustomField),"custom"===_.source.postCustomField&&r(e.source,"postMetaKey",_.source.postMetaKey)},author_archive:()=>{r(e.source,"authorField",_.source.authorField),"custom"===_.source.authorField&&r(e.source,"authorMetaKey",_.source.authorMetaKey)},author_website:()=>{r(e.source,"authorField",_.source.authorField),"custom"===_.source.authorField&&r(e.source,"authorMetaKey",_.source.authorMetaKey)}};n[_.source.type]?.(),a[_.linkField]?.(),y({spectraProDynamicLink:e}),g||"image"!==t||y({href:"spectra-dynamic-link"}),b||"text"!==t||y({linkURL:"spectra-dynamic-link"}),M((0,o.__)("Dynamic link updated successfully!","spectra-pro")),setTimeout((()=>{M(null)}),3e3)}catch(e){A((0,o.__)("Failed to apply dynamic link. Please try again.","spectra-pro"))}finally{w(!1)}}},isBusy:S,disabled:!O()||S,children:S?(0,l.Im)(v)?(0,o.__)("Applying…","spectra-pro"):(0,o.__)("Updating…","spectra-pro"):"image"===t?(0,l.Im)(v)?(0,o.__)("Add Link","spectra-pro"):(0,o.__)("Update Link","spectra-pro"):(0,l.Im)(v)?(0,o.__)("Apply","spectra-pro"):(0,o.__)("Update","spectra-pro")})})]})}},9922:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(2284),o=r(2327);function a(e){var t=(0,o.A)(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>
4{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};const n=window.wp.hooks;var o=r(876),a=r(2045),s=r(8613),i=r(5893),l=r(4914),c=r(8140),u=r(6542),p=r(1806);(0,o.registerFormatType)("spectra-pro/dynamic-content",a.A),(0,n.addFilter)("editor.BlockEdit","spectra-pro-v2/dynamic-content",s.A),(0,n.addFilter)("editor.BlockEdit","spectra-pro-v2/dynamic-content/image",i.A,9),(0,n.addFilter)("spectra.mediaPicker.extensions","spectra-pro-v2/dynamic-content/extend-media-picker",l.A),(0,n.addFilter)("spectra.linkControl.Extensions","spectra-pro-v2/dynamic-content/extend-link-control",p.A),(0,n.addFilter)("editor.BlockEdit","spectra/core-image-controls",u.A,10),(0,n.addFilter)("blocks.registerBlockType","spectra-pro-v2/dynamic-content/add-dc-image-attributes",c.A)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.