HEX
Server: Apache
System: Linux box5134.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: bqfpihmy (1846)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home4/bqfpihmy/public_html/townsrealty/wp-content/themes/Total/build/components.js
(()=>{var e,t={232:(e,t,o)=>{"use strict";const l=window.React,r=window.wp.element;var n=o(84),a=o.n(n);const c=window.wp.i18n,s=(0,r.forwardRef)((function({icon:e,size:t=24,...o},l){return(0,r.cloneElement)(e,{width:t,height:t,...o,ref:l})})),i=window.wp.primitives,m=(0,l.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(i.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})),d=window.wp.components,u=({id:e,activeColor:t,activeSlug:o,defaultColor:n,defaultSlug:i,exclude:u,include:p,onChange:h,onClose:g,colorScheme:f})=>{let v=[];const[C,_]=(0,r.useState)(!1),w=()=>{_(!1),g()},b=a()(["totaltheme-component-color-palette-modal__button",{"is-active":o}]);C&&(v=totaltheme_components_params.global_colors,u&&(u=u.split(","),v=v.filter((e=>!(u.includes(e.slug)||e.type&&u.includes(e.type))))),p&&(p=p.split(","),v=v.filter((e=>e.slug.startsWith("palette-")||p.includes(e.slug)||e.type&&p.includes(e.type)))));const E=t&&t!==n||o&&o!==i;return(0,l.createElement)("div",{className:"totaltheme-component-color-palette-modal"},(0,l.createElement)(d.Button,{variant:"link",onClick:()=>_(!0),"aria-expanded":C,label:(0,c.__)("Select Global Color","total"),id:e,className:b,showTooltip:"true",tooltipPosition:"top right",size:"compact"},(0,l.createElement)(s,{icon:m})),C&&(0,l.createElement)(d.Modal,{title:(0,c.__)("Color Palette","total"),onRequestClose:w,size:"medium",className:"totaltheme-component-color-palette-modal__frame"},v.length>0&&(0,l.createElement)("ul",{className:"totaltheme-component-color-palette-modal__list"},v.map((e=>{const t="currentColor"==e.slug?"":e.color;return(0,l.createElement)("li",null,(0,l.createElement)(d.Button,{variant:"tertiary",onClick:()=>{return t=e.color,o=e.slug,h(t,o),void w();var t,o},className:o===e.slug?"active":""},(0,l.createElement)("span",{className:"totaltheme-color-indicators"},(0,l.createElement)("span",{className:`totaltheme-color-indicator totaltheme-color-indicator--${e.slug}`},(0,l.createElement)(d.ColorIndicator,{colorValue:t})),!1),(0,l.createElement)("span",{className:"totaltheme-component-color-palette-modal__list-label"},e.name,e.hasOwnProperty("description")&&(0,l.createElement)("span",{className:"totaltheme-component-color-palette-modal__list-desc"},e.description))))}))),0===v.length&&(0,l.createElement)("p",null,(0,c.__)("No global colors found or allowed.","total")),(0,l.createElement)(d.Flex,{className:"totaltheme-component-color-palette-modal__actions",wrap:"true"},E&&(0,l.createElement)(d.Button,{variant:"secondary",onClick:()=>{h(""),w()},isDestructive:!0},(0,c.__)("Clear","total")),totaltheme_components_params.customColorsAdminUrl&&(0,l.createElement)(d.Button,{variant:"primary",href:totaltheme_components_params.customColorsAdminUrl,target:"_blank"},(0,c.__)("Manage Custom Colors","total")))))},p=({id:e,dropdownPlacement:t,onChange:o,onClose:n,activeColor:a,defaultColor:s,colorScheme:i})=>{t||(t="bottom-start");let m=null;const u=()=>{o(""),p()},p=()=>{m(),n()},h=(e,t)=>{if("currentColor"===e||"transparent"===e||"term_color"===e)return"";if(t&&e&&e.startsWith("var(")){const t=e.match(/var\((.*?)\)/i);if(t[1]){const o=getComputedStyle(document.documentElement).getPropertyValue(t[1]);o&&(e=o)}}return e};return(0,l.createElement)(d.Dropdown,{className:"totaltheme-component-colorpicker-dropdown",onClose:n,expandOnMobile:!0,popoverProps:{inline:!0,placement:t},renderToggle:({isOpen:t,onToggle:o})=>(m=o,(0,l.createElement)(d.Button,{id:e,variant:"link",onClick:o,"aria-expanded":t,label:(0,c.__)("Select Custom Color","total"),className:"dark"===i?"totaltheme-component-colorpicker-dropdown__button wpex-dark-mode":"totaltheme-component-colorpicker-dropdown__button",style:{background:h(a)},showTooltip:"true",tooltipPosition:"top right",size:"compact"})),renderContent:()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.Suspense,{fallback:(0,l.createElement)(d.Spinner,null)},(0,l.createElement)(d.ColorPicker,{enableAlpha:!0,color:h(a,!0),onChange:o,copyFormat:"hex",defaultValue:""}),(0,l.createElement)(d.Flex,{className:"totaltheme-component-colorpicker-dropdown__actions",wrap:"true"},a&&a!==s&&(0,l.createElement)(d.Button,{variant:"secondary",className:"totaltheme-component-colorpicker-dropdown__clear",onClick:u,isDestructive:!0},(0,c.__)("Clear","total")),(0,l.createElement)(d.Button,{variant:"primary",className:"totaltheme-component-colorpicker-dropdown__close",onClick:p},(0,c.__)("Close","total")))))})},h=({id:e,selectedColor:t,defaultColor:o,allowGlobal:n,exclude:a,include:c,dropdownPlacement:s,colorScheme:i,onChange:m,onClose:d})=>{const h=totaltheme_components_params;let g="",f="";if(!t&&o&&(t=o),n&&h.global_colors&&(t||o))for(const[e,l]of Object.entries(h.global_colors)){if(t&&t===l.slug&&(g=l.slug,t=l.color,!o))break;if(o&&o===l.slug&&(f=l.slug,o=l.color,!t))break}const[v,C]=(0,r.useState)(g||f),[_,w]=(0,r.useState)(t||o),b=(e,t)=>{w(((e,t)=>"transparent"===t||"term_color"===t||"currentColor"===t?"":e||o)(e,t)),C(t||f),m(t||e)};return(0,l.createElement)(l.Fragment,null,n&&h.global_colors&&(0,l.createElement)(u,{id:e||void 0,activeColor:_,activeSlug:v,defaultColor:o,defaultSlug:f,exclude:a,include:c,onChange:b,onClose:d,colorScheme:i}),(0,l.createElement)(p,{id:n?void 0:e,dropdownPlacement:s,onChange:b,onClose:d,activeColor:_,defaultColor:o,colorScheme:i}))};window.totalthemeRenderComponentColor=function(e){e||(e=document);const t=(e,t,o)=>{const n=e.getAttribute("data-allow-global"),a=t.querySelector(".totaltheme-component-color__hidden-input"),c=e.getAttribute("data-default");let s=e.getAttribute("data-exclude")||"";if(n&&"0"!==n){const e=a.getAttribute("name");e&&(e.includes("background")||e.includes("bg")||"overlay_color"===e?s+=",currentColor,text-1,text-2,text-3,text-4,on-accent,on-accent-alt":e.includes("border")||(s+=",transparent,surface-1,surface-2,surface-3,surface-4"),s=s.replace(/^,/,""))}(0,r.render)((0,l.createElement)(h,{id:e.getAttribute("data-id"),selectedColor:a.value,defaultColor:c,allowGlobal:n,exclude:s,include:e.getAttribute("data-include"),dropdownPlacement:e.getAttribute("data-dropdown-placement"),colorScheme:e.getAttribute("data-color-scheme"),onChange:t=>{if(c&&t===c&&(t=""),t&&e.getAttribute("data-parse-vars")&&!t.startsWith("#")&&totaltheme_components_params.global_colors)for(const[e,o]of Object.entries(totaltheme_components_params.global_colors))t===o.slug&&(t=o.hasOwnProperty("color")?o.color:"");a.value=t,o?jQuery(a).trigger("change"):a.dispatchEvent(new Event("change"))},onClose:()=>{a.dispatchEvent(new CustomEvent("totaltheme-component-color:close"))}}),e),e.setAttribute("data-rendered","1")};e.querySelectorAll(".totaltheme-component-color-wrap").forEach((e=>{const o=e.querySelector(".totaltheme-component-color"),l=o.closest(".vc_css-editor");o.getAttribute("data-rendered")||(l?setTimeout((()=>{t(o,e,l)})):t(o,e,l))}))},window.totalthemeRenderComponents=function(){window.totalthemeRenderComponentColor()},document.addEventListener("DOMContentLoaded",window.totalthemeRenderComponents)},84:(e,t)=>{var o;!function(){"use strict";var l={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=a(e,n(o)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)l.call(e,o)&&e[o]&&(t=a(t,o));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()}},o={};function l(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,l),n.exports}l.m=t,e=[],l.O=(t,o,r,n)=>{if(!o){var a=1/0;for(m=0;m<e.length;m++){for(var[o,r,n]=e[m],c=!0,s=0;s<o.length;s++)(!1&n||a>=n)&&Object.keys(l.O).every((e=>l.O[e](o[s])))?o.splice(s--,1):(c=!1,n<a&&(a=n));if(c){e.splice(m--,1);var i=r();void 0!==i&&(t=i)}}return t}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[o,r,n]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={576:0,328:0};l.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,c,s]=o,i=0;if(a.some((t=>0!==e[t]))){for(r in c)l.o(c,r)&&(l.m[r]=c[r]);if(s)var m=s(l)}for(t&&t(o);i<a.length;i++)n=a[i],l.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return l.O(m)},o=globalThis.webpackChunkTotal=globalThis.webpackChunkTotal||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=l.O(void 0,[328],(()=>l(232)));r=l.O(r)})();