!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define(["globals"],t):"object"==typeof exports?exports.rugox=t():e.rugox=t()}(this,(function(globals){var $w=globals.$w,console=(globals.$ns,globals.$wixContext,globals.$widget,globals.console);globals.elementorySupport,globals.generateWebMethodUrl;return $w.onReady((function(){setTimeout((function(){$w("#box5175").collapse()}),250);var e,t=(e=(new Date).getHours())>=6&&e<12?"Good Morning, Conservatives!":e>=12&&e<17?"Good Afternoon, Conservatives!":e>=17&&e<20?"Good Evening, Conservatives!":"Good Night, Conservatives!";$w("#button506").label=t,$w("#button506").link="https://cpac.org/maralago";var o=new Date("2024-11-14T00:00:00Z");function a(){var e,t=new Date;if(t.toISOString().split("T")[0]>=o.toISOString().split("T")[0])e="CPAC Mar-a-Lago";else{var a=o.getTime()-t.getTime(),n=Math.ceil(a/864e5);e="".concat(n," ").concat(1===n?"day":"days"," until CPAC Mar-a-Lago!")}console.log("Countdown message: ".concat(e));var r=[{_id:"item1",label:e}];$w("#repeater160").data=r,console.log("Repeater data set: ",$w("#repeater160").data),$w("#repeater160").onItemReady((function(e,t,o){console.log("Item Data: ",t),e("#button501").label=t.label||"Default Label",e("#button501").link="https://cpac.org/maralago",e("#button501").target="_self",console.log("Button 501 label: ",e("#button501").label),console.log("Button 501 link: ",e("#button501").link)}))}a(),setInterval(a,864e5)})),{}})); //# sourceMappingURL=https://bundler.wix-code.com/05ddef10-84fd-45b3-b362-3b4bc2189226/61697724-ec4b-4785-8e7f-fce35a993aa7/d536322f-6594-4b04-8a28-4fc414c5e3a3/pages/rugox.js.map?get-app-def-id-from-package-name=false&disable-yarn-pnp-mode=false&bundler-traffic-to-aws=false