"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[926],{2522:(t,e,n)=>{n.d(e,{D:()=>o});var r=n(32091),i=n.n(r);function o(t,{dateRangeLength:e}){i()(Array.isArray(t),"report must be an array to partition."),i()(Number.isInteger(e)&&e>0,"dateRangeLength must be a positive integer.");const n=-1*e;return{currentRange:t.slice(n),compareRange:t.slice(2*n,n)}}},8143:(t,e,n)=>{n.d(e,{VZ:()=>o,dc:()=>a,pH:()=>i,r0:()=>s});var r=n(84024);function i(t){try{return new URL(t).pathname}catch{}return null}function o(t,e){try{return new URL(e,t).href}catch{}return("string"==typeof t?t:"")+("string"==typeof e?e:"")}function a(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function s(t,e){if(!(0,r.m)(t))return t;if(t.length<=e)return t;const n=new URL(t),i=t.replace(n.origin,"");if(i.length{n.d(e,{tt:()=>$,Jg:()=>T,Gp:()=>b,GH:()=>v,r0:()=>D,Du:()=>S,Zf:()=>H,Cn:()=>j,G7:()=>h,vH:()=>p,N_:()=>P,zh:()=>V,mK:()=>l.mK,Ql:()=>A,vY:()=>x,sq:()=>E,VZ:()=>F.VZ,JK:()=>l.JK,IS:()=>C,pH:()=>F.pH,kf:()=>q,O5:()=>I,Qr:()=>N,x6:()=>U,K5:()=>l.K5,S_:()=>m,dc:()=>F.dc,Eo:()=>l.Eo,jq:()=>l.jq,DK:()=>G.D,N9:()=>K,p9:()=>o.p,XH:()=>L,Zm:()=>c,sx:()=>i.sx,BI:()=>i.BI,CZ:()=>o.C,BG:()=>J});var r=n(17243),i=n(89318),o=n(82046),a=n(10523),s=n.n(a);function c(t){return s()(JSON.stringify(u(t)))}function u(t){const e={};return Object.keys(t).sort().forEach(n=>{let r=t[n];r&&"object"==typeof r&&!Array.isArray(r)&&(r=u(r)),e[n]=r}),e}var l=n(79829);function g(t){return t.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function d(t){return`

${t.replace(/\n{2,}/g,"

")}

`}function f(t){return t.replace(/\n/gi,"
")}function m(t){const e=[g,d,f];let n=t;for(const t of e)n=t(n);return n}function p(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}function h(t){const e=t&&!Number.isInteger(t)?new Date(t).getTime():t;return isNaN(e)||!e?0:e}var y=n(32091),k=n.n(y),_=n(82871);const w="Date param must construct to a valid date instance or be a valid date instance itself.",v="Invalid dateString parameter, it must be a string.",b='Invalid date range, it must be a string with the format "last-x-days".',D=60,T=60*D,$=24*T,S=7*$;function A(){function t(t){return(0,_.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */ (0,_._n)("Last %s day","Last %s days",t,"google-site-kit"),t)}return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}function N(t=""){if(!(0,r.isString)(t))return!1;if(3!==t.split("-").length)return!1;const e=new Date(t);return(0,r.isDate)(e)&&!isNaN(e)}function E(t){k()((0,r.isDate)(t)&&!isNaN(t),w);const e=`${t.getMonth()+1}`,n=`${t.getDate()}`;return[t.getFullYear(),e.length<2?`0${e}`:e,n.length<2?`0${n}`:n].join("-")}function L(t){k()(N(t),v);const[e,n,r]=t.split("-");return new Date(e,n-1,r)}function C(t,e){return E(P(t,e*$))}function I(t){const e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]}function P(t,e){k()(N(t)||(0,r.isDate)(t)&&!isNaN(t),v);const n=N(t)?Date.parse(t):t.getTime();return new Date(n-1e3*e)}var M=n(69743),R=n(94552),O=n(62540);function x(t,e={}){if(Number.isNaN(Number(t)))return"";const{invertColor:n=!1}=e;return(0,M.Ay)((0,O.jsx)(R.A,{direction:t>0?"up":"down",invertColor:n}))}function j(t,e){return t>0&&e>0?t/e-1:t>0?1:e>0?-1:0}var F=n(8143);function U(t){const e=parseFloat(t)||0;return!!Number.isInteger(e)&&e>0}function q(t){if("number"==typeof t)return!0;const e=(t||"").toString();return!!e&&!isNaN(e)}function K(t){return Array.isArray(t)?[...t].sort():t}var G=n(2522);function H(t,e){function n(t){return"0"===t||0===t}if(n(t)&&n(e))return 0;if(n(t)||Number.isNaN(t))return null;const r=(e-t)/t;return Number.isNaN(r)||!Number.isFinite(r)?null:r}function J(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}}function V(t){if(!t)return"";const e=t.replace(/&#(\d+);/g,(t,e)=>String.fromCharCode(e)).replace(/(\\)/g,"");return(0,r.unescape)(e)}},15210:(t,e,n)=>{n.d(e,{O:()=>i});var r=n(31234);const i=n.n(r)()(n.g)},21134:(t,e,n)=>{n.d(e,{Gq:()=>g,IL:()=>p,LD:()=>f,SO:()=>d,a2:()=>i,xD:()=>m});var r=n(12850);const i="googlesitekit_",o=`${i}1.164.0_${n.g._googlesitekitBaseData.storagePrefix}_`,a=["sessionStorage","localStorage"];let s,c=[...a];async function u(t){const e=n.g[t];if(!e)return!1;try{const t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}}async function l(){if(void 0!==s)return s;for(const t of c)s||await u(t)&&(s=n.g[t]);return void 0===s&&(s=null),s}async function g(t){const e=await l();if(e){const n=e.getItem(`${o}${t}`);if(n){const t=JSON.parse(n),{timestamp:e,ttl:r,value:i,isError:o}=t;if(e&&(!r||Math.round(Date.now()/1e3)-e{n.d(e,{A:()=>l});var r=n(19371),i=n(31638);const o=function(t){const e=Object.keys(t).reduce((e,n)=>(e[(0,i.getStablePath)(n)]=t[n],e),{});let n=!1;return(t,r)=>{if(n)return r(t);setTimeout(()=>{n=!0},3e3);const{parse:o=!0}=t,a=t.path;if("string"==typeof t.path){const n=t.method?.toUpperCase()||"GET",r=(0,i.getStablePath)(a);if(o&&"GET"===n&&e[r]){const t=Promise.resolve(e[r].body);return delete e[r],t}if("OPTIONS"===n&&e[n]&&e[n][r]){const t=Promise.resolve(e[n][r]);return delete e[n][r],t}}return r(t)}},{nonce:a,nonceEndpoint:s,preloadedData:c,rootURL:u}=n.g._googlesitekitAPIFetchData||{};r.default.nonceEndpoint=s,r.default.nonceMiddleware=r.default.createNonceMiddleware(a),r.default.rootURLMiddleware=r.default.createRootURLMiddleware(u),r.default.preloadingMiddleware=o(c),r.default.use(r.default.nonceMiddleware),r.default.use(r.default.mediaUploadMiddleware),r.default.use(r.default.rootURLMiddleware),r.default.use(r.default.preloadingMiddleware);const l=r.default},50618:(t,e,n)=>{var r=n(32091),i=n.n(r),o=n(42926),a=n(44451),s=n(21134),c=n(12850),u=n(67150);const l=["fetch_error"],g=[];var d=n(58116);let f=!0;function m(t,e,n,r={}){const i=[t,e,n].filter(t=>!!t&&t.length);return 3===i.length&&r&&r.constructor===Object&&Object.keys(r).length&&i.push((0,c.Zm)(r)),i.join("::")}function p(t){const e=n.g.googlesitekit?.data?.dispatch?.(d.oR);e&&((0,u.G)(t)?e.setPermissionScopeError(t):(0,u.HY)(t)&&e.setAuthError(t))}async function h(t,e,r,{bodyParams:u,cacheTTL:d=c.Jg,method:f="GET",queryParams:h,useCache:k,signal:_}={}){i()(t,"`type` argument for requests is required."),i()(e,"`identifier` argument for requests is required."),i()(r,"`datapoint` argument for requests is required.");const w="GET"===f&&(void 0!==k?k:y()),v=m(t,e,r,h);if(w){const{cacheHit:t,value:e,isError:n}=await(0,s.Gq)(v);if(n)throw p(e),e;if(t)return e}try{const n=await(0,o.A)({data:u,method:f,signal:_,path:(0,a.F)(`/google-site-kit/v1/${t}/${e}/data/${r}`,h)});return w&&await(0,s.SO)(v,n,{ttl:d}),n}catch(i){if(_?.aborted)throw i;throw i?.data?.cacheTTL&&await(0,s.SO)(v,i,{ttl:i.data.cacheTTL,isError:!0}),async function(t){const{method:e,type:n,identifier:r,datapoint:i,error:o}=t,a=`${n}/${r}/data/${i}`;if(g.includes(a))return;if(!o||l.includes(o?.code))return;let s=`code: ${o.code}`;o.data?.reason&&(s+=`, reason: ${o.data.reason}`),await(0,c.sx)("api_error",`${e}:${n}/${r}/data/${i}`,`${o.message} (${s})`,o.data?.status||o.code)}({method:f,datapoint:r,type:t,identifier:e,error:i}),p(i),n.g.console.error("Google Site Kit API Error",`method:${f}`,`datapoint:${r}`,`type:${t}`,`identifier:${e}`,`error:"${i.message}"`),i}}function y(){return f}async function k(t,e,n){const r=m(t,e,n);(await(0,s.xD)()).forEach(t=>{new RegExp(`^${s.a2}([^_]+_){2}${r}`).test(t)&&(0,s.LD)(t)})}const _={invalidateCache:k,get:function(t,e,n,r,{cacheTTL:i=c.Jg,useCache:o,signal:a}={}){return h(t,e,n,{cacheTTL:i,queryParams:r,useCache:o,signal:a})},set:async function(t,e,n,r,{method:i="POST",queryParams:o={},signal:a}={}){const s=await h(t,e,n,{bodyParams:{data:r},method:i,queryParams:o,useCache:!1,signal:a});return await k(t,e,n),s},setUsingCache:function(t){return f=!!t,f},usingCache:y};void 0===n.g.googlesitekit&&(n.g.googlesitekit={}),void 0===n.g.googlesitekit.api&&(n.g.googlesitekit.api=_)},58116:(t,e,n)=>{n.d(e,{$8:()=>a,$Q:()=>f,BT:()=>P,CQ:()=>S,DF:()=>V,GM:()=>$,GT:()=>k,HA:()=>x,HD:()=>d,HP:()=>I,J5:()=>F,JF:()=>N,JK:()=>h,Ml:()=>p,SS:()=>M,UF:()=>l,UY:()=>G,Vl:()=>R,W6:()=>J,Xq:()=>A,YQ:()=>E,Yw:()=>K,dV:()=>C,dX:()=>T,ej:()=>u,em:()=>o,ep:()=>b,fu:()=>w,gC:()=>_,hz:()=>m,jx:()=>g,lV:()=>c,nH:()=>j,oR:()=>r,od:()=>s,p3:()=>y,pG:()=>D,qv:()=>i,qy:()=>L,t1:()=>H,t7:()=>q,tB:()=>v,tK:()=>U,u_:()=>O});const r="core/user",i="connected_url_mismatch",o="__global",a="temporary_persist_permission_error",s="adblocker_active",c=["weekly","monthly","quarterly"],u="googlesitekit_authenticate",l="googlesitekit_setup",g="googlesitekit_view_dashboard",d="googlesitekit_manage_options",f="googlesitekit_read_shared_module_data",m="googlesitekit_manage_module_sharing_options",p="googlesitekit_delegate_module_sharing_management",h="googlesitekit_update_plugins",y="kmAnalyticsAdSenseTopEarningContent",k="kmAnalyticsEngagedTrafficSource",_="kmAnalyticsLeastEngagingPages",w="kmAnalyticsNewVisitors",v="kmAnalyticsPopularAuthors",b="kmAnalyticsPopularContent",D="kmAnalyticsPopularProducts",T="kmAnalyticsReturningVisitors",$="kmAnalyticsTopCities",S="kmAnalyticsTopCitiesDrivingLeads",A="kmAnalyticsTopCitiesDrivingAddToCart",N="kmAnalyticsTopCitiesDrivingPurchases",E="kmAnalyticsTopDeviceDrivingPurchases",L="kmAnalyticsTopConvertingTrafficSource",C="kmAnalyticsTopCountries",I="kmAnalyticsTopPagesDrivingLeads",P="kmAnalyticsTopRecentTrendingPages",M="kmAnalyticsTopTrafficSource",R="kmAnalyticsTopTrafficSourceDrivingAddToCart",O="kmAnalyticsTopTrafficSourceDrivingLeads",x="kmAnalyticsTopTrafficSourceDrivingPurchases",j="kmAnalyticsPagesPerVisit",F="kmAnalyticsVisitLength",U="kmAnalyticsTopReturningVisitorPages",q="kmSearchConsolePopularKeywords",K="kmAnalyticsVisitsPerVisitor",G="kmAnalyticsMostEngagingPages",H="kmAnalyticsTopCategories",J=[y,k,_,w,v,b,D,T,H,$,S,A,N,E,L,C,P,M,R,j,F,U,K,G,H],V=[...J,q]},65214:(t,e,n)=>{n.d(e,{G:()=>i,t:()=>r});const r=new Set(n.g?._googlesitekitBaseData?.enabledFeatures||[]);function i(t,e=r){return e instanceof Set&&e.has(t)}},67150:(t,e,n)=>{n.d(e,{G:()=>u,HY:()=>g,SG:()=>l,db:()=>i,e4:()=>f,vl:()=>d});n(17243);var r=n(82871);const i="missing_required_scopes",o="insufficientPermissions",a="forbidden",s="internal_server_error",c="invalid_json";function u(t){return t?.code===i}function l(t){return[o,a].includes(t?.data?.reason)}function g(t){return!!t?.data?.reconnectURL}function d(t,e){return!(!e?.storeName||l(t)||u(t)||g(t))}function f(t){return t?.code===s?(0,r.__)("There was a critical error on this website while fetching data","google-site-kit"):t?.code===c?(0,r.__)("The server provided an invalid response","google-site-kit"):t?.message}},79829:(t,e,n)=>{n.d(e,{Eo:()=>g,JK:()=>p,K5:()=>m,jq:()=>f,mK:()=>l});var r=n(17243),i=n(50532),o=n.n(i),a=n(82871);function s(t,e={}){const{formatUnit:n,formatDecimal:r}=function(t,e={}){const{hours:n,minutes:r,seconds:i}=c(t);return{hours:n,minutes:r,seconds:i,formatUnit(){const{unitDisplay:o="short",...s}=e,c={unitDisplay:o,...s,style:"unit"};return 0===t?f(i,{...c,unit:"second"}):(0,a.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,a._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?f(i,{...c,unit:"second"}):"",r?f(r,{...c,unit:"minute"}):"",n?f(n,{...c,unit:"hour"}):"").trim()},formatDecimal(){const e=(0,a.sprintf)( // translators: %s: number of seconds with "s" as the abbreviated unit. // translators: %s: number of seconds with "s" as the abbreviated unit. (0,a.__)("%ds","google-site-kit"),i);if(0===t)return e;const o=(0,a.sprintf)( // translators: %s: number of minutes with "m" as the abbreviated unit. // translators: %s: number of minutes with "m" as the abbreviated unit. (0,a.__)("%dm","google-site-kit"),r),s=(0,a.sprintf)( // translators: %s: number of hours with "h" as the abbreviated unit. // translators: %s: number of hours with "h" as the abbreviated unit. (0,a.__)("%dh","google-site-kit"),n);return(0,a.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,a._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?e:"",r?o:"",n?s:"").trim()}}}(t,e);try{return n()}catch{return r()}}function c(t){t=parseInt(t,10),Number.isNaN(t)&&(t=0);return{hours:Math.floor(t/60/60),minutes:Math.floor(t/60%60),seconds:Math.floor(t%60)}}function u(t){return 1e6<=t?Math.round(t/1e5)/10:1e4<=t?Math.round(t/1e3):1e3<=t?Math.round(t/100)/10:t}function l(t){let e={};return"%"===t?e={style:"percent",maximumFractionDigits:2}:"s"===t?e={style:"duration",unitDisplay:"narrow"}:t&&"string"==typeof t?e={style:"currency",currency:t}:(0,r.isPlainObject)(t)&&(e={...t}),e}function g(t,e={}){t=(0,r.isFinite)(t)?t:Number(t),(0,r.isFinite)(t)||(console.warn("Invalid number",t,typeof t),t=0);const n=l(e),{style:i="metric"}=n;return"metric"===i?function(t){const e={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=t?(0,a.sprintf)( // translators: %s: an abbreviated number in millions. // translators: %s: an abbreviated number in millions. (0,a.__)("%sM","google-site-kit"),f(u(t),t%10==0?{}:e)):1e4<=t?(0,a.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,a.__)("%sK","google-site-kit"),f(u(t))):1e3<=t?(0,a.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,a.__)("%sK","google-site-kit"),f(u(t),t%10==0?{}:e)):f(t,{signDisplay:"never",maximumFractionDigits:1})}(t):"duration"===i?s(t,n):"durationISO"===i?function(t){let{hours:e,minutes:n,seconds:r}=c(t);return r=("0"+r).slice(-2),n=("0"+n).slice(-2),e=("0"+e).slice(-2),"00"===e?`${n}:${r}`:`${e}:${n}:${r}`}(t):f(t,n)}const d=o()(console.warn);function f(t,e={}){const{locale:n=p(),...r}=e;try{return new Intl.NumberFormat(n,r).format(t)}catch(e){d(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(n)}, ${JSON.stringify(r)} ).format( ${typeof t} )`,e.message)}const i={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],a={};for(const[t,e]of Object.entries(r))i[t]&&e===i[t]||o.includes(t)||(a[t]=e);try{return new Intl.NumberFormat(n,a).format(t)}catch{return new Intl.NumberFormat(n).format(t)}}function m(t,e={}){const{locale:n=p(),style:r="long",type:i="conjunction"}=e;if(Intl.ListFormat){return new Intl.ListFormat(n,{style:r,type:i}).format(t)} /* translators: used between list items, there is a space after the comma. */const o=(0,a.__)(", ","google-site-kit");return t.join(o)}function p(t=n.g){const e=(0,r.get)(t,["_googlesitekitLegacyData","locale"]);if(e){const t=e.match(/^(\w{2})?(_)?(\w{2})/);if(t&&t[0])return t[0].replace(/_/g,"-")}return t.navigator.language}},82046:(t,e,n)=>{n.d(e,{C:()=>o,p:()=>i});var r=n(15210);function i(t,e={}){return{__html:r.O.sanitize(t,e)}}function o(t){const e="object"==typeof t?t.toString():t;return e?.replace?.(/\/+$/,"")}},82871:t=>{t.exports=googlesitekit.i18n},89318:(t,e,n)=>{n.d(e,{M9:()=>$,sx:()=>D,BI:()=>T});var r=n(17243);const i="_googlesitekitDataLayer",o="data-googlesitekit-gtag";function a(t){return function(){t[i]=t[i]||[],t[i].push(arguments)}}var s=n(65214);const c={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:u=[],isSiteKitScreen:l,trackingEnabled:g,trackingID:d,referenceSiteURL:f,userIDHash:m,isAuthenticated:p,userRoles:h}=n.g._googlesitekitTrackingData||{},{GOOGLESITEKIT_VERSION:y}=n.g,k={activeModules:u,trackingEnabled:g,trackingID:d,referenceSiteURL:f,userIDHash:m,isSiteKitScreen:l,userRoles:h,isAuthenticated:p,pluginVersion:y},{enableTracking:_,disableTracking:w,isTrackingEnabled:v,initializeSnippet:b,trackEvent:D,trackEventOnce:T}=function(t,e=n.g,u=n.g){const l={...c,...t};l.referenceSiteURL&&(l.referenceSiteURL=l.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(t,e){const r=a(e);let c;const{activeModules:u,referenceSiteURL:l,userIDHash:g,userRoles:d=[],isAuthenticated:f,pluginVersion:m}=t;return function(){const{document:e}=n.g;if(void 0===c&&(c=!!e.querySelector(`script[${o}]`)),c)return!1;c=!0;const a=d?.length?d.join(","):"";r("js",new Date),r("config",t.trackingID,{groups:"site_kit",send_page_view:t.isSiteKitScreen,domain:l,plugin_version:m||"",enabled_features:Array.from(s.t).join(","),active_modules:u.join(","),authenticated:f?"1":"0",user_properties:{user_roles:a,user_identifier:g}});const p=e.createElement("script");return p.setAttribute(o,""),p.async=!0,p.src=`https://www.googletagmanager.com/gtag/js?id=${t.trackingID}&l=${i}`,e.head.appendChild(p),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${t.trackingID}&l=${i}`}}}(l,e),d=function(t,e,n,r){const i=a(e);return async function(e,o,a,s){const{trackingEnabled:c}=t;if(!c)return null;n();const u={send_to:"site_kit",event_category:e,event_label:a,value:s};return new Promise(t=>{const n=setTimeout(function(){r.console.warn(`Tracking event "${o}" (category "${e}") took too long to fire.`),t()},1e3);function a(){clearTimeout(n),t()}i("event",o,{...u,event_callback:a}),r._gaUserPrefs?.ioo?.()&&a()})}}(l,e,g,u),f={};return{enableTracking:function(){l.trackingEnabled=!0},disableTracking:function(){l.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!l.trackingEnabled},trackEvent:d,trackEventOnce:function(...t){const e=JSON.stringify(t);f[e]||(f[e]=(0,r.once)(d)),f[e](...t)}}}(k);function $(t){t?_():w()}l&&g&&b()},94552:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(62688),i=n.n(r),o=n(4452),a=n.n(o),s=n(62540);function ChangeArrow({direction:t,invertColor:e,width:n,height:r}){return(0,s.jsx)("svg",{className:a()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${t}`,{"googlesitekit-change-arrow--inverted-color":e}),width:n,height:r,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"})})}ChangeArrow.propTypes={direction:i().string,invertColor:i().bool,width:i().number,height:i().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const c=ChangeArrow}},t=>{t.O(0,[660],()=>{return e=50618,t(t.s=e);var e});t.O()}]);{"translation-revision-date":"2024-07-10 16:02","generator":"WP-CLI\/2.11.0","source":"js\/admin\/taxonomy\/frm_application.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_BR","plural-forms":"nplurals=2; plural=(n != 1);"},"Add Item":["Adicionar item"],"Draft":["Rascunho"],"Edit":["Editar"],"Name":["Nome"],"Next":["Proximo"],"Type":["Tipo"]}}}.e-contact-buttons-var-10{--e-contact-buttons-size-small:40px;--e-contact-buttons-size-medium:48px;--e-contact-buttons-size-large:56px;--e-contact-buttons-svg-size-small:20px;--e-contact-buttons-svg-size-medium:24px;--e-contact-buttons-svg-size-large:28px;--e-contact-buttons-svg-size:var(--e-contact-buttons-svg-size-medium);--e-contact-buttons-horizontal-offset:0;--e-contact-buttons-transition-duration:.3s;--e-contact-buttons-transition:all var(--e-contact-buttons-transition-duration);--e-contact-buttons-contact-gap:4px;--e-contact-buttons-contact-padding-block-end:8px;--e-contact-buttons-contact-padding-block-start:8px;--e-contact-buttons-contact-padding-inline-end:12px;--e-contact-buttons-contact-padding-inline-start:12px;width:auto}.e-contact-buttons-var-10 .has-corners-rounded{--e-contact-buttons-border-radius:20px}.e-contact-buttons-var-10 .has-corners-round{--e-contact-buttons-border-radius:50px}.e-contact-buttons-var-10 .has-corners-sharp{--e-contact-buttons-border-radius:0}.e-contact-buttons-var-10 .has-size-small{--e-contact-buttons-svg-size:var(--e-contact-buttons-svg-size-small)}.e-contact-buttons-var-10 .has-size-medium{--e-contact-buttons-svg-size:var(--e-contact-buttons-svg-size-medium)}.e-contact-buttons-var-10 .has-size-large{--e-contact-buttons-svg-size:var(--e-contact-buttons-svg-size-large)}.e-contact-buttons-var-10 .e-contact-buttons__contact-links{display:flex;gap:var(--e-contact-buttons-contact-gap)}.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-container{align-items:center;display:inline-flex;justify-content:center}.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-container svg{height:var(--e-contact-buttons-svg-size);width:var(--e-contact-buttons-svg-size)}.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-container i{font-size:var(--e-contact-buttons-svg-size)}.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-link{align-items:center;background-color:var(--e-contact-buttons-contact-button-bg);color:var(--e-contact-buttons-contact-button-icon);display:flex;transition:all .3s}.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-link svg{fill:var(--e-contact-buttons-contact-button-icon)}.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-link:focus,.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-link:hover{background-color:var(--e-contact-buttons-contact-button-bg);color:var(--e-contact-buttons-contact-button-icon);transition:all .3s}.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-link:focus svg,.e-contact-buttons-var-10 .e-contact-buttons__contact-icon-link:hover svg{fill:var(--e-contact-buttons-contact-button-icon)}.e-contact-buttons-var-10 .e-contact-buttons__contact-title{display:inline-block;padding-block-end:var(--e-contact-buttons-contact-padding-block-end);padding-block-start:var(--e-contact-buttons-contact-padding-block-start);padding-inline-end:var(--e-contact-buttons-contact-padding-inline-end);padding-inline-start:var(--e-contact-buttons-contact-padding-inline-start)}.e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link{--e-contact-buttons-margin-offset:8px;justify-content:flex-end;padding-inline-end:12px;transform:translateX(calc(-100% + var(--e-contact-buttons-svg-size) * 2 - var(--e-contact-buttons-margin-offset)));transition:var(--e-contact-buttons-transition)}.e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link.has-size-small{--e-contact-buttons-margin-offset:2px}[dir=rtl] .e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link{--e-contact-buttons-margin-offset:2px;transform:translateX(calc(100% - (var(--e-contact-buttons-svg-size) * 2 - var(--e-contact-buttons-margin-offset))))}[dir=rtl] .e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link.has-size-large{--e-contact-buttons-margin-offset:8px}.e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-links{align-items:flex-start;flex-direction:column}.e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link{border-end-end-radius:var(--e-contact-buttons-border-radius);border-end-start-radius:0;border-start-end-radius:var(--e-contact-buttons-border-radius);border-start-start-radius:0}@media (min-width:ELEMENTOR_SCREEN_TABLET_MIN){.e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link:focus,.e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link:hover{transform:none;transition:var(--e-contact-buttons-transition)}}.e-contact-buttons-var-10.has-h-alignment-start .e-contact-buttons__contact-icon-link.active{transform:none;transition:var(--e-contact-buttons-transition)}.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link{--e-contact-buttons-margin-offset:8px;padding-inline-start:12px;transform:translateX(calc(100% - var(--e-contact-buttons-svg-size) * 2 + var(--e-contact-buttons-margin-offset)));transition:var(--e-contact-buttons-transition)}.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link.has-size-small{--e-contact-buttons-margin-offset:2px}[dir=rtl] .e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link{--e-contact-buttons-margin-offset:2px;transform:translateX(calc(-100% + var(--e-contact-buttons-svg-size) * 2 - var(--e-contact-buttons-margin-offset)))}[dir=rtl] .e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link.has-size-large{--e-contact-buttons-margin-offset:8px}@media (min-width:ELEMENTOR_SCREEN_TABLET_MIN){.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link:focus,.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link:hover{transform:none;transition:var(--e-contact-buttons-transition)}}.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link.active{transform:none;transition:var(--e-contact-buttons-transition)}.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-links{align-items:flex-end;flex-direction:column}.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-container{order:1}.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-title{order:2}.e-contact-buttons-var-10.has-h-alignment-end .e-contact-buttons__contact-icon-link{border-end-end-radius:0;border-end-start-radius:var(--e-contact-buttons-border-radius);border-start-end-radius:0;border-start-start-radius:var(--e-contact-buttons-border-radius)}.e-contact-buttons-var-10.has-h-alignment-center .e-contact-buttons__contact-icon-link{flex-direction:column}.e-contact-buttons-var-10.has-h-alignment-center .e-contact-buttons__contact-title{writing-mode:vertical-lr}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-links{align-items:flex-end}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-icon-container{order:1}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-title{order:2}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-icon-link{--e-contact-buttons-margin-offset:14px;border-end-end-radius:0;border-end-start-radius:0;border-start-end-radius:var(--e-contact-buttons-border-radius);border-start-start-radius:var(--e-contact-buttons-border-radius);padding-block-start:12px;transform:translateY(calc(100% - var(--e-contact-buttons-svg-size) * 2 + var(--e-contact-buttons-margin-offset)));transition:var(--e-contact-buttons-transition)}@media (min-width:ELEMENTOR_SCREEN_TABLET_MIN){.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-icon-link:focus,.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-icon-link:hover{transform:none;transition:var(--e-contact-buttons-transition)}}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-icon-link.active{transform:none;transition:var(--e-contact-buttons-transition)}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-bottom .e-contact-buttons__contact-icon-link.has-size-small{--e-contact-buttons-margin-offset:5px}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-top .e-contact-buttons__contact-links{align-items:flex-start}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-top .e-contact-buttons__contact-icon-container{align-items:flex-end}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-top .e-contact-buttons__contact-icon-link{--e-contact-buttons-margin-offset:14px;border-end-end-radius:var(--e-contact-buttons-border-radius);border-end-start-radius:var(--e-contact-buttons-border-radius);border-start-end-radius:0;border-start-start-radius:0;justify-content:flex-end;padding-block-end:12px;transform:translateY(calc(-100% + var(--e-contact-buttons-svg-size) + var(--e-contact-buttons-margin-offset)));transition:var(--e-contact-buttons-transition)}@media (min-width:ELEMENTOR_SCREEN_TABLET_MIN){.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-top .e-contact-buttons__contact-icon-link:focus,.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-top .e-contact-buttons__contact-icon-link:hover{transform:none;transition:var(--e-contact-buttons-transition)}}.e-contact-buttons-var-10.has-h-alignment-center.has-v-alignment-top .e-contact-buttons__contact-icon-link.active{transform:none;transition:var(--e-contact-buttons-transition)}"use strict";(self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[]).push([[396],{9956:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(4846),n(6211);const s="e-handles-inside";class HandlesPosition extends elementorModules.frontend.handlers.Base{onInit(){this.$element.on("mouseenter",this.setHandlesPosition.bind(this))}isSectionScrollSnapEnabled(){return elementor.settings.page.model.attributes.scroll_snap}isFirstElement(){return this.$element[0]===document.querySelector(".elementor-section-wrap > .elementor-element:first-child")}isOverflowHidden(){return"hidden"===this.$element.css("overflow")}getOffset(){if("body"===elementor.config.document.container)return this.$element.offset().top;const e=jQuery(elementor.config.document.container);return this.$element.offset().top-e.offset().top}setHandlesPosition(){const e=elementor.documents.getCurrent();if(!e||!e.container.isEditable())return;if(this.isSectionScrollSnapEnabled())return void this.$element.addClass(s);if(!this.isOverflowHidden()&&!this.isFirstElement())return void this.$element.removeClass(s);const t=this.getOffset(),n=this.$element.find("> .elementor-element-overlay > .elementor-editor-section-settings");t<25?(this.$element.addClass(s),n.css("top",t<-5?-t:"")):this.$element.removeClass(s)}}t.default=HandlesPosition}}]);.e-contact-buttons{--e-contact-buttons-chat-box-width:360px;--e-contact-buttons-size-small:55px;--e-contact-buttons-size-medium:65px;--e-contact-buttons-size-large:75px;--e-contact-buttons-svg-size-small:32px;--e-contact-buttons-svg-size-medium:38px;--e-contact-buttons-svg-size-large:42px;--e-contact-buttons-profile-image-size-small:65px;--e-contact-buttons-profile-image-size-medium:75px;--e-contact-buttons-profile-image-size-large:85px;--e-contact-buttons-dot:red;--e-contact-buttons-dot-size:16px;--e-contact-buttons-profile-dot-bg:#39aa59;--e-contact-buttons-border-radius:20px;--e-contact-button-chat-button-animation-delay:0;--e-contact-buttons-icon-size-small:45px;--e-contact-buttons-icon-size-medium:50px;--e-contact-buttons-icon-size-large:55px;--e-contact-buttons-contact-gap:15px;--e-contact-buttons-horizontal-offset:25px;--e-contact-buttons-vertical-offset:25px;--e-contact-buttons-box-shadow:4px 4px 10px 0px rgba(0,0,0,.15);--e-contact-buttons-drop-shadow:drop-shadow(4px 4px 10px rgba(0,0,0,.15));--e-contact-buttons-button-bg:#467ff7;--e-contact-buttons-button-bg-hover:#1c2448;--e-contact-buttons-button-icon:#fff;--e-contact-buttons-button-icon-hover:#fff;--e-contact-buttons-top-bar-bg:#1c2448;--e-contact-buttons-top-bar-title:#fff;--e-contact-buttons-top-bar-subtitle:#fff;--e-contact-buttons-close-button-color:#fff;--e-contact-buttons-active-button-bg:#fff;--e-contact-buttons-message-bubble-name:#000;--e-contact-buttons-message-bubble-body:#000;--e-contact-buttons-message-bubble-time:#000;--e-contact-buttons-message-bubble-bubble-bg:#fff;--e-contact-buttons-message-bubble-chat-bg:#c8d5dc;--e-contact-buttons-send-button-icon:#fff;--e-contact-buttons-send-button-bg:#467ff7;--e-contact-buttons-send-button-icon-hover:#fff;--e-contact-buttons-send-button-bg-hover:#1c2448;--e-contact-buttons-chat-box-bg:#fff;--e-contact-buttons-contact-button-icon:#fff;--e-contact-buttons-contact-button-icon-hover:#fff;--e-contact-buttons-contact-button-bg:#467ff7;--e-contact-buttons-contact-button-bg-hover:#1c2448;--e-contact-buttons-tooltip-text:#1c2448;--e-contact-buttons-tooltip-bg:#fff;--e-contact-buttons-contact-title-text-color:#1c2448;--e-contact-buttons-contact-description-text-color:#1c2448;display:flex;flex-direction:column;gap:20px;pointer-events:none;position:fixed;width:var(--e-contact-buttons-chat-box-width);z-index:10000}@media (max-width:767px){.e-contact-buttons{inset-inline-end:0;width:90vw}}.e-contact-buttons.has-h-alignment-start{inset-inline-start:var(--e-contact-buttons-horizontal-offset);justify-content:flex-start}@media (max-width:767px){.e-contact-buttons.has-h-alignment-start{inset-inline-start:0}}.e-contact-buttons.has-h-alignment-start .e-contact-buttons__chat-button-container{justify-content:flex-start;padding-inline-end:0;padding-inline-start:20px}@media (max-width:767px){.e-contact-buttons.has-h-alignment-start .e-contact-buttons__chat-button-container{inset-inline-end:unset;inset-inline-start:var(--e-contact-buttons-horizontal-offset)}}.e-contact-buttons.has-h-alignment-end{align-items:flex-end;inset-inline-end:var(--e-contact-buttons-horizontal-offset);justify-content:flex-end}.e-contact-buttons.has-h-alignment-end .e-contact-buttons__chat-button-container{inset-inline-end:var(--e-contact-buttons-horizontal-offset);justify-content:flex-end;padding-inline-end:20px}@media (max-width:767px){.e-contact-buttons.has-h-alignment-end .e-contact-buttons__chat-button-container{inset-inline-end:unset}}.e-contact-buttons.has-h-alignment-center{inset-inline-start:50%;justify-content:center;transform:translateX(-50%)}.e-contact-buttons.has-h-alignment-center .e-contact-buttons__chat-button-container{justify-content:center;padding-inline:0}.e-contact-buttons.has-h-alignment-center .e-contact-buttons__content-wrapper{inset-inline-end:calc(var(--e-contact-buttons-chat-box-width) / 2 - 40px);position:relative}.e-contact-buttons.has-v-alignment-top{top:var(--e-contact-buttons-vertical-offset)}.e-contact-buttons.has-v-alignment-top .e-contact-buttons__content-wrapper{order:2}.e-contact-buttons.has-v-alignment-top .e-contact-buttons__chat-button-container{order:1}.e-contact-buttons.has-v-alignment-middle{align-items:center;flex-direction:row;top:50%;transform:translateY(-50%)}.e-contact-buttons.has-v-alignment-middle .e-contact-buttons__chat-button-container{padding-inline:0}.e-contact-buttons.has-v-alignment-middle.has-h-alignment-start .e-contact-buttons__content-wrapper{order:2}.e-contact-buttons.has-v-alignment-middle.has-h-alignment-start .e-contact-buttons__chat-button-container{order:1;padding-inline:0}.e-contact-buttons.has-h-alignment-center.has-v-alignment-middle{flex-direction:column;transform:translate(-50%,-50%)}.e-contact-buttons.has-v-alignment-bottom{bottom:var(--e-contact-buttons-vertical-offset)}.e-contact-buttons.has-platform-whatsapp{--e-contact-buttons-button-bg:#25d366;--e-contact-buttons-button-bg-hover:#075e54;--e-contact-buttons-button-icon:#fff;--e-contact-buttons-button-icon-hover:#fff;--e-contact-buttons-top-bar-bg:#075e54;--e-contact-buttons-top-bar-title:#fff;--e-contact-buttons-top-bar-subtitle:#fff;--e-contact-buttons-close-button-color:#fff;--e-contact-buttons-message-bubble-body:#000;--e-contact-buttons-message-bubble-time:#000;--e-contact-buttons-message-bubble-name:#000;--e-contact-buttons-message-bubble-bubble-bg:#fff;--e-contact-buttons-message-bubble-chat-bg:#ece5dd;--e-contact-buttons-send-button-icon:#fff;--e-contact-buttons-send-button-bg:#25d366;--e-contact-buttons-send-button-icon-hover:#fff;--e-contact-buttons-send-button-bg-hover:#075e54;--e-contact-buttons-chat-box-bg:#fff}.e-contact-buttons.has-platform-skype{--e-contact-buttons-button-bg:#00aff0;--e-contact-buttons-button-bg-hover:#0d72cf;--e-contact-buttons-button-icon:#fff;--e-contact-buttons-button-icon-hover:#fff;--e-contact-buttons-top-bar-bg:#0d72cf;--e-contact-buttons-top-bar-title:#fff;--e-contact-buttons-top-bar-subtitle:#fff;--e-contact-buttons-close-button-color:#fff;--e-contact-buttons-message-bubble-body:#000;--e-contact-buttons-message-bubble-time:#000;--e-contact-buttons-message-bubble-name:#000;--e-contact-buttons-message-bubble-bubble-bg:#fff;--e-contact-buttons-message-bubble-chat-bg:#cdf7ff;--e-contact-buttons-send-button-icon:#fff;--e-contact-buttons-send-button-bg:#00aff0;--e-contact-buttons-send-button-icon-hover:#fff;--e-contact-buttons-send-button-bg-hover:#0d72cf;--e-contact-buttons-chat-box-bg:#fff}.e-contact-buttons.has-platform-messenger{--e-contact-buttons-button-bg:#168aff;--e-contact-buttons-button-bg-hover:#168aff;--e-contact-buttons-button-icon:#fff;--e-contact-buttons-button-icon-hover:#fff;--e-contact-buttons-top-bar-bg:#168aff;--e-contact-buttons-top-bar-title:#fff;--e-contact-buttons-top-bar-subtitle:#fff;--e-contact-buttons-close-button-color:#fff;--e-contact-buttons-message-bubble-body:#000;--e-contact-buttons-message-bubble-time:#000;--e-contact-buttons-message-bubble-name:#000;--e-contact-buttons-message-bubble-bubble-bg:#fff;--e-contact-buttons-message-bubble-chat-bg:#f0f0f0;--e-contact-buttons-send-button-icon:#fff;--e-contact-buttons-send-button-bg:#168aff;--e-contact-buttons-send-button-icon-hover:#fff;--e-contact-buttons-send-button-bg-hover:#168aff;--e-contact-buttons-chat-box-bg:#fff}.e-contact-buttons.has-platform-viber{--e-contact-buttons-button-bg:#7360f2;--e-contact-buttons-button-bg-hover:#4e4879;--e-contact-buttons-button-icon:#fff;--e-contact-buttons-button-icon-hover:#fff;--e-contact-buttons-top-bar-bg:#4e4879;--e-contact-buttons-top-bar-title:#fff;--e-contact-buttons-top-bar-subtitle:#fff;--e-contact-buttons-close-button-color:#fff;--e-contact-buttons-message-bubble-body:#000;--e-contact-buttons-message-bubble-time:#000;--e-contact-buttons-message-bubble-name:#000;--e-contact-buttons-message-bubble-bubble-bg:#fff;--e-contact-buttons-message-bubble-chat-bg:#e5e1ff;--e-contact-buttons-send-button-icon:#fff;--e-contact-buttons-send-button-bg:#7360f2;--e-contact-buttons-send-button-icon-hover:#fff;--e-contact-buttons-send-button-bg-hover:#4e4879;--e-contact-buttons-chat-box-bg:#fff}.e-contact-buttons.has-platform-waze{--e-contact-buttons-button-bg:#3cf;--e-contact-buttons-button-bg-hover:#09f;--e-contact-buttons-button-icon:#fff;--e-contact-buttons-button-icon-hover:#fff;--e-contact-buttons-top-bar-bg:#09f;--e-contact-buttons-top-bar-title:#fff;--e-contact-buttons-top-bar-subtitle:#fff;--e-contact-buttons-close-button-color:#fff;--e-contact-buttons-message-bubble-body:#000;--e-contact-buttons-message-bubble-time:#000;--e-contact-buttons-message-bubble-name:#000;--e-contact-buttons-message-bubble-bubble-bg:#fff;--e-contact-buttons-message-bubble-chat-bg:#ece5dd;--e-contact-buttons-send-button-icon:#fff;--e-contact-buttons-send-button-bg:#3cf;--e-contact-buttons-send-button-icon-hover:#fff;--e-contact-buttons-send-button-bg-hover:#09f;--e-contact-buttons-chat-box-bg:#fff}.e-contact-buttons.has-corners-rounded{--e-contact-buttons-border-radius:20px}.e-contact-buttons.has-corners-round{--e-contact-buttons-border-radius:50px}.e-contact-buttons.has-corners-sharp{--e-contact-buttons-border-radius:0}.e-contact-buttons:not(.has-animations) .e-contact-buttons__content-wrapper.hidden{display:none}.e-contact-buttons.has-animations .e-contact-buttons__content-wrapper.hidden{display:block;transition:1s;visibility:hidden}.e-contact-buttons.has-animations .e-contact-buttons__content-wrapper.animated-wrapper{animation:e-contact-buttons-close 1s;opacity:0;transform:none;visibility:hidden}.e-contact-buttons__chat-button-shadow,.e-contact-buttons__contact-box-shadow,.e-contact-buttons__contact-box-shadow:is(a),.e-contact-buttons__content{box-shadow:var(--e-contact-buttons-box-shadow)}.e-contact-buttons__chat-button-drop-shadow{filter:var(--e-contact-buttons-drop-shadow)}.e-contact-buttons__content{border-radius:var(--e-contact-buttons-border-radius);font-family:var(--e-global-typography-text-font-family,"Poppins"),Sans-serif;overflow:hidden}.e-contact-buttons__top-bar{align-items:center;background-color:var(--e-contact-buttons-top-bar-bg);display:flex;gap:20px;padding:20px;position:relative}.e-contact-buttons__top-bar-title{color:var(--e-contact-buttons-top-bar-title);font-size:24px;font-weight:700;margin-block-end:0}.e-contact-buttons__top-bar-subtitle{color:var(--e-contact-buttons-top-bar-subtitle);font-size:20px;margin-block-end:0}.e-contact-buttons__profile-image{align-items:center;display:flex;position:relative}.e-contact-buttons__profile-image img{border-radius:50%;-o-object-fit:cover;object-fit:cover}.e-contact-buttons__profile-image.has-size-small img{height:var(--e-contact-buttons-profile-image-size-small);width:var(--e-contact-buttons-profile-image-size-small)}.e-contact-buttons__profile-image.has-size-medium img{height:var(--e-contact-buttons-profile-image-size-medium);width:var(--e-contact-buttons-profile-image-size-medium)}.e-contact-buttons__profile-image.has-size-large img{height:var(--e-contact-buttons-profile-image-size-large);width:var(--e-contact-buttons-profile-image-size-large)}.e-contact-buttons__profile-image.has-dot:after{background-color:var(--e-contact-buttons-profile-dot-bg);border:3px solid var(--e-contact-buttons-top-bar-bg);border-radius:50%;bottom:5px;content:"";height:20px;position:absolute;right:0;width:20px}.e-contact-buttons__close-button,.e-contact-buttons__close-button[type=button]{background:none;border:0;color:var(--e-contact-buttons-close-button-color);inset-inline-end:20px;padding:0;position:absolute;top:20px}.e-contact-buttons__close-button:focus,.e-contact-buttons__close-button:hover,.e-contact-buttons__close-button[type=button]:focus,.e-contact-buttons__close-button[type=button]:hover{background:none;border:0;color:var(--e-contact-buttons-close-button-color)}.e-contact-buttons__chat-button-container,.e-contact-buttons__contact-icon-link,.e-contact-buttons__content-wrapper{pointer-events:auto}.e-contact-buttons__chat-button-container{display:flex;max-width:-moz-max-content;max-width:max-content}@media (max-width:767px){.e-contact-buttons__chat-button-container{position:relative}}.e-contact-buttons__chat-button,.e-contact-buttons__chat-button[type=button]{align-items:center;background-color:var(--e-contact-buttons-button-bg);border:0;border-radius:50%;color:var(--e-contact-buttons-button-icon);display:flex;justify-content:center;padding:0;position:relative;transition:all .3s}.e-contact-buttons__chat-button svg,.e-contact-buttons__chat-button[type=button] svg{fill:var(--e-contact-buttons-button-icon)}.e-contact-buttons__chat-button:focus,.e-contact-buttons__chat-button:hover,.e-contact-buttons__chat-button[type=button]:focus,.e-contact-buttons__chat-button[type=button]:hover{background-color:var(--e-contact-buttons-button-bg-hover);color:var(--e-contact-buttons-button-icon-hover);transition:all .3s}.e-contact-buttons__chat-button:focus svg,.e-contact-buttons__chat-button:hover svg,.e-contact-buttons__chat-button[type=button]:focus svg,.e-contact-buttons__chat-button[type=button]:hover svg{fill:var(--e-contact-buttons-button-icon-hover)}.e-contact-buttons__chat-button.has-dot:after,.e-contact-buttons__chat-button[type=button].has-dot:after{background-color:var(--e-contact-buttons-dot);border-radius:50%;content:"";height:var(--e-contact-buttons-dot-size);position:absolute;right:0;top:0;width:var(--e-contact-buttons-dot-size)}.e-contact-buttons__chat-button.has-size-small,.e-contact-buttons__chat-button[type=button].has-size-small{height:var(--e-contact-buttons-size-small);width:var(--e-contact-buttons-size-small)}.e-contact-buttons__chat-button.has-size-small svg,.e-contact-buttons__chat-button[type=button].has-size-small svg{height:var(--e-contact-buttons-svg-size-small);width:var(--e-contact-buttons-svg-size-small)}.e-contact-buttons__chat-button.has-size-small i,.e-contact-buttons__chat-button[type=button].has-size-small i{font-size:var(--e-contact-buttons-svg-size-small)}.e-contact-buttons__chat-button.has-size-medium,.e-contact-buttons__chat-button[type=button].has-size-medium{height:var(--e-contact-buttons-size-medium);width:var(--e-contact-buttons-size-medium)}.e-contact-buttons__chat-button.has-size-medium svg,.e-contact-buttons__chat-button[type=button].has-size-medium svg{height:var(--e-contact-buttons-svg-size-medium);width:var(--e-contact-buttons-svg-size-medium)}.e-contact-buttons__chat-button.has-size-medium i,.e-contact-buttons__chat-button[type=button].has-size-medium i{font-size:var(--e-contact-buttons-svg-size-medium)}.e-contact-buttons__chat-button.has-size-large,.e-contact-buttons__chat-button[type=button].has-size-large{height:var(--e-contact-buttons-size-large);width:var(--e-contact-buttons-size-large)}.e-contact-buttons__chat-button.has-size-large svg,.e-contact-buttons__chat-button[type=button].has-size-large svg{height:var(--e-contact-buttons-svg-size-large);width:var(--e-contact-buttons-svg-size-large)}.e-contact-buttons__chat-button.has-size-large i,.e-contact-buttons__chat-button[type=button].has-size-large i{font-size:var(--e-contact-buttons-svg-size-large)}.e-contact-buttons__chat-button.has-entrance-animation-delay,.e-contact-buttons__chat-button[type=button].has-entrance-animation-delay{animation-delay:var(--e-contact-button-chat-button-animation-delay)}.e-contact-buttons__chat-button.has-entrance-animation-duration-slow,.e-contact-buttons__chat-button[type=button].has-entrance-animation-duration-slow{animation-duration:2s}.e-contact-buttons__chat-button.has-entrance-animation-duration-normal,.e-contact-buttons__chat-button[type=button].has-entrance-animation-duration-normal{animation-duration:1s}.e-contact-buttons__chat-button.has-entrance-animation-duration-fast,.e-contact-buttons__chat-button[type=button].has-entrance-animation-duration-fast{animation-duration:.8s}.e-contact-buttons__chat-button.has-entrance-animation,.e-contact-buttons__chat-button[type=button].has-entrance-animation{opacity:0}.e-contact-buttons__chat-button.visible,.e-contact-buttons__chat-button[type=button].visible{opacity:1}.e-contact-buttons__message-bubble{background-color:var(--e-contact-buttons-message-bubble-chat-bg);padding:25px 20px;padding-inline-start:40px}.e-contact-buttons__message-bubble.has-typing-animation .e-contact-buttons__bubble-container{height:0;opacity:0;visibility:hidden}.e-contact-buttons__bubble{background-color:var(--e-contact-buttons-message-bubble-bubble-bg);border-radius:15px;padding:20px;position:relative}.e-contact-buttons__bubble:after{border-block-end-color:transparent;border-block-end-width:40px;border-block-start-color:transparent;border-block-start-width:0;border-inline-end-color:var(--e-contact-buttons-message-bubble-bubble-bg);border-inline-end-width:40px;border-inline-start-color:transparent;border-inline-start-width:0;border-style:solid;content:"";height:0;inset-inline-start:-20px;position:absolute;top:0;width:0}.e-contact-buttons__message-bubble-name{color:var(--e-contact-buttons-message-bubble-name);font-size:20px;font-weight:600;line-height:25px;margin-block-end:8px}.e-contact-buttons__message-bubble-body{color:var(--e-contact-buttons-message-bubble-body);font-size:20px;line-height:25px;margin-block-end:8px}.e-contact-buttons__message-bubble-time{color:var(--e-contact-buttons-message-bubble-time);font-size:20px;font-weight:600;line-height:25px;margin-block-end:0;text-align:end}.e-contact-buttons__powered-container{text-align:center}.e-contact-buttons__powered-text{color:#000;font-size:16px;font-weight:500;margin-block-end:12px}.e-contact-buttons__dots-container{background-color:var(--e-contact-buttons-message-bubble-bubble-bg);border-radius:15px;display:inline-flex;padding:10px 12px}.e-contact-buttons__dot{animation:e-contact-buttons-typing-jump 1s infinite;background-color:var(--e-contact-buttons-message-bubble-name);border-radius:50%;display:inline-block;height:7px;margin-left:auto;margin-right:3px;position:relative;width:7px}.e-contact-buttons__dot-1{animation-delay:.2s}.e-contact-buttons__dot-2{animation-delay:.4s}.e-contact-buttons__dot-3{animation-delay:.6s}.e-contact-buttons__send-button{background-color:var(--e-contact-buttons-chat-box-bg);padding:12px 20px 20px}.e-contact-buttons__send-button .e-contact-buttons__send-cta{color:var(--e-contact-buttons-send-button-icon)}.e-contact-buttons__send-button .e-contact-buttons__send-cta:focus,.e-contact-buttons__send-button .e-contact-buttons__send-cta:hover{color:var(--e-contact-buttons-send-button-icon-hover)}.e-contact-buttons__send-cta{align-items:center;background-color:var(--e-contact-buttons-send-button-bg);border-radius:30px;display:flex;font-size:18px;font-weight:500;gap:8px;justify-content:center;padding:10px;text-align:center;transition:all .3s;width:100%}.e-contact-buttons__send-cta svg{fill:var(--e-contact-buttons-send-button-icon);height:28px;width:28px}.e-contact-buttons__send-cta:focus,.e-contact-buttons__send-cta:hover{background-color:var(--e-contact-buttons-send-button-bg-hover);transition:all .3s}.e-contact-buttons__send-cta:focus svg,.e-contact-buttons__send-cta:hover svg{fill:var(--e-contact-buttons-send-button-icon-hover)}.e-contact-buttons__content.visible .e-contact-buttons__message-bubble.has-typing-animation .e-contact-buttons__dots-container{animation-delay:0;animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:1;animation-name:e-contact-buttons-disappear}.e-contact-buttons__content.visible .e-contact-buttons__message-bubble.has-typing-animation .e-contact-buttons__bubble-container{animation-delay:2s;animation-duration:.1s;animation-fill-mode:forwards;animation-iteration-count:1;animation-name:e-contact-buttons-appear}.e-con:has(.e-contact-buttons)>.e-con-inner,.e-con>.e-con-inner.e-con-inner--floating-buttons{padding-block-end:0;padding-block-start:0}@keyframes e-contact-buttons-typing-jump{0%{bottom:0}20%{bottom:5px}40%{bottom:0}}@keyframes e-contact-buttons-appear{0%{height:0;opacity:0;visibility:hidden}to{height:auto;opacity:1;visibility:visible}}@keyframes e-contact-buttons-disappear{0%{display:inline-flex}to{display:none}}@keyframes e-contact-buttons-close{0%,99.99%{opacity:1;visibility:visible}to{opacity:0;transform:none;visibility:hidden}}/*global woocommerce_admin_meta_boxes */ jQuery( function( $ ) { // Scroll to first checked category // https://github.com/scribu/wp-category-checklist-tree/blob/d1c3c1f449e1144542efa17dde84a9f52ade1739/category-checklist-tree.php $( function() { $( '[id$="-all"] > ul.categorychecklist' ).each( function() { var $list = $( this ); var $firstChecked = $list.find( ':checked' ).first(); if ( ! $firstChecked.length ) { return; } var pos_first = $list.find( 'input' ).position().top; var pos_checked = $firstChecked.position().top; $list.closest( '.tabs-panel' ).scrollTop( pos_checked - pos_first + 5 ); }); }); // Prevent enter submitting post form. $( '#upsell_product_data' ).on( 'keypress', function( e ) { if ( e.keyCode === 13 ) { return false; } }); // Type box. if ( $( 'body' ).hasClass( 'wc-wp-version-gte-55' ) ) { $( '.type_box' ).appendTo( '#woocommerce-product-data .hndle' ); } else { $( '.type_box' ).appendTo( '#woocommerce-product-data .hndle span' ); } $( function() { var woocommerce_product_data = $( '#woocommerce-product-data' ); // Prevent inputs in meta box headings opening/closing contents. woocommerce_product_data.find( '.hndle' ).off( 'click.postboxes' ); woocommerce_product_data.on( 'click', '.hndle', function( event ) { // If the user clicks on some form input inside the h3 the box should not be toggled. if ( $( event.target ).filter( 'input, option, label, select' ).length ) { return; } if ( woocommerce_product_data.hasClass( 'closed' ) ) { woocommerce_product_data.removeClass( 'closed' ); } else { woocommerce_product_data.addClass( 'closed' ); } }); }); // Catalog Visibility. $( '#catalog-visibility' ).find( '.edit-catalog-visibility' ).on( 'click', function() { if ( $( '#catalog-visibility-select' ).is( ':hidden' ) ) { $( '#catalog-visibility-select' ).slideDown( 'fast' ); $( this ).hide(); } return false; }); $( '#catalog-visibility' ).find( '.save-post-visibility' ).on( 'click', function() { $( '#catalog-visibility-select' ).slideUp( 'fast' ); $( '#catalog-visibility' ).find( '.edit-catalog-visibility' ).show(); var label = $( 'input[name=_visibility]:checked' ).attr( 'data-label' ); if ( $( 'input[name=_featured]' ).is( ':checked' ) ) { label = label + ', ' + woocommerce_admin_meta_boxes.featured_label; $( 'input[name=_featured]' ).attr( 'checked', 'checked' ); } $( '#catalog-visibility-display' ).text( label ); return false; }); $( '#catalog-visibility' ).find( '.cancel-post-visibility' ).on( 'click', function() { $( '#catalog-visibility-select' ).slideUp( 'fast' ); $( '#catalog-visibility' ).find( '.edit-catalog-visibility' ).show(); var current_visibility = $( '#current_visibility' ).val(); var current_featured = $( '#current_featured' ).val(); $( 'input[name=_visibility]' ).prop( 'checked', false ); $( 'input[name=_visibility][value=' + current_visibility + ']' ).attr( 'checked', 'checked' ); var label = $( 'input[name=_visibility]:checked' ).attr( 'data-label' ); if ( 'yes' === current_featured ) { label = label + ', ' + woocommerce_admin_meta_boxes.featured_label; $( 'input[name=_featured]' ).attr( 'checked', 'checked' ); } else { $( 'input[name=_featured]' ).prop( 'checked', false ); } $( '#catalog-visibility-display' ).text( label ); return false; }); // Product type specific options. $( 'select#product-type' ).on( 'change', function() { // Get value. var select_val = $( this ).val(); if ( 'variable' === select_val ) { $( 'input#_manage_stock' ).trigger( 'change' ); $( 'input#_downloadable' ).prop( 'checked', false ); $( 'input#_virtual' ).prop( 'checked', false ); } else if ( 'grouped' === select_val ) { $( 'input#_downloadable' ).prop( 'checked', false ); $( 'input#_virtual' ).prop( 'checked', false ); } else if ( 'external' === select_val ) { $( 'input#_downloadable' ).prop( 'checked', false ); $( 'input#_virtual' ).prop( 'checked', false ); } show_and_hide_panels(); $( 'ul.wc-tabs li:visible' ).eq( 0 ).find( 'a' ).trigger( 'click' ); $( document.body ).trigger( 'woocommerce-product-type-change', select_val, $( this ) ); }).trigger( 'change' ); $( 'input#_downloadable, input#_virtual' ).on( 'change', function() { show_and_hide_panels(); }); function show_and_hide_panels() { var product_type = $( 'select#product-type' ).val(); var is_virtual = $( 'input#_virtual:checked' ).length; var is_downloadable = $( 'input#_downloadable:checked' ).length; // Hide/Show all with rules. var hide_classes = '.hide_if_downloadable, .hide_if_virtual'; var show_classes = '.show_if_downloadable, .show_if_virtual'; $.each( woocommerce_admin_meta_boxes.product_types, function( index, value ) { hide_classes = hide_classes + ', .hide_if_' + value; show_classes = show_classes + ', .show_if_' + value; }); $( hide_classes ).show(); $( show_classes ).hide(); // Shows rules. if ( is_downloadable ) { $( '.show_if_downloadable' ).show(); } if ( is_virtual ) { $( '.show_if_virtual' ).show(); // If user enables virtual while on shipping tab, switch to general tab. if ( $( '.shipping_options.shipping_tab' ).hasClass( 'active' ) ) { $( '.general_options.general_tab > a' ).trigger( 'click' ); } } $( '.show_if_' + product_type ).show(); // Hide rules. if ( is_downloadable ) { $( '.hide_if_downloadable' ).hide(); } if ( is_virtual ) { $( '.hide_if_virtual' ).hide(); } $( '.hide_if_' + product_type ).hide(); $( 'input#_manage_stock' ).trigger( 'change' ); // Hide empty panels/tabs after display. $( '.woocommerce_options_panel' ).each( function() { var $children = $( this ).children( '.options_group' ); if ( 0 === $children.length ) { return; } var $invisble = $children.filter( function() { return 'none' === $( this ).css( 'display' ); }); // Hide panel. if ( $invisble.length === $children.length ) { var $id = $( this ).prop( 'id' ); $( '.product_data_tabs' ).find( 'li a[href="#' + $id + '"]' ).parent().hide(); } }); } // Sale price schedule. $( '.sale_price_dates_fields' ).each( function() { var $these_sale_dates = $( this ); var sale_schedule_set = false; var $wrap = $these_sale_dates.closest( 'div, table' ); $these_sale_dates.find( 'input' ).each( function() { if ( '' !== $( this ).val() ) { sale_schedule_set = true; } }); if ( sale_schedule_set ) { $wrap.find( '.sale_schedule' ).hide(); $wrap.find( '.sale_price_dates_fields' ).show(); } else { $wrap.find( '.sale_schedule' ).show(); $wrap.find( '.sale_price_dates_fields' ).hide(); } }); $( '#woocommerce-product-data' ).on( 'click', '.sale_schedule', function() { var $wrap = $( this ).closest( 'div, table' ); $( this ).hide(); $wrap.find( '.cancel_sale_schedule' ).show(); $wrap.find( '.sale_price_dates_fields' ).show(); return false; }); $( '#woocommerce-product-data' ).on( 'click', '.cancel_sale_schedule', function() { var $wrap = $( this ).closest( 'div, table' ); $( this ).hide(); $wrap.find( '.sale_schedule' ).show(); $wrap.find( '.sale_price_dates_fields' ).hide(); $wrap.find( '.sale_price_dates_fields' ).find( 'input' ).val(''); return false; }); // File inputs. $( '#woocommerce-product-data' ).on( 'click','.downloadable_files a.insert', function() { $( this ).closest( '.downloadable_files' ).find( 'tbody' ).append( $( this ).data( 'row' ) ); return false; }); $( '#woocommerce-product-data' ).on( 'click','.downloadable_files a.delete',function() { $( this ).closest( 'tr' ).remove(); return false; }); // Stock options. $( 'input#_manage_stock' ).on( 'change', function() { if ( $( this ).is( ':checked' ) ) { $( 'div.stock_fields' ).show(); $( 'p.stock_status_field' ).hide(); } else { var product_type = $( 'select#product-type' ).val(); $( 'div.stock_fields' ).hide(); $( 'p.stock_status_field:not( .hide_if_' + product_type + ' )' ).show(); } $( 'input.variable_manage_stock' ).trigger( 'change' ); }).trigger( 'change' ); // Date picker fields. function date_picker_select( datepicker ) { var option = $( datepicker ).next().is( '.hasDatepicker' ) ? 'minDate' : 'maxDate', otherDateField = 'minDate' === option ? $( datepicker ).next() : $( datepicker ).prev(), date = $( datepicker ).datepicker( 'getDate' ); $( otherDateField ).datepicker( 'option', option, date ); $( datepicker ).trigger( 'change' ); } $( '.sale_price_dates_fields' ).each( function() { $( this ).find( 'input' ).datepicker({ defaultDate: '', dateFormat: 'yy-mm-dd', numberOfMonths: 1, showButtonPanel: true, onSelect: function() { date_picker_select( $( this ) ); } }); $( this ).find( 'input' ).each( function() { date_picker_select( $( this ) ); } ); }); // Attribute Tables. // Initial order. var woocommerce_attribute_items = $( '.product_attributes' ).find( '.woocommerce_attribute' ).get(); woocommerce_attribute_items.sort( function( a, b ) { var compA = parseInt( $( a ).attr( 'rel' ), 10 ); var compB = parseInt( $( b ).attr( 'rel' ), 10 ); return ( compA < compB ) ? -1 : ( compA > compB ) ? 1 : 0; }); $( woocommerce_attribute_items ).each( function( index, el ) { $( '.product_attributes' ).append( el ); }); function attribute_row_indexes() { $( '.product_attributes .woocommerce_attribute' ).each( function( index, el ) { $( '.attribute_position', el ).val( parseInt( $( el ).index( '.product_attributes .woocommerce_attribute' ), 10 ) ); }); } $( '.product_attributes .woocommerce_attribute' ).each( function( index, el ) { if ( $( el ).css( 'display' ) !== 'none' && $( el ).is( '.taxonomy' ) ) { $( 'select.attribute_taxonomy' ).find( 'option[value="' + $( el ).data( 'taxonomy' ) + '"]' ).attr( 'disabled', 'disabled' ); } }); // Add rows. $( 'button.add_attribute' ).on( 'click', function() { var size = $( '.product_attributes .woocommerce_attribute' ).length; var attribute = $( 'select.attribute_taxonomy' ).val(); var $wrapper = $( this ).closest( '#product_attributes' ); var $attributes = $wrapper.find( '.product_attributes' ); var product_type = $( 'select#product-type' ).val(); var data = { action: 'woocommerce_add_attribute', taxonomy: attribute, i: size, security: woocommerce_admin_meta_boxes.add_attribute_nonce }; $wrapper.block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); $.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) { $attributes.append( response ); if ( 'variable' !== product_type ) { $attributes.find( '.enable_variation' ).hide(); } $( document.body ).trigger( 'wc-enhanced-select-init' ); attribute_row_indexes(); $attributes.find( '.woocommerce_attribute' ).last().find( 'h3' ).trigger( 'click' ); $wrapper.unblock(); $( document.body ).trigger( 'woocommerce_added_attribute' ); }); if ( attribute ) { $( 'select.attribute_taxonomy' ).find( 'option[value="' + attribute + '"]' ).attr( 'disabled','disabled' ); $( 'select.attribute_taxonomy' ).val( '' ); } return false; }); $( '.product_attributes' ).on( 'blur', 'input.attribute_name', function() { $( this ).closest( '.woocommerce_attribute' ).find( 'strong.attribute_name' ).text( $( this ).val() ); }); $( '.product_attributes' ).on( 'click', 'button.select_all_attributes', function() { $( this ).closest( 'td' ).find( 'select option' ).prop( 'selected', 'selected' ); $( this ).closest( 'td' ).find( 'select' ).trigger( 'change' ); return false; }); $( '.product_attributes' ).on( 'click', 'button.select_no_attributes', function() { $( this ).closest( 'td' ).find( 'select option' ).prop( 'selected', false ); $( this ).closest( 'td' ).find( 'select' ).trigger( 'change' ); return false; }); $( '.product_attributes' ).on( 'click', '.remove_row', function() { if ( window.confirm( woocommerce_admin_meta_boxes.remove_attribute ) ) { var $parent = $( this ).parent().parent(); if ( $parent.is( '.taxonomy' ) ) { $parent.find( 'select, input[type=text]' ).val( '' ); $parent.hide(); $( 'select.attribute_taxonomy' ).find( 'option[value="' + $parent.data( 'taxonomy' ) + '"]' ).prop( 'disabled', false ); } else { $parent.find( 'select, input[type=text]' ).val( '' ); $parent.hide(); attribute_row_indexes(); } } return false; }); // Attribute ordering. $( '.product_attributes' ).sortable({ items: '.woocommerce_attribute', cursor: 'move', axis: 'y', handle: 'h3', scrollSensitivity: 40, forcePlaceholderSize: true, helper: 'clone', opacity: 0.65, placeholder: 'wc-metabox-sortable-placeholder', start: function( event, ui ) { ui.item.css( 'background-color', '#f6f6f6' ); }, stop: function( event, ui ) { ui.item.removeAttr( 'style' ); attribute_row_indexes(); } }); // Add a new attribute (via ajax). $( '.product_attributes' ).on( 'click', 'button.add_new_attribute', function() { $( '.product_attributes' ).block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); var $wrapper = $( this ).closest( '.woocommerce_attribute' ); var attribute = $wrapper.data( 'taxonomy' ); var new_attribute_name = window.prompt( woocommerce_admin_meta_boxes.new_attribute_prompt ); if ( new_attribute_name ) { var data = { action: 'woocommerce_add_new_attribute', taxonomy: attribute, term: new_attribute_name, security: woocommerce_admin_meta_boxes.add_attribute_nonce }; $.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) { if ( response.error ) { // Error. window.alert( response.error ); } else if ( response.slug ) { // Success. $wrapper.find( 'select.attribute_values' ) .append( '' ); $wrapper.find( 'select.attribute_values' ).trigger( 'change' ); } $( '.product_attributes' ).unblock(); }); } else { $( '.product_attributes' ).unblock(); } return false; }); // Save attributes and update variations. $( '.save_attributes' ).on( 'click', function() { $( '.product_attributes' ).block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); var original_data = $( '.product_attributes' ).find( 'input, select, textarea' ); var data = { post_id : woocommerce_admin_meta_boxes.post_id, product_type: $( '#product-type' ).val(), data : original_data.serialize(), action : 'woocommerce_save_attributes', security : woocommerce_admin_meta_boxes.save_attributes_nonce }; $.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) { if ( response.error ) { // Error. window.alert( response.error ); } else if ( response.data ) { // Success. $( '.product_attributes' ).html( response.data.html ); $( '.product_attributes' ).unblock(); // Hide the 'Used for variations' checkbox if not viewing a variable product show_and_hide_panels(); // Make sure the dropdown is not disabled for empty value attributes. $( 'select.attribute_taxonomy' ).find( 'option' ).prop( 'disabled', false ); $( '.product_attributes .woocommerce_attribute' ).each( function( index, el ) { if ( $( el ).css( 'display' ) !== 'none' && $( el ).is( '.taxonomy' ) ) { $( 'select.attribute_taxonomy' ) .find( 'option[value="' + $( el ).data( 'taxonomy' ) + '"]' ) .prop( 'disabled', true ); } }); // Reload variations panel. var this_page = window.location.toString(); this_page = this_page.replace( 'post-new.php?', 'post.php?post=' + woocommerce_admin_meta_boxes.post_id + '&action=edit&' ); $( '#variable_product_options' ).load( this_page + ' #variable_product_options_inner', function() { $( '#variable_product_options' ).trigger( 'reload' ); } ); } }); }); // Uploading files. var downloadable_file_frame; var file_path_field; $( document.body ).on( 'click', '.upload_file_button', function( event ) { var $el = $( this ); file_path_field = $el.closest( 'tr' ).find( 'td.file_url input' ); event.preventDefault(); // If the media frame already exists, reopen it. if ( downloadable_file_frame ) { downloadable_file_frame.open(); return; } var downloadable_file_states = [ // Main states. new wp.media.controller.Library({ library: wp.media.query(), multiple: true, title: $el.data('choose'), priority: 20, filterable: 'uploaded' }) ]; // Create the media frame. downloadable_file_frame = wp.media.frames.downloadable_file = wp.media({ // Set the title of the modal. title: $el.data('choose'), library: { type: '' }, button: { text: $el.data('update') }, multiple: true, states: downloadable_file_states }); // When an image is selected, run a callback. downloadable_file_frame.on( 'select', function() { var file_path = ''; var selection = downloadable_file_frame.state().get( 'selection' ); selection.map( function( attachment ) { attachment = attachment.toJSON(); if ( attachment.url ) { file_path = attachment.url; } }); file_path_field.val( file_path ).trigger( 'change' ); }); // Set post to 0 and set our custom type. downloadable_file_frame.on( 'ready', function() { downloadable_file_frame.uploader.options.uploader.params = { type: 'downloadable_product' }; }); // Finally, open the modal. downloadable_file_frame.open(); }); // Download ordering. $( '.downloadable_files tbody' ).sortable({ items: 'tr', cursor: 'move', axis: 'y', handle: 'td.sort', scrollSensitivity: 40, forcePlaceholderSize: true, helper: 'clone', opacity: 0.65 }); // Product gallery file uploads. var product_gallery_frame; var $image_gallery_ids = $( '#product_image_gallery' ); var $product_images = $( '#product_images_container' ).find( 'ul.product_images' ); $( '.add_product_images' ).on( 'click', 'a', function( event ) { var $el = $( this ); event.preventDefault(); // If the media frame already exists, reopen it. if ( product_gallery_frame ) { product_gallery_frame.open(); return; } // Create the media frame. product_gallery_frame = wp.media.frames.product_gallery = wp.media({ // Set the title of the modal. title: $el.data( 'choose' ), button: { text: $el.data( 'update' ) }, states: [ new wp.media.controller.Library({ title: $el.data( 'choose' ), filterable: 'all', multiple: true }) ] }); // When an image is selected, run a callback. product_gallery_frame.on( 'select', function() { var selection = product_gallery_frame.state().get( 'selection' ); var attachment_ids = $image_gallery_ids.val(); selection.map( function( attachment ) { attachment = attachment.toJSON(); if ( attachment.id ) { attachment_ids = attachment_ids ? attachment_ids + ',' + attachment.id : attachment.id; var attachment_image = attachment.sizes && attachment.sizes.thumbnail ? attachment.sizes.thumbnail.url : attachment.url; $product_images.append( '
  • ' ); } }); $image_gallery_ids.val( attachment_ids ); }); // Finally, open the modal. product_gallery_frame.open(); }); // Image ordering. $product_images.sortable({ items: 'li.image', cursor: 'move', scrollSensitivity: 40, forcePlaceholderSize: true, forceHelperSize: false, helper: 'clone', opacity: 0.65, placeholder: 'wc-metabox-sortable-placeholder', start: function( event, ui ) { ui.item.css( 'background-color', '#f6f6f6' ); }, stop: function( event, ui ) { ui.item.removeAttr( 'style' ); }, update: function() { var attachment_ids = ''; $( '#product_images_container' ).find( 'ul li.image' ).css( 'cursor', 'default' ).each( function() { var attachment_id = $( this ).attr( 'data-attachment_id' ); attachment_ids = attachment_ids + attachment_id + ','; }); $image_gallery_ids.val( attachment_ids ); } }); // Remove images. $( '#product_images_container' ).on( 'click', 'a.delete', function() { $( this ).closest( 'li.image' ).remove(); var attachment_ids = ''; $( '#product_images_container' ).find( 'ul li.image' ).css( 'cursor', 'default' ).each( function() { var attachment_id = $( this ).attr( 'data-attachment_id' ); attachment_ids = attachment_ids + attachment_id + ','; }); $image_gallery_ids.val( attachment_ids ); // Remove any lingering tooltips. $( '#tiptip_holder' ).removeAttr( 'style' ); $( '#tiptip_arrow' ).removeAttr( 'style' ); return false; }); }); https://renegrit.com/wp-sitemap-posts-post-1.xmlhttps://renegrit.com/wp-sitemap-posts-page-1.xmlhttps://renegrit.com/wp-sitemap-posts-avada_portfolio-1.xmlhttps://renegrit.com/wp-sitemap-posts-avada_faq-1.xmlhttps://renegrit.com/wp-sitemap-taxonomies-category-1.xmlhttps://renegrit.com/wp-sitemap-taxonomies-portfolio_category-1.xmlhttps://renegrit.com/wp-sitemap-users-1.xml