Changeset 3417307
- Timestamp:
- 12/11/2025 11:38:25 AM (2 months ago)
- Location:
- ultimate-spin-wheel
- Files:
-
- 91 added
- 1 deleted
- 18 edited
-
tags/1.0.4 (added)
-
tags/1.0.4/assets (added)
-
tags/1.0.4/assets/admin (added)
-
tags/1.0.4/assets/admin/ultimate-spin-wheel-admin.css (added)
-
tags/1.0.4/assets/admin/ultimate-spin-wheel-admin.rtl.css (added)
-
tags/1.0.4/assets/css (added)
-
tags/1.0.4/assets/css/modules (added)
-
tags/1.0.4/assets/css/modules/spin-wheel.css (added)
-
tags/1.0.4/assets/css/modules/spin-wheel.rtl.css (added)
-
tags/1.0.4/assets/fonts (added)
-
tags/1.0.4/assets/fonts/icomoon.svg (added)
-
tags/1.0.4/assets/fonts/icomoon.ttf (added)
-
tags/1.0.4/assets/fonts/icomoon.woff (added)
-
tags/1.0.4/assets/images (added)
-
tags/1.0.4/assets/images/logo-menu.svg (added)
-
tags/1.0.4/assets/images/logo.png (added)
-
tags/1.0.4/assets/images/rocket-bg.jpg (added)
-
tags/1.0.4/assets/js (added)
-
tags/1.0.4/assets/js/spin-wheel.js (added)
-
tags/1.0.4/assets/vendor (added)
-
tags/1.0.4/assets/vendor/css (added)
-
tags/1.0.4/assets/vendor/css/wow-modal.min.css (added)
-
tags/1.0.4/assets/vendor/css/wow-modal.rtl.css (added)
-
tags/1.0.4/assets/vendor/js (added)
-
tags/1.0.4/assets/vendor/js/jquery.wow-modal.min.js (added)
-
tags/1.0.4/build (added)
-
tags/1.0.4/build/304.js (added)
-
tags/1.0.4/build/365.js (added)
-
tags/1.0.4/build/425.js (added)
-
tags/1.0.4/build/465.js (added)
-
tags/1.0.4/build/520.js (added)
-
tags/1.0.4/build/606-rtl.css (added)
-
tags/1.0.4/build/606.css (added)
-
tags/1.0.4/build/606.js (added)
-
tags/1.0.4/build/747.js (added)
-
tags/1.0.4/build/775.js (added)
-
tags/1.0.4/build/810.js (added)
-
tags/1.0.4/build/83.js (added)
-
tags/1.0.4/build/934.js (added)
-
tags/1.0.4/build/970.js (added)
-
tags/1.0.4/build/996.js (added)
-
tags/1.0.4/build/admin (added)
-
tags/1.0.4/build/admin/block.json (added)
-
tags/1.0.4/build/admin/index-rtl.css (added)
-
tags/1.0.4/build/admin/index.asset.php (added)
-
tags/1.0.4/build/admin/index.css (added)
-
tags/1.0.4/build/admin/index.js (added)
-
tags/1.0.4/changelog.txt (added)
-
tags/1.0.4/class-core.php (added)
-
tags/1.0.4/classes (added)
-
tags/1.0.4/classes/index.php (added)
-
tags/1.0.4/dci (added)
-
tags/1.0.4/dci/assets (added)
-
tags/1.0.4/dci/assets/css (added)
-
tags/1.0.4/dci/assets/css/dci.css (added)
-
tags/1.0.4/dci/assets/js (added)
-
tags/1.0.4/dci/assets/js/dci.js (added)
-
tags/1.0.4/dci/deactivate-feedback.php (added)
-
tags/1.0.4/dci/insights.php (added)
-
tags/1.0.4/dci/notice.php (added)
-
tags/1.0.4/dci/start.php (added)
-
tags/1.0.4/includes (added)
-
tags/1.0.4/includes/addons.php (added)
-
tags/1.0.4/includes/admin (added)
-
tags/1.0.4/includes/admin/Classes (added)
-
tags/1.0.4/includes/admin/Classes/index.php (added)
-
tags/1.0.4/includes/admin/class-admin.php (added)
-
tags/1.0.4/includes/admin/class-menu.php (added)
-
tags/1.0.4/includes/class-admin-feeds.php (added)
-
tags/1.0.4/includes/class-installer.php (added)
-
tags/1.0.4/includes/feedbacks (added)
-
tags/1.0.4/includes/feedbacks/assets (added)
-
tags/1.0.4/includes/feedbacks/assets/rc.css (added)
-
tags/1.0.4/includes/feedbacks/assets/rc.js (added)
-
tags/1.0.4/includes/feedbacks/index.php (added)
-
tags/1.0.4/includes/feedbacks/notice.php (added)
-
tags/1.0.4/includes/feedbacks/start.php (added)
-
tags/1.0.4/includes/index.php (added)
-
tags/1.0.4/index.php (added)
-
tags/1.0.4/languages (added)
-
tags/1.0.4/languages/ultimate-spin-wheel.pot (added)
-
tags/1.0.4/modules (added)
-
tags/1.0.4/modules/spin-wheel (added)
-
tags/1.0.4/modules/spin-wheel/class-entries.php (added)
-
tags/1.0.4/modules/spin-wheel/class-module-init.php (added)
-
tags/1.0.4/modules/spin-wheel/class-reports.php (added)
-
tags/1.0.4/modules/spin-wheel/class-spin-wheel.php (added)
-
tags/1.0.4/plugin.php (added)
-
tags/1.0.4/readme.txt (added)
-
tags/1.0.4/ultimate-spin-wheel.php (added)
-
trunk/assets/css/modules/spin-wheel.css (modified) (1 diff)
-
trunk/assets/css/modules/spin-wheel.rtl.css (modified) (1 diff)
-
trunk/assets/js/modules (deleted)
-
trunk/assets/js/spin-wheel.js (added)
-
trunk/assets/vendor/js/jquery.wow-modal.min.js (modified) (1 diff)
-
trunk/build/606-rtl.css (modified) (1 diff)
-
trunk/build/606.css (modified) (1 diff)
-
trunk/build/606.js (modified) (1 diff)
-
trunk/build/810.js (modified) (1 diff)
-
trunk/build/admin/index-rtl.css (modified) (2 diffs)
-
trunk/build/admin/index.asset.php (modified) (1 diff)
-
trunk/build/admin/index.css (modified) (2 diffs)
-
trunk/build/admin/index.js (modified) (1 diff)
-
trunk/includes/admin/class-menu.php (modified) (1 diff)
-
trunk/languages/ultimate-spin-wheel.pot (modified) (3 diffs)
-
trunk/modules/spin-wheel/class-entries.php (modified) (1 diff)
-
trunk/modules/spin-wheel/class-module-init.php (modified) (1 diff)
-
trunk/modules/spin-wheel/class-spin-wheel.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/ultimate-spin-wheel.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ultimate-spin-wheel/trunk/assets/css/modules/spin-wheel.css
r3344591 r3417307 1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color:#16a085;--spin-btn-color:#fff;--spin-btn-bg:#16a085;--spin-btn-hover:#139cb2;--spin-btn-font-size:16px;--form-title-color:#fff;--form-title-size:24px;--form-title-weight:normal;--form-submit-color:#0a0a0a;--form-submit-bg:#fff;--form-submit-hover:#f0f0f0;--form-submit-size:16px;--form-submit-radius:5px;--input-border:#ccc;--input-focus:#16a085;--privacy-color:#fff;--privacy-size:12px;--prize-title-color:#fff;--prize-title-size:24px;--prize-msg-color:#fff;--prize-msg-size:28px;--lost-title-color:#fff;--lost-title-size:24px;--coupon-btn-color:#fff;--coupon-btn-bg:#16a085;--coupon-btn-hover:#139cb2;--coupon-btn-radius:5px;--wheel-lost-color:#ccc;--wheel-border-color:#fff;--wheel-border-width:12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px, 25em, 90vw);height:clamp(300px, 25em, 90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;left:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,0.2);overflow:hidden;transition:all 8s cubic-bezier(0, .99, .45, .99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;left:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;left:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px 0 0 -50px;box-shadow:0 0 30px rgba(0,0,0,0.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(.97)}.spinWheel .wheelWrap .marker{position:absolute;left:50%;top:-2px;width:4px;height:30px;margin:0 0 0 -20px;background:var(--spin-btn-bg);box-shadow:-2px 2px 2px 0 rgba(0,0,0,0.3);transform:rotate(-4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg ,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,0.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);transform:scale(1.05)}.ultimate-spin-wheel-spin-wheel .sc-btn svg{height:1em;width:1em;line-height:1;font-size:30px;fill:currentColor}1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color:#16a085;--spin-btn-color:#fff;--spin-btn-bg:#16a085;--spin-btn-hover:#139cb2;--spin-btn-font-size:16px;--form-title-color:#fff;--form-title-size:24px;--form-title-weight:normal;--form-submit-color:#0a0a0a;--form-submit-bg:#fff;--form-submit-hover:#f0f0f0;--form-submit-size:16px;--form-submit-radius:5px;--input-border:#ccc;--input-focus:#16a085;--privacy-color:#fff;--privacy-size:12px;--prize-title-color:#fff;--prize-title-size:24px;--prize-msg-color:#fff;--prize-msg-size:28px;--lost-title-color:#fff;--lost-title-size:24px;--coupon-btn-color:#fff;--coupon-btn-bg:#16a085;--coupon-btn-hover:#139cb2;--coupon-btn-radius:5px;--wheel-lost-color:#ccc;--wheel-border-color:#fff;--wheel-border-width:12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px, 25em, 90vw);height:clamp(300px, 25em, 90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;left:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,0.2);overflow:hidden;transition:all 8s cubic-bezier(0, .99, .45, .99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;left:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;left:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px 0 0 -50px;box-shadow:0 0 30px rgba(0,0,0,0.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(.97)}.spinWheel .wheelWrap .marker{position:absolute;left:50%;top:-2px;width:4px;height:30px;margin:0 0 0 -20px;background:var(--spin-btn-bg);box-shadow:-2px 2px 2px 0 rgba(0,0,0,0.3);transform:rotate(-4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg[data-status="lost"] .prizeMsg,.spinWheel .wheelWrap .msg[data-status="lost"] .sc-btn.sc-coupon{display:none}.spinWheel .wheelWrap .msg,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,0.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);transform:scale(1.05)}.ultimate-spin-wheel .sc-btn svg{height:1em;width:1em;line-height:1;font-size:30px;fill:currentColor} -
ultimate-spin-wheel/trunk/assets/css/modules/spin-wheel.rtl.css
r3344591 r3417307 1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color:#16a085;--spin-btn-color:#fff;--spin-btn-bg:#16a085;--spin-btn-hover:#139cb2;--spin-btn-font-size:16px;--form-title-color:#fff;--form-title-size:24px;--form-title-weight:normal;--form-submit-color:#0a0a0a;--form-submit-bg:#fff;--form-submit-hover:#f0f0f0;--form-submit-size:16px;--form-submit-radius:5px;--input-border:#ccc;--input-focus:#16a085;--privacy-color:#fff;--privacy-size:12px;--prize-title-color:#fff;--prize-title-size:24px;--prize-msg-color:#fff;--prize-msg-size:28px;--lost-title-color:#fff;--lost-title-size:24px;--coupon-btn-color:#fff;--coupon-btn-bg:#16a085;--coupon-btn-hover:#139cb2;--coupon-btn-radius:5px;--wheel-lost-color:#ccc;--wheel-border-color:#fff;--wheel-border-width:12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px, 25em, 90vw);height:clamp(300px, 25em, 90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;right:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,0.2);overflow:hidden;transition:all 8s cubic-bezier(0, .99, .45, .99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;right:50%;width:50%;height:50%;transform-origin:100% 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;right:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;right:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px -50px 0 0;box-shadow:0 0 30px rgba(0,0,0,0.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(.97)}.spinWheel .wheelWrap .marker{position:absolute;right:50%;top:-2px;width:4px;height:30px;margin:0 -20px 0 0;background:var(--spin-btn-bg);box-shadow:2px 2px 2px 0 rgba(0,0,0,0.3);transform:rotate(4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg ,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;right:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,0.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);transform:scale(1.05)}.ultimate-spin-wheel-spin-wheel .sc-btn svg{height:1em;width:1em;line-height:1;font-size:30px;fill:currentColor}1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color:#16a085;--spin-btn-color:#fff;--spin-btn-bg:#16a085;--spin-btn-hover:#139cb2;--spin-btn-font-size:16px;--form-title-color:#fff;--form-title-size:24px;--form-title-weight:normal;--form-submit-color:#0a0a0a;--form-submit-bg:#fff;--form-submit-hover:#f0f0f0;--form-submit-size:16px;--form-submit-radius:5px;--input-border:#ccc;--input-focus:#16a085;--privacy-color:#fff;--privacy-size:12px;--prize-title-color:#fff;--prize-title-size:24px;--prize-msg-color:#fff;--prize-msg-size:28px;--lost-title-color:#fff;--lost-title-size:24px;--coupon-btn-color:#fff;--coupon-btn-bg:#16a085;--coupon-btn-hover:#139cb2;--coupon-btn-radius:5px;--wheel-lost-color:#ccc;--wheel-border-color:#fff;--wheel-border-width:12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px, 25em, 90vw);height:clamp(300px, 25em, 90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;right:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,0.2);overflow:hidden;transition:all 8s cubic-bezier(0, .99, .45, .99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;right:50%;width:50%;height:50%;transform-origin:100% 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;right:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;right:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px -50px 0 0;box-shadow:0 0 30px rgba(0,0,0,0.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(.97)}.spinWheel .wheelWrap .marker{position:absolute;right:50%;top:-2px;width:4px;height:30px;margin:0 -20px 0 0;background:var(--spin-btn-bg);box-shadow:2px 2px 2px 0 rgba(0,0,0,0.3);transform:rotate(4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg[data-status="lost"] .prizeMsg,.spinWheel .wheelWrap .msg[data-status="lost"] .sc-btn.sc-coupon{display:none}.spinWheel .wheelWrap .msg,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;right:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,0.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);transform:scale(1.05)}.ultimate-spin-wheel .sc-btn svg{height:1em;width:1em;line-height:1;font-size:30px;fill:currentColor} -
ultimate-spin-wheel/trunk/assets/vendor/js/jquery.wow-modal.min.js
r3344591 r3417307 1 !function(g){"use strict";if(!g||void 0===g)return u("[Slick Modals] No jQuery library detected. Load SlickModals after jQuery has been loaded on the page.");var s={restrict_hideOnUrls:[],restrict_cookieSet:!1,restrict_cookieName:"slickModal-1",restrict_cookieScope:"domain",restrict_cookieDays:"30",restrict_cookieSetClass:"setSmCookie-1",restrict_dateRange:!1,restrict_dateRangeStart:"",restrict_dateRangeEnd:"",restrict_dateRangeServerTime:!0,restrict_dateRangeServerTimeFile:"",restrict_dateRangeServerTimeZone:"Europe/London",restrict_showAfterVisits:1,restrict_showAfterVisitsResetWhenShown:!1,popup _type:"none",popup_delayedTime:"1s",popup_scrollDistance:"400px",popup_scrollHideOnUp:!1,popup_exitShowAlways:!1,popup_autoClose:!1,popup_autoCloseAfter:"5s",popup_openWithHash:!1,popup_redirectOnClose:!1,popup_redirectOnCloseUrl:"",popup_redirectOnCloseTarget:"_blank",popup_redirectOnCloseTriggers:"overlay button",popup_position:"center",popup_animation:"fadeIn",popup_closeButtonEnable:!0,popup_closeButtonStyle:"cancel simple",popup_closeButtonAlign:"right",popup_closeButtonPlace:"outside",popup_closeButtonText:"Close",popup_reopenClass:"open-sm",popup_reopenClassTrigger:"click",popup_reopenStickyButtonEnable:!1,popup_reopenStickyButtonText:"Open popup",popup_enableESC:!0,popup_bodyClass:"",popup_wrapperClass:"",popup_draggableEnable:!1,popup_allowMultipleInstances:!1,popup_css:{width:"480px",height:"auto",background:"#fff",margin:"24px",padding:"24px","animation-duration":"0.4s"},overlay_isVisible:!0,overlay_closesPopup:!0,overlay_animation:"fadeIn",overlay_css:{background:"rgba(0, 0, 0, .8)","animation-duration":"0.4s","animation-delay":"0s"},content_loadViaAjax:!1,content_animate:!1,content_animation:"zoomIn",content_css:{"animation-duration":"0.4s","animation-delay":"0.4s"},page_animate:!1,page_animation:"scale",page_animationDuration:".4s",page_blurRadius:"1px",page_scaleValue:".9",page_moveDistance:"30%",mobile_show:!0,mobile_breakpoint:"480px",mobile_position:"bottomCenter",mobile_css:{width:"100%",height:"auto",background:"#fff",margin:"0",padding:"18px","animation-duration":"0.4s"},callback_beforeInit:g.noop,callback_afterInit:g.noop,callback_beforeOpen:g.noop,callback_afterOpen:g.noop,callback_afterVisible:g.noop,callback_beforeClose:g.noop,callback_afterClose:g.noop,callback_afterHidden:g.noop},a="SlickModals",l="sm-",c="[Slick Modals] ",i=" can be passed into this method.";function u(t){console.log(t)}function o(t,e){this.$el=g(t),this.$wrapper="",this.$overlay="",this.$popup="",this.settings=g.extend(!0,{},s,e),this.autoCloseTimer=null,this.ajaxContentLoaded=0,this._build()}o.prototype={constructor:o,_build:function(){if("true"!==this.$el.attr("data-sm-init"))return this.$el.hide(),u(c+'Element is missing data-sm-init="true" attribute.');this.settings.callback_beforeInit(),this._createParent(),this.settings.overlay_isVisible&&this._createOverlay(),this.settings.popup_reopenStickyButtonEnable&&this._createStickyButton(),this._createPopup(),this.settings.content_animate&&this._contentAnimate(),this._createEvents(),this._checkInitRestrictions()},_createParent:function(){this.$el.wrapAll('<div class="sm-wrapper"></div>'),this.$wrapper=this.$el.parent();var t=this.settings.popup_type,e=0;switch(!0){case"delayed"===t:e=this.settings.popup_delayedTime;break;case"scrolled"===t:e=this.settings.popup_scrollDistance}this.$wrapper.attr({"data-sm-type":t,"data-sm-type-val":e}),this.settings.popup_autoClose&&this.$wrapper.attr({"data-sm-autoClose":"enable","data-sm-autoClose-after":this.settings.popup_autoCloseAfter})},_createOverlay:function(){this.$wrapper.prepend('<div class="sm-overlay"></div>'),this.$overlay=this.$wrapper.children(".sm-overlay"),this.$overlay.attr({"data-sm-animated":!0,"data-sm-close":this.settings.overlay_closesPopup,"data-sm-effect":this.settings.overlay_animation}).css(this.settings.overlay_css)},_createStickyButton:function(){if(""===this.settings.popup_reopenClass)return u(c+'Sticky button must have defined "popup_reopenClass" within the plugin settings.');g("body").append('<div class="sm-sticky-button '+this.settings.popup_reopenClass+'">'+this.settings.popup_reopenStickyButtonText+"</div>")},_createPopup:function(){this.$el.attr("data-sm-init","false").wrapAll('<div class="sm-popup"></div>'),this.$popup=this.$wrapper.children(".sm-popup");var t=g(window).width()<=parseInt(this.settings.mobile_breakpoint),e=null;(e=t?this.settings.mobile_css:this.settings.popup_css)["animation-delay"]=(this.settings.overlay_isVisible?parseFloat(this.settings.overlay_css["animation-duration"])/2:0)+"s",this.$popup.attr({"data-sm-animated":!0,"data-sm-position":t?this.settings.mobile_position:this.settings.popup_position,"data-sm-effect":this.settings.popup_animation}).css(e).prepend(this.settings.popup_closeButtonEnable?'<div class="sm-button" data-sm-button-style="'+this.settings.popup_closeButtonStyle+'" data-sm-button-align="'+this.settings.popup_closeButtonAlign+'" data-sm-button-place="'+this.settings.popup_closeButtonPlace+'" data-sm-button-text="'+this.settings.popup_closeButtonText+'" data-sm-close="true"></div>':"",this.settings.popup_draggableEnable?'<div class="sm-draggable"></div>':""),this._popupPositionCorrect()},_contentAnimate:function(){this.$el.attr({"data-sm-animated":!0,"data-sm-effect":this.settings.content_animation}).css(this.settings.content_css)},_checkInitRestrictions:function(){var a,o=this;function e(){return!!o.settings.restrict_cookieSet&&-1<document.cookie.indexOf(o.settings.restrict_cookieName)}function s(){if(!o.settings.restrict_hideOnUrls.length)return!1;for(var t=o.settings.restrict_hideOnUrls,e=0;e<t.length;e++){var s=t[e],i=window.location.pathname;if(s instanceof RegExp&&s.test(i)||"string"==typeof s&&-1<i.indexOf(s))return!0}return!1}function i(){return!o.settings.mobile_show&&(!o.settings.mobile_show&&g(window).width()<=parseInt(o.settings.mobile_breakpoint))}function n(){var t=parseInt(o.settings.restrict_showAfterVisits);if(t<=1)return!1;var e=l+"visits-"+o.$el.attr("class");if(1<t){var s=localStorage.getItem(e);return null!==s?parseInt(s)===t-1?(o.settings.restrict_showAfterVisitsResetWhenShown&&localStorage.removeItem(e),!1):(localStorage.setItem(e,parseInt(s)+1),!0):(localStorage.setItem(e,"1"),!0)}localStorage.removeItem(e)}function p(t){o.settings.callback_afterInit(),t||o.openPopup()}function r(t){function e(t){var e=new Date(t.split(",")[0]+"T"+t.split(",")[1].replace(" ","")).getTime();return isNaN(e)?u(c+"Invalid date format."):e}var s=e(o.settings.restrict_dateRangeStart),i=e(o.settings.restrict_dateRangeEnd);a(!(s<t&&t<i&&s<i))}o.settings.restrict_dateRange?(a=function(t){p(!!(e()||s()||i()||o._activeInstanceExist()||n()||t))},o.settings.restrict_dateRangeServerTime&&""!==o.settings.restrict_dateRangeServerTimeFile?g.ajax({url:o.settings.restrict_dateRangeServerTimeFile,type:"POST",data:{timezone:o.settings.restrict_dateRangeServerTimeZone},dataType:"json",success:function(t){r(new Date(t).getTime())},error:function(){u(c+"Ajax request error upon retrieving server time.")}}):r((new Date).getTime())):p(!!(e()||s()||i()||o._activeInstanceExist()||n()))},_activeInstanceExist:function(){return!this.settings.popup_allowMultipleInstances&&0<g(".sm-wrapper.sm-active").length&&(u(c+"Another Slick Modal instance is already active."),!0)},_popupPositionCorrect:function(){var t=this.$popup.attr("data-sm-position");switch(!0){case"center"===t:this.$popup.css("margin","auto");break;case"bottomCenter"===t||"topCenter"===t:this.$popup.css({"margin-left":"auto","margin-right":"auto"});break;case"right"===t||"left"===t:this.$popup.css({"margin-top":"auto","margin-bottom":"auto"})}},_popupCalculateHeight:function(){var t=0;this.$popup.children().not(".sm-button").each(function(){t+=g(this).outerHeight(!0)}),this.$popup.height(t)},_createEvents:function(){var e=this;if(0<e.$wrapper.find('[data-sm-close="true"]').length&&e.$wrapper.find('[data-sm-close="true"]').each(function(){var t=g(this);t.on("click",function(){e.closePopup(),e.settings.popup_redirectOnClose&&-1<e.settings.popup_redirectOnCloseTriggers.indexOf(t.attr("class").replace("sm-",""))&&-1===e.settings.popup_redirectOnCloseTriggers.indexOf("close")&&e._redirectOnClose()})}),""!==e.settings.popup_reopenClass&&g("body").on("click"===e.settings.popup_reopenClassTrigger?"click":"mouseover","."+e.settings.popup_reopenClass,function(t){g(t.target).is("a")&&t.preventDefault(),e.openPopup("instant")}),e.settings.popup_enableESC&&g(window).on("keydown",function(t){27===t.keyCode&&e._wrapperActive()&&e.closePopup()}),e.settings.popup_openWithHash){var t=e.settings.popup_openWithHash,s=!1!==t&&""!==t&&"#"===t.charAt(0);s&&g(window).on("load hashchange",function(){s&&t===window.location.hash&&e.openPopup("instant")})}if(this.settings.popup_draggableEnable){var i,a,o,n,p=p||!1,r=e.$popup,l=isNaN(parseInt(r.css("margin-top")))?0:parseInt(r.css("margin-top")),c=isNaN(parseInt(r.css("margin-left")))?0:parseInt(r.css("margin-left")),u="auto"===r.css("margin"),d=function(t){r.css({top:t.clientY-i+o+"px",left:t.clientX-a+n+"px"})};r.children(".sm-draggable").on("mousedown",function(t){p=!0,i=t.clientY+l,a=t.clientX+c,o=r.offset().top,n=r.offset().left,u&&(r.css("margin","0px"),d(t),u=!1),g(window).on("mousemove",function(t){if(p)return d(t),!1}),g(window).on("mouseup",function(){p=!1})})}},_setCookie:function(){var t=parseInt(this.settings.restrict_cookieDays),e=new Date,s="/";"page"===this.settings.restrict_cookieScope&&(s=window.location.href),e.setTime(e.getTime()+24*t*60*60*1e3),document.cookie=this.settings.restrict_cookieName+"=1; path="+s+"; expires="+(0<t?e.toGMTString():0)},_redirectOnClose:function(){var t=this.settings.popup_redirectOnCloseUrl;""!==t&&-1<t.indexOf("http")?window.open(t,this.settings.popup_redirectOnCloseTarget):u(c+"Redirect URL is empty or not valid.")},_loadContentViaAjax:function(){if(!this.ajaxContentLoaded&&""!==this.settings.content_loadViaAjax){var e=this;g.ajax({url:e.settings.content_loadViaAjax,type:"GET",dataType:"html",success:function(t){e.$el.html(t),e._popupCalculateHeight(),e.ajaxContentLoaded=1},error:function(){u(c+"Ajax request error upon retrieving the content.")}})}},_pageAnimation:function(t){var e=this.settings.page_animation,s=g("body").children().not(".sm-wrapper, .sm-sticky-button, script, style");if("enable"===t){switch(!0){case"blur"===e:s.css({filter:"blur("+this.settings.page_blurRadius+")","transition-duration":this.settings.page_animationDuration});break;case"scale"===e:s.css({transform:"scale("+this.settings.page_scaleValue+")","transition-duration":this.settings.page_animationDuration});break;case-1<e.indexOf("move"):var i="",a="";switch(!0){case"moveUp"===e:i="Y",a="-";break;case"moveDown"===e:i="Y",a="";break;case"moveLeft"===e:i="X",a="-";break;case"moveRight"===e:i="X",a=""}s.css({transform:"translate"+i+"("+a+this.settings.page_moveDistance+")","transition-duration":this.settings.page_animationDuration})}g("body").addClass(l+"pageAnimated")}else s.css({transform:"",filter:""}),g("body").removeClass(l+"pageAnimated")},_wrapperActive:function(){return this.$wrapper.hasClass(l+"active")},_prepareClose:function(){var t=this,e=t.$popup.css("animation-duration"),s=t.settings.overlay_isVisible?t.$overlay.css("animation-delay"):0,i=t.$el.css("animation-delay")||0,a=t.$popup.css("animation-delay")||0;t.settings.overlay_isVisible&&t.$overlay.css("animation-delay",e),t.settings.content_animate&&t.$el.css("animation-delay","0s"),t.$popup.css("animation-delay","0s");var o=1e3*((t.settings.overlay_isVisible?parseFloat(t.$overlay.css("animation-duration")):0)+parseFloat(e));t._togglePopup("disable",o,a,s,i)},_togglePopup:function(t,e,s,i,a){var o=this,n="enable"===t;n?(o.settings.callback_beforeOpen(),o.$wrapper.addClass(l+"active"),""!==o.settings.popup_bodyClass&&g("body").addClass(o.settings.popup_bodyClass),""!==o.settings.popup_wrapperClass&&o.$wrapper.addClass(o.settings.popup_wrapperClass),o.settings.content_loadViaAjax&&o._loadContentViaAjax(),setTimeout(function(){o.settings.callback_afterVisible(),"enable"===o.$wrapper.attr("data-sm-autoClose")&&o.autoClose()},1e3*(parseFloat(o.$popup.css("animation-delay"))+parseFloat(o.$popup.css("animation-duration")))+e)):(o.settings.callback_afterClose(),o.$wrapper.removeClass(l+"active"),o.settings.page_animate&&o._pageAnimation("disable")),setTimeout(function(){n?(o.settings.callback_afterOpen(),o.$wrapper.show(),"auto"===o.$popup[0].style.height&&o._popupCalculateHeight(),o.settings.page_animate&&o._pageAnimation("enable")):(o.settings.overlay_isVisible&&o.$overlay.css("animation-delay",i),o.settings.content_animate&&o.$el.css("animation-delay",a),o.$popup.css("animation-delay",s),o.$wrapper.hide(),o.settings.callback_afterHidden(),""!==o.settings.popup_bodyClass&&g("body").removeClass(o.settings.popup_bodyClass),""!==o.settings.popup_wrapperClass&&o.$wrapper.removeClass(o.settings.popup_wrapperClass),"enable"===o.$wrapper.attr("data-sm-autoClose")&&clearTimeout(o.autoCloseTimer))},e)},_typeController:function(t,e){var s=this,i=t||s.$wrapper.attr("data-sm-type"),a=e||parseFloat(s.$wrapper.attr("data-sm-type-val"));switch(!0){case"delayed"===i:s._togglePopup("enable",1e3*("string"==typeof a?parseFloat(a):a));break;case"scrolled"===i:var o=0,n=0;g(document).on("scroll",function(){var t=g(this).scrollTop();a<t&&!o&&(s._togglePopup("enable",0),o=1),s.settings.popup_scrollHideOnUp&&t<a&&o&&!n&&(s.closePopup(),n=1,g(document).unbind("scroll"))});break;case"exit"===i:var p=0;g(document).on("mouseleave",function(){p||(s.settings.popup_exitShowAlways||(p=1,g(document).unbind("mouseleave")),s._togglePopup("enable",0))});break;case"instant"===i:s._togglePopup("enable",0)}},openPopup:function(t,e){if(this._wrapperActive())return u(c+"This popup instance is already active.");this._activeInstanceExist()||this._typeController(t,e)},closePopup:function(){if(!this._wrapperActive())return u(c+"Popup is already closed.");this.settings.callback_beforeClose(),this._prepareClose(),this.settings.restrict_cookieSet&&this._setCookie(),this.settings.popup_redirectOnClose&&-1<this.settings.popup_redirectOnCloseTriggers.indexOf("close")&&this._redirectOnClose()},styleElement:function(t,e){if("object"!=typeof e)return u(c+"Only object with CSS properties"+i);switch(!0){case"overlay"===t&&this.settings.overlay_isVisible:this.$overlay.css(e),0<this.$popup.length&&e["animation-duration"]&&this.$popup.css("animation-delay",parseFloat(e["animation-duration"])/2+"s");break;case"popup"===t:this.$popup.css(e),this._popupPositionCorrect();break;case"content"===t:this.$el.css(e)}},popupPosition:function(t){if("string"!=typeof t)return u(c+"Only string"+i);this.$popup.attr("data-sm-position",t),this._popupPositionCorrect()},setEffect:function(t,e){if("string"!=typeof t||"string"!=typeof e)return u(c+"Only strings"+i);switch(!0){case"overlay"===t&&this.settings.overlay_isVisible:this.$overlay.attr("data-sm-effect",e);break;case"popup"===t:this.$popup.attr("data-sm-effect",e);break;case"content"===t:this.$el.attr("data-sm-effect",e)}},setType:function(t,e){this.$wrapper.attr({"data-sm-type":t,"data-sm-type-val":e})},autoClose:function(t,e){var s=this;s.$wrapper.attr({"data-sm-autoClose":t,"data-sm-autoClose-after":e}),t=t||s.$wrapper.attr("data-sm-autoClose"),e=e||s.$wrapper.attr("data-sm-autoClose-after"),"enable"===t&&(s.autoCloseTimer=setTimeout(function(){s.closePopup()},1e3*parseFloat(e)))},destroy:function(){g("."+this.settings.popup_reopenClass).on("click"===this.settings.popup_reopenClassTrigger?"click":"mouseover",function(){return!1}),this.$el.remove(),this.$wrapper.remove(),this.$overlay.remove(),this.$popup.remove(),delete this.$el,delete this.$wrapper,delete this.$overlay,delete this.$popup}},g.fn[a]=function(s){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=g(this),e=t.data(a);if(e){if("string"==typeof s)try{e[s].apply(e,i)}catch(t){u(c+"Method does not exist in Slick Modals.")}}else t.data(a,new o(this,s))})}}(jQuery);1 !function(g){"use strict";if(!g||void 0===g)return u("[Slick Modals] No jQuery library detected. Load SlickModals after jQuery has been loaded on the page.");var s={restrict_hideOnUrls:[],restrict_cookieSet:!1,restrict_cookieName:"slickModal-1",restrict_cookieScope:"domain",restrict_cookieDays:"30",restrict_cookieSetClass:"setSmCookie-1",restrict_dateRange:!1,restrict_dateRangeStart:"",restrict_dateRangeEnd:"",restrict_dateRangeServerTime:!0,restrict_dateRangeServerTimeFile:"",restrict_dateRangeServerTimeZone:"Europe/London",restrict_showAfterVisits:1,restrict_showAfterVisitsResetWhenShown:!1,popupType:"none",popup_delayedTime:"1s",popup_scrollDistance:"400px",popup_scrollHideOnUp:!1,popup_exitShowAlways:!1,popup_autoClose:!1,popup_autoCloseAfter:"5s",popup_openWithHash:!1,popup_redirectOnClose:!1,popup_redirectOnCloseUrl:"",popup_redirectOnCloseTarget:"_blank",popup_redirectOnCloseTriggers:"overlay button",popup_position:"center",popup_animation:"fadeIn",popup_closeButtonEnable:!0,popup_closeButtonStyle:"cancel simple",popup_closeButtonAlign:"right",popup_closeButtonPlace:"outside",popup_closeButtonText:"Close",popup_reopenClass:"open-sm",popup_reopenClassTrigger:"click",popup_reopenStickyButtonEnable:!1,popup_reopenStickyButtonText:"Open popup",popup_enableESC:!0,popup_bodyClass:"",popup_wrapperClass:"",popup_draggableEnable:!1,popup_allowMultipleInstances:!1,popup_css:{width:"480px",height:"auto",background:"#fff",margin:"24px",padding:"24px","animation-duration":"0.4s"},overlay_isVisible:!0,overlay_closesPopup:!0,overlay_animation:"fadeIn",overlay_css:{background:"rgba(0, 0, 0, .8)","animation-duration":"0.4s","animation-delay":"0s"},content_loadViaAjax:!1,content_animate:!1,content_animation:"zoomIn",content_css:{"animation-duration":"0.4s","animation-delay":"0.4s"},page_animate:!1,page_animation:"scale",page_animationDuration:".4s",page_blurRadius:"1px",page_scaleValue:".9",page_moveDistance:"30%",mobile_show:!0,mobile_breakpoint:"480px",mobile_position:"bottomCenter",mobile_css:{width:"100%",height:"auto",background:"#fff",margin:"0",padding:"18px","animation-duration":"0.4s"},callback_beforeInit:g.noop,callback_afterInit:g.noop,callback_beforeOpen:g.noop,callback_afterOpen:g.noop,callback_afterVisible:g.noop,callback_beforeClose:g.noop,callback_afterClose:g.noop,callback_afterHidden:g.noop},a="SlickModals",l="sm-",c="[Slick Modals] ",i=" can be passed into this method.";function u(t){console.log(t)}function o(t,e){this.$el=g(t),this.$wrapper="",this.$overlay="",this.$popup="",this.settings=g.extend(!0,{},s,e),this.autoCloseTimer=null,this.ajaxContentLoaded=0,this._build()}o.prototype={constructor:o,_build:function(){if("true"!==this.$el.attr("data-sm-init"))return this.$el.hide(),u(c+'Element is missing data-sm-init="true" attribute.');this.settings.callback_beforeInit(),this._createParent(),this.settings.overlay_isVisible&&this._createOverlay(),this.settings.popup_reopenStickyButtonEnable&&this._createStickyButton(),this._createPopup(),this.settings.content_animate&&this._contentAnimate(),this._createEvents(),this._checkInitRestrictions()},_createParent:function(){this.$el.wrapAll('<div class="sm-wrapper"></div>'),this.$wrapper=this.$el.parent();var t=this.settings.popupType,e=0;switch(!0){case"delayed"===t:e=this.settings.popup_delayedTime;break;case"scrolled"===t:e=this.settings.popup_scrollDistance}this.$wrapper.attr({"data-sm-type":t,"data-sm-type-val":e}),this.settings.popup_autoClose&&this.$wrapper.attr({"data-sm-autoClose":"enable","data-sm-autoClose-after":this.settings.popup_autoCloseAfter})},_createOverlay:function(){this.$wrapper.prepend('<div class="sm-overlay"></div>'),this.$overlay=this.$wrapper.children(".sm-overlay"),this.$overlay.attr({"data-sm-animated":!0,"data-sm-close":this.settings.overlay_closesPopup,"data-sm-effect":this.settings.overlay_animation}).css(this.settings.overlay_css)},_createStickyButton:function(){if(""===this.settings.popup_reopenClass)return u(c+'Sticky button must have defined "popup_reopenClass" within the plugin settings.');g("body").append('<div class="sm-sticky-button '+this.settings.popup_reopenClass+'">'+this.settings.popup_reopenStickyButtonText+"</div>")},_createPopup:function(){this.$el.attr("data-sm-init","false").wrapAll('<div class="sm-popup"></div>'),this.$popup=this.$wrapper.children(".sm-popup");var t=g(window).width()<=parseInt(this.settings.mobile_breakpoint),e=null;(e=t?this.settings.mobile_css:this.settings.popup_css)["animation-delay"]=(this.settings.overlay_isVisible?parseFloat(this.settings.overlay_css["animation-duration"])/2:0)+"s",this.$popup.attr({"data-sm-animated":!0,"data-sm-position":t?this.settings.mobile_position:this.settings.popup_position,"data-sm-effect":this.settings.popup_animation}).css(e).prepend(this.settings.popup_closeButtonEnable?'<div class="sm-button" data-sm-button-style="'+this.settings.popup_closeButtonStyle+'" data-sm-button-align="'+this.settings.popup_closeButtonAlign+'" data-sm-button-place="'+this.settings.popup_closeButtonPlace+'" data-sm-button-text="'+this.settings.popup_closeButtonText+'" data-sm-close="true"></div>':"",this.settings.popup_draggableEnable?'<div class="sm-draggable"></div>':""),this._popupPositionCorrect()},_contentAnimate:function(){this.$el.attr({"data-sm-animated":!0,"data-sm-effect":this.settings.content_animation}).css(this.settings.content_css)},_checkInitRestrictions:function(){var a,o=this;function e(){return!!o.settings.restrict_cookieSet&&-1<document.cookie.indexOf(o.settings.restrict_cookieName)}function s(){if(!o.settings.restrict_hideOnUrls.length)return!1;for(var t=o.settings.restrict_hideOnUrls,e=0;e<t.length;e++){var s=t[e],i=window.location.pathname;if(s instanceof RegExp&&s.test(i)||"string"==typeof s&&-1<i.indexOf(s))return!0}return!1}function i(){return!o.settings.mobile_show&&(!o.settings.mobile_show&&g(window).width()<=parseInt(o.settings.mobile_breakpoint))}function n(){var t=parseInt(o.settings.restrict_showAfterVisits);if(t<=1)return!1;var e=l+"visits-"+o.$el.attr("class");if(1<t){var s=localStorage.getItem(e);return null!==s?parseInt(s)===t-1?(o.settings.restrict_showAfterVisitsResetWhenShown&&localStorage.removeItem(e),!1):(localStorage.setItem(e,parseInt(s)+1),!0):(localStorage.setItem(e,"1"),!0)}localStorage.removeItem(e)}function p(t){o.settings.callback_afterInit(),t||o.openPopup()}function r(t){function e(t){var e=new Date(t.split(",")[0]+"T"+t.split(",")[1].replace(" ","")).getTime();return isNaN(e)?u(c+"Invalid date format."):e}var s=e(o.settings.restrict_dateRangeStart),i=e(o.settings.restrict_dateRangeEnd);a(!(s<t&&t<i&&s<i))}o.settings.restrict_dateRange?(a=function(t){p(!!(e()||s()||i()||o._activeInstanceExist()||n()||t))},o.settings.restrict_dateRangeServerTime&&""!==o.settings.restrict_dateRangeServerTimeFile?g.ajax({url:o.settings.restrict_dateRangeServerTimeFile,type:"POST",data:{timezone:o.settings.restrict_dateRangeServerTimeZone},dataType:"json",success:function(t){r(new Date(t).getTime())},error:function(){u(c+"Ajax request error upon retrieving server time.")}}):r((new Date).getTime())):p(!!(e()||s()||i()||o._activeInstanceExist()||n()))},_activeInstanceExist:function(){return!this.settings.popup_allowMultipleInstances&&0<g(".sm-wrapper.sm-active").length&&(u(c+"Another Slick Modal instance is already active."),!0)},_popupPositionCorrect:function(){var t=this.$popup.attr("data-sm-position");switch(!0){case"center"===t:this.$popup.css("margin","auto");break;case"bottomCenter"===t||"topCenter"===t:this.$popup.css({"margin-left":"auto","margin-right":"auto"});break;case"right"===t||"left"===t:this.$popup.css({"margin-top":"auto","margin-bottom":"auto"})}},_popupCalculateHeight:function(){var t=0;this.$popup.children().not(".sm-button").each(function(){t+=g(this).outerHeight(!0)}),this.$popup.height(t)},_createEvents:function(){var e=this;if(0<e.$wrapper.find('[data-sm-close="true"]').length&&e.$wrapper.find('[data-sm-close="true"]').each(function(){var t=g(this);t.on("click",function(){e.closePopup(),e.settings.popup_redirectOnClose&&-1<e.settings.popup_redirectOnCloseTriggers.indexOf(t.attr("class").replace("sm-",""))&&-1===e.settings.popup_redirectOnCloseTriggers.indexOf("close")&&e._redirectOnClose()})}),""!==e.settings.popup_reopenClass&&g("body").on("click"===e.settings.popup_reopenClassTrigger?"click":"mouseover","."+e.settings.popup_reopenClass,function(t){g(t.target).is("a")&&t.preventDefault(),e.openPopup("instant")}),e.settings.popup_enableESC&&g(window).on("keydown",function(t){27===t.keyCode&&e._wrapperActive()&&e.closePopup()}),e.settings.popup_openWithHash){var t=e.settings.popup_openWithHash,s=!1!==t&&""!==t&&"#"===t.charAt(0);s&&g(window).on("load hashchange",function(){s&&t===window.location.hash&&e.openPopup("instant")})}if(this.settings.popup_draggableEnable){var i,a,o,n,p=p||!1,r=e.$popup,l=isNaN(parseInt(r.css("margin-top")))?0:parseInt(r.css("margin-top")),c=isNaN(parseInt(r.css("margin-left")))?0:parseInt(r.css("margin-left")),u="auto"===r.css("margin"),d=function(t){r.css({top:t.clientY-i+o+"px",left:t.clientX-a+n+"px"})};r.children(".sm-draggable").on("mousedown",function(t){p=!0,i=t.clientY+l,a=t.clientX+c,o=r.offset().top,n=r.offset().left,u&&(r.css("margin","0px"),d(t),u=!1),g(window).on("mousemove",function(t){if(p)return d(t),!1}),g(window).on("mouseup",function(){p=!1})})}},_setCookie:function(){var t=parseInt(this.settings.restrict_cookieDays),e=new Date,s="/";"page"===this.settings.restrict_cookieScope&&(s=window.location.href),e.setTime(e.getTime()+24*t*60*60*1e3),document.cookie=this.settings.restrict_cookieName+"=1; path="+s+"; expires="+(0<t?e.toGMTString():0)},_redirectOnClose:function(){var t=this.settings.popup_redirectOnCloseUrl;""!==t&&-1<t.indexOf("http")?window.open(t,this.settings.popup_redirectOnCloseTarget):u(c+"Redirect URL is empty or not valid.")},_loadContentViaAjax:function(){if(!this.ajaxContentLoaded&&""!==this.settings.content_loadViaAjax){var e=this;g.ajax({url:e.settings.content_loadViaAjax,type:"GET",dataType:"html",success:function(t){e.$el.html(t),e._popupCalculateHeight(),e.ajaxContentLoaded=1},error:function(){u(c+"Ajax request error upon retrieving the content.")}})}},_pageAnimation:function(t){var e=this.settings.page_animation,s=g("body").children().not(".sm-wrapper, .sm-sticky-button, script, style");if("enable"===t){switch(!0){case"blur"===e:s.css({filter:"blur("+this.settings.page_blurRadius+")","transition-duration":this.settings.page_animationDuration});break;case"scale"===e:s.css({transform:"scale("+this.settings.page_scaleValue+")","transition-duration":this.settings.page_animationDuration});break;case-1<e.indexOf("move"):var i="",a="";switch(!0){case"moveUp"===e:i="Y",a="-";break;case"moveDown"===e:i="Y",a="";break;case"moveLeft"===e:i="X",a="-";break;case"moveRight"===e:i="X",a=""}s.css({transform:"translate"+i+"("+a+this.settings.page_moveDistance+")","transition-duration":this.settings.page_animationDuration})}g("body").addClass(l+"pageAnimated")}else s.css({transform:"",filter:""}),g("body").removeClass(l+"pageAnimated")},_wrapperActive:function(){return this.$wrapper.hasClass(l+"active")},_prepareClose:function(){var t=this,e=t.$popup.css("animation-duration"),s=t.settings.overlay_isVisible?t.$overlay.css("animation-delay"):0,i=t.$el.css("animation-delay")||0,a=t.$popup.css("animation-delay")||0;t.settings.overlay_isVisible&&t.$overlay.css("animation-delay",e),t.settings.content_animate&&t.$el.css("animation-delay","0s"),t.$popup.css("animation-delay","0s");var o=1e3*((t.settings.overlay_isVisible?parseFloat(t.$overlay.css("animation-duration")):0)+parseFloat(e));t._togglePopup("disable",o,a,s,i)},_togglePopup:function(t,e,s,i,a){var o=this,n="enable"===t;n?(o.settings.callback_beforeOpen(),o.$wrapper.addClass(l+"active"),""!==o.settings.popup_bodyClass&&g("body").addClass(o.settings.popup_bodyClass),""!==o.settings.popup_wrapperClass&&o.$wrapper.addClass(o.settings.popup_wrapperClass),o.settings.content_loadViaAjax&&o._loadContentViaAjax(),setTimeout(function(){o.settings.callback_afterVisible(),"enable"===o.$wrapper.attr("data-sm-autoClose")&&o.autoClose()},1e3*(parseFloat(o.$popup.css("animation-delay"))+parseFloat(o.$popup.css("animation-duration")))+e)):(o.settings.callback_afterClose(),o.$wrapper.removeClass(l+"active"),o.settings.page_animate&&o._pageAnimation("disable")),setTimeout(function(){n?(o.settings.callback_afterOpen(),o.$wrapper.show(),"auto"===o.$popup[0].style.height&&o._popupCalculateHeight(),o.settings.page_animate&&o._pageAnimation("enable")):(o.settings.overlay_isVisible&&o.$overlay.css("animation-delay",i),o.settings.content_animate&&o.$el.css("animation-delay",a),o.$popup.css("animation-delay",s),o.$wrapper.hide(),o.settings.callback_afterHidden(),""!==o.settings.popup_bodyClass&&g("body").removeClass(o.settings.popup_bodyClass),""!==o.settings.popup_wrapperClass&&o.$wrapper.removeClass(o.settings.popup_wrapperClass),"enable"===o.$wrapper.attr("data-sm-autoClose")&&clearTimeout(o.autoCloseTimer))},e)},_typeController:function(t,e){var s=this,i=t||s.$wrapper.attr("data-sm-type"),a=e||parseFloat(s.$wrapper.attr("data-sm-type-val"));switch(!0){case"delayed"===i:s._togglePopup("enable",1e3*("string"==typeof a?parseFloat(a):a));break;case"scrolled"===i:var o=0,n=0;g(document).on("scroll",function(){var t=g(this).scrollTop();a<t&&!o&&(s._togglePopup("enable",0),o=1),s.settings.popup_scrollHideOnUp&&t<a&&o&&!n&&(s.closePopup(),n=1,g(document).unbind("scroll"))});break;case"exit"===i:var p=0;g(document).on("mouseleave",function(){p||(s.settings.popup_exitShowAlways||(p=1,g(document).unbind("mouseleave")),s._togglePopup("enable",0))});break;case"instant"===i:s._togglePopup("enable",0)}},openPopup:function(t,e){if(this._wrapperActive())return u(c+"This popup instance is already active.");this._activeInstanceExist()||this._typeController(t,e)},closePopup:function(){if(!this._wrapperActive())return u(c+"Popup is already closed.");this.settings.callback_beforeClose(),this._prepareClose(),this.settings.restrict_cookieSet&&this._setCookie(),this.settings.popup_redirectOnClose&&-1<this.settings.popup_redirectOnCloseTriggers.indexOf("close")&&this._redirectOnClose()},styleElement:function(t,e){if("object"!=typeof e)return u(c+"Only object with CSS properties"+i);switch(!0){case"overlay"===t&&this.settings.overlay_isVisible:this.$overlay.css(e),0<this.$popup.length&&e["animation-duration"]&&this.$popup.css("animation-delay",parseFloat(e["animation-duration"])/2+"s");break;case"popup"===t:this.$popup.css(e),this._popupPositionCorrect();break;case"content"===t:this.$el.css(e)}},popupPosition:function(t){if("string"!=typeof t)return u(c+"Only string"+i);this.$popup.attr("data-sm-position",t),this._popupPositionCorrect()},setEffect:function(t,e){if("string"!=typeof t||"string"!=typeof e)return u(c+"Only strings"+i);switch(!0){case"overlay"===t&&this.settings.overlay_isVisible:this.$overlay.attr("data-sm-effect",e);break;case"popup"===t:this.$popup.attr("data-sm-effect",e);break;case"content"===t:this.$el.attr("data-sm-effect",e)}},setType:function(t,e){this.$wrapper.attr({"data-sm-type":t,"data-sm-type-val":e})},autoClose:function(t,e){var s=this;s.$wrapper.attr({"data-sm-autoClose":t,"data-sm-autoClose-after":e}),t=t||s.$wrapper.attr("data-sm-autoClose"),e=e||s.$wrapper.attr("data-sm-autoClose-after"),"enable"===t&&(s.autoCloseTimer=setTimeout(function(){s.closePopup()},1e3*parseFloat(e)))},destroy:function(){g("."+this.settings.popup_reopenClass).on("click"===this.settings.popup_reopenClassTrigger?"click":"mouseover",function(){return!1}),this.$el.remove(),this.$wrapper.remove(),this.$overlay.remove(),this.$popup.remove(),delete this.$el,delete this.$wrapper,delete this.$overlay,delete this.$popup}},g.fn[a]=function(s){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=g(this),e=t.data(a);if(e){if("string"==typeof s)try{e[s].apply(e,i)}catch(t){u(c+"Method does not exist in Slick Modals.")}}else t.data(a,new o(this,s))})}}(jQuery); -
ultimate-spin-wheel/trunk/build/606-rtl.css
r3344591 r3417307 1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color: #16a085;--spin-btn-color: #fff;--spin-btn-bg: #16a085;--spin-btn-hover: #139cb2;--spin-btn-font-size: 16px;--form-title-color: #fff;--form-title-size: 24px;--form-title-weight: normal;--form-submit-color: #0a0a0a;--form-submit-bg: #fff;--form-submit-hover: #f0f0f0;--form-submit-size: 16px;--form-submit-radius: 5px;--input-border: #ccc;--input-focus: #16a085;--privacy-color: #fff;--privacy-size: 1 2px;--prize-title-color: #fff;--prize-title-size: 24px;--prize-msg-color: #fff;--prize-msg-size: 28px;--lost-title-color: #fff;--lost-title-size: 24px;--coupon-btn-color: #fff;--coupon-btn-bg: #16a085;--coupon-btn-hover: #139cb2;--coupon-btn-radius: 5px;--wheel-lost-color: #ccc;--wheel-border-color: #fff;--wheel-border-width: 12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px,25em,90vw);height:clamp(300px,25em,90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;right:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,.2);overflow:hidden;transition:all 8s cubic-bezier(0, 0.99, 0.45, 0.99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;right:50%;width:50%;height:50%;transform-origin:100% 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;right:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;right:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px -50px 0 0;box-shadow:0 0 30px rgba(0,0,0,.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(0.97)}.spinWheel .wheelWrap .marker{position:absolute;right:50%;top:-2px;width:4px;height:30px;margin:0 -20px 0 0;background:var(--spin-btn-bg);box-shadow:2px 2px 2px 0 rgba(0,0,0,.3);transform:rotate(4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;right:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(0.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-transform:uppercase;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,.24),0 17px 50px 0 rgba(0,0,0,.19);transform:scale(1.05)}1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color: #16a085;--spin-btn-color: #fff;--spin-btn-bg: #16a085;--spin-btn-hover: #139cb2;--spin-btn-font-size: 16px;--form-title-color: #fff;--form-title-size: 24px;--form-title-weight: normal;--form-submit-color: #0a0a0a;--form-submit-bg: #fff;--form-submit-hover: #f0f0f0;--form-submit-size: 16px;--form-submit-radius: 5px;--input-border: #ccc;--input-focus: #16a085;--privacy-color: #fff;--privacy-size: 14px;--prize-title-color: #fff;--prize-title-size: 24px;--prize-msg-color: #fff;--prize-msg-size: 28px;--lost-title-color: #fff;--lost-title-size: 24px;--coupon-btn-color: #fff;--coupon-btn-bg: #16a085;--coupon-btn-hover: #139cb2;--coupon-btn-radius: 5px;--wheel-lost-color: #ccc;--wheel-border-color: #fff;--wheel-border-width: 12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px,25em,90vw);height:clamp(300px,25em,90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;right:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,.2);overflow:hidden;transition:all 8s cubic-bezier(0, 0.99, 0.45, 0.99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;right:50%;width:50%;height:50%;transform-origin:100% 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;right:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;right:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px -50px 0 0;box-shadow:0 0 30px rgba(0,0,0,.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(0.97)}.spinWheel .wheelWrap .marker{position:absolute;right:50%;top:-2px;width:4px;height:30px;margin:0 -20px 0 0;background:var(--spin-btn-bg);box-shadow:2px 2px 2px 0 rgba(0,0,0,.3);transform:rotate(4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;right:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(0.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-transform:uppercase;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,.24),0 17px 50px 0 rgba(0,0,0,.19);transform:scale(1.05)} -
ultimate-spin-wheel/trunk/build/606.css
r3344591 r3417307 1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color: #16a085;--spin-btn-color: #fff;--spin-btn-bg: #16a085;--spin-btn-hover: #139cb2;--spin-btn-font-size: 16px;--form-title-color: #fff;--form-title-size: 24px;--form-title-weight: normal;--form-submit-color: #0a0a0a;--form-submit-bg: #fff;--form-submit-hover: #f0f0f0;--form-submit-size: 16px;--form-submit-radius: 5px;--input-border: #ccc;--input-focus: #16a085;--privacy-color: #fff;--privacy-size: 1 2px;--prize-title-color: #fff;--prize-title-size: 24px;--prize-msg-color: #fff;--prize-msg-size: 28px;--lost-title-color: #fff;--lost-title-size: 24px;--coupon-btn-color: #fff;--coupon-btn-bg: #16a085;--coupon-btn-hover: #139cb2;--coupon-btn-radius: 5px;--wheel-lost-color: #ccc;--wheel-border-color: #fff;--wheel-border-width: 12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px,25em,90vw);height:clamp(300px,25em,90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;left:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,.2);overflow:hidden;transition:all 8s cubic-bezier(0, 0.99, 0.45, 0.99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;left:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;left:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px 0 0 -50px;box-shadow:0 0 30px rgba(0,0,0,.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(0.97)}.spinWheel .wheelWrap .marker{position:absolute;left:50%;top:-2px;width:4px;height:30px;margin:0 0 0 -20px;background:var(--spin-btn-bg);box-shadow:-2px 2px 2px 0 rgba(0,0,0,.3);transform:rotate(-4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(0.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-transform:uppercase;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,.24),0 17px 50px 0 rgba(0,0,0,.19);transform:scale(1.05)}1 .spinWheel *{box-sizing:border-box}.spinWheel{position:relative;transition:opacity .2s ease;--panel-bg-color: #16a085;--spin-btn-color: #fff;--spin-btn-bg: #16a085;--spin-btn-hover: #139cb2;--spin-btn-font-size: 16px;--form-title-color: #fff;--form-title-size: 24px;--form-title-weight: normal;--form-submit-color: #0a0a0a;--form-submit-bg: #fff;--form-submit-hover: #f0f0f0;--form-submit-size: 16px;--form-submit-radius: 5px;--input-border: #ccc;--input-focus: #16a085;--privacy-color: #fff;--privacy-size: 14px;--prize-title-color: #fff;--prize-title-size: 24px;--prize-msg-color: #fff;--prize-msg-size: 28px;--lost-title-color: #fff;--lost-title-size: 24px;--coupon-btn-color: #fff;--coupon-btn-bg: #16a085;--coupon-btn-hover: #139cb2;--coupon-btn-radius: 5px;--wheel-lost-color: #ccc;--wheel-border-color: #fff;--wheel-border-width: 12px}.spinWheel.visible{opacity:1}.spinWheel .wheelWrap{display:inline-block;width:clamp(300px,25em,90vw);height:clamp(300px,25em,90vw);position:relative}.spinWheel .wheelWrap .wheel{position:absolute;top:0;left:0;width:100%;height:100%;border:solid var(--wheel-border-width) var(--wheel-border-color);border-radius:50%;box-shadow:0 0 30px rgba(0,0,0,.2);overflow:hidden;transition:all 8s cubic-bezier(0, 0.99, 0.45, 0.99);z-index:1}.spinWheel .wheelWrap .wheel .area{position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0 100%;overflow:hidden}.spinWheel .wheelWrap .wheel .area span{position:absolute;left:-100%;width:200%;height:200%;font-size:24px;font-weight:700;color:#fff;text-align:center;padding-top:20px}.spinWheel .wheelWrap .start{position:absolute;top:50%;left:50%;font-size:var(--spin-btn-font-size);font-weight:700;text-align:center;color:var(--spin-btn-color);text-transform:uppercase;background:var(--spin-btn-bg);width:100px;height:100px;line-height:100px;border-radius:50%;margin:-50px 0 0 -50px;box-shadow:0 0 30px rgba(0,0,0,.3);cursor:pointer;z-index:2}.spinWheel .wheelWrap .start:hover{background:var(--spin-btn-hover)}.spinWheel .wheelWrap .start:active{transform:scale(0.97)}.spinWheel .wheelWrap .marker{position:absolute;left:50%;top:-2px;width:4px;height:30px;margin:0 0 0 -20px;background:var(--spin-btn-bg);box-shadow:-2px 2px 2px 0 rgba(0,0,0,.3);transform:rotate(-4deg);z-index:2}.spinWheel .wheelWrap .msg *,.spinWheel .wheelWrap .sc-form-wrap *{color:var(--form-title-color)}.spinWheel .wheelWrap .msg,.spinWheel .wheelWrap .sc-form-wrap{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--panel-bg-color);border-radius:50%;text-align:center;z-index:3;opacity:0;pointer-events:none;transform:scale(0.2);transition:all .25s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.spinWheel .wheelWrap .msg.active,.spinWheel .wheelWrap .sc-form-wrap.active{opacity:1;pointer-events:auto;transform:scale(1)}.spinWheel .wheelWrap .title{font-size:var(--form-title-size);font-weight:var(--form-title-weight);color:var(--form-title-color);padding:10px 0 10px 0}.spinWheel .wheelWrap .prizeMsg{font-size:var(--prize-msg-size);color:var(--prize-msg-color);padding-bottom:20px}.spinWheel .wheelWrap .sc-btn{display:flex;font-size:16px;font-weight:700;text-transform:uppercase;text-decoration:none;letter-spacing:1px;border:solid 1px var(--wheel-border-color);padding:10px 20px;transition:all .2s ease;color:var(--coupon-btn-color);background:var(--coupon-btn-bg);border-radius:var(--coupon-btn-radius);align-items:center}.spinWheel .wheelWrap .sc-btn:hover{background:var(--coupon-btn-hover)}.spinWheel .wheelWrap .sc-small{font-size:var(--privacy-size);color:var(--privacy-color);text-decoration:underline;padding:20px 0 0 0}.spinWheel .wheelWrap .sc-small:hover{opacity:.7}.spinWheel .wheelWrap .sc-form-wrap input{width:100%;max-width:240px;height:40px;padding:0 10px;font-size:16px;color:#0e0e0e;background:#f6f6f6;border:1px solid var(--input-border);border-radius:4px;margin-bottom:16px}.spinWheel .wheelWrap .sc-form-wrap input:focus{border-color:var(--input-focus);outline:none}.spinWheel .wheelWrap .sc-form-wrap button{width:100%;max-width:240px;font-size:var(--form-submit-size);padding:14px 20px;color:var(--form-submit-color);background:var(--form-submit-bg);border:none;border-radius:var(--form-submit-radius);cursor:pointer;transition:all .2s ease;box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.spinWheel .wheelWrap .sc-form-wrap button:hover{background:var(--form-submit-hover);box-shadow:0 12px 16px 0 rgba(0,0,0,.24),0 17px 50px 0 rgba(0,0,0,.19);transform:scale(1.05)} -
ultimate-spin-wheel/trunk/build/606.js
r3344591 r3417307 1 "use strict";(globalThis.webpackChunkultimate_spin_wheel=globalThis.webpackChunkultimate_spin_wheel||[]).push([[606],{571:(e,t, a)=>{a.d(t,{A:()=>o});var l=a(609),r=a(723);const o=({title:e,desc:t})=>(0,l.createElement)("div",{className:"relative bg-gradient-to-r from-indigo-800 to-purple-600 dark:from-gray-900 dark:to-gray-700 bg-clip-border mx-4 rounded-xl overflow-hidden text-white shadow-purple-500/40 dark:shadow-gray-900/40 shadow-lg -mt-12 mb-8 p-3 lg:p-6"},(0,l.createElement)("div",{className:"flex w-full items-center justify-between"},(0,l.createElement)("div",null,(0,l.createElement)("h6",{className:"block antialiased tracking-normal font-sans text-base font-semibold leading-relaxed text-white mt-0 mb-1"},(0,r.__)(e,"ultimate-spin-wheel")),(0,l.createElement)("div",{className:"block antialiased font-sans text-md font-normal dark:text-gray-300"},(0,r.__)(t,"ultimate-spin-wheel")))))},606:(e,t,a)=>{a.r(t),a.d(t,{default:()=>z});var l=a(609),r=a.n(l),o=a(723),s=a(143),n=(a(582),a(571));const i=["#277162","#277162","#277162","#277162","#277162"],c={win:{bgColor:"from-green-50 to-emerald-50 hover:from-green-100 hover:to-emerald-100",badgeColor:"from-green-500 to-emerald-500",focusColor:"focus:ring-green-500",dotColor:"bg-green-500 animate-pulse"},lost:{bgColor:"from-red-50 to-pink-50 hover:from-red-100 hover:to-pink-100",badgeColor:"from-red-500 to-pink-500",focusColor:"focus:ring-red-500",dotColor:"bg-red-500"}},m=({type:e,label:t})=>{const a=c[e];return(0,l.createElement)("div",{className:"flex items-center space-x-2"},(0,l.createElement)("div",{className:`w-2 h-2 ${a.dotColor} rounded-full`}),(0,l.createElement)("span",{className:`inline-block px-2 py-1 bg-gradient-to-r ${a.badgeColor} text-white text-xs font-${"win"===e?"bold":"medium"} rounded-full shadow-sm`},t))},u=({type:e="text",value:t="",onChange:a,placeholder:r,className:o="",focusColor:s="focus:ring-green-500",...n})=>(0,l.createElement)("input",{type:e,value:t,onChange:a,className:`w-full p-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:ring-2 ${s} focus:border-transparent transition-all duration-200 bg-white shadow-sm ${o}`,placeholder:r,...n}),d=({value:e,onChange:t,title:a})=>(0,l.createElement)("input",{type:"color",value:e,onChange:t,className:"w-12 h-12 cursor-pointer",title:a}),p=({onClick:e})=>(0,l.createElement)("button",{onClick:e,className:"text-white bg-gradient-to-r from-red-400 via-red-500 to-red-600 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-sm px-2.5 py-2.5 text-center group",title:"Remove this coupon"},(0,l.createElement)("svg",{className:"w-5 h-5 transition-transform duration-200 group-hover:scale-110",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))),g=({text:e})=>(0,l.createElement)("div",{className:"flex items-center justify-center h-12 bg-gray-50 rounded-lg border-2 border-dashed border-gray-200"},(0,l.createElement)("span",{className:"text-gray-400 italic text-sm"},e)),b=({icon:e,title:t,value:a,isWarning:r=!1,warningText:o=""})=>(0,l.createElement)("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100"},(0,l.createElement)("div",{className:"flex items-center space-x-2 mb-2"},(0,l.createElement)("span",{className:`w-2 h-2 ${e} rounded-full`}),(0,l.createElement)("span",{className:"font-semibold text-gray-700"},t)),(0,l.createElement)("div",{className:"flex items-center space-x-2"},(0,l.createElement)("span",{className:"text-2xl font-bold "+(r?"text-red-600":"text-blue-600")},a),r&&o&&(0,l.createElement)("span",{className:"text-red-500 text-xs bg-red-100 px-2 py-1 rounded-full"},o))),y=({coupons:e=[],onAdd:t,onRemove:a,onUpdate:o})=>{const s=(0,l.useMemo)(()=>e.map((t,a)=>({...t,lost:t.lost||{label:"",color:e[a]?.lost?.color||i[a%i.length]}})),[e]),n=(0,l.useMemo)(()=>{const e=s.reduce((e,t)=>e+(parseInt(t?.probability)||0),0);return{totalWinProbability:e,lostProbability:Math.max(0,100-e),averageWinRate:s.length>0?Math.round(e/s.length):0,isOverLimit:e>100}},[s]),y=(0,l.useCallback)((e,t,a)=>{const l={...s[e]};if(t.startsWith("lost.")){const e=t.split(".")[1];l.lost={...l.lost,[e]:a||""}}else l[t]=a||"";o(e,l)},[s,o]),h=(0,l.useCallback)((e,t,a)=>{const l={...s[e]};l.lost={...l.lost,[t]:a||""},o(e,l)},[s,o]);return(0,l.createElement)("div",null,(0,l.createElement)("div",{className:"flex items-center justify-between mb-8 pb-4 border-b border-gray-200"},(0,l.createElement)("div",null,(0,l.createElement)("h3",{className:"text-2xl font-bold text-gray-800 mb-2"},"🎡 Coupons List"),(0,l.createElement)("p",{className:"text-gray-600 text-sm"},"Configure your coupon probabilities and appearance"))),(0,l.createElement)("div",{className:"overflow-x-auto rounded-lg shadow-sm"},(0,l.createElement)("table",{className:"table-auto w-full border-collapse bg-white"},(0,l.createElement)("thead",null,(0,l.createElement)("tr",{className:"bg-gradient-to-r from-indigo-800 to-purple-600 text-white shadow-lg"},(0,l.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},(0,l.createElement)("div",{className:"flex items-center space-x-2"},(0,l.createElement)("span",{className:"w-2 h-2 bg-white rounded-full"}),(0,l.createElement)("span",null,"Type"))),(0,l.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Label"),(0,l.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Code/Description"),(0,l.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Probability (%)"),(0,l.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Color"),(0,l.createElement)("th",{className:"px-6 py-4 text-center font-semibold text-sm uppercase tracking-wider"},"Actions"))),(0,l.createElement)("tbody",null,s.map((e,t)=>(0,l.createElement)(r().Fragment,{key:`coupon-${t}`},(0,l.createElement)("tr",{className:`bg-gradient-to-r ${c.win.bgColor} transition-all duration-200`},(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(m,{type:"win",label:"WIN"})),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(u,{value:e?.label||"",onChange:e=>y(t,"label",e.target.value),placeholder:"🏷️ Win Label",focusColor:c.win.focusColor})),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(u,{value:e?.code||"",onChange:e=>y(t,"code",e.target.value),placeholder:"💳 Coupon Code",className:"font-mono",focusColor:c.win.focusColor})),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)("div",{className:"relative"},(0,l.createElement)(u,{type:"number",value:e?.probability||"",onChange:e=>y(t,"probability",e.target.value),placeholder:"Win %",className:"pr-8",focusColor:c.win.focusColor,min:"0",max:"100"}),(0,l.createElement)("span",{className:"absolute right-3 top-3 text-gray-400 text-sm"},"%"))),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(d,{value:e?.color||"#4ECDC4",onChange:e=>y(t,"color",e.target.value),title:"Choose win color"})),(0,l.createElement)("td",{className:"px-6 py-4 text-center"},(0,l.createElement)(p,{onClick:()=>a(t)}))),(0,l.createElement)("tr",{className:`bg-gradient-to-r ${c.lost.bgColor} transition-all duration-200`},(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(m,{type:"lost",label:"LOST"})),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(u,{value:e?.lost?.label||"",onChange:e=>h(t,"label",e.target.value),placeholder:"",focusColor:c.lost.focusColor})),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(g,{text:"🚫 No coupon code for lost"})),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(g,{text:"N/A"})),(0,l.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,l.createElement)(d,{value:e?.lost?.color||i[t%i.length],onChange:e=>h(t,"color",e.target.value),title:"Choose lost color"})),(0,l.createElement)("td",{className:"px-6 py-4 text-center"})),t<s.length-1&&(0,l.createElement)("tr",null,(0,l.createElement)("td",{colSpan:"6",className:"h-4 bg-gradient-to-r from-gray-50 via-white to-gray-50 border-b border-gray-100"},(0,l.createElement)("div",{className:"w-full h-full flex items-center justify-center"},(0,l.createElement)("div",{className:"w-32 h-px bg-gradient-to-r from-transparent via-gray-300 to-transparent"}))))))))),(0,l.createElement)("div",{className:"mt-6"},(0,l.createElement)("button",{onClick:t,className:"px-6 py-3 bg-blue-500 text-white rounded shadow hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-400 transition-colors"},"Add New Coupon")),(0,l.createElement)("div",{className:"mt-8"},(0,l.createElement)("div",{className:"mb-6"},(0,l.createElement)("h4",{className:"text-xl font-bold text-gray-800"},"Configuration Summary"),(0,l.createElement)("p",{className:"text-gray-600 text-sm"},'In a spin wheel, the total of all win probabilities should equal 100% or less. Any remaining percentage becomes the "lost" probability. Each coupon competes for its share of the 100% total.')),(0,l.createElement)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 text-sm"},(0,l.createElement)(b,{icon:"bg-blue-500",title:"Total Coupons",value:s.length}),(0,l.createElement)(b,{icon:"bg-green-500",title:"Total Win Probability",value:`${n.totalWinProbability}%`,isWarning:n.isOverLimit,warningText:n.isOverLimit?"⚠️ Over 100%":""}),(0,l.createElement)(b,{icon:"bg-red-500",title:"Lost Probability",value:`${n.lostProbability}%`}),(0,l.createElement)(b,{icon:"bg-purple-500",title:"Average Win Rate",value:`${n.averageWinRate}%`})),n.isOverLimit&&(0,l.createElement)("div",{className:"mt-6 p-4 bg-gradient-to-r from-red-50 to-orange-50 border-l-4 border-red-500 rounded-lg shadow-sm"},(0,l.createElement)("div",{className:"flex items-start space-x-3"},(0,l.createElement)("div",{className:"w-6 h-6 bg-red-500 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5"},(0,l.createElement)("span",{className:"text-white text-xs"},"⚠️")),(0,l.createElement)("div",null,(0,l.createElement)("h5",{className:"font-semibold text-red-800 mb-1"},"Probability Warning"),(0,l.createElement)("p",{className:"text-red-700 text-sm"},"Total win probabilities exceed 100%. This configuration may cause unpredictable results. Consider reducing individual probabilities so they sum to 100% or less."))))))};var h=a(427),f=a(682),x=a.n(f);const v=({value:e,onChange:t,title:a})=>(0,l.createElement)("input",{type:"color",value:e,onChange:t,className:"w-12 h-12 cursor-pointer",title:a}),w=({segments:e,customDesign:t,setCustomDesign:a})=>{const[r,s]=(0,l.useState)("wheel");console.log("customDesign:",t);const n=(()=>{if("string"==typeof t)try{return JSON.parse(t)}catch(e){return console.error("Error parsing customDesign JSON:",e),{}}return t||{}})();(0,l.useEffect)(()=>((()=>{const e=document.getElementById("ultimate-spin-wheel-spin-wheel-preview-styles");e&&e.remove();const t=document.createElement("style");t.id="ultimate-spin-wheel-spin-wheel-preview-styles",t.type="text/css";const a=(l=n,`\n /* Spin Wheel Custom Styles */\n #ultimate-spin-wheel-spin-wheel-preview {\n --panel-bg-color: ${l.viewPanel?.backgroundColor||"#16a085"};\n --spin-btn-color: ${l.spinButton?.color||"#fff"};\n --spin-btn-bg: ${l.spinButton?.backgroundColor||"#16a085"};\n --spin-btn-hover: ${l.spinButton?.backgroundColorColorHover||"#139cb2"};\n --spin-btn-font-size: ${l.spinButton?.fontSize||"16px"};\n --form-title-color: ${l.formTitle?.color||"#fff"};\n --form-title-size: ${l.formTitle?.fontSize||"24px"};\n --form-title-weight: ${l.formTitle?.fontWeight||"normal"};\n --form-submit-color: ${l.formSubmitButton?.color||"#0a0a0a"};\n --form-submit-bg: ${l.formSubmitButton?.backgroundColor||"#fff"};\n --form-submit-hover: ${l.formSubmitButton?.hoverColor||"#f0f0f0"};\n --form-submit-size: ${l.formSubmitButton?.fontSize||"16px"};\n --form-submit-radius: ${l.formSubmitButton?.borderRadius||5}px;\n --input-border: ${l.formInputs?.borderColor||"#ccc"};\n --input-focus: ${l.formInputs?.focusColor||"#16a085"};\n --privacy-color: ${l.privacyText?.color||"#fff"};\n --privacy-size: ${l.privacyText?.fontSize||"12px"};\n --prize-title-color: ${l.prizeWonTitle?.color||"#fff"};\n --prize-title-size: ${l.prizeWonTitle?.fontSize||"24px"};\n --prize-msg-color: ${l.prizeWonMsg?.color||"#fff"};\n --prize-msg-size: ${l.prizeWonMsg?.fontSize||"28px"};\n --lost-title-color: ${l.prizeLostTitle?.color||"#fff"};\n --lost-title-size: ${l.prizeLostTitle?.fontSize||"24px"};\n --coupon-btn-color: ${l.couponButton?.color||"#fff"};\n --coupon-btn-bg: ${l.couponButton?.backgroundColor||"#16a085"};\n --coupon-btn-hover: ${l.couponButton?.hoverColor||"#139cb2"};\n --coupon-btn-radius: ${l.couponButton?.borderRadius||5}px;\n --wheel-lost-color: ${l.wheel?.lostColor||"#ccc"};\n --wheel-border-color: ${l.wheel?.borderColor||"#fff"};\n --wheel-border-width: ${l.wheel?.borderWidth||12}px;\n }\n `);var l;t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a)),document.head.appendChild(t)})(),()=>{const e=document.getElementById("ultimate-spin-wheel-spin-wheel-preview-styles");e&&e.remove()}),[n]);const i=(e,l,r)=>{const o={...n,[e]:{...n[e],[l]:r}};a("string"==typeof t?JSON.stringify(o):o)};return(0,l.createElement)("div",{className:"ultimate-spin-wheel-spin-wheel"},(0,l.createElement)("div",{className:"flex gap-8 p-4"},(0,l.createElement)("div",{className:"min-w-[400px]"},(0,l.createElement)("div",{className:"mb-6"},(0,l.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,o.__)("General Settings","ultimate-spin-wheel")),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Panel Background"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Background Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose panel background color",value:n.viewPanel?.backgroundColor||"#16a085",onChange:e=>i("viewPanel","backgroundColor",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Border Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose wheel border color",value:n.wheel?.borderColor||"#fff",onChange:e=>i("wheel","borderColor",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Border Width","ultimate-spin-wheel")),(0,l.createElement)(h.RangeControl,{value:n.wheel?.borderWidth||12,onChange:e=>i("wheel","borderWidth",e),min:0,max:40,help:(0,o.__)("Border width in pixels","ultimate-spin-wheel")}))),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Privacy Text"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Privacy Text","ultimate-spin-wheel"),value:n.privacyText?.text||"Privacy & Policy",onChange:e=>i("privacyText","text",e),help:(0,o.__)("Privacy policy text.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Text Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose privacy text color",value:n.privacyText?.color||"#fff",onChange:e=>i("privacyText","color",e.target.value)})),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Font Size","ultimate-spin-wheel"),value:n.privacyText?.fontSize||"12px",onChange:e=>i("privacyText","fontSize",e),help:(0,o.__)("Font size for privacy text (e.g., 12px, 0.8em).","ultimate-spin-wheel")}),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Privacy Link URL","ultimate-spin-wheel"),value:n.privacyText?.url||"#",onChange:e=>i("privacyText","url",e),help:(0,o.__)("URL for privacy policy link.","ultimate-spin-wheel")}))),(0,l.createElement)("div",{className:"mb-6"},(0,l.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,o.__)("Wheel Settings","ultimate-spin-wheel")),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Spin Button (Center)"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Button Text","ultimate-spin-wheel"),value:n.spinButton?.text||"GO!",onChange:e=>i("spinButton","text",e),help:(0,o.__)("Text displayed on the center spin button.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Text Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose text color",value:n.spinButton?.color||"#fff",onChange:e=>i("spinButton","color",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Background Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose background color",value:n.spinButton?.backgroundColor||"#16a085",onChange:e=>i("spinButton","backgroundColor",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Hover Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose hover color",value:n.spinButton?.backgroundColorColorHover||"#139cb2",onChange:e=>i("spinButton","backgroundColorColorHover",e.target.value)})),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Font Size","ultimate-spin-wheel"),value:n.spinButton?.fontSize||"16px",onChange:e=>i("spinButton","fontSize",e),help:(0,o.__)("Font size for button text (e.g., 16px, 1em).","ultimate-spin-wheel")}))),(0,l.createElement)("div",{className:"mb-6"},(0,l.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,o.__)("Form Settings","ultimate-spin-wheel")),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Form Title"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Title Text","ultimate-spin-wheel"),value:n.formTitle?.text||"Let's try luck!",onChange:e=>i("formTitle","text",e),help:(0,o.__)("Main title text displayed on the form.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Text Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose title color",value:n.formTitle?.color||"#fff",onChange:e=>i("formTitle","color",e.target.value)})),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Font Size","ultimate-spin-wheel"),value:n.formTitle?.fontSize||"24px",onChange:e=>i("formTitle","fontSize",e),help:(0,o.__)("Font size for the title (e.g., 24px, 1.5em).","ultimate-spin-wheel")}),(0,l.createElement)(h.SelectControl,{label:(0,o.__)("Font Weight","ultimate-spin-wheel"),value:n.formTitle?.fontWeight||"normal",options:[{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Light",value:"300"},{label:"Semi Bold",value:"600"},{label:"Extra Bold",value:"800"}],onChange:e=>i("formTitle","fontWeight",e)})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Submit Button"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Button Text","ultimate-spin-wheel"),value:n.formSubmitButton?.text||"Spin The Wheel",onChange:e=>i("formSubmitButton","text",e),help:(0,o.__)("Text for the submit button.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Text Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose submit button text color",value:n.formSubmitButton?.color||"#0a0a0a",onChange:e=>i("formSubmitButton","color",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Background Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose submit button background color",value:n.formSubmitButton?.backgroundColor||"#fff",onChange:e=>i("formSubmitButton","backgroundColor",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Hover Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose submit button hover color",value:n.formSubmitButton?.hoverColor||"#f0f0f0",onChange:e=>i("formSubmitButton","hoverColor",e.target.value)})),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Font Size","ultimate-spin-wheel"),value:n.formSubmitButton?.fontSize||"16px",onChange:e=>i("formSubmitButton","fontSize",e),help:(0,o.__)("Font size for button text (e.g., 16px, 1em).","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Border Radius","ultimate-spin-wheel")),(0,l.createElement)(h.RangeControl,{value:n.formSubmitButton?.borderRadius||5,onChange:e=>i("formSubmitButton","borderRadius",e),min:0,max:50,help:(0,o.__)("Button border radius in pixels","ultimate-spin-wheel")}))),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Input Fields"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Name Placeholder","ultimate-spin-wheel"),value:n.formInputs?.namePlaceholder||"Enter your name",onChange:e=>i("formInputs","namePlaceholder",e)}),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Email Placeholder","ultimate-spin-wheel"),value:n.formInputs?.emailPlaceholder||"Enter your email",onChange:e=>i("formInputs","emailPlaceholder",e)}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Border Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose input border color",value:n.formInputs?.borderColor||"#ccc",onChange:e=>i("formInputs","borderColor",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Focus Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose input focus color",value:n.formInputs?.focusColor||"#16a085",onChange:e=>i("formInputs","focusColor",e.target.value)})))),(0,l.createElement)("div",{className:"mb-6"},(0,l.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,o.__)("Result Panels","ultimate-spin-wheel")),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Prize Won Panel"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Title Text","ultimate-spin-wheel"),value:n.prizeWonTitle?.text||"Congratulations!",onChange:e=>i("prizeWonTitle","text",e),help:(0,o.__)("Title shown when user wins.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Title Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose title color",value:n.prizeWonTitle?.color||"#fff",onChange:e=>i("prizeWonTitle","color",e.target.value)})),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Title Font Size","ultimate-spin-wheel"),value:n.prizeWonTitle?.fontSize||"24px",onChange:e=>i("prizeWonTitle","fontSize",e)}),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Prize Message","ultimate-spin-wheel"),value:n.prizeWonMsg?.text||"You won a {{discount_label}} discount!",onChange:e=>i("prizeWonMsg","text",e),help:(0,o.__)("Message shown when user wins. Use {{discount_label}} for dynamic content.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Message Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose prize message color",value:n.prizeWonMsg?.color||"#fff",onChange:e=>i("prizeWonMsg","color",e.target.value)})),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Message Font Size","ultimate-spin-wheel"),value:n.prizeWonMsg?.fontSize||"28px",onChange:e=>i("prizeWonMsg","fontSize",e)})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Lost Panel"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Title Text","ultimate-spin-wheel"),value:n.prizeLostTitle?.text||"Better luck next time!",onChange:e=>i("prizeLostTitle","text",e),help:(0,o.__)("Message shown when user loses.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Text Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose lost message color",value:n.prizeLostTitle?.color||"#fff",onChange:e=>i("prizeLostTitle","color",e.target.value)})),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Font Size","ultimate-spin-wheel"),value:n.prizeLostTitle?.fontSize||"24px",onChange:e=>i("prizeLostTitle","fontSize",e)})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Action Button"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Win Button Text","ultimate-spin-wheel"),value:n.couponButton?.winText||"Start Shopping!",onChange:e=>i("couponButton","winText",e),help:(0,o.__)("Button text when user wins.","ultimate-spin-wheel")}),(0,l.createElement)(h.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,o.__)("Lost Button Text","ultimate-spin-wheel"),value:n.couponButton?.lostText||"Try Again",onChange:e=>i("couponButton","lostText",e),help:(0,o.__)("Button text when user loses.","ultimate-spin-wheel")}),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Text Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose coupon button text color",value:n.couponButton?.color||"#fff",onChange:e=>i("couponButton","color",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Background Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose coupon button background color",value:n.couponButton?.backgroundColor||"#16a085",onChange:e=>i("couponButton","backgroundColor",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Hover Color","ultimate-spin-wheel")),(0,l.createElement)(v,{title:"Choose coupon button hover color",value:n.couponButton?.hoverColor||"#139cb2",onChange:e=>i("couponButton","hoverColor",e.target.value)})),(0,l.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,l.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,o.__)("Border Radius","ultimate-spin-wheel")),(0,l.createElement)(h.RangeControl,{value:n.couponButton?.borderRadius||5,onChange:e=>i("couponButton","borderRadius",e),min:0,max:50,help:(0,o.__)("Button border radius in pixels","ultimate-spin-wheel")}))))),(0,l.createElement)("div",{className:"max-w-full flex-1"},(0,l.createElement)(x(),null,(0,l.createElement)(()=>(0,l.createElement)("div",{className:"preview-tabs text-center mb-10"},(0,l.createElement)("button",{className:"px-4 py-2 mr-2 rounded "+("wheel"===r?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>s("wheel")},(0,o.__)("Wheel View","ultimate-spin-wheel")),(0,l.createElement)("button",{className:"px-4 py-2 mr-2 rounded "+("submit"===r?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>s("submit")},(0,o.__)("Form Panel","ultimate-spin-wheel")),(0,l.createElement)("button",{className:"px-4 py-2 mr-2 rounded "+("prize"===r?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>s("prize")},(0,o.__)("Prize Panel","ultimate-spin-wheel")),(0,l.createElement)("button",{className:"px-4 py-2 rounded "+("lost"===r?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>s("lost")},(0,o.__)("Lost Panel","ultimate-spin-wheel"))),null),(0,l.createElement)(()=>(0,l.createElement)("div",{id:"ultimate-spin-wheel-spin-wheel-preview",className:`spinWheel text-center ${"wheel"===r?"active":""} ${"prize"===r?"active":""} ${"lost"===r?"active":""}`},(0,l.createElement)("div",{className:"wheelWrap"},(0,l.createElement)("div",{className:"wheel","data-spin-circles":"6"},(()=>{const t=[],a=2*e.length,r=90-360/a,o=360/a/2;return e.forEach((e,s)=>{const i=2*s,c=2*s+1;t.push((0,l.createElement)("div",{key:`win-${s}`,className:"area","data-wheel-bg":e.color,"data-wheel-prize":"wins","data-coupon-code":e.code||"","data-wheel-message":e.label,style:{transform:`rotate(${360/a*i}deg) skewY(-${r}deg)`}},(0,l.createElement)("span",{style:{background:e.color,transform:`skewY(${r}deg) rotate(${o}deg)`}},e.label))),t.push((0,l.createElement)("div",{key:`lost-${s}`,className:"area","data-wheel-bg":e.lost?.color||n.wheel?.lostColor||"#ccc","data-wheel-prize":"lost","data-wheel-message":e.lost?.label||n.prizeLostTitle?.text||"Better luck next time!",style:{transform:`rotate(${360/a*c}deg) skewY(-${r}deg)`}},(0,l.createElement)("span",{style:{background:e.lost?.color||n.wheel?.lostColor||"#ccc",transform:`skewY(${r}deg) rotate(${o}deg)`}})))}),t})()),(0,l.createElement)("div",{className:"sc-form-wrap "+("submit"===r?"active":""),style:{opacity:"submit"===r?1:0}},(0,l.createElement)("div",{className:"title"},n.formTitle?.text||"Let's try luck!"),(0,l.createElement)("form",{className:"sc-spin-form"},(0,l.createElement)("input",{type:"text",name:"name",placeholder:n.formInputs?.namePlaceholder||"Enter your name"}),(0,l.createElement)("input",{type:"email",name:"email",placeholder:n.formInputs?.emailPlaceholder||"Enter your email",required:!0}),(0,l.createElement)("button",{type:"submit",className:"spin"},n.formSubmitButton?.text||"Spin the Wheel")),(0,l.createElement)("a",{className:"sc-small",href:n.privacyText?.url||"javascript:void(0);"},n.privacyText?.text||"Privacy & Policy")),(0,l.createElement)("div",{className:`msg ${"prize"===r?"active":""} ${"lost"===r?"active":""}`,style:{opacity:"prize"===r||"lost"===r?1:0}},(0,l.createElement)("div",{className:"title"},(0,l.createElement)("span",null,"prize"===r?n.prizeWonTitle?.text||"Congratulations!":n.prizeLostTitle?.text||"Oops!")),(0,l.createElement)("div",{className:"prizeMsg"},"prize"===r?(n.prizeWonMsg?.text||"You won a {{discount_label}} discount!").replace("{{discount_label}}","10%"):n.prizeLostTitle?.text||"Better luck next time!"),(0,l.createElement)("div",{className:`sc-btn sc-coupon ${"prize"===r?"active":""} ${"lost"===r?"active":""}`},"prize"===r?n.couponButton?.winText||"Start shopping!":n.couponButton?.lostText||"Try Again"),(0,l.createElement)("a",{className:"sc-small",href:n.privacyText?.url||"javascript:void(0);"},n.privacyText?.text||"Privacy & Policy")),(0,l.createElement)("div",{className:`start ${"wheel"===r?"active":""} ${"prize"===r?"active":""} ${"lost"===r?"active":""}`,"data-wheel-lost-text":"Go again?"},"wheel"===r?n.spinButton?.text||"GO!":"lost"===r?"Go again?":n.spinButton?.text||"GO!"),(0,l.createElement)("div",{className:"marker"}))),null)))))};var E=a(425);a(982);const _=[{label:"Front Page",value:"front_page"},{label:"Blog Page",value:"blog_page"},{label:"Archive Page",value:"archive_page"},{label:"404 Page",value:"404_page"}],C=[{label:"All Users",value:"all_users"},{label:"Logged In",value:"logged_in"},{label:"Logged Out",value:"logged_out"},{label:"Administrator",value:"administrator"},{label:"Editor",value:"editor"},{label:"Author",value:"author"},{label:"Contributor",value:"contributor"},{label:"Subscriber",value:"subscriber"}],S=[{label:"Spin Wheel",value:"spin_wheel"},{label:"Popup",value:"popup"},{label:"Campaign Banner",value:"campaign_banner"}],k=[{label:"On Page Load",value:"page_load"},{label:"On Exit Intent",value:"exit_intent"},{label:"On Scroll",value:"scroll"},{label:"On Click",value:"click"},{label:"On Referrer",value:"referrer"},{label:"Time Delay",value:"time_delay"}],N=[{label:"All Devices",value:"all"},{label:"Desktop Only",value:"desktop"},{label:"Mobile Only",value:"mobile"},{label:"Tablet Only",value:"tablet"}],T=[{label:"Show Once Per Session",value:"session",disabled:!0},{label:"Show Once Per Day",value:"daily",disabled:!0},{label:"Show Based on Days",value:"custom_days"},{label:"Show Always",value:"always",disabled:!0},{label:"Show Once Forever",value:"once",disabled:!0}],P=async e=>{if(!e)return[];try{return(await wp.apiFetch({path:`/wp/v2/pages?search=${encodeURIComponent(e)}&per_page=10`})).map(e=>({label:e.title.rendered,value:String(e.id)}))}catch(e){return console.error("Error fetching pages:",e),[]}},D=({builderType:e,setBuilderType:t,builderStatus:a,setBuilderStatus:r,displayOn:s,setDisplayOn:n,notDisplayOn:i,setNotDisplayOn:c,displaySpecialPages:m,setDisplaySpecialPages:u,notDisplaySpecialPages:d,setNotDisplaySpecialPages:p,displayCustomPages:g,setDisplayCustomPages:b,notDisplayCustomPages:y,setNotDisplayCustomPages:f,displayUserRoles:x,setDisplayUserRoles:v,campaignTriggers:w=[],setCampaignTriggers:D,scrollPercentage:B=50,setScrollPercentage:O,clickSelector:z="",setClickSelector:$,referrerDomains:W=[],setReferrerDomains:R,timeDelay:I=5,setTimeDelay:F,startDate:L,setStartDate:A,endDate:j,setEndDate:M,displayFrequency:J,setDisplayFrequency:U,customDays:q=7,setCustomDays:H,targetDevices:Y=["all"],setTargetDevices:G,maxImpressions:V=0,setMaxImpressions:K,campaignPriority:Q=1,setCampaignPriority:X,enableABTesting:Z=!1,setEnableABTesting:ee,abTestingWeight:te=50,setAbTestingWeight:ae,customCSS:le="",setCustomCSS:re,customJS:oe="",setCustomJS:se})=>{const[ne,ie]=(0,l.useState)(new Map),[ce,me]=(0,l.useState)(!1);(0,l.useEffect)(()=>{(async()=>{const e=[...g,...y].filter(e=>!ne.has(e));if(0!==e.length){me(!0);try{const t=10,a=new Map(ne);for(let l=0;l<e.length;l+=t){const r=e.slice(l,l+t),o=r.join(",");try{(await wp.apiFetch({path:`/wp/v2/pages?include=${o}&per_page=${t}`})).forEach(e=>{a.set(String(e.id),e.title.rendered)})}catch(e){console.error("Error fetching page titles for batch:",r,e),r.forEach(e=>{a.has(e)||a.set(e,`Page ID: ${e}`)})}}ie(a)}catch(e){console.error("Error fetching page titles:",e)}finally{me(!1)}}})()},[g,y]);const ue=e=>ne.get(e)||`Page ID: ${e}`,de=e=>{const t=[{label:"Entire Site",value:"entire_site"},{label:"All Pages",value:"all_pages"},{label:"All Posts",value:"all_posts"},{label:"Special Pages",value:"special_pages"},{label:"Custom Pages",value:"custom_pages"}];return e.map(e=>{const a=t.find(t=>t.value===e);return a?a.label:e})},pe=e=>e.map(e=>{const t=_.find(t=>t.value===e);return t?t.label:e}),ge=e=>e.map(e=>ue(e)),be=e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Not set";return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-6"},(0,l.createElement)("h3",{className:"text-lg font-medium text-blue-900 mb-3"},(0,o.__)("Campaign Configuration Summary")),(0,l.createElement)("div",{className:"space-y-2 text-sm"},(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Layout:")," ",(0,l.createElement)("span",{className:"text-gray-900"},e?(e=>{const t=S.find(t=>t.value===e);return t?t.label:e})(e):"Not set")),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Status:")," ",(0,l.createElement)("span",{className:"capitalize "+("enabled"===a?"text-green-600":"text-red-600")},a)),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Schedule:")," ",(0,l.createElement)("span",{className:"text-gray-900"},L?be(L):"No start date"," - ",j?be(j):"No end date")),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Max Impressions:")," ",(0,l.createElement)("span",{className:"text-gray-900"},V>0?V:"Unlimited")),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Triggers:")," ",(0,l.createElement)("span",{className:"text-gray-900"},w.length?(ye=w,ye.map(e=>{const t=k.find(t=>t.value===e);return t?t.label:e})).join(", "):"None selected")),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Frequency:")," ",(0,l.createElement)("span",{className:"text-gray-900"},(e=>{const t=T.find(t=>t.value===e);return t?t.label:e})(J),"custom_days"===J&&` (${q} days)`)),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Target Devices:")," ",(0,l.createElement)("span",{className:"text-gray-900"},Y.length?Y.map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(", "):"All devices")),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Display On:")," ",(0,l.createElement)("span",{className:"text-gray-900"},s.length?de(s).join(", "):"None selected")),s.includes("special_pages")&&m.length>0&&(0,l.createElement)("div",{className:"ml-4"},(0,l.createElement)("span",{className:"font-medium text-gray-600"},"• Special Pages:")," ",(0,l.createElement)("span",{className:"text-gray-800"},pe(m).join(", "))),s.includes("custom_pages")&&g.length>0&&(0,l.createElement)("div",{className:"ml-4"},(0,l.createElement)("span",{className:"font-medium text-gray-600"},"• Custom Pages:")," ",(0,l.createElement)("span",{className:"text-gray-800"},ce?`Loading ${g.length} page title(s)...`:ge(g).join(", "))),i.length>0&&(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"Not Display On:")," ",(0,l.createElement)("span",{className:"text-gray-900"},de(i).join(", "))),i.includes("special_pages")&&d.length>0&&(0,l.createElement)("div",{className:"ml-4"},(0,l.createElement)("span",{className:"font-medium text-gray-600"},"• Special Pages:")," ",(0,l.createElement)("span",{className:"text-gray-800"},pe(d).join(", "))),i.includes("custom_pages")&&y.length>0&&(0,l.createElement)("div",{className:"ml-4"},(0,l.createElement)("span",{className:"font-medium text-gray-600"},"• Custom Pages:")," ",(0,l.createElement)("span",{className:"text-gray-800"},ce?`Loading ${y.length} page title(s)...`:ge(y).join(", "))),(0,l.createElement)("div",null,(0,l.createElement)("span",{className:"font-medium text-gray-700"},"User Roles:")," ",(0,l.createElement)("span",{className:"text-gray-900"},x.length?(e=>e.map(e=>{const t=C.find(t=>t.value===e);return t?t.label:e}))(x).join(", "):"All users")))),(0,l.createElement)("div",{className:"plugin-sidebar-settings p-4 border-t border-gray-200 grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3"},(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Layout & Status"),initialOpen:!1},(0,l.createElement)(h.SelectControl,{label:(0,o.__)("Select Addons Type"),value:e,options:S,onChange:t,disabled:!0}),(0,l.createElement)(h.SelectControl,{label:(0,o.__)("Status"),value:a,options:[{label:"Enabled",value:"enabled"},{label:"Disabled",value:"disabled"}],onChange:r}),(0,l.createElement)(h.RangeControl,{label:(0,o.__)("Campaign Priority (1-10)"),value:Q,onChange:X,min:1,max:10,help:(0,o.__)("Higher priority campaigns show first when multiple campaigns are active"),disabled:!0})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Campaign Schedule"),initialOpen:!1},(0,l.createElement)("div",{style:{marginBottom:"20px"}},(0,l.createElement)("label",{className:"components-base-control__label"},(0,o.__)("Start Date & Time")),(0,l.createElement)(h.DateTimePicker,{currentDate:L||new Date,onChange:A,is12Hour:!0})),(0,l.createElement)("div",{style:{marginBottom:"20px"}},(0,l.createElement)("label",{className:"components-base-control__label"},(0,o.__)("End Date & Time")),(0,l.createElement)(h.DateTimePicker,{currentDate:j||new Date(Date.now()+2592e6),onChange:M,is12Hour:!0}))),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Maximum Impressions"),initialOpen:!1},(0,l.createElement)(h.RangeControl,{label:(0,o.__)("Maximum Impressions (0 = unlimited)"),value:V,onChange:K,min:0,max:1e4,help:(0,o.__)("Limit total number of times this campaign can be shown"),disabled:!0})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("When to Show Campaign"),initialOpen:!1},(0,l.createElement)(h.SelectControl,{multiple:!0,label:(0,o.__)("Select Triggers"),value:w,options:k,onChange:D,help:(0,o.__)("Choose when the campaign should appear")}),w.includes("scroll")&&(0,l.createElement)(h.RangeControl,{label:(0,o.__)("Scroll Percentage"),value:B,onChange:O,min:10,max:100,help:(0,o.__)("Show campaign when user scrolls this percentage of the page")}),w.includes("click")&&(0,l.createElement)(h.TextControl,{label:(0,o.__)("Click Selector"),value:z,onChange:$,placeholder:".button, #my-element, [data-trigger]",help:(0,o.__)("CSS selector for elements that trigger the campaign when clicked")}),w.includes("time_delay")&&(0,l.createElement)(h.RangeControl,{label:(0,o.__)("Time Delay (seconds)"),value:I,onChange:F,min:1,max:60,help:(0,o.__)("Show campaign after this many seconds")}),w.includes("referrer")&&(0,l.createElement)(h.TextControl,{label:(0,o.__)("Referrer Domains"),value:W.join(", "),onChange:e=>R(e.split(",").map(e=>e.trim()).filter(e=>e)),placeholder:"google.com, facebook.com, twitter.com",help:(0,o.__)("Show campaign when visitor comes from these domains (comma-separated)")})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Display Frequency"),initialOpen:!1},(0,l.createElement)(h.SelectControl,{label:(0,o.__)("When should popup re-appear to the same visitor?"),value:J,options:T,onChange:U,help:(0,o.__)("Control how often the same visitor sees this campaign")}),"custom_days"===J&&(0,l.createElement)(h.RangeControl,{label:(0,o.__)("Days Between Shows"),value:q,onChange:H,min:1,max:30,help:(0,o.__)("Number of days before showing the campaign again to the same visitor")})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Device Targeting"),initialOpen:!1},(0,l.createElement)(h.SelectControl,{multiple:!0,label:(0,o.__)("Target Devices"),value:Y,options:N,onChange:G,help:(0,o.__)("Choose which devices should show this campaign")})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Display On"),initialOpen:!1},(0,l.createElement)(h.SelectControl,{multiple:!0,label:(0,o.__)("Select Display Option"),value:s,options:[{label:"Entire Site",value:"entire_site"},{label:"All Pages",value:"all_pages"},{label:"All Posts",value:"all_posts"},{label:"Special Pages",value:"special_pages"},{label:"Custom Pages",value:"custom_pages"}],onChange:n}),s.includes("special_pages")&&(0,l.createElement)(h.SelectControl,{label:(0,o.__)("Select Special Pages"),multiple:!0,options:_,value:m,onChange:u}),s.includes("custom_pages")&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Select Custom Pages"),(0,l.createElement)(E.A,{label:(0,o.__)("Select Custom Pages"),isMulti:!0,cacheOptions:!0,defaultOptions:!0,loadOptions:P,value:g.map(e=>({value:e,label:ue(e)})),onChange:e=>{const t=(e||[]).map(e=>e.value);b(t);const a=new Map(ne);(e||[]).forEach(e=>{a.set(e.value,e.label)}),ie(a)},placeholder:"Search and select pages to display...",isLoading:ce}))),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Not Display On"),initialOpen:!1},(0,l.createElement)(h.SelectControl,{multiple:!0,label:(0,o.__)("Select Exclusion Option"),value:i,options:[{label:"Entire Site",value:"entire_site"},{label:"All Pages",value:"all_pages"},{label:"All Posts",value:"all_posts"},{label:"Special Pages",value:"special_pages"},{label:"Custom Pages",value:"custom_pages"}],onChange:c}),i.includes("special_pages")&&(0,l.createElement)(h.SelectControl,{label:(0,o.__)("Select Special Pages to Exclude"),multiple:!0,options:_,value:d,onChange:p}),i.includes("custom_pages")&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Select Custom Pages to Exclude"),(0,l.createElement)(E.A,{isMulti:!0,cacheOptions:!0,defaultOptions:!0,loadOptions:P,value:y.map(e=>({value:e,label:ue(e)})),onChange:e=>{const t=(e||[]).map(e=>e.value);f(t);const a=new Map(ne);(e||[]).forEach(e=>{a.set(e.value,e.label)}),ie(a)},placeholder:"Search and select pages to exclude...",isLoading:ce}))),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("User Roles"),initialOpen:!1},(0,l.createElement)(h.SelectControl,{multiple:!0,label:(0,o.__)("Select User Roles"),options:C,value:x,onChange:v})),(0,l.createElement)(h.PanelBody,{title:(0,o.__)("Advanced Settings"),initialOpen:!1},(0,l.createElement)(h.TextControl,{label:(0,o.__)("Custom CSS"),value:le,onChange:re,placeholder:".my-campaign { background: #fff; }",help:(0,o.__)("Add custom CSS for this campaign")}),(0,l.createElement)(h.TextControl,{label:(0,o.__)("Custom JavaScript"),value:oe,onChange:se,placeholder:"console.log('Campaign loaded');",help:(0,o.__)("Add custom JavaScript for this campaign")}))));var ye},B={builderType:"uspw_type",builderStatus:"uspw_status",displayOn:"uspw_display_on",notDisplayOn:"uspw_not_display_on",displaySpecialPages:"uspw_display_special_pages",notDisplaySpecialPages:"uspw_not_display_special_pages",displayCustomPages:"uspw_display_custom_pages",notDisplayCustomPages:"uspw_not_display_custom_pages",userRoles:"uspw_display_roles",coupons:"uspw_coupons",colors:"ultimate_spin_wheel_colors",campaignTriggers:"uspw_campaign_triggers",scrollPercentage:"uspw_scroll_percentage",clickSelector:"uspw_click_selector",referrerDomains:"uspw_referrer_domains",timeDelay:"uspw_time_delay",startDate:"uspw_start_date",endDate:"uspw_end_date",displayFrequency:"uspw_display_frequency",customDays:"uspw_custom_days",targetDevices:"uspw_target_devices",maxImpressions:"uspw_max_impressions",campaignPriority:"uspw_campaign_priority",customCSS:"uspw_custom_css",customJS:"uspw_custom_js",customDesign:"uspw_custom_designs"},O={builderType:"spin_wheel",builderStatus:"enabled",displayOn:["entire_site"],notDisplayOn:[],displaySpecialPages:[],notDisplaySpecialPages:[],displayCustomPages:[],notDisplayCustomPages:[],displayUserRoles:["all_users"],coupons:[{label:"5$",code:"5xOFF",color:"#16a085",lost:{label:"",color:"#277162"}},{label:"10$",code:"10xOFF",color:"#333333",lost:{label:"",color:"#16a085"}},{label:"15$",code:"15xOFF",color:"#277162",lost:{label:"",color:"#333333"}},{label:"20$",code:"20xOFF",color:"#16a085",lost:{label:"",color:"#277162"}},{label:"25$",code:"25xOFF",color:"#333333",lost:{label:"",color:"#16a085"}},{label:"30$",code:"30xOFF",color:"#277162",lost:{label:"",color:"#333333"}}],colors:[],campaignTriggers:["page_load"],scrollPercentage:50,clickSelector:"",referrerDomains:[],timeDelay:5,startDate:new Date(Date.now()-864e5),endDate:new Date(Date.now()+2592e6),displayFrequency:"custom_days",customDays:7,targetDevices:["all"],maxImpressions:0,campaignPriority:1,enableABTesting:!1,abTestingWeight:50,customCSS:"",customJS:"",customDesign:{spinButton:{text:"GO!",backgroundColor:"#16a085",backgroundColorColorHover:"#139cb2"},viewPanel:{backgroundColor:"#16a085"},formTitle:{text:"Let's try luck!",fontSize:"24px",color:"#fff"},formSubmitButton:{text:"Spin The Wheel",color:"#0a0a0a",backgroundColor:"#fff"},couponButton:{color:"#fff",hoverColor:"#139cb2"},prizeWonTitle:{text:"Congratulations!",fontSize:"24px",color:"#fff"},prizeWonMsg:{text:"You won a {{discount_label}} discount!",fontSize:"28px",color:"#fff"},prizeLostTtitle:{text:"Better luck next time!",fontSize:"24px",color:"#fff"},privacyText:{text:"Privacy & Policy",color:"#fff",fontSize:"12px"}}},z=()=>{const[e,t]=(0,l.useState)(localStorage.getItem("ultimate_spin_wheel_spinwheel_active_tab")||"coupons"),[a,r]=(0,l.useState)(!0),[o,i]=(0,l.useState)(!1),[c,m]=(0,l.useState)(null),[u,d]=(0,l.useState)(null),[p,g]=(0,l.useState)({coupons:O.coupons,colors:O.colors}),[b,h]=(0,l.useState)(O.builderType),[f,x]=(0,l.useState)(O.builderStatus),[v,E]=(0,l.useState)(O.displayOn),[_,C]=(0,l.useState)(O.notDisplayOn),[S,k]=(0,l.useState)(O.displaySpecialPages),[N,T]=(0,l.useState)(O.notDisplaySpecialPages),[P,z]=(0,l.useState)(O.displayCustomPages),[$,W]=(0,l.useState)(O.notDisplayCustomPages),[R,I]=(0,l.useState)(O.displayUserRoles),[F,L]=(0,l.useState)(O.campaignTriggers),[A,j]=(0,l.useState)(O.scrollPercentage),[M,J]=(0,l.useState)(O.clickSelector),[U,q]=(0,l.useState)(O.referrerDomains),[H,Y]=(0,l.useState)(O.timeDelay),[G,V]=(0,l.useState)(O.startDate),[K,Q]=(0,l.useState)(O.endDate),[X,Z]=(0,l.useState)(O.displayFrequency),[ee,te]=(0,l.useState)(O.customDays),[ae,le]=(0,l.useState)(O.targetDevices),[re,oe]=(0,l.useState)(O.maxImpressions),[se,ne]=(0,l.useState)(O.campaignPriority),[ie,ce]=(0,l.useState)(O.enableABTesting),[me,ue]=(0,l.useState)(O.abTestingWeight),[de,pe]=(0,l.useState)(O.customCSS),[ge,be]=(0,l.useState)(O.customJS),[ye,he]=(0,l.useState)(O.customDesign),{post:fe,hasResolved:xe}=(0,s.useSelect)(e=>c?{post:e("core").getEntityRecord("postType","wowdevs_engage",c),hasResolved:e("core").hasFinishedResolution("getEntityRecord",["postType","wowdevs_engage",c])}:{post:null,hasResolved:!1},[c]),{saveEntityRecord:ve}=(0,s.useDispatch)("core"),we=(e,t=[])=>{if(!e)return t;try{const a=JSON.parse(e);return Array.isArray(a)?a:t}catch(e){return console.error("Error parsing JSON:",e),t}},Ee=(e,t=[])=>{if(!e)return t;try{const a=JSON.parse(e);if(Array.isArray(a)){const e=a.map(e=>"object"==typeof e&&void 0!==e.value?e.value:e);return e.length>0?e:t}return t}catch(a){return console.error("Error deserializing meta value:",e,a),t}},_e=(e,t)=>null!=e&&""!==e?e:t;(0,l.useEffect)(()=>{const e=new URLSearchParams(window.location.search),t=e.get("post_id")||e.get("id");if(t){const e=parseInt(t,10);isNaN(e)?(d("Invalid post ID in URL parameters"),r(!1)):(m(e),console.log("Post ID from URL:",e))}else d("No post ID found in URL parameters"),r(!1)},[]),(0,l.useEffect)(()=>{c&&xe&&(r(!1),fe&&fe.meta?(console.log("Loaded post data:",fe),Ce(fe.meta),d(null)):fe||(d("Post not found. You may need to create the post first."),console.error("Post not found for ID:",c)))},[fe,xe,c]);const Ce=e=>{console.log("Updating states from meta:",e),g({coupons:we(e[B.coupons],O.coupons),colors:we(e[B.colors],O.colors)}),h(_e(e[B.builderType],O.builderType)),x(_e(e[B.builderStatus],O.builderStatus)),E(Ee(e[B.displayOn],O.displayOn)),C(Ee(e[B.notDisplayOn],O.notDisplayOn)),k(Ee(e[B.displaySpecialPages],O.displaySpecialPages)),T(Ee(e[B.notDisplaySpecialPages],O.notDisplaySpecialPages)),z(Ee(e[B.displayCustomPages],O.displayCustomPages)),W(Ee(e[B.notDisplayCustomPages],O.notDisplayCustomPages)),I(Ee(e[B.userRoles],O.displayUserRoles)),L(Ee(e[B.campaignTriggers],O.campaignTriggers)),j(void 0!==e[B.scrollPercentage]?parseInt(e[B.scrollPercentage],10):O.scrollPercentage),J(_e(e[B.clickSelector],O.clickSelector)),q(Ee(e[B.referrerDomains],O.referrerDomains)),Y(void 0!==e[B.timeDelay]?parseInt(e[B.timeDelay],10):O.timeDelay),V(_e(e[B.startDate],O.startDate)),Q(_e(e[B.endDate],O.endDate)),Z(_e(e[B.displayFrequency],O.displayFrequency)),te(void 0!==e[B.customDays]?parseInt(e[B.customDays],10):O.customDays),le(Ee(e[B.targetDevices],O.targetDevices)),oe(void 0!==e[B.maxImpressions]?parseInt(e[B.maxImpressions],10):O.maxImpressions),ne(void 0!==e[B.campaignPriority]?parseInt(e[B.campaignPriority],10):O.campaignPriority),ce(_e(e[B.enableABTesting],O.enableABTesting)),ue(_e(e[B.abTestingWeight],O.abTestingWeight)),pe(_e(e[B.customCSS],O.customCSS)),be(_e(e[B.customJS],O.customJS)),he(e[B.customDesign],O.customDesign)},Se=e=>{g(t=>({...t,coupons:e}))};if(a)return(0,l.createElement)("div",{className:"mt-6 pt-6"},(0,l.createElement)("div",{className:"flex justify-center items-center h-64"},(0,l.createElement)("div",{className:"text-lg"},"Loading configuration...")));if(u)return(0,l.createElement)("div",{className:"mt-6 pt-6"},(0,l.createElement)("div",{className:"flex justify-center items-center h-64"},(0,l.createElement)("div",{className:"text-center"},(0,l.createElement)("div",{className:"text-lg text-red-600 mb-4"},u),(0,l.createElement)("button",{className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",onClick:()=>{let e=new URL(window.location.href);e.hash="campaigns",window.location=e.toString(),window.location.reload()}},"Select First"))));const ke=e=>{t(e),localStorage.setItem("ultimate_spin_wheel_spinwheel_active_tab",e)};return(0,l.createElement)("div",{className:"mt-6 pt-6"},(0,l.createElement)("div",{className:"mb-12 relative flex flex-col bg-clip-border rounded-xl bg-white dark:bg-gray-900 text-gray-700 shadow-sm"},(0,l.createElement)(n.A,{title:"Spin Wheel Generator",desc:"Create and customize your spin wheel with coupon-based rewards and live preview. "+(c?`(ID# ${c})`:"")}),(0,l.createElement)("div",{className:"tabs flex space-x-4 border-b border-gray-200 dark:border-gray-700 mb-4"},(0,l.createElement)("button",{className:"tab-button px-4 py-2 text-sm font-medium "+("coupons"===e?"text-blue-600 border-b-2 border-blue-600":"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"),onClick:()=>ke("coupons")},"Coupons"),(0,l.createElement)("button",{className:"tab-button px-4 py-2 text-sm font-medium "+("settings"===e?"text-blue-600 border-b-2 border-blue-600":"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"),onClick:()=>ke("settings")},"Configuration"),(0,l.createElement)("button",{className:"tab-button px-4 py-2 text-sm font-medium "+("preview"===e?"text-blue-600 border-b-2 border-blue-600":"text-blue-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"),onClick:()=>ke("preview")},"Preview")),(0,l.createElement)("div",{className:"p-3 md:p-6"},(()=>{switch(e){case"coupons":return(0,l.createElement)(y,{coupons:p.coupons,onAdd:()=>Se([...p.coupons,{label:"New Coupon",code:"NEW",color:"#000000"}]),onRemove:e=>Se(p.coupons.filter((t,a)=>a!==e)),onUpdate:(e,t)=>{const a=[...p.coupons];a[e]=t,Se(a)}});case"settings":return(0,l.createElement)(D,{builderType:b,setBuilderType:h,builderStatus:f,setBuilderStatus:x,displayOn:v,setDisplayOn:E,notDisplayOn:_,setNotDisplayOn:C,displaySpecialPages:S,setDisplaySpecialPages:k,notDisplaySpecialPages:N,setNotDisplaySpecialPages:T,displayCustomPages:P,setDisplayCustomPages:z,notDisplayCustomPages:$,setNotDisplayCustomPages:W,displayUserRoles:R,setDisplayUserRoles:I,campaignTriggers:F,setCampaignTriggers:L,scrollPercentage:A,setScrollPercentage:j,clickSelector:M,setClickSelector:J,referrerDomains:U,setReferrerDomains:q,timeDelay:H,setTimeDelay:Y,startDate:G,setStartDate:V,endDate:K,setEndDate:Q,displayFrequency:X,setDisplayFrequency:Z,customDays:ee,setCustomDays:te,targetDevices:ae,setTargetDevices:le,maxImpressions:re,setMaxImpressions:oe,campaignPriority:se,setCampaignPriority:ne,enableABTesting:ie,setEnableABTesting:ce,abTestingWeight:me,setAbTestingWeight:ue,customCSS:de,setCustomCSS:pe,customJS:ge,setCustomJS:be});case"preview":return(0,l.createElement)(w,{segments:p.coupons,colors:p.colors,customDesign:ye,setCustomDesign:he});default:return null}})()),(0,l.createElement)("div",{className:"p-4 border-t border-gray-200"},(0,l.createElement)("button",{className:"px-6 py-3 text-white rounded-lg font-medium transition-colors "+(o?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700"),onClick:async()=>{if(c){i(!0),d(null);try{if(!1===(0,s.select)("core").canUser("update","posts",c))throw new Error("Permission denied: You do not have permission to update this post.");const e={[B.builderType]:String(b||O.builderType),[B.builderStatus]:String(f||O.builderStatus),[B.clickSelector]:String(M||O.clickSelector),[B.displayFrequency]:String(X||O.displayFrequency),[B.customCSS]:String(de||O.customCSS),[B.customJS]:String(ge||O.customJS),[B.scrollPercentage]:parseInt(A,10)||O.scrollPercentage,[B.timeDelay]:parseInt(H,10)||O.timeDelay,[B.maxImpressions]:parseInt(re,10)||O.maxImpressions,[B.campaignPriority]:parseInt(se,10)||O.campaignPriority,[B.abTestingWeight]:parseInt(me,10)||O.abTestingWeight,[B.customDays]:parseInt(ee,10)||O.customDays,[B.enableABTesting]:Boolean(ie),[B.startDate]:G?G instanceof Date?G.toISOString():G:null,[B.endDate]:K?K instanceof Date?K.toISOString():K:null,[B.coupons]:JSON.stringify(p.coupons||O.coupons),[B.colors]:JSON.stringify(p.colors||O.colors),[B.displayOn]:JSON.stringify(v||O.displayOn),[B.notDisplayOn]:JSON.stringify(_||O.notDisplayOn),[B.displaySpecialPages]:JSON.stringify(S||O.displaySpecialPages),[B.notDisplaySpecialPages]:JSON.stringify(N||O.notDisplaySpecialPages),[B.displayCustomPages]:JSON.stringify(P||O.displayCustomPages),[B.notDisplayCustomPages]:JSON.stringify($||O.notDisplayCustomPages),[B.userRoles]:JSON.stringify(R||O.displayUserRoles),[B.campaignTriggers]:JSON.stringify(F||O.campaignTriggers),[B.referrerDomains]:JSON.stringify(U||O.referrerDomains),[B.targetDevices]:JSON.stringify(ae||O.targetDevices),[B.customDesign]:ye||O.customDesign};console.log("Preparing to save configuration..."),console.log("Post ID:",c),console.log("Custom Design Data:",ye),console.log("Wheel Config:",p),console.log("Complete Meta Data:",e),Object.keys(e).forEach(t=>{void 0===e[t]&&console.warn(`Warning: Meta key "${t}" is undefined`)});const{editEntityRecord:t,saveEditedEntityRecord:a}=(0,s.dispatch)("core");try{t("postType","wowdevs_engage",c,{meta:e}),console.log("Entity record edited, now saving...");const l=await a("postType","wowdevs_engage",c);if(console.log("Save result:",l),!1!==l)return console.log("Configuration saved successfully via editEntityRecord method"),void alert("Configuration saved successfully!");console.warn("editEntityRecord method returned false, trying alternative...")}catch(e){console.warn("editEntityRecord method failed:",e)}try{console.log("Trying direct saveEntityRecord...");const t=ve("postType","wowdevs_engage",{id:c,meta:e}),a=new Promise((e,t)=>setTimeout(()=>t(new Error("Save operation timed out after 30 seconds")),3e4)),l=await Promise.race([t,a]);if(console.log("Direct save result:",l),l&&(l.id||!0===l))return console.log("Configuration saved successfully via direct saveEntityRecord"),void alert("Configuration saved successfully!");if(null==l)throw new Error("Save operation returned null/undefined - check WordPress permissions and post type registration")}catch(e){throw console.warn("Direct saveEntityRecord failed:",e),e}}catch(e){console.error("All save methods failed:",e);let t="Failed to save configuration";e.message.includes("timeout")?t+=": Operation timed out. Please try again.":e.message.includes("permission")?t+=": Permission denied. Check user capabilities.":e.message.includes("post type")?t+=": Post type not properly registered or accessible.":e.message&&(t+=`: ${e.message}`),d(t),alert(t),console.log("Debug info:",{postId:c,postExists:!!fe,hasPermissions:(0,s.select)("core").canUser("update","posts",c),postType:fe?.type,postStatus:fe?.status})}finally{i(!1)}}else alert("Error: No post ID available. Cannot save configuration.")},disabled:o||!c},o?"Saving...":"Save Configuration"),!c&&(0,l.createElement)("p",{className:"text-red-600 text-sm mt-2"},"Error: No post ID available. Please check the URL parameters."),u&&(0,l.createElement)("p",{className:"text-red-600 text-sm mt-2"},u))))}}}]);1 "use strict";(globalThis.webpackChunkultimate_spin_wheel=globalThis.webpackChunkultimate_spin_wheel||[]).push([[606],{571:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(609),o=l(723);const r=({title:e,desc:t})=>(0,a.createElement)("div",{className:"relative bg-gradient-to-r from-indigo-800 to-purple-600 dark:from-gray-900 dark:to-gray-700 bg-clip-border mx-4 rounded-xl overflow-hidden text-white shadow-purple-500/40 dark:shadow-gray-900/40 shadow-lg -mt-12 mb-8 p-3 lg:p-6"},(0,a.createElement)("div",{className:"flex w-full items-center justify-between"},(0,a.createElement)("div",null,(0,a.createElement)("h6",{className:"block antialiased tracking-normal font-sans text-base font-semibold leading-relaxed text-white mt-0 mb-1"},(0,o.__)(e,"ultimate-spin-wheel")),(0,a.createElement)("div",{className:"block antialiased font-sans text-md font-normal dark:text-gray-300"},(0,o.__)(t,"ultimate-spin-wheel")))))},606:(e,t,l)=>{l.r(t),l.d(t,{default:()=>I});var a=l(609),o=l.n(a),r=l(723),n=l(143),s=(l(582),l(571));const i=["#277162","#277162","#277162","#277162","#277162"],c={win:{bgColor:"from-green-50 to-emerald-50 hover:from-green-100 hover:to-emerald-100",badgeColor:"from-green-500 to-emerald-500",focusColor:"focus:ring-green-500",dotColor:"bg-green-500 animate-pulse"},lost:{bgColor:"from-red-50 to-pink-50 hover:from-red-100 hover:to-pink-100",badgeColor:"from-red-500 to-pink-500",focusColor:"focus:ring-red-500",dotColor:"bg-red-500"}},p=({type:e,label:t})=>{const l=c[e];return(0,a.createElement)("div",{className:"flex items-center space-x-2"},(0,a.createElement)("div",{className:`w-2 h-2 ${l.dotColor} rounded-full`}),(0,a.createElement)("span",{className:`inline-block px-2 py-1 bg-gradient-to-r ${l.badgeColor} text-white text-xs font-${"win"===e?"bold":"medium"} rounded-full shadow-sm`},t))},u=({type:e="text",value:t="",onChange:l,placeholder:o,className:r="",focusColor:n="focus:ring-green-500",...s})=>(0,a.createElement)("input",{type:e,value:t,onChange:l,className:`w-full p-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:ring-2 ${n} focus:border-transparent transition-all duration-200 bg-white shadow-sm ${r}`,placeholder:o,...s}),m=({value:e,onChange:t,title:l})=>(0,a.createElement)("input",{type:"color",value:e,onChange:t,className:"w-12 h-12 cursor-pointer",title:l}),d=({onClick:e})=>(0,a.createElement)("button",{onClick:e,className:"text-white bg-gradient-to-r from-red-400 via-red-500 to-red-600 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-sm px-2.5 py-2.5 text-center group",title:"Remove this coupon"},(0,a.createElement)("svg",{className:"w-5 h-5 transition-transform duration-200 group-hover:scale-110",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},(0,a.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))),g=({text:e})=>(0,a.createElement)("div",{className:"flex items-center justify-center h-12 bg-gray-50 rounded-lg border-2 border-dashed border-gray-200"},(0,a.createElement)("span",{className:"text-gray-400 italic text-sm"},e)),b=({icon:e,title:t,value:l,isWarning:o=!1,warningText:r=""})=>(0,a.createElement)("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100"},(0,a.createElement)("div",{className:"flex items-center space-x-2 mb-2"},(0,a.createElement)("span",{className:`w-2 h-2 ${e} rounded-full`}),(0,a.createElement)("span",{className:"font-semibold text-gray-700"},t)),(0,a.createElement)("div",{className:"flex items-center space-x-2"},(0,a.createElement)("span",{className:"text-2xl font-bold "+(o?"text-red-600":"text-blue-600")},l),o&&r&&(0,a.createElement)("span",{className:"text-red-500 text-xs bg-red-100 px-2 py-1 rounded-full"},r))),h=({coupons:e=[],onAdd:t,onRemove:l,onUpdate:r})=>{const n=(0,a.useMemo)(()=>e.map((t,l)=>({...t,lost:t.lost||{label:"",color:e[l]?.lost?.color||i[l%i.length]}})),[e]),s=(0,a.useMemo)(()=>{const e=n.reduce((e,t)=>e+(parseInt(t?.probability)||0),0);return{totalWinProbability:e,lostProbability:Math.max(0,100-e),averageWinRate:n.length>0?Math.round(e/n.length):0,isOverLimit:e>100}},[n]),h=(0,a.useCallback)((e,t,l)=>{const a={...n[e]};if(t.startsWith("lost.")){const e=t.split(".")[1];a.lost={...a.lost,[e]:l||""}}else a[t]=l||"";r(e,a)},[n,r]),f=(0,a.useCallback)((e,t,l)=>{const a={...n[e]};a.lost={...a.lost,[t]:l||""},r(e,a)},[n,r]);return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"flex items-center justify-between mb-8 pb-4 border-b border-gray-200"},(0,a.createElement)("div",null,(0,a.createElement)("h3",{className:"text-2xl font-bold text-gray-800 mb-2"},"🎡 Coupons List"),(0,a.createElement)("p",{className:"text-gray-600 text-sm"},"Configure your coupon probabilities and appearance"))),(0,a.createElement)("div",{className:"overflow-x-auto rounded-lg shadow-sm"},(0,a.createElement)("table",{className:"table-auto w-full border-collapse bg-white"},(0,a.createElement)("thead",null,(0,a.createElement)("tr",{className:"bg-gradient-to-r from-indigo-800 to-purple-600 text-white shadow-lg"},(0,a.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},(0,a.createElement)("div",{className:"flex items-center space-x-2"},(0,a.createElement)("span",{className:"w-2 h-2 bg-white rounded-full"}),(0,a.createElement)("span",null,"Type"))),(0,a.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Label"),(0,a.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Code/Description"),(0,a.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Probability (%)"),(0,a.createElement)("th",{className:"px-6 py-4 text-left font-semibold text-sm uppercase tracking-wider border-r border-blue-500"},"Color"),(0,a.createElement)("th",{className:"px-6 py-4 text-center font-semibold text-sm uppercase tracking-wider"},"Actions"))),(0,a.createElement)("tbody",null,n.map((e,t)=>(0,a.createElement)(o().Fragment,{key:`coupon-${t}`},(0,a.createElement)("tr",{className:`bg-gradient-to-r ${c.win.bgColor} transition-all duration-200`},(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(p,{type:"win",label:"WIN"})),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(u,{value:e?.label||"",onChange:e=>h(t,"label",e.target.value),placeholder:"🏷️ Win Label",focusColor:c.win.focusColor})),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(u,{value:e?.code||"",onChange:e=>h(t,"code",e.target.value),placeholder:"💳 Coupon Code",className:"font-mono",focusColor:c.win.focusColor})),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)("div",{className:"relative"},(0,a.createElement)(u,{type:"number",value:e?.probability||"",onChange:e=>h(t,"probability",e.target.value),placeholder:"Win %",className:"pr-8",focusColor:c.win.focusColor,min:"0",max:"100"}),(0,a.createElement)("span",{className:"absolute right-3 top-3 text-gray-400 text-sm"},"%"))),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(m,{value:e?.color||"#4ECDC4",onChange:e=>h(t,"color",e.target.value),title:"Choose win color"})),(0,a.createElement)("td",{className:"px-6 py-4 text-center"},(0,a.createElement)(d,{onClick:()=>l(t)}))),(0,a.createElement)("tr",{className:`bg-gradient-to-r ${c.lost.bgColor} transition-all duration-200`},(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(p,{type:"lost",label:"LOST"})),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(u,{value:e?.lost?.label||"",onChange:e=>f(t,"label",e.target.value),placeholder:"",focusColor:c.lost.focusColor})),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(g,{text:"🚫 No coupon code for lost"})),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(g,{text:"N/A"})),(0,a.createElement)("td",{className:"px-6 py-4 border-r border-gray-100"},(0,a.createElement)(m,{value:e?.lost?.color||i[t%i.length],onChange:e=>f(t,"color",e.target.value),title:"Choose lost color"})),(0,a.createElement)("td",{className:"px-6 py-4 text-center"})),t<n.length-1&&(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"6",className:"h-4 bg-gradient-to-r from-gray-50 via-white to-gray-50 border-b border-gray-100"},(0,a.createElement)("div",{className:"w-full h-full flex items-center justify-center"},(0,a.createElement)("div",{className:"w-32 h-px bg-gradient-to-r from-transparent via-gray-300 to-transparent"}))))))))),(0,a.createElement)("div",{className:"mt-6"},(0,a.createElement)("button",{onClick:t,className:"px-6 py-3 bg-blue-500 text-white rounded shadow hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-400 transition-colors"},"Add New Coupon")),(0,a.createElement)("div",{className:"mt-8"},(0,a.createElement)("div",{className:"mb-6"},(0,a.createElement)("h4",{className:"text-xl font-bold text-gray-800"},"Configuration Summary"),(0,a.createElement)("p",{className:"text-gray-600 text-sm"},'In a spin wheel, the total of all win probabilities should equal 100% or less. Any remaining percentage becomes the "lost" probability. Each coupon competes for its share of the 100% total.')),(0,a.createElement)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 text-sm"},(0,a.createElement)(b,{icon:"bg-blue-500",title:"Total Coupons",value:n.length}),(0,a.createElement)(b,{icon:"bg-green-500",title:"Total Win Probability",value:`${s.totalWinProbability}%`,isWarning:s.isOverLimit,warningText:s.isOverLimit?"⚠️ Over 100%":""}),(0,a.createElement)(b,{icon:"bg-red-500",title:"Lost Probability",value:`${s.lostProbability}%`}),(0,a.createElement)(b,{icon:"bg-purple-500",title:"Average Win Rate",value:`${s.averageWinRate}%`})),s.isOverLimit&&(0,a.createElement)("div",{className:"mt-6 p-4 bg-gradient-to-r from-red-50 to-orange-50 border-l-4 border-red-500 rounded-lg shadow-sm"},(0,a.createElement)("div",{className:"flex items-start space-x-3"},(0,a.createElement)("div",{className:"w-6 h-6 bg-red-500 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5"},(0,a.createElement)("span",{className:"text-white text-xs"},"⚠️")),(0,a.createElement)("div",null,(0,a.createElement)("h5",{className:"font-semibold text-red-800 mb-1"},"Probability Warning"),(0,a.createElement)("p",{className:"text-red-700 text-sm"},"Total win probabilities exceed 100%. This configuration may cause unpredictable results. Consider reducing individual probabilities so they sum to 100% or less."))))))};var f=l(427),y=l(682),x=l.n(y);const _=({value:e,onChange:t,title:l})=>(0,a.createElement)("input",{type:"color",value:e,onChange:t,className:"w-12 h-12 cursor-pointer",title:l}),v=({segments:e,customDesign:t,setCustomDesign:l})=>{const[o,n]=(0,a.useState)("wheel");console.log("customDesign:",t);const s=(()=>{if("string"==typeof t)try{return JSON.parse(t)}catch(e){return console.error("Error parsing customDesign JSON:",e),{}}return t||{}})();(0,a.useEffect)(()=>((()=>{const e=document.getElementById("ultimate-spin-wheel-preview-styles");e&&e.remove();const t=document.createElement("style");t.id="ultimate-spin-wheel-preview-styles",t.type="text/css";const l=(a=s,`\n /* Spin Wheel Custom Styles */\n #ultimate-spin-wheel-preview {\n --panel-bg-color: ${a.viewPanel?.backgroundColor||"#16a085"};\n --spin-btn-color: ${a.spinButton?.color||"#fff"};\n --spin-btn-bg: ${a.spinButton?.backgroundColor||"#16a085"};\n --spin-btn-hover: ${a.spinButton?.backgroundColorColorHover||"#139cb2"};\n --spin-btn-font-size: ${a.spinButton?.fontSize||"16px"};\n --form-title-color: ${a.formTitle?.color||"#fff"};\n --form-title-size: ${a.formTitle?.fontSize||"24px"};\n --form-title-weight: ${a.formTitle?.fontWeight||"normal"};\n --form-submit-color: ${a.formSubmitButton?.color||"#0a0a0a"};\n --form-submit-bg: ${a.formSubmitButton?.backgroundColor||"#fff"};\n --form-submit-hover: ${a.formSubmitButton?.hoverColor||"#f0f0f0"};\n --form-submit-size: ${a.formSubmitButton?.fontSize||"16px"};\n --form-submit-radius: ${a.formSubmitButton?.borderRadius||5}px;\n --input-border: ${a.formInputs?.borderColor||"#ccc"};\n --input-focus: ${a.formInputs?.focusColor||"#16a085"};\n --privacy-color: ${a.privacyText?.color||"#fff"};\n --privacy-size: ${a.privacyText?.fontSize||"12px"};\n --prize-title-color: ${a.prizeWonTitle?.color||"#fff"};\n --prize-title-size: ${a.prizeWonTitle?.fontSize||"24px"};\n --prize-msg-color: ${a.prizeWonMsg?.color||"#fff"};\n --prize-msg-size: ${a.prizeWonMsg?.fontSize||"28px"};\n --lost-title-color: ${a.prizeLostTitle?.color||"#fff"};\n --lost-title-size: ${a.prizeLostTitle?.fontSize||"24px"};\n --coupon-btn-color: ${a.couponButton?.color||"#fff"};\n --coupon-btn-bg: ${a.couponButton?.backgroundColor||"#16a085"};\n --coupon-btn-hover: ${a.couponButton?.hoverColor||"#139cb2"};\n --coupon-btn-radius: ${a.couponButton?.borderRadius||5}px;\n --wheel-lost-color: ${a.wheel?.lostColor||"#ccc"};\n --wheel-border-color: ${a.wheel?.borderColor||"#fff"};\n --wheel-border-width: ${a.wheel?.borderWidth||12}px;\n }\n `);var a;t.styleSheet?t.styleSheet.cssText=l:t.appendChild(document.createTextNode(l)),document.head.appendChild(t)})(),()=>{const e=document.getElementById("ultimate-spin-wheel-preview-styles");e&&e.remove()}),[s]);const i=(e,a,o)=>{const r={...s,[e]:{...s[e],[a]:o}};l("string"==typeof t?JSON.stringify(r):r)};return(0,a.createElement)("div",{className:"ultimate-spin-wheel"},(0,a.createElement)("div",{className:"flex gap-8 p-4"},(0,a.createElement)("div",{className:"min-w-[400px]"},(0,a.createElement)("div",{className:"mb-6"},(0,a.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,r.__)("General Settings","ultimate-spin-wheel")),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Panel Background"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Background Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose panel background color",value:s.viewPanel?.backgroundColor||"#16a085",onChange:e=>i("viewPanel","backgroundColor",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Border Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose wheel border color",value:s.wheel?.borderColor||"#fff",onChange:e=>i("wheel","borderColor",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Border Width","ultimate-spin-wheel")),(0,a.createElement)(f.RangeControl,{value:s.wheel?.borderWidth||12,onChange:e=>i("wheel","borderWidth",e),min:0,max:40,help:(0,r.__)("Border width in pixels","ultimate-spin-wheel")}))),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Privacy Text"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Privacy Text","ultimate-spin-wheel"),value:s.privacyText?.text||"Privacy & Policy",onChange:e=>i("privacyText","text",e),help:(0,r.__)("Privacy policy text.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Text Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose privacy text color",value:s.privacyText?.color||"#fff",onChange:e=>i("privacyText","color",e.target.value)})),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Font Size","ultimate-spin-wheel"),value:s.privacyText?.fontSize||"12px",onChange:e=>i("privacyText","fontSize",e),help:(0,r.__)("Font size for privacy text (e.g., 12px, 0.8em).","ultimate-spin-wheel")}),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Privacy Link URL","ultimate-spin-wheel"),value:s.privacyText?.url||"#",onChange:e=>i("privacyText","url",e),help:(0,r.__)("URL for privacy policy link.","ultimate-spin-wheel")}))),(0,a.createElement)("div",{className:"mb-6"},(0,a.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,r.__)("Wheel Settings","ultimate-spin-wheel")),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Spin Button (Center)"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Button Text","ultimate-spin-wheel"),value:s.spinButton?.text||"GO!",onChange:e=>i("spinButton","text",e),help:(0,r.__)("Text displayed on the center spin button.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Text Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose text color",value:s.spinButton?.color||"#fff",onChange:e=>i("spinButton","color",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Background Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose background color",value:s.spinButton?.backgroundColor||"#16a085",onChange:e=>i("spinButton","backgroundColor",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Hover Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose hover color",value:s.spinButton?.backgroundColorColorHover||"#139cb2",onChange:e=>i("spinButton","backgroundColorColorHover",e.target.value)})),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Font Size","ultimate-spin-wheel"),value:s.spinButton?.fontSize||"16px",onChange:e=>i("spinButton","fontSize",e),help:(0,r.__)("Font size for button text (e.g., 16px, 1em).","ultimate-spin-wheel")}))),(0,a.createElement)("div",{className:"mb-6"},(0,a.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,r.__)("Form Settings","ultimate-spin-wheel")),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Form Title"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Title Text","ultimate-spin-wheel"),value:s.formTitle?.text||"Let's try luck!",onChange:e=>i("formTitle","text",e),help:(0,r.__)("Main title text displayed on the form.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Text Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose title color",value:s.formTitle?.color||"#fff",onChange:e=>i("formTitle","color",e.target.value)})),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Font Size","ultimate-spin-wheel"),value:s.formTitle?.fontSize||"24px",onChange:e=>i("formTitle","fontSize",e),help:(0,r.__)("Font size for the title (e.g., 24px, 1.5em).","ultimate-spin-wheel")}),(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Font Weight","ultimate-spin-wheel"),value:s.formTitle?.fontWeight||"normal",options:[{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Light",value:"300"},{label:"Semi Bold",value:"600"},{label:"Extra Bold",value:"800"}],onChange:e=>i("formTitle","fontWeight",e)})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Submit Button"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Button Text","ultimate-spin-wheel"),value:s.formSubmitButton?.text||"Spin The Wheel",onChange:e=>i("formSubmitButton","text",e),help:(0,r.__)("Text for the submit button.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Text Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose submit button text color",value:s.formSubmitButton?.color||"#0a0a0a",onChange:e=>i("formSubmitButton","color",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Background Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose submit button background color",value:s.formSubmitButton?.backgroundColor||"#fff",onChange:e=>i("formSubmitButton","backgroundColor",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Hover Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose submit button hover color",value:s.formSubmitButton?.hoverColor||"#f0f0f0",onChange:e=>i("formSubmitButton","hoverColor",e.target.value)})),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Font Size","ultimate-spin-wheel"),value:s.formSubmitButton?.fontSize||"16px",onChange:e=>i("formSubmitButton","fontSize",e),help:(0,r.__)("Font size for button text (e.g., 16px, 1em).","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Border Radius","ultimate-spin-wheel")),(0,a.createElement)(f.RangeControl,{value:s.formSubmitButton?.borderRadius||5,onChange:e=>i("formSubmitButton","borderRadius",e),min:0,max:50,help:(0,r.__)("Button border radius in pixels","ultimate-spin-wheel")}))),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Input Fields"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Name Placeholder","ultimate-spin-wheel"),value:s.formInputs?.namePlaceholder||"Enter your name",onChange:e=>i("formInputs","namePlaceholder",e)}),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Email Placeholder","ultimate-spin-wheel"),value:s.formInputs?.emailPlaceholder||"Enter your email",onChange:e=>i("formInputs","emailPlaceholder",e)}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Border Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose input border color",value:s.formInputs?.borderColor||"#ccc",onChange:e=>i("formInputs","borderColor",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Focus Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose input focus color",value:s.formInputs?.focusColor||"#16a085",onChange:e=>i("formInputs","focusColor",e.target.value)})))),(0,a.createElement)("div",{className:"mb-6"},(0,a.createElement)("h3",{className:"text-lg font-semibold text-gray-800 mb-4 border-b pb-2"},(0,r.__)("Result Panels","ultimate-spin-wheel")),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Prize Won Panel"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Title Text","ultimate-spin-wheel"),value:s.prizeWonTitle?.text||"Congratulations!",onChange:e=>i("prizeWonTitle","text",e),help:(0,r.__)("Title shown when user wins.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Title Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose title color",value:s.prizeWonTitle?.color||"#fff",onChange:e=>i("prizeWonTitle","color",e.target.value)})),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Title Font Size","ultimate-spin-wheel"),value:s.prizeWonTitle?.fontSize||"24px",onChange:e=>i("prizeWonTitle","fontSize",e)}),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Prize Message","ultimate-spin-wheel"),value:s.prizeWonMsg?.text||"You won a {{discount_label}} discount!",onChange:e=>i("prizeWonMsg","text",e),help:(0,r.__)("Message shown when user wins. Use {{discount_label}} for dynamic content.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Message Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose prize message color",value:s.prizeWonMsg?.color||"#fff",onChange:e=>i("prizeWonMsg","color",e.target.value)})),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Message Font Size","ultimate-spin-wheel"),value:s.prizeWonMsg?.fontSize||"28px",onChange:e=>i("prizeWonMsg","fontSize",e)})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Lost Panel"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Title Text","ultimate-spin-wheel"),value:s.prizeLostTitle?.text||"Better luck next time!",onChange:e=>i("prizeLostTitle","text",e),help:(0,r.__)("Message shown when user loses.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Text Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose lost message color",value:s.prizeLostTitle?.color||"#fff",onChange:e=>i("prizeLostTitle","color",e.target.value)})),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Font Size","ultimate-spin-wheel"),value:s.prizeLostTitle?.fontSize||"24px",onChange:e=>i("prizeLostTitle","fontSize",e)})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Action Button"),initialOpen:!1,className:"flex gap-4 flex-col"},(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Win Button Text","ultimate-spin-wheel"),value:s.couponButton?.winText||"Start Shopping!",onChange:e=>i("couponButton","winText",e),help:(0,r.__)("Button text when user wins.","ultimate-spin-wheel")}),(0,a.createElement)(f.TextControl,{className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-3 dark:bg-gray-700 dark:border-gray-600 placeholder-gray-700 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",label:(0,r.__)("Lost Button Text","ultimate-spin-wheel"),value:s.couponButton?.lostText||"Try Again",onChange:e=>i("couponButton","lostText",e),help:(0,r.__)("Button text when user loses.","ultimate-spin-wheel")}),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Text Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose coupon button text color",value:s.couponButton?.color||"#fff",onChange:e=>i("couponButton","color",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Background Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose coupon button background color",value:s.couponButton?.backgroundColor||"#16a085",onChange:e=>i("couponButton","backgroundColor",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Hover Color","ultimate-spin-wheel")),(0,a.createElement)(_,{title:"Choose coupon button hover color",value:s.couponButton?.hoverColor||"#139cb2",onChange:e=>i("couponButton","hoverColor",e.target.value)})),(0,a.createElement)("div",{className:"flex items-center gap-8 justify-between"},(0,a.createElement)("label",{className:"block text-sm font-medium text-gray-900 dark:text-white w-32"},(0,r.__)("Border Radius","ultimate-spin-wheel")),(0,a.createElement)(f.RangeControl,{value:s.couponButton?.borderRadius||5,onChange:e=>i("couponButton","borderRadius",e),min:0,max:50,help:(0,r.__)("Button border radius in pixels","ultimate-spin-wheel")}))))),(0,a.createElement)("div",{className:"max-w-full flex-1"},(0,a.createElement)(x(),null,(0,a.createElement)(()=>(0,a.createElement)("div",{className:"preview-tabs text-center mb-10"},(0,a.createElement)("button",{className:"px-4 py-2 mr-2 rounded "+("wheel"===o?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>n("wheel")},(0,r.__)("Wheel View","ultimate-spin-wheel")),(0,a.createElement)("button",{className:"px-4 py-2 mr-2 rounded "+("submit"===o?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>n("submit")},(0,r.__)("Form Panel","ultimate-spin-wheel")),(0,a.createElement)("button",{className:"px-4 py-2 mr-2 rounded "+("prize"===o?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>n("prize")},(0,r.__)("Prize Panel","ultimate-spin-wheel")),(0,a.createElement)("button",{className:"px-4 py-2 rounded "+("lost"===o?"bg-blue-500 text-white":"bg-gray-200"),onClick:()=>n("lost")},(0,r.__)("Lost Panel","ultimate-spin-wheel"))),null),(0,a.createElement)(()=>(0,a.createElement)("div",{id:"ultimate-spin-wheel-preview",className:`spinWheel text-center ${"wheel"===o?"active":""} ${"prize"===o?"active":""} ${"lost"===o?"active":""}`},(0,a.createElement)("div",{className:"wheelWrap"},(0,a.createElement)("div",{className:"wheel","data-spin-circles":"6"},(()=>{const t=[],l=2*e.length,o=90-360/l,r=360/l/2;return e.forEach((e,n)=>{const i=2*n,c=2*n+1;t.push((0,a.createElement)("div",{key:`win-${n}`,className:"area","data-wheel-bg":e.color,"data-wheel-prize":"wins","data-coupon-code":e.code||"","data-wheel-message":e.label,style:{transform:`rotate(${360/l*i}deg) skewY(-${o}deg)`}},(0,a.createElement)("span",{style:{background:e.color,transform:`skewY(${o}deg) rotate(${r}deg)`}},e.label))),t.push((0,a.createElement)("div",{key:`lost-${n}`,className:"area","data-wheel-bg":e.lost?.color||s.wheel?.lostColor||"#ccc","data-wheel-prize":"lost","data-wheel-message":e.lost?.label||s.prizeLostTitle?.text||"Better luck next time!",style:{transform:`rotate(${360/l*c}deg) skewY(-${o}deg)`}},(0,a.createElement)("span",{style:{background:e.lost?.color||s.wheel?.lostColor||"#ccc",transform:`skewY(${o}deg) rotate(${r}deg)`}})))}),t})()),(0,a.createElement)("div",{className:"sc-form-wrap "+("submit"===o?"active":""),style:{opacity:"submit"===o?1:0}},(0,a.createElement)("div",{className:"title"},s.formTitle?.text||"Let's try luck!"),(0,a.createElement)("form",{className:"sc-spin-form"},(0,a.createElement)("input",{type:"text",name:"name",placeholder:s.formInputs?.namePlaceholder||"Enter your name"}),(0,a.createElement)("input",{type:"email",name:"email",placeholder:s.formInputs?.emailPlaceholder||"Enter your email",required:!0}),(0,a.createElement)("button",{type:"submit",className:"spin"},s.formSubmitButton?.text||"Spin the Wheel")),(0,a.createElement)("a",{className:"sc-small",href:s.privacyText?.url||"javascript:void(0);"},s.privacyText?.text||"Privacy & Policy")),(0,a.createElement)("div",{className:`msg ${"prize"===o?"active":""} ${"lost"===o?"active":""}`,style:{opacity:"prize"===o||"lost"===o?1:0}},(0,a.createElement)("div",{className:"title"},(0,a.createElement)("span",null,"prize"===o?s.prizeWonTitle?.text||"Congratulations!":s.prizeLostTitle?.text||"Oops!")),(0,a.createElement)("div",{className:"prizeMsg"},"prize"===o?(s.prizeWonMsg?.text||"You won a {{discount_label}} discount!").replace("{{discount_label}}","10%"):s.prizeLostTitle?.text||"Better luck next time!"),(0,a.createElement)("div",{className:`sc-btn sc-coupon ${"prize"===o?"active":""} ${"lost"===o?"active":""}`},"prize"===o?s.couponButton?.winText||"Start shopping!":s.couponButton?.lostText||"Try Again"),(0,a.createElement)("a",{className:"sc-small",href:s.privacyText?.url||"javascript:void(0);"},s.privacyText?.text||"Privacy & Policy")),(0,a.createElement)("div",{className:`start ${"wheel"===o?"active":""} ${"prize"===o?"active":""} ${"lost"===o?"active":""}`,"data-wheel-lost-text":"Go again?"},"wheel"===o?s.spinButton?.text||"GO!":"lost"===o?"Go again?":s.spinButton?.text||"GO!"),(0,a.createElement)("div",{className:"marker"}))),null)))))};var E=l(425);l(982);const w=[{label:"Front Page",value:"front_page"},{label:"Blog Page",value:"blog_page"},{label:"Archive Page",value:"archive_page"},{label:"404 Page",value:"404_page"}],C=[{label:"All Users",value:"all_users"},{label:"Logged In",value:"logged_in"},{label:"Logged Out",value:"logged_out"},{label:"Administrator",value:"administrator"},{label:"Editor",value:"editor"},{label:"Author",value:"author"},{label:"Contributor",value:"contributor"},{label:"Subscriber",value:"subscriber"}],k=[{label:"Spin Wheel",value:"spin_wheel"},{label:"Popup",value:"popup"},{label:"Campaign Banner",value:"campaign_banner"}],N=[{label:"None",value:"none"},{label:"Instant",value:"instant"},{label:"Delayed",value:"delayed"},{label:"On Scroll",value:"scrolled"},{label:"Exit",value:"exit"}],S=[{label:"Fade In",value:"fadeIn"},{label:"Zoom In",value:"zoomIn"},{label:"Zoom Out",value:"zoomOut"},{label:"Slide In Top",value:"slideInTop"},{label:"Slide In Bottom",value:"slideInBottom"},{label:"Slide In Right",value:"slideInRight"},{label:"Slide In Left",value:"slideInLeft"},{label:"Slide Top",value:"slideTop"},{label:"Slide Right",value:"slideRight"},{label:"Slide Bottom",value:"slideBottom"},{label:"Slide Left",value:"slideLeft"},{label:"Rotate In",value:"rotateIn"},{label:"Rotate Out",value:"rotateOut"},{label:"Flip In X",value:"flipInX"},{label:"Flip In Y",value:"flipInY"},{label:"Swing Top",value:"swingTop"},{label:"Swing Right",value:"swingRight"},{label:"Swing Bottom",value:"swingBottom"},{label:"Swing Left",value:"swingLeft"},{label:"Flash",value:"flash"},{label:"Pulse",value:"pulse"},{label:"Rubber Band",value:"rubberBand"},{label:"Shake",value:"shake"},{label:"Swing",value:"swing"},{label:"Tada",value:"tada"},{label:"Wobble",value:"wobble"},{label:"Bounce",value:"bounce"},{label:"Bounce In",value:"bounceIn"},{label:"Bounce In Up",value:"bounceInUp"},{label:"Bounce In Down",value:"bounceInDown"},{label:"Bounce In Right",value:"bounceInRight"},{label:"Bounce In Left",value:"bounceInLeft"},{label:"Un Fold",value:"unFold"},{label:"Flow In",value:"flowIn"}],T=[{label:"Top Left",value:"topLeft"},{label:"Top Center",value:"topCenter"},{label:"Top Right",value:"topRight"},{label:"Bottom Left",value:"bottomLeft"},{label:"Bottom Center",value:"bottomCenter"},{label:"Bottom Right",value:"bottomRight"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Center",value:"center"}],P=[{label:"Same Window (_self)",value:"_self"},{label:"New Window (_blank)",value:"_blank"}],B=[{label:"Overlay",value:"overlay"},{label:"Button",value:"button"},{label:"Close",value:"close"}],D=async e=>{if(!e)return[];try{return(await wp.apiFetch({path:`/wp/v2/pages?search=${encodeURIComponent(e)}&per_page=10`})).map(e=>({label:e.title.rendered,value:String(e.id)}))}catch(e){return console.error("Error fetching pages:",e),[]}},O=({builderType:e,setBuilderType:t,builderStatus:l,setBuilderStatus:o,displayOn:n,setDisplayOn:s,notDisplayOn:i,setNotDisplayOn:c,displaySpecialPages:p,setDisplaySpecialPages:u,notDisplaySpecialPages:m,setNotDisplaySpecialPages:d,displayCustomPages:g,setDisplayCustomPages:b,notDisplayCustomPages:h,setNotDisplayCustomPages:y,displayUserRoles:x,setDisplayUserRoles:_,startDate:v,setStartDate:O,endDate:z,setEndDate:R,maxImpressions:I,setMaxImpressions:$,popupSettings:L,setPopupSettings:W})=>{var A,F,M;const[j,U]=(0,a.useState)("");(0,a.useEffect)(()=>{L&&Object.keys(L).length>0&&U(JSON.stringify(L))},[L]);const[H,J]=(0,a.useState)(new Map),[Y,G]=(0,a.useState)(!1);(0,a.useEffect)(()=>{(async()=>{const e=[...g,...h].filter(e=>!H.has(e));if(0!==e.length){G(!0);try{const t=10,l=new Map(H);for(let a=0;a<e.length;a+=t){const o=e.slice(a,a+t),r=o.join(",");try{(await wp.apiFetch({path:`/wp/v2/pages?include=${r}&per_page=${t}`})).forEach(e=>{l.set(String(e.id),e.title.rendered)})}catch(e){console.error("Error fetching page titles for batch:",o,e),o.forEach(e=>{l.has(e)||l.set(e,`Page ID: ${e}`)})}}J(l)}catch(e){console.error("Error fetching page titles:",e)}finally{G(!1)}}})()},[g,h]);const V=e=>H.get(e)||`Page ID: ${e}`,q=e=>{const t=[{label:"Entire Site",value:"entire_site"},{label:"All Pages",value:"all_pages"},{label:"All Posts",value:"all_posts"},{label:"Special Pages",value:"special_pages"},{label:"Custom Pages",value:"custom_pages"}];return e.map(e=>{const l=t.find(t=>t.value===e);return l?l.label:e})},X=e=>e.map(e=>{const t=w.find(t=>t.value===e);return t?t.label:e}),Z=e=>e.map(e=>V(e)),K=e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Not set";return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-6"},(0,a.createElement)("h3",{className:"text-lg font-medium text-blue-900 mb-3"},(0,r.__)("Campaign Configuration Summary")),(0,a.createElement)("div",{className:"space-y-2 text-sm"},(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Layout:")," ",(0,a.createElement)("span",{className:"text-gray-900"},e?(e=>{const t=k.find(t=>t.value===e);return t?t.label:e})(e):"Not set")),(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Status:")," ",(0,a.createElement)("span",{className:"capitalize "+("enabled"===l?"text-green-600":"text-red-600")},l)),(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Schedule:")," ",(0,a.createElement)("span",{className:"text-gray-900"},v?K(v):"No start date"," - ",z?K(z):"No end date")),(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Max Impressions:")," ",(0,a.createElement)("span",{className:"text-gray-900"},I>0?I:"Unlimited")),(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Triggers:")," ",(0,a.createElement)("span",{className:"text-gray-900"},null!==(A=L?.popupType)&&void 0!==A?A:"Not set")),(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Popup Settings:")," ",(0,a.createElement)("span",{className:"text-gray-900 text-xs break-all"},j||"Not configured")),(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Display On:")," ",(0,a.createElement)("span",{className:"text-gray-900"},n.length?q(n).join(", "):"None selected")),n.includes("special_pages")&&p.length>0&&(0,a.createElement)("div",{className:"ml-4"},(0,a.createElement)("span",{className:"font-medium text-gray-600"},"• Special Pages:")," ",(0,a.createElement)("span",{className:"text-gray-800"},X(p).join(", "))),n.includes("custom_pages")&&g.length>0&&(0,a.createElement)("div",{className:"ml-4"},(0,a.createElement)("span",{className:"font-medium text-gray-600"},"• Custom Pages:")," ",(0,a.createElement)("span",{className:"text-gray-800"},Y?`Loading ${g.length} page title(s)...`:Z(g).join(", "))),i.length>0&&(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"Not Display On:")," ",(0,a.createElement)("span",{className:"text-gray-900"},q(i).join(", "))),i.includes("special_pages")&&m.length>0&&(0,a.createElement)("div",{className:"ml-4"},(0,a.createElement)("span",{className:"font-medium text-gray-600"},"• Special Pages:")," ",(0,a.createElement)("span",{className:"text-gray-800"},X(m).join(", "))),i.includes("custom_pages")&&h.length>0&&(0,a.createElement)("div",{className:"ml-4"},(0,a.createElement)("span",{className:"font-medium text-gray-600"},"• Custom Pages:")," ",(0,a.createElement)("span",{className:"text-gray-800"},Y?`Loading ${h.length} page title(s)...`:Z(h).join(", "))),(0,a.createElement)("div",null,(0,a.createElement)("span",{className:"font-medium text-gray-700"},"User Roles:")," ",(0,a.createElement)("span",{className:"text-gray-900"},x.length?(Q=x,Q.map(e=>{const t=C.find(t=>t.value===e);return t?t.label:e})).join(", "):"All users")))),(0,a.createElement)("div",{className:"plugin-sidebar-settings p-4 border-t border-gray-200 grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3"},(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Layout & Status"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Select Addons Type"),value:e,options:k,onChange:t,disabled:!0}),(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Status"),value:l,options:[{label:"Enabled",value:"enabled"},{label:"Disabled",value:"disabled"}],onChange:o})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Campaign Schedule"),initialOpen:!1},(0,a.createElement)("div",{style:{marginBottom:"20px"}},(0,a.createElement)("label",{className:"components-base-control__label"},(0,r.__)("Start Date & Time")),(0,a.createElement)(f.DateTimePicker,{currentDate:v||new Date,onChange:O,is12Hour:!0})),(0,a.createElement)("div",{style:{marginBottom:"20px"}},(0,a.createElement)("label",{className:"components-base-control__label"},(0,r.__)("End Date & Time")),(0,a.createElement)(f.DateTimePicker,{currentDate:z||new Date(Date.now()+2592e6),onChange:R,is12Hour:!0}))),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Maximum Impressions"),initialOpen:!1},(0,a.createElement)(f.RangeControl,{label:(0,r.__)("Maximum Impressions (0 = unlimited)"),value:I,onChange:$,min:0,max:1e4,help:(0,r.__)("Limit total number of times this campaign can be shown"),disabled:!0})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Display On"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{multiple:!0,label:(0,r.__)("Select Display Option"),value:n,options:[{label:"Entire Site",value:"entire_site"},{label:"All Pages",value:"all_pages"},{label:"All Posts",value:"all_posts"},{label:"Special Pages",value:"special_pages"},{label:"Custom Pages",value:"custom_pages"}],onChange:s}),n.includes("special_pages")&&(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Select Special Pages"),multiple:!0,options:w,value:p,onChange:u}),n.includes("custom_pages")&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Select Custom Pages"),(0,a.createElement)(E.A,{label:(0,r.__)("Select Custom Pages"),isMulti:!0,cacheOptions:!0,defaultOptions:!0,loadOptions:D,value:g.map(e=>({value:e,label:V(e)})),onChange:e=>{const t=(e||[]).map(e=>e.value);b(t);const l=new Map(H);(e||[]).forEach(e=>{l.set(e.value,e.label)}),J(l)},placeholder:"Search and select pages to display...",isLoading:Y}))),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Not Display On"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{multiple:!0,label:(0,r.__)("Select Exclusion Option"),value:i,options:[{label:"Entire Site",value:"entire_site"},{label:"All Pages",value:"all_pages"},{label:"All Posts",value:"all_posts"},{label:"Special Pages",value:"special_pages"},{label:"Custom Pages",value:"custom_pages"}],onChange:c}),i.includes("special_pages")&&(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Select Special Pages to Exclude"),multiple:!0,options:w,value:m,onChange:d}),i.includes("custom_pages")&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Select Custom Pages to Exclude"),(0,a.createElement)(E.A,{isMulti:!0,cacheOptions:!0,defaultOptions:!0,loadOptions:D,value:h.map(e=>({value:e,label:V(e)})),onChange:e=>{const t=(e||[]).map(e=>e.value);y(t);const l=new Map(H);(e||[]).forEach(e=>{l.set(e.value,e.label)}),J(l)},placeholder:"Search and select pages to exclude...",isLoading:Y}))),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("User Roles"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{multiple:!0,label:(0,r.__)("Select User Roles"),options:C,value:x,onChange:_}))),(0,a.createElement)("hr",{className:"my-6"}),(0,a.createElement)("div",{className:"plugin-sidebar-settings p-4 border-t border-gray-200 grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3"},(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Popup Type"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Popup Type"),value:L?.popupType,options:N,onChange:e=>W({...L,popupType:e}),help:(0,r.__)("Choose when the campaign should appear")}),L?.popupType?.includes("scrolled")&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(f.TextControl,{label:(0,r.__)("Scroll Distance"),value:L?.popup_scrollDistance||"400px",onChange:e=>W({...L,popup_scrollDistance:e}),help:(0,r.__)('Sets the popup scroll distance when popup_type: "scrolled" is used.')}),(0,a.createElement)(f.ToggleControl,{label:(0,r.__)("Hide on Scroll Up"),checked:L?.popup_scrollHideOnUp||!1,onChange:e=>W({...L,popup_scrollHideOnUp:e}),help:(0,r.__)('Defines if popup should stay hidden when visitors scroll back up upon using popup_type: "scrolled".')})),L?.popupType?.includes("delayed")&&(0,a.createElement)(f.TextControl,{label:(0,r.__)("Delayed Time"),value:L?.popup_delayedTime||"1s",onChange:e=>W({...L,popup_delayedTime:e}),help:(0,r.__)('Sets the popup delayed time in seconds when popup_type: "delayed" is used.')}),L?.popupType?.includes("exit")&&(0,a.createElement)(f.ToggleControl,{label:(0,r.__)("Show Always on Exit"),checked:L?.popup_exitShowAlways||!1,onChange:e=>W({...L,popup_exitShowAlways:e}),help:(0,r.__)('Defines if exit popup should appear always when using popup_type: "exit".')}),(0,a.createElement)(f.ToggleControl,{label:(0,r.__)("Auto Close"),checked:L?.popup_autoClose||!1,onChange:e=>W({...L,popup_autoClose:e}),help:(0,r.__)("Sets the popup auto close after it has been opened.")}),L?.popup_autoClose&&(0,a.createElement)(f.TextControl,{label:(0,r.__)("Auto Close After"),value:L?.popup_autoCloseAfter||"5s",onChange:e=>W({...L,popup_autoCloseAfter:e}),help:(0,r.__)("Defines the time in seconds when the popup will auto close upon opening.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Open With Hash"),value:L?.popup_openWithHash||"",onChange:e=>W({...L,popup_openWithHash:e}),placeholder:"#openMyPopup",help:(0,r.__)("Enables opening the popup via URL hash. If empty it will disable this option.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Reopen Class"),value:L?.popup_reopenClass||"open-popup",onChange:e=>W({...L,popup_reopenClass:e}),help:(0,r.__)("CSS class name that can be used to reopen the popup after it has been closed.")}),(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Reopen Class Trigger"),value:L?.popup_reopenClassTrigger||"click",options:[{label:"Click",value:"click"},{label:"Hover",value:"hover"}],onChange:e=>W({...L,popup_reopenClassTrigger:e}),help:(0,r.__)("How the reopen class should be triggered - either on click or hover.")})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Popup Position"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Popup Position"),value:L?.popup_position||"center",options:T,onChange:e=>W({...L,popup_position:e}),help:(0,r.__)("Defines the popup position on desktop devices.")})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Popup Animation"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Popup Animation"),value:L?.popup_animation||"fadeIn",options:S,onChange:e=>W({...L,popup_animation:e}),help:(0,r.__)("Defines the popup animation upon opening. Closing animation will apply automatically for most of the animations.")})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Popup Styling"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Close Button Style"),value:L?.popup_closeButtonStyle||"text label",options:[{label:"Text Label",value:"text label"},{label:"Icon Only",value:"icon"},{label:"None",value:"none"}],onChange:e=>W({...L,popup_closeButtonStyle:e}),help:(0,r.__)("Choose the style for the popup close button.")}),(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Close Button Align"),value:L?.popup_closeButtonAlign||"right",options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>W({...L,popup_closeButtonAlign:e}),help:(0,r.__)("Choose the alignment for the popup close button.")}),(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Close Button Place"),value:L?.popup_closeButtonPlace||"outside",options:[{label:"Inside",value:"inside"},{label:"Outside",value:"outside"}],onChange:e=>W({...L,popup_closeButtonPlace:e}),help:(0,r.__)("Choose whether the close button appears inside or outside the popup.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Close Button Text"),value:L?.popup_closeButtonText||"Close",onChange:e=>W({...L,popup_closeButtonText:e}),help:(0,r.__)("Text to display on the close button.")}),(0,a.createElement)("div",{className:"mt-4"},(0,a.createElement)("h4",{className:"text-sm font-medium mb-2"},"Popup CSS"),(0,a.createElement)("div",{className:"grid grid-cols-2 gap-2"},(0,a.createElement)(f.TextControl,{label:(0,r.__)("Width"),value:L?.popup_css?.width||"400px",onChange:e=>W({...L,popup_css:{...L.popup_css,width:e}}),help:(0,r.__)("Width of the popup.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Height"),value:L?.popup_css?.height||"auto",onChange:e=>W({...L,popup_css:{...L.popup_css,height:e}}),help:(0,r.__)("Height of the popup.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Background"),value:L?.popup_css?.background||"transparent",onChange:e=>W({...L,popup_css:{...L.popup_css,background:e}}),help:(0,r.__)("Background color or image of the popup.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Padding"),value:L?.popup_css?.padding||"0",onChange:e=>W({...L,popup_css:{...L.popup_css,padding:e}}),help:(0,r.__)("Padding inside the popup.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Margin"),value:L?.popup_css?.margin||"30px",onChange:e=>W({...L,popup_css:{...L.popup_css,margin:e}}),help:(0,r.__)("Margin around the popup.")})))),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Content Animation"),initialOpen:!1},(0,a.createElement)(f.ToggleControl,{label:(0,r.__)("Enable Content Animation"),checked:null!==(F=L?.content_animate)&&void 0!==F&&F,onChange:e=>W({...L,content_animate:e}),help:(0,r.__)("Defines if inner content should be animated upon opening the popup.")}),L?.content_animate&&(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Content Animation Type"),value:L?.content_animation||"slideRight",options:S,onChange:e=>W({...L,content_animation:e}),help:(0,r.__)("Defines the inner content animation upon popup opening.")})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Overlay Settings"),initialOpen:!1},(0,a.createElement)(f.ToggleControl,{label:(0,r.__)("Show Overlay"),checked:null===(M=L?.overlay_isVisible)||void 0===M||M,onChange:e=>W({...L,overlay_isVisible:e}),help:(0,r.__)("Enable or disable the overlay background behind the popup.")})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Mobile Position"),initialOpen:!1},(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Mobile Popup Position"),value:L?.mobile_position||"center",options:T,onChange:e=>W({...L,mobile_position:e}),help:(0,r.__)("Defines the popup position on mobile / smaller screen devices.")})),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Mobile Settings"),initialOpen:!1},(0,a.createElement)(f.TextControl,{label:(0,r.__)("Mobile Breakpoint"),value:L?.mobile_breakpoint||"540px",onChange:e=>W({...L,mobile_breakpoint:e}),help:(0,r.__)("Screen width below which mobile settings will be applied.")}),(0,a.createElement)("div",{className:"mt-4"},(0,a.createElement)("h4",{className:"text-sm font-medium mb-2"},"Mobile CSS"),(0,a.createElement)("div",{className:"grid grid-cols-2 gap-2"},(0,a.createElement)(f.TextControl,{label:(0,r.__)("Width"),value:L?.mobile_css?.width||"400px",onChange:e=>W({...L,mobile_css:{...L.mobile_css,width:e}}),help:(0,r.__)("Width of the popup on mobile devices.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Height"),value:L?.mobile_css?.height||"400px",onChange:e=>W({...L,mobile_css:{...L.mobile_css,height:e}}),help:(0,r.__)("Height of the popup on mobile devices.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Background"),value:L?.mobile_css?.background||"transparent",onChange:e=>W({...L,mobile_css:{...L.mobile_css,background:e}}),help:(0,r.__)("Background of the popup on mobile devices.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Padding"),value:L?.mobile_css?.padding||"0",onChange:e=>W({...L,mobile_css:{...L.mobile_css,padding:e}}),help:(0,r.__)("Padding inside the popup on mobile devices.")}),(0,a.createElement)(f.TextControl,{label:(0,r.__)("Margin"),value:L?.mobile_css?.margin||"20px",onChange:e=>W({...L,mobile_css:{...L.mobile_css,margin:e}}),help:(0,r.__)("Margin around the popup on mobile devices.")})))),(0,a.createElement)(f.PanelBody,{title:(0,r.__)("Redirect on Close"),initialOpen:!1},(0,a.createElement)(f.ToggleControl,{label:(0,r.__)("Enable Redirect on Close"),checked:L?.popup_redirectOnClose||!1,onChange:e=>W({...L,popup_redirectOnClose:e}),help:(0,r.__)("Defines if visitor gets redirected to another URL after popup gets closed.")}),L?.popup_redirectOnClose&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(f.TextControl,{label:(0,r.__)("Redirect URL"),value:L?.popup_redirectOnCloseUrl||"",onChange:e=>W({...L,popup_redirectOnCloseUrl:e}),placeholder:"https://example.com",help:(0,r.__)("Redirect URL after popup gets closed.")}),(0,a.createElement)(f.SelectControl,{label:(0,r.__)("Redirect Target"),value:L?.popup_redirectOnCloseTarget||"_blank",options:P,onChange:e=>W({...L,popup_redirectOnCloseTarget:e}),help:(0,r.__)("Sets the target of the redirection when using redirect on close feature.")}),(0,a.createElement)(f.SelectControl,{multiple:!0,label:(0,r.__)("Redirect Triggers"),value:L?.popup_redirectOnCloseTriggers?L.popup_redirectOnCloseTriggers.split(" "):[],options:B,onChange:e=>W({...L,popup_redirectOnCloseTriggers:e.join(" ")}),help:(0,r.__)("Defines which elements should trigger the redirection upon closing the popup.")})))));var Q},z={builderType:"uspw_type",builderStatus:"uspw_status",displayOn:"uspw_display_on",notDisplayOn:"uspw_not_display_on",displaySpecialPages:"uspw_display_special_pages",notDisplaySpecialPages:"uspw_not_display_special_pages",displayCustomPages:"uspw_display_custom_pages",notDisplayCustomPages:"uspw_not_display_custom_pages",userRoles:"uspw_display_roles",coupons:"uspw_coupons",colors:"ultimate_spin_wheel_colors",startDate:"uspw_start_date",endDate:"uspw_end_date",popupType:"uspw_campaign_triggers",popupSettings:"uspw_popup_settings"},R={builderType:"spin_wheel",builderStatus:"enabled",displayOn:["entire_site"],notDisplayOn:[],displaySpecialPages:[],notDisplaySpecialPages:[],displayCustomPages:[],notDisplayCustomPages:[],displayUserRoles:["all_users"],coupons:[{label:"5$",code:"5xOFF",color:"#16a085",lost:{label:"",color:"#277162"}},{label:"10$",code:"10xOFF",color:"#333333",lost:{label:"",color:"#16a085"}},{label:"15$",code:"15xOFF",color:"#277162",lost:{label:"",color:"#333333"}},{label:"20$",code:"20xOFF",color:"#16a085",lost:{label:"",color:"#277162"}},{label:"25$",code:"25xOFF",color:"#333333",lost:{label:"",color:"#16a085"}},{label:"30$",code:"30xOFF",color:"#277162",lost:{label:"",color:"#333333"}}],colors:[],popupType:["instant"],startDate:new Date(Date.now()-864e5),endDate:new Date(Date.now()+2592e6),maxImpressions:0,customDesign:{spinButton:{text:"GO!",backgroundColor:"#16a085",backgroundColorColorHover:"#139cb2"},viewPanel:{backgroundColor:"#16a085"},formTitle:{text:"Let's try luck!",fontSize:"24px",color:"#fff"},formSubmitButton:{text:"Spin The Wheel",color:"#0a0a0a",backgroundColor:"#fff"},couponButton:{color:"#fff",hoverColor:"#139cb2"},prizeWonTitle:{text:"Congratulations!",fontSize:"24px",color:"#fff"},prizeWonMsg:{text:"You won a {{discount_label}} discount!",fontSize:"28px",color:"#fff"},prizeLostTtitle:{text:"Better luck next time!",fontSize:"24px",color:"#fff"},privacyText:{text:"Privacy & Policy",color:"#fff",fontSize:"12px"}},popupSettings:{popupType:"instant",popup_delayedTime:"1s",popup_scrollDistance:"400px",popup_scrollHideOnUp:!1,popup_position:"bottomRight",popup_closeButtonStyle:"text label",popup_reopenClass:"open-popup",popup_reopenClassTrigger:"click",popup_closeButtonPlace:"outside",popup_closeButtonAlign:"right",popup_openWithHash:"#open-popup",popup_redirectOnClose:!1,popup_redirectOnCloseUrl:"",popup_redirectOnCloseTarget:"",popup_css:{width:"400px",height:"400px",background:"transparent",padding:"0",margin:"30px"},page_animate:!0,page_animation:"blur",page_blurRadius:"2px",overlay_isVisible:!1,content_animate:!0,content_animation:"slideRight",mobile_breakpoint:"540px",mobile_css:{width:"400px",height:"400px",background:"transparent",padding:"0",margin:"20px"}}},I=()=>{const[e,t]=(0,a.useState)(localStorage.getItem("ultimate_spin_wheel_spinwheel_active_tab")||"coupons"),[l,o]=(0,a.useState)(!0),[r,i]=(0,a.useState)(!1),[c,p]=(0,a.useState)(null),[u,m]=(0,a.useState)(null),[d,g]=(0,a.useState)({coupons:R.coupons,colors:R.colors}),[b,f]=(0,a.useState)(R.builderType),[y,x]=(0,a.useState)(R.builderStatus),[_,E]=(0,a.useState)(R.displayOn),[w,C]=(0,a.useState)(R.notDisplayOn),[k,N]=(0,a.useState)(R.displaySpecialPages),[S,T]=(0,a.useState)(R.notDisplaySpecialPages),[P,B]=(0,a.useState)(R.displayCustomPages),[D,I]=(0,a.useState)(R.notDisplayCustomPages),[$,L]=(0,a.useState)(R.displayUserRoles),[W,A]=(0,a.useState)(R.startDate),[F,M]=(0,a.useState)(R.endDate),[j,U]=(0,a.useState)(R.maxImpressions),[H,J]=(0,a.useState)(R.customDesign),[Y,G]=(0,a.useState)(R.popupSettings),{post:V,hasResolved:q}=(0,n.useSelect)(e=>c?{post:e("core").getEntityRecord("postType","wowdevs_engage",c),hasResolved:e("core").hasFinishedResolution("getEntityRecord",["postType","wowdevs_engage",c])}:{post:null,hasResolved:!1},[c]),{saveEntityRecord:X}=(0,n.useDispatch)("core"),Z=(e,t=[])=>{if(!e)return t;try{const l=JSON.parse(e);return Array.isArray(l)?l:t}catch(e){return console.error("Error parsing JSON:",e),t}},K=(e,t=[])=>{if(!e)return t;try{const l=JSON.parse(e);if(Array.isArray(l)){const e=l.map(e=>"object"==typeof e&&void 0!==e.value?e.value:e);return e.length>0?e:t}return t}catch(l){return console.error("Error deserializing meta value:",e,l),t}},Q=(e,t)=>null!=e&&""!==e?e:t;(0,a.useEffect)(()=>{const e=new URLSearchParams(window.location.search),t=e.get("post_id")||e.get("id");if(t){const e=parseInt(t,10);isNaN(e)?(m("Invalid post ID in URL parameters"),o(!1)):(p(e),console.log("Post ID from URL:",e))}else m("No post ID found in URL parameters"),o(!1)},[]),(0,a.useEffect)(()=>{c&&q&&(o(!1),V&&V.meta?(console.log("Loaded post data:",V),ee(V.meta),m(null)):V||(m("Post not found. You may need to create the post first."),console.error("Post not found for ID:",c)))},[V,q,c]);const ee=e=>{console.log("Updating states from meta:",e),g({coupons:Z(e[z.coupons],R.coupons),colors:Z(e[z.colors],R.colors)}),f(Q(e[z.builderType],R.builderType)),x(Q(e[z.builderStatus],R.builderStatus)),E(K(e[z.displayOn],R.displayOn)),C(K(e[z.notDisplayOn],R.notDisplayOn)),N(K(e[z.displaySpecialPages],R.displaySpecialPages)),T(K(e[z.notDisplaySpecialPages],R.notDisplaySpecialPages)),B(K(e[z.displayCustomPages],R.displayCustomPages)),I(K(e[z.notDisplayCustomPages],R.notDisplayCustomPages)),L(K(e[z.userRoles],R.displayUserRoles)),A(Q(e[z.startDate],R.startDate)),M(Q(e[z.endDate],R.endDate)),U(void 0!==e[z.maxImpressions]?parseInt(e[z.maxImpressions],10):R.maxImpressions),G(((e,t={})=>{if(!e)return t;try{const l=JSON.parse(e);return"object"!=typeof l||null===l||Array.isArray(l)?t:l}catch(e){return console.error("Error parsing JSON object:",e),t}})(e[z.popupSettings],R.popupSettings))},te=e=>{g(t=>({...t,coupons:e}))};if(l)return(0,a.createElement)("div",{className:"mt-6 pt-6"},(0,a.createElement)("div",{className:"flex justify-center items-center h-64"},(0,a.createElement)("div",{className:"text-lg"},"Loading configuration...")));if(u)return(0,a.createElement)("div",{className:"mt-6 pt-6"},(0,a.createElement)("div",{className:"flex justify-center items-center h-64"},(0,a.createElement)("div",{className:"text-center"},(0,a.createElement)("div",{className:"text-lg text-red-600 mb-4"},u),(0,a.createElement)("button",{className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",onClick:()=>{let e=new URL(window.location.href);e.hash="campaigns",window.location=e.toString(),window.location.reload()}},"Select First"))));const le=e=>{t(e),localStorage.setItem("ultimate_spin_wheel_spinwheel_active_tab",e)};return(0,a.createElement)("div",{className:"mt-6 pt-6"},(0,a.createElement)("div",{className:"mb-12 relative flex flex-col bg-clip-border rounded-xl bg-white dark:bg-gray-900 text-gray-700 shadow-sm"},(0,a.createElement)(s.A,{title:"Spin Wheel Generator",desc:"Create and customize your spin wheel with coupon-based rewards and live preview. "+(c?`(ID# ${c})`:"")}),(0,a.createElement)("div",{className:"tabs flex space-x-4 border-b border-gray-200 dark:border-gray-700 mb-4"},(0,a.createElement)("button",{className:"tab-button px-4 py-2 text-sm font-medium "+("coupons"===e?"text-blue-600 border-b-2 border-blue-600":"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"),onClick:()=>le("coupons")},"Coupons"),(0,a.createElement)("button",{className:"tab-button px-4 py-2 text-sm font-medium "+("settings"===e?"text-blue-600 border-b-2 border-blue-600":"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"),onClick:()=>le("settings")},"Configuration"),(0,a.createElement)("button",{className:"tab-button px-4 py-2 text-sm font-medium "+("preview"===e?"text-blue-600 border-b-2 border-blue-600":"text-blue-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"),onClick:()=>le("preview")},"Preview")),(0,a.createElement)("div",{className:"p-3 md:p-6"},(()=>{switch(e){case"coupons":return(0,a.createElement)(h,{coupons:d.coupons,onAdd:()=>te([...d.coupons,{label:"New Coupon",code:"NEW",color:"#000000"}]),onRemove:e=>te(d.coupons.filter((t,l)=>l!==e)),onUpdate:(e,t)=>{const l=[...d.coupons];l[e]=t,te(l)}});case"settings":return(0,a.createElement)(O,{builderType:b,setBuilderType:f,builderStatus:y,setBuilderStatus:x,displayOn:_,setDisplayOn:E,notDisplayOn:w,setNotDisplayOn:C,displaySpecialPages:k,setDisplaySpecialPages:N,notDisplaySpecialPages:S,setNotDisplaySpecialPages:T,displayCustomPages:P,setDisplayCustomPages:B,notDisplayCustomPages:D,setNotDisplayCustomPages:I,displayUserRoles:$,setDisplayUserRoles:L,startDate:W,setStartDate:A,endDate:F,setEndDate:M,maxImpressions:j,setMaxImpressions:U,popupSettings:Y,setPopupSettings:G});case"preview":return(0,a.createElement)(v,{segments:d.coupons,colors:d.colors,customDesign:H,setCustomDesign:J});default:return null}})()),(0,a.createElement)("div",{className:"p-4 border-t border-gray-200"},(0,a.createElement)("button",{className:"px-6 py-3 text-white rounded-lg font-medium transition-colors "+(r?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700"),onClick:async()=>{if(c){i(!0),m(null);try{if(!1===(0,n.select)("core").canUser("update","posts",c))throw new Error("Permission denied: You do not have permission to update this post.");const e={[z.builderType]:String(b||R.builderType),[z.builderStatus]:String(y||R.builderStatus),[z.maxImpressions]:parseInt(j,10)||R.maxImpressions,[z.startDate]:W?W instanceof Date?W.toISOString():W:null,[z.endDate]:F?F instanceof Date?F.toISOString():F:null,[z.coupons]:JSON.stringify(d.coupons||R.coupons),[z.colors]:JSON.stringify(d.colors||R.colors),[z.displayOn]:JSON.stringify(_||R.displayOn),[z.notDisplayOn]:JSON.stringify(w||R.notDisplayOn),[z.displaySpecialPages]:JSON.stringify(k||R.displaySpecialPages),[z.notDisplaySpecialPages]:JSON.stringify(S||R.notDisplaySpecialPages),[z.displayCustomPages]:JSON.stringify(P||R.displayCustomPages),[z.notDisplayCustomPages]:JSON.stringify(D||R.notDisplayCustomPages),[z.userRoles]:JSON.stringify($||R.displayUserRoles),[z.popupSettings]:JSON.stringify(Y||R.popupSettings),[z.customDesign]:H||R.customDesign};console.log("Preparing to save configuration..."),console.log("Post ID:",c),console.log("Custom Design Data:",H),console.log("Wheel Config:",d),console.log("Complete Meta Data:",e),Object.keys(e).forEach(t=>{void 0===e[t]&&console.warn(`Warning: Meta key "${t}" is undefined`)});const{editEntityRecord:t,saveEditedEntityRecord:l}=(0,n.dispatch)("core");try{t("postType","wowdevs_engage",c,{meta:e}),console.log("Entity record edited, now saving...");const a=await l("postType","wowdevs_engage",c);if(console.log("Save result:",a),!1!==a)return console.log("Configuration saved successfully via editEntityRecord method"),void alert("Configuration saved successfully!");console.warn("editEntityRecord method returned false, trying alternative...")}catch(e){console.warn("editEntityRecord method failed:",e)}try{console.log("Trying direct saveEntityRecord...");const t=X("postType","wowdevs_engage",{id:c,meta:e}),l=new Promise((e,t)=>setTimeout(()=>t(new Error("Save operation timed out after 30 seconds")),3e4)),a=await Promise.race([t,l]);if(console.log("Direct save result:",a),a&&(a.id||!0===a))return console.log("Configuration saved successfully via direct saveEntityRecord"),void alert("Configuration saved successfully!");if(null==a)throw new Error("Save operation returned null/undefined - check WordPress permissions and post type registration")}catch(e){throw console.warn("Direct saveEntityRecord failed:",e),e}}catch(e){console.error("All save methods failed:",e);let t="Failed to save configuration";e.message.includes("timeout")?t+=": Operation timed out. Please try again.":e.message.includes("permission")?t+=": Permission denied. Check user capabilities.":e.message.includes("post type")?t+=": Post type not properly registered or accessible.":e.message&&(t+=`: ${e.message}`),m(t),alert(t),console.log("Debug info:",{postId:c,postExists:!!V,hasPermissions:(0,n.select)("core").canUser("update","posts",c),postType:V?.type,postStatus:V?.status})}finally{i(!1)}}else alert("Error: No post ID available. Cannot save configuration.")},disabled:r||!c},r?"Saving...":"Save Configuration"),!c&&(0,a.createElement)("p",{className:"text-red-600 text-sm mt-2"},"Error: No post ID available. Please check the URL parameters."),u&&(0,a.createElement)("p",{className:"text-red-600 text-sm mt-2"},u))))}}}]); -
ultimate-spin-wheel/trunk/build/810.js
r3344591 r3417307 1 "use strict";(globalThis.webpackChunkultimate_spin_wheel=globalThis.webpackChunkultimate_spin_wheel||[]).push([[810],{810:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var r=a(609), l=a(723),s=a(83),n=a(465),o=a.n(n),i=a(982),c=a(188);const m=({isWizard:e=!1})=>{const[t,a]=(0,r.useState)(!1),[n,m]=(0,r.useState)(""),[d,u]=(0,r.useState)(""),[g,p]=(0,r.useState)(!0),[b,h]=(0,r.useState)(!0),[w,x]=(0,r.useState)({});(0,r.useEffect)(()=>{(async()=>{try{const e=await s.A.post(USPIN_CONFIG_ADMIN?.rest_url+"smartcart/v1/manage-license",{},{headers:{"X-WP-Nonce":USPIN_CONFIG_ADMIN.nonce}});m(e?.data?.license_key||""),f(e?.data?.license_key||""),u(e?.data?.license_email||""),h(!!e?.data?.license_key),x(e?.data?.data||{}),p(!1)}catch(e){console.error("Error fetching settings:",e),p(!1),h(!1)}})()},[]);const[y,f]=(0,r.useState)("");return g?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"text-center"},(0,l.__)("Loading","ultimate-spin-wheel"),"..."),(0,r.createElement)("div",{className:"flex justify-center items-center h-40 mt-12"},(0,r.createElement)("div",{className:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"}))):(0,r.createElement)("div",{className:"mb-12 relative flex flex-col bg-clip-border rounded-xl bg-white dark:bg-gray-900 text-gray-700 shadow-sm"},(0,r.createElement)("div",{className:"p-3 md:p-6"},(0,r.createElement)("div",{className:"grid grid-cols-1 gap-10 sm:grid-cols-2"},(0,r.createElement)("div",null,!b&&(0,r.createElement)("form",{onSubmit:async t=>{if(t.preventDefault(),""!==y)if(""!==d)try{o().fire({title:"Loading...",allowOutsideClick:!1,didOpen:()=>{o().showLoading()}});const t=await s.A.post(USPIN_CONFIG_ADMIN?.rest_url+"smartcart/v1/manage-license/save",{ultimate_spin_wheel_pro_license_key:n,ultimate_spin_wheel_pro_license_email:d,who:"license_tab"},{headers:{"X-WP-Nonce":USPIN_CONFIG_ADMIN.nonce}});localStorage.setItem("ultimate_spin_wheel_setup_wizard_step",1),o().fire({icon:"success",title:(0,l.__)("Success","ultimate-spin-wheel"),html:t?.data?.message,showConfirmButton:!1,timer:2500,willClose:()=>{window.location.reload()}}),e&&setTimeout(()=>{o().fire({title:"Loading...",allowOutsideClick:!1,didOpen:()=>{window.location.reload(),o().showLoading()}})},2e3)}catch(e){o().fire({icon:"error",title:e?.response?.data?.data?.title||"An error occurred",showConfirmButton:!0,html:e?.response?.data?.message||"Please try again"})}else o().fire({icon:"error",title:"Email is required",showConfirmButton:!0});else o().fire({icon:"error",title:"License Key is required",showConfirmButton:!0})}},(0,r.createElement)("div",{className:"flex items-center gap-6"},(0,r.createElement)("div",{className:"w-[80%]"},(0,r.createElement)("h6",{className:"mb-2 text-slate-800 text-lg font-semibold dark:text-white"},(0,l.__)("Activate your Premium Plugin","ultimate-spin-wheel")),(0,r.createElement)("p",{className:"mb-4 text-sm text-gray-500 dark:text-gray-400"},(0,l.__)("Without a valid license key, you won't be able to access the premium features.","sky - elementor - addons")))),(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("label",{className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"API Key"),(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none text-gray-500 dark:text-gray-400"},(0,r.createElement)("svg",{fill:"currentColor",className:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,r.createElement)("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"}))),(0,r.createElement)("input",{value:n||"",type:t?"text":"password",onChange:e=>{f(e.target.value),m(e.target.value)},name:"ultimate_spin_wheel_pro_license_key",className:"blur-xs block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"}),(0,r.createElement)("div",{className:"text-white absolute end-2.5 bottom-2.5 bg-indigo-700 hover:bg-indigo-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-2.5 py-2 dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-blue-800 cursor-pointer leading-none",onClick:()=>{a(!t)}},(0,r.createElement)(i.g,{icon:t?c.pS3:c.k6j,className:"h-4 w-4"})))),(0,r.createElement)("div",{className:"relative mt-6"},(0,r.createElement)("label",{className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Email"),(0,r.createElement)("input",{value:d||"",type:"email",onChange:e=>u(e.target.value),name:"ultimate_spin_wheel_pro_license_email",className:"block w-full p-4 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"})),(0,r.createElement)("button",{type:"submit",className:"mt-6 text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-md w-full sm:w-auto px-6 py-3.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800"},(0,l.__)("Activate","ultimate-spin-wheel"))),b&&(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400"},(0,r.createElement)("caption",{className:"pb-5 text-lg font-semibold text-left rtl:text-right text-gray-900 dark:text-white"},(0,l.__)("License Information","ultimate-spin-wheel"),(0,r.createElement)("p",{className:"mt-1 text-sm font-normal text-gray-500 dark:text-gray-400"},(0,l.__)("This is your current license information.","ultimate-spin-wheel"))),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"border-b border-t dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"License Title"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},w?.license_title)),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"License Key"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},w?.license_key?.substr(0,9)+"XXXXXXXX-XXXXXXXX"+w?.license_key?.substr(-9))),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Is Valid"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},w?.is_valid?(0,r.createElement)("span",{className:"text-white bg-green-600 px-2 py-1 rounded"},"Valid"):(0,r.createElement)("span",{className:"text-red-600 dark:text-red-400"},"Invalid"))),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Expire Date"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},w?.expire_date)),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Status"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},w?.msg)),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Support End"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},w?.support_end)))),(0,r.createElement)("button",{type:"button",className:"mt-6 text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-md w-full sm:w-auto px-6 py-3 text-center dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800",onClick:async()=>{try{o().fire({title:"Loading...",allowOutsideClick:!1,didOpen:()=>{o().showLoading()}});const e=await s.A.delete(USPIN_CONFIG_ADMIN?.rest_url+"smartcart/v1/manage-license",{params:{who:"license_tab"},headers:{"X-WP-Nonce":USPIN_CONFIG_ADMIN.nonce}});o().fire({icon:"success",title:(0,l.__)("Success","ultimate-spin-wheel"),html:e?.data?.message,showConfirmButton:!1,timer:2500,willClose:()=>{window.location.reload()}})}catch(e){o().fire({icon:"error",title:e?.response?.data?.data?.title||"An error occurred",showConfirmButton:!0,html:e?.response?.data?.message||"Please try again"})}}},(0,l.__)("Deactivate","ultimate-spin-wheel")))),(0,r.createElement)("div",null,(0,r.createElement)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2"},(0,l.__)("How to get License Key","ultimate-spin-wheel")),(0,r.createElement)("p",{className:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},"License Key is very important for you. Otherwise, you will not able to use premium features."),(0,r.createElement)("ul",{className:"list-disc pl-5"},(0,r.createElement)("li",{className:"mb-2 text-base font-normal text-gray-500 dark:text-gray-400"},(0,r.createElement)("strong",null,"Step 1:")," Go to your account on ",(0,r.createElement)("a",{href:"https://account.wowdevs.com/",target:"_blank",className:"text-blue-500"},"https://account.wowdevs.com/")),(0,r.createElement)("li",{className:"mb-2 text-base font-normal text-gray-500 dark:text-gray-400"},(0,r.createElement)("strong",null,"Step 2:")," You if you don't have an account, create an account with the same email you used to purchase the plugin."),(0,r.createElement)("li",{className:"mb-2 text-base font-normal text-gray-500 dark:text-gray-400"},(0,r.createElement)("strong",null,"Step 3:")," If you are facing any issue, please contact us on ",(0,r.createElement)("a",{href:"https://wowdevs.com/support",target:"_blank",className:"text-blue-500"},"https://wowdevs.com/support")))))))}}}]);1 "use strict";(globalThis.webpackChunkultimate_spin_wheel=globalThis.webpackChunkultimate_spin_wheel||[]).push([[810],{810:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var r=a(609),s=a(723),l=a(83),n=a(465),o=a.n(n),c=a(982),i=a(188);const m=({isWizard:e=!1})=>{const[t,a]=(0,r.useState)(!1),[n,m]=(0,r.useState)(""),[d,u]=(0,r.useState)(""),[g,p]=(0,r.useState)(!0),[w,b]=(0,r.useState)(!0),[x,h]=(0,r.useState)({});(0,r.useEffect)(()=>{(async()=>{try{const e=await l.A.post(USPIN_CONFIG_ADMIN?.ajax_url,new URLSearchParams({action:"uspw_get_license_info",nonce:USPIN_CONFIG_ADMIN.nonce}));m(e?.data?.data?.license_key||""),f(e?.data?.data?.license_key||""),u(e?.data?.data?.license_email||""),b(!!e?.data?.data?.license_key),h(e?.data?.data?.data||{}),p(!1)}catch(e){console.error("Error fetching settings:",e),p(!1),b(!1)}})()},[]);const[y,f]=(0,r.useState)("");return g?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"text-center"},(0,s.__)("Loading","ultimate-spin-wheel"),"..."),(0,r.createElement)("div",{className:"flex justify-center items-center h-40 mt-12"},(0,r.createElement)("div",{className:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"}))):(0,r.createElement)("div",{className:"mb-12 relative flex flex-col bg-clip-border rounded-xl bg-white dark:bg-gray-900 text-gray-700 shadow-sm"},(0,r.createElement)("div",{className:"p-3 md:p-6"},(0,r.createElement)("div",{className:"grid grid-cols-1 gap-10 sm:grid-cols-2"},(0,r.createElement)("div",null,!w&&(0,r.createElement)("form",{onSubmit:async t=>{if(t.preventDefault(),""!==y)if(""!==d)try{o().fire({title:"Loading...",allowOutsideClick:!1,didOpen:()=>{o().showLoading()}});const t=await l.A.post(USPIN_CONFIG_ADMIN?.ajax_url,new URLSearchParams({action:"uspw_save_license_info",nonce:USPIN_CONFIG_ADMIN.nonce,uspw_pro_license_key:y,uspw_pro_license_email:d,who:"license_tab"}));localStorage.setItem("uspw_setup_wizard_step",1),o().fire({icon:"success",title:(0,s.__)("Success","ultimate-spin-wheel"),html:t?.data?.message,showConfirmButton:!1,timer:2500,willClose:()=>{window.location.reload()}}),e&&setTimeout(()=>{o().fire({title:"Loading...",allowOutsideClick:!1,didOpen:()=>{window.location.reload(),o().showLoading()}})},2e3)}catch(e){o().fire({icon:"error",title:e?.response?.data?.data?.title||"An error occurred",showConfirmButton:!0,html:e?.response?.data?.data?.message||"Please try again"})}else o().fire({icon:"error",title:"Email is required",showConfirmButton:!0});else o().fire({icon:"error",title:"License Key is required",showConfirmButton:!0})}},(0,r.createElement)("div",{className:"flex items-center gap-6"},(0,r.createElement)("div",{className:"w-[80%]"},(0,r.createElement)("h6",{className:"mb-2 text-slate-800 text-lg font-semibold dark:text-white"},(0,s.__)("Activate your Premium Plugin","ultimate-spin-wheel")),(0,r.createElement)("p",{className:"mb-4 text-sm text-gray-500 dark:text-gray-400"},(0,s.__)("Without a valid license key, you won't be able to access the premium features.","sky - elementor - addons")))),(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("label",{className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"License Key"),(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none text-gray-500 dark:text-gray-400"},(0,r.createElement)("svg",{fill:"currentColor",className:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,r.createElement)("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"}))),(0,r.createElement)("input",{value:n||"",type:t?"text":"password",onChange:e=>{f(e.target.value),m(e.target.value)},name:"uspw_pro_license_key",className:"blur-xs block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"}),(0,r.createElement)("div",{className:"text-white absolute end-2.5 bottom-2.5 bg-indigo-700 hover:bg-indigo-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-2.5 py-2 dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-blue-800 cursor-pointer leading-none",onClick:()=>{a(!t)}},(0,r.createElement)(c.g,{icon:t?i.pS3:i.k6j,className:"h-4 w-4"})))),(0,r.createElement)("div",{className:"relative mt-6"},(0,r.createElement)("label",{className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Email"),(0,r.createElement)("input",{value:d||"",type:"email",onChange:e=>u(e.target.value),name:"uspw_pro_license_email",className:"block w-full p-4 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"})),(0,r.createElement)("button",{type:"submit",className:"mt-6 text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-md w-full sm:w-auto px-6 py-3.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800"},(0,s.__)("Activate","ultimate-spin-wheel"))),w&&(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400"},(0,r.createElement)("caption",{className:"pb-5 text-lg font-semibold text-left rtl:text-right text-gray-900 dark:text-white"},(0,s.__)("License Information","ultimate-spin-wheel"),(0,r.createElement)("p",{className:"mt-1 text-sm font-normal text-gray-500 dark:text-gray-400"},(0,s.__)("This is your current license information.","ultimate-spin-wheel"))),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"border-b border-t dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"License Title"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},x?.license_title)),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"License Key"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},x?.license_key?.substr(0,9)+"XXXXXXXX-XXXXXXXX"+x?.license_key?.substr(-9))),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Is Valid"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},x?.is_valid?(0,r.createElement)("span",{className:"text-white bg-green-600 px-2 py-1 rounded"},"Valid"):(0,r.createElement)("span",{className:"text-red-600 dark:text-red-400"},"Invalid"))),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Expire Date"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},x?.expire_date)),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Status"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},x?.msg)),(0,r.createElement)("tr",{className:"border-b dark:border-gray-700 border-gray-200"},(0,r.createElement)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"},"Support End"),(0,r.createElement)("td",{className:"px-6 py-4 text-gray-900 dark:text-white"},x?.support_end)))),(0,r.createElement)("button",{type:"button",className:"mt-6 text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-md w-full sm:w-auto px-6 py-3 text-center dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800",onClick:async()=>{try{o().fire({title:"Loading...",allowOutsideClick:!1,didOpen:()=>{o().showLoading()}});const e=await l.A.post(USPIN_CONFIG_ADMIN?.ajax_url,new URLSearchParams({action:"uspw_deactivate_license",nonce:USPIN_CONFIG_ADMIN.nonce,who:"license_tab"}));o().fire({icon:"success",title:(0,s.__)("Success","ultimate-spin-wheel"),html:e?.data?.message,showConfirmButton:!1,timer:2500,willClose:()=>{window.location.reload()}})}catch(e){o().fire({icon:"error",title:e?.response?.data?.data?.title||"An error occurred",showConfirmButton:!0,html:e?.response?.data?.message||"Please try again"})}}},(0,s.__)("Deactivate","ultimate-spin-wheel")))),(0,r.createElement)("div",null,(0,r.createElement)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2"},(0,s.__)("How to get License Key","ultimate-spin-wheel")),(0,r.createElement)("p",{className:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},"License Key is very important for you. Otherwise, you will not able to use premium features."),(0,r.createElement)("ul",{className:"list-disc pl-5"},(0,r.createElement)("li",{className:"mb-2 text-base font-normal text-gray-500 dark:text-gray-400"},(0,r.createElement)("strong",null,"Step 1:")," Go to your account on ",(0,r.createElement)("a",{href:"https://account.wowdevs.com/",target:"_blank",className:"text-blue-500"},"https://account.wowdevs.com/")),(0,r.createElement)("li",{className:"mb-2 text-base font-normal text-gray-500 dark:text-gray-400"},(0,r.createElement)("strong",null,"Step 2:")," You if you don't have an account, create an account with the same email you used to purchase the plugin."),(0,r.createElement)("li",{className:"mb-2 text-base font-normal text-gray-500 dark:text-gray-400"},(0,r.createElement)("strong",null,"Step 3:")," If you are facing any issue, please contact us on ",(0,r.createElement)("a",{href:"https://wowdevs.com/support",target:"_blank",className:"text-blue-500"},"https://wowdevs.com/support")))))))}}}]); -
ultimate-spin-wheel/trunk/build/admin/index-rtl.css
r3344591 r3417307 663 663 margin-bottom: 1rem; 664 664 } 665 .ultimate-spin-wheel .my-6 { 666 margin-top: 1.5rem; 667 margin-bottom: 1.5rem; 668 } 665 669 .ultimate-spin-wheel .-mt-12 { 666 670 margin-top: -3rem; … … 1154 1158 white-space: nowrap; 1155 1159 } 1160 .ultimate-spin-wheel .break-all { 1161 word-break: break-all; 1162 } 1156 1163 .ultimate-spin-wheel .rounded { 1157 1164 border-radius: 0.25rem; -
ultimate-spin-wheel/trunk/build/admin/index.asset.php
r3344591 r3417307 1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-core-data', 'wp-data', 'wp-i18n'), 'version' => '1 a8fbb67476968caad76');1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-core-data', 'wp-data', 'wp-i18n'), 'version' => '16b7077ac0ac0c5c17fd'); -
ultimate-spin-wheel/trunk/build/admin/index.css
r3344591 r3417307 663 663 margin-bottom: 1rem; 664 664 } 665 .ultimate-spin-wheel .my-6 { 666 margin-top: 1.5rem; 667 margin-bottom: 1.5rem; 668 } 665 669 .ultimate-spin-wheel .-mt-12 { 666 670 margin-top: -3rem; … … 1154 1158 white-space: nowrap; 1155 1159 } 1160 .ultimate-spin-wheel .break-all { 1161 word-break: break-all; 1162 } 1156 1163 .ultimate-spin-wheel .rounded { 1157 1164 border-radius: 0.25rem; -
ultimate-spin-wheel/trunk/build/admin/index.js
r3344591 r3417307 1 (()=>{var e,t,n={28:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){do{const t=window.getComputedStyle(e);if("none"!==t.transform||"none"!==t.webkitTransform)return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}},143:e=>{"use strict";e.exports=window.wp.data},188:(e,t,n)=>{"use strict";n.d(t,{$Fj:()=> b,BH7:()=>L,BwJ:()=>h,C97:()=>g,DDU:()=>y,EDt:()=>M,EvL:()=>x,GRI:()=>_,HoF:()=>z,ITF:()=>s,Int:()=>U,PJS:()=>Y,Q9Y:()=>o,QEm:()=>p,URI:()=>B,WKo:()=>R,Wzs:()=>F,X46:()=>u,XkK:()=>T,Yop:()=>W,Ys0:()=>f,_2z:()=>C,_vK:()=>N,a$:()=>A,ckx:()=>i,dmS:()=>k,e68:()=>V,gK3:()=>w,gdJ:()=>l,iHh:()=>D,iW_:()=>O,ijD:()=>I,isQ:()=>q,k6j:()=>c,kNw:()=>m,l6G:()=>a,n2W:()=>G,oMq:()=>j,pS3:()=>E,qIE:()=>v,w97:()=>r,y_8:()=>S,ycA:()=>P,z1G:()=>H,zqi:()=>d});const a={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},r={prefix:"fas",iconName:"table",icon:[512,512,[],"f0ce","M64 256l0-96 160 0 0 96L64 256zm0 64l160 0 0 96L64 416l0-96zm224 96l0-96 160 0 0 96-160 0zM448 256l-160 0 0-96 160 0 0 96zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]},o={prefix:"fas",iconName:"compass",icon:[512,512,[129517],"f14e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},i={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},s={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},l={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"]},c={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},f={prefix:"fas",iconName:"wand-magic-sparkles",icon:[576,512,["magic-wand-sparkles"],"e2ca","M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z"]},u={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},d={prefix:"fas",iconName:"crown",icon:[576,512,[128081],"f521","M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6l277.2 0c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"]},m={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"]},p={prefix:"fas",iconName:"headset",icon:[512,512,[],"f590","M256 48C141.1 48 48 141.1 48 256l0 40c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-40C0 114.6 114.6 0 256 0S512 114.6 512 256l0 144.1c0 48.6-39.4 88-88.1 88L313.6 488c-8.3 14.3-23.8 24-41.6 24l-32 0c-26.5 0-48-21.5-48-48s21.5-48 48-48l32 0c17.8 0 33.3 9.7 41.6 24l110.4 .1c22.1 0 40-17.9 40-40L464 256c0-114.9-93.1-208-208-208zM144 208l16 0c17.7 0 32 14.3 32 32l0 112c0 17.7-14.3 32-32 32l-16 0c-35.3 0-64-28.7-64-64l0-48c0-35.3 28.7-64 64-64zm224 0c35.3 0 64 28.7 64 64l0 48c0 35.3-28.7 64-64 64l-16 0c-17.7 0-32-14.3-32-32l0-112c0-17.7 14.3-32 32-32l16 0z"]},h={prefix:"fas",iconName:"wifi",icon:[640,512,["wifi-3","wifi-strong"],"f1eb","M54.2 202.9C123.2 136.7 216.8 96 320 96s196.8 40.7 265.8 106.9c12.8 12.2 33 11.8 45.2-.9s11.8-33-.9-45.2C549.7 79.5 440.4 32 320 32S90.3 79.5 9.8 156.7C-2.9 169-3.3 189.2 8.9 202s32.5 13.2 45.2 .9zM320 256c56.8 0 108.6 21.1 148.2 56c13.3 11.7 33.5 10.4 45.2-2.8s10.4-33.5-2.8-45.2C459.8 219.2 393 192 320 192s-139.8 27.2-190.5 72c-13.3 11.7-14.5 31.9-2.8 45.2s31.9 14.5 45.2 2.8c39.5-34.9 91.3-56 148.2-56zm64 160a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},g={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M190.5 68.8L225.3 128l-1.3 0-72 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40l-72 0-1.3 0 34.8-59.2C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40zM32 288l0 176c0 26.5 21.5 48 48 48l144 0 0-224L32 288zM288 512l144 0c26.5 0 48-21.5 48-48l0-176-192 0 0 224z"]},b={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},y={prefix:"fas",iconName:"scroll",icon:[576,512,[128220],"f70e","M0 80l0 48c0 17.7 14.3 32 32 32l16 0 48 0 0-80c0-26.5-21.5-48-48-48S0 53.5 0 80zM112 32c10 13.4 16 30 16 48l0 304c0 35.3 28.7 64 64 64s64-28.7 64-64l0-5.3c0-32.4 26.3-58.7 58.7-58.7L480 320l0-192c0-53-43-96-96-96L112 32zM464 480c61.9 0 112-50.1 112-112c0-8.8-7.2-16-16-16l-245.3 0c-14.7 0-26.7 11.9-26.7 26.7l0 5.3c0 53-43 96-96 96l176 0 96 0z"]},v={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},x={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64l32 0c35.3 0 64 28.7 64 64l0 3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74l0 1.4c0 17.7 14.3 32 32 32s32-14.3 32-32l0-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7l0-3.6c0-70.7-57.3-128-128-128l-32 0C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},w={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},k={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},E={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},N={prefix:"fas",iconName:"window-maximize",icon:[512,512,[128470],"f2d0","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},z={prefix:"fas",iconName:"face-frown",icon:[512,512,[9785,"frown"],"f119","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM159.3 388.7c-2.6 8.4-11.6 13.2-20 10.5s-13.2-11.6-10.5-20C145.2 326.1 196.3 288 256 288s110.8 38.1 127.3 91.3c2.6 8.4-2.1 17.4-10.5 20s-17.4-2.1-20-10.5C340.5 349.4 302.1 320 256 320s-84.5 29.4-96.7 68.7zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},C={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},S={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},M={prefix:"fas",iconName:"parachute-box",icon:[512,512,[],"f4cd","M383.5 192c.3-5.3 .5-10.6 .5-16c0-51-15.9-96-40.2-127.6C319.5 16.9 288.2 0 256 0s-63.5 16.9-87.8 48.4C143.9 80 128 125 128 176c0 5.4 .2 10.7 .5 16L240 192l0 128-32 0c-7 0-13.7 1.5-19.7 4.2L68.2 192l28.3 0c-.3-5.3-.5-10.6-.5-16c0-64 22.2-121.2 57.1-159.3C62 49.3 18.6 122.6 4.2 173.6C1.5 183.1 9 192 18.9 192l6 0L165.2 346.3c-3.3 6.5-5.2 13.9-5.2 21.7l0 96c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-96c0-7.8-1.9-15.2-5.2-21.7L487.1 192l6 0c9.9 0 17.4-8.9 14.7-18.4C493.4 122.6 450 49.3 358.9 16.7C393.8 54.8 416 112.1 416 176c0 5.4-.2 10.7-.5 16l28.3 0L323.7 324.2c-6-2.7-12.7-4.2-19.7-4.2l-32 0 0-128 111.5 0z"]},O={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},L={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},A={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},P={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128l0 64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320l0 64c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6l0-64c0-35.3-28.7-64-64-64L64 64zm64 112l0 160c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-160c0-8.8-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-320 0c-17.7 0-32-14.3-32-32l0-192z"]},j={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},I={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},_={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},F={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},T={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},R={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128A64 64 0 1 0 0 128a64 64 0 1 0 128 0zM384 384a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},D={prefix:"fas",iconName:"trophy",icon:[576,512,[127942],"f091","M400 0L176 0c-26.5 0-48.1 21.8-47.1 48.2c.2 5.3 .4 10.6 .7 15.8L24 64C10.7 64 0 74.7 0 88c0 92.6 33.5 157 78.5 200.7c44.3 43.1 98.3 64.8 138.1 75.8c23.4 6.5 39.4 26 39.4 45.6c0 20.9-17 37.9-37.9 37.9L192 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-26.1 0C337 448 320 431 320 410.1c0-19.6 15.9-39.2 39.4-45.6c39.9-11 93.9-32.7 138.2-75.8C542.5 245 576 180.6 576 88c0-13.3-10.7-24-24-24L446.4 64c.3-5.2 .5-10.4 .7-15.8C448.1 21.8 426.5 0 400 0zM48.9 112l84.4 0c9.1 90.1 29.2 150.3 51.9 190.6c-24.9-11-50.8-26.5-73.2-48.3c-32-31.1-58-76-63-142.3zM464.1 254.3c-22.4 21.8-48.3 37.3-73.2 48.3c22.7-40.3 42.8-100.5 51.9-190.6l84.4 0c-5.1 66.3-31.1 111.2-63 142.3z"]},H={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},B={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48L0 464c0 26.5 21.5 48 48 48l96 0 0-80c0-26.5 21.5-48 48-48s48 21.5 48 48l0 80 96 0c26.5 0 48-21.5 48-48l0-416c0-26.5-21.5-48-48-48L48 0zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm112-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM80 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM272 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]},W={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},U={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"]},Y={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},V={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},q={prefix:"fas",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm80 64c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16l-96 0z"]},G={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]}},338:(e,t,n)=>{"use strict";var a=n(795);t.H=a.createRoot,a.hydrateRoot},427:e=>{"use strict";e.exports=window.wp.components},521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={};"undefined"!=typeof document&&(n.body=document.body,n.window=window,n.document=document);const a=(()=>{if("undefined"!=typeof document&&document.body){const e=document.body;return"function"==typeof e.matches?"matches":"function"==typeof e.webkitMatchesSelector?"webkitMatchesSelector":"function"==typeof e.mozMatchesSelector?"mozMatchesSelector":"function"==typeof e.msMatchesSelector?"msMatchesSelector":"function"==typeof e.oMatchesSelector?"oMatchesSelector":null}return null})();t.default=function(e,t){if(!e)return null;if(n.hasOwnProperty(e))return n[e];if("#"===e[0])return document.getElementById(e.slice(1));if(null===a)return null;let r=t;for(;r=r.parentElement;)if(r[a](e))return r||null;return null}},556:(e,t,n)=>{e.exports=n(694)()},582:e=>{"use strict";e.exports=window.wp.coreData},609:e=>{"use strict";e.exports=window.React},682:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderPropSticky=void 0;const r=a(n(870));t.RenderPropSticky=r.default;const o=a(n(801));t.default=o.default},694:(e,t,n)=>{"use strict";var a=n(925);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},723:e=>{"use strict";e.exports=window.wp.i18n},737:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var a=n(609);const r=(0,a.createContext)(),o=({children:e})=>{const[t,n]=(0,a.useState)(0),[o,i]=(0,a.useState)([]),[s,l]=(0,a.useState)(!1),[c,f]=(0,a.useState)(!1);return(0,a.createElement)(r.Provider,{value:{refreshKey:t,triggerRefresh:()=>{s||(l(!0),n(e=>e+1),setTimeout(()=>{l(!1)},2e3))},prepareReports:o,triggerRefPrepareReports:(e,t)=>{i(e,t)},resetQuery:c,triggerResetQuery:()=>{f(!0),setTimeout(()=>{f(!1)},5e3)}}},e)}},744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIntersecting=t.getRect=t.infiniteRect=void 0,t.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0},t.getRect=function(e){return e&&"getBoundingClientRect"in e&&"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():e===window||e===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}},t.isIntersecting=function(e,t,n,a){const r=e.top+n,o=e.bottom+a;return r>=t.top&&r<=t.bottom||o>=t.top&&o<=t.bottom||o>=t.bottom&&r<=t.top}},795:e=>{"use strict";e.exports=window.ReactDOM},801:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0;const o=r(n(609)),i=r(n(870));t.defaultProps=Object.assign(Object.assign({},i.default.defaultProps),{stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}}),t.default=function(e){const n=Object.assign(Object.assign({},t.defaultProps),e),{mode:r,onFixedToggle:s,hideOnBoundaryHit:l,offsetTransforms:c,disabled:f,boundaryElement:u,scrollElement:d,bottomOffset:m,topOffset:p,positionRecheckInterval:h,children:g,isIOSFixEnabled:b,dontUpdateHolderHeightWhenSticky:y,wrapperClassName:v,stickyClassName:x,stickyStyle:w}=n,k=a(n,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return o.default.createElement(i.default,{mode:r,onFixedToggle:s,hideOnBoundaryHit:l,offsetTransforms:c,disabled:f,boundaryElement:u,scrollElement:d,bottomOffset:m,topOffset:p,positionRecheckInterval:h,isIOSFixEnabled:b,dontUpdateHolderHeightWhenSticky:y},({isFixed:e,wrapperStyles:t,wrapperRef:n,holderStyles:a,holderRef:r})=>o.default.createElement("div",Object.assign({},k,{ref:r,style:a}),o.default.createElement("div",Object.assign({},k,{className:`${v} ${e?x:""}`,style:e?Object.assign(Object.assign({},t),w):t,ref:n}),g)))}},870:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(609),o=n(919),i=a(n(521)),s=a(n(28)),l=n(744),c=(e,t)=>{const{bottomOffset:n,hideOnBoundaryHit:a}=t,{top:r,height:o,width:i,boundaryBottom:s}=e;return a||r+o+n<s?{top:`${r}px`,width:`${i}px`,position:"fixed"}:!a&&s>0?{top:s-o-n+"px",width:`${i}px`,position:"fixed"}:{width:`${i}px`,bottom:`${n}px`,position:"absolute"}},f=(e,t)=>{const{bottomOffset:n,hideOnBoundaryHit:a}=t,{bottom:r,height:o,width:i,boundaryTop:s}=e;return a||r-o-n>s?{width:`${i}px`,top:r-o+"px",position:"fixed"}:{width:`${i}px`,top:`${n}px`,position:"absolute"}},u=(e,t,n)=>("top"===e?c:f)(n,t);class d extends r.Component{constructor(){super(...arguments),this.holderEl=null,this.wrapperEl=null,this.el=null,this.scrollEl=null,this.boundaryEl=null,this.disabled=!1,this.checkPositionIntervalId=null,this.lastMinHeight=null,this.state={isFixed:!1,wrapperStyles:void 0,holderStyles:void 0,height:0},this.holderRef=e=>{e!==this.holderEl&&(this.holderEl=e)},this.wrapperRef=e=>{e!==this.wrapperEl&&(this.wrapperEl=e,this.updateScrollEl(),this.updateBoundaryEl())},this.checkPosition=()=>{const{holderEl:e,wrapperEl:t,boundaryEl:n,scrollEl:a,disabled:r}=this;if(!a||!e||!t)return void console.error("Missing required elements:",{scrollEl:a,holderEl:e,wrapperEl:t});const{mode:o,onFixedToggle:i,offsetTransforms:c,isIOSFixEnabled:f,dontUpdateHolderHeightWhenSticky:d}=this.props;if(r)return void(this.state.isFixed&&this.setState({isFixed:!1,wrapperStyles:{}}));if(!e.getBoundingClientRect||!t.getBoundingClientRect)return;const m=e.getBoundingClientRect(),p=t.getBoundingClientRect(),h=n?(0,l.getRect)(n):l.infiniteRect,g=(0,l.getRect)(a),b=this.isFixed(m,p,h,g);let y=null;if(c&&b&&a instanceof HTMLElement){const e=(0,s.default)(a);e&&(y=(0,l.getRect)(e))}const v=this.state.isFixed&&d&&this.lastMinHeight?this.lastMinHeight:p.height;this.lastMinHeight=v;const x=f?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:void 0,w={isFixed:b,height:p.height,holderStyles:{minHeight:`${v}px`},wrapperStyles:b?Object.assign(Object.assign({},x),u(o,this.props,{boundaryTop:"bottom"===o?h.top:0,boundaryBottom:"top"===o?h.bottom:0,top:"top"===o?g.top-(y?y.top:0):0,bottom:"bottom"===o?g.bottom-(y?y.bottom:0):0,width:m.width,height:p.height})):x};b!==this.state.isFixed&&i&&"function"==typeof i&&i(b),((e,t)=>{const n=e.wrapperStyles,a=t.wrapperStyles;if(e.isFixed!==t.isFixed||e.height!==t.height||!n&&a||n&&!a)return!1;if(!a)return!0;for(const e in n)if(n.hasOwnProperty(e)&&n[e]!==a[e])return!1;return!0})(this.state,w)||this.setState(w)}}isFixed(e,t,n,a){const{hideOnBoundaryHit:r,bottomOffset:o,topOffset:i,mode:s}=this.props;if(this.disabled)return!1;if(r&&n&&!(0,l.isIntersecting)(n,a,i,o))return!1;const c=r?t.height+o:0;return"top"===s?e.top+i<a.top&&a.top+c<=n.bottom:e.bottom-i>a.bottom&&a.bottom-c>=n.top}updateScrollEl(){if(!this.wrapperEl)return;this.scrollEl&&((0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);const{scrollElement:e}=this.props;this.scrollEl="string"==typeof e?(0,i.default)(e,this.wrapperEl):e,this.scrollEl?(0,o.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+("string"==typeof e?e:"unknown"))}updateBoundaryEl(){if(!this.wrapperEl)return;const{boundaryElement:e}=this.props;this.boundaryEl=(0,i.default)(e,this.wrapperEl),this.boundaryEl!==window&&this.boundaryEl!==document||(this.boundaryEl=null)}initialize(){const{positionRecheckInterval:e,disabled:t}=this.props;this.disabled=t,(0,o.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),e&&(this.checkPositionIntervalId=setInterval(this.checkPosition,e))}componentDidUpdate({scrollElement:e,boundaryElement:t,disabled:n}){e===this.props.scrollElement&&null!==this.scrollEl||this.updateScrollEl(),t===this.props.boundaryElement&&null!==this.boundaryEl||this.updateBoundaryEl(),n!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())}componentDidMount(){this.initialize(),null===this.wrapperEl&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")}componentWillUnmount(){this.scrollEl&&(0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,o.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,this.checkPositionIntervalId&&clearInterval(this.checkPositionIntervalId)}render(){const{holderRef:e,wrapperRef:t}=this,{isFixed:n,wrapperStyles:a,holderStyles:r}=this.state;return this.props.children({holderRef:e,wrapperRef:t,isFixed:n,wrapperStyles:a,holderStyles:r})}}d.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,offsetTransforms:!0,disabled:!1,onFixedToggle:void 0,boundaryElement:void 0,hideOnBoundaryHit:!0,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},t.default=d},900:e=>{"use strict";e.exports=JSON.parse('{"description":"The iconic font, CSS, and SVG framework","keywords":["font","awesome","fontawesome","icon","svg","bootstrap"],"homepage":"https://fontawesome.com","bugs":{"url":"https://github.com/FortAwesome/Font-Awesome/issues"},"author":"The Font Awesome Team (https://github.com/orgs/FortAwesome/people)","repository":{"type":"git","url":"https://github.com/FortAwesome/Font-Awesome"},"engines":{"node":">=6"},"dependencies":{"@fortawesome/fontawesome-common-types":"6.7.2"},"version":"6.7.2","name":"@fortawesome/fontawesome-svg-core","main":"index.js","module":"index.mjs","jsnext:main":"index.mjs","style":"styles.css","license":"MIT","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","module":"./index.mjs","import":"./index.mjs","require":"./index.js","style":"./styles.css","default":"./index.js"},"./index":{"types":"./index.d.ts","module":"./index.mjs","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js":{"types":"./index.d.ts","module":"./index.mjs","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./plugins":{"types":"./index.d.ts","module":"./plugins.mjs","import":"./plugins.mjs","default":"./plugins.mjs"},"./import.macro":"./import.macro.js","./import.macro.js":"./import.macro.js","./styles":"./styles.css","./styles.css":"./styles.css","./package.json":"./package.json"},"sideEffects":["./index.js","./index.mjs","./styles.css"]}')},919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unlisten=t.listen=void 0;const n=[],a=[];function r(e,t,r){let o=n.indexOf(e);-1===o&&(o=n.length,n.push(e),a.push(function(e){return{el:e,callbacks:{},realCallbacks:{},realListenersCnt:0}}(e))),function(e,t,n){e.callbacks[t]?-1===e.callbacks[t].indexOf(n)&&e.callbacks[t].push(n):(e.callbacks[t]=[n],e.realCallbacks[t]=n=>{for(let a=0,r=e.callbacks[t].length;a<r;a+=1)e.callbacks[t][a](n)},e.el.addEventListener(t,e.realCallbacks[t]),e.realListenersCnt+=1)}(a[o],t,r)}function o(e,t,r){const o=n.indexOf(e);if(-1===o)return;const i=a[o];!function(e,t,n){if(!e.callbacks[t])return;const a=e.callbacks[t].indexOf(n);-1!==a&&(e.callbacks[t].splice(a,1),e.callbacks[t].length>0||(e.el.removeEventListener(t,e.realCallbacks[t]),delete e.callbacks[t],delete e.realCallbacks[t],e.realListenersCnt-=1))}(i,t,r),i.realListenersCnt>0||(n.splice(o,1),a.splice(o,1))}t.listen=function(e,t,n){for(let a=0,o=t.length;a<o;a+=1)r(e,t[a],n)},t.unlisten=function(e,t,n){for(let a=0,r=t.length;a<r;a+=1)o(e,t[a],n)}},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},982:(e,t,n)=>{"use strict";function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{g:()=>In});const i=()=>{};let s={},l={},c=null,f={mark:i,measure:i};try{"undefined"!=typeof window&&(s=window),"undefined"!=typeof document&&(l=document),"undefined"!=typeof MutationObserver&&(c=MutationObserver),"undefined"!=typeof performance&&(f=performance)}catch(e){}const{userAgent:u=""}=s.navigator||{},d=s,m=l,p=c,h=f,g=(d.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),b=~u.indexOf("MSIE")||~u.indexOf("Trident/");var y={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},v=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],x="classic",w="duotone",k=[x,w,"sharp","sharp-duotone"],E=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),N=["fak","fa-kit","fakd","fa-kit-duotone"],z=["fak","fakd"],C={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},S=["fak","fa-kit","fakd","fa-kit-duotone"],M={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},O=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],L=[1,2,3,4,5,6,7,8,9,10],A=L.concat([11,12,13,14,15,16,17,18,19,20]),P=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",C.GROUP,C.SWAP_OPACITY,C.PRIMARY,C.SECONDARY].concat(L.map(e=>"".concat(e,"x"))).concat(A.map(e=>"w-".concat(e)));const j="___FONT_AWESOME___",I=16,_="svg-inline--fa",F="data-fa-i2svg",T="data-fa-pseudo-element",R="data-prefix",D="data-icon",H="fontawesome-i2svg",B=["HTML","HEAD","STYLE","SCRIPT"],W=(()=>{try{return!0}catch(e){return!1}})();function U(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[x]})}const Y=o({},y);Y[x]=o(o(o(o({},{"fa-duotone":"duotone"}),y[x]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const V=U(Y),q=o({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});q[x]=o(o(o(o({},{duotone:"fad"}),q[x]),{kit:"fak"}),{"kit-duotone":"fakd"});const G=U(q),$=o({},M);$[x]=o(o({},$[x]),{fak:"fa-kit"});const X=U($),K=o({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});K[x]=o(o({},K[x]),{"fa-kit":"fak"}),U(K);const Q=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,J="fa-layers-text",Z=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,ee=(U(o({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),te="duotone-group",ne="primary",ae="secondary",re=["kit",...P],oe=d.FontAwesomeConfig||{};m&&"function"==typeof m.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(e=>{let[t,n]=e;const a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=a&&(oe[n]=a)});const ie={styleDefault:"solid",familyDefault:x,cssPrefix:"fa",replacementClass:_,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};oe.familyPrefix&&(oe.cssPrefix=oe.familyPrefix);const se=o(o({},ie),oe);se.autoReplaceSvg||(se.observeMutations=!1);const le={};Object.keys(ie).forEach(e=>{Object.defineProperty(le,e,{enumerable:!0,set:function(t){se[e]=t,ce.forEach(e=>e(le))},get:function(){return se[e]}})}),Object.defineProperty(le,"familyPrefix",{enumerable:!0,set:function(e){se.cssPrefix=e,ce.forEach(e=>e(le))},get:function(){return se.cssPrefix}}),d.FontAwesomeConfig=le;const ce=[],fe=I,ue={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function de(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function me(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function pe(e){return e.classList?me(e.classList):(e.getAttribute("class")||"").split(" ").filter(e=>e)}function he(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ge(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function be(e){return e.size!==ue.size||e.x!==ue.x||e.y!==ue.y||e.rotate!==ue.rotate||e.flipX||e.flipY}function ye(){const e="fa",t=_,n=le.cssPrefix,a=le.replacementClass;let r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';if(n!==e||a!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(s,".".concat(a))}return r}let ve=!1;function xe(){le.autoAddCss&&!ve&&(function(e){if(!e||!g)return;const t=m.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=m.head.childNodes;let a=null;for(let e=n.length-1;e>-1;e--){const t=n[e],r=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(a=t)}m.head.insertBefore(t,a)}(ye()),ve=!0)}var we={mixout:()=>({dom:{css:ye,insertCss:xe}}),hooks:()=>({beforeDOMElementCreation(){xe()},beforeI2svg(){xe()}})};const ke=d||{};ke[j]||(ke[j]={}),ke[j].styles||(ke[j].styles={}),ke[j].hooks||(ke[j].hooks={}),ke[j].shims||(ke[j].shims=[]);var Ee=ke[j];const Ne=[],ze=function(){m.removeEventListener("DOMContentLoaded",ze),Ce=1,Ne.map(e=>e())};let Ce=!1;function Se(e){const{tag:t,attributes:n={},children:a=[]}=e;return"string"==typeof e?he(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(he(e[n]),'" '),"").trim()}(n),">").concat(a.map(Se).join(""),"</").concat(t,">")}function Me(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}g&&(Ce=(m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState),Ce||m.addEventListener("DOMContentLoaded",ze));var Oe=function(e,t,n,a){var r,o,i,s=Object.keys(e),l=s.length,c=void 0!==a?function(e,t){return function(n,a,r,o){return e.call(t,n,a,r,o)}}(t,a):t;for(void 0===n?(r=1,i=e[s[0]]):(r=0,i=n);r<l;r++)i=c(i,e[o=s[r]],o,e);return i};function Le(e){const t=function(e){const t=[];let n=0;const a=e.length;for(;n<a;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<a){const a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),n--)}else t.push(r)}return t}(e);return 1===t.length?t[0].toString(16):null}function Ae(e){return Object.keys(e).reduce((t,n)=>{const a=e[n];return a.icon?t[a.iconName]=a.icon:t[n]=a,t},{})}function Pe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:a=!1}=n,r=Ae(t);"function"!=typeof Ee.hooks.addPack||a?Ee.styles[e]=o(o({},Ee.styles[e]||{}),r):Ee.hooks.addPack(e,Ae(t)),"fas"===e&&Pe("fa",t)}const{styles:je,shims:Ie}=Ee,_e=Object.keys(X),Fe=_e.reduce((e,t)=>(e[t]=Object.keys(X[t]),e),{});let Te=null,Re={},De={},He={},Be={},We={};const Ue=()=>{const e=e=>Oe(je,(t,n,a)=>(t[a]=Oe(n,e,{}),t),{});Re=e((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(e=>"number"==typeof e).forEach(t=>{e[t.toString(16)]=n}),e)),De=e((e,t,n)=>(e[n]=n,t[2]&&t[2].filter(e=>"string"==typeof e).forEach(t=>{e[t]=n}),e)),We=e((e,t,n)=>{const a=t[2];return e[n]=n,a.forEach(t=>{e[t]=n}),e});const t="far"in je||le.autoFetchSvg,n=Oe(Ie,(e,n)=>{const a=n[0];let r=n[1];const o=n[2];return"far"!==r||t||(r="fas"),"string"==typeof a&&(e.names[a]={prefix:r,iconName:o}),"number"==typeof a&&(e.unicodes[a.toString(16)]={prefix:r,iconName:o}),e},{names:{},unicodes:{}});He=n.names,Be=n.unicodes,Te=Xe(le.styleDefault,{family:le.familyDefault})};var Ye;function Ve(e,t){return(Re[e]||{})[t]}function qe(e,t){return(We[e]||{})[t]}function Ge(e){return He[e]||{prefix:null,iconName:null}}function $e(){return Te}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=x}=t,a=V[n][e];if(n===w&&!e)return"fad";const r=G[n][e]||G[n][a],o=e in Ee.styles?e:null;return r||o||null}function Ke(e){return e.sort().filter((e,t,n)=>n.indexOf(e)===t)}function Qe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let a=null;const r=O.concat(S),i=Ke(e.filter(e=>r.includes(e))),s=Ke(e.filter(e=>!O.includes(e))),l=i.filter(e=>(a=e,!v.includes(e))),[c=null]=l,f=function(e){let t=x;const n=_e.reduce((e,t)=>(e[t]="".concat(le.cssPrefix,"-").concat(t),e),{});return k.forEach(a=>{(e.includes(n[a])||e.some(e=>Fe[a].includes(e)))&&(t=a)}),t}(i),u=o(o({},function(e){let t=[],n=null;return e.forEach(e=>{const a=function(e,t){const n=t.split("-"),a=n[0],r=n.slice(1).join("-");return a!==e||""===r||(o=r,~re.indexOf(o))?null:r;var o}(le.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(s)),{},{prefix:Xe(c,{family:f})});return o(o(o({},u),function(e){const{values:t,family:n,canonical:a,givenPrefix:r="",styles:o={},config:i={}}=e,s=n===w,l=t.includes("fa-duotone")||t.includes("fad"),c="duotone"===i.familyDefault,f="fad"===a.prefix||"fa-duotone"===a.prefix;if(!s&&(l||c||f)&&(a.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab"),!a.prefix&&Je.includes(n)&&(Object.keys(o).find(e=>Ze.includes(e))||i.autoFetchSvg)){const e=E.get(n).defaultShortPrefixId;a.prefix=e,a.iconName=qe(a.prefix,a.iconName)||a.iconName}return"fa"!==a.prefix&&"fa"!==r||(a.prefix=$e()||"fas"),a}({values:e,family:f,styles:je,config:le,canonical:u,givenPrefix:a})),function(e,t,n){let{prefix:a,iconName:r}=n;if(e||!a||!r)return{prefix:a,iconName:r};const o="fa"===t?Ge(r):{},i=qe(a,r);return r=o.iconName||i||r,a=o.prefix||a,"far"!==a||je.far||!je.fas||le.autoFetchSvg||(a="fas"),{prefix:a,iconName:r}}(n,a,u))}Ye=e=>{Te=Xe(e.styleDefault,{family:le.familyDefault})},ce.push(Ye),Ue();const Je=k.filter(e=>e!==x||e!==w),Ze=Object.keys(M).filter(e=>e!==x).map(e=>Object.keys(M[e])).flat();let et=[],tt={};const nt={},at=Object.keys(nt);function rt(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];return(tt[e]||[]).forEach(e=>{t=e.apply(null,[t,...a])}),t}function ot(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(tt[e]||[]).forEach(e=>{e.apply(null,n)})}function it(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return nt[e]?nt[e].apply(null,t):void 0}function st(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||$e();if(t)return t=qe(n,t)||t,Me(lt.definitions,n,t)||Me(Ee.styles,n,t)}const lt=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t.reduce(this._pullDefinitions,{});Object.keys(a).forEach(e=>{this.definitions[e]=o(o({},this.definitions[e]||{}),a[e]),Pe(e,a[e]);const t=X[x][e];t&&Pe(t,a[e]),Ue()})}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(t=>{const{prefix:a,iconName:r,icon:o}=n[t],i=o[2];e[a]||(e[a]={}),i.length>0&&i.forEach(t=>{"string"==typeof t&&(e[a][t]=o)}),e[a][r]=o}),e}},ct={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g?(ot("beforeI2svg",e),it("pseudoElements2svg",e),it("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===le.autoReplaceSvg&&(le.autoReplaceSvg=!0),le.observeMutations=!0,n=()=>{dt({autoReplaceSvgRoot:t}),ot("watch",e)},g&&(Ce?setTimeout(n,0):Ne.push(n))}},ft={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:qe(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Xe(e[0]);return{prefix:n,iconName:qe(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(le.cssPrefix,"-"))>-1||e.match(Q))){const t=Qe(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||$e(),iconName:qe(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=$e();return{prefix:t,iconName:qe(t,e)||e}}}},ut={noAuto:()=>{le.autoReplaceSvg=!1,le.observeMutations=!1,ot("noAuto")},config:le,dom:ct,parse:ft,library:lt,findIconDefinition:st,toHtml:Se},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=m}=e;(Object.keys(Ee.styles).length>0||le.autoFetchSvg)&&g&&le.autoReplaceSvg&&ut.dom.i2svg({node:t})};function mt(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(e=>Se(e))}}),Object.defineProperty(e,"node",{get:function(){if(!g)return;const t=m.createElement("div");return t.innerHTML=e.html,t.children}}),e}function pt(e){const{icons:{main:t,mask:n},prefix:a,iconName:r,transform:i,symbol:s,title:l,maskId:c,titleId:f,extra:u,watchable:d=!1}=e,{width:m,height:p}=n.found?n:t,h=z.includes(a),g=[le.replacementClass,r?"".concat(le.cssPrefix,"-").concat(r):""].filter(e=>-1===u.classes.indexOf(e)).filter(e=>""!==e||!!e).concat(u.classes).join(" ");let b={children:[],attributes:o(o({},u.attributes),{},{"data-prefix":a,"data-icon":r,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(p)})};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(m/p*16*.0625,"em")}:{};d&&(b.attributes[F]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(f||de())},children:[l]}),delete b.attributes.title);const v=o(o({},b),{},{prefix:a,iconName:r,main:t,mask:n,maskId:c,transform:i,symbol:s,styles:o(o({},y),u.styles)}),{children:x,attributes:w}=n.found&&t.found?it("generateAbstractMask",v)||{children:[],attributes:{}}:it("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=x,v.attributes=w,s?function(e){let{prefix:t,iconName:n,children:a,attributes:r,symbol:i}=e;const s=!0===i?"".concat(t,"-").concat(le.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:o(o({},r),{},{id:s}),children:a}]}]}(v):function(e){let{children:t,main:n,mask:a,attributes:r,styles:i,transform:s}=e;if(be(s)&&n.found&&!a.found){const{width:e,height:t}=n,a={x:e/t/2,y:.5};r.style=ge(o(o({},i),{},{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(v)}function ht(e){const{content:t,width:n,height:a,transform:r,title:i,extra:s,watchable:l=!1}=e,c=o(o(o({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});l&&(c[F]="");const f=o({},s.styles);be(r)&&(f.transform=function(e){let{transform:t,width:n=I,height:a=I,startCentered:r=!1}=e,o="";return o+=r&&b?"translate(".concat(t.x/fe-n/2,"em, ").concat(t.y/fe-a/2,"em) "):r?"translate(calc(-50% + ".concat(t.x/fe,"em), calc(-50% + ").concat(t.y/fe,"em)) "):"translate(".concat(t.x/fe,"em, ").concat(t.y/fe,"em) "),o+="scale(".concat(t.size/fe*(t.flipX?-1:1),", ").concat(t.size/fe*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:r,startCentered:!0,width:n,height:a}),f["-webkit-transform"]=f.transform);const u=ge(f);u.length>0&&(c.style=u);const d=[];return d.push({tag:"span",attributes:c,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:gt}=Ee;function bt(e){const t=e[0],n=e[1],[a]=e.slice(4);let r=null;return r=Array.isArray(a)?{tag:"g",attributes:{class:"".concat(le.cssPrefix,"-").concat(te)},children:[{tag:"path",attributes:{class:"".concat(le.cssPrefix,"-").concat(ae),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(le.cssPrefix,"-").concat(ne),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:r}}const yt={found:!1,width:512,height:512};function vt(e,t){let n=t;return"fa"===t&&null!==le.styleDefault&&(t=$e()),new Promise((a,r)=>{if("fa"===n){const n=Ge(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&>[t]&>[t][e])return a(bt(gt[t][e]));!function(e,t){W||le.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(o(o({},yt),{},{icon:le.showMissingIcons&&e&&it("missingIconAbstract")||{}}))})}const xt=()=>{},wt=le.measurePerformance&&h&&h.mark&&h.measure?h:{mark:xt,measure:xt},kt='FA "6.7.2"';var Et=e=>(wt.mark("".concat(kt," ").concat(e," begins")),()=>(e=>{wt.mark("".concat(kt," ").concat(e," ends")),wt.measure("".concat(kt," ").concat(e),"".concat(kt," ").concat(e," begins"),"".concat(kt," ").concat(e," ends"))})(e));const Nt=()=>{};function zt(e){return"string"==typeof(e.getAttribute?e.getAttribute(F):null)}function Ct(e){return m.createElementNS("http://www.w3.org/2000/svg",e)}function St(e){return m.createElement(e)}function Mt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Ct:St)}=t;if("string"==typeof e)return m.createTextNode(e);const a=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){a.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){a.appendChild(Mt(e,{ceFn:n}))}),a}const Ot={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(e=>{t.parentNode.insertBefore(Mt(e),t)}),null===t.getAttribute(F)&&le.keepOriginalSource){let e=m.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~pe(t).indexOf(le.replacementClass))return Ot.replace(e);const a=new RegExp("".concat(le.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce((e,t)=>(t===le.replacementClass||t.match(a)?e.toSvg.push(t):e.toNode.push(t),e),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const r=n.map(e=>Se(e)).join("\n");t.setAttribute(F,""),t.innerHTML=r}};function Lt(e){e()}function At(e,t){const n="function"==typeof t?t:Nt;if(0===e.length)n();else{let t=Lt;"async"===le.mutateApproach&&(t=d.requestAnimationFrame||Lt),t(()=>{const t=!0===le.autoReplaceSvg?Ot.replace:Ot[le.autoReplaceSvg]||Ot.replace,a=Et("mutate");e.map(t),a(),n()})}}let Pt=!1;function jt(){Pt=!0}function It(){Pt=!1}let _t=null;function Ft(e){if(!p)return;if(!le.observeMutations)return;const{treeCallback:t=Nt,nodeCallback:n=Nt,pseudoElementsCallback:a=Nt,observeMutationsRoot:r=m}=e;_t=new p(e=>{if(Pt)return;const r=$e();me(e).forEach(e=>{if("childList"===e.type&&e.addedNodes.length>0&&!zt(e.addedNodes[0])&&(le.searchPseudoElements&&a(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&le.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&zt(e.target)&&~ee.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(R):null,n=e.getAttribute?e.getAttribute(D):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Qe(pe(e.target));e.target.setAttribute(R,t||r),n&&e.target.setAttribute(D,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(le.replacementClass)&&n(e.target);var o})}),g&&_t.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:a,rest:r}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),a=void 0!==e.innerText?e.innerText.trim():"";let r=Qe(pe(e));return r.prefix||(r.prefix=$e()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&a.length>0&&(r.iconName=(o=r.prefix,i=e.innerText,(De[o]||{})[i]||Ve(r.prefix,Le(e.innerText)))),!r.iconName&&le.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r;var o,i}(e),i=function(e){const t=me(e.attributes).reduce((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e),{}),n=e.getAttribute("title"),a=e.getAttribute("data-fa-title-id");return le.autoA11y&&(n?t["aria-labelledby"]="".concat(le.replacementClass,"-title-").concat(a||de()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=rt("parseNodeAttributes",{},e);let l=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((e,t)=>{const n=t.split(":"),a=n[0],r=n.slice(1);return a&&r.length>0&&(e[a]=r.join(":").trim()),e},{})),n}(e):[];return o({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:ue,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:i}},s)}const{styles:Rt}=Ee;function Dt(e){const t="nest"===le.autoReplaceSvg?Tt(e,{styleParser:!1}):Tt(e);return~t.extra.classes.indexOf(J)?it("generateLayersText",e,t):it("generateSvgReplacementMutation",e,t)}function Ht(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!g)return Promise.resolve();const n=m.documentElement.classList,a=e=>n.add("".concat(H,"-").concat(e)),r=e=>n.remove("".concat(H,"-").concat(e)),o=le.autoFetchSvg?[...N,...O]:v.concat(Object.keys(Rt));o.includes("fa")||o.push("fa");const i=[".".concat(J,":not([").concat(F,"])")].concat(o.map(e=>".".concat(e,":not([").concat(F,"])"))).join(", ");if(0===i.length)return Promise.resolve();let s=[];try{s=me(e.querySelectorAll(i))}catch(e){}if(!(s.length>0))return Promise.resolve();a("pending"),r("complete");const l=Et("onTree"),c=s.reduce((e,t)=>{try{const n=Dt(t);n&&e.push(n)}catch(e){W||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise((e,n)=>{Promise.all(c).then(n=>{At(n,()=>{a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),l(),e()})}).catch(e=>{l(),n(e)})})}function Bt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Dt(e).then(e=>{e&&At([e],t)})}const Wt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ue,symbol:a=!1,mask:r=null,maskId:i=null,title:s=null,titleId:l=null,classes:c=[],attributes:f={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:m,icon:p}=e;return mt(o({type:"icon"},e),()=>(ot("beforeDOMElementCreation",{iconDefinition:e,params:t}),le.autoA11y&&(s?f["aria-labelledby"]="".concat(le.replacementClass,"-title-").concat(l||de()):(f["aria-hidden"]="true",f.focusable="false")),pt({icons:{main:bt(p),mask:r?bt(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:m,transform:o(o({},ue),n),symbol:a,title:s,maskId:i,titleId:l,extra:{attributes:f,styles:u,classes:c}})))};var Ut={mixout(){return{icon:(e=Wt,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=(t||{}).icon?t:st(t||{});let{mask:r}=n;return r&&(r=(r||{}).icon?r:st(r||{})),e(a,o(o({},n),{},{mask:r}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Ht,e.nodeCallback=Bt,e)}),provides(e){e.i2svg=function(e){const{node:t=m,callback:n=()=>{}}=e;return Ht(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:a,titleId:r,prefix:o,transform:i,symbol:s,mask:l,maskId:c,extra:f}=t;return new Promise((t,u)=>{Promise.all([vt(n,o),l.iconName?vt(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(l=>{let[u,d]=l;t([e,pt({icons:{main:u,mask:d},prefix:o,iconName:n,transform:i,symbol:s,maskId:c,title:a,titleId:r,extra:f,watchable:!0})])}).catch(u)})},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:a,transform:r,styles:o}=e;const i=ge(o);let s;return i.length>0&&(n.style=i),be(r)&&(s=it("generateAbstractTransformGrouping",{main:a,transform:r,containerWidth:a.width,iconWidth:a.width})),t.push(s||a.icon),{children:t,attributes:n}}}},Yt={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return mt({type:"layer"},()=>{ot("beforeDOMElementCreation",{assembler:e,params:t});let a=[];return e(e=>{Array.isArray(e)?e.map(e=>{a=a.concat(e.abstract)}):a=a.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(le.cssPrefix,"-layers"),...n].join(" ")},children:a}]})}})},Vt={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:a=[],attributes:r={},styles:i={}}=t;return mt({type:"counter",content:e},()=>(ot("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:a}=e,r=o(o(o({},a.attributes),n?{title:n}:{}),{},{class:a.classes.join(" ")}),i=ge(a.styles);i.length>0&&(r.style=i);const s=[];return s.push({tag:"span",attributes:r,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}({content:e.toString(),title:n,extra:{attributes:r,styles:i,classes:["".concat(le.cssPrefix,"-layers-counter"),...a]}})))}})},qt={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ue,title:a=null,classes:r=[],attributes:i={},styles:s={}}=t;return mt({type:"text",content:e},()=>(ot("beforeDOMElementCreation",{content:e,params:t}),ht({content:e,transform:o(o({},ue),n),title:a,extra:{attributes:i,styles:s,classes:["".concat(le.cssPrefix,"-layers-text"),...r]}})))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:a,extra:r}=t;let o=null,i=null;if(b){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,i=n.height/t}return le.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),Promise.resolve([e,ht({content:e.innerHTML,width:o,height:i,transform:a,title:n,extra:r,watchable:!0})])}}};const Gt=new RegExp('"',"ug"),$t=[1105920,1112319],Xt=o(o(o(o({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Kt=Object.keys(Xt).reduce((e,t)=>(e[t.toLowerCase()]=Xt[t],e),{}),Qt=Object.keys(Kt).reduce((e,t)=>{const n=Kt[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function Jt(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((a,r)=>{if(null!==e.getAttribute(n))return a();const i=me(e.children).filter(e=>e.getAttribute(T)===t)[0],s=d.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),c=l.match(Z),f=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(i&&!c)return e.removeChild(i),a();if(c&&"none"!==u&&""!==u){const u=s.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(Kt[n]||{})[r]||Qt[n]}(l,f);const{value:p,isSecondary:h}=function(e){const t=e.replace(Gt,""),n=function(e){const t=e.length;let n,a=e.charCodeAt(0);return a>=55296&&a<=56319&&t>1&&(n=e.charCodeAt(1),n>=56320&&n<=57343)?1024*(a-55296)+n-56320+65536:a}(t),a=n>=$t[0]&&n<=$t[1],r=2===t.length&&t[0]===t[1];return{value:Le(r?t[0]:t),isSecondary:a||r}}(u),g=c[0].startsWith("FontAwesome");let b=Ve(d,p),y=b;if(g){const e=function(e){const t=Be[e],n=Ve("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(p);e.iconName&&e.prefix&&(b=e.iconName,d=e.prefix)}if(!b||h||i&&i.getAttribute(R)===d&&i.getAttribute(D)===y)a();else{e.setAttribute(n,y),i&&e.removeChild(i);const s={iconName:null,title:null,titleId:null,prefix:null,transform:ue,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:l}=s;l.attributes[T]=t,vt(b,d).then(r=>{const i=pt(o(o({},s),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:y,extra:l,watchable:!0})),c=m.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(c,e.firstChild):e.appendChild(c),c.outerHTML=i.map(e=>Se(e)).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function Zt(e){return Promise.all([Jt(e,"::before"),Jt(e,"::after")])}function en(e){return!(e.parentNode===document.head||~B.indexOf(e.tagName.toUpperCase())||e.getAttribute(T)||e.parentNode&&"svg"===e.parentNode.tagName)}function tn(e){if(g)return new Promise((t,n)=>{const a=me(e.querySelectorAll("*")).filter(en).map(Zt),r=Et("searchPseudoElements");jt(),Promise.all(a).then(()=>{r(),It(),t()}).catch(()=>{r(),It(),n()})})}var nn={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=tn,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=m}=e;le.searchPseudoElements&&tn(t)}}};let an=!1;var rn={mixout:()=>({dom:{unwatch(){jt(),an=!0}}}),hooks:()=>({bootstrap(){Ft(rt("mutationObserverCallbacks",{}))},noAuto(){_t&&_t.disconnect()},watch(e){const{observeMutationsRoot:t}=e;an?It():Ft(rt("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const on=e=>e.toLowerCase().split(" ").reduce((e,t)=>{const n=t.toLowerCase().split("-"),a=n[0];let r=n.slice(1).join("-");if(a&&"h"===r)return e.flipX=!0,e;if(a&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(a){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var sn={mixout:()=>({parse:{transform:e=>on(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=on(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:a,iconWidth:r}=e;const i={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),l="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)"),f={outer:i,inner:{transform:"".concat(s," ").concat(l," ").concat(c)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:o({},f.outer),children:[{tag:"g",attributes:o({},f.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:o(o({},t.icon.attributes),f.path)}]}]}}}};const ln={x:0,y:0,width:"100%",height:"100%"};function cn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var fn={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),a=n?Qe(n.split(" ").map(e=>e.trim())):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=$e()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:a,mask:r,maskId:i,transform:s}=e;const{width:l,icon:c}=a,{width:f,icon:u}=r,d=function(e){let{transform:t,containerWidth:n,iconWidth:a}=e;const r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(i," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}}}({transform:s,containerWidth:f,iconWidth:l}),m={tag:"rect",attributes:o(o({},ln),{},{fill:"white"})},p=c.children?{children:c.children.map(cn)}:{},h={tag:"g",attributes:o({},d.inner),children:[cn(o({tag:c.tag,attributes:o(o({},c.attributes),d.path)},p))]},g={tag:"g",attributes:o({},d.outer),children:[h]},b="mask-".concat(i||de()),y="clip-".concat(i||de()),v={tag:"mask",attributes:o(o({},ln),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,g]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(w=u,"g"===w.tag?w.children:[w])},v]};var w;return t.push(x,{tag:"rect",attributes:o({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},ln)}),{children:t,attributes:n}}}},un={provides(e){let t=!1;d.matchMedia&&(t=d.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:o(o({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const r=o(o({},a),{},{attributeName:"opacity"}),i={tag:"circle",attributes:o(o({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:o(o({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:o(o({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:o(o({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:o(o({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:o(o({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:o(o({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;et=e,tt={},Object.keys(nt).forEach(e=>{-1===at.indexOf(e)&&delete nt[e]}),et.forEach(e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach(a=>{n[e]||(n[e]={}),n[e][a]=t[e][a]})}),e.hooks){const t=e.hooks();Object.keys(t).forEach(e=>{tt[e]||(tt[e]=[]),tt[e].push(t[e])})}e.provides&&e.provides(nt)})}([we,Ut,Yt,Vt,qt,nn,rn,sn,fn,un,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),a=null!==n&&(""===n||n);return e.symbol=a,e}})}],{mixoutsTo:ut});const dn=ut.parse,mn=ut.icon;var pn,hn=n(556),gn=n.n(hn),bn=n(609),yn=n.n(bn);function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function xn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach(function(t){xn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function En(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return s}}(e,t)||Cn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nn(e){return function(e){if(Array.isArray(e))return vn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zn(e){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Cn(e,t){if(e){if("string"==typeof e)return vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(e,t):void 0}}try{var Sn=n(900);pn=Sn.version}catch(e){pn=process.env.FA_VERSION||"7.0.0-alpha8"}function Mn(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1);var t}var On=["style"],Ln=!1;try{Ln=!0}catch(e){}function An(e){return e&&"object"===zn(e)&&e.prefix&&e.iconName&&e.icon?e:dn.icon?dn.icon(e):null===e?null:e&&"object"===zn(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Pn(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xn({},e,t):{}}var jn={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},In=yn().forwardRef(function(e,t){var n=kn(kn({},jn),e),a=n.icon,r=n.mask,o=n.symbol,i=n.className,s=n.title,l=n.titleId,c=n.maskId,f=An(a),u=Pn("classes",[].concat(Nn(function(e){var t=e.beat,n=e.fade,a=e.beatFade,r=e.bounce,o=e.shake,i=e.flash,s=e.spin,l=e.spinPulse,c=e.spinReverse,f=e.pulse,u=e.fixedWidth,d=e.inverse,m=e.border,p=e.listItem,h=e.flip,g=e.size,b=e.rotation,y=e.pull,v=e.swapOpacity,x=e.rotateBy,w=e.widthAuto,k=function(e){for(var t=En(e.split("-"),2),n=t[0],a=t[1],r=En("7.0.0-alpha1".split("-"),2),o=r[0],i=r[1],s=n.split("."),l=o.split("."),c=0;c<Math.max(s.length,l.length);c++){var f=s[c]||"0",u=l[c]||"0",d=parseInt(f,10),m=parseInt(u,10);if(d!==m)return d>m}for(var p=0;p<Math.max(s.length,l.length);p++){var h=s[p]||"0",g=l[p]||"0";if(h!==g&&h.length!==g.length)return h.length<g.length}return!(a&&!i)}(pn),E=xn(xn(xn(xn(xn(xn({"fa-beat":t,"fa-fade":n,"fa-beat-fade":a,"fa-bounce":r,"fa-shake":o,"fa-flash":i,"fa-spin":s,"fa-spin-reverse":c,"fa-spin-pulse":l,"fa-pulse":f,"fa-fw":u,"fa-inverse":d,"fa-border":m,"fa-li":p,"fa-flip":!0===h,"fa-flip-horizontal":"horizontal"===h||"both"===h,"fa-flip-vertical":"vertical"===h||"both"===h},"fa-".concat(g),null!=g),"fa-rotate-".concat(b),null!=b&&0!==b),"fa-pull-".concat(y),null!=y),"fa-swap-opacity",v),"fa-rotate-by",k&&x),"fa-width-auto",k&&w);return Object.keys(E).map(function(e){return E[e]?e:null}).filter(function(e){return e})}(n)),Nn((i||"").split(" ")))),d=Pn("transform","string"==typeof n.transform?dn.transform(n.transform):n.transform),m=Pn("mask",An(r)),p=mn(f,kn(kn(kn(kn({},u),d),m),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!p)return function(){var e;!Ln&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",f),null;var h=p.abstract,g={ref:t};return Object.keys(n).forEach(function(e){jn.hasOwnProperty(e)||(g[e]=n[e])}),Fn(h[0],g)});In.displayName="FontAwesomeIcon",In.propTypes={beat:gn().bool,border:gn().bool,beatFade:gn().bool,bounce:gn().bool,className:gn().string,fade:gn().bool,flash:gn().bool,mask:gn().oneOfType([gn().object,gn().array,gn().string]),maskId:gn().string,fixedWidth:gn().bool,inverse:gn().bool,flip:gn().oneOf([!0,!1,"horizontal","vertical","both"]),icon:gn().oneOfType([gn().object,gn().array,gn().string]),listItem:gn().bool,pull:gn().oneOf(["right","left"]),pulse:gn().bool,rotation:gn().oneOf([0,90,180,270]),rotateBy:gn().bool,shake:gn().bool,size:gn().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:gn().bool,spinPulse:gn().bool,spinReverse:gn().bool,symbol:gn().oneOfType([gn().bool,gn().string]),title:gn().string,titleId:gn().string,transform:gn().oneOfType([gn().string,gn().object]),swapOpacity:gn().bool,widthAuto:gn().bool};var Fn=function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var r=(n.children||[]).map(function(n){return e(t,n)}),o=Object.keys(n.attributes||{}).reduce(function(e,t){var a=n.attributes[t];switch(t){case"class":e.attrs.className=a,delete n.attributes.class;break;case"style":e.attrs.style=a.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n,a=t.indexOf(":"),r=Mn(t.slice(0,a)),o=t.slice(a+1).trim();return r.startsWith("webkit")?e[(n=r,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[r]=o,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=a:e.attrs[Mn(t)]=a}return e},{attrs:{}}),i=a.style,s=void 0===i?{}:i,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,On);return o.attrs.style=kn(kn({},o.attrs.style),s),t.apply(void 0,[n.tag,kn(kn({},o.attrs),l)].concat(Nn(r)))}.bind(null,yn().createElement)}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return n[e].call(o.exports,o,o.exports,r),o.exports}r.m=n,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.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>e+".js",r.miniCssF=e=>e+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="ultimate_spin_wheel:",r.l=(n,a,o,i)=>{if(e[n])e[n].push(a);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var u=c[f];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+o){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+o),s.src=n),e[n]=[a];var d=(t,a)=>{s.onerror=s.onload=null,clearTimeout(m);var r=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(a)),t)return t(a)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../"})(),(()=>{if("undefined"!=typeof document){var e={773:0};r.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{606:1}[t]&&n.push(e[t]=(e=>new Promise((t,n)=>{var a=r.miniCssF(e),o=r.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),a=0;a<n.length;a++){var r=(i=n[a]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(r===e||r===t))return i}var o=document.getElementsByTagName("style");for(a=0;a<o.length;a++){var i;if((r=(i=o[a]).getAttribute("data-href"))===e||r===t)return i}})(a,o))return t();((e,t,n,a,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc),i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)a();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,document.head.appendChild(i)})(e,o,0,t,n)}))(t).then(()=>{e[t]=0},n=>{throw delete e[t],n}))}}})(),(()=>{var e={773:0};r.f.j=(t,n)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var o=new Promise((n,r)=>a=e[t]=[n,r]);n.push(a[2]=o);var i=r.p+r.u(t),s=new Error;r.l(i,n=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,a[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,o,[i,s,l]=n,c=0;if(i.some(t=>0!==e[t])){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);l&&l(r)}for(t&&t(n);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunkultimate_spin_wheel=globalThis.webpackChunkultimate_spin_wheel||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=r(609),t=r.n(e),n=r(338),a=r(737),o=r(723),i=r(982),s=r(188);function l(){const t=USPIN_CONFIG_ADMIN.plugin_name.replace(/\s+/g,""),[n,a]=(0,e.useState)(()=>"true"===localStorage.getItem(t+"DarkMode"));return(0,e.useEffect)(()=>{document.documentElement.classList.toggle("dark",n),localStorage.setItem(t+"DarkMode",n)},[n]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("nav",{className:"bg-white border-gray-200 rounded-xl px-2 lg:px-4 py-3 lg:py-4 dark:bg-gray-900 shadow-sm"},(0,e.createElement)("div",{className:"flex flex-wrap justify-between items-center gap-3"},(0,e.createElement)("div",{className:"flex justify-start items-center"},(0,e.createElement)("a",{href:USPIN_CONFIG_ADMIN.admin_url+"admin.php?page="+USPIN_CONFIG_ADMIN.plugin_slug,className:"flex items-center outline-none focus:outline-none shadow-none"},(0,e.createElement)("img",{src:USPIN_CONFIG_ADMIN.logo,className:"mr-2 h-10 rounded",alt:USPIN_CONFIG_ADMIN.plugin_name}),(0,e.createElement)("span",{className:"text-xl lg:text-3xl uppercase font-bold bg-gradient-to-r from-indigo-800 via-sky-400 to-purple-600 bg-clip-text text-transparent relative"},(0,e.createElement)("span",{className:"absolute -top-2 right-0 text-xs uppercase font-bold bg-gradient-to-r from-indigo-800 via-sky-400 to-purple-600 bg-clip-text text-transparent tracking-widest"},"ULTIMATE"),USPIN_CONFIG_ADMIN.plugin_name))),(0,e.createElement)("div",{className:"flex items-center lg:order-2 gap-3"},(0,e.createElement)("button",{onClick:()=>a(!n),className:"rounded-lg px-2.5 py-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700 ring-2 ring-gray-300 dark:ring-gray-600"},(0,e.createElement)(i.g,{icon:n?s.oMq:s.PJS,className:"h-4 w-4"})),(0,e.createElement)("button",{type:"button","data-dropdown-toggle":"notification-dropdown",className:"hidden p-2 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-700 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600"},(0,e.createElement)("span",{className:"sr-only"},"View notifications"),(0,e.createElement)("svg",{"aria-hidden":"true",className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"}))),(0,e.createElement)("div",{className:"hidden overflow-hidden z-50 my-4 max-w-sm text-base list-none bg-white rounded divide-y divide-gray-100 shadow-lg dark:divide-gray-600 dark:bg-gray-700",id:"notification-dropdown"},(0,e.createElement)("div",{className:"block py-2 px-4 text-base font-medium text-center text-gray-700 bg-gray-50 dark:bg-gray-700 dark:text-gray-400"}),(0,e.createElement)("div",null),(0,e.createElement)("a",{href:"#",className:"block py-2 text-base font-normal text-center text-gray-900 bg-gray-50 hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:hover:underline"},(0,e.createElement)("div",{className:"inline-flex items-center "},(0,e.createElement)("svg",{"aria-hidden":"true",className:"mr-2 w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),(0,e.createElement)("path",{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"}))))),(0,e.createElement)("button",{type:"button",className:"relative w-10 h-10 bg-sky-100 border-2 border-solid border-indigo-600 flex justify-center items-center rounded-full focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600"},(0,e.createElement)("img",{className:"rounded-full",src:USPIN_CONFIG_ADMIN.current_user.avatar,alt:"avatar"}),(0,e.createElement)("span",{className:"top-0 left-7 absolute w-3.5 h-3.5 bg-green-400 border-2 border-white dark:border-gray-800 rounded-full"}))))))}const c={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},f={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"]},u={prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]},d={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function m(){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"bg-white rounded-lg shadow sm:flex sm:items-center sm:justify-between p-4 sm:p-6 xl:p-8 dark:bg-stone-900"},(0,e.createElement)("p",{className:"mb-4 text-center md:text-left text-sm text-gray-500 dark:text-gray-400 sm:mb-0"},(0,o.__)("Thank You for Using ","ultimate-spin-wheel")," ",(0,e.createElement)("strong",null,"(Core v",USPIN_CONFIG_ADMIN.version,USPIN_CONFIG_ADMIN.pro_version&&(0,e.createElement)("span",null," & Pro ",(0,e.createElement)("strong",null,"v",USPIN_CONFIG_ADMIN.pro_version)),")"),(0,e.createElement)("br",null)," ",(0,o.__)("By - ","ultimate-spin-wheel"),(0,e.createElement)("a",{target:"_blank",href:"https://wowdevs.com",className:"hover:underline dark:text-white"},(0,e.createElement)("strong",null,"wowDevs.com"))," ","© 2025",2025!==(new Date).getFullYear()&&(0,e.createElement)(e.Fragment,null,"- ",(new Date).getFullYear()," ")," ",(0,o.__)("All rights reserved.","ultimate-spin-wheel")),(0,e.createElement)("div",{className:"flex justify-center items-center space-x-1"},(0,e.createElement)("a",{href:"https://www.facebook.com/groups/wowdevs/",target:"_blank","data-tooltip-target":"tooltip-facebook",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:f,className:"w-5 h-5"})),(0,e.createElement)("div",{className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,o.__)("Follow us on Facebook","ultimate-spin-wheel"),(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})),(0,e.createElement)("a",{href:"https://twitter.com/wowdevscom",target:"_blank","data-tooltip-target":"tooltip-twitter",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:d,className:"w-5 h-5"})),(0,e.createElement)("div",{id:"tooltip-twitter",role:"tooltip",className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})),(0,e.createElement)("a",{href:"https://www.linkedin.com/company/wowdevs/",target:"_blank","data-tooltip-target":"tooltip-github",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:c,className:"w-5 h-5"})),(0,e.createElement)("div",{id:"tooltip-github",role:"tooltip",className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})),(0,e.createElement)("a",{href:"https://www.youtube.com/@wowdevs?sub_confirmation=1",target:"_blank","data-tooltip-target":"tooltip-dribbble",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:u,className:"w-5 h-5"})),(0,e.createElement)("div",{id:"tooltip-dribbble",role:"tooltip",className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})))))}class p extends t().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"p-4 text-center bg-red-100 text-red-700 rounded-lg"},(0,e.createElement)("h2",null,(0,o.__)("Something went wrong.","ultimate-spin-wheel")),(0,e.createElement)("p",null,(0,o.__)("Please try refreshing the page.","ultimate-spin-wheel"))):this.props.children}}const h=p;var g=r(682),b=r.n(g);const y=({data:t,activeTab:n,onTabClick:a,isSidebarOpen:r,toggleSidebar:l,isLargeScreen:c})=>{const f=(0,e.createElement)("div",{className:"bg-gradient-to-r from-indigo-800 to-purple-600 dark:from-gray-900 dark:to-gray-900 p-4 shadow-xl rounded-lg"},(0,e.createElement)(()=>(0,e.createElement)("div",{className:"flex items-center justify-between mb-4 pb-4 border-b border-white/20 dark:border-gray-800"},r&&(0,e.createElement)("h3",{className:"text-lg font-bold text-white uppercase"},USPIN_CONFIG_ADMIN.plugin_name),c&&(0,e.createElement)("button",{onClick:l,className:"p-2 rounded-lg hover:bg-purple-700 dark:hover:bg-gray-800 text-white focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 ml-auto leading-none","aria-label":r?(0,o.__)("Hide Menu","ultimate-spin-wheel"):(0,o.__)("Show Menu","ultimate-spin-wheel"),title:r?(0,o.__)("Hide Menu","ultimate-spin-wheel"):(0,o.__)("Show Menu","ultimate-spin-wheel")},(0,e.createElement)(i.g,{icon:r?s.Wzs:s.XkK,className:"h-5 w-5"}))),null),t.map(({label:t,value:o,icon:i})=>(0,e.createElement)("button",{key:o,onClick:()=>a(o),className:"flex py-1.5 mb-1 items-center w-full leading-tight transition-all rounded-lg outline-none text-start justify-start font-sans text-base font-normal select-none cursor-pointer "+(n===o?"tab-active text-gray-900 bg-white dark:bg-gray-800 dark:text-white":"hover:bg-purple-700 text-white")},(0,e.createElement)("div",{className:"flex gap-3 items-center w-full px-2 py-3 leading-tight transition-all rounded-lg outline-none text-start"},(0,e.createElement)("div",{className:"grid place-items-center"},i),r&&t))));return(0,e.createElement)("div",{className:"transition-all duration-300 ease-in-out "+(c||r?c?r?"min-w-56":"w-[70px]":"min-w-56":"hidden")},(0,e.createElement)(b(),null,f))},v=({data:t,activeTab:n,onTabClick:a,isSidebarOpen:r,toggleSidebar:l,isLargeScreen:c})=>(0,e.createElement)("div",{className:"flex flex-col xl:flex-row gap-4 my-4 lg:my-6"},(0,e.createElement)(y,{data:t,activeTab:n,onTabClick:a,isSidebarOpen:r,toggleSidebar:l,isLargeScreen:c}),(0,e.createElement)("div",{className:"flex-1 w-full h-max text-gray-700 antialiased font-sans text-base font-light leading-relaxed py-0 rounded-lg overflow-hidden"},(0,e.createElement)(()=>c?null:(0,e.createElement)("button",{className:"mb-4 bg-gradient-to-r from-purple-600 to-indigo-600 text-white px-4 py-2.5 rounded-lg flex items-center gap-3 shadow-md hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50",onClick:l},(0,e.createElement)("div",{className:"transition-all duration-300 "+(r?"":"rotate-180")},(0,e.createElement)(i.g,{icon:s.ckx,className:"h-5 w-5"})),(0,e.createElement)("span",{className:"font-medium"},r?(0,o.__)("Hide Menu","ultimate-spin-wheel"):(0,o.__)("Show Menu","ultimate-spin-wheel"))),null),t.map(({value:t,desc:a})=>(0,e.createElement)("div",{key:t,className:"py-0 "+(n===t?"block":"hidden")},(0,e.createElement)(h,null,(0,e.createElement)(e.Suspense,{fallback:(0,e.createElement)("div",null,(0,o.__)("Loading...","ultimate-spin-wheel"))},a)))))),x=(t().lazy(()=>r.e(747).then(r.bind(r,747))),t().lazy(()=>Promise.all([r.e(996),r.e(934)]).then(r.bind(r,934)))),w=t().lazy(()=>r.e(365).then(r.bind(r,365))),k=t().lazy(()=>Promise.all([r.e(83),r.e(520)]).then(r.bind(r,520))),E=(t().lazy(()=>Promise.all([r.e(83),r.e(465),r.e(810)]).then(r.bind(r,810))),t().lazy(()=>r.e(304).then(r.bind(r,304))),t().lazy(()=>r.e(970).then(r.bind(r,970)))),N=t().lazy(()=>r.e(775).then(r.bind(r,775))),z=t().lazy(()=>Promise.all([r.e(425),r.e(606)]).then(r.bind(r,606))),C=[{label:(0,o.__)("Dashboard","ultimate-spin-wheel"),value:"dashboard",icon:(0,e.createElement)(i.g,{icon:s.BwJ,className:"h-5 w-5"}),desc:(0,e.createElement)(x,null)},{label:(0,o.__)("Campaigns","ultimate-spin-wheel"),value:"campaigns",icon:(0,e.createElement)(i.g,{icon:s.ITF,className:"h-5 w-5"}),desc:(0,e.createElement)(w,null)},{label:(0,o.__)("Entries","ultimate-spin-wheel"),value:"entries",icon:(0,e.createElement)(i.g,{icon:s.ITF,className:"h-5 w-5"}),desc:(0,e.createElement)(k,null)},{label:(0,o.__)("FAQs","ultimate-spin-wheel"),value:"faqs",icon:(0,e.createElement)(i.g,{icon:s.EvL,className:"h-5 w-5"}),desc:(0,e.createElement)(E,null)},{label:(0,o.__)("Support","ultimate-spin-wheel"),value:"support",icon:(0,e.createElement)(i.g,{icon:s.QEm,className:"h-5 w-5"}),desc:(0,e.createElement)(N,null)}];new URLSearchParams(window.location.search).has("post_id")&&C.splice(2,0,{label:(0,o.__)("Configuration","ultimate-spin-wheel"),value:"config",icon:(0,e.createElement)(i.g,{icon:s.BH7,className:"h-5 w-5"}),desc:(0,e.createElement)(z,null)});const S=()=>{const t=USPIN_CONFIG_ADMIN.plugin_name.replace(/\s+/g,"")+"SpinWheel",[n,a]=(0,e.useState)(()=>{const e=window.location.hash.replace("#","");return e&&C.some(t=>t.value===e)?e:localStorage.getItem(t+"ActiveTab")||"dashboard"}),[r,o]=(0,e.useState)(()=>{const e=localStorage.getItem(t+"SidebarOpen");return null===e||"true"===e}),[i,s]=(0,e.useState)(window.innerWidth>=1280),c=e=>C.some(t=>t.value===e);return(0,e.useEffect)(()=>{const e=()=>{const e=window.location.hash.replace("#","");e&&c(e)&&a(e)};return window.addEventListener("hashchange",e),e(),()=>{window.removeEventListener("hashchange",e)}},[]),(0,e.useEffect)(()=>{const e=()=>{s(window.innerWidth>=1280)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,e.useEffect)(()=>{localStorage.setItem(t+"ActiveTab",n),window.location.hash=n},[n]),(0,e.useEffect)(()=>{localStorage.setItem(t+"SidebarOpen",r)},[r]),(0,e.useEffect)(()=>{const e=()=>{const e=window.location.hash.replace("#","");c(e)&&a(e)};return window.addEventListener("hashchange",e),e(),()=>{window.removeEventListener("hashchange",e)}},[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,null),(0,e.createElement)(v,{data:C,activeTab:n,onTabClick:e=>{a(e)},isSidebarOpen:r,toggleSidebar:()=>{o(!r)},isLargeScreen:i}),(0,e.createElement)(m,null))};if(document.getElementById("ultimate-spin-wheel")){const t=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",{className:"app-title"}),(0,e.createElement)(S,null));(0,n.H)(document.getElementById("ultimate-spin-wheel")).render((0,e.createElement)(a.D,null,(0,e.createElement)(t,null)))}})()})();1 (()=>{var e,t,n={28:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){do{const t=window.getComputedStyle(e);if("none"!==t.transform||"none"!==t.webkitTransform)return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}},143:e=>{"use strict";e.exports=window.wp.data},188:(e,t,n)=>{"use strict";n.d(t,{$Fj:()=>y,BH7:()=>A,BwJ:()=>g,C97:()=>b,DDU:()=>v,EDt:()=>O,EvL:()=>w,GRI:()=>F,HoF:()=>C,ITF:()=>s,Int:()=>Y,PJS:()=>V,Q9Y:()=>o,QEm:()=>h,URI:()=>W,WKo:()=>D,Wzs:()=>T,X46:()=>u,XkK:()=>R,Yop:()=>U,Ys0:()=>f,_2z:()=>S,_vK:()=>z,a$:()=>P,bMg:()=>d,ckx:()=>i,dmS:()=>E,e68:()=>q,gK3:()=>k,gdJ:()=>l,iHh:()=>H,iW_:()=>L,ijD:()=>_,isQ:()=>G,k6j:()=>c,kNw:()=>p,l6G:()=>a,n2W:()=>$,oMq:()=>I,pS3:()=>N,qIE:()=>x,w97:()=>r,y_8:()=>M,ycA:()=>j,z1G:()=>B,zqi:()=>m});const a={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},r={prefix:"fas",iconName:"table",icon:[512,512,[],"f0ce","M64 256l0-96 160 0 0 96L64 256zm0 64l160 0 0 96L64 416l0-96zm224 96l0-96 160 0 0 96-160 0zM448 256l-160 0 0-96 160 0 0 96zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]},o={prefix:"fas",iconName:"compass",icon:[512,512,[129517],"f14e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},i={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},s={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},l={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"]},c={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},f={prefix:"fas",iconName:"wand-magic-sparkles",icon:[576,512,["magic-wand-sparkles"],"e2ca","M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z"]},u={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},d={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]},m={prefix:"fas",iconName:"crown",icon:[576,512,[128081],"f521","M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6l277.2 0c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"]},p={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"]},h={prefix:"fas",iconName:"headset",icon:[512,512,[],"f590","M256 48C141.1 48 48 141.1 48 256l0 40c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-40C0 114.6 114.6 0 256 0S512 114.6 512 256l0 144.1c0 48.6-39.4 88-88.1 88L313.6 488c-8.3 14.3-23.8 24-41.6 24l-32 0c-26.5 0-48-21.5-48-48s21.5-48 48-48l32 0c17.8 0 33.3 9.7 41.6 24l110.4 .1c22.1 0 40-17.9 40-40L464 256c0-114.9-93.1-208-208-208zM144 208l16 0c17.7 0 32 14.3 32 32l0 112c0 17.7-14.3 32-32 32l-16 0c-35.3 0-64-28.7-64-64l0-48c0-35.3 28.7-64 64-64zm224 0c35.3 0 64 28.7 64 64l0 48c0 35.3-28.7 64-64 64l-16 0c-17.7 0-32-14.3-32-32l0-112c0-17.7 14.3-32 32-32l16 0z"]},g={prefix:"fas",iconName:"wifi",icon:[640,512,["wifi-3","wifi-strong"],"f1eb","M54.2 202.9C123.2 136.7 216.8 96 320 96s196.8 40.7 265.8 106.9c12.8 12.2 33 11.8 45.2-.9s11.8-33-.9-45.2C549.7 79.5 440.4 32 320 32S90.3 79.5 9.8 156.7C-2.9 169-3.3 189.2 8.9 202s32.5 13.2 45.2 .9zM320 256c56.8 0 108.6 21.1 148.2 56c13.3 11.7 33.5 10.4 45.2-2.8s10.4-33.5-2.8-45.2C459.8 219.2 393 192 320 192s-139.8 27.2-190.5 72c-13.3 11.7-14.5 31.9-2.8 45.2s31.9 14.5 45.2 2.8c39.5-34.9 91.3-56 148.2-56zm64 160a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},b={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M190.5 68.8L225.3 128l-1.3 0-72 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40l-72 0-1.3 0 34.8-59.2C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40zM32 288l0 176c0 26.5 21.5 48 48 48l144 0 0-224L32 288zM288 512l144 0c26.5 0 48-21.5 48-48l0-176-192 0 0 224z"]},y={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},v={prefix:"fas",iconName:"scroll",icon:[576,512,[128220],"f70e","M0 80l0 48c0 17.7 14.3 32 32 32l16 0 48 0 0-80c0-26.5-21.5-48-48-48S0 53.5 0 80zM112 32c10 13.4 16 30 16 48l0 304c0 35.3 28.7 64 64 64s64-28.7 64-64l0-5.3c0-32.4 26.3-58.7 58.7-58.7L480 320l0-192c0-53-43-96-96-96L112 32zM464 480c61.9 0 112-50.1 112-112c0-8.8-7.2-16-16-16l-245.3 0c-14.7 0-26.7 11.9-26.7 26.7l0 5.3c0 53-43 96-96 96l176 0 96 0z"]},x={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},w={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64l32 0c35.3 0 64 28.7 64 64l0 3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74l0 1.4c0 17.7 14.3 32 32 32s32-14.3 32-32l0-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7l0-3.6c0-70.7-57.3-128-128-128l-32 0C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},k={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},E={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},N={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},z={prefix:"fas",iconName:"window-maximize",icon:[512,512,[128470],"f2d0","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},C={prefix:"fas",iconName:"face-frown",icon:[512,512,[9785,"frown"],"f119","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM159.3 388.7c-2.6 8.4-11.6 13.2-20 10.5s-13.2-11.6-10.5-20C145.2 326.1 196.3 288 256 288s110.8 38.1 127.3 91.3c2.6 8.4-2.1 17.4-10.5 20s-17.4-2.1-20-10.5C340.5 349.4 302.1 320 256 320s-84.5 29.4-96.7 68.7zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},S={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},M={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},O={prefix:"fas",iconName:"parachute-box",icon:[512,512,[],"f4cd","M383.5 192c.3-5.3 .5-10.6 .5-16c0-51-15.9-96-40.2-127.6C319.5 16.9 288.2 0 256 0s-63.5 16.9-87.8 48.4C143.9 80 128 125 128 176c0 5.4 .2 10.7 .5 16L240 192l0 128-32 0c-7 0-13.7 1.5-19.7 4.2L68.2 192l28.3 0c-.3-5.3-.5-10.6-.5-16c0-64 22.2-121.2 57.1-159.3C62 49.3 18.6 122.6 4.2 173.6C1.5 183.1 9 192 18.9 192l6 0L165.2 346.3c-3.3 6.5-5.2 13.9-5.2 21.7l0 96c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-96c0-7.8-1.9-15.2-5.2-21.7L487.1 192l6 0c9.9 0 17.4-8.9 14.7-18.4C493.4 122.6 450 49.3 358.9 16.7C393.8 54.8 416 112.1 416 176c0 5.4-.2 10.7-.5 16l28.3 0L323.7 324.2c-6-2.7-12.7-4.2-19.7-4.2l-32 0 0-128 111.5 0z"]},L={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},A={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},P={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},j={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128l0 64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320l0 64c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6l0-64c0-35.3-28.7-64-64-64L64 64zm64 112l0 160c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-160c0-8.8-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-320 0c-17.7 0-32-14.3-32-32l0-192z"]},I={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},_={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},F={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},T={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},R={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},D={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128A64 64 0 1 0 0 128a64 64 0 1 0 128 0zM384 384a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},H={prefix:"fas",iconName:"trophy",icon:[576,512,[127942],"f091","M400 0L176 0c-26.5 0-48.1 21.8-47.1 48.2c.2 5.3 .4 10.6 .7 15.8L24 64C10.7 64 0 74.7 0 88c0 92.6 33.5 157 78.5 200.7c44.3 43.1 98.3 64.8 138.1 75.8c23.4 6.5 39.4 26 39.4 45.6c0 20.9-17 37.9-37.9 37.9L192 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-26.1 0C337 448 320 431 320 410.1c0-19.6 15.9-39.2 39.4-45.6c39.9-11 93.9-32.7 138.2-75.8C542.5 245 576 180.6 576 88c0-13.3-10.7-24-24-24L446.4 64c.3-5.2 .5-10.4 .7-15.8C448.1 21.8 426.5 0 400 0zM48.9 112l84.4 0c9.1 90.1 29.2 150.3 51.9 190.6c-24.9-11-50.8-26.5-73.2-48.3c-32-31.1-58-76-63-142.3zM464.1 254.3c-22.4 21.8-48.3 37.3-73.2 48.3c22.7-40.3 42.8-100.5 51.9-190.6l84.4 0c-5.1 66.3-31.1 111.2-63 142.3z"]},B={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},W={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48L0 464c0 26.5 21.5 48 48 48l96 0 0-80c0-26.5 21.5-48 48-48s48 21.5 48 48l0 80 96 0c26.5 0 48-21.5 48-48l0-416c0-26.5-21.5-48-48-48L48 0zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm112-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM80 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM272 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]},U={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},Y={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"]},V={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},q={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},G={prefix:"fas",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm80 64c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16l-96 0z"]},$={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]}},338:(e,t,n)=>{"use strict";var a=n(795);t.H=a.createRoot,a.hydrateRoot},427:e=>{"use strict";e.exports=window.wp.components},521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={};"undefined"!=typeof document&&(n.body=document.body,n.window=window,n.document=document);const a=(()=>{if("undefined"!=typeof document&&document.body){const e=document.body;return"function"==typeof e.matches?"matches":"function"==typeof e.webkitMatchesSelector?"webkitMatchesSelector":"function"==typeof e.mozMatchesSelector?"mozMatchesSelector":"function"==typeof e.msMatchesSelector?"msMatchesSelector":"function"==typeof e.oMatchesSelector?"oMatchesSelector":null}return null})();t.default=function(e,t){if(!e)return null;if(n.hasOwnProperty(e))return n[e];if("#"===e[0])return document.getElementById(e.slice(1));if(null===a)return null;let r=t;for(;r=r.parentElement;)if(r[a](e))return r||null;return null}},556:(e,t,n)=>{e.exports=n(694)()},582:e=>{"use strict";e.exports=window.wp.coreData},609:e=>{"use strict";e.exports=window.React},682:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderPropSticky=void 0;const r=a(n(870));t.RenderPropSticky=r.default;const o=a(n(801));t.default=o.default},694:(e,t,n)=>{"use strict";var a=n(925);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},723:e=>{"use strict";e.exports=window.wp.i18n},737:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var a=n(609);const r=(0,a.createContext)(),o=({children:e})=>{const[t,n]=(0,a.useState)(0),[o,i]=(0,a.useState)([]),[s,l]=(0,a.useState)(!1),[c,f]=(0,a.useState)(!1);return(0,a.createElement)(r.Provider,{value:{refreshKey:t,triggerRefresh:()=>{s||(l(!0),n(e=>e+1),setTimeout(()=>{l(!1)},2e3))},prepareReports:o,triggerRefPrepareReports:(e,t)=>{i(e,t)},resetQuery:c,triggerResetQuery:()=>{f(!0),setTimeout(()=>{f(!1)},5e3)}}},e)}},744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIntersecting=t.getRect=t.infiniteRect=void 0,t.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0},t.getRect=function(e){return e&&"getBoundingClientRect"in e&&"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():e===window||e===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}},t.isIntersecting=function(e,t,n,a){const r=e.top+n,o=e.bottom+a;return r>=t.top&&r<=t.bottom||o>=t.top&&o<=t.bottom||o>=t.bottom&&r<=t.top}},795:e=>{"use strict";e.exports=window.ReactDOM},801:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0;const o=r(n(609)),i=r(n(870));t.defaultProps=Object.assign(Object.assign({},i.default.defaultProps),{stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}}),t.default=function(e){const n=Object.assign(Object.assign({},t.defaultProps),e),{mode:r,onFixedToggle:s,hideOnBoundaryHit:l,offsetTransforms:c,disabled:f,boundaryElement:u,scrollElement:d,bottomOffset:m,topOffset:p,positionRecheckInterval:h,children:g,isIOSFixEnabled:b,dontUpdateHolderHeightWhenSticky:y,wrapperClassName:v,stickyClassName:x,stickyStyle:w}=n,k=a(n,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return o.default.createElement(i.default,{mode:r,onFixedToggle:s,hideOnBoundaryHit:l,offsetTransforms:c,disabled:f,boundaryElement:u,scrollElement:d,bottomOffset:m,topOffset:p,positionRecheckInterval:h,isIOSFixEnabled:b,dontUpdateHolderHeightWhenSticky:y},({isFixed:e,wrapperStyles:t,wrapperRef:n,holderStyles:a,holderRef:r})=>o.default.createElement("div",Object.assign({},k,{ref:r,style:a}),o.default.createElement("div",Object.assign({},k,{className:`${v} ${e?x:""}`,style:e?Object.assign(Object.assign({},t),w):t,ref:n}),g)))}},870:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(609),o=n(919),i=a(n(521)),s=a(n(28)),l=n(744),c=(e,t)=>{const{bottomOffset:n,hideOnBoundaryHit:a}=t,{top:r,height:o,width:i,boundaryBottom:s}=e;return a||r+o+n<s?{top:`${r}px`,width:`${i}px`,position:"fixed"}:!a&&s>0?{top:s-o-n+"px",width:`${i}px`,position:"fixed"}:{width:`${i}px`,bottom:`${n}px`,position:"absolute"}},f=(e,t)=>{const{bottomOffset:n,hideOnBoundaryHit:a}=t,{bottom:r,height:o,width:i,boundaryTop:s}=e;return a||r-o-n>s?{width:`${i}px`,top:r-o+"px",position:"fixed"}:{width:`${i}px`,top:`${n}px`,position:"absolute"}},u=(e,t,n)=>("top"===e?c:f)(n,t);class d extends r.Component{constructor(){super(...arguments),this.holderEl=null,this.wrapperEl=null,this.el=null,this.scrollEl=null,this.boundaryEl=null,this.disabled=!1,this.checkPositionIntervalId=null,this.lastMinHeight=null,this.state={isFixed:!1,wrapperStyles:void 0,holderStyles:void 0,height:0},this.holderRef=e=>{e!==this.holderEl&&(this.holderEl=e)},this.wrapperRef=e=>{e!==this.wrapperEl&&(this.wrapperEl=e,this.updateScrollEl(),this.updateBoundaryEl())},this.checkPosition=()=>{const{holderEl:e,wrapperEl:t,boundaryEl:n,scrollEl:a,disabled:r}=this;if(!a||!e||!t)return void console.error("Missing required elements:",{scrollEl:a,holderEl:e,wrapperEl:t});const{mode:o,onFixedToggle:i,offsetTransforms:c,isIOSFixEnabled:f,dontUpdateHolderHeightWhenSticky:d}=this.props;if(r)return void(this.state.isFixed&&this.setState({isFixed:!1,wrapperStyles:{}}));if(!e.getBoundingClientRect||!t.getBoundingClientRect)return;const m=e.getBoundingClientRect(),p=t.getBoundingClientRect(),h=n?(0,l.getRect)(n):l.infiniteRect,g=(0,l.getRect)(a),b=this.isFixed(m,p,h,g);let y=null;if(c&&b&&a instanceof HTMLElement){const e=(0,s.default)(a);e&&(y=(0,l.getRect)(e))}const v=this.state.isFixed&&d&&this.lastMinHeight?this.lastMinHeight:p.height;this.lastMinHeight=v;const x=f?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:void 0,w={isFixed:b,height:p.height,holderStyles:{minHeight:`${v}px`},wrapperStyles:b?Object.assign(Object.assign({},x),u(o,this.props,{boundaryTop:"bottom"===o?h.top:0,boundaryBottom:"top"===o?h.bottom:0,top:"top"===o?g.top-(y?y.top:0):0,bottom:"bottom"===o?g.bottom-(y?y.bottom:0):0,width:m.width,height:p.height})):x};b!==this.state.isFixed&&i&&"function"==typeof i&&i(b),((e,t)=>{const n=e.wrapperStyles,a=t.wrapperStyles;if(e.isFixed!==t.isFixed||e.height!==t.height||!n&&a||n&&!a)return!1;if(!a)return!0;for(const e in n)if(n.hasOwnProperty(e)&&n[e]!==a[e])return!1;return!0})(this.state,w)||this.setState(w)}}isFixed(e,t,n,a){const{hideOnBoundaryHit:r,bottomOffset:o,topOffset:i,mode:s}=this.props;if(this.disabled)return!1;if(r&&n&&!(0,l.isIntersecting)(n,a,i,o))return!1;const c=r?t.height+o:0;return"top"===s?e.top+i<a.top&&a.top+c<=n.bottom:e.bottom-i>a.bottom&&a.bottom-c>=n.top}updateScrollEl(){if(!this.wrapperEl)return;this.scrollEl&&((0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);const{scrollElement:e}=this.props;this.scrollEl="string"==typeof e?(0,i.default)(e,this.wrapperEl):e,this.scrollEl?(0,o.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+("string"==typeof e?e:"unknown"))}updateBoundaryEl(){if(!this.wrapperEl)return;const{boundaryElement:e}=this.props;this.boundaryEl=(0,i.default)(e,this.wrapperEl),this.boundaryEl!==window&&this.boundaryEl!==document||(this.boundaryEl=null)}initialize(){const{positionRecheckInterval:e,disabled:t}=this.props;this.disabled=t,(0,o.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),e&&(this.checkPositionIntervalId=setInterval(this.checkPosition,e))}componentDidUpdate({scrollElement:e,boundaryElement:t,disabled:n}){e===this.props.scrollElement&&null!==this.scrollEl||this.updateScrollEl(),t===this.props.boundaryElement&&null!==this.boundaryEl||this.updateBoundaryEl(),n!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())}componentDidMount(){this.initialize(),null===this.wrapperEl&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")}componentWillUnmount(){this.scrollEl&&(0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,o.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,this.checkPositionIntervalId&&clearInterval(this.checkPositionIntervalId)}render(){const{holderRef:e,wrapperRef:t}=this,{isFixed:n,wrapperStyles:a,holderStyles:r}=this.state;return this.props.children({holderRef:e,wrapperRef:t,isFixed:n,wrapperStyles:a,holderStyles:r})}}d.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,offsetTransforms:!0,disabled:!1,onFixedToggle:void 0,boundaryElement:void 0,hideOnBoundaryHit:!0,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},t.default=d},900:e=>{"use strict";e.exports=JSON.parse('{"description":"The iconic font, CSS, and SVG framework","keywords":["font","awesome","fontawesome","icon","svg","bootstrap"],"homepage":"https://fontawesome.com","bugs":{"url":"https://github.com/FortAwesome/Font-Awesome/issues"},"author":"The Font Awesome Team (https://github.com/orgs/FortAwesome/people)","repository":{"type":"git","url":"https://github.com/FortAwesome/Font-Awesome"},"engines":{"node":">=6"},"dependencies":{"@fortawesome/fontawesome-common-types":"6.7.2"},"version":"6.7.2","name":"@fortawesome/fontawesome-svg-core","main":"index.js","module":"index.mjs","jsnext:main":"index.mjs","style":"styles.css","license":"MIT","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","module":"./index.mjs","import":"./index.mjs","require":"./index.js","style":"./styles.css","default":"./index.js"},"./index":{"types":"./index.d.ts","module":"./index.mjs","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js":{"types":"./index.d.ts","module":"./index.mjs","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./plugins":{"types":"./index.d.ts","module":"./plugins.mjs","import":"./plugins.mjs","default":"./plugins.mjs"},"./import.macro":"./import.macro.js","./import.macro.js":"./import.macro.js","./styles":"./styles.css","./styles.css":"./styles.css","./package.json":"./package.json"},"sideEffects":["./index.js","./index.mjs","./styles.css"]}')},919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unlisten=t.listen=void 0;const n=[],a=[];function r(e,t,r){let o=n.indexOf(e);-1===o&&(o=n.length,n.push(e),a.push(function(e){return{el:e,callbacks:{},realCallbacks:{},realListenersCnt:0}}(e))),function(e,t,n){e.callbacks[t]?-1===e.callbacks[t].indexOf(n)&&e.callbacks[t].push(n):(e.callbacks[t]=[n],e.realCallbacks[t]=n=>{for(let a=0,r=e.callbacks[t].length;a<r;a+=1)e.callbacks[t][a](n)},e.el.addEventListener(t,e.realCallbacks[t]),e.realListenersCnt+=1)}(a[o],t,r)}function o(e,t,r){const o=n.indexOf(e);if(-1===o)return;const i=a[o];!function(e,t,n){if(!e.callbacks[t])return;const a=e.callbacks[t].indexOf(n);-1!==a&&(e.callbacks[t].splice(a,1),e.callbacks[t].length>0||(e.el.removeEventListener(t,e.realCallbacks[t]),delete e.callbacks[t],delete e.realCallbacks[t],e.realListenersCnt-=1))}(i,t,r),i.realListenersCnt>0||(n.splice(o,1),a.splice(o,1))}t.listen=function(e,t,n){for(let a=0,o=t.length;a<o;a+=1)r(e,t[a],n)},t.unlisten=function(e,t,n){for(let a=0,r=t.length;a<r;a+=1)o(e,t[a],n)}},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},982:(e,t,n)=>{"use strict";function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{g:()=>In});const i=()=>{};let s={},l={},c=null,f={mark:i,measure:i};try{"undefined"!=typeof window&&(s=window),"undefined"!=typeof document&&(l=document),"undefined"!=typeof MutationObserver&&(c=MutationObserver),"undefined"!=typeof performance&&(f=performance)}catch(e){}const{userAgent:u=""}=s.navigator||{},d=s,m=l,p=c,h=f,g=(d.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),b=~u.indexOf("MSIE")||~u.indexOf("Trident/");var y={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},v=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],x="classic",w="duotone",k=[x,w,"sharp","sharp-duotone"],E=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),N=["fak","fa-kit","fakd","fa-kit-duotone"],z=["fak","fakd"],C={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},S=["fak","fa-kit","fakd","fa-kit-duotone"],M={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},O=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],L=[1,2,3,4,5,6,7,8,9,10],A=L.concat([11,12,13,14,15,16,17,18,19,20]),P=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",C.GROUP,C.SWAP_OPACITY,C.PRIMARY,C.SECONDARY].concat(L.map(e=>"".concat(e,"x"))).concat(A.map(e=>"w-".concat(e)));const j="___FONT_AWESOME___",I=16,_="svg-inline--fa",F="data-fa-i2svg",T="data-fa-pseudo-element",R="data-prefix",D="data-icon",H="fontawesome-i2svg",B=["HTML","HEAD","STYLE","SCRIPT"],W=(()=>{try{return!0}catch(e){return!1}})();function U(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[x]})}const Y=o({},y);Y[x]=o(o(o(o({},{"fa-duotone":"duotone"}),y[x]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const V=U(Y),q=o({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});q[x]=o(o(o(o({},{duotone:"fad"}),q[x]),{kit:"fak"}),{"kit-duotone":"fakd"});const G=U(q),$=o({},M);$[x]=o(o({},$[x]),{fak:"fa-kit"});const X=U($),K=o({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});K[x]=o(o({},K[x]),{"fa-kit":"fak"}),U(K);const Q=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,J="fa-layers-text",Z=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,ee=(U(o({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),te="duotone-group",ne="primary",ae="secondary",re=["kit",...P],oe=d.FontAwesomeConfig||{};m&&"function"==typeof m.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(e=>{let[t,n]=e;const a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=a&&(oe[n]=a)});const ie={styleDefault:"solid",familyDefault:x,cssPrefix:"fa",replacementClass:_,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};oe.familyPrefix&&(oe.cssPrefix=oe.familyPrefix);const se=o(o({},ie),oe);se.autoReplaceSvg||(se.observeMutations=!1);const le={};Object.keys(ie).forEach(e=>{Object.defineProperty(le,e,{enumerable:!0,set:function(t){se[e]=t,ce.forEach(e=>e(le))},get:function(){return se[e]}})}),Object.defineProperty(le,"familyPrefix",{enumerable:!0,set:function(e){se.cssPrefix=e,ce.forEach(e=>e(le))},get:function(){return se.cssPrefix}}),d.FontAwesomeConfig=le;const ce=[],fe=I,ue={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function de(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function me(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function pe(e){return e.classList?me(e.classList):(e.getAttribute("class")||"").split(" ").filter(e=>e)}function he(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ge(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function be(e){return e.size!==ue.size||e.x!==ue.x||e.y!==ue.y||e.rotate!==ue.rotate||e.flipX||e.flipY}function ye(){const e="fa",t=_,n=le.cssPrefix,a=le.replacementClass;let r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';if(n!==e||a!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(s,".".concat(a))}return r}let ve=!1;function xe(){le.autoAddCss&&!ve&&(function(e){if(!e||!g)return;const t=m.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=m.head.childNodes;let a=null;for(let e=n.length-1;e>-1;e--){const t=n[e],r=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(a=t)}m.head.insertBefore(t,a)}(ye()),ve=!0)}var we={mixout:()=>({dom:{css:ye,insertCss:xe}}),hooks:()=>({beforeDOMElementCreation(){xe()},beforeI2svg(){xe()}})};const ke=d||{};ke[j]||(ke[j]={}),ke[j].styles||(ke[j].styles={}),ke[j].hooks||(ke[j].hooks={}),ke[j].shims||(ke[j].shims=[]);var Ee=ke[j];const Ne=[],ze=function(){m.removeEventListener("DOMContentLoaded",ze),Ce=1,Ne.map(e=>e())};let Ce=!1;function Se(e){const{tag:t,attributes:n={},children:a=[]}=e;return"string"==typeof e?he(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(he(e[n]),'" '),"").trim()}(n),">").concat(a.map(Se).join(""),"</").concat(t,">")}function Me(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}g&&(Ce=(m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState),Ce||m.addEventListener("DOMContentLoaded",ze));var Oe=function(e,t,n,a){var r,o,i,s=Object.keys(e),l=s.length,c=void 0!==a?function(e,t){return function(n,a,r,o){return e.call(t,n,a,r,o)}}(t,a):t;for(void 0===n?(r=1,i=e[s[0]]):(r=0,i=n);r<l;r++)i=c(i,e[o=s[r]],o,e);return i};function Le(e){const t=function(e){const t=[];let n=0;const a=e.length;for(;n<a;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<a){const a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),n--)}else t.push(r)}return t}(e);return 1===t.length?t[0].toString(16):null}function Ae(e){return Object.keys(e).reduce((t,n)=>{const a=e[n];return a.icon?t[a.iconName]=a.icon:t[n]=a,t},{})}function Pe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:a=!1}=n,r=Ae(t);"function"!=typeof Ee.hooks.addPack||a?Ee.styles[e]=o(o({},Ee.styles[e]||{}),r):Ee.hooks.addPack(e,Ae(t)),"fas"===e&&Pe("fa",t)}const{styles:je,shims:Ie}=Ee,_e=Object.keys(X),Fe=_e.reduce((e,t)=>(e[t]=Object.keys(X[t]),e),{});let Te=null,Re={},De={},He={},Be={},We={};const Ue=()=>{const e=e=>Oe(je,(t,n,a)=>(t[a]=Oe(n,e,{}),t),{});Re=e((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(e=>"number"==typeof e).forEach(t=>{e[t.toString(16)]=n}),e)),De=e((e,t,n)=>(e[n]=n,t[2]&&t[2].filter(e=>"string"==typeof e).forEach(t=>{e[t]=n}),e)),We=e((e,t,n)=>{const a=t[2];return e[n]=n,a.forEach(t=>{e[t]=n}),e});const t="far"in je||le.autoFetchSvg,n=Oe(Ie,(e,n)=>{const a=n[0];let r=n[1];const o=n[2];return"far"!==r||t||(r="fas"),"string"==typeof a&&(e.names[a]={prefix:r,iconName:o}),"number"==typeof a&&(e.unicodes[a.toString(16)]={prefix:r,iconName:o}),e},{names:{},unicodes:{}});He=n.names,Be=n.unicodes,Te=Xe(le.styleDefault,{family:le.familyDefault})};var Ye;function Ve(e,t){return(Re[e]||{})[t]}function qe(e,t){return(We[e]||{})[t]}function Ge(e){return He[e]||{prefix:null,iconName:null}}function $e(){return Te}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=x}=t,a=V[n][e];if(n===w&&!e)return"fad";const r=G[n][e]||G[n][a],o=e in Ee.styles?e:null;return r||o||null}function Ke(e){return e.sort().filter((e,t,n)=>n.indexOf(e)===t)}function Qe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let a=null;const r=O.concat(S),i=Ke(e.filter(e=>r.includes(e))),s=Ke(e.filter(e=>!O.includes(e))),l=i.filter(e=>(a=e,!v.includes(e))),[c=null]=l,f=function(e){let t=x;const n=_e.reduce((e,t)=>(e[t]="".concat(le.cssPrefix,"-").concat(t),e),{});return k.forEach(a=>{(e.includes(n[a])||e.some(e=>Fe[a].includes(e)))&&(t=a)}),t}(i),u=o(o({},function(e){let t=[],n=null;return e.forEach(e=>{const a=function(e,t){const n=t.split("-"),a=n[0],r=n.slice(1).join("-");return a!==e||""===r||(o=r,~re.indexOf(o))?null:r;var o}(le.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(s)),{},{prefix:Xe(c,{family:f})});return o(o(o({},u),function(e){const{values:t,family:n,canonical:a,givenPrefix:r="",styles:o={},config:i={}}=e,s=n===w,l=t.includes("fa-duotone")||t.includes("fad"),c="duotone"===i.familyDefault,f="fad"===a.prefix||"fa-duotone"===a.prefix;if(!s&&(l||c||f)&&(a.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab"),!a.prefix&&Je.includes(n)&&(Object.keys(o).find(e=>Ze.includes(e))||i.autoFetchSvg)){const e=E.get(n).defaultShortPrefixId;a.prefix=e,a.iconName=qe(a.prefix,a.iconName)||a.iconName}return"fa"!==a.prefix&&"fa"!==r||(a.prefix=$e()||"fas"),a}({values:e,family:f,styles:je,config:le,canonical:u,givenPrefix:a})),function(e,t,n){let{prefix:a,iconName:r}=n;if(e||!a||!r)return{prefix:a,iconName:r};const o="fa"===t?Ge(r):{},i=qe(a,r);return r=o.iconName||i||r,a=o.prefix||a,"far"!==a||je.far||!je.fas||le.autoFetchSvg||(a="fas"),{prefix:a,iconName:r}}(n,a,u))}Ye=e=>{Te=Xe(e.styleDefault,{family:le.familyDefault})},ce.push(Ye),Ue();const Je=k.filter(e=>e!==x||e!==w),Ze=Object.keys(M).filter(e=>e!==x).map(e=>Object.keys(M[e])).flat();let et=[],tt={};const nt={},at=Object.keys(nt);function rt(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];return(tt[e]||[]).forEach(e=>{t=e.apply(null,[t,...a])}),t}function ot(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(tt[e]||[]).forEach(e=>{e.apply(null,n)})}function it(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return nt[e]?nt[e].apply(null,t):void 0}function st(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||$e();if(t)return t=qe(n,t)||t,Me(lt.definitions,n,t)||Me(Ee.styles,n,t)}const lt=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t.reduce(this._pullDefinitions,{});Object.keys(a).forEach(e=>{this.definitions[e]=o(o({},this.definitions[e]||{}),a[e]),Pe(e,a[e]);const t=X[x][e];t&&Pe(t,a[e]),Ue()})}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(t=>{const{prefix:a,iconName:r,icon:o}=n[t],i=o[2];e[a]||(e[a]={}),i.length>0&&i.forEach(t=>{"string"==typeof t&&(e[a][t]=o)}),e[a][r]=o}),e}},ct={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g?(ot("beforeI2svg",e),it("pseudoElements2svg",e),it("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===le.autoReplaceSvg&&(le.autoReplaceSvg=!0),le.observeMutations=!0,n=()=>{dt({autoReplaceSvgRoot:t}),ot("watch",e)},g&&(Ce?setTimeout(n,0):Ne.push(n))}},ft={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:qe(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Xe(e[0]);return{prefix:n,iconName:qe(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(le.cssPrefix,"-"))>-1||e.match(Q))){const t=Qe(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||$e(),iconName:qe(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=$e();return{prefix:t,iconName:qe(t,e)||e}}}},ut={noAuto:()=>{le.autoReplaceSvg=!1,le.observeMutations=!1,ot("noAuto")},config:le,dom:ct,parse:ft,library:lt,findIconDefinition:st,toHtml:Se},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=m}=e;(Object.keys(Ee.styles).length>0||le.autoFetchSvg)&&g&&le.autoReplaceSvg&&ut.dom.i2svg({node:t})};function mt(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(e=>Se(e))}}),Object.defineProperty(e,"node",{get:function(){if(!g)return;const t=m.createElement("div");return t.innerHTML=e.html,t.children}}),e}function pt(e){const{icons:{main:t,mask:n},prefix:a,iconName:r,transform:i,symbol:s,title:l,maskId:c,titleId:f,extra:u,watchable:d=!1}=e,{width:m,height:p}=n.found?n:t,h=z.includes(a),g=[le.replacementClass,r?"".concat(le.cssPrefix,"-").concat(r):""].filter(e=>-1===u.classes.indexOf(e)).filter(e=>""!==e||!!e).concat(u.classes).join(" ");let b={children:[],attributes:o(o({},u.attributes),{},{"data-prefix":a,"data-icon":r,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(p)})};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(m/p*16*.0625,"em")}:{};d&&(b.attributes[F]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(f||de())},children:[l]}),delete b.attributes.title);const v=o(o({},b),{},{prefix:a,iconName:r,main:t,mask:n,maskId:c,transform:i,symbol:s,styles:o(o({},y),u.styles)}),{children:x,attributes:w}=n.found&&t.found?it("generateAbstractMask",v)||{children:[],attributes:{}}:it("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=x,v.attributes=w,s?function(e){let{prefix:t,iconName:n,children:a,attributes:r,symbol:i}=e;const s=!0===i?"".concat(t,"-").concat(le.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:o(o({},r),{},{id:s}),children:a}]}]}(v):function(e){let{children:t,main:n,mask:a,attributes:r,styles:i,transform:s}=e;if(be(s)&&n.found&&!a.found){const{width:e,height:t}=n,a={x:e/t/2,y:.5};r.style=ge(o(o({},i),{},{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(v)}function ht(e){const{content:t,width:n,height:a,transform:r,title:i,extra:s,watchable:l=!1}=e,c=o(o(o({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});l&&(c[F]="");const f=o({},s.styles);be(r)&&(f.transform=function(e){let{transform:t,width:n=I,height:a=I,startCentered:r=!1}=e,o="";return o+=r&&b?"translate(".concat(t.x/fe-n/2,"em, ").concat(t.y/fe-a/2,"em) "):r?"translate(calc(-50% + ".concat(t.x/fe,"em), calc(-50% + ").concat(t.y/fe,"em)) "):"translate(".concat(t.x/fe,"em, ").concat(t.y/fe,"em) "),o+="scale(".concat(t.size/fe*(t.flipX?-1:1),", ").concat(t.size/fe*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:r,startCentered:!0,width:n,height:a}),f["-webkit-transform"]=f.transform);const u=ge(f);u.length>0&&(c.style=u);const d=[];return d.push({tag:"span",attributes:c,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:gt}=Ee;function bt(e){const t=e[0],n=e[1],[a]=e.slice(4);let r=null;return r=Array.isArray(a)?{tag:"g",attributes:{class:"".concat(le.cssPrefix,"-").concat(te)},children:[{tag:"path",attributes:{class:"".concat(le.cssPrefix,"-").concat(ae),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(le.cssPrefix,"-").concat(ne),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:r}}const yt={found:!1,width:512,height:512};function vt(e,t){let n=t;return"fa"===t&&null!==le.styleDefault&&(t=$e()),new Promise((a,r)=>{if("fa"===n){const n=Ge(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&>[t]&>[t][e])return a(bt(gt[t][e]));!function(e,t){W||le.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(o(o({},yt),{},{icon:le.showMissingIcons&&e&&it("missingIconAbstract")||{}}))})}const xt=()=>{},wt=le.measurePerformance&&h&&h.mark&&h.measure?h:{mark:xt,measure:xt},kt='FA "6.7.2"';var Et=e=>(wt.mark("".concat(kt," ").concat(e," begins")),()=>(e=>{wt.mark("".concat(kt," ").concat(e," ends")),wt.measure("".concat(kt," ").concat(e),"".concat(kt," ").concat(e," begins"),"".concat(kt," ").concat(e," ends"))})(e));const Nt=()=>{};function zt(e){return"string"==typeof(e.getAttribute?e.getAttribute(F):null)}function Ct(e){return m.createElementNS("http://www.w3.org/2000/svg",e)}function St(e){return m.createElement(e)}function Mt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Ct:St)}=t;if("string"==typeof e)return m.createTextNode(e);const a=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){a.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){a.appendChild(Mt(e,{ceFn:n}))}),a}const Ot={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(e=>{t.parentNode.insertBefore(Mt(e),t)}),null===t.getAttribute(F)&&le.keepOriginalSource){let e=m.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~pe(t).indexOf(le.replacementClass))return Ot.replace(e);const a=new RegExp("".concat(le.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce((e,t)=>(t===le.replacementClass||t.match(a)?e.toSvg.push(t):e.toNode.push(t),e),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const r=n.map(e=>Se(e)).join("\n");t.setAttribute(F,""),t.innerHTML=r}};function Lt(e){e()}function At(e,t){const n="function"==typeof t?t:Nt;if(0===e.length)n();else{let t=Lt;"async"===le.mutateApproach&&(t=d.requestAnimationFrame||Lt),t(()=>{const t=!0===le.autoReplaceSvg?Ot.replace:Ot[le.autoReplaceSvg]||Ot.replace,a=Et("mutate");e.map(t),a(),n()})}}let Pt=!1;function jt(){Pt=!0}function It(){Pt=!1}let _t=null;function Ft(e){if(!p)return;if(!le.observeMutations)return;const{treeCallback:t=Nt,nodeCallback:n=Nt,pseudoElementsCallback:a=Nt,observeMutationsRoot:r=m}=e;_t=new p(e=>{if(Pt)return;const r=$e();me(e).forEach(e=>{if("childList"===e.type&&e.addedNodes.length>0&&!zt(e.addedNodes[0])&&(le.searchPseudoElements&&a(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&le.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&zt(e.target)&&~ee.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(R):null,n=e.getAttribute?e.getAttribute(D):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Qe(pe(e.target));e.target.setAttribute(R,t||r),n&&e.target.setAttribute(D,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(le.replacementClass)&&n(e.target);var o})}),g&&_t.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:a,rest:r}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),a=void 0!==e.innerText?e.innerText.trim():"";let r=Qe(pe(e));return r.prefix||(r.prefix=$e()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&a.length>0&&(r.iconName=(o=r.prefix,i=e.innerText,(De[o]||{})[i]||Ve(r.prefix,Le(e.innerText)))),!r.iconName&&le.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r;var o,i}(e),i=function(e){const t=me(e.attributes).reduce((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e),{}),n=e.getAttribute("title"),a=e.getAttribute("data-fa-title-id");return le.autoA11y&&(n?t["aria-labelledby"]="".concat(le.replacementClass,"-title-").concat(a||de()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=rt("parseNodeAttributes",{},e);let l=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((e,t)=>{const n=t.split(":"),a=n[0],r=n.slice(1);return a&&r.length>0&&(e[a]=r.join(":").trim()),e},{})),n}(e):[];return o({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:ue,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:i}},s)}const{styles:Rt}=Ee;function Dt(e){const t="nest"===le.autoReplaceSvg?Tt(e,{styleParser:!1}):Tt(e);return~t.extra.classes.indexOf(J)?it("generateLayersText",e,t):it("generateSvgReplacementMutation",e,t)}function Ht(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!g)return Promise.resolve();const n=m.documentElement.classList,a=e=>n.add("".concat(H,"-").concat(e)),r=e=>n.remove("".concat(H,"-").concat(e)),o=le.autoFetchSvg?[...N,...O]:v.concat(Object.keys(Rt));o.includes("fa")||o.push("fa");const i=[".".concat(J,":not([").concat(F,"])")].concat(o.map(e=>".".concat(e,":not([").concat(F,"])"))).join(", ");if(0===i.length)return Promise.resolve();let s=[];try{s=me(e.querySelectorAll(i))}catch(e){}if(!(s.length>0))return Promise.resolve();a("pending"),r("complete");const l=Et("onTree"),c=s.reduce((e,t)=>{try{const n=Dt(t);n&&e.push(n)}catch(e){W||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise((e,n)=>{Promise.all(c).then(n=>{At(n,()=>{a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),l(),e()})}).catch(e=>{l(),n(e)})})}function Bt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Dt(e).then(e=>{e&&At([e],t)})}const Wt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ue,symbol:a=!1,mask:r=null,maskId:i=null,title:s=null,titleId:l=null,classes:c=[],attributes:f={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:m,icon:p}=e;return mt(o({type:"icon"},e),()=>(ot("beforeDOMElementCreation",{iconDefinition:e,params:t}),le.autoA11y&&(s?f["aria-labelledby"]="".concat(le.replacementClass,"-title-").concat(l||de()):(f["aria-hidden"]="true",f.focusable="false")),pt({icons:{main:bt(p),mask:r?bt(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:m,transform:o(o({},ue),n),symbol:a,title:s,maskId:i,titleId:l,extra:{attributes:f,styles:u,classes:c}})))};var Ut={mixout(){return{icon:(e=Wt,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=(t||{}).icon?t:st(t||{});let{mask:r}=n;return r&&(r=(r||{}).icon?r:st(r||{})),e(a,o(o({},n),{},{mask:r}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Ht,e.nodeCallback=Bt,e)}),provides(e){e.i2svg=function(e){const{node:t=m,callback:n=()=>{}}=e;return Ht(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:a,titleId:r,prefix:o,transform:i,symbol:s,mask:l,maskId:c,extra:f}=t;return new Promise((t,u)=>{Promise.all([vt(n,o),l.iconName?vt(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(l=>{let[u,d]=l;t([e,pt({icons:{main:u,mask:d},prefix:o,iconName:n,transform:i,symbol:s,maskId:c,title:a,titleId:r,extra:f,watchable:!0})])}).catch(u)})},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:a,transform:r,styles:o}=e;const i=ge(o);let s;return i.length>0&&(n.style=i),be(r)&&(s=it("generateAbstractTransformGrouping",{main:a,transform:r,containerWidth:a.width,iconWidth:a.width})),t.push(s||a.icon),{children:t,attributes:n}}}},Yt={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return mt({type:"layer"},()=>{ot("beforeDOMElementCreation",{assembler:e,params:t});let a=[];return e(e=>{Array.isArray(e)?e.map(e=>{a=a.concat(e.abstract)}):a=a.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(le.cssPrefix,"-layers"),...n].join(" ")},children:a}]})}})},Vt={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:a=[],attributes:r={},styles:i={}}=t;return mt({type:"counter",content:e},()=>(ot("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:a}=e,r=o(o(o({},a.attributes),n?{title:n}:{}),{},{class:a.classes.join(" ")}),i=ge(a.styles);i.length>0&&(r.style=i);const s=[];return s.push({tag:"span",attributes:r,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}({content:e.toString(),title:n,extra:{attributes:r,styles:i,classes:["".concat(le.cssPrefix,"-layers-counter"),...a]}})))}})},qt={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ue,title:a=null,classes:r=[],attributes:i={},styles:s={}}=t;return mt({type:"text",content:e},()=>(ot("beforeDOMElementCreation",{content:e,params:t}),ht({content:e,transform:o(o({},ue),n),title:a,extra:{attributes:i,styles:s,classes:["".concat(le.cssPrefix,"-layers-text"),...r]}})))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:a,extra:r}=t;let o=null,i=null;if(b){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,i=n.height/t}return le.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),Promise.resolve([e,ht({content:e.innerHTML,width:o,height:i,transform:a,title:n,extra:r,watchable:!0})])}}};const Gt=new RegExp('"',"ug"),$t=[1105920,1112319],Xt=o(o(o(o({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Kt=Object.keys(Xt).reduce((e,t)=>(e[t.toLowerCase()]=Xt[t],e),{}),Qt=Object.keys(Kt).reduce((e,t)=>{const n=Kt[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function Jt(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((a,r)=>{if(null!==e.getAttribute(n))return a();const i=me(e.children).filter(e=>e.getAttribute(T)===t)[0],s=d.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),c=l.match(Z),f=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(i&&!c)return e.removeChild(i),a();if(c&&"none"!==u&&""!==u){const u=s.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(Kt[n]||{})[r]||Qt[n]}(l,f);const{value:p,isSecondary:h}=function(e){const t=e.replace(Gt,""),n=function(e){const t=e.length;let n,a=e.charCodeAt(0);return a>=55296&&a<=56319&&t>1&&(n=e.charCodeAt(1),n>=56320&&n<=57343)?1024*(a-55296)+n-56320+65536:a}(t),a=n>=$t[0]&&n<=$t[1],r=2===t.length&&t[0]===t[1];return{value:Le(r?t[0]:t),isSecondary:a||r}}(u),g=c[0].startsWith("FontAwesome");let b=Ve(d,p),y=b;if(g){const e=function(e){const t=Be[e],n=Ve("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(p);e.iconName&&e.prefix&&(b=e.iconName,d=e.prefix)}if(!b||h||i&&i.getAttribute(R)===d&&i.getAttribute(D)===y)a();else{e.setAttribute(n,y),i&&e.removeChild(i);const s={iconName:null,title:null,titleId:null,prefix:null,transform:ue,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:l}=s;l.attributes[T]=t,vt(b,d).then(r=>{const i=pt(o(o({},s),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:y,extra:l,watchable:!0})),c=m.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(c,e.firstChild):e.appendChild(c),c.outerHTML=i.map(e=>Se(e)).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function Zt(e){return Promise.all([Jt(e,"::before"),Jt(e,"::after")])}function en(e){return!(e.parentNode===document.head||~B.indexOf(e.tagName.toUpperCase())||e.getAttribute(T)||e.parentNode&&"svg"===e.parentNode.tagName)}function tn(e){if(g)return new Promise((t,n)=>{const a=me(e.querySelectorAll("*")).filter(en).map(Zt),r=Et("searchPseudoElements");jt(),Promise.all(a).then(()=>{r(),It(),t()}).catch(()=>{r(),It(),n()})})}var nn={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=tn,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=m}=e;le.searchPseudoElements&&tn(t)}}};let an=!1;var rn={mixout:()=>({dom:{unwatch(){jt(),an=!0}}}),hooks:()=>({bootstrap(){Ft(rt("mutationObserverCallbacks",{}))},noAuto(){_t&&_t.disconnect()},watch(e){const{observeMutationsRoot:t}=e;an?It():Ft(rt("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const on=e=>e.toLowerCase().split(" ").reduce((e,t)=>{const n=t.toLowerCase().split("-"),a=n[0];let r=n.slice(1).join("-");if(a&&"h"===r)return e.flipX=!0,e;if(a&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(a){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var sn={mixout:()=>({parse:{transform:e=>on(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=on(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:a,iconWidth:r}=e;const i={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),l="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)"),f={outer:i,inner:{transform:"".concat(s," ").concat(l," ").concat(c)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:o({},f.outer),children:[{tag:"g",attributes:o({},f.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:o(o({},t.icon.attributes),f.path)}]}]}}}};const ln={x:0,y:0,width:"100%",height:"100%"};function cn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var fn={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),a=n?Qe(n.split(" ").map(e=>e.trim())):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=$e()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:a,mask:r,maskId:i,transform:s}=e;const{width:l,icon:c}=a,{width:f,icon:u}=r,d=function(e){let{transform:t,containerWidth:n,iconWidth:a}=e;const r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(i," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}}}({transform:s,containerWidth:f,iconWidth:l}),m={tag:"rect",attributes:o(o({},ln),{},{fill:"white"})},p=c.children?{children:c.children.map(cn)}:{},h={tag:"g",attributes:o({},d.inner),children:[cn(o({tag:c.tag,attributes:o(o({},c.attributes),d.path)},p))]},g={tag:"g",attributes:o({},d.outer),children:[h]},b="mask-".concat(i||de()),y="clip-".concat(i||de()),v={tag:"mask",attributes:o(o({},ln),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,g]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(w=u,"g"===w.tag?w.children:[w])},v]};var w;return t.push(x,{tag:"rect",attributes:o({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},ln)}),{children:t,attributes:n}}}},un={provides(e){let t=!1;d.matchMedia&&(t=d.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:o(o({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const r=o(o({},a),{},{attributeName:"opacity"}),i={tag:"circle",attributes:o(o({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:o(o({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:o(o({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:o(o({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:o(o({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:o(o({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:o(o({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;et=e,tt={},Object.keys(nt).forEach(e=>{-1===at.indexOf(e)&&delete nt[e]}),et.forEach(e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach(a=>{n[e]||(n[e]={}),n[e][a]=t[e][a]})}),e.hooks){const t=e.hooks();Object.keys(t).forEach(e=>{tt[e]||(tt[e]=[]),tt[e].push(t[e])})}e.provides&&e.provides(nt)})}([we,Ut,Yt,Vt,qt,nn,rn,sn,fn,un,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),a=null!==n&&(""===n||n);return e.symbol=a,e}})}],{mixoutsTo:ut});const dn=ut.parse,mn=ut.icon;var pn,hn=n(556),gn=n.n(hn),bn=n(609),yn=n.n(bn);function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function xn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach(function(t){xn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function En(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return s}}(e,t)||Cn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nn(e){return function(e){if(Array.isArray(e))return vn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zn(e){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Cn(e,t){if(e){if("string"==typeof e)return vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(e,t):void 0}}try{var Sn=n(900);pn=Sn.version}catch(e){pn=process.env.FA_VERSION||"7.0.0-alpha8"}function Mn(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1);var t}var On=["style"],Ln=!1;try{Ln=!0}catch(e){}function An(e){return e&&"object"===zn(e)&&e.prefix&&e.iconName&&e.icon?e:dn.icon?dn.icon(e):null===e?null:e&&"object"===zn(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Pn(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xn({},e,t):{}}var jn={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},In=yn().forwardRef(function(e,t){var n=kn(kn({},jn),e),a=n.icon,r=n.mask,o=n.symbol,i=n.className,s=n.title,l=n.titleId,c=n.maskId,f=An(a),u=Pn("classes",[].concat(Nn(function(e){var t=e.beat,n=e.fade,a=e.beatFade,r=e.bounce,o=e.shake,i=e.flash,s=e.spin,l=e.spinPulse,c=e.spinReverse,f=e.pulse,u=e.fixedWidth,d=e.inverse,m=e.border,p=e.listItem,h=e.flip,g=e.size,b=e.rotation,y=e.pull,v=e.swapOpacity,x=e.rotateBy,w=e.widthAuto,k=function(e){for(var t=En(e.split("-"),2),n=t[0],a=t[1],r=En("7.0.0-alpha1".split("-"),2),o=r[0],i=r[1],s=n.split("."),l=o.split("."),c=0;c<Math.max(s.length,l.length);c++){var f=s[c]||"0",u=l[c]||"0",d=parseInt(f,10),m=parseInt(u,10);if(d!==m)return d>m}for(var p=0;p<Math.max(s.length,l.length);p++){var h=s[p]||"0",g=l[p]||"0";if(h!==g&&h.length!==g.length)return h.length<g.length}return!(a&&!i)}(pn),E=xn(xn(xn(xn(xn(xn({"fa-beat":t,"fa-fade":n,"fa-beat-fade":a,"fa-bounce":r,"fa-shake":o,"fa-flash":i,"fa-spin":s,"fa-spin-reverse":c,"fa-spin-pulse":l,"fa-pulse":f,"fa-fw":u,"fa-inverse":d,"fa-border":m,"fa-li":p,"fa-flip":!0===h,"fa-flip-horizontal":"horizontal"===h||"both"===h,"fa-flip-vertical":"vertical"===h||"both"===h},"fa-".concat(g),null!=g),"fa-rotate-".concat(b),null!=b&&0!==b),"fa-pull-".concat(y),null!=y),"fa-swap-opacity",v),"fa-rotate-by",k&&x),"fa-width-auto",k&&w);return Object.keys(E).map(function(e){return E[e]?e:null}).filter(function(e){return e})}(n)),Nn((i||"").split(" ")))),d=Pn("transform","string"==typeof n.transform?dn.transform(n.transform):n.transform),m=Pn("mask",An(r)),p=mn(f,kn(kn(kn(kn({},u),d),m),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!p)return function(){var e;!Ln&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",f),null;var h=p.abstract,g={ref:t};return Object.keys(n).forEach(function(e){jn.hasOwnProperty(e)||(g[e]=n[e])}),Fn(h[0],g)});In.displayName="FontAwesomeIcon",In.propTypes={beat:gn().bool,border:gn().bool,beatFade:gn().bool,bounce:gn().bool,className:gn().string,fade:gn().bool,flash:gn().bool,mask:gn().oneOfType([gn().object,gn().array,gn().string]),maskId:gn().string,fixedWidth:gn().bool,inverse:gn().bool,flip:gn().oneOf([!0,!1,"horizontal","vertical","both"]),icon:gn().oneOfType([gn().object,gn().array,gn().string]),listItem:gn().bool,pull:gn().oneOf(["right","left"]),pulse:gn().bool,rotation:gn().oneOf([0,90,180,270]),rotateBy:gn().bool,shake:gn().bool,size:gn().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:gn().bool,spinPulse:gn().bool,spinReverse:gn().bool,symbol:gn().oneOfType([gn().bool,gn().string]),title:gn().string,titleId:gn().string,transform:gn().oneOfType([gn().string,gn().object]),swapOpacity:gn().bool,widthAuto:gn().bool};var Fn=function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var r=(n.children||[]).map(function(n){return e(t,n)}),o=Object.keys(n.attributes||{}).reduce(function(e,t){var a=n.attributes[t];switch(t){case"class":e.attrs.className=a,delete n.attributes.class;break;case"style":e.attrs.style=a.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n,a=t.indexOf(":"),r=Mn(t.slice(0,a)),o=t.slice(a+1).trim();return r.startsWith("webkit")?e[(n=r,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[r]=o,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=a:e.attrs[Mn(t)]=a}return e},{attrs:{}}),i=a.style,s=void 0===i?{}:i,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,On);return o.attrs.style=kn(kn({},o.attrs.style),s),t.apply(void 0,[n.tag,kn(kn({},o.attrs),l)].concat(Nn(r)))}.bind(null,yn().createElement)}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return n[e].call(o.exports,o,o.exports,r),o.exports}r.m=n,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.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>e+".js",r.miniCssF=e=>e+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="ultimate_spin_wheel:",r.l=(n,a,o,i)=>{if(e[n])e[n].push(a);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var u=c[f];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+o){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+o),s.src=n),e[n]=[a];var d=(t,a)=>{s.onerror=s.onload=null,clearTimeout(m);var r=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(a)),t)return t(a)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../"})(),(()=>{if("undefined"!=typeof document){var e={773:0};r.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{606:1}[t]&&n.push(e[t]=(e=>new Promise((t,n)=>{var a=r.miniCssF(e),o=r.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),a=0;a<n.length;a++){var r=(i=n[a]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(r===e||r===t))return i}var o=document.getElementsByTagName("style");for(a=0;a<o.length;a++){var i;if((r=(i=o[a]).getAttribute("data-href"))===e||r===t)return i}})(a,o))return t();((e,t,n,a,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc),i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)a();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,document.head.appendChild(i)})(e,o,0,t,n)}))(t).then(()=>{e[t]=0},n=>{throw delete e[t],n}))}}})(),(()=>{var e={773:0};r.f.j=(t,n)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var o=new Promise((n,r)=>a=e[t]=[n,r]);n.push(a[2]=o);var i=r.p+r.u(t),s=new Error;r.l(i,n=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,a[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,o,[i,s,l]=n,c=0;if(i.some(t=>0!==e[t])){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);l&&l(r)}for(t&&t(n);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunkultimate_spin_wheel=globalThis.webpackChunkultimate_spin_wheel||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=r(609),t=r.n(e),n=r(338),a=r(737),o=r(723),i=r(982),s=r(188);function l(){const t=USPIN_CONFIG_ADMIN.plugin_name.replace(/\s+/g,""),[n,a]=(0,e.useState)(()=>"true"===localStorage.getItem(t+"DarkMode"));return(0,e.useEffect)(()=>{document.documentElement.classList.toggle("dark",n),localStorage.setItem(t+"DarkMode",n)},[n]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("nav",{className:"bg-white border-gray-200 rounded-xl px-2 lg:px-4 py-3 lg:py-4 dark:bg-gray-900 shadow-sm"},(0,e.createElement)("div",{className:"flex flex-wrap justify-between items-center gap-3"},(0,e.createElement)("div",{className:"flex justify-start items-center"},(0,e.createElement)("a",{href:USPIN_CONFIG_ADMIN.admin_url+"admin.php?page="+USPIN_CONFIG_ADMIN.plugin_slug,className:"flex items-center outline-none focus:outline-none shadow-none"},(0,e.createElement)("img",{src:USPIN_CONFIG_ADMIN.logo,className:"mr-2 h-10 rounded",alt:USPIN_CONFIG_ADMIN.plugin_name}),(0,e.createElement)("span",{className:"text-xl lg:text-3xl uppercase font-bold bg-gradient-to-r from-indigo-800 via-sky-400 to-purple-600 bg-clip-text text-transparent relative"},(0,e.createElement)("span",{className:"absolute -top-2 right-0 text-xs uppercase font-bold bg-gradient-to-r from-indigo-800 via-sky-400 to-purple-600 bg-clip-text text-transparent tracking-widest"},"ULTIMATE"),USPIN_CONFIG_ADMIN.plugin_name))),(0,e.createElement)("div",{className:"flex items-center lg:order-2 gap-3"},(0,e.createElement)("button",{onClick:()=>a(!n),className:"rounded-lg px-2.5 py-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700 ring-2 ring-gray-300 dark:ring-gray-600"},(0,e.createElement)(i.g,{icon:n?s.oMq:s.PJS,className:"h-4 w-4"})),(0,e.createElement)("button",{type:"button","data-dropdown-toggle":"notification-dropdown",className:"hidden p-2 text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-700 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600"},(0,e.createElement)("span",{className:"sr-only"},"View notifications"),(0,e.createElement)("svg",{"aria-hidden":"true",className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"}))),(0,e.createElement)("div",{className:"hidden overflow-hidden z-50 my-4 max-w-sm text-base list-none bg-white rounded divide-y divide-gray-100 shadow-lg dark:divide-gray-600 dark:bg-gray-700",id:"notification-dropdown"},(0,e.createElement)("div",{className:"block py-2 px-4 text-base font-medium text-center text-gray-700 bg-gray-50 dark:bg-gray-700 dark:text-gray-400"}),(0,e.createElement)("div",null),(0,e.createElement)("a",{href:"#",className:"block py-2 text-base font-normal text-center text-gray-900 bg-gray-50 hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:hover:underline"},(0,e.createElement)("div",{className:"inline-flex items-center "},(0,e.createElement)("svg",{"aria-hidden":"true",className:"mr-2 w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),(0,e.createElement)("path",{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"}))))),(0,e.createElement)("button",{type:"button",className:"relative w-10 h-10 bg-sky-100 border-2 border-solid border-indigo-600 flex justify-center items-center rounded-full focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-600"},(0,e.createElement)("img",{className:"rounded-full",src:USPIN_CONFIG_ADMIN.current_user.avatar,alt:"avatar"}),(0,e.createElement)("span",{className:"top-0 left-7 absolute w-3.5 h-3.5 bg-green-400 border-2 border-white dark:border-gray-800 rounded-full"}))))))}const c={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},f={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"]},u={prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]},d={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function m(){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"bg-white rounded-lg shadow sm:flex sm:items-center sm:justify-between p-4 sm:p-6 xl:p-8 dark:bg-stone-900"},(0,e.createElement)("p",{className:"mb-4 text-center md:text-left text-sm text-gray-500 dark:text-gray-400 sm:mb-0"},(0,o.__)("Thank You for Using ","ultimate-spin-wheel")," ",(0,e.createElement)("strong",null,"(Core v",USPIN_CONFIG_ADMIN.version,USPIN_CONFIG_ADMIN.pro_version&&(0,e.createElement)("span",null," & Pro ",(0,e.createElement)("strong",null,"v",USPIN_CONFIG_ADMIN.pro_version)),")"),(0,e.createElement)("br",null)," ",(0,o.__)("By - ","ultimate-spin-wheel"),(0,e.createElement)("a",{target:"_blank",href:"https://wowdevs.com",className:"hover:underline dark:text-white"},(0,e.createElement)("strong",null,"wowDevs.com"))," ","© 2025",2025!==(new Date).getFullYear()&&(0,e.createElement)(e.Fragment,null,"- ",(new Date).getFullYear()," ")," ",(0,o.__)("All rights reserved.","ultimate-spin-wheel")),(0,e.createElement)("div",{className:"flex justify-center items-center space-x-1"},(0,e.createElement)("a",{href:"https://www.facebook.com/groups/wowdevs/",target:"_blank","data-tooltip-target":"tooltip-facebook",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:f,className:"w-5 h-5"})),(0,e.createElement)("div",{className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,o.__)("Follow us on Facebook","ultimate-spin-wheel"),(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})),(0,e.createElement)("a",{href:"https://twitter.com/wowdevscom",target:"_blank","data-tooltip-target":"tooltip-twitter",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:d,className:"w-5 h-5"})),(0,e.createElement)("div",{id:"tooltip-twitter",role:"tooltip",className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})),(0,e.createElement)("a",{href:"https://www.linkedin.com/company/wowdevs/",target:"_blank","data-tooltip-target":"tooltip-github",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:c,className:"w-5 h-5"})),(0,e.createElement)("div",{id:"tooltip-github",role:"tooltip",className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})),(0,e.createElement)("a",{href:"https://www.youtube.com/@wowdevs?sub_confirmation=1",target:"_blank","data-tooltip-target":"tooltip-dribbble",className:"inline-flex justify-center p-2 text-gray-500 rounded-lg cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"},(0,e.createElement)(i.g,{icon:u,className:"w-5 h-5"})),(0,e.createElement)("div",{id:"tooltip-dribbble",role:"tooltip",className:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"},(0,e.createElement)("div",{className:"tooltip-arrow","data-popper-arrow":""})))))}class p extends t().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"p-4 text-center bg-red-100 text-red-700 rounded-lg"},(0,e.createElement)("h2",null,(0,o.__)("Something went wrong.","ultimate-spin-wheel")),(0,e.createElement)("p",null,(0,o.__)("Please try refreshing the page.","ultimate-spin-wheel"))):this.props.children}}const h=p;var g=r(682),b=r.n(g);const y=({data:t,activeTab:n,onTabClick:a,isSidebarOpen:r,toggleSidebar:l,isLargeScreen:c})=>{const f=(0,e.createElement)("div",{className:"bg-gradient-to-r from-indigo-800 to-purple-600 dark:from-gray-900 dark:to-gray-900 p-4 shadow-xl rounded-lg"},(0,e.createElement)(()=>(0,e.createElement)("div",{className:"flex items-center justify-between mb-4 pb-4 border-b border-white/20 dark:border-gray-800"},r&&(0,e.createElement)("h3",{className:"text-lg font-bold text-white uppercase"},USPIN_CONFIG_ADMIN.plugin_name),c&&(0,e.createElement)("button",{onClick:l,className:"p-2 rounded-lg hover:bg-purple-700 dark:hover:bg-gray-800 text-white focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 ml-auto leading-none","aria-label":r?(0,o.__)("Hide Menu","ultimate-spin-wheel"):(0,o.__)("Show Menu","ultimate-spin-wheel"),title:r?(0,o.__)("Hide Menu","ultimate-spin-wheel"):(0,o.__)("Show Menu","ultimate-spin-wheel")},(0,e.createElement)(i.g,{icon:r?s.Wzs:s.XkK,className:"h-5 w-5"}))),null),t.map(({label:t,value:o,icon:i})=>(0,e.createElement)("button",{key:o,onClick:()=>a(o),className:"flex py-1.5 mb-1 items-center w-full leading-tight transition-all rounded-lg outline-none text-start justify-start font-sans text-base font-normal select-none cursor-pointer "+(n===o?"tab-active text-gray-900 bg-white dark:bg-gray-800 dark:text-white":"hover:bg-purple-700 text-white")},(0,e.createElement)("div",{className:"flex gap-3 items-center w-full px-2 py-3 leading-tight transition-all rounded-lg outline-none text-start"},(0,e.createElement)("div",{className:"grid place-items-center"},i),r&&t))));return(0,e.createElement)("div",{className:"transition-all duration-300 ease-in-out "+(c||r?c?r?"min-w-56":"w-[70px]":"min-w-56":"hidden")},(0,e.createElement)(b(),null,f))},v=({data:t,activeTab:n,onTabClick:a,isSidebarOpen:r,toggleSidebar:l,isLargeScreen:c})=>(0,e.createElement)("div",{className:"flex flex-col xl:flex-row gap-4 my-4 lg:my-6"},(0,e.createElement)(y,{data:t,activeTab:n,onTabClick:a,isSidebarOpen:r,toggleSidebar:l,isLargeScreen:c}),(0,e.createElement)("div",{className:"flex-1 w-full h-max text-gray-700 antialiased font-sans text-base font-light leading-relaxed py-0 rounded-lg overflow-hidden"},(0,e.createElement)(()=>c?null:(0,e.createElement)("button",{className:"mb-4 bg-gradient-to-r from-purple-600 to-indigo-600 text-white px-4 py-2.5 rounded-lg flex items-center gap-3 shadow-md hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50",onClick:l},(0,e.createElement)("div",{className:"transition-all duration-300 "+(r?"":"rotate-180")},(0,e.createElement)(i.g,{icon:s.ckx,className:"h-5 w-5"})),(0,e.createElement)("span",{className:"font-medium"},r?(0,o.__)("Hide Menu","ultimate-spin-wheel"):(0,o.__)("Show Menu","ultimate-spin-wheel"))),null),t.map(({value:t,desc:a})=>(0,e.createElement)("div",{key:t,className:"py-0 "+(n===t?"block":"hidden")},(0,e.createElement)(h,null,(0,e.createElement)(e.Suspense,{fallback:(0,e.createElement)("div",null,(0,o.__)("Loading...","ultimate-spin-wheel"))},a)))))),x=(t().lazy(()=>r.e(747).then(r.bind(r,747))),t().lazy(()=>Promise.all([r.e(996),r.e(934)]).then(r.bind(r,934)))),w=t().lazy(()=>r.e(365).then(r.bind(r,365))),k=t().lazy(()=>Promise.all([r.e(83),r.e(520)]).then(r.bind(r,520))),E=t().lazy(()=>Promise.all([r.e(83),r.e(465),r.e(810)]).then(r.bind(r,810))),N=(t().lazy(()=>r.e(304).then(r.bind(r,304))),t().lazy(()=>r.e(970).then(r.bind(r,970)))),z=t().lazy(()=>r.e(775).then(r.bind(r,775))),C=t().lazy(()=>Promise.all([r.e(425),r.e(606)]).then(r.bind(r,606))),S=[{label:(0,o.__)("Dashboard","ultimate-spin-wheel"),value:"dashboard",icon:(0,e.createElement)(i.g,{icon:s.BwJ,className:"h-5 w-5"}),desc:(0,e.createElement)(x,null)},{label:(0,o.__)("Campaigns","ultimate-spin-wheel"),value:"campaigns",icon:(0,e.createElement)(i.g,{icon:s.ITF,className:"h-5 w-5"}),desc:(0,e.createElement)(w,null)},{label:(0,o.__)("Entries","ultimate-spin-wheel"),value:"entries",icon:(0,e.createElement)(i.g,{icon:s.ITF,className:"h-5 w-5"}),desc:(0,e.createElement)(k,null)},{label:(0,o.__)("License","ultimate-spin-wheel"),value:"license",icon:(0,e.createElement)(i.g,{icon:s.bMg,className:"h-5 w-5"}),desc:(0,e.createElement)(E,null)},{label:(0,o.__)("FAQs","ultimate-spin-wheel"),value:"faqs",icon:(0,e.createElement)(i.g,{icon:s.EvL,className:"h-5 w-5"}),desc:(0,e.createElement)(N,null)},{label:(0,o.__)("Support","ultimate-spin-wheel"),value:"support",icon:(0,e.createElement)(i.g,{icon:s.QEm,className:"h-5 w-5"}),desc:(0,e.createElement)(z,null)}];new URLSearchParams(window.location.search).has("post_id")&&S.splice(2,0,{label:(0,o.__)("Configuration","ultimate-spin-wheel"),value:"config",icon:(0,e.createElement)(i.g,{icon:s.BH7,className:"h-5 w-5"}),desc:(0,e.createElement)(C,null)});const M=()=>{const t=USPIN_CONFIG_ADMIN.plugin_name.replace(/\s+/g,"")+"SpinWheel",[n,a]=(0,e.useState)(()=>{const e=window.location.hash.replace("#","");return e&&S.some(t=>t.value===e)?e:localStorage.getItem(t+"ActiveTab")||"dashboard"}),[r,o]=(0,e.useState)(()=>{const e=localStorage.getItem(t+"SidebarOpen");return null===e||"true"===e}),[i,s]=(0,e.useState)(window.innerWidth>=1280),c=e=>S.some(t=>t.value===e);return(0,e.useEffect)(()=>{const e=()=>{const e=window.location.hash.replace("#","");e&&c(e)&&a(e)};return window.addEventListener("hashchange",e),e(),()=>{window.removeEventListener("hashchange",e)}},[]),(0,e.useEffect)(()=>{const e=()=>{s(window.innerWidth>=1280)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,e.useEffect)(()=>{localStorage.setItem(t+"ActiveTab",n),window.location.hash=n},[n]),(0,e.useEffect)(()=>{localStorage.setItem(t+"SidebarOpen",r)},[r]),(0,e.useEffect)(()=>{const e=()=>{const e=window.location.hash.replace("#","");c(e)&&a(e)};return window.addEventListener("hashchange",e),e(),()=>{window.removeEventListener("hashchange",e)}},[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,null),(0,e.createElement)(v,{data:S,activeTab:n,onTabClick:e=>{a(e)},isSidebarOpen:r,toggleSidebar:()=>{o(!r)},isLargeScreen:i}),(0,e.createElement)(m,null))};if(document.getElementById("ultimate-spin-wheel")){const t=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",{className:"app-title"}),(0,e.createElement)(M,null));(0,n.H)(document.getElementById("ultimate-spin-wheel")).render((0,e.createElement)(a.D,null,(0,e.createElement)(t,null)))}})()})(); -
ultimate-spin-wheel/trunk/includes/admin/class-menu.php
r3344591 r3417307 50 50 ] ); 51 51 52 if ( ! ultimate_spin_wheel_pro_is_activated() ) {53 add_submenu_page( $parent_slug, esc_html__( 'Get PRO', 'ultimate-spin-wheel' ), esc_html__( 'Get PRO', 'ultimate-spin-wheel' ), $capability, $parent_slug . '#license', [54 $this,55 'plugin_layout',56 ] );57 }52 // if ( ! ultimate_spin_wheel_pro_is_activated() ) { 53 // add_submenu_page( $parent_slug, esc_html__( 'Get PRO', 'ultimate-spin-wheel' ), esc_html__( 'Get PRO', 'ultimate-spin-wheel' ), $capability, $parent_slug . '#license', [ 54 // $this, 55 // 'plugin_layout', 56 // ] ); 57 // } 58 58 59 if ( ultimate_spin_wheel_pro_is_activated() ) {59 // if ( ultimate_spin_wheel_pro_is_activated() ) { 60 60 add_submenu_page( $parent_slug, esc_html__( 'License', 'ultimate-spin-wheel' ), esc_html__( 'License', 'ultimate-spin-wheel' ), $capability, $parent_slug . '#license', [ 61 61 $this, 62 62 'plugin_layout', 63 63 ] ); 64 }64 // } 65 65 66 66 add_submenu_page( $parent_slug, esc_html__( 'Support', 'ultimate-spin-wheel' ), esc_html__( 'Support', 'ultimate-spin-wheel' ), $capability, $parent_slug . '#support', [ -
ultimate-spin-wheel/trunk/languages/ultimate-spin-wheel.pot
r3344591 r3417307 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Ultimate Spin Wheel - Gamify Your Store & Boost Sales 1.0. 3\n"5 "Project-Id-Version: Ultimate Spin Wheel - Gamify Your Store & Boost Sales 1.0.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ultimate-spin-wheel\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025- 08-14T10:55:05+00:00\n"12 "POT-Creation-Date: 2025-12-11T11:26:15+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 267 267 #: includes/admin/class-menu.php:47 268 268 msgid "Campaigns" 269 msgstr ""270 271 #: includes/admin/class-menu.php:53272 msgid "Get PRO"273 269 msgstr "" 274 270 -
ultimate-spin-wheel/trunk/modules/spin-wheel/class-entries.php
r3344591 r3417307 86 86 // Sanitize all incoming parameters 87 87 $filters = array( 88 'page' => isset( $_POST['page'] ) ? sanitize_text_field( wp_unslash( $_POST['page'] ) ) : 1,89 'per_page' => isset( $_POST['per_page'] ) ? sanitize_text_field( wp_unslash( $_POST['per_page'] ) ) : 20,90 'search' => isset( $_POST['search'] ) ? sanitize_text_field( wp_unslash( $_POST['search'] ) ) : '',91 'status' => isset( $_POST['status'] ) ? sanitize_text_field( wp_unslash( $_POST['status'] ) ) : '',92 'optin' => isset( $_POST['optin'] ) ? sanitize_text_field( wp_unslash( $_POST['optin'] ) ) : '',88 'page' => isset( $_POST['page'] ) ? sanitize_text_field( wp_unslash( $_POST['page'] ) ) : 1, 89 'per_page' => isset( $_POST['per_page'] ) ? sanitize_text_field( wp_unslash( $_POST['per_page'] ) ) : 20, 90 'search' => isset( $_POST['search'] ) ? sanitize_text_field( wp_unslash( $_POST['search'] ) ) : '', 91 'status' => isset( $_POST['status'] ) ? sanitize_text_field( wp_unslash( $_POST['status'] ) ) : '', 92 'optin' => isset( $_POST['optin'] ) ? sanitize_text_field( wp_unslash( $_POST['optin'] ) ) : '', 93 93 ); 94 94 -
ultimate-spin-wheel/trunk/modules/spin-wheel/class-module-init.php
r3344591 r3417307 84 84 'uspw_type', 85 85 'uspw_status', 86 // New campaign/popup meta fields (scalar values)87 'uspw_click_selector',88 86 'uspw_start_date', 89 87 'uspw_end_date', 90 'uspw_display_frequency', 91 'uspw_custom_css', 92 'uspw_custom_js', 88 'uspw_popup_settings', 93 89 ]; 94 90 -
ultimate-spin-wheel/trunk/modules/spin-wheel/class-spin-wheel.php
r3344591 r3417307 168 168 return false; 169 169 } 170 $triggers = isset( $spin_wheel_post->meta['uspw_campaign_triggers'] ) ? json_decode( $spin_wheel_post->meta['uspw_campaign_triggers'][0], true ) : array(); 171 172 // Build triggers_setup conditionally based on active triggers 173 $triggers_setup = array(); 174 175 if ( in_array( 'referrer', $triggers ) ) { 176 $triggers_setup['referrer_domains'] = json_decode( $spin_wheel_post->meta['uspw_referrer_domains'][0] ?? '[]', true ); 177 } 178 179 if ( in_array( 'scroll', $triggers ) ) { 180 $triggers_setup['scroll_percentage'] = json_decode( $spin_wheel_post->meta['uspw_scroll_percentage'][0] ?? '[]', true ); 181 } 182 183 if ( in_array( 'time_delay', $triggers ) ) { 184 $triggers_setup['time_delay'] = json_decode( $spin_wheel_post->meta['uspw_time_delay'][0] ?? '[]', true ); 185 } 186 187 if ( in_array( 'click', $triggers ) ) { 188 $triggers_setup['click_selector'] = json_decode( $spin_wheel_post->meta['uspw_click_selector'][0] ?? '[]', true ); 189 } 190 191 // Always include target_devices if you need it regardless of triggers 192 $triggers_setup['target_devices'] = json_decode( $spin_wheel_post->meta['uspw_target_devices'][0] ?? '[]', true ); 170 193 171 /** 194 172 * Get user name and email … … 203 181 'user_name' => $user_name, 204 182 'email' => $user_email, 205 'coupons' => $this->get_coupons_display( $spin_wheel_post->meta['uspw_coupons'] ?? array() ), 206 'collect_email' => isset( $spin_wheel_post->meta['ultimate_spin_wheel_collect_email'] ) ? $spin_wheel_post->meta['ultimate_spin_wheel_collect_email'] : true, 207 'triggers' => $triggers, 208 'triggers_setup' => $triggers_setup, 209 'display_setup' => array( 210 'display_frequency' => array( 211 'type' => isset( $spin_wheel_post->meta['uspw_display_frequency'] ) ? $spin_wheel_post->meta['uspw_display_frequency'] : '', 212 'custom_days' => isset( $spin_wheel_post->meta['uspw_custom_days'] ) ? intval( $spin_wheel_post->meta['uspw_custom_days'] ) : 7, 213 ), 214 ), 215 'custom_designs' => isset( $spin_wheel_post->meta['uspw_custom_designs'] ) ? json_decode( $spin_wheel_post->meta['uspw_custom_designs'][0], true ) : array(), 183 'collect_email' => isset( $spin_wheel_post->meta['uspw_collect_email'] ) ? $spin_wheel_post->meta['uspw_collect_email'] : true, 184 'popup_settings' => isset( $spin_wheel_post->meta['uspw_popup_settings'] ) ? json_decode( $spin_wheel_post->meta['uspw_popup_settings'][0], true ) : array(), 216 185 ); 217 186 … … 604 573 foreach ( $coupons as $coupon ) { 605 574 if ( isset( $coupon['label'] ) && isset( $coupon['color'] ) ) { 575 $probability = isset( $coupon['probability'] ) ? floatval( $coupon['probability'] ) : 1; 576 $_coupon_code = isset( $coupon['code'] ) ? $coupon['code'] : ''; 577 $coupon['code'] = ( $probability <= 1 ) ? 'NO_CODE' : $_coupon_code; 578 606 579 $coupon_data = array( 607 'label' => $coupon['label'], 608 'color' => $coupon['color'], 609 'code' => isset( $coupon['code'] ) ? $this->encrypt_coupon( $coupon['code'] ) : '', // Encrypt coupon code 580 'label' => $coupon['label'], 581 'color' => $coupon['color'], 582 'code' => isset( $coupon['code'] ) ? $this->encrypt_coupon( $coupon['code'] ) : '', // Encrypt coupon code 583 'probability' => $probability, 610 584 ); 611 585 … … 660 634 wp_enqueue_style( 'spin-wheel-style', USPIN_WHEEL_ASSETS_URL . 'css/modules/spin-wheel.css', array(), '1.0.0' ); 661 635 // todo: jquery for Blocks Themes 662 wp_register_script( 'spin-wheel', USPIN_WHEEL_ASSETS_URL . 'js/ modules/spin-wheel.min.js', array( 'jquery', 'wow-modal' ), '1.0.0', true );636 wp_register_script( 'spin-wheel', USPIN_WHEEL_ASSETS_URL . 'js/spin-wheel.js', array( 'jquery', 'wow-modal' ), '1.0.0', true ); 663 637 664 638 wp_enqueue_script( 'spin-wheel' ); … … 701 675 */ 702 676 $custom_designs = $this->settings['custom_designs'] ?? array(); 677 678 // Generate custom CSS 679 $custom_css = $this->generate_custom_css( $custom_designs, $spin_wheel_post->post_id ); 703 680 704 681 // Default values with fallbacks … … 715 692 $wheel_lost_text = $custom_designs['spinButton']['lostText'] ?? 'Go again?'; 716 693 694 $coupons = $this->get_coupons_display( $spin_wheel_post->meta['uspw_coupons'] ?? array() ); 695 717 696 ?> 718 <div class="ultimate-spin-wheel-spin-wheel spinWheel" data-sm-init="true" id="spin-wheel-<?php echo esc_attr( $spin_wheel_post->post_id ); ?>"> 697 <style> 698 <?php echo $custom_css; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 699 </style> 700 <div class="ultimate-spin-wheel spinWheel" data-sm-init="true" id="spin-wheel-<?php echo esc_attr( $spin_wheel_post->post_id ); ?>"> 719 701 <div class="wheelWrap"> 720 702 <div class="wheel" data-spin-circles="6" data-spin-speed="8s"> 721 <?php foreach ( $ this->settings['coupons']as $coupon ) : ?>703 <?php foreach ( $coupons as $coupon ) : ?> 722 704 <div class="area" 723 705 data-wheel-bg="<?php echo esc_attr( $coupon['color'] ); ?>" 724 706 data-wheel-prize="wins" 725 data-coupon-code="<?php echo esc_attr( $coupon['code'] ); ?>" 707 data-coupon-code="<?php echo esc_attr( $coupon['code'] ); ?>" 708 data-probability="<?php echo esc_attr( $coupon['probability'] ?? '1' ); ?>" 726 709 data-wheel-message="<?php echo esc_attr( $coupon['label'] ); ?>"> 727 710 <span><?php echo esc_html( $coupon['label'] ); ?></span> … … 740 723 <div class="sc-btn sc-coupon"> 741 724 <span class="sc-coupon-code">DUMMY_CODE</span> 742 <?php // echo esc_html( $coupon_win_text ); ?>743 725 <?php $this->svg_copy_icon(); ?> 744 726 </div> … … 768 750 <?php 769 751 } 752 753 /** 754 * Generate custom CSS for the spin wheel based on custom designs 755 */ 756 public function generate_custom_css( $custom_designs, $post_id ) { 757 $id = 'spin-wheel-' . $post_id; 758 759 $css_variables = array(); 760 761 // Only add variables if they exist in custom_designs 762 if ( isset( $custom_designs['viewPanel']['backgroundColor'] ) ) { 763 $css_variables[] = sprintf( '--panel-bg-color: %s;', esc_attr( $custom_designs['viewPanel']['backgroundColor'] ) ); 764 } 765 766 if ( isset( $custom_designs['spinButton']['color'] ) ) { 767 $css_variables[] = sprintf( '--spin-btn-color: %s;', esc_attr( $custom_designs['spinButton']['color'] ) ); 768 } 769 770 if ( isset( $custom_designs['spinButton']['backgroundColor'] ) ) { 771 $css_variables[] = sprintf( '--spin-btn-bg: %s;', esc_attr( $custom_designs['spinButton']['backgroundColor'] ) ); 772 } 773 774 if ( isset( $custom_designs['spinButton']['hoverColor'] ) ) { 775 $css_variables[] = sprintf( '--spin-btn-hover: %s;', esc_attr( $custom_designs['spinButton']['hoverColor'] ) ); 776 } 777 778 if ( isset( $custom_designs['spinButton']['fontSize'] ) ) { 779 $css_variables[] = sprintf( '--spin-btn-font-size: %s;', esc_attr( $custom_designs['spinButton']['fontSize'] ) ); 780 } 781 782 if ( isset( $custom_designs['formTitle']['color'] ) ) { 783 $css_variables[] = sprintf( '--form-title-color: %s;', esc_attr( $custom_designs['formTitle']['color'] ) ); 784 } 785 786 if ( isset( $custom_designs['formTitle']['fontSize'] ) ) { 787 $css_variables[] = sprintf( '--form-title-size: %s;', esc_attr( $custom_designs['formTitle']['fontSize'] ) ); 788 } 789 790 if ( isset( $custom_designs['formTitle']['fontWeight'] ) ) { 791 $css_variables[] = sprintf( '--form-title-weight: %s;', esc_attr( $custom_designs['formTitle']['fontWeight'] ) ); 792 } 793 794 if ( isset( $custom_designs['formSubmitButton']['color'] ) ) { 795 $css_variables[] = sprintf( '--form-submit-color: %s;', esc_attr( $custom_designs['formSubmitButton']['color'] ) ); 796 } 797 798 if ( isset( $custom_designs['formSubmitButton']['backgroundColor'] ) ) { 799 $css_variables[] = sprintf( '--form-submit-bg: %s;', esc_attr( $custom_designs['formSubmitButton']['backgroundColor'] ) ); 800 } 801 802 if ( isset( $custom_designs['formSubmitButton']['hoverColor'] ) ) { 803 $css_variables[] = sprintf( '--form-submit-hover: %s;', esc_attr( $custom_designs['formSubmitButton']['hoverColor'] ) ); 804 } 805 806 if ( isset( $custom_designs['formSubmitButton']['fontSize'] ) ) { 807 $css_variables[] = sprintf( '--form-submit-size: %s;', esc_attr( $custom_designs['formSubmitButton']['fontSize'] ) ); 808 } 809 810 if ( isset( $custom_designs['formSubmitButton']['borderRadius'] ) ) { 811 $css_variables[] = sprintf( '--form-submit-radius: %dpx;', intval( $custom_designs['formSubmitButton']['borderRadius'] ) ); 812 } 813 814 if ( isset( $custom_designs['formInputs']['borderColor'] ) ) { 815 $css_variables[] = sprintf( '--input-border: %s;', esc_attr( $custom_designs['formInputs']['borderColor'] ) ); 816 } 817 818 if ( isset( $custom_designs['formInputs']['focusColor'] ) ) { 819 $css_variables[] = sprintf( '--input-focus: %s;', esc_attr( $custom_designs['formInputs']['focusColor'] ) ); 820 } 821 822 if ( isset( $custom_designs['privacyText']['color'] ) ) { 823 $css_variables[] = sprintf( '--privacy-color: %s;', esc_attr( $custom_designs['privacyText']['color'] ) ); 824 } 825 826 if ( isset( $custom_designs['privacyText']['fontSize'] ) ) { 827 $css_variables[] = sprintf( '--privacy-size: %s;', esc_attr( $custom_designs['privacyText']['fontSize'] ) ); 828 } 829 830 if ( isset( $custom_designs['prizeWonTitle']['color'] ) ) { 831 $css_variables[] = sprintf( '--prize-title-color: %s;', esc_attr( $custom_designs['prizeWonTitle']['color'] ) ); 832 } 833 834 if ( isset( $custom_designs['prizeWonTitle']['fontSize'] ) ) { 835 $css_variables[] = sprintf( '--prize-title-size: %s;', esc_attr( $custom_designs['prizeWonTitle']['fontSize'] ) ); 836 } 837 838 if ( isset( $custom_designs['prizeWonMsg']['color'] ) ) { 839 $css_variables[] = sprintf( '--prize-msg-color: %s;', esc_attr( $custom_designs['prizeWonMsg']['color'] ) ); 840 } 841 842 if ( isset( $custom_designs['prizeWonMsg']['fontSize'] ) ) { 843 $css_variables[] = sprintf( '--prize-msg-size: %s;', esc_attr( $custom_designs['prizeWonMsg']['fontSize'] ) ); 844 } 845 846 if ( isset( $custom_designs['prizeLostTitle']['color'] ) ) { 847 $css_variables[] = sprintf( '--lost-title-color: %s;', esc_attr( $custom_designs['prizeLostTitle']['color'] ) ); 848 } 849 850 if ( isset( $custom_designs['prizeLostTitle']['fontSize'] ) ) { 851 $css_variables[] = sprintf( '--lost-title-size: %s;', esc_attr( $custom_designs['prizeLostTitle']['fontSize'] ) ); 852 } 853 854 if ( isset( $custom_designs['couponButton']['color'] ) ) { 855 $css_variables[] = sprintf( '--coupon-btn-color: %s;', esc_attr( $custom_designs['couponButton']['color'] ) ); 856 } 857 858 if ( isset( $custom_designs['couponButton']['backgroundColor'] ) ) { 859 $css_variables[] = sprintf( '--coupon-btn-bg: %s;', esc_attr( $custom_designs['couponButton']['backgroundColor'] ) ); 860 } 861 862 if ( isset( $custom_designs['couponButton']['hoverColor'] ) ) { 863 $css_variables[] = sprintf( '--coupon-btn-hover: %s;', esc_attr( $custom_designs['couponButton']['hoverColor'] ) ); 864 } 865 866 if ( isset( $custom_designs['couponButton']['borderRadius'] ) ) { 867 $css_variables[] = sprintf( '--coupon-btn-radius: %dpx;', intval( $custom_designs['couponButton']['borderRadius'] ) ); 868 } 869 870 if ( isset( $custom_designs['wheel']['lostColor'] ) ) { 871 $css_variables[] = sprintf( '--wheel-lost-color: %s;', esc_attr( $custom_designs['wheel']['lostColor'] ) ); 872 } 873 874 if ( isset( $custom_designs['wheel']['borderColor'] ) ) { 875 $css_variables[] = sprintf( '--wheel-border-color: %s;', esc_attr( $custom_designs['wheel']['borderColor'] ) ); 876 } 877 878 if ( isset( $custom_designs['wheel']['borderWidth'] ) ) { 879 $css_variables[] = sprintf( '--wheel-border-width: %dpx;', intval( $custom_designs['wheel']['borderWidth'] ) ); 880 } 881 882 if ( empty( $css_variables ) ) { 883 return ''; 884 } 885 886 $css = sprintf( 887 '/* Spin Wheel Custom Styles */ 888 #%s { 889 %s 890 }', 891 esc_attr( $id ), 892 implode( "\n ", $css_variables ) 893 ); 894 895 return $css; 896 } 770 897 } -
ultimate-spin-wheel/trunk/readme.txt
r3344591 r3417307 3 3 Donate link: https://wowdevs.com/plugins/ultimate-spin-wheel 4 4 Tags: spin wheel, coupon wheel, discount wheel, WooCommerce, prize wheel 5 Stable tag: 1.0. 35 Stable tag: 1.0.4 6 6 Requires PHP: 7.4 7 7 Requires at least: 6.1 8 Tested up to: 6. 88 Tested up to: 6.9 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Create engaging spin-to-win popups that boost conversions, capture emails, and reduce cart abandonmentwith customizable discount wheels.12 Transform visitors into customers with engaging spin-to-win popups. Capture emails, reduce cart abandonment, and boost conversions with customizable discount wheels. 13 13 14 14 == Description == … … 16 16 🎰 **The Most Powerful Spin Wheel Plugin for WooCommerce Stores** 17 17 18 Ultimate Spin Wheel is the complete gamification solution that turns your boring website into an exciting, interactive experience. Watch your conversion rates soar as visitors spin to win amazing discounts, free shipping, and exclusive offers!19 20 🎯 Transform visitors into customers with the Ultimate Spin Wheel! Create engaging, interactive spin-to-win popups that capture emails, reduce bounce rates, and skyrocket conversions with irresistible discount wheels and prize games. 18 Ultimate Spin Wheel turns your website into an exciting, interactive experience that increases conversions by up to 300%. Create engaging spin-to-win popups that capture emails, reduce bounce rates, and recover abandoning customers. 19 20 https://youtu.be/dV49T8nQNxo 21 21 22 22 **🚀 Why Choose Ultimate Spin Wheel?** 23 23 24 ✅ **Instant Sales Boost** - Increase conversions by up to 300% with irresistible spin-to-win offers 25 ✅ **Email List Growth** - Capture qualified leads with engaging opt-in experiences 26 ✅ **Reduce Cart Abandonment** - Use exit-intent triggers to recover leaving customers 27 ✅ **Mobile-First Design** - Stunning, responsive wheels that work perfectly on all devices 28 ✅ **Zero Coding Required** - Intuitive drag-and-drop builder anyone can use 29 30 **🎨 Advanced Customization Features:** 24 ✅ Instant Sales Boost - Up to 300% conversion increase 25 ✅ Email List Growth - Capture qualified leads effortlessly 26 ✅ Reduce Cart Abandonment - Exit-intent triggered offers 27 ✅ Mobile-First Design - Responsive across all devices 28 ✅ Zero Coding Required - Intuitive drag-and-drop builder 29 ✅ Advanced Features - Maximum customization options 30 ✅ Optimized Performance - Minimal site impact (<0.1s load) 31 ✅ Professional Design - Modern interface that converts 32 ✅ Comprehensive Analytics - Detailed campaign insights 33 ✅ Outstanding Support - Responsive team with documentation 34 ✅ Regular Updates - Continuous improvements 35 ✅ Fair Pricing - Best market value 36 37 **🎨 Core Features** 31 38 32 39 🎪 **Visual Wheel Builder** 33 - Unlimited wheel slices and segments 34 - Custom colors, gradients, and backgrounds 35 - Upload your own images and logos 36 - Advanced typography controls 37 - Animation speed and easing options 40 - Unlimited wheel slices with custom colors, gradients, and backgrounds 41 - Upload custom images and logos 42 - Advanced typography and animation controls 43 - Sound effects and celebration animations 38 44 39 45 🎯 **Smart Targeting & Triggers** 40 - Exit intent detection (rescue abandoning visitors) 41 - Time-based delays (engage after X seconds) 42 - Scroll percentage triggers (activate at 50% scroll) 43 - Page-specific targeting (homepage, product pages, checkout) 44 - Device targeting (desktop, tablet, mobile only) 45 - User behavior tracking (new vs returning visitors) 46 - Geographic targeting capabilities 47 48 🏆 **Reward Management System** 49 - WooCommerce coupon auto-generation 50 - Percentage discounts (10%, 20%, 50% off) 51 - Fixed amount discounts ($5, $10, $25 off) 46 - Exit intent detection 47 - Time-based delays 48 - Scroll percentage triggers 49 - Page and device-specific targeting 50 - Geographic targeting 51 - New vs returning visitor detection 52 53 🏆 **Reward Management** 54 - Auto-generated WooCommerce coupons 55 - Percentage and fixed discounts 52 56 - Free shipping offers 53 57 - Buy-one-get-one deals 54 - Custom prize messages55 - Winning probability controls58 - Customizable prize messages 59 - Probability controls 56 60 57 61 📧 **Email Marketing Integration** 58 62 - Built-in email capture forms 59 63 - GDPR compliant data collection 60 - Export to CSV/Excel formats64 - CSV/Excel export 61 65 - Constant Contact compatibility 62 66 63 📊 **Analytics & Performance Tracking**67 📊 **Analytics Dashboard** 64 68 - Real-time spin statistics 65 - Conversion rate monitoring69 - Conversion rate tracking 66 70 - Email capture analytics 67 - Revenue attribution tracking 68 - Detailed user journey analysis 71 - Revenue attribution 72 - Geographical and device data 73 - Time-based performance charts 69 74 70 75 🛡️ **Security & Compliance** 71 76 - Anti-spam protection 72 - Fraud detection algorithms77 - Fraud detection 73 78 - GDPR compliance tools 74 79 - Cookie consent integration 75 80 - IP-based restrictions 76 - Rate limiting controls 77 78 **🎮 Game Mechanics & Psychology** 79 - Customizable win/lose ratios 80 - Near-miss animations (psychological triggers) 81 - Celebration effects and confetti 82 - Daily spin limits 83 - Loyalty point integration 81 - Rate limiting 84 82 85 83 **🔧 Technical Excellence** 86 84 - Lightning-fast loading (<1s) 87 85 - SEO-friendly implementation 88 - Cache plugin compatib ility86 - Cache plugin compatible 89 87 - Multi-language support (WPML ready) 90 88 - RTL language support 91 - Accessibility compliant (WCAG 2.1) 92 - Cross-browser compatibility 89 - WCAG 2.1 accessibility compliant 90 - Cross-browser compatible 91 92 **🎯 Perfect For:** 93 - E-commerce stores wanting to boost sales 94 - Businesses focused on email list building 95 - Marketers looking to gamify funnels 96 - Agencies managing multiple campaigns 97 - Mobile-first businesses 98 - International stores with multi-language needs 93 99 94 100 == Installation == 95 101 96 ** 🚀Quick Setup in Under 5 Minutes!**102 **Quick Setup in Under 5 Minutes!** 97 103 98 104 **Method 1: WordPress Admin (Recommended)** … … 107 113 2. Upload to `/wp-content/plugins/ultimate-spin-wheel` directory 108 114 3. Activate through the 'Plugins' menu in WordPress 109 4. Access the plugin settings via `Ultimate Spin Wheel` menu110 115 111 116 **Method 3: FTP Upload** 112 117 1. Unzip the plugin file 113 118 2. Upload the `ultimate-spin-wheel` folder to `/wp-content/plugins/` 114 3. Activate the plugin through WordPress admin 115 116 **📋 Post-Installation Checklist:** 117 - ✅ Verify WooCommerce is installed and active 118 - ✅ Configure your first spin wheel prizes 119 - ✅ Set up email capture settings 120 - ✅ Test the wheel on different devices 121 - ✅ Review analytics dashboard 122 123 **🎯 Quick Start Guide:** 124 1. Create your first wheel with pre-made templates 125 2. Add prizes (discounts, free shipping, etc.) 126 3. Customize appearance to match your brand 127 4. Set display triggers and targeting rules 128 5. Launch and start converting visitors! 119 3. Activate through WordPress admin 129 120 130 121 == Frequently Asked Questions == 131 122 132 **🎪 General Questions** 123 = Can I control winning probabilities? = 124 Yes! You have granular control over individual prize chances, overall win/lose ratios, time-based changes, and user-specific rules. 133 125 134 126 = How can Ultimate Spin Wheel increase my sales? = 135 Ultimate Spin Wheel leverages proven gamification psychology to boost conversions by 200-300%. It captures emails, reduces bounce rates, prevents cart abandonment with exit-intent triggers, and creates engaging experiences that turn visitors into customers. The interactive nature makes discounts feel earned rather than given away. 127 Ultimate Spin Wheel leverages gamification psychology to boost conversions by 200-300%. It captures emails, reduces bounce rates, prevents cart abandonment, and creates engaging experiences that turn visitors into customers. 128 129 = How many prizes can I add to the wheel? = 130 Unlimited! Popular configurations include 6-8 segments for balanced gameplay, 12+ segments for variety, or mixed high-value and smaller prizes. 131 132 = What types of rewards can I offer? = 133 Percentage discounts (5-50% off), fixed amounts ($5-$25 off), free shipping, BOGO deals, free samples, loyalty points, and custom messages. 134 135 = When does the spin wheel appear? = 136 Complete control with triggers: page load, time delay, scroll percentage, exit intent, specific pages, or for specific user types. 137 138 = Can I target specific visitors? = 139 Yes! Target by geography, device type, browser, traffic source, user behavior, and time-based rules. 140 141 = How do I prevent spam or abuse? = 142 Built-in protection includes IP restrictions, email validation, rate limiting, fraud detection, honeypot protection, and moderation options. 136 143 137 144 = Is Ultimate Spin Wheel compatible with my theme and plugins? = 138 Yes! Ultimate Spin Wheel works with ALL WordPress themes and is compatible with major plugins including WooCommerce, Elementor, Divi, WPBakery, Gutenberg, WPML, Yoast SEO, and caching plugins like WP Rocket and W3 Total Cache.145 Yes! Works with all WordPress themes and major plugins: WooCommerce, Elementor, Divi, WPBakery, Gutenberg, WPML, Yoast SEO, and caching plugins. 139 146 140 147 = Can I customize the wheel design to match my brand? = 141 Absolutely! You have complete design control including: 142 - Custom colors, gradients, and backgrounds 143 - Upload your own logos and images 144 - Advanced typography settings 145 - Animation speeds and effects 146 - Sound controls and celebrations 147 - Mobile-responsive layouts 148 149 **🎯 Technical Questions** 148 Absolutely! Custom colors, gradients, logos, images, typography, animation speeds, sound controls, and mobile-responsive layouts. 150 149 151 150 = Does it work on mobile devices? = 152 Yes! Ultimate Spin Wheel is built mobile-first with touch-optimized interactions. The wheel automatically adapts to all screen sizes and provides smooth spinning on iOS, Android, and all mobile browsers.151 Yes! Built mobile-first with touch-optimized interactions that adapt to all screen sizes. 153 152 154 153 = Will it slow down my website? = 155 No! The plugin is optimized for speed with: 156 - Lazy loading technology 157 - Compressed assets 158 - CDN-ready files 159 - Cache compatibility 160 - Loads only when needed (trigger-based) 161 - Average load time impact: <0.1 seconds 154 No! Optimized with lazy loading, compressed assets, CDN-ready files, and trigger-based loading. Average impact: <0.1 seconds. 162 155 163 156 = Is it GDPR compliant? = 164 Yes! Ultimate Spin Wheel includes: 165 - Built-in GDPR compliance tools 166 - Cookie consent integration 167 - Data export/deletion capabilities 168 - Privacy policy integration 169 - Explicit consent mechanisms 170 - Secure data storage 171 172 **🏆 Features & Customization** 173 174 = How many prizes can I add to the wheel? = 175 Unlimited! You can create as many wheel segments as needed. Popular configurations include: 176 - 6-8 segments for balanced gameplay 177 - 12+ segments for variety 178 - Mix of high-value and smaller prizes 179 - "Try again" or "Better luck next time" segments 180 181 = Can I control winning probabilities? = 182 Yes! You have granular control over: 183 - Individual prize winning chances 184 - Overall win/lose ratios 185 - Time-based probability changes 186 - User-specific winning rules 187 - Inventory-based prize availability 188 189 = What types of rewards can I offer? = 190 Ultimate Spin Wheel supports: 191 - Percentage discounts (5%, 10%, 25%, 50% off) 192 - Fixed amount discounts ($5, $10, $25 off) 193 - Free shipping offers 194 - Buy-one-get-one deals 195 - Free product samples 196 - Loyalty points 197 - Custom messages and non-monetary prizes 198 199 **📧 Email Marketing** 200 201 = How does email capture work? = 202 The wheel requires email entry before spinning, creating a natural lead magnet. Features include: 203 - Customizable opt-in forms 204 - Double opt-in support 205 - Export to CSV/Excel 206 - Integration with major email platforms 207 - Automatic list segmentation 208 - Welcome email automation 209 210 = Can I integrate with my email marketing service? = 211 Yes! (Upcoming) Ultimate Spin Wheel integrates with: 212 - MailChimp 213 - Constant Contact 214 - AWeber 215 - ConvertKit 216 - GetResponse 217 - ActiveCampaign 218 - And many more via Zapier 219 220 **🎮 Gameplay & Triggers** 221 222 = When does the spin wheel appear? = 223 You have complete control with multiple trigger options: 224 - Immediately on page load 225 - After X seconds delay 226 - When user scrolls X% down the page 227 - Exit intent (when about to leave) 228 - On specific pages or products 229 - For specific user types (new vs returning) 230 231 = Can I target specific visitors? = 232 Yes! Advanced targeting includes: 233 - Geographic targeting (countries, states, cities) 234 - Device targeting (desktop, tablet, mobile) 235 - Browser targeting 236 - Traffic source targeting 237 - User behavior targeting 238 - Time-based targeting (days, hours) 239 240 = How do I prevent spam or abuse? = 241 Built-in protection includes: 242 - IP-based restrictions 243 - Email validation 244 - Rate limiting (one spin per email/IP) 245 - Fraud detection algorithms 246 - Honeypot protection 247 - Manual moderation options 248 249 **📊 Analytics & Reporting** 250 251 = What analytics are included? = 252 Comprehensive reporting dashboard with: 253 - Total spins and conversions 254 - Email capture rates 255 - Prize distribution analytics 256 - Revenue attribution 257 - Geographical data 258 - Device and browser statistics 259 - Time-based performance charts 260 261 **🛠️ Setup & Support** 262 263 = Do I need coding skills to use this plugin? = 264 Not at all! Ultimate Spin Wheel features: 265 - Intuitive drag-and-drop builder 266 - Pre-made templates 267 - One-click setup wizard 268 - Visual customization tools 269 - No code required anywhere 270 271 = What support do you provide? = 272 We offer comprehensive support including: 273 - Detailed documentation 274 - Video tutorials 275 - Email support 276 - Community forums 277 - Live chat assistance 278 - Setup consultation (premium plans) 279 280 = Is there a money-back guarantee? = 281 Yes! We offer a 30-day money-back guarantee. If you're not completely satisfied with Ultimate Spin Wheel's performance, we'll refund your purchase - no questions asked. 157 Yes! Includes GDPR compliance tools, cookie consent integration, data export/deletion, privacy policy integration, and explicit consent mechanisms. 158 159 = Do I need coding skills? = 160 Not at all! Features include drag-and-drop builder, pre-made templates, one-click wizard, and visual customization tools. 161 162 = How can I contribute? = 163 Visit our GitHub repository: [https://github.com/wowdevs-public/ultimate-spin-wheel/](https://github.com/wowdevs-public/ultimate-spin-wheel/) 282 164 283 165 == Screenshots == 284 166 285 1. **🎰 Interactive Spin Wheel Popup** - Beautiful, mobile-responsive wheel with customizable design and smooth animations 286 2. **🎨 Visual Wheel Builder** - Drag-and-drop interface for creating stunning wheels without any coding 287 3. **📊 Analytics Dashboard** - Comprehensive reporting with conversion tracking, email analytics, and performance metrics 288 4. **🎯 Targeting & Triggers** - Advanced display options including exit intent, scroll triggers, and device targeting 289 5. **🏆 Prize Management** - Easy-to-use interface for setting up discounts, coupons, and custom rewards 290 6. **📧 Email Capture Form** - Seamless lead generation with GDPR-compliant data collection 291 7. **🎪 Customization Options** - Complete design control with colors, fonts, images, and animations 292 8. **📱 Mobile Experience** - Touch-optimized interface that works perfectly on all mobile devices 293 9. **⚙️ Settings Panel** - Intuitive configuration options for all plugin features 294 10. **🎉 Winner Celebration** - Engaging success animations and prize revelation effects 295 296 == Other Notes == 297 298 **🌟 Why Choose Ultimate Spin Wheel Over Competitors?** 299 300 ✅ **Most Advanced Features** - More customization options than any other spin wheel plugin 301 ✅ **Better Performance** - Optimized code that doesn't slow down your site 302 ✅ **Superior Design** - Professional, modern interface that converts better 303 ✅ **Comprehensive Analytics** - Detailed insights to optimize your campaigns 304 ✅ **Outstanding Support** - Responsive team with extensive documentation 305 ✅ **Regular Updates** - Continuous improvements and new features 306 ✅ **Fair Pricing** - Best value for money in the market 307 308 **🎯 Perfect For:** 309 - 🛒 E-commerce stores wanting to boost sales 310 - 📧 Businesses focused on email list building 311 - 🎪 Marketers looking to gamify their funnels 312 - 🚀 Agencies managing multiple client campaigns 313 - 📱 Mobile-first businesses 314 - 🌍 International stores with multi-language needs 167 1. Interactive Spin Wheel Popup - Beautiful, responsive wheel with smooth animations 168 2. Visual Wheel Builder - Drag-and-drop interface for custom wheels 169 3. Analytics Dashboard - Conversion tracking and performance metrics 170 4. Targeting & Triggers - Advanced display options 171 5. Prize Management - Easy setup for discounts and rewards 172 6. Email Capture Form - GDPR-compliant lead generation 173 7. Customization Options - Complete design control 174 8. Mobile Experience - Touch-optimized interface 175 9. Settings Panel - Intuitive configuration options 176 10. Winner Celebration - Engaging animations and effects 315 177 316 178 **🔗 Useful Links:** 317 179 - [Plugin Homepage](https://wowdevs.com/plugins/ultimate-spin-wheel) 318 - [Live Demo](https://demo.wowdevs.com/ ultimate-spin-wheel)180 - [Live Demo](https://demo.wowdevs.com/spin-wheel/) 319 181 - [Documentation](https://wowdevs.com/docs/spin-wheel/) 320 - [Video Tutorials](https://www.youtube.com/ @wowdevs?sub_confirmation=1)182 - [Video Tutorials](https://www.youtube.com/watch?v=dV49T8nQNxo?sub_confirmation=1) 321 183 - [Support Forum](https://wowdevs.com/support) 322 - [Feature Requests](https://wowdevs.com/support) 323 324 **🚀 Get Started Today!** 325 Transform your website into an engaging, conversion-optimized experience. Install Ultimate Spin Wheel now and watch your email list grow while sales skyrocket! 184 185 == Source Code == 186 Development happens on GitHub: 187 [https://github.com/wowdevs-public/ultimate-spin-wheel/](https://github.com/wowdevs-public/ultimate-spin-wheel/) 188 326 189 327 190 == Changelog == 328 191 329 = 1.0.3 [13th Aug 2025] = 330 331 🎉 **Major Release - Feature-Packed Launch** 332 333 **New Features:** 334 * ✨ Complete wheel builder with unlimited customization 335 * 🎯 Advanced targeting and trigger systems 336 * 📧 Built-in email capture with CSV export 337 * 📊 Comprehensive analytics dashboard 338 * 🎨 Professional design templates 339 * 📱 Mobile-first responsive design 340 * 🛡️ GDPR compliance tools 341 * 🎪 Gamification psychology features 342 * ⚡ Lightning-fast performance optimization 343 * 🌐 Cross-browser compatibility 344 * 🛡️ Anti-spam protection 345 * 🎨 Multi-wheel campaigns 192 = 1.0.4 [1st November 2025] = 193 * Improved: Complete system improvements 194 195 = 1.0.3 [13th August 2025] = 196 * Added: Complete wheel builder with unlimited customization 197 * Added: Advanced targeting and trigger systems 198 * Added: Built-in email capture with CSV export 199 * Added: Comprehensive analytics dashboard 200 * Added: Professional design templates 201 * Added: Mobile-first responsive design 202 * Added: GDPR compliance tools 203 * Added: Gamification psychology features 204 * Added: Lightning-fast performance optimization 205 * Added: Cross-browser compatibility 206 * Added: Anti-spam protection 207 * Added: Multi-wheel campaigns -
ultimate-spin-wheel/trunk/ultimate-spin-wheel.php
r3344591 r3417307 4 4 * Plugin URI: https://wowdevs.com/plugins/ultimate-spin-wheel 5 5 * Description: The Ultimate Spin Wheel plugin allows you to engage your visitors with an interactive cart that offers coupons and other rewards, seamlessly integrated with WooCommerce. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Requires at least: 6.1 8 8 * Requires PHP: 7.4 … … 27 27 } 28 28 29 define( 'USPIN_WHEEL_VERSION', '1.0. 3' );29 define( 'USPIN_WHEEL_VERSION', '1.0.4' ); 30 30 31 31 define( 'USPIN_WHEEL_NAME', 'Spin Wheel' ); … … 178 178 'deactivate_feedback' => true, 179 179 // 'delay_time' => array( 180 // 'time' => 3 * DAY_IN_SECONDS,180 // 'time' => 3 * DAY_IN_SECONDS, 181 181 // ), 182 182 'text_domain' => 'ultimate-spin-wheel', … … 205 205 'sdk_version' => '1.0.0', 206 206 'plugin_name' => 'Ultimate Spin Wheel', 207 'plugin_icon' => USPIN_WHEEL_ASSETS_URL . 'images/ ultimate-spin-wheel-logo-gradient.svg',207 'plugin_icon' => USPIN_WHEEL_ASSETS_URL . 'images/logo.png', 208 208 'slug' => 'ultimate-spin-wheel', 209 209 'menu' => array(
Note: See TracChangeset
for help on using the changeset viewer.