From 13d17e0e189835252bcc2db31282639c1d129042 Mon Sep 17 00:00:00 2001 From: anomiex Date: Wed, 11 Sep 2024 16:35:12 +0000 Subject: [PATCH] Update `@wordpress/eslint-plugin` (#39305) This brings two new rules that needed fixing: * `@wordpress/i18n-no-flanking-whitespace` complains about leading or trailing whitespace in JS i18n messages. Fix depends on context: * Sometimes it makes no difference, the browser (or React) strips it out. Removed these. * Sometimes it does, or it's unclear. In these cases I added it back outside the i18n call. * `@wordpress/i18n-hyphenated-range` wants en-dashes (or em-dashes) for numeric ranges. Switched them to en-dashes. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10815610467 Upstream-Ref: Automattic/jetpack@3a06084363c316d18d930761e841a3b715008025 --- .../automattic/jetpack-search/CHANGELOG.md | 3 + .../customberg/jp-search-configure.asset.php | 2 +- .../build/customberg/jp-search-configure.js | 2 +- .../dashboard/jp-search-dashboard.asset.php | 2 +- .../build/dashboard/jp-search-dashboard.js | 2 +- .../build/instant-search/jp-search.asset.php | 2 +- .../jp-search.chunk-main-payload.js | 2 +- .../build/instant-search/jp-search.js | 2 +- jetpack_vendor/i18n-map.php | 2 +- vendor/composer/installed.json | 60 +++++++++---------- vendor/composer/installed.php | 60 +++++++++---------- vendor/composer/jetpack_autoload_classmap.php | 44 +++++++------- 12 files changed, 93 insertions(+), 90 deletions(-) diff --git a/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md b/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md index 9a1864ae..124c5c25 100644 --- a/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md +++ b/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md @@ -12,6 +12,9 @@ This is an alpha version! The changes listed here are not final. ### Changed - Updated package dependencies. +### Fixed +- Move trailing spaces out of i18n messages. + ## [0.45.3] - 2024-09-10 ### Changed - Updated package dependencies. [#39302] diff --git a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php index f67c651c..565f8df7 100644 --- a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php +++ b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => 'dba0b4c095142f21957a'); + array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '8d15bb42b7ab72de8eb6'); diff --git a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js index b7a1c0a6..4ecedd69 100644 --- a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js +++ b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js @@ -17,7 +17,7 @@ i().createElement("input",{type:"button",value:__("clear","jetpack-search-pkg"), _n('Found %1$s result for "%2$s"','Found %1$s results for "%2$s"',e,"jetpack-search-pkg"),o,t);if(a){const t=(0,u.PM)().find((e=>"group_id"===e.filter_id)),r=t?.filter_id,n=this.props.staticFilters[r],a=t?.selected,i=t?.values?.[0],c=n||a||i?.value,l=t?.values?.find?.((e=>e.value===c));return l?.name?(0,s.sprintf)(/* translators: %1$s: number of results. - %2$s: site name. */ _n("Found %1$s result in %2$s","Found %1$s results in %2$s",e,"jetpack-search-pkg"),o,l?.name):(0,s.sprintf)(/* translators: %s: number of results. */ _n("Found %s result","Found %s results",e,"jetpack-search-pkg"),o)}return __("Showing popular results","jetpack-search-pkg")}renderPrimarySection(){const{highlightColor:e,searchQuery:t}=this.props,{results:r=[],total:n=0,corrected_query:u=!1}=this.props.response,p=(0,i.d)(e),h=!1!==u,f=n>0,g=this.props.additionalBlogIds?.length>0||this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==c.$K;return o().createElement(a.Fragment,null,o().createElement("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t\t\t\t\t.jetpack-instant-search *::selection,\n\t\t\t\t\t\t\t.jetpack-instant-search .jetpack-instant-search__search-results .jetpack-instant-search__search-results-primary .jetpack-instant-search__search-result mark {\n\t\t\t\t\t\t\t\tcolor: ${p};\n\t\t\t\t\t\t\t\tbackground-color: ${e};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`}}),o().createElement(_.A,null),o().createElement("h2",{className:"jetpack-instant-search__search-results-title"},this.getSearchTitle()),f&&h&&o().createElement("p",{className:"jetpack-instant-search__search-results-unused-query"},/* translators: %s: Search query. */ /* translators: %s: Search query. */ -(0,s.sprintf)(__('No results for "%s"',"jetpack-search-pkg"),t)),this.props.hasError&&o().createElement(d.A,{type:"warning"},(0,l.u)(this.props.response.error)),f&&!this.props.hasError&&this.props.response._isOffline&&o().createElement(d.A,{type:"warning"},(0,l.u)({message:"offline"})),f&&!this.props.hasError&&o().createElement("ol",{className:`jetpack-instant-search__search-results-list is-format-${this.props.resultFormat}`},r.map(((e,t)=>o().createElement(y.A,{index:t,key:t,staticFilters:this.props.staticFilters,isPhotonEnabled:this.props.isPhotonEnabled,locale:this.props.locale,railcar:this.props.isVisible?e.railcar:null,result:e,resultFormat:this.props.resultFormat,searchQuery:this.props.searchQuery,isMultiSite:g,showPostDate:this.props.showPostDate})))),f&&this.props.hasNextPage&&o().createElement("div",{className:"jetpack-instant-search__search-results-pagination"},o().createElement(m.A,{enableLoadOnScroll:this.props.enableLoadOnScroll,isLoading:this.props.isLoading,onLoadNextPage:this.props.onLoadNextPage})))}renderSecondarySection(){return o().createElement(v.A,{filters:this.props.filters,staticFilters:this.props.staticFilters,isLoading:this.props.isLoading,locale:this.props.locale,postTypes:this.props.postTypes,response:this.props.response,widgets:this.props.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay})}closeOverlay=e=>{e.preventDefault(),this.props.closeOverlay()};onKeyPressHandler=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.closeOverlay())};render(){return o().createElement("div",{className:(0,n.A)("jetpack-instant-search__search-results-wrapper",{"has-colophon":this.props.showPoweredBy})},o().createElement("div",{"aria-hidden":!0===this.props.isLoading,className:"jetpack-instant-search__search-results"},o().createElement("div",{className:"jetpack-instant-search__search-results-controls",role:"form"},o().createElement(g.A,{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-results-search-form",isVisible:this.props.isVisible,onChangeSearch:this.props.onChangeSearch,searchQuery:this.props.searchQuery}),o().createElement("button",{className:"jetpack-instant-search__overlay-close",onClick:this.closeOverlay,onKeyPress:this.onKeyPressHandler,tabIndex:"0","aria-label":__("Close search results","jetpack-search-pkg")},o().createElement(p.A,{icon:"cross",size:"24","aria-hidden":"true",focusable:"false"}))),o().createElement(f.A,{enableSort:this.props.enableSort,onChangeSort:this.props.onChangeSort,resultFormat:this.props.resultFormat,sort:this.props.sort},(this.hasFilterOptions()||this.props.hasNonSearchWidgets)&&o().createElement("div",{role:"button",onClick:this.toggleMobileSecondary,onKeyDown:this.toggleMobileSecondary,tabIndex:"0",className:"jetpack-instant-search__search-results-filter-button"},__("Filters","jetpack-search-pkg"),o().createElement(p.A,{icon:"chevron-down",size:16,alt:__("Show search filters","jetpack-search-pkg"),"aria-hidden":"true"}),o().createElement("span",{className:"screen-reader-text assistive-text"},this.state.shouldShowMobileSecondary?__("Hide filters","jetpack-search-pkg"):__("Show filters","jetpack-search-pkg")))),o().createElement("div",{"aria-live":"polite",className:"jetpack-instant-search__search-results-content",id:"jetpack-instant-search__search-results-content"},o().createElement("div",{className:"jetpack-instant-search__search-results-primary"},this.renderPrimarySection()),o().createElement("div",{className:["jetpack-instant-search__search-results-secondary",(this.state.shouldShowMobileSecondary?"jetpack-instant-search__search-results-secondary--show-as-modal":"")+" "].join(" ")},this.renderSecondarySection())),o().createElement("button",{id:c.m2,onClick:this.closeOverlay},"Close Search")),this.props.showPoweredBy&&o().createElement(h.A,{locale:this.props.locale}))}}const E=b},1168:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(7723),n=r(1609),a=r.n(n),o=r(3476);const __=s.__;class i extends n.Component{handleClick=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.dataset.value))};handleSelectChange=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.value))};render(){const e=(0,o.$)(this.props.resultFormat),t=e.size;let r=0;return e.size>3?a().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-select"},a().createElement("label",{htmlFor:"jetpack-instant-search__search-sort-select"},__("Sort:","jetpack-search-pkg")),a().createElement("select",{className:"jetpack-instant-search__search-sort-select",id:"jetpack-instant-search__search-sort-select",onBlur:this.handleSelectChange,onChange:this.handleSelectChange},[...e.entries()].map((([e,t])=>a().createElement("option",{value:e,key:e,selected:this.props.value===e?"selected":""},t))))):a().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-links"},a().createElement("div",{className:"screen-reader-text"},__("Sort by: ","jetpack-search-pkg")),[...e.entries()].map((([e,s])=>a().createElement(a().Fragment,null,a().createElement("button",{"aria-current":this.props.value===e?"true":"false",className:"jetpack-instant-search__search-sort-option "+(this.props.value===e?"is-selected":""),"data-value":e,key:e,onClick:this.handleClick},s),++r{"use strict";r.d(t,{A:()=>c});var s=r(1609),n=r.n(s),a=r(5795),o=r(1503),i=r(6465);const c=e=>n().createElement("div",{className:"jetpack-instant-search__sidebar"},n().createElement(o.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!0,widget:e.widgetOutsideOverlay}),n().createElement(i.A,null),e.widgets.map((t=>(0,a.createPortal)(n().createElement("div",{id:`${t.widget_id}-portaled-wrapper`,className:"jetpack-instant-search__portaled-wrapper"},n().createElement(o.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!1,showTitle:!1,widget:t})),document.getElementById(`${t.widget_id}-wrapper`)))))},1080:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(1609),n=r.n(s),a=r(4952),o=r(3089),i=r(999),c=r(5450);class l extends s.Component{onChangeStaticFilter=(e,t)=>{this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:n().createElement(c.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,o.sm)(e),value:this.props.staticFilters[(0,o.xf)(e)],variation:"tabbed"});render(){const e=(0,o.PM)("tabbed");return e.length?n().createElement("div",{className:"jetpack-instant-search__search-tabbed-filters"},e.map(this.renderStaticFilterComponent)):null}}const u=(0,a.Ng)((e=>({staticFilters:e.staticFilters})),{setStaticFilter:i.$6})(l)},6465:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(1609),n=r.n(s);class a extends s.Component{container=(0,s.createRef)();componentDidMount(){const e=document.getElementsByClassName("jetpack-instant-search__widget-area")[0];e&&(e.style.removeProperty("display"),this.container.current.appendChild(e))}shouldComponentUpdate(){return!1}render(){return n().createElement("div",{className:"jetpack-instant-search__widget-area-container",ref:this.container})}}},9355:(e,t,r)=>{"use strict";function s(e,t,r){if(!e)return"";const s=decodeURIComponent(e);return(!t||"false"!==s)&&(!(!t||"true"!==s)||(r&&0*+s==0?+s:s))}function n(e,t,r){let n,a;const o={},i=e.split("&");for(t=void 0===t||t,r=void 0===r||r;n=i.shift();)n=n.split("="),a=n.shift(),void 0!==o[a]?o[a]=[].concat(o[a],s(n.shift(),t,r)):o[a]=s(n.shift(),t,r);return o}r.d(t,{D:()=>n})},7152:(e,t,r)=>{"use strict";function s(){return!window.matchMedia("(prefers-reduced-motion: no-preference)").matches}r.d(t,{y:()=>s})},5678:(e,t,r)=>{"use strict";r.d(t,{$P:()=>S,pA:()=>f,q1:()=>m});r(8411);var s=r(4224),n=r.n(s),a=r(1473),o=r(6195),i=r(5114),c=r(7479),l=r(3089);let u;const p=e=>Array.isArray(e)&&e.length>0,h=(0,i.A)(30,5*c.Az),d=(0,i.A)(30,30*c.Az);function m(e=[]){const t={};return e.forEach((({filters:e})=>e.forEach((e=>{t[e.filter_id]=function(e){switch(e.type){case"date_histogram":return{date_histogram:{field:"post_date_gmt"===e.field?"date_gmt":"date",interval:e.interval}};case"taxonomy":{let t=`taxonomy.${e.taxonomy}.slug_slash_name`;return"post_tag"===e.taxonomy?t="tag.slug_slash_name":"category"===e.taxonomy&&(t="category.slug_slash_name"),{terms:{field:t,size:e.count}}}case"post_type":case"blog_id":return{terms:{field:e.type,size:e.count}};case"author":return{terms:{field:"author_login_slash_name",size:e.count}}}}(e)})))),t}function f(e){return e=e??{},Object.fromEntries(Object.entries(e).filter((([,e])=>e?.buckets?.length>0)).map((([e,t])=>{const r=t.buckets.map((e=>({...e,doc_count:0})));return[e,{...t,buckets:r}]})))}k();const g=/(\d{4})-(\d{2})-(\d{2})/;function y(e,t,r){let s,n;"year"===r&&([,s,,]=t.match(g)),"month"===r&&([,s,n]=t.match(g));let a="",o="";if(n){const e=+n+1;a=`${s}-${n}-01`,o=e<=12?`${s}-${e<10?`0${e}`:`${e}`}-01`:+s+1+"-01-01"}else s&&(a=`${s}-01-01`,o=+s+1+"-01-01");return{range:{[e]:{gte:a,lt:o}}}}const v=new Map([["post_types",e=>({term:{post_type:e}})],["authors",e=>({term:{author_login:e}})],["blog_ids",e=>({term:{blog_id:e}})],["category",e=>({term:{"category.slug":e}})],["post_tag",e=>({term:{"tag.slug":e}})],["month_post_date",e=>y("date",e,"month")],["month_post_date_gmt",e=>y("date_gmt",e,"month")],["month_post_modified",e=>y("date",e,"month")],["month_post_modified_gmt",e=>y("date_gmt",e,"month")],["year_post_date",e=>y("date",e,"year")],["year_post_date_gmt",e=>y("date_gmt",e,"year")],["year_post_modified",e=>y("date",e,"year")],["year_post_modified_gmt",e=>y("date_gmt",e,"year")]]);function _(e){const t={};return Object.keys(e).forEach((r=>{const s=e[r];"group_id"===r&&s!==c.$K&&(t[r]=s)})),t}function b(e,t,r){const s={bool:{must:[]}};return(0,l.Xt)().filter((t=>p(e[t]))).forEach((t=>{e[t].forEach((e=>{v.has(t)?s.bool.must.push(v.get(t)(e)):s.bool.must.push({term:{[`taxonomy.${t}.slug`]:e}})}))})),t&&s.bool.must.push(t),r?.length>0&&s.bool.must.push({bool:{must_not:r.map((e=>v.get("post_types")(e)))}}),s}const E=new Map([["oldest","date_asc"],["newest","date_desc"],["relevance","score_default"]]);function w(e){return["price_asc","price_desc","rating_desc"].includes(e)?e:E.get(e,"score_default")}function k(){u&&u.abort(),u=new AbortController}function S(e,t){const r=n()(Array.from(arguments));if(!navigator.onLine&&d.get(r))return Promise.resolve(d.get(r)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!0,...e})));if(h.get(r))return Promise.resolve(h.get(r)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!1,...e})));const s=function({aggregations:e,excludedPostTypes:t,filter:r,staticFilters:s,pageHandle:n,query:i,resultFormat:l,sort:u,postsPerPage:p=10,adminQueryFilter:h,isInCustomizer:d=!1,additionalBlogIds:m=[],highlightFields:f=["title","content","comments"]}){null===i&&(i="");let g=["date","permalink.url.raw","tag.name.default","category.name.default","post_type","shortcode_types","forum.topic_resolved"];(l!==c.UM||d)&&(g=g.concat(["has.image","image.url.raw","image.alt_text"])),(l===c.s6||d)&&(g=g.concat(["meta._wc_average_rating.double","meta._wc_review_count.long","wc.formatted_price","wc.formatted_regular_price","wc.formatted_sale_price","wc.price","wc.sale_price"])),s&&s.group_id&&s.group_id!==c.$K&&(g=g.concat(["author","blog_name","blog_icon_url"]));let y={aggregations:e,fields:g,highlight_fields:f,filter:b(r,h,t),query:encodeURIComponent(i),sort:w(u),page_handle:n,size:p};return m?.length>0&&(y.fields=g.concat(["author","blog_name","blog_icon_url","blog_id"]),y.additional_blog_ids=m),s&&Object.keys(s).length>0&&(y={...y,..._(s)}),(0,o.l)((0,a.U)(y))}(e),i=(l=r,function(e){const t=h.get(l)||d.get(l);if("AbortError"===e.name)return t?{_isCached:!0,_isError:!1,_isOffline:!1,...t}:null;if(t)return{_isCached:!0,_isError:!0,_isOffline:!1,...t};throw e});var l;const p=function(e,t){return function(r){const s={...r,requestId:t};return h.set(e,s),d.set(e,s),s}}(r,t),m=`/sites/${e.siteId}/search?${s}`,{apiNonce:f,apiRoot:g,homeUrl:y,isPrivateSite:v,isWpcom:E}=window[c.O5];let S=`https://public-api.wordpress.com/rest/v1.3${m}`;return v&&E?S=`${y}/wp-json/wpcom-origin/v1.3${m}`:v&&(S=`${g}jetpack/v4/search?${s}`),k(),fetch(S,{headers:v?{"X-WP-Nonce":f}:{},credentials:v?"include":"same-origin",signal:u.signal}).then((e=>200!==e.status?e.json().then((e=>{throw new Error(e.error)})):e)).then((e=>e.json())).then(p).catch(i)}},113:(e,t,r)=>{"use strict";function s(e,t){Array.isArray(e)||(e=[e]);return 0!==e.filter((e=>t.includes(e))).length}r.d(t,{A:()=>s})},7084:(e,t,r)=>{"use strict";function s(e){const t=function(e){let t;return"#"===e[0]&&(t=e.substring(1)),3===t.length&&(t=t.split("").map((e=>`${e}${e}`)).join("")),t}(e);return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}r.d(t,{d:()=>s})},7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>y,$K:()=>n,Az:()=>f,Hs:()=>v,Md:()=>l,O5:()=>a,QB:()=>b,Ri:()=>p,SK:()=>_,UM:()=>d,Wq:()=>E,ZJ:()=>c,m2:()=>u,s6:()=>m,tr:()=>i,w4:()=>o,x6:()=>g,yj:()=>h});var s=r(7723);const __=s.__,n="__NO_GROUP__",a="JetpackInstantSearchOptions",o="jetpack-instant-search__overlay",i="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",u="jetpack-instant-search__overlay-focus-anchor",p="ASC",h="expanded",d="minimal",m="product",f=6e4,g="relevance",y=1e3,v=["newest","oldest",g,"price_asc","price_desc","rating_desc"],_=[h,d,m],b=new Map([[g,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),E=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},3398:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>o,UC:()=>i});var s=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function a(){return"function"==typeof window?.wp?.customize}function o(e){a()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function i(e){a()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[s.O5].showResults=!0,window[s.O5].overlayOptions={...window[s.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7574:(e,t,r)=>{"use strict";function s(e){return[...e.querySelectorAll('input[type="checkbox"]').values()].filter((e=>e.checked)).map((e=>e.name))}function n(e){const t={searchInputSelector:['input[name="s"]:not(.jetpack-instant-search__box-input)',"#searchform input.search-field:not(.jetpack-instant-search__box-input)",".search-form input.search-field:not(.jetpack-instant-search__box-input)",".searchform input.search-field:not(.jetpack-instant-search__box-input)"].join(", "),filterInputSelector:["a.jetpack-search-filter__link"],overlayTriggerSelector:[".jetpack-instant-search__open-overlay-button","header#site-header .search-toggle[data-toggle-target]"].join(",")};return e.theme_options?{...t,...e.theme_options}:t}r.d(t,{E:()=>n,e:()=>s})},6299:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});var s=r(7723);const __=s.__;function n(e){switch(e?.message){case"service_unavailable":return(0,s.sprintf)( +(0,s.sprintf)(__('No results for "%s"',"jetpack-search-pkg"),t)),this.props.hasError&&o().createElement(d.A,{type:"warning"},(0,l.u)(this.props.response.error)),f&&!this.props.hasError&&this.props.response._isOffline&&o().createElement(d.A,{type:"warning"},(0,l.u)({message:"offline"})),f&&!this.props.hasError&&o().createElement("ol",{className:`jetpack-instant-search__search-results-list is-format-${this.props.resultFormat}`},r.map(((e,t)=>o().createElement(y.A,{index:t,key:t,staticFilters:this.props.staticFilters,isPhotonEnabled:this.props.isPhotonEnabled,locale:this.props.locale,railcar:this.props.isVisible?e.railcar:null,result:e,resultFormat:this.props.resultFormat,searchQuery:this.props.searchQuery,isMultiSite:g,showPostDate:this.props.showPostDate})))),f&&this.props.hasNextPage&&o().createElement("div",{className:"jetpack-instant-search__search-results-pagination"},o().createElement(m.A,{enableLoadOnScroll:this.props.enableLoadOnScroll,isLoading:this.props.isLoading,onLoadNextPage:this.props.onLoadNextPage})))}renderSecondarySection(){return o().createElement(v.A,{filters:this.props.filters,staticFilters:this.props.staticFilters,isLoading:this.props.isLoading,locale:this.props.locale,postTypes:this.props.postTypes,response:this.props.response,widgets:this.props.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay})}closeOverlay=e=>{e.preventDefault(),this.props.closeOverlay()};onKeyPressHandler=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.closeOverlay())};render(){return o().createElement("div",{className:(0,n.A)("jetpack-instant-search__search-results-wrapper",{"has-colophon":this.props.showPoweredBy})},o().createElement("div",{"aria-hidden":!0===this.props.isLoading,className:"jetpack-instant-search__search-results"},o().createElement("div",{className:"jetpack-instant-search__search-results-controls",role:"form"},o().createElement(g.A,{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-results-search-form",isVisible:this.props.isVisible,onChangeSearch:this.props.onChangeSearch,searchQuery:this.props.searchQuery}),o().createElement("button",{className:"jetpack-instant-search__overlay-close",onClick:this.closeOverlay,onKeyPress:this.onKeyPressHandler,tabIndex:"0","aria-label":__("Close search results","jetpack-search-pkg")},o().createElement(p.A,{icon:"cross",size:"24","aria-hidden":"true",focusable:"false"}))),o().createElement(f.A,{enableSort:this.props.enableSort,onChangeSort:this.props.onChangeSort,resultFormat:this.props.resultFormat,sort:this.props.sort},(this.hasFilterOptions()||this.props.hasNonSearchWidgets)&&o().createElement("div",{role:"button",onClick:this.toggleMobileSecondary,onKeyDown:this.toggleMobileSecondary,tabIndex:"0",className:"jetpack-instant-search__search-results-filter-button"},__("Filters","jetpack-search-pkg"),o().createElement(p.A,{icon:"chevron-down",size:16,alt:__("Show search filters","jetpack-search-pkg"),"aria-hidden":"true"}),o().createElement("span",{className:"screen-reader-text assistive-text"},this.state.shouldShowMobileSecondary?__("Hide filters","jetpack-search-pkg"):__("Show filters","jetpack-search-pkg")))),o().createElement("div",{"aria-live":"polite",className:"jetpack-instant-search__search-results-content",id:"jetpack-instant-search__search-results-content"},o().createElement("div",{className:"jetpack-instant-search__search-results-primary"},this.renderPrimarySection()),o().createElement("div",{className:["jetpack-instant-search__search-results-secondary",(this.state.shouldShowMobileSecondary?"jetpack-instant-search__search-results-secondary--show-as-modal":"")+" "].join(" ")},this.renderSecondarySection())),o().createElement("button",{id:c.m2,onClick:this.closeOverlay},"Close Search")),this.props.showPoweredBy&&o().createElement(h.A,{locale:this.props.locale}))}}const E=b},1168:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(7723),n=r(1609),a=r.n(n),o=r(3476);const __=s.__;class i extends n.Component{handleClick=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.dataset.value))};handleSelectChange=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.value))};render(){const e=(0,o.$)(this.props.resultFormat),t=e.size;let r=0;return e.size>3?a().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-select"},a().createElement("label",{htmlFor:"jetpack-instant-search__search-sort-select"},__("Sort:","jetpack-search-pkg")),a().createElement("select",{className:"jetpack-instant-search__search-sort-select",id:"jetpack-instant-search__search-sort-select",onBlur:this.handleSelectChange,onChange:this.handleSelectChange},[...e.entries()].map((([e,t])=>a().createElement("option",{value:e,key:e,selected:this.props.value===e?"selected":""},t))))):a().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-links"},a().createElement("div",{className:"screen-reader-text"},__("Sort by:","jetpack-search-pkg")," "),[...e.entries()].map((([e,s])=>a().createElement(a().Fragment,null,a().createElement("button",{"aria-current":this.props.value===e?"true":"false",className:"jetpack-instant-search__search-sort-option "+(this.props.value===e?"is-selected":""),"data-value":e,key:e,onClick:this.handleClick},s),++r{"use strict";r.d(t,{A:()=>c});var s=r(1609),n=r.n(s),a=r(5795),o=r(1503),i=r(6465);const c=e=>n().createElement("div",{className:"jetpack-instant-search__sidebar"},n().createElement(o.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!0,widget:e.widgetOutsideOverlay}),n().createElement(i.A,null),e.widgets.map((t=>(0,a.createPortal)(n().createElement("div",{id:`${t.widget_id}-portaled-wrapper`,className:"jetpack-instant-search__portaled-wrapper"},n().createElement(o.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!1,showTitle:!1,widget:t})),document.getElementById(`${t.widget_id}-wrapper`)))))},1080:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(1609),n=r.n(s),a=r(4952),o=r(3089),i=r(999),c=r(5450);class l extends s.Component{onChangeStaticFilter=(e,t)=>{this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:n().createElement(c.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,o.sm)(e),value:this.props.staticFilters[(0,o.xf)(e)],variation:"tabbed"});render(){const e=(0,o.PM)("tabbed");return e.length?n().createElement("div",{className:"jetpack-instant-search__search-tabbed-filters"},e.map(this.renderStaticFilterComponent)):null}}const u=(0,a.Ng)((e=>({staticFilters:e.staticFilters})),{setStaticFilter:i.$6})(l)},6465:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(1609),n=r.n(s);class a extends s.Component{container=(0,s.createRef)();componentDidMount(){const e=document.getElementsByClassName("jetpack-instant-search__widget-area")[0];e&&(e.style.removeProperty("display"),this.container.current.appendChild(e))}shouldComponentUpdate(){return!1}render(){return n().createElement("div",{className:"jetpack-instant-search__widget-area-container",ref:this.container})}}},9355:(e,t,r)=>{"use strict";function s(e,t,r){if(!e)return"";const s=decodeURIComponent(e);return(!t||"false"!==s)&&(!(!t||"true"!==s)||(r&&0*+s==0?+s:s))}function n(e,t,r){let n,a;const o={},i=e.split("&");for(t=void 0===t||t,r=void 0===r||r;n=i.shift();)n=n.split("="),a=n.shift(),void 0!==o[a]?o[a]=[].concat(o[a],s(n.shift(),t,r)):o[a]=s(n.shift(),t,r);return o}r.d(t,{D:()=>n})},7152:(e,t,r)=>{"use strict";function s(){return!window.matchMedia("(prefers-reduced-motion: no-preference)").matches}r.d(t,{y:()=>s})},5678:(e,t,r)=>{"use strict";r.d(t,{$P:()=>S,pA:()=>f,q1:()=>m});r(8411);var s=r(4224),n=r.n(s),a=r(1473),o=r(6195),i=r(5114),c=r(7479),l=r(3089);let u;const p=e=>Array.isArray(e)&&e.length>0,h=(0,i.A)(30,5*c.Az),d=(0,i.A)(30,30*c.Az);function m(e=[]){const t={};return e.forEach((({filters:e})=>e.forEach((e=>{t[e.filter_id]=function(e){switch(e.type){case"date_histogram":return{date_histogram:{field:"post_date_gmt"===e.field?"date_gmt":"date",interval:e.interval}};case"taxonomy":{let t=`taxonomy.${e.taxonomy}.slug_slash_name`;return"post_tag"===e.taxonomy?t="tag.slug_slash_name":"category"===e.taxonomy&&(t="category.slug_slash_name"),{terms:{field:t,size:e.count}}}case"post_type":case"blog_id":return{terms:{field:e.type,size:e.count}};case"author":return{terms:{field:"author_login_slash_name",size:e.count}}}}(e)})))),t}function f(e){return e=e??{},Object.fromEntries(Object.entries(e).filter((([,e])=>e?.buckets?.length>0)).map((([e,t])=>{const r=t.buckets.map((e=>({...e,doc_count:0})));return[e,{...t,buckets:r}]})))}k();const g=/(\d{4})-(\d{2})-(\d{2})/;function y(e,t,r){let s,n;"year"===r&&([,s,,]=t.match(g)),"month"===r&&([,s,n]=t.match(g));let a="",o="";if(n){const e=+n+1;a=`${s}-${n}-01`,o=e<=12?`${s}-${e<10?`0${e}`:`${e}`}-01`:+s+1+"-01-01"}else s&&(a=`${s}-01-01`,o=+s+1+"-01-01");return{range:{[e]:{gte:a,lt:o}}}}const v=new Map([["post_types",e=>({term:{post_type:e}})],["authors",e=>({term:{author_login:e}})],["blog_ids",e=>({term:{blog_id:e}})],["category",e=>({term:{"category.slug":e}})],["post_tag",e=>({term:{"tag.slug":e}})],["month_post_date",e=>y("date",e,"month")],["month_post_date_gmt",e=>y("date_gmt",e,"month")],["month_post_modified",e=>y("date",e,"month")],["month_post_modified_gmt",e=>y("date_gmt",e,"month")],["year_post_date",e=>y("date",e,"year")],["year_post_date_gmt",e=>y("date_gmt",e,"year")],["year_post_modified",e=>y("date",e,"year")],["year_post_modified_gmt",e=>y("date_gmt",e,"year")]]);function _(e){const t={};return Object.keys(e).forEach((r=>{const s=e[r];"group_id"===r&&s!==c.$K&&(t[r]=s)})),t}function b(e,t,r){const s={bool:{must:[]}};return(0,l.Xt)().filter((t=>p(e[t]))).forEach((t=>{e[t].forEach((e=>{v.has(t)?s.bool.must.push(v.get(t)(e)):s.bool.must.push({term:{[`taxonomy.${t}.slug`]:e}})}))})),t&&s.bool.must.push(t),r?.length>0&&s.bool.must.push({bool:{must_not:r.map((e=>v.get("post_types")(e)))}}),s}const E=new Map([["oldest","date_asc"],["newest","date_desc"],["relevance","score_default"]]);function w(e){return["price_asc","price_desc","rating_desc"].includes(e)?e:E.get(e,"score_default")}function k(){u&&u.abort(),u=new AbortController}function S(e,t){const r=n()(Array.from(arguments));if(!navigator.onLine&&d.get(r))return Promise.resolve(d.get(r)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!0,...e})));if(h.get(r))return Promise.resolve(h.get(r)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!1,...e})));const s=function({aggregations:e,excludedPostTypes:t,filter:r,staticFilters:s,pageHandle:n,query:i,resultFormat:l,sort:u,postsPerPage:p=10,adminQueryFilter:h,isInCustomizer:d=!1,additionalBlogIds:m=[],highlightFields:f=["title","content","comments"]}){null===i&&(i="");let g=["date","permalink.url.raw","tag.name.default","category.name.default","post_type","shortcode_types","forum.topic_resolved"];(l!==c.UM||d)&&(g=g.concat(["has.image","image.url.raw","image.alt_text"])),(l===c.s6||d)&&(g=g.concat(["meta._wc_average_rating.double","meta._wc_review_count.long","wc.formatted_price","wc.formatted_regular_price","wc.formatted_sale_price","wc.price","wc.sale_price"])),s&&s.group_id&&s.group_id!==c.$K&&(g=g.concat(["author","blog_name","blog_icon_url"]));let y={aggregations:e,fields:g,highlight_fields:f,filter:b(r,h,t),query:encodeURIComponent(i),sort:w(u),page_handle:n,size:p};return m?.length>0&&(y.fields=g.concat(["author","blog_name","blog_icon_url","blog_id"]),y.additional_blog_ids=m),s&&Object.keys(s).length>0&&(y={...y,..._(s)}),(0,o.l)((0,a.U)(y))}(e),i=(l=r,function(e){const t=h.get(l)||d.get(l);if("AbortError"===e.name)return t?{_isCached:!0,_isError:!1,_isOffline:!1,...t}:null;if(t)return{_isCached:!0,_isError:!0,_isOffline:!1,...t};throw e});var l;const p=function(e,t){return function(r){const s={...r,requestId:t};return h.set(e,s),d.set(e,s),s}}(r,t),m=`/sites/${e.siteId}/search?${s}`,{apiNonce:f,apiRoot:g,homeUrl:y,isPrivateSite:v,isWpcom:E}=window[c.O5];let S=`https://public-api.wordpress.com/rest/v1.3${m}`;return v&&E?S=`${y}/wp-json/wpcom-origin/v1.3${m}`:v&&(S=`${g}jetpack/v4/search?${s}`),k(),fetch(S,{headers:v?{"X-WP-Nonce":f}:{},credentials:v?"include":"same-origin",signal:u.signal}).then((e=>200!==e.status?e.json().then((e=>{throw new Error(e.error)})):e)).then((e=>e.json())).then(p).catch(i)}},113:(e,t,r)=>{"use strict";function s(e,t){Array.isArray(e)||(e=[e]);return 0!==e.filter((e=>t.includes(e))).length}r.d(t,{A:()=>s})},7084:(e,t,r)=>{"use strict";function s(e){const t=function(e){let t;return"#"===e[0]&&(t=e.substring(1)),3===t.length&&(t=t.split("").map((e=>`${e}${e}`)).join("")),t}(e);return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}r.d(t,{d:()=>s})},7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>y,$K:()=>n,Az:()=>f,Hs:()=>v,Md:()=>l,O5:()=>a,QB:()=>b,Ri:()=>p,SK:()=>_,UM:()=>d,Wq:()=>E,ZJ:()=>c,m2:()=>u,s6:()=>m,tr:()=>i,w4:()=>o,x6:()=>g,yj:()=>h});var s=r(7723);const __=s.__,n="__NO_GROUP__",a="JetpackInstantSearchOptions",o="jetpack-instant-search__overlay",i="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",u="jetpack-instant-search__overlay-focus-anchor",p="ASC",h="expanded",d="minimal",m="product",f=6e4,g="relevance",y=1e3,v=["newest","oldest",g,"price_asc","price_desc","rating_desc"],_=[h,d,m],b=new Map([[g,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),E=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},3398:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>o,UC:()=>i});var s=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function a(){return"function"==typeof window?.wp?.customize}function o(e){a()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function i(e){a()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[s.O5].showResults=!0,window[s.O5].overlayOptions={...window[s.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7574:(e,t,r)=>{"use strict";function s(e){return[...e.querySelectorAll('input[type="checkbox"]').values()].filter((e=>e.checked)).map((e=>e.name))}function n(e){const t={searchInputSelector:['input[name="s"]:not(.jetpack-instant-search__box-input)',"#searchform input.search-field:not(.jetpack-instant-search__box-input)",".search-form input.search-field:not(.jetpack-instant-search__box-input)",".searchform input.search-field:not(.jetpack-instant-search__box-input)"].join(", "),filterInputSelector:["a.jetpack-search-filter__link"],overlayTriggerSelector:[".jetpack-instant-search__open-overlay-button","header#site-header .search-toggle[data-toggle-target]"].join(",")};return e.theme_options?{...t,...e.theme_options}:t}r.d(t,{E:()=>n,e:()=>s})},6299:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});var s=r(7723);const __=s.__;function n(e){switch(e?.message){case"service_unavailable":return(0,s.sprintf)( // translators: %s: Error code. __("Jetpack Search is currently unavailable. Please try again later. [%s]","jetpack-search-pkg"),e?.message);case"offline":return __("It looks like you're offline. Please reconnect to load the latest results.","jetpack-search-pkg");default:return(0,s.sprintf)( // translators: %s: Error code. diff --git a/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.asset.php b/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.asset.php index 85c503da..77ab9746 100644 --- a/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.asset.php +++ b/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.asset.php @@ -1 +1 @@ - array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '4588bd195a00aad99601'); + array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '70a29dd29c0d57f53d6f'); diff --git a/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.js b/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.js index dff093c7..7f502a72 100644 --- a/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.js +++ b/jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.js @@ -39,4 +39,4 @@ __("Once you hit %s indexed records, you'll be upgraded to the next tier. You wo // translators: %1$s: site's current record count, %2$s: record limit of the current plan __("%1$s records indexed out of the %2$s allotted for your current plan","jetpack-search-pkg"),t,r),{s:i().createElement("strong",null)}):(0,c.createInterpolateElement)((0,s.sprintf)( // translators: %1$s: site's current record count, %2$s: record limit of the current plan -__("%1$s records indexed","jetpack-search-pkg"),t),{s:i().createElement("strong",null)}),i().createElement("div",{"data-testid":"record-count",className:"jp-search-record-count"},i().createElement("p",{className:"jp-search-record-count__message"},o,l&&i().createElement("a",{href:l,className:"jp-search-record-count__info",title:__("More info","jetpack-search-pkg")},i().createElement(a.A,{className:"jp-search-record-count__info-icon",icon:"info-outline",size:18}),i().createElement("span",{className:"screen-reader-text"},__("More info","jetpack-search-pkg")))))}},8232:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7723),a=r(1609),c=r.n(a);const __=n.__;function s(){return c().createElement("div",{className:"jp-search-dashboard-promotion"},c().createElement("h3",null,__("Allow viewers to search through your site's records, lightning fast.","jetpack-search-pkg")),c().createElement("ul",{className:"jp-product-promote"},c().createElement("li",null,__("Customizable filtering","jetpack-search-pkg")),c().createElement("li",null,__("Support for 38 languages","jetpack-search-pkg")),c().createElement("li",null,__("Content displayed within results is updated in real-time","jetpack-search-pkg")),c().createElement("li",null,__("If you grow into a new pricing tier, we'll let you know before your next billing cycle","jetpack-search-pkg")),c().createElement("li",null,__("Best-in-class support","jetpack-search-pkg"))))}},1549:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7723),a=r(1609),c=r.n(a);const __=n.__;function s(e={upgrade:!0}){return c().createElement("a",{className:"jp-instant-search-upsell-nudge jp-search-dashboard-cut",href:e.href},c().createElement("span",null,__("Offer instant search results to your visitors as soon as they start typing. ","jetpack-search-pkg")),c().createElement("span",null,c().createElement("b",null,__("Try Jetpack Instant Search for free now","jetpack-search-pkg"))))}},665:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(9384),a=r(7143),c=r(8228);function s(){const e=(0,a.useSelect)((e=>({siteIsRegistering:e(n.CONNECTION_STORE_ID).getSiteIsRegistering(),userIsConnecting:e(n.CONNECTION_STORE_ID).getUserIsConnecting(),userConnectionData:e(n.CONNECTION_STORE_ID).getUserConnectionData(),connectedPlugins:e(n.CONNECTION_STORE_ID).getConnectedPlugins(),connectionErrors:e(n.CONNECTION_STORE_ID).getConnectionErrors(),...e(n.CONNECTION_STORE_ID).getConnectionStatus()}))),t=(0,a.useSelect)((e=>e(c.a).isWpcom()),[]);return{connectionStatus:e,isFullyConnected:Object.keys(e).length&&e.hasConnectedOwner&&e.isRegistered||t,isSiteConnected:Object.keys(e).length&&e.isRegistered||t}}},7033:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(372),a=r(5932),c=r(8214),s=r(9384),o=r(7143),i=r(1609),l=r(8228);const{registrationNonce:p,apiRoot:u,apiNonce:d,siteSuffix:m}=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};function g({productSlug:e,redirectUri:t,siteSuffix:r=m,blogID:g=null,siteProductAvailabilityHandler:h=null,from:f,isWpcom:y=!1}={}){const[v,b]=(0,i.useState)(!1),{registerSite:k}=(0,o.useDispatch)(s.CONNECTION_STORE_ID),{isUserConnected:E,isRegistered:C,handleConnectUser:_}=(0,s.useConnection)({redirectUri:t,from:f}),j=(0,c.A)(e,g||r,t,E||y),A=()=>Promise.resolve(h&&h()).then((e=>{if(e)return _();window.location.href=j}));return(0,i.useEffect)((()=>{a.Ay.setApiRoot(u),a.Ay.setApiNonce(d)}),[]),{run:r=>{if(r&&r.preventDefault(),b(!0),(()=>{const e=(0,o.select)(l.a).getWpcomUser(),t=(0,o.select)(l.a).getBlogId();e&&n.A.initialize(e.ID,e.login,{blog_id:t})})(),n.A.tracks.recordEvent(e+"_purchase_button_click",{isWpcom:y,current_version:(0,o.select)(l.a).getVersion()}),C||y)return A();k({registrationNonce:p,redirectUri:t}).then(A)},isRegistered:C||y,hasCheckoutStarted:v}}},4568:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6450),a=r(5694),c=r(5477),s=r(6585),o=r(1703);const i={...a.Ay,...s.Ay,...o.Ay,...n.Ay,...c.Ay}},5694:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d,iJ:()=>u,ql:()=>p});var n=r(7143),a=r(7723),c=r(6450),s=r(8795),o=r.n(s),i=r(8228),l=r(1464);const __=a.__,p="SET_JETPACK_SETTINGS";function u(e){return{type:p,options:e}}const d={updateJetpackSettings:function*(e){try{yield(0,c.HI)(),yield u({is_updating:!0}),yield u(e),yield(0,l.He)(e);const t=yield(0,l._r)();return yield u(t),(0,c.Er)(__("Updated settings.","jetpack-search-pkg"))}catch(e){const t=o()((0,n.select)(i.a).getSearchModuleStatus(),["module_active","instant_search_enabled"]);return yield u(t),(0,c.tg)(__("Error Update settings…","jetpack-search-pkg"))}finally{yield(0,c.hn)(),yield u({is_updating:!1})}},setJetpackSettings:u}},5477:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,dJ:()=>a,vJ:()=>n});const n="SET_SEARCH_PRICING";function a(e){return{type:"SET_SEARCH_PRICING",options:e}}const c={setSearchPricing:a}},6585:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,Rn:()=>a,uo:()=>c});var n=r(1464);const a="SET_SEARCH_PLAN_INFO";function c(e){return{type:"SET_SEARCH_PLAN_INFO",options:e}}const s={setSearchPlanInfo:c,fetchSearchPlanInfo:n.mk}},1703:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,Q3:()=>n,_L:()=>a});const n="SET_SEARCH_STATS";function a(e){return{type:"SET_SEARCH_STATS",options:e}}const c={setSearchStats:a}},1464:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,D8:()=>m,He:()=>p,_r:()=>l,cq:()=>d,mk:()=>u});var n=r(5932);const a="FETCH_JETPACK_SETTINGS",c="UPDATE_JETPACK_SETTINGS",s="FETCH_SEARCH_PLAN_INFO",o="FETCH_SEARCH_STATS",i="FETCH_SEARCH_PRICING",l=()=>({type:a}),p=e=>({type:c,settings:e});function*u(){return yield{type:s}}const d=()=>({type:o}),m=()=>({type:i}),g={[a]:function(){return n.Ay.fetchSearchSettings()},[c]:function(e){return n.Ay.updateSearchSettings(e.settings)},[s]:function(){return n.Ay.fetchSearchPlanInfo()},[o]:function(){return n.Ay.fetchSearchStats()},[i]:function(){return n.Ay.fetchSearchPricing()}}},8228:(e,t,r)=>{"use strict";r.d(t,{a:()=>i,i:()=>l});var n=r(4568),a=r(1464),c=r(8295),s=r(5267),o=r(193);const i="jetpack-search-plugin",l={reducer:c.A,actions:n.A,selectors:o.A,resolvers:s.Ay,controls:a.Ay,initialState:window.JETPACK_SEARCH_DASHBOARD_INITIAL_STATE||{}}},9597:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e=[])=>e},8295:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(7143),a=r(1473),c=r(9597),s=r(4795),o=r(9696),i=r(5513),l=r(3414),p=r(6110),u=r(9585);const d=(0,n.combineReducers)({siteData:i.A,jetpackSettings:s.A,sitePlan:l.A,siteStats:p.A,userData:u.A,features:c.A,notices:a.A,searchPricing:o.A})},4795:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5694);const a=(e={},t)=>t.type===n.ql?{...e,...t.options,is_toggling_module:e.module_active!==t.options.module_active&&!!t.options.is_updating,is_toggling_instant_search:e.instant_search_enabled!==t.options.instant_search_enabled&&!!t.options.is_updating}:e},9696:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5477);const a=(e={},t)=>t.type===n.vJ?{...e,...t.options}:e},5513:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e={})=>e},3414:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6585);const a=(e={},t)=>t.type===n.Rn?{...e,...t.options}:e},6110:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1703);const a=(e={},t)=>t.type===n.Q3?{...e,...t.options}:e},9585:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e={})=>e},5267:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p});var n=r(7723),a=r(6450),c=r(5694),s=r(5477),o=r(6585),i=r(1703),l=r(1464);const __=n.__;const p={getSearchModuleStatus:function*(){try{const e=yield(0,l._r)();if(e)return(0,c.iJ)(e)}catch(e){return(0,a.tg)(__("Error fetching settings…","jetpack-search-pkg"))}},getSearchPlanInfo:function*(){try{const e=yield(0,l.mk)();if(e)return(0,o.uo)(e)}catch(e){return(0,a.tg)(__("Error fetching search plan…","jetpack-search-pkg"))}},getSearchStats:function*(){try{const e=yield(0,l.cq)();if(e)return(0,i._L)(e)}catch(e){return(0,a.tg)(__("Error fetching search stats","jetpack-search-pkg"))}},getSearchPricing:function*(){try{const e=yield(0,l.D8)();if(e)return(0,s.dJ)(e)}catch(e){}}}},6155:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={isFeatureEnabled:(e,t)=>Array.isArray(e.features)&&e.features.includes(t)}},193:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(8179),a=r(6155),c=r(577),s=r(4126),o=r(3491),i=r(644),l=r(7972),p=r(8159);const u={...o.A,...c.A,...i.A,...p.A,...n.A,...a.A,...l.A,...s.A}},577:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getSearchModuleStatus:e=>e.jetpackSettings,isModuleEnabled:e=>e.jetpackSettings.module_active,isInstantSearchEnabled:e=>e.jetpackSettings.instant_search_enabled,isUpdatingJetpackSettings:e=>e.jetpackSettings.is_updating,isTogglingModule:e=>e.jetpackSettings.is_toggling_module,isTogglingInstantSearch:e=>e.jetpackSettings.is_toggling_instant_search}},4126:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});const n=e=>e.searchPricing.full_price??0,a=e=>Number.isFinite(e.searchPricing.discount_price)?e.searchPricing.discount_price:n(e),c={getSearchPricing:e=>e.searchPricing,getPriceBefore:n,getPriceAfter:a,getPricingDiscountPercentage:e=>{const t=n(e),r=a(e);return t<=r?0:Math.round((t-r)/t*100)},getPriceCurrencyCode:e=>e.searchPricing.currency_code??"USD",isNewPricing202208:e=>e.searchPricing.pricing_version>="202208",getPaidRequestsLimit:e=>e.searchPricing.monthly_search_request_limit??1e4,getPaidRecordsLimit:e=>e.searchPricing.record_limit??1e4,getAdditionalUnitQuantity:e=>e.searchPricing.quantity_per_unit,getAdditionalUnitPrice:e=>Number.isFinite(+e.searchPricing.per_unit_fee)?+e.searchPricing.per_unit_fee/12:null}},3491:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getAPIRootUrl:e=>e.siteData?.WP_API_root??null,getWpcomOriginApiUrl:e=>e.siteData?.wpcomOriginApiUrl??null,getAPINonce:e=>e.siteData?.WP_API_nonce??null,getRegistrationNonce:e=>e.siteData?.registrationNonce??null,getSiteAdminUrl:e=>e.siteData?.adminUrl??null,isInstantSearchPromotionActive:e=>e.siteData?.showPromotions??!0,getBlogId:e=>e.siteData?.blogId??0,getVersion:e=>e.siteData?.version??"development",getCalypsoSlug:e=>e.siteData?.calypsoSlug,getPostTypes:e=>e.siteData?.postTypes,getSiteTitle:e=>e.siteData?.title||"",isWpcom:e=>e.siteData?.isWpcom??!1,isPlanJustUpgraded:e=>e.siteData?.isPlanJustUpgraded??!1}},644:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getSearchPlanInfo:e=>e.sitePlan,hasBusinessPlan:e=>e.sitePlan.supports_only_classic_search,isOverLimit:e=>e.sitePlan.plan_usage?.must_upgrade,supportsInstantSearch:e=>e.sitePlan.supports_instant_search,supportsOnlyClassicSearch:e=>e.sitePlan.supports_only_classic_search,getUpgradeBillPeriod:e=>e.sitePlan?.default_upgrade_bill_period,supportsSearch:e=>e.sitePlan.supports_instant_search||e.sitePlan.supports_only_classic_search,getTierMaximumRecords:e=>e.sitePlan.tier_maximum_records,isFreePlan:e=>"jetpack_search_free"===e.sitePlan.effective_subscription?.product_slug,getLatestMonthRequests:e=>e.sitePlan.plan_usage?.num_requests_3m[0],getCurrentPlan:e=>e.sitePlan.plan_current,getCurrentUsage:e=>e.sitePlan.plan_usage}},7972:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getSearchStats:e=>e.siteStats,getPostCount:e=>e.siteStats?.post_count,getPostTypeBreakdown:e=>e.siteStats?.post_type_breakdown,getLastIndexedDate:e=>e.siteStats?.last_indexed_date}},8159:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getWpcomUser:e=>e.userData?.currentUser?.wpcomUser}},516:e=>{"use strict";e.exports={consumer_slug:"jetpack-search"}},9384:e=>{"use strict";e.exports=window.JetpackConnection},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},7143:e=>{"use strict";e.exports=window.wp.data},8443:e=>{"use strict";e.exports=window.wp.date},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";function n(e){var t,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var c=e.length;for(t=0;ta});const a=function(){for(var e,t,r=0,a="",c=arguments.length;r{"use strict";e.exports=JSON.parse('{"version":"2.6.0","colors":{"White":"#fff","Black":"#000","Gray":"#646970","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Blue":"#0675c4","Blue 0":"#e9f0f5","Blue 5":"#bbe0fa","Blue 10":"#91caf2","Blue 20":"#68b3e8","Blue 30":"#399ce3","Blue 40":"#1689db","Blue 50":"#0675c4","Blue 60":"#055d9c","Blue 70":"#044b7a","Blue 80":"#02395c","Blue 90":"#01283d","Blue 100":"#001621","Purple":"#984a9c","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Pink":"#c9356e","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Red":"#d63638","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Orange":"#b26200","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Yellow":"#9d6e00","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Green":"#008a20","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Celadon":"#008763","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","Automattic Blue":"#24a3e0","Automattic Blue 0":"#ebf4fa","Automattic Blue 5":"#c4e2f5","Automattic Blue 10":"#88ccf2","Automattic Blue 20":"#5ab7e8","Automattic Blue 30":"#24a3e0","Automattic Blue 40":"#1490c7","Automattic Blue 50":"#0277a8","Automattic Blue 60":"#036085","Automattic Blue 70":"#02506e","Automattic Blue 80":"#02384d","Automattic Blue 90":"#022836","Automattic Blue 100":"#021b24","WordPress Blue":"#006088","WordPress Blue 0":"#e6f1f5","WordPress Blue 5":"#bedae6","WordPress Blue 10":"#98c6d9","WordPress Blue 20":"#6ab3d0","WordPress Blue 30":"#3895ba","WordPress Blue 40":"#187aa2","WordPress Blue 50":"#006088","WordPress Blue 60":"#004e6e","WordPress Blue 70":"#003c56","WordPress Blue 80":"#002c40","WordPress Blue 90":"#001d2d","WordPress Blue 100":"#00101c","Simplenote Blue":"#3361cc","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","WooCommerce Purple":"#7f54b3","WooCommerce Purple 0":"#f7edf7","WooCommerce Purple 5":"#e5cfe8","WooCommerce Purple 10":"#d6b4e0","WooCommerce Purple 20":"#c792e0","WooCommerce Purple 30":"#af7dd1","WooCommerce Purple 40":"#9a69c7","WooCommerce Purple 50":"#7f54b3","WooCommerce Purple 60":"#674399","WooCommerce Purple 70":"#533582","WooCommerce Purple 80":"#3c2861","WooCommerce Purple 90":"#271b3d","WooCommerce Purple 100":"#140e1f","Jetpack Green":"#069e08","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09"}}')}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var c=t[n]={id:n,loaded:!1,exports:{}};return e[n](c,c.exports,r),c.loaded=!0,c.exports}r.n=e=>{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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=r(7143),t=r(6087),n=r(1609),a=r.n(n),c=r(496),s=r(8228);const o=(0,e.createReduxStore)(s.a,s.i);function i(){const e=document.getElementById("jp-search-dashboard");null!==e&&t.createRoot(e).render(a().createElement(c.A,null))}(0,e.register)(o),"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)})()})(); \ No newline at end of file +__("%1$s records indexed","jetpack-search-pkg"),t),{s:i().createElement("strong",null)}),i().createElement("div",{"data-testid":"record-count",className:"jp-search-record-count"},i().createElement("p",{className:"jp-search-record-count__message"},o,l&&i().createElement("a",{href:l,className:"jp-search-record-count__info",title:__("More info","jetpack-search-pkg")},i().createElement(a.A,{className:"jp-search-record-count__info-icon",icon:"info-outline",size:18}),i().createElement("span",{className:"screen-reader-text"},__("More info","jetpack-search-pkg")))))}},8232:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7723),a=r(1609),c=r.n(a);const __=n.__;function s(){return c().createElement("div",{className:"jp-search-dashboard-promotion"},c().createElement("h3",null,__("Allow viewers to search through your site's records, lightning fast.","jetpack-search-pkg")),c().createElement("ul",{className:"jp-product-promote"},c().createElement("li",null,__("Customizable filtering","jetpack-search-pkg")),c().createElement("li",null,__("Support for 38 languages","jetpack-search-pkg")),c().createElement("li",null,__("Content displayed within results is updated in real-time","jetpack-search-pkg")),c().createElement("li",null,__("If you grow into a new pricing tier, we'll let you know before your next billing cycle","jetpack-search-pkg")),c().createElement("li",null,__("Best-in-class support","jetpack-search-pkg"))))}},1549:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7723),a=r(1609),c=r.n(a);const __=n.__;function s(e={upgrade:!0}){return c().createElement("a",{className:"jp-instant-search-upsell-nudge jp-search-dashboard-cut",href:e.href},c().createElement("span",null,__("Offer instant search results to your visitors as soon as they start typing.","jetpack-search-pkg"))," ",c().createElement("span",null,c().createElement("b",null,__("Try Jetpack Instant Search for free now","jetpack-search-pkg"))))}},665:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(9384),a=r(7143),c=r(8228);function s(){const e=(0,a.useSelect)((e=>({siteIsRegistering:e(n.CONNECTION_STORE_ID).getSiteIsRegistering(),userIsConnecting:e(n.CONNECTION_STORE_ID).getUserIsConnecting(),userConnectionData:e(n.CONNECTION_STORE_ID).getUserConnectionData(),connectedPlugins:e(n.CONNECTION_STORE_ID).getConnectedPlugins(),connectionErrors:e(n.CONNECTION_STORE_ID).getConnectionErrors(),...e(n.CONNECTION_STORE_ID).getConnectionStatus()}))),t=(0,a.useSelect)((e=>e(c.a).isWpcom()),[]);return{connectionStatus:e,isFullyConnected:Object.keys(e).length&&e.hasConnectedOwner&&e.isRegistered||t,isSiteConnected:Object.keys(e).length&&e.isRegistered||t}}},7033:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(372),a=r(5932),c=r(8214),s=r(9384),o=r(7143),i=r(1609),l=r(8228);const{registrationNonce:p,apiRoot:u,apiNonce:d,siteSuffix:m}=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};function g({productSlug:e,redirectUri:t,siteSuffix:r=m,blogID:g=null,siteProductAvailabilityHandler:h=null,from:f,isWpcom:y=!1}={}){const[v,b]=(0,i.useState)(!1),{registerSite:k}=(0,o.useDispatch)(s.CONNECTION_STORE_ID),{isUserConnected:E,isRegistered:C,handleConnectUser:_}=(0,s.useConnection)({redirectUri:t,from:f}),j=(0,c.A)(e,g||r,t,E||y),A=()=>Promise.resolve(h&&h()).then((e=>{if(e)return _();window.location.href=j}));return(0,i.useEffect)((()=>{a.Ay.setApiRoot(u),a.Ay.setApiNonce(d)}),[]),{run:r=>{if(r&&r.preventDefault(),b(!0),(()=>{const e=(0,o.select)(l.a).getWpcomUser(),t=(0,o.select)(l.a).getBlogId();e&&n.A.initialize(e.ID,e.login,{blog_id:t})})(),n.A.tracks.recordEvent(e+"_purchase_button_click",{isWpcom:y,current_version:(0,o.select)(l.a).getVersion()}),C||y)return A();k({registrationNonce:p,redirectUri:t}).then(A)},isRegistered:C||y,hasCheckoutStarted:v}}},4568:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6450),a=r(5694),c=r(5477),s=r(6585),o=r(1703);const i={...a.Ay,...s.Ay,...o.Ay,...n.Ay,...c.Ay}},5694:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d,iJ:()=>u,ql:()=>p});var n=r(7143),a=r(7723),c=r(6450),s=r(8795),o=r.n(s),i=r(8228),l=r(1464);const __=a.__,p="SET_JETPACK_SETTINGS";function u(e){return{type:p,options:e}}const d={updateJetpackSettings:function*(e){try{yield(0,c.HI)(),yield u({is_updating:!0}),yield u(e),yield(0,l.He)(e);const t=yield(0,l._r)();return yield u(t),(0,c.Er)(__("Updated settings.","jetpack-search-pkg"))}catch(e){const t=o()((0,n.select)(i.a).getSearchModuleStatus(),["module_active","instant_search_enabled"]);return yield u(t),(0,c.tg)(__("Error Update settings…","jetpack-search-pkg"))}finally{yield(0,c.hn)(),yield u({is_updating:!1})}},setJetpackSettings:u}},5477:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,dJ:()=>a,vJ:()=>n});const n="SET_SEARCH_PRICING";function a(e){return{type:"SET_SEARCH_PRICING",options:e}}const c={setSearchPricing:a}},6585:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,Rn:()=>a,uo:()=>c});var n=r(1464);const a="SET_SEARCH_PLAN_INFO";function c(e){return{type:"SET_SEARCH_PLAN_INFO",options:e}}const s={setSearchPlanInfo:c,fetchSearchPlanInfo:n.mk}},1703:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,Q3:()=>n,_L:()=>a});const n="SET_SEARCH_STATS";function a(e){return{type:"SET_SEARCH_STATS",options:e}}const c={setSearchStats:a}},1464:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,D8:()=>m,He:()=>p,_r:()=>l,cq:()=>d,mk:()=>u});var n=r(5932);const a="FETCH_JETPACK_SETTINGS",c="UPDATE_JETPACK_SETTINGS",s="FETCH_SEARCH_PLAN_INFO",o="FETCH_SEARCH_STATS",i="FETCH_SEARCH_PRICING",l=()=>({type:a}),p=e=>({type:c,settings:e});function*u(){return yield{type:s}}const d=()=>({type:o}),m=()=>({type:i}),g={[a]:function(){return n.Ay.fetchSearchSettings()},[c]:function(e){return n.Ay.updateSearchSettings(e.settings)},[s]:function(){return n.Ay.fetchSearchPlanInfo()},[o]:function(){return n.Ay.fetchSearchStats()},[i]:function(){return n.Ay.fetchSearchPricing()}}},8228:(e,t,r)=>{"use strict";r.d(t,{a:()=>i,i:()=>l});var n=r(4568),a=r(1464),c=r(8295),s=r(5267),o=r(193);const i="jetpack-search-plugin",l={reducer:c.A,actions:n.A,selectors:o.A,resolvers:s.Ay,controls:a.Ay,initialState:window.JETPACK_SEARCH_DASHBOARD_INITIAL_STATE||{}}},9597:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e=[])=>e},8295:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(7143),a=r(1473),c=r(9597),s=r(4795),o=r(9696),i=r(5513),l=r(3414),p=r(6110),u=r(9585);const d=(0,n.combineReducers)({siteData:i.A,jetpackSettings:s.A,sitePlan:l.A,siteStats:p.A,userData:u.A,features:c.A,notices:a.A,searchPricing:o.A})},4795:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5694);const a=(e={},t)=>t.type===n.ql?{...e,...t.options,is_toggling_module:e.module_active!==t.options.module_active&&!!t.options.is_updating,is_toggling_instant_search:e.instant_search_enabled!==t.options.instant_search_enabled&&!!t.options.is_updating}:e},9696:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5477);const a=(e={},t)=>t.type===n.vJ?{...e,...t.options}:e},5513:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e={})=>e},3414:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6585);const a=(e={},t)=>t.type===n.Rn?{...e,...t.options}:e},6110:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1703);const a=(e={},t)=>t.type===n.Q3?{...e,...t.options}:e},9585:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e={})=>e},5267:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p});var n=r(7723),a=r(6450),c=r(5694),s=r(5477),o=r(6585),i=r(1703),l=r(1464);const __=n.__;const p={getSearchModuleStatus:function*(){try{const e=yield(0,l._r)();if(e)return(0,c.iJ)(e)}catch(e){return(0,a.tg)(__("Error fetching settings…","jetpack-search-pkg"))}},getSearchPlanInfo:function*(){try{const e=yield(0,l.mk)();if(e)return(0,o.uo)(e)}catch(e){return(0,a.tg)(__("Error fetching search plan…","jetpack-search-pkg"))}},getSearchStats:function*(){try{const e=yield(0,l.cq)();if(e)return(0,i._L)(e)}catch(e){return(0,a.tg)(__("Error fetching search stats","jetpack-search-pkg"))}},getSearchPricing:function*(){try{const e=yield(0,l.D8)();if(e)return(0,s.dJ)(e)}catch(e){}}}},6155:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={isFeatureEnabled:(e,t)=>Array.isArray(e.features)&&e.features.includes(t)}},193:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(8179),a=r(6155),c=r(577),s=r(4126),o=r(3491),i=r(644),l=r(7972),p=r(8159);const u={...o.A,...c.A,...i.A,...p.A,...n.A,...a.A,...l.A,...s.A}},577:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getSearchModuleStatus:e=>e.jetpackSettings,isModuleEnabled:e=>e.jetpackSettings.module_active,isInstantSearchEnabled:e=>e.jetpackSettings.instant_search_enabled,isUpdatingJetpackSettings:e=>e.jetpackSettings.is_updating,isTogglingModule:e=>e.jetpackSettings.is_toggling_module,isTogglingInstantSearch:e=>e.jetpackSettings.is_toggling_instant_search}},4126:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});const n=e=>e.searchPricing.full_price??0,a=e=>Number.isFinite(e.searchPricing.discount_price)?e.searchPricing.discount_price:n(e),c={getSearchPricing:e=>e.searchPricing,getPriceBefore:n,getPriceAfter:a,getPricingDiscountPercentage:e=>{const t=n(e),r=a(e);return t<=r?0:Math.round((t-r)/t*100)},getPriceCurrencyCode:e=>e.searchPricing.currency_code??"USD",isNewPricing202208:e=>e.searchPricing.pricing_version>="202208",getPaidRequestsLimit:e=>e.searchPricing.monthly_search_request_limit??1e4,getPaidRecordsLimit:e=>e.searchPricing.record_limit??1e4,getAdditionalUnitQuantity:e=>e.searchPricing.quantity_per_unit,getAdditionalUnitPrice:e=>Number.isFinite(+e.searchPricing.per_unit_fee)?+e.searchPricing.per_unit_fee/12:null}},3491:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getAPIRootUrl:e=>e.siteData?.WP_API_root??null,getWpcomOriginApiUrl:e=>e.siteData?.wpcomOriginApiUrl??null,getAPINonce:e=>e.siteData?.WP_API_nonce??null,getRegistrationNonce:e=>e.siteData?.registrationNonce??null,getSiteAdminUrl:e=>e.siteData?.adminUrl??null,isInstantSearchPromotionActive:e=>e.siteData?.showPromotions??!0,getBlogId:e=>e.siteData?.blogId??0,getVersion:e=>e.siteData?.version??"development",getCalypsoSlug:e=>e.siteData?.calypsoSlug,getPostTypes:e=>e.siteData?.postTypes,getSiteTitle:e=>e.siteData?.title||"",isWpcom:e=>e.siteData?.isWpcom??!1,isPlanJustUpgraded:e=>e.siteData?.isPlanJustUpgraded??!1}},644:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getSearchPlanInfo:e=>e.sitePlan,hasBusinessPlan:e=>e.sitePlan.supports_only_classic_search,isOverLimit:e=>e.sitePlan.plan_usage?.must_upgrade,supportsInstantSearch:e=>e.sitePlan.supports_instant_search,supportsOnlyClassicSearch:e=>e.sitePlan.supports_only_classic_search,getUpgradeBillPeriod:e=>e.sitePlan?.default_upgrade_bill_period,supportsSearch:e=>e.sitePlan.supports_instant_search||e.sitePlan.supports_only_classic_search,getTierMaximumRecords:e=>e.sitePlan.tier_maximum_records,isFreePlan:e=>"jetpack_search_free"===e.sitePlan.effective_subscription?.product_slug,getLatestMonthRequests:e=>e.sitePlan.plan_usage?.num_requests_3m[0],getCurrentPlan:e=>e.sitePlan.plan_current,getCurrentUsage:e=>e.sitePlan.plan_usage}},7972:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getSearchStats:e=>e.siteStats,getPostCount:e=>e.siteStats?.post_count,getPostTypeBreakdown:e=>e.siteStats?.post_type_breakdown,getLastIndexedDate:e=>e.siteStats?.last_indexed_date}},8159:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={getWpcomUser:e=>e.userData?.currentUser?.wpcomUser}},516:e=>{"use strict";e.exports={consumer_slug:"jetpack-search"}},9384:e=>{"use strict";e.exports=window.JetpackConnection},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},7143:e=>{"use strict";e.exports=window.wp.data},8443:e=>{"use strict";e.exports=window.wp.date},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";function n(e){var t,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var c=e.length;for(t=0;ta});const a=function(){for(var e,t,r=0,a="",c=arguments.length;r{"use strict";e.exports=JSON.parse('{"version":"2.6.0","colors":{"White":"#fff","Black":"#000","Gray":"#646970","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Blue":"#0675c4","Blue 0":"#e9f0f5","Blue 5":"#bbe0fa","Blue 10":"#91caf2","Blue 20":"#68b3e8","Blue 30":"#399ce3","Blue 40":"#1689db","Blue 50":"#0675c4","Blue 60":"#055d9c","Blue 70":"#044b7a","Blue 80":"#02395c","Blue 90":"#01283d","Blue 100":"#001621","Purple":"#984a9c","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Pink":"#c9356e","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Red":"#d63638","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Orange":"#b26200","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Yellow":"#9d6e00","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Green":"#008a20","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Celadon":"#008763","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","Automattic Blue":"#24a3e0","Automattic Blue 0":"#ebf4fa","Automattic Blue 5":"#c4e2f5","Automattic Blue 10":"#88ccf2","Automattic Blue 20":"#5ab7e8","Automattic Blue 30":"#24a3e0","Automattic Blue 40":"#1490c7","Automattic Blue 50":"#0277a8","Automattic Blue 60":"#036085","Automattic Blue 70":"#02506e","Automattic Blue 80":"#02384d","Automattic Blue 90":"#022836","Automattic Blue 100":"#021b24","WordPress Blue":"#006088","WordPress Blue 0":"#e6f1f5","WordPress Blue 5":"#bedae6","WordPress Blue 10":"#98c6d9","WordPress Blue 20":"#6ab3d0","WordPress Blue 30":"#3895ba","WordPress Blue 40":"#187aa2","WordPress Blue 50":"#006088","WordPress Blue 60":"#004e6e","WordPress Blue 70":"#003c56","WordPress Blue 80":"#002c40","WordPress Blue 90":"#001d2d","WordPress Blue 100":"#00101c","Simplenote Blue":"#3361cc","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","WooCommerce Purple":"#7f54b3","WooCommerce Purple 0":"#f7edf7","WooCommerce Purple 5":"#e5cfe8","WooCommerce Purple 10":"#d6b4e0","WooCommerce Purple 20":"#c792e0","WooCommerce Purple 30":"#af7dd1","WooCommerce Purple 40":"#9a69c7","WooCommerce Purple 50":"#7f54b3","WooCommerce Purple 60":"#674399","WooCommerce Purple 70":"#533582","WooCommerce Purple 80":"#3c2861","WooCommerce Purple 90":"#271b3d","WooCommerce Purple 100":"#140e1f","Jetpack Green":"#069e08","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09"}}')}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var c=t[n]={id:n,loaded:!1,exports:{}};return e[n](c,c.exports,r),c.loaded=!0,c.exports}r.n=e=>{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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=r(7143),t=r(6087),n=r(1609),a=r.n(n),c=r(496),s=r(8228);const o=(0,e.createReduxStore)(s.a,s.i);function i(){const e=document.getElementById("jp-search-dashboard");null!==e&&t.createRoot(e).render(a().createElement(c.A,null))}(0,e.register)(o),"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)})()})(); \ No newline at end of file diff --git a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php index dc6aa084..056dbd45 100644 --- a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php +++ b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php @@ -1 +1 @@ - array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => '69b2279d3ec19323cba4'); + array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => '20d5af7a6b6b92b6d605'); diff --git a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js index 02ffea3f..14dcb4c0 100644 --- a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js +++ b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js @@ -6,7 +6,7 @@ o().createElement("input",{type:"button",value:__("clear","jetpack-search-pkg"), _n('Found %1$s result for "%2$s"','Found %1$s results for "%2$s"',e,"jetpack-search-pkg"),i,t);if(n){const t=(0,p.PM)().find((e=>"group_id"===e.filter_id)),s=t?.filter_id,a=this.props.staticFilters[s],n=t?.selected,o=t?.values?.[0],l=a||n||o?.value,c=t?.values?.find?.((e=>e.value===l));return c?.name?(0,r.sprintf)(/* translators: %1$s: number of results. - %2$s: site name. */ _n("Found %1$s result in %2$s","Found %1$s results in %2$s",e,"jetpack-search-pkg"),i,c?.name):(0,r.sprintf)(/* translators: %s: number of results. */ _n("Found %s result","Found %s results",e,"jetpack-search-pkg"),i)}return __("Showing popular results","jetpack-search-pkg")}renderPrimarySection(){const{highlightColor:e,searchQuery:t}=this.props,{results:s=[],total:a=0,corrected_query:p=!1}=this.props.response,h=(0,o.d)(e),u=!1!==p,g=a>0,_=this.props.additionalBlogIds?.length>0||this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==l.$K;return i().createElement(n.Fragment,null,i().createElement("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t\t\t\t\t.jetpack-instant-search *::selection,\n\t\t\t\t\t\t\t.jetpack-instant-search .jetpack-instant-search__search-results .jetpack-instant-search__search-results-primary .jetpack-instant-search__search-result mark {\n\t\t\t\t\t\t\t\tcolor: ${h};\n\t\t\t\t\t\t\t\tbackground-color: ${e};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`}}),i().createElement(E.A,null),i().createElement("h2",{className:"jetpack-instant-search__search-results-title"},this.getSearchTitle()),g&&u&&i().createElement("p",{className:"jetpack-instant-search__search-results-unused-query"},/* translators: %s: Search query. */ /* translators: %s: Search query. */ -(0,r.sprintf)(__('No results for "%s"',"jetpack-search-pkg"),t)),this.props.hasError&&i().createElement(d.A,{type:"warning"},(0,c.u)(this.props.response.error)),g&&!this.props.hasError&&this.props.response._isOffline&&i().createElement(d.A,{type:"warning"},(0,c.u)({message:"offline"})),g&&!this.props.hasError&&i().createElement("ol",{className:`jetpack-instant-search__search-results-list is-format-${this.props.resultFormat}`},s.map(((e,t)=>i().createElement(y.A,{index:t,key:t,staticFilters:this.props.staticFilters,isPhotonEnabled:this.props.isPhotonEnabled,locale:this.props.locale,railcar:this.props.isVisible?e.railcar:null,result:e,resultFormat:this.props.resultFormat,searchQuery:this.props.searchQuery,isMultiSite:_,showPostDate:this.props.showPostDate})))),g&&this.props.hasNextPage&&i().createElement("div",{className:"jetpack-instant-search__search-results-pagination"},i().createElement(m.A,{enableLoadOnScroll:this.props.enableLoadOnScroll,isLoading:this.props.isLoading,onLoadNextPage:this.props.onLoadNextPage})))}renderSecondarySection(){return i().createElement(f.A,{filters:this.props.filters,staticFilters:this.props.staticFilters,isLoading:this.props.isLoading,locale:this.props.locale,postTypes:this.props.postTypes,response:this.props.response,widgets:this.props.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay})}closeOverlay=e=>{e.preventDefault(),this.props.closeOverlay()};onKeyPressHandler=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.closeOverlay())};render(){return i().createElement("div",{className:(0,a.A)("jetpack-instant-search__search-results-wrapper",{"has-colophon":this.props.showPoweredBy})},i().createElement("div",{"aria-hidden":!0===this.props.isLoading,className:"jetpack-instant-search__search-results"},i().createElement("div",{className:"jetpack-instant-search__search-results-controls",role:"form"},i().createElement(_.A,{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-results-search-form",isVisible:this.props.isVisible,onChangeSearch:this.props.onChangeSearch,searchQuery:this.props.searchQuery}),i().createElement("button",{className:"jetpack-instant-search__overlay-close",onClick:this.closeOverlay,onKeyPress:this.onKeyPressHandler,tabIndex:"0","aria-label":__("Close search results","jetpack-search-pkg")},i().createElement(h.A,{icon:"cross",size:"24","aria-hidden":"true",focusable:"false"}))),i().createElement(g.A,{enableSort:this.props.enableSort,onChangeSort:this.props.onChangeSort,resultFormat:this.props.resultFormat,sort:this.props.sort},(this.hasFilterOptions()||this.props.hasNonSearchWidgets)&&i().createElement("div",{role:"button",onClick:this.toggleMobileSecondary,onKeyDown:this.toggleMobileSecondary,tabIndex:"0",className:"jetpack-instant-search__search-results-filter-button"},__("Filters","jetpack-search-pkg"),i().createElement(h.A,{icon:"chevron-down",size:16,alt:__("Show search filters","jetpack-search-pkg"),"aria-hidden":"true"}),i().createElement("span",{className:"screen-reader-text assistive-text"},this.state.shouldShowMobileSecondary?__("Hide filters","jetpack-search-pkg"):__("Show filters","jetpack-search-pkg")))),i().createElement("div",{"aria-live":"polite",className:"jetpack-instant-search__search-results-content",id:"jetpack-instant-search__search-results-content"},i().createElement("div",{className:"jetpack-instant-search__search-results-primary"},this.renderPrimarySection()),i().createElement("div",{className:["jetpack-instant-search__search-results-secondary",(this.state.shouldShowMobileSecondary?"jetpack-instant-search__search-results-secondary--show-as-modal":"")+" "].join(" ")},this.renderSecondarySection())),i().createElement("button",{id:l.m2,onClick:this.closeOverlay},"Close Search")),this.props.showPoweredBy&&i().createElement(u.A,{locale:this.props.locale}))}}const k=v},1168:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(3476);const __=r.__;class o extends a.Component{handleClick=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.dataset.value))};handleSelectChange=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.value))};render(){const e=(0,i.$)(this.props.resultFormat),t=e.size;let s=0;return e.size>3?n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-select"},n().createElement("label",{htmlFor:"jetpack-instant-search__search-sort-select"},__("Sort:","jetpack-search-pkg")),n().createElement("select",{className:"jetpack-instant-search__search-sort-select",id:"jetpack-instant-search__search-sort-select",onBlur:this.handleSelectChange,onChange:this.handleSelectChange},[...e.entries()].map((([e,t])=>n().createElement("option",{value:e,key:e,selected:this.props.value===e?"selected":""},t))))):n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-links"},n().createElement("div",{className:"screen-reader-text"},__("Sort by: ","jetpack-search-pkg")),[...e.entries()].map((([e,r])=>n().createElement(n().Fragment,null,n().createElement("button",{"aria-current":this.props.value===e?"true":"false",className:"jetpack-instant-search__search-sort-option "+(this.props.value===e?"is-selected":""),"data-value":e,key:e,onClick:this.handleClick},r),++s{s.d(t,{A:()=>o});var r=s(9362),a=s.n(r),n=s(1503),i=s(6465);const o=e=>a().createElement("div",{className:"jetpack-instant-search__sidebar"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!0,widget:e.widgetOutsideOverlay}),a().createElement(i.A,null),e.widgets.map((t=>(0,r.createPortal)(a().createElement("div",{id:`${t.widget_id}-portaled-wrapper`,className:"jetpack-instant-search__portaled-wrapper"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!1,showTitle:!1,widget:t})),document.getElementById(`${t.widget_id}-wrapper`)))))},1080:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(9362),a=s.n(r),n=s(4952),i=s(3089),o=s(999),l=s(5450);class c extends r.Component{onChangeStaticFilter=(e,t)=>{this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:a().createElement(l.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.staticFilters[(0,i.xf)(e)],variation:"tabbed"});render(){const e=(0,i.PM)("tabbed");return e.length?a().createElement("div",{className:"jetpack-instant-search__search-tabbed-filters"},e.map(this.renderStaticFilterComponent)):null}}const p=(0,n.Ng)((e=>({staticFilters:e.staticFilters})),{setStaticFilter:o.$6})(c)},6465:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s.n(r);class n extends r.Component{container=(0,r.createRef)();componentDidMount(){const e=document.getElementsByClassName("jetpack-instant-search__widget-area")[0];e&&(e.style.removeProperty("display"),this.container.current.appendChild(e))}shouldComponentUpdate(){return!1}render(){return a().createElement("div",{className:"jetpack-instant-search__widget-area-container",ref:this.container})}}},9355:(e,t,s)=>{function r(e,t,s){if(!e)return"";const r=decodeURIComponent(e);return(!t||"false"!==r)&&(!(!t||"true"!==r)||(s&&0*+r==0?+r:r))}function a(e,t,s){let a,n;const i={},o=e.split("&");for(t=void 0===t||t,s=void 0===s||s;a=o.shift();)a=a.split("="),n=a.shift(),void 0!==i[n]?i[n]=[].concat(i[n],r(a.shift(),t,s)):i[n]=r(a.shift(),t,s);return i}s.d(t,{D:()=>a})},9470:(e,t,s)=>{s.r(t),s.d(t,{initialize:()=>d});s(7778);var r=s(8864),a=s(1918),n=s(4952),i=s(459),o=s(5678),l=s(7479),c=s(1017),p=s(7574),h=s(1388);const u=()=>{(0,r.render)(a.Ay.createElement(n.Kq,{store:h.A},a.Ay.createElement(i.A,{aggregations:(0,o.q1)([...window[l.O5].widgets,...window[l.O5].widgetsOutsideOverlay]),enableAnalytics:!0,hasOverlayWidgets:!!window[l.O5].hasOverlayWidgets,initialHref:window.location.href,initialIsVisible:window[l.O5].showResults,isInCustomizer:(0,c.XH)(),overlayOptions:window[l.O5].overlayOptions,options:window[l.O5],shouldCreatePortal:!0,shouldIntegrateWithDom:!0,themeOptions:(0,p.E)(window[l.O5])})),document.body)};function d(){window[l.O5]&&"siteId"in window[l.O5]&&u()}},7152:(e,t,s)=>{function r(){return!window.matchMedia("(prefers-reduced-motion: no-preference)").matches}s.d(t,{y:()=>r})},5678:(e,t,s)=>{s.d(t,{$P:()=>b,pA:()=>g,q1:()=>m});s(8411);var r=s(4224),a=s.n(r),n=s(1473),i=s(6195),o=s(5114),l=s(7479),c=s(3089);let p;const h=e=>Array.isArray(e)&&e.length>0,u=(0,o.A)(30,5*l.Az),d=(0,o.A)(30,30*l.Az);function m(e=[]){const t={};return e.forEach((({filters:e})=>e.forEach((e=>{t[e.filter_id]=function(e){switch(e.type){case"date_histogram":return{date_histogram:{field:"post_date_gmt"===e.field?"date_gmt":"date",interval:e.interval}};case"taxonomy":{let t=`taxonomy.${e.taxonomy}.slug_slash_name`;return"post_tag"===e.taxonomy?t="tag.slug_slash_name":"category"===e.taxonomy&&(t="category.slug_slash_name"),{terms:{field:t,size:e.count}}}case"post_type":case"blog_id":return{terms:{field:e.type,size:e.count}};case"author":return{terms:{field:"author_login_slash_name",size:e.count}}}}(e)})))),t}function g(e){return e=e??{},Object.fromEntries(Object.entries(e).filter((([,e])=>e?.buckets?.length>0)).map((([e,t])=>{const s=t.buckets.map((e=>({...e,doc_count:0})));return[e,{...t,buckets:s}]})))}S();const _=/(\d{4})-(\d{2})-(\d{2})/;function y(e,t,s){let r,a;"year"===s&&([,r,,]=t.match(_)),"month"===s&&([,r,a]=t.match(_));let n="",i="";if(a){const e=+a+1;n=`${r}-${a}-01`,i=e<=12?`${r}-${e<10?`0${e}`:`${e}`}-01`:+r+1+"-01-01"}else r&&(n=`${r}-01-01`,i=+r+1+"-01-01");return{range:{[e]:{gte:n,lt:i}}}}const f=new Map([["post_types",e=>({term:{post_type:e}})],["authors",e=>({term:{author_login:e}})],["blog_ids",e=>({term:{blog_id:e}})],["category",e=>({term:{"category.slug":e}})],["post_tag",e=>({term:{"tag.slug":e}})],["month_post_date",e=>y("date",e,"month")],["month_post_date_gmt",e=>y("date_gmt",e,"month")],["month_post_modified",e=>y("date",e,"month")],["month_post_modified_gmt",e=>y("date_gmt",e,"month")],["year_post_date",e=>y("date",e,"year")],["year_post_date_gmt",e=>y("date_gmt",e,"year")],["year_post_modified",e=>y("date",e,"year")],["year_post_modified_gmt",e=>y("date_gmt",e,"year")]]);function E(e){const t={};return Object.keys(e).forEach((s=>{const r=e[s];"group_id"===s&&r!==l.$K&&(t[s]=r)})),t}function v(e,t,s){const r={bool:{must:[]}};return(0,c.Xt)().filter((t=>h(e[t]))).forEach((t=>{e[t].forEach((e=>{f.has(t)?r.bool.must.push(f.get(t)(e)):r.bool.must.push({term:{[`taxonomy.${t}.slug`]:e}})}))})),t&&r.bool.must.push(t),s?.length>0&&r.bool.must.push({bool:{must_not:s.map((e=>f.get("post_types")(e)))}}),r}const k=new Map([["oldest","date_asc"],["newest","date_desc"],["relevance","score_default"]]);function w(e){return["price_asc","price_desc","rating_desc"].includes(e)?e:k.get(e,"score_default")}function S(){p&&p.abort(),p=new AbortController}function b(e,t){const s=a()(Array.from(arguments));if(!navigator.onLine&&d.get(s))return Promise.resolve(d.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!0,...e})));if(u.get(s))return Promise.resolve(u.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!1,...e})));const r=function({aggregations:e,excludedPostTypes:t,filter:s,staticFilters:r,pageHandle:a,query:o,resultFormat:c,sort:p,postsPerPage:h=10,adminQueryFilter:u,isInCustomizer:d=!1,additionalBlogIds:m=[],highlightFields:g=["title","content","comments"]}){null===o&&(o="");let _=["date","permalink.url.raw","tag.name.default","category.name.default","post_type","shortcode_types","forum.topic_resolved"];(c!==l.UM||d)&&(_=_.concat(["has.image","image.url.raw","image.alt_text"])),(c===l.s6||d)&&(_=_.concat(["meta._wc_average_rating.double","meta._wc_review_count.long","wc.formatted_price","wc.formatted_regular_price","wc.formatted_sale_price","wc.price","wc.sale_price"])),r&&r.group_id&&r.group_id!==l.$K&&(_=_.concat(["author","blog_name","blog_icon_url"]));let y={aggregations:e,fields:_,highlight_fields:g,filter:v(s,u,t),query:encodeURIComponent(o),sort:w(p),page_handle:a,size:h};return m?.length>0&&(y.fields=_.concat(["author","blog_name","blog_icon_url","blog_id"]),y.additional_blog_ids=m),r&&Object.keys(r).length>0&&(y={...y,...E(r)}),(0,i.l)((0,n.U)(y))}(e),o=(c=s,function(e){const t=u.get(c)||d.get(c);if("AbortError"===e.name)return t?{_isCached:!0,_isError:!1,_isOffline:!1,...t}:null;if(t)return{_isCached:!0,_isError:!0,_isOffline:!1,...t};throw e});var c;const h=function(e,t){return function(s){const r={...s,requestId:t};return u.set(e,r),d.set(e,r),r}}(s,t),m=`/sites/${e.siteId}/search?${r}`,{apiNonce:g,apiRoot:_,homeUrl:y,isPrivateSite:f,isWpcom:k}=window[l.O5];let b=`https://public-api.wordpress.com/rest/v1.3${m}`;return f&&k?b=`${y}/wp-json/wpcom-origin/v1.3${m}`:f&&(b=`${_}jetpack/v4/search?${r}`),S(),fetch(b,{headers:f?{"X-WP-Nonce":g}:{},credentials:f?"include":"same-origin",signal:p.signal}).then((e=>200!==e.status?e.json().then((e=>{throw new Error(e.error)})):e)).then((e=>e.json())).then(h).catch(o)}},113:(e,t,s)=>{function r(e,t){Array.isArray(e)||(e=[e]);return 0!==e.filter((e=>t.includes(e))).length}s.d(t,{A:()=>r})},7084:(e,t,s)=>{function r(e){const t=function(e){let t;return"#"===e[0]&&(t=e.substring(1)),3===t.length&&(t=t.split("").map((e=>`${e}${e}`)).join("")),t}(e);return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}s.d(t,{d:()=>r})},7574:(e,t,s)=>{function r(e){return[...e.querySelectorAll('input[type="checkbox"]').values()].filter((e=>e.checked)).map((e=>e.name))}function a(e){const t={searchInputSelector:['input[name="s"]:not(.jetpack-instant-search__box-input)',"#searchform input.search-field:not(.jetpack-instant-search__box-input)",".search-form input.search-field:not(.jetpack-instant-search__box-input)",".searchform input.search-field:not(.jetpack-instant-search__box-input)"].join(", "),filterInputSelector:["a.jetpack-search-filter__link"],overlayTriggerSelector:[".jetpack-instant-search__open-overlay-button","header#site-header .search-toggle[data-toggle-target]"].join(",")};return e.theme_options?{...t,...e.theme_options}:t}s.d(t,{E:()=>a,e:()=>r})},9440:(e,t,s)=>{s.d(t,{A:()=>a});const r=()=>{},a=()=>r},6299:(e,t,s)=>{s.d(t,{u:()=>a});var r=s(7723);const __=r.__;function a(e){switch(e?.message){case"service_unavailable":return(0,r.sprintf)( +(0,r.sprintf)(__('No results for "%s"',"jetpack-search-pkg"),t)),this.props.hasError&&i().createElement(d.A,{type:"warning"},(0,c.u)(this.props.response.error)),g&&!this.props.hasError&&this.props.response._isOffline&&i().createElement(d.A,{type:"warning"},(0,c.u)({message:"offline"})),g&&!this.props.hasError&&i().createElement("ol",{className:`jetpack-instant-search__search-results-list is-format-${this.props.resultFormat}`},s.map(((e,t)=>i().createElement(y.A,{index:t,key:t,staticFilters:this.props.staticFilters,isPhotonEnabled:this.props.isPhotonEnabled,locale:this.props.locale,railcar:this.props.isVisible?e.railcar:null,result:e,resultFormat:this.props.resultFormat,searchQuery:this.props.searchQuery,isMultiSite:_,showPostDate:this.props.showPostDate})))),g&&this.props.hasNextPage&&i().createElement("div",{className:"jetpack-instant-search__search-results-pagination"},i().createElement(m.A,{enableLoadOnScroll:this.props.enableLoadOnScroll,isLoading:this.props.isLoading,onLoadNextPage:this.props.onLoadNextPage})))}renderSecondarySection(){return i().createElement(f.A,{filters:this.props.filters,staticFilters:this.props.staticFilters,isLoading:this.props.isLoading,locale:this.props.locale,postTypes:this.props.postTypes,response:this.props.response,widgets:this.props.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay})}closeOverlay=e=>{e.preventDefault(),this.props.closeOverlay()};onKeyPressHandler=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.closeOverlay())};render(){return i().createElement("div",{className:(0,a.A)("jetpack-instant-search__search-results-wrapper",{"has-colophon":this.props.showPoweredBy})},i().createElement("div",{"aria-hidden":!0===this.props.isLoading,className:"jetpack-instant-search__search-results"},i().createElement("div",{className:"jetpack-instant-search__search-results-controls",role:"form"},i().createElement(_.A,{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-results-search-form",isVisible:this.props.isVisible,onChangeSearch:this.props.onChangeSearch,searchQuery:this.props.searchQuery}),i().createElement("button",{className:"jetpack-instant-search__overlay-close",onClick:this.closeOverlay,onKeyPress:this.onKeyPressHandler,tabIndex:"0","aria-label":__("Close search results","jetpack-search-pkg")},i().createElement(h.A,{icon:"cross",size:"24","aria-hidden":"true",focusable:"false"}))),i().createElement(g.A,{enableSort:this.props.enableSort,onChangeSort:this.props.onChangeSort,resultFormat:this.props.resultFormat,sort:this.props.sort},(this.hasFilterOptions()||this.props.hasNonSearchWidgets)&&i().createElement("div",{role:"button",onClick:this.toggleMobileSecondary,onKeyDown:this.toggleMobileSecondary,tabIndex:"0",className:"jetpack-instant-search__search-results-filter-button"},__("Filters","jetpack-search-pkg"),i().createElement(h.A,{icon:"chevron-down",size:16,alt:__("Show search filters","jetpack-search-pkg"),"aria-hidden":"true"}),i().createElement("span",{className:"screen-reader-text assistive-text"},this.state.shouldShowMobileSecondary?__("Hide filters","jetpack-search-pkg"):__("Show filters","jetpack-search-pkg")))),i().createElement("div",{"aria-live":"polite",className:"jetpack-instant-search__search-results-content",id:"jetpack-instant-search__search-results-content"},i().createElement("div",{className:"jetpack-instant-search__search-results-primary"},this.renderPrimarySection()),i().createElement("div",{className:["jetpack-instant-search__search-results-secondary",(this.state.shouldShowMobileSecondary?"jetpack-instant-search__search-results-secondary--show-as-modal":"")+" "].join(" ")},this.renderSecondarySection())),i().createElement("button",{id:l.m2,onClick:this.closeOverlay},"Close Search")),this.props.showPoweredBy&&i().createElement(u.A,{locale:this.props.locale}))}}const k=v},1168:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(7723),a=s(9362),n=s.n(a),i=s(3476);const __=r.__;class o extends a.Component{handleClick=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.dataset.value))};handleSelectChange=e=>{this.props.value!==e.currentTarget.value&&(e.preventDefault(),this.props.onChange(e.currentTarget.value))};render(){const e=(0,i.$)(this.props.resultFormat),t=e.size;let s=0;return e.size>3?n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-select"},n().createElement("label",{htmlFor:"jetpack-instant-search__search-sort-select"},__("Sort:","jetpack-search-pkg")),n().createElement("select",{className:"jetpack-instant-search__search-sort-select",id:"jetpack-instant-search__search-sort-select",onBlur:this.handleSelectChange,onChange:this.handleSelectChange},[...e.entries()].map((([e,t])=>n().createElement("option",{value:e,key:e,selected:this.props.value===e?"selected":""},t))))):n().createElement("div",{"aria-controls":"jetpack-instant-search__search-results-content",className:"jetpack-instant-search__search-sort jetpack-instant-search__search-sort-with-links"},n().createElement("div",{className:"screen-reader-text"},__("Sort by:","jetpack-search-pkg")," "),[...e.entries()].map((([e,r])=>n().createElement(n().Fragment,null,n().createElement("button",{"aria-current":this.props.value===e?"true":"false",className:"jetpack-instant-search__search-sort-option "+(this.props.value===e?"is-selected":""),"data-value":e,key:e,onClick:this.handleClick},r),++s{s.d(t,{A:()=>o});var r=s(9362),a=s.n(r),n=s(1503),i=s(6465);const o=e=>a().createElement("div",{className:"jetpack-instant-search__sidebar"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!0,widget:e.widgetOutsideOverlay}),a().createElement(i.A,null),e.widgets.map((t=>(0,r.createPortal)(a().createElement("div",{id:`${t.widget_id}-portaled-wrapper`,className:"jetpack-instant-search__portaled-wrapper"},a().createElement(n.A,{filters:e.filters,staticFilters:e.staticFilters,loading:e.isLoading,locale:e.locale,postTypes:e.postTypes,results:e.response,showClearFiltersButton:!1,showTitle:!1,widget:t})),document.getElementById(`${t.widget_id}-wrapper`)))))},1080:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(9362),a=s.n(r),n=s(4952),i=s(3089),o=s(999),l=s(5450);class c extends r.Component{onChangeStaticFilter=(e,t)=>{this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:a().createElement(l.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.staticFilters[(0,i.xf)(e)],variation:"tabbed"});render(){const e=(0,i.PM)("tabbed");return e.length?a().createElement("div",{className:"jetpack-instant-search__search-tabbed-filters"},e.map(this.renderStaticFilterComponent)):null}}const p=(0,n.Ng)((e=>({staticFilters:e.staticFilters})),{setStaticFilter:o.$6})(c)},6465:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9362),a=s.n(r);class n extends r.Component{container=(0,r.createRef)();componentDidMount(){const e=document.getElementsByClassName("jetpack-instant-search__widget-area")[0];e&&(e.style.removeProperty("display"),this.container.current.appendChild(e))}shouldComponentUpdate(){return!1}render(){return a().createElement("div",{className:"jetpack-instant-search__widget-area-container",ref:this.container})}}},9355:(e,t,s)=>{function r(e,t,s){if(!e)return"";const r=decodeURIComponent(e);return(!t||"false"!==r)&&(!(!t||"true"!==r)||(s&&0*+r==0?+r:r))}function a(e,t,s){let a,n;const i={},o=e.split("&");for(t=void 0===t||t,s=void 0===s||s;a=o.shift();)a=a.split("="),n=a.shift(),void 0!==i[n]?i[n]=[].concat(i[n],r(a.shift(),t,s)):i[n]=r(a.shift(),t,s);return i}s.d(t,{D:()=>a})},9470:(e,t,s)=>{s.r(t),s.d(t,{initialize:()=>d});s(7778);var r=s(8864),a=s(1918),n=s(4952),i=s(459),o=s(5678),l=s(7479),c=s(1017),p=s(7574),h=s(1388);const u=()=>{(0,r.render)(a.Ay.createElement(n.Kq,{store:h.A},a.Ay.createElement(i.A,{aggregations:(0,o.q1)([...window[l.O5].widgets,...window[l.O5].widgetsOutsideOverlay]),enableAnalytics:!0,hasOverlayWidgets:!!window[l.O5].hasOverlayWidgets,initialHref:window.location.href,initialIsVisible:window[l.O5].showResults,isInCustomizer:(0,c.XH)(),overlayOptions:window[l.O5].overlayOptions,options:window[l.O5],shouldCreatePortal:!0,shouldIntegrateWithDom:!0,themeOptions:(0,p.E)(window[l.O5])})),document.body)};function d(){window[l.O5]&&"siteId"in window[l.O5]&&u()}},7152:(e,t,s)=>{function r(){return!window.matchMedia("(prefers-reduced-motion: no-preference)").matches}s.d(t,{y:()=>r})},5678:(e,t,s)=>{s.d(t,{$P:()=>b,pA:()=>g,q1:()=>m});s(8411);var r=s(4224),a=s.n(r),n=s(1473),i=s(6195),o=s(5114),l=s(7479),c=s(3089);let p;const h=e=>Array.isArray(e)&&e.length>0,u=(0,o.A)(30,5*l.Az),d=(0,o.A)(30,30*l.Az);function m(e=[]){const t={};return e.forEach((({filters:e})=>e.forEach((e=>{t[e.filter_id]=function(e){switch(e.type){case"date_histogram":return{date_histogram:{field:"post_date_gmt"===e.field?"date_gmt":"date",interval:e.interval}};case"taxonomy":{let t=`taxonomy.${e.taxonomy}.slug_slash_name`;return"post_tag"===e.taxonomy?t="tag.slug_slash_name":"category"===e.taxonomy&&(t="category.slug_slash_name"),{terms:{field:t,size:e.count}}}case"post_type":case"blog_id":return{terms:{field:e.type,size:e.count}};case"author":return{terms:{field:"author_login_slash_name",size:e.count}}}}(e)})))),t}function g(e){return e=e??{},Object.fromEntries(Object.entries(e).filter((([,e])=>e?.buckets?.length>0)).map((([e,t])=>{const s=t.buckets.map((e=>({...e,doc_count:0})));return[e,{...t,buckets:s}]})))}S();const _=/(\d{4})-(\d{2})-(\d{2})/;function y(e,t,s){let r,a;"year"===s&&([,r,,]=t.match(_)),"month"===s&&([,r,a]=t.match(_));let n="",i="";if(a){const e=+a+1;n=`${r}-${a}-01`,i=e<=12?`${r}-${e<10?`0${e}`:`${e}`}-01`:+r+1+"-01-01"}else r&&(n=`${r}-01-01`,i=+r+1+"-01-01");return{range:{[e]:{gte:n,lt:i}}}}const f=new Map([["post_types",e=>({term:{post_type:e}})],["authors",e=>({term:{author_login:e}})],["blog_ids",e=>({term:{blog_id:e}})],["category",e=>({term:{"category.slug":e}})],["post_tag",e=>({term:{"tag.slug":e}})],["month_post_date",e=>y("date",e,"month")],["month_post_date_gmt",e=>y("date_gmt",e,"month")],["month_post_modified",e=>y("date",e,"month")],["month_post_modified_gmt",e=>y("date_gmt",e,"month")],["year_post_date",e=>y("date",e,"year")],["year_post_date_gmt",e=>y("date_gmt",e,"year")],["year_post_modified",e=>y("date",e,"year")],["year_post_modified_gmt",e=>y("date_gmt",e,"year")]]);function E(e){const t={};return Object.keys(e).forEach((s=>{const r=e[s];"group_id"===s&&r!==l.$K&&(t[s]=r)})),t}function v(e,t,s){const r={bool:{must:[]}};return(0,c.Xt)().filter((t=>h(e[t]))).forEach((t=>{e[t].forEach((e=>{f.has(t)?r.bool.must.push(f.get(t)(e)):r.bool.must.push({term:{[`taxonomy.${t}.slug`]:e}})}))})),t&&r.bool.must.push(t),s?.length>0&&r.bool.must.push({bool:{must_not:s.map((e=>f.get("post_types")(e)))}}),r}const k=new Map([["oldest","date_asc"],["newest","date_desc"],["relevance","score_default"]]);function w(e){return["price_asc","price_desc","rating_desc"].includes(e)?e:k.get(e,"score_default")}function S(){p&&p.abort(),p=new AbortController}function b(e,t){const s=a()(Array.from(arguments));if(!navigator.onLine&&d.get(s))return Promise.resolve(d.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!0,...e})));if(u.get(s))return Promise.resolve(u.get(s)).then((e=>({_isCached:!0,_isError:!1,_isOffline:!1,...e})));const r=function({aggregations:e,excludedPostTypes:t,filter:s,staticFilters:r,pageHandle:a,query:o,resultFormat:c,sort:p,postsPerPage:h=10,adminQueryFilter:u,isInCustomizer:d=!1,additionalBlogIds:m=[],highlightFields:g=["title","content","comments"]}){null===o&&(o="");let _=["date","permalink.url.raw","tag.name.default","category.name.default","post_type","shortcode_types","forum.topic_resolved"];(c!==l.UM||d)&&(_=_.concat(["has.image","image.url.raw","image.alt_text"])),(c===l.s6||d)&&(_=_.concat(["meta._wc_average_rating.double","meta._wc_review_count.long","wc.formatted_price","wc.formatted_regular_price","wc.formatted_sale_price","wc.price","wc.sale_price"])),r&&r.group_id&&r.group_id!==l.$K&&(_=_.concat(["author","blog_name","blog_icon_url"]));let y={aggregations:e,fields:_,highlight_fields:g,filter:v(s,u,t),query:encodeURIComponent(o),sort:w(p),page_handle:a,size:h};return m?.length>0&&(y.fields=_.concat(["author","blog_name","blog_icon_url","blog_id"]),y.additional_blog_ids=m),r&&Object.keys(r).length>0&&(y={...y,...E(r)}),(0,i.l)((0,n.U)(y))}(e),o=(c=s,function(e){const t=u.get(c)||d.get(c);if("AbortError"===e.name)return t?{_isCached:!0,_isError:!1,_isOffline:!1,...t}:null;if(t)return{_isCached:!0,_isError:!0,_isOffline:!1,...t};throw e});var c;const h=function(e,t){return function(s){const r={...s,requestId:t};return u.set(e,r),d.set(e,r),r}}(s,t),m=`/sites/${e.siteId}/search?${r}`,{apiNonce:g,apiRoot:_,homeUrl:y,isPrivateSite:f,isWpcom:k}=window[l.O5];let b=`https://public-api.wordpress.com/rest/v1.3${m}`;return f&&k?b=`${y}/wp-json/wpcom-origin/v1.3${m}`:f&&(b=`${_}jetpack/v4/search?${r}`),S(),fetch(b,{headers:f?{"X-WP-Nonce":g}:{},credentials:f?"include":"same-origin",signal:p.signal}).then((e=>200!==e.status?e.json().then((e=>{throw new Error(e.error)})):e)).then((e=>e.json())).then(h).catch(o)}},113:(e,t,s)=>{function r(e,t){Array.isArray(e)||(e=[e]);return 0!==e.filter((e=>t.includes(e))).length}s.d(t,{A:()=>r})},7084:(e,t,s)=>{function r(e){const t=function(e){let t;return"#"===e[0]&&(t=e.substring(1)),3===t.length&&(t=t.split("").map((e=>`${e}${e}`)).join("")),t}(e);return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}s.d(t,{d:()=>r})},7574:(e,t,s)=>{function r(e){return[...e.querySelectorAll('input[type="checkbox"]').values()].filter((e=>e.checked)).map((e=>e.name))}function a(e){const t={searchInputSelector:['input[name="s"]:not(.jetpack-instant-search__box-input)',"#searchform input.search-field:not(.jetpack-instant-search__box-input)",".search-form input.search-field:not(.jetpack-instant-search__box-input)",".searchform input.search-field:not(.jetpack-instant-search__box-input)"].join(", "),filterInputSelector:["a.jetpack-search-filter__link"],overlayTriggerSelector:[".jetpack-instant-search__open-overlay-button","header#site-header .search-toggle[data-toggle-target]"].join(",")};return e.theme_options?{...t,...e.theme_options}:t}s.d(t,{E:()=>a,e:()=>r})},9440:(e,t,s)=>{s.d(t,{A:()=>a});const r=()=>{},a=()=>r},6299:(e,t,s)=>{s.d(t,{u:()=>a});var r=s(7723);const __=r.__;function a(e){switch(e?.message){case"service_unavailable":return(0,r.sprintf)( // translators: %s: Error code. __("Jetpack Search is currently unavailable. Please try again later. [%s]","jetpack-search-pkg"),e?.message);case"offline":return __("It looks like you're offline. Please reconnect to load the latest results.","jetpack-search-pkg");default:return(0,r.sprintf)( // translators: %s: Error code. diff --git a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js index 8b3a49c5..89f34470 100644 --- a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js +++ b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js @@ -1 +1 @@ -(()=>{var e,t,r,a,n,o={7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>m,$K:()=>n,Az:()=>w,Hs:()=>_,Md:()=>l,O5:()=>o,QB:()=>k,Ri:()=>d,SK:()=>v,UM:()=>h,Wq:()=>b,ZJ:()=>c,m2:()=>p,s6:()=>f,tr:()=>s,w4:()=>i,x6:()=>g,yj:()=>u});var a=r(7723);const __=a.__,n="__NO_GROUP__",o="JetpackInstantSearchOptions",i="jetpack-instant-search__overlay",s="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",p="jetpack-instant-search__overlay-focus-anchor",d="ASC",u="expanded",h="minimal",f="product",w=6e4,g="relevance",m=1e3,_=["newest","oldest",g,"price_asc","price_desc","rating_desc"],v=[u,h,f],k=new Map([[g,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),b=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},1017:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>i,UC:()=>s,XH:()=>o});var a=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function o(){return"function"==typeof window?.wp?.customize}function i(e){o()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function s(e){o()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[a.O5].showResults=!0,window[a.O5].overlayOptions={...window[a.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7778:(e,t,r)=>{r.p=window.JetpackInstantSearchOptions.webpackPublicPath},7723:e=>{"use strict";e.exports=window.wp.i18n},4252:e=>{"use strict";e.exports=window.wp.jpI18nLoader},3832:e=>{"use strict";e.exports=window.wp.url}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,s),r.exports}s.m=o,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>({106:"jp-search.chunk-main-payload",344:"jp-search.defaultVendors"}[e]+".js?minify=false&ver="+{106:"6578fc7aaa9cf796d658",344:"e5ebee41a5cad7de8b1f"}[e]),s.miniCssF=e=>"jp-search.chunk-main-payload.css?minify=false&ver=9d1725f327b1ce30525f",(()=>{if(!s.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;s.miniCssF=(e=s.miniCssF,t=>{var r="rtl"===document.dir,a=e(t);return r?a.replace(/\.css(?:$|\?)/,".rtl$&"):a})})(),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="jetpack-search:",s.l=(r,a,n,o)=>{if(e[r])e[r].push(a);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),p=0;p{i.onerror=i.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),c&&document.head.appendChild(i)}},r={106:0},s.f.wpI18n=(e,t)=>{r[e]?t.push(r[e]):0===r[e]&&t.push(r[e]=(e=>{var t=s(4252);return t&&t.downloadI18n?t.downloadI18n("build/instant-search/"+s.u(e),"jetpack-search-pkg","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then((()=>{r[e]=!1}),(t=>{r[e]=0,console.error("Failed to fetch i18n data: ",t)})))},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),a=e=>new Promise(((t,r)=>{var a=s.miniCssF(e),n=s.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.onerror=n.onload=o=>{if(n.onerror=n.onload=null,"load"===o.type)r();else{var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=s,n.parentNode.removeChild(n),a(c)}},n.href=t,document.head.appendChild(n)})(e,n,t,r)})),n={498:0},s.f.miniCss=(e,t)=>{n[e]?t.push(n[e]):0!==n[e]&&{106:1}[e]&&t.push(n[e]=a(e).then((()=>{n[e]=0}),(t=>{throw delete n[e],t})))},(()=>{var e={498:0};s.f.j=(t,r)=>{var a=s.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var o=s.p+s.u(t),i=new Error;s.l(o,(r=>{if(s.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,a[1](i)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,o=r[0],i=r[1],c=r[2],l=0;if(o.some((t=>0!==e[t]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)c(s)}for(t&&t(r);l{"use strict";s(7778);var e=s(7479),t=s(1017);function r(){Promise.all([s.e(344),s.e(106)]).then(s.bind(s,9470)).then((e=>e.initialize()))}window[e.O5]&&(0,t.UC)(),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)})()})(); \ No newline at end of file +(()=>{var e,t,r,a,n,o={7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>m,$K:()=>n,Az:()=>w,Hs:()=>_,Md:()=>l,O5:()=>o,QB:()=>k,Ri:()=>d,SK:()=>v,UM:()=>h,Wq:()=>b,ZJ:()=>c,m2:()=>p,s6:()=>f,tr:()=>s,w4:()=>i,x6:()=>g,yj:()=>u});var a=r(7723);const __=a.__,n="__NO_GROUP__",o="JetpackInstantSearchOptions",i="jetpack-instant-search__overlay",s="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",p="jetpack-instant-search__overlay-focus-anchor",d="ASC",u="expanded",h="minimal",f="product",w=6e4,g="relevance",m=1e3,_=["newest","oldest",g,"price_asc","price_desc","rating_desc"],v=[u,h,f],k=new Map([[g,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),b=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},1017:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>i,UC:()=>s,XH:()=>o});var a=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function o(){return"function"==typeof window?.wp?.customize}function i(e){o()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function s(e){o()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[a.O5].showResults=!0,window[a.O5].overlayOptions={...window[a.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7778:(e,t,r)=>{r.p=window.JetpackInstantSearchOptions.webpackPublicPath},7723:e=>{"use strict";e.exports=window.wp.i18n},4252:e=>{"use strict";e.exports=window.wp.jpI18nLoader},3832:e=>{"use strict";e.exports=window.wp.url}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,s),r.exports}s.m=o,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>({106:"jp-search.chunk-main-payload",344:"jp-search.defaultVendors"}[e]+".js?minify=false&ver="+{106:"1592f277d0a325b82a1e",344:"e5ebee41a5cad7de8b1f"}[e]),s.miniCssF=e=>"jp-search.chunk-main-payload.css?minify=false&ver=9d1725f327b1ce30525f",(()=>{if(!s.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;s.miniCssF=(e=s.miniCssF,t=>{var r="rtl"===document.dir,a=e(t);return r?a.replace(/\.css(?:$|\?)/,".rtl$&"):a})})(),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="jetpack-search:",s.l=(r,a,n,o)=>{if(e[r])e[r].push(a);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),p=0;p{i.onerror=i.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),c&&document.head.appendChild(i)}},r={106:0},s.f.wpI18n=(e,t)=>{r[e]?t.push(r[e]):0===r[e]&&t.push(r[e]=(e=>{var t=s(4252);return t&&t.downloadI18n?t.downloadI18n("build/instant-search/"+s.u(e),"jetpack-search-pkg","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then((()=>{r[e]=!1}),(t=>{r[e]=0,console.error("Failed to fetch i18n data: ",t)})))},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),a=e=>new Promise(((t,r)=>{var a=s.miniCssF(e),n=s.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.onerror=n.onload=o=>{if(n.onerror=n.onload=null,"load"===o.type)r();else{var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=s,n.parentNode.removeChild(n),a(c)}},n.href=t,document.head.appendChild(n)})(e,n,t,r)})),n={498:0},s.f.miniCss=(e,t)=>{n[e]?t.push(n[e]):0!==n[e]&&{106:1}[e]&&t.push(n[e]=a(e).then((()=>{n[e]=0}),(t=>{throw delete n[e],t})))},(()=>{var e={498:0};s.f.j=(t,r)=>{var a=s.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var o=s.p+s.u(t),i=new Error;s.l(o,(r=>{if(s.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,a[1](i)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,o=r[0],i=r[1],c=r[2],l=0;if(o.some((t=>0!==e[t]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)c(s)}for(t&&t(r);l{"use strict";s(7778);var e=s(7479),t=s(1017);function r(){Promise.all([s.e(344),s.e(106)]).then(s.bind(s,9470)).then((e=>e.initialize()))}window[e.O5]&&(0,t.UC)(),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)})()})(); \ No newline at end of file diff --git a/jetpack_vendor/i18n-map.php b/jetpack_vendor/i18n-map.php index 888822e2..f1b48211 100644 --- a/jetpack_vendor/i18n-map.php +++ b/jetpack_vendor/i18n-map.php @@ -66,7 +66,7 @@ ), 'jetpack-search-pkg' => array( 'path' => 'jetpack_vendor/automattic/jetpack-search', - 'ver' => '0.45.4-alpha1725997601', + 'ver' => '0.45.4-alpha1726071594', ), 'jetpack-stats' => array( 'path' => 'jetpack_vendor/automattic/jetpack-stats', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 33a06730..497f29a1 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -7,7 +7,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats", - "reference": "5bda99e69b1a5cc306fca7ccda827f82740b31f4" + "reference": "fc0feaf159e3ac40349d98dda0e22efa0d8c3af5" }, "require": { "php": ">=7.0" @@ -60,7 +60,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "2757597c310afebe645a4f39f3069941ec9010c4" + "reference": "712c585897791548c92594e6ec62aa3fb9d4b599" }, "require": { "php": ">=7.0" @@ -125,7 +125,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "590c0fef5bb03afad505e8307d2b09a05dde03d5" + "reference": "892dbdcd666ec9a4e90a67a392775f5388bf156b" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -194,7 +194,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-autoloader", - "reference": "bed9f5b765b00a7d9b8c44728f111583941b2a35" + "reference": "66d5317d866391c35f3df37d3d0fc19435c70fe7" }, "require": { "composer-plugin-api": "^1.1 || ^2.0", @@ -261,7 +261,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-core", - "reference": "5d2a6480edfea1ee255bad2cf231706d1c2437a7" + "reference": "e4a3496e34eb73e64f252b29a58b6325146374f6" }, "require": { "automattic/jetpack-connection": "^4.0.2", @@ -329,7 +329,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score", - "reference": "a78859f23bb20474c92b3be00337ddf5f3c92c17" + "reference": "9e2aa0ba136536b9c735d34c2949af1236af6820" }, "require": { "automattic/jetpack-boost-core": "^0.2.11", @@ -405,7 +405,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin", - "reference": "b4167378bcf2c04b6d00962f355b6da7a5feb263" + "reference": "40dac4348c4cb5d1100d87c64ef00213b9c125fe" }, "require": { "composer-plugin-api": "^2.1.0", @@ -465,7 +465,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-config", - "reference": "df2172662559fe383dd85004d3190ab346ca9351" + "reference": "95ff0a02e1dbab138b60d505fa71502aa37c7dc6" }, "require": { "php": ">=7.0" @@ -540,7 +540,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "1d8142dab80d84e1b0e36f33dadac531276ea24a" + "reference": "d40a8db9ebf175356ff01a7168409cfc2d538703" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -630,7 +630,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "3bd72e657ad802e5dea6ff371472a688ebfbeac2" + "reference": "efe1dfe8b5aecab034c715a76270f98f7c68b405" }, "require": { "php": ">=7.0" @@ -684,7 +684,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "3fede016c6f7d9c252f3258f0c602809d041bd6b" + "reference": "11c6d06487df3e4e01d666ee72ced4f8b1648a4b" }, "require": { "php": ">=7.0" @@ -737,7 +737,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-explat", - "reference": "0af96dd59919cf0556d87612848c8800d415ed17" + "reference": "8a4ecd6665a7e3ce775589536e069aad273a1e6f" }, "require": { "automattic/jetpack-connection": "^4.0.2", @@ -812,7 +812,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "791b1f247c826369cec872b4893c00f1c4e3e190" + "reference": "43c01ac033f261c5b106605082290239583fcaab" }, "require": { "php": ">=7.0" @@ -870,7 +870,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "8e49bcb7791395351529aa1c4e76710493718134" + "reference": "8c7b76c193c72a0defe442941aa858733ef0ebea" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -945,7 +945,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-licensing", - "reference": "f8496aabdb8d8eb062eead2da2b6a74386415143" + "reference": "5ec527b4444b3790b57ed5a8e5d86b04f3be27d8" }, "require": { "automattic/jetpack-connection": "^4.0.2", @@ -1007,7 +1007,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "eca6b828ad922517cceb71ebe63bfead77cf2401" + "reference": "f36d171eb03d5c94793fd73b03f9ff8258a96077" }, "require": { "php": ">=7.0" @@ -1060,7 +1060,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack", - "reference": "194f367c5cdd2b4faa10e544d78cd01c4b8b6335" + "reference": "210c2171f06258e95b344612206bcff975b704cc" }, "require": { "automattic/jetpack-admin-ui": "^0.4.5", @@ -1162,7 +1162,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "5f72097f99fc6eafc522129160dbef9115482d72" + "reference": "0348bc4f76732ac93ce52df22f8945bbaf7688e3" }, "require": { "php": ">=7.0" @@ -1223,7 +1223,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "f0d93f7ec3032cf0eac343a52873d32c3527b28f" + "reference": "7888fbcf6352c910dcdb44916b1923385a6405be" }, "require": { "automattic/jetpack-connection": "^4.0.2", @@ -1291,7 +1291,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer", - "reference": "42c244d692a5606c138dff5b7b9b4b08cc723080" + "reference": "e5ef7bc77a37affc106dacdd0f94e01596162ceb" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -1347,7 +1347,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-models", - "reference": "14ba08d0db22944ab17ca25fa92ae11a8419924b" + "reference": "87c69fa757b27a045f5e5be45726f75bea4a39a1" }, "require": { "php": ">=7.0" @@ -1417,7 +1417,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-status", - "reference": "0fa7256a8fb8a02c35985bd02898c2e0576b8689" + "reference": "d06cc6586799f9abf62973e2e3c56fd3a25a3dbe" }, "require": { "automattic/jetpack-connection": "^4.0.2", @@ -1492,7 +1492,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "5c11e5a782e8f862645c61081ec9adfd6662127a" + "reference": "3fe4daa401108821aaac238e91b16f8802ccf174" }, "require": { "automattic/jetpack-status": "^4.0.1", @@ -1547,7 +1547,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "c5693ba6dcee4f8eba5dd9acae4f3cb6f6ef39c4" + "reference": "cbbdce9aa0afd017d05c1a85b5cb1e9d4ec05032" }, "require": { "php": ">=7.0" @@ -1596,12 +1596,12 @@ }, { "name": "automattic/jetpack-search", - "version": "0.45.4-alpha.1725997601", - "version_normalized": "0.45.4.0-alpha1725997601", + "version": "0.45.4-alpha.1726071594", + "version_normalized": "0.45.4.0-alpha1726071594", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-search", - "reference": "2bb704171e5caa78736a0baf21a571650d9b8cd3" + "reference": "2bddf426c6a5f886575d721c18dea443405cb954" }, "require": { "automattic/jetpack-assets": "^2.3.8", @@ -1689,7 +1689,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats", - "reference": "9ff98c677a689601dfe89b4b8a26612c02568392" + "reference": "fd7783150a8589a766d781080dc4e512b7696b4c" }, "require": { "automattic/jetpack-connection": "^4.0.2", @@ -1756,7 +1756,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "040891580fb688d29e6cf75a2620f7a26108aaa5" + "reference": "cabe7bf2d9bc7dea58dabb903174b16ac4525d6b" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -1820,7 +1820,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "89fc5e9168e0966954e463a17de08b440712e6ef" + "reference": "1535bfd20659dab6f2ecd2aab826aa4b39d832b3" }, "require": { "automattic/jetpack-connection": "^4.0.2", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index a4949baf..f8e95987 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -13,7 +13,7 @@ 'automattic/jetpack-a8c-mc-stats' => array( 'pretty_version' => '2.0.2', 'version' => '2.0.2.0', - 'reference' => '5bda99e69b1a5cc306fca7ccda827f82740b31f4', + 'reference' => 'fc0feaf159e3ac40349d98dda0e22efa0d8c3af5', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-a8c-mc-stats', 'aliases' => array(), @@ -22,7 +22,7 @@ 'automattic/jetpack-admin-ui' => array( 'pretty_version' => '0.4.5', 'version' => '0.4.5.0', - 'reference' => '2757597c310afebe645a4f39f3069941ec9010c4', + 'reference' => '712c585897791548c92594e6ec62aa3fb9d4b599', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-admin-ui', 'aliases' => array(), @@ -31,7 +31,7 @@ 'automattic/jetpack-assets' => array( 'pretty_version' => '2.3.8', 'version' => '2.3.8.0', - 'reference' => '590c0fef5bb03afad505e8307d2b09a05dde03d5', + 'reference' => '892dbdcd666ec9a4e90a67a392775f5388bf156b', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets', 'aliases' => array(), @@ -40,7 +40,7 @@ 'automattic/jetpack-autoloader' => array( 'pretty_version' => '3.1.0', 'version' => '3.1.0.0', - 'reference' => 'bed9f5b765b00a7d9b8c44728f111583941b2a35', + 'reference' => '66d5317d866391c35f3df37d3d0fc19435c70fe7', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/jetpack-boost-core' => array( 'pretty_version' => '0.2.11', 'version' => '0.2.11.0', - 'reference' => '5d2a6480edfea1ee255bad2cf231706d1c2437a7', + 'reference' => 'e4a3496e34eb73e64f252b29a58b6325146374f6', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-core', 'aliases' => array(), @@ -58,7 +58,7 @@ 'automattic/jetpack-boost-speed-score' => array( 'pretty_version' => '0.3.12', 'version' => '0.3.12.0', - 'reference' => 'a78859f23bb20474c92b3be00337ddf5f3c92c17', + 'reference' => '9e2aa0ba136536b9c735d34c2949af1236af6820', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-speed-score', 'aliases' => array(), @@ -67,7 +67,7 @@ 'automattic/jetpack-composer-plugin' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => 'b4167378bcf2c04b6d00962f355b6da7a5feb263', + 'reference' => '40dac4348c4cb5d1100d87c64ef00213b9c125fe', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin', 'aliases' => array(), @@ -76,7 +76,7 @@ 'automattic/jetpack-config' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => 'df2172662559fe383dd85004d3190ab346ca9351', + 'reference' => '95ff0a02e1dbab138b60d505fa71502aa37c7dc6', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-config', 'aliases' => array(), @@ -85,7 +85,7 @@ 'automattic/jetpack-connection' => array( 'pretty_version' => '4.0.2', 'version' => '4.0.2.0', - 'reference' => '1d8142dab80d84e1b0e36f33dadac531276ea24a', + 'reference' => 'd40a8db9ebf175356ff01a7168409cfc2d538703', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-connection', 'aliases' => array(), @@ -94,7 +94,7 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '3bd72e657ad802e5dea6ff371472a688ebfbeac2', + 'reference' => 'efe1dfe8b5aecab034c715a76270f98f7c68b405', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants', 'aliases' => array(), @@ -103,7 +103,7 @@ 'automattic/jetpack-device-detection' => array( 'pretty_version' => '2.1.5-alpha.1726066368', 'version' => '2.1.5.0-alpha1726066368', - 'reference' => '3fede016c6f7d9c252f3258f0c602809d041bd6b', + 'reference' => '11c6d06487df3e4e01d666ee72ced4f8b1648a4b', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-device-detection', 'aliases' => array(), @@ -112,7 +112,7 @@ 'automattic/jetpack-explat' => array( 'pretty_version' => '0.1.8', 'version' => '0.1.8.0', - 'reference' => '0af96dd59919cf0556d87612848c8800d415ed17', + 'reference' => '8a4ecd6665a7e3ce775589536e069aad273a1e6f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-explat', 'aliases' => array(), @@ -121,7 +121,7 @@ 'automattic/jetpack-ip' => array( 'pretty_version' => '0.2.3', 'version' => '0.2.3.0', - 'reference' => '791b1f247c826369cec872b4893c00f1c4e3e190', + 'reference' => '43c01ac033f261c5b106605082290239583fcaab', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-ip', 'aliases' => array(), @@ -130,7 +130,7 @@ 'automattic/jetpack-jitm' => array( 'pretty_version' => '3.1.22', 'version' => '3.1.22.0', - 'reference' => '8e49bcb7791395351529aa1c4e76710493718134', + 'reference' => '8c7b76c193c72a0defe442941aa858733ef0ebea', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-jitm', 'aliases' => array(), @@ -139,7 +139,7 @@ 'automattic/jetpack-licensing' => array( 'pretty_version' => '2.0.9', 'version' => '2.0.9.0', - 'reference' => 'f8496aabdb8d8eb062eead2da2b6a74386415143', + 'reference' => '5ec527b4444b3790b57ed5a8e5d86b04f3be27d8', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-licensing', 'aliases' => array(), @@ -148,7 +148,7 @@ 'automattic/jetpack-logo' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => 'eca6b828ad922517cceb71ebe63bfead77cf2401', + 'reference' => 'f36d171eb03d5c94793fd73b03f9ff8258a96077', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-logo', 'aliases' => array(), @@ -157,7 +157,7 @@ 'automattic/jetpack-my-jetpack' => array( 'pretty_version' => '4.35.6-alpha.1726007201', 'version' => '4.35.6.0-alpha1726007201', - 'reference' => '194f367c5cdd2b4faa10e544d78cd01c4b8b6335', + 'reference' => '210c2171f06258e95b344612206bcff975b704cc', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-my-jetpack', 'aliases' => array(), @@ -166,7 +166,7 @@ 'automattic/jetpack-password-checker' => array( 'pretty_version' => '0.3.2', 'version' => '0.3.2.0', - 'reference' => '5f72097f99fc6eafc522129160dbef9115482d72', + 'reference' => '0348bc4f76732ac93ce52df22f8945bbaf7688e3', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-password-checker', 'aliases' => array(), @@ -175,7 +175,7 @@ 'automattic/jetpack-plans' => array( 'pretty_version' => '0.4.10', 'version' => '0.4.10.0', - 'reference' => 'f0d93f7ec3032cf0eac343a52873d32c3527b28f', + 'reference' => '7888fbcf6352c910dcdb44916b1923385a6405be', 'type' => 'library', 'install_path' => __DIR__ . '/../automattic/jetpack-plans', 'aliases' => array(), @@ -184,7 +184,7 @@ 'automattic/jetpack-plugins-installer' => array( 'pretty_version' => '0.4.3', 'version' => '0.4.3.0', - 'reference' => '42c244d692a5606c138dff5b7b9b4b08cc723080', + 'reference' => 'e5ef7bc77a37affc106dacdd0f94e01596162ceb', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-plugins-installer', 'aliases' => array(), @@ -193,7 +193,7 @@ 'automattic/jetpack-protect-models' => array( 'pretty_version' => '0.2.1', 'version' => '0.2.1.0', - 'reference' => '14ba08d0db22944ab17ca25fa92ae11a8419924b', + 'reference' => '87c69fa757b27a045f5e5be45726f75bea4a39a1', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-models', 'aliases' => array(), @@ -202,7 +202,7 @@ 'automattic/jetpack-protect-status' => array( 'pretty_version' => '0.1.5', 'version' => '0.1.5.0', - 'reference' => '0fa7256a8fb8a02c35985bd02898c2e0576b8689', + 'reference' => 'd06cc6586799f9abf62973e2e3c56fd3a25a3dbe', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-status', 'aliases' => array(), @@ -211,7 +211,7 @@ 'automattic/jetpack-redirect' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '5c11e5a782e8f862645c61081ec9adfd6662127a', + 'reference' => '3fe4daa401108821aaac238e91b16f8802ccf174', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-redirect', 'aliases' => array(), @@ -220,16 +220,16 @@ 'automattic/jetpack-roles' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => 'c5693ba6dcee4f8eba5dd9acae4f3cb6f6ef39c4', + 'reference' => 'cbbdce9aa0afd017d05c1a85b5cb1e9d4ec05032', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-roles', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-search' => array( - 'pretty_version' => '0.45.4-alpha.1725997601', - 'version' => '0.45.4.0-alpha1725997601', - 'reference' => '2bb704171e5caa78736a0baf21a571650d9b8cd3', + 'pretty_version' => '0.45.4-alpha.1726071594', + 'version' => '0.45.4.0-alpha1726071594', + 'reference' => '2bddf426c6a5f886575d721c18dea443405cb954', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-search', 'aliases' => array(), @@ -247,7 +247,7 @@ 'automattic/jetpack-stats' => array( 'pretty_version' => '0.13.2', 'version' => '0.13.2.0', - 'reference' => '9ff98c677a689601dfe89b4b8a26612c02568392', + 'reference' => 'fd7783150a8589a766d781080dc4e512b7696b4c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-stats', 'aliases' => array(), @@ -256,7 +256,7 @@ 'automattic/jetpack-status' => array( 'pretty_version' => '4.0.1', 'version' => '4.0.1.0', - 'reference' => '040891580fb688d29e6cf75a2620f7a26108aaa5', + 'reference' => 'cabe7bf2d9bc7dea58dabb903174b16ac4525d6b', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-status', 'aliases' => array(), @@ -265,7 +265,7 @@ 'automattic/jetpack-sync' => array( 'pretty_version' => '3.13.0-alpha.1726022383', 'version' => '3.13.0.0-alpha1726022383', - 'reference' => '89fc5e9168e0966954e463a17de08b440712e6ef', + 'reference' => '1535bfd20659dab6f2ecd2aab826aa4b39d832b3', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-sync', 'aliases' => array(), diff --git a/vendor/composer/jetpack_autoload_classmap.php b/vendor/composer/jetpack_autoload_classmap.php index 1c10f3b3..b2da2eef 100644 --- a/vendor/composer/jetpack_autoload_classmap.php +++ b/vendor/composer/jetpack_autoload_classmap.php @@ -531,91 +531,91 @@ 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-roles/src/class-roles.php' ), 'Automattic\\Jetpack\\Search\\CLI' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-cli.php' ), 'Automattic\\Jetpack\\Search\\Classic_Search' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php' ), 'Automattic\\Jetpack\\Search\\Customberg' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customberg/class-customberg.php' ), 'Automattic\\Jetpack\\Search\\Customizer' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/class-customizer.php' ), 'Automattic\\Jetpack\\Search\\Dashboard' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-dashboard.php' ), 'Automattic\\Jetpack\\Search\\Excluded_Post_Types_Control' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-excluded-post-types-control.php' ), 'Automattic\\Jetpack\\Search\\Helper' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-helper.php' ), 'Automattic\\Jetpack\\Search\\Initial_State' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-initial-state.php' ), 'Automattic\\Jetpack\\Search\\Initializer' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php' ), 'Automattic\\Jetpack\\Search\\Instant_Search' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/instant-search/class-instant-search.php' ), 'Automattic\\Jetpack\\Search\\Label_Control' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-label-control.php' ), 'Automattic\\Jetpack\\Search\\Module_Control' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-module-control.php' ), 'Automattic\\Jetpack\\Search\\Options' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-options.php' ), 'Automattic\\Jetpack\\Search\\Package' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-package.php' ), 'Automattic\\Jetpack\\Search\\Plan' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-plan.php' ), 'Automattic\\Jetpack\\Search\\REST_Controller' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-rest-controller.php' ), 'Automattic\\Jetpack\\Search\\Search_Widget' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/widgets/class-search-widget.php' ), 'Automattic\\Jetpack\\Search\\Settings' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-settings.php' ), 'Automattic\\Jetpack\\Search\\Stats' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-stats.php' ), 'Automattic\\Jetpack\\Search\\Template_Tags' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-template-tags.php' ), 'Automattic\\Jetpack\\Search\\WPES\\Query_Builder' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-builder.php' ), 'Automattic\\Jetpack\\Search\\WPES\\Query_Parser' => array( - 'version' => '0.45.4.0-alpha1725997601', + 'version' => '0.45.4.0-alpha1726071594', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-parser.php' ), 'Automattic\\Jetpack\\Search_Plugin\\Jetpack_Search_Plugin' => array(