sanity-plugin-all-in-one-accessibility 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +160 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1096 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1099 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +99 -0
- package/sanity.json +8 -0
- package/src/assets/css/bootstrap.min.css +11722 -0
- package/src/assets/css/style.css +3204 -0
- package/src/assets/css/style.css--06-Nov-2023.css +1102 -0
- package/src/assets/css/style.css.map +1 -0
- package/src/assets/css/style.scss +2730 -0
- package/src/assets/images/ada.svg +17 -0
- package/src/assets/images/aioa-icon-type-1.svg +1 -0
- package/src/assets/images/aioa-icon-type-10.svg +1 -0
- package/src/assets/images/aioa-icon-type-11.svg +1 -0
- package/src/assets/images/aioa-icon-type-12.svg +1 -0
- package/src/assets/images/aioa-icon-type-13.svg +1 -0
- package/src/assets/images/aioa-icon-type-14.svg +29 -0
- package/src/assets/images/aioa-icon-type-15.svg +26 -0
- package/src/assets/images/aioa-icon-type-16.svg +17 -0
- package/src/assets/images/aioa-icon-type-17.svg +24 -0
- package/src/assets/images/aioa-icon-type-18.svg +20 -0
- package/src/assets/images/aioa-icon-type-19.svg +25 -0
- package/src/assets/images/aioa-icon-type-1_new.svg +1 -0
- package/src/assets/images/aioa-icon-type-2.svg +1 -0
- package/src/assets/images/aioa-icon-type-20.svg +24 -0
- package/src/assets/images/aioa-icon-type-21.svg +28 -0
- package/src/assets/images/aioa-icon-type-22.svg +21 -0
- package/src/assets/images/aioa-icon-type-23.svg +21 -0
- package/src/assets/images/aioa-icon-type-24.svg +21 -0
- package/src/assets/images/aioa-icon-type-25.svg +15 -0
- package/src/assets/images/aioa-icon-type-26.svg +23 -0
- package/src/assets/images/aioa-icon-type-27.svg +21 -0
- package/src/assets/images/aioa-icon-type-28.svg +27 -0
- package/src/assets/images/aioa-icon-type-29.svg +25 -0
- package/src/assets/images/aioa-icon-type-3.svg +1 -0
- package/src/assets/images/aioa-icon-type-4.svg +16 -0
- package/src/assets/images/aioa-icon-type-5.svg +1 -0
- package/src/assets/images/aioa-icon-type-6.svg +1 -0
- package/src/assets/images/aioa-icon-type-7.svg +1 -0
- package/src/assets/images/aioa-icon-type-8.svg +1 -0
- package/src/assets/images/aioa-icon-type-9.svg +1 -0
- package/src/assets/images/all-in-one-accessibility-logo.svg +43 -0
- package/src/assets/images/checkbox.svg +14 -0
- package/src/assets/images/error.svg +18 -0
- package/src/assets/images/large-site-icon.svg +1 -0
- package/src/assets/images/medium-site-icon.svg +1 -0
- package/src/assets/images/no-ada.svg +17 -0
- package/src/assets/images/noun-digital-enterprise.svg +9 -0
- package/src/assets/images/small-site-icon.svg +1 -0
- package/src/assets/images/success.svg +13 -0
- package/src/assets.zip +0 -0
- package/src/icon.tsx +2 -0
- package/src/index.ts +76 -0
- package/src/plugin.tsx +1816 -0
- package/v2-incompatible.js +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1096 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
3
|
+
var sanity = require("sanity"), jsxRuntime = require("react/jsx-runtime"), react = require("react"), reactBootstrap = require("react-bootstrap");
|
|
4
|
+
const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx("img", { src: "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-1.svg", alt: "All in One Accessibility", height: 20, width: 20 }), aioaicontype1 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-1.svg", aioaicontype2 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-2.svg", aioaicontype3 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-3.svg", aioaicontype4 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-4.svg", aioaicontype5 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-5.svg", aioaicontype6 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-6.svg", aioaicontype7 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-7.svg", aioaicontype8 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-8.svg", aioaicontype9 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-9.svg", aioaicontype10 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-10.svg", aioaicontype11 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-11.svg", aioaicontype12 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-12.svg", aioaicontype13 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-13.svg", aioaicontype14 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-14.svg", aioaicontype15 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-15.svg", aioaicontype16 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-16.svg", aioaicontype17 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-17.svg", aioaicontype18 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-18.svg", aioaicontype19 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-19.svg", aioaicontype20 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-20.svg", aioaicontype21 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-21.svg", aioaicontype22 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-22.svg", aioaicontype23 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-23.svg", aioaicontype24 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-24.svg", aioaicontype25 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-25.svg", aioaicontype26 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-26.svg", aioaicontype27 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-27.svg", aioaicontype28 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-28.svg", aioaicontype29 = "https://sanity.skynettechnologies.us/assets/images/aioa-icon-type-29.svg", allinoneaccessibilitylogo = "https://sanity.skynettechnologies.us/assets/images/all-in-one-accessibility-logo.svg", HomePage = () => {
|
|
5
|
+
const [isValid, setIsValid] = react.useState(!1);
|
|
6
|
+
react.useState("");
|
|
7
|
+
const [parameters, setParameters] = react.useState({
|
|
8
|
+
hexaColor: "",
|
|
9
|
+
widget_size: "0",
|
|
10
|
+
position: "bottom_right",
|
|
11
|
+
icontype: "aioa-icon-type-1",
|
|
12
|
+
iconsize: "aioa-default-icon"
|
|
13
|
+
}), [widgetSettings, setWidgetSettings] = react.useState({
|
|
14
|
+
widget_icon_size_custom: "",
|
|
15
|
+
custom_position_x_value: "",
|
|
16
|
+
custom_position_y_value: "",
|
|
17
|
+
custom_position_left_right: "To the top",
|
|
18
|
+
custom_position_top_bottom: "To the left"
|
|
19
|
+
}), [isSwitcherEnabled, setSwitcherEnabled] = react.useState(!1), [isSizeSwitcherEnabled, setSizeSwitcherEnabled] = react.useState(!1), [iconsize, setIconSize] = react.useState(aioaicontype1), [settingList, setSetting] = react.useState({});
|
|
20
|
+
react.useState(!1);
|
|
21
|
+
const [showSuccessMessage, setShowSuccessMessage] = react.useState(!1), [userData, setUserData] = react.useState(null);
|
|
22
|
+
react.useEffect(() => {
|
|
23
|
+
console.log("settingList (outside): ", settingList), Object.keys(settingList).length !== 0 && (console.log("Color Code", settingList.Color_Code), console.log("Icon Position", settingList.Icon_Position), console.log("Icon Type", settingList.Icon_Type), console.log("Icon Size", settingList.Icon_Size), setParameters({
|
|
24
|
+
hexaColor: settingList.Color_Code,
|
|
25
|
+
position: settingList.Icon_Position,
|
|
26
|
+
icontype: settingList.Icon_Type,
|
|
27
|
+
iconsize: settingList.Icon_Size,
|
|
28
|
+
widget_size: "0"
|
|
29
|
+
}), settingList.Icon_Type === "aioa-icon-type-2" ? setIconSize(aioaicontype2) : settingList.Icon_Type === "aioa-icon-type-3" ? setIconSize(aioaicontype3) : setIconSize(aioaicontype1)), getAPIData();
|
|
30
|
+
}, [settingList]), react.useEffect(() => {
|
|
31
|
+
console.log(parameters), console.log("parameters.position : ", parameters.position === "bottom_center");
|
|
32
|
+
}, [parameters]), react.useEffect(() => {
|
|
33
|
+
}, []);
|
|
34
|
+
const currentUser = sanity.useCurrentUser();
|
|
35
|
+
react.useEffect(() => {
|
|
36
|
+
currentUser && setUserData({
|
|
37
|
+
name: currentUser.name,
|
|
38
|
+
email: currentUser.email
|
|
39
|
+
});
|
|
40
|
+
}, [currentUser]);
|
|
41
|
+
const onSaveChanges = async () => {
|
|
42
|
+
saveData(parameters);
|
|
43
|
+
}, saveData = (data) => {
|
|
44
|
+
const formdata = new FormData(), widget_icon_size_custom = document.getElementById("widget_icon_size_custom")?.value || "", custom_position_x_value = document.getElementById("custom_position_x_value")?.value || "", custom_position_y_value = document.getElementById("custom_position_y_value")?.value || "", custom_position_left_right = document.getElementById("custom_position_left_right")?.value || "";
|
|
45
|
+
document.getElementById("custom_position_top_bottom")?.value;
|
|
46
|
+
let widget_position_right = "", widget_position_left = "", widget_position_top = "", widget_position_bottom = "";
|
|
47
|
+
custom_position_left_right == "To the right" ? widget_position_right = custom_position_x_value : widget_position_left = custom_position_x_value, custom_position_left_right == "To the bottom" ? widget_position_bottom = custom_position_y_value : widget_position_top = custom_position_y_value, formdata.append("u", window.location.hostname), formdata.append("widget_position", data.position), formdata.append("widget_color_code", data.hexaColor), formdata.append("widget_icon_type", data.icontype), formdata.append("widget_icon_size", data.iconsize), formdata.append("widget_size", data.widget_size), formdata.append("is_widget_custom_position", isSwitcherEnabled == !0 ? "1" : "0"), formdata.append("is_widget_custom_size", isSizeSwitcherEnabled == !0 ? "1" : "0"), formdata.append("widget_icon_size_custom", widget_icon_size_custom), formdata.append("widget_position_right", widget_position_right), formdata.append("widget_position_left", widget_position_left), formdata.append("widget_position_top", widget_position_top), formdata.append("widget_position_bottom", widget_position_bottom), fetch("https://ada.skynettechnologies.us/api/widget-setting-update-platform", {
|
|
48
|
+
method: "POST",
|
|
49
|
+
body: formdata
|
|
50
|
+
}).then((response) => response.json()).then(async (response) => {
|
|
51
|
+
console.log("response Save Data", response), setShowSuccessMessage(!0), setTimeout(() => {
|
|
52
|
+
setShowSuccessMessage(!1);
|
|
53
|
+
}, 3e3);
|
|
54
|
+
}).catch((error) => console.log("error", error));
|
|
55
|
+
}, getAPIData = () => {
|
|
56
|
+
const formdata = new FormData();
|
|
57
|
+
formdata.append("website_url", window.location.hostname), fetch("https://ada.skynettechnologies.us/api/widget-settings", {
|
|
58
|
+
method: "POST",
|
|
59
|
+
body: formdata
|
|
60
|
+
}).then((response) => response.json()).then((response) => {
|
|
61
|
+
Object.keys(response.Data).length !== 0 ? (setIsValid(!0), setParameters({
|
|
62
|
+
hexaColor: response.Data.widget_color_code,
|
|
63
|
+
position: response.Data.widget_position,
|
|
64
|
+
icontype: response.Data.widget_icon_type,
|
|
65
|
+
iconsize: response.Data.widget_icon_size,
|
|
66
|
+
widget_size: response.Data.widget_size
|
|
67
|
+
}), setSizeSwitcherEnabled(response.Data.is_widget_custom_size != "0"), setSwitcherEnabled(response.Data.is_widget_custom_position != "0"), setWidgetSettings({
|
|
68
|
+
widget_icon_size_custom: response.Data.widget_icon_size_custom || "",
|
|
69
|
+
custom_position_x_value: parseInt(response.Data.widget_position_left) > 0 ? response.Data.widget_position_left : response.Data.widget_position_right,
|
|
70
|
+
custom_position_y_value: parseInt(response.Data.widget_position_bottom) > 0 ? response.Data.widget_position_bottom : response.Data.widget_position_top,
|
|
71
|
+
custom_position_left_right: parseInt(response.Data.widget_position_left) > 0 ? "To the left" : "To the right",
|
|
72
|
+
custom_position_top_bottom: parseInt(response.Data.widget_position_bottom) > 0 ? "To the bottom" : "To the top"
|
|
73
|
+
}), console.log("setWidgetSettings : ", widgetSettings)) : setIsValid(!1);
|
|
74
|
+
}).catch((error) => console.log("error", error));
|
|
75
|
+
}, onIconChange = (e) => {
|
|
76
|
+
switch (setParameters({ ...parameters, icontype: e.target.value }), e.target.value) {
|
|
77
|
+
case "aioa-icon-type-2":
|
|
78
|
+
setIconSize(aioaicontype2);
|
|
79
|
+
break;
|
|
80
|
+
case "aioa-icon-type-3":
|
|
81
|
+
setIconSize(aioaicontype3);
|
|
82
|
+
break;
|
|
83
|
+
case "aioa-icon-type-4":
|
|
84
|
+
setIconSize(aioaicontype4);
|
|
85
|
+
break;
|
|
86
|
+
case "aioa-icon-type-5":
|
|
87
|
+
setIconSize(aioaicontype5);
|
|
88
|
+
break;
|
|
89
|
+
case "aioa-icon-type-6":
|
|
90
|
+
setIconSize(aioaicontype6);
|
|
91
|
+
break;
|
|
92
|
+
case "aioa-icon-type-7":
|
|
93
|
+
setIconSize(aioaicontype7);
|
|
94
|
+
break;
|
|
95
|
+
case "aioa-icon-type-8":
|
|
96
|
+
setIconSize(aioaicontype8);
|
|
97
|
+
break;
|
|
98
|
+
case "aioa-icon-type-9":
|
|
99
|
+
setIconSize(aioaicontype9);
|
|
100
|
+
break;
|
|
101
|
+
case "aioa-icon-type-10":
|
|
102
|
+
setIconSize(aioaicontype10);
|
|
103
|
+
break;
|
|
104
|
+
case "aioa-icon-type-11":
|
|
105
|
+
setIconSize(aioaicontype11);
|
|
106
|
+
break;
|
|
107
|
+
case "aioa-icon-type-12":
|
|
108
|
+
setIconSize(aioaicontype12);
|
|
109
|
+
break;
|
|
110
|
+
case "aioa-icon-type-13":
|
|
111
|
+
setIconSize(aioaicontype13);
|
|
112
|
+
break;
|
|
113
|
+
case "aioa-icon-type-14":
|
|
114
|
+
setIconSize(aioaicontype14);
|
|
115
|
+
break;
|
|
116
|
+
case "aioa-icon-type-15":
|
|
117
|
+
setIconSize(aioaicontype15);
|
|
118
|
+
break;
|
|
119
|
+
case "aioa-icon-type-16":
|
|
120
|
+
setIconSize(aioaicontype16);
|
|
121
|
+
break;
|
|
122
|
+
case "aioa-icon-type-17":
|
|
123
|
+
setIconSize(aioaicontype17);
|
|
124
|
+
break;
|
|
125
|
+
case "aioa-icon-type-18":
|
|
126
|
+
setIconSize(aioaicontype18);
|
|
127
|
+
break;
|
|
128
|
+
case "aioa-icon-type-19":
|
|
129
|
+
setIconSize(aioaicontype19);
|
|
130
|
+
break;
|
|
131
|
+
case "aioa-icon-type-20":
|
|
132
|
+
setIconSize(aioaicontype20);
|
|
133
|
+
break;
|
|
134
|
+
case "aioa-icon-type-21":
|
|
135
|
+
setIconSize(aioaicontype21);
|
|
136
|
+
break;
|
|
137
|
+
case "aioa-icon-type-22":
|
|
138
|
+
setIconSize(aioaicontype22);
|
|
139
|
+
break;
|
|
140
|
+
case "aioa-icon-type-23":
|
|
141
|
+
setIconSize(aioaicontype23);
|
|
142
|
+
break;
|
|
143
|
+
case "aioa-icon-type-24":
|
|
144
|
+
setIconSize(aioaicontype24);
|
|
145
|
+
break;
|
|
146
|
+
case "aioa-icon-type-25":
|
|
147
|
+
setIconSize(aioaicontype25);
|
|
148
|
+
break;
|
|
149
|
+
case "aioa-icon-type-26":
|
|
150
|
+
setIconSize(aioaicontype26);
|
|
151
|
+
break;
|
|
152
|
+
case "aioa-icon-type-27":
|
|
153
|
+
setIconSize(aioaicontype27);
|
|
154
|
+
break;
|
|
155
|
+
case "aioa-icon-type-28":
|
|
156
|
+
setIconSize(aioaicontype28);
|
|
157
|
+
break;
|
|
158
|
+
case "aioa-icon-type-29":
|
|
159
|
+
setIconSize(aioaicontype29);
|
|
160
|
+
break;
|
|
161
|
+
default:
|
|
162
|
+
setIconSize(aioaicontype1);
|
|
163
|
+
}
|
|
164
|
+
}, elementStyle = {
|
|
165
|
+
marginTop: "0px",
|
|
166
|
+
display: "flex",
|
|
167
|
+
justifyContent: "center",
|
|
168
|
+
alignItems: "center",
|
|
169
|
+
flexDirection: "column"
|
|
170
|
+
}, handleInput = (e) => {
|
|
171
|
+
e.target.value = Math.min(Math.max(Number(e.target.value), 0), 250).toString();
|
|
172
|
+
}, handleInput2 = (e) => {
|
|
173
|
+
e.target.value = Math.min(Math.max(Number(e.target.value), 0), 250).toString();
|
|
174
|
+
}, handleInput1 = (e) => {
|
|
175
|
+
e.target.value = Math.min(Math.max(Number(e.target.value), 20), 150).toString();
|
|
176
|
+
};
|
|
177
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
178
|
+
/* @__PURE__ */ jsxRuntime.jsx("meta", { charSet: "utf-8" }),
|
|
179
|
+
/* @__PURE__ */ jsxRuntime.jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }),
|
|
180
|
+
/* @__PURE__ */ jsxRuntime.jsx("title", { children: "All In One Accessibility Sanity" }),
|
|
181
|
+
/* @__PURE__ */ jsxRuntime.jsx("meta", { name: "description", content: "Sanity App" }),
|
|
182
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
183
|
+
"link",
|
|
184
|
+
{
|
|
185
|
+
rel: "stylesheet",
|
|
186
|
+
type: "text/css",
|
|
187
|
+
href: "https://sanity.skynettechnologies.us/assets/css/style.css"
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: elementStyle, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "all-in-one-accessibility-strapi-container", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "set-width", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "all-in-one-accessibility-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "accessibility-settings", children: [
|
|
191
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
192
|
+
reactBootstrap.Image,
|
|
193
|
+
{
|
|
194
|
+
src: allinoneaccessibilitylogo,
|
|
195
|
+
alt: "All in One Accessibility - Skynet Technologies",
|
|
196
|
+
style: {
|
|
197
|
+
display: "block",
|
|
198
|
+
justifyContent: "center",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
textAlign: "center",
|
|
201
|
+
marginLeft: "auto",
|
|
202
|
+
marginRight: "auto",
|
|
203
|
+
width: "50%"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { children: /* @__PURE__ */ jsxRuntime.jsx("b", {}) }),
|
|
208
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "all-one-accessibility-form", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form, { onSubmit: onSaveChanges, children: [
|
|
209
|
+
!isValid && // Conditionally render the view based on API data
|
|
210
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Group, { className: "mb-30 row", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { className: "col-sm-12 col-form-label", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
211
|
+
"div",
|
|
212
|
+
{
|
|
213
|
+
className: `form-text col-sm-12 col-form-label ${isValid ? "d-none" : ""}`,
|
|
214
|
+
style: {
|
|
215
|
+
display: "flex",
|
|
216
|
+
justifyContent: "center",
|
|
217
|
+
alignItems: "center",
|
|
218
|
+
textAlign: "center"
|
|
219
|
+
},
|
|
220
|
+
children: [
|
|
221
|
+
"Please",
|
|
222
|
+
" ",
|
|
223
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
224
|
+
"a",
|
|
225
|
+
{
|
|
226
|
+
href: "https://ada.skynettechnologies.us/trial-subscription",
|
|
227
|
+
target: "_blank",
|
|
228
|
+
rel: "noopener noreferrer",
|
|
229
|
+
children: "\xA0Upgrade\xA0"
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
" ",
|
|
233
|
+
"to the full version of All in One Accessibility Pro."
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
) }) }),
|
|
237
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Group, { className: "mb-30 row", children: [
|
|
238
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { htmlFor: "inputPassword", className: "col-sm-3 col-form-label", children: "Hex color code:" }),
|
|
239
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-sm-9", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
240
|
+
reactBootstrap.Form.Control,
|
|
241
|
+
{
|
|
242
|
+
value: parameters.hexaColor,
|
|
243
|
+
className: "form-control",
|
|
244
|
+
id: "colorcode",
|
|
245
|
+
name: "colorcode",
|
|
246
|
+
onChange: (e) => setParameters({
|
|
247
|
+
...parameters,
|
|
248
|
+
hexaColor: e.target.value
|
|
249
|
+
})
|
|
250
|
+
}
|
|
251
|
+
) }),
|
|
252
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-sm-3" }),
|
|
253
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "form-text col-sm-9", children: "You can customize the ADA Widget color. For example: FF5733" })
|
|
254
|
+
] }),
|
|
255
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Group, { className: "mb-30 row", children: [
|
|
256
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { className: "col-sm-12 col-form-label", children: "Select Widget Size:" }),
|
|
257
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-sm-12 three-col", children: [
|
|
258
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
|
+
reactBootstrap.Form.Check,
|
|
260
|
+
{
|
|
261
|
+
type: "radio",
|
|
262
|
+
id: "edit-widget-size-regularsize",
|
|
263
|
+
label: "Regular Size",
|
|
264
|
+
name: "widget_size",
|
|
265
|
+
value: "0",
|
|
266
|
+
onChange: (e) => setParameters({
|
|
267
|
+
...parameters,
|
|
268
|
+
widget_size: e.target.value
|
|
269
|
+
}),
|
|
270
|
+
checked: parameters.widget_size == "0",
|
|
271
|
+
className: "form-radio"
|
|
272
|
+
}
|
|
273
|
+
) }),
|
|
274
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
275
|
+
reactBootstrap.Form.Check,
|
|
276
|
+
{
|
|
277
|
+
type: "radio",
|
|
278
|
+
id: "edit-widget-size-oversize",
|
|
279
|
+
label: "Over Size",
|
|
280
|
+
name: "widget_size",
|
|
281
|
+
value: "1",
|
|
282
|
+
onChange: (e) => setParameters({
|
|
283
|
+
...parameters,
|
|
284
|
+
widget_size: e.target.value
|
|
285
|
+
}),
|
|
286
|
+
checked: parameters.widget_size == "1",
|
|
287
|
+
className: "form-radio"
|
|
288
|
+
}
|
|
289
|
+
) })
|
|
290
|
+
] })
|
|
291
|
+
] }),
|
|
292
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Group, { className: "mb-30 row", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "icon-custom-position-wrapper mb-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2", children: [
|
|
293
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Row, { className: "align-items-center mb-30", children: [
|
|
294
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { className: "col-sm-12 col-form-label", children: "Enable precise accessibility widget icon position:" }) }),
|
|
295
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { xs: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
296
|
+
reactBootstrap.Form.Check,
|
|
297
|
+
{
|
|
298
|
+
type: "switch",
|
|
299
|
+
id: "custom-position-switcher",
|
|
300
|
+
className: "custom-switcher",
|
|
301
|
+
checked: isSwitcherEnabled,
|
|
302
|
+
onChange: () => setSwitcherEnabled(!isSwitcherEnabled),
|
|
303
|
+
style: {
|
|
304
|
+
transform: "scale(1.5)"
|
|
305
|
+
// Increase the switch size
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
) })
|
|
309
|
+
] }),
|
|
310
|
+
!isSwitcherEnabled && /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Group, { className: "mb-30 row widget-position", children: [
|
|
311
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { className: "col-sm-12 col-form-label", children: "Where would you like to place the accessibility icon on your site?:" }),
|
|
312
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-sm-12 three-col", children: [
|
|
313
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
314
|
+
reactBootstrap.Form.Check,
|
|
315
|
+
{
|
|
316
|
+
type: "radio",
|
|
317
|
+
id: "edit-position-top-left",
|
|
318
|
+
label: "Top left",
|
|
319
|
+
name: "position",
|
|
320
|
+
value: "top_left",
|
|
321
|
+
onChange: (e) => setParameters({
|
|
322
|
+
...parameters,
|
|
323
|
+
position: e.target.value
|
|
324
|
+
}),
|
|
325
|
+
checked: parameters.position == "top_left",
|
|
326
|
+
className: "form-radio"
|
|
327
|
+
}
|
|
328
|
+
) }),
|
|
329
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
330
|
+
reactBootstrap.Form.Check,
|
|
331
|
+
{
|
|
332
|
+
type: "radio",
|
|
333
|
+
id: "edit-position-top-center",
|
|
334
|
+
label: "Top Center",
|
|
335
|
+
name: "position",
|
|
336
|
+
value: "top_center",
|
|
337
|
+
onChange: (e) => setParameters({
|
|
338
|
+
...parameters,
|
|
339
|
+
position: e.target.value
|
|
340
|
+
}),
|
|
341
|
+
checked: parameters.position == "top_center",
|
|
342
|
+
className: "form-radio"
|
|
343
|
+
}
|
|
344
|
+
) }),
|
|
345
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
346
|
+
reactBootstrap.Form.Check,
|
|
347
|
+
{
|
|
348
|
+
type: "radio",
|
|
349
|
+
id: "edit-position-top-right",
|
|
350
|
+
label: "Top Right",
|
|
351
|
+
name: "position",
|
|
352
|
+
value: "top_right",
|
|
353
|
+
onChange: (e) => setParameters({
|
|
354
|
+
...parameters,
|
|
355
|
+
position: e.target.value
|
|
356
|
+
}),
|
|
357
|
+
checked: parameters.position == "top_right",
|
|
358
|
+
className: "form-radio"
|
|
359
|
+
}
|
|
360
|
+
) }),
|
|
361
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
362
|
+
reactBootstrap.Form.Check,
|
|
363
|
+
{
|
|
364
|
+
type: "radio",
|
|
365
|
+
id: "edit-position-middel-left",
|
|
366
|
+
label: "Middle left",
|
|
367
|
+
name: "position",
|
|
368
|
+
value: "middle_left",
|
|
369
|
+
onChange: (e) => setParameters({
|
|
370
|
+
...parameters,
|
|
371
|
+
position: e.target.value
|
|
372
|
+
}),
|
|
373
|
+
checked: parameters.position == "middle_left",
|
|
374
|
+
className: "form-radio"
|
|
375
|
+
}
|
|
376
|
+
) }),
|
|
377
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
378
|
+
reactBootstrap.Form.Check,
|
|
379
|
+
{
|
|
380
|
+
type: "radio",
|
|
381
|
+
id: "edit-position-middel-right",
|
|
382
|
+
label: "Middle Right",
|
|
383
|
+
name: "position",
|
|
384
|
+
value: "middle_right",
|
|
385
|
+
onChange: (e) => setParameters({
|
|
386
|
+
...parameters,
|
|
387
|
+
position: e.target.value
|
|
388
|
+
}),
|
|
389
|
+
checked: parameters.position == "middle_right",
|
|
390
|
+
className: "form-radio"
|
|
391
|
+
}
|
|
392
|
+
) }),
|
|
393
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
394
|
+
reactBootstrap.Form.Check,
|
|
395
|
+
{
|
|
396
|
+
type: "radio",
|
|
397
|
+
id: "edit-position-bottom-left",
|
|
398
|
+
label: "Bottom left",
|
|
399
|
+
name: "position",
|
|
400
|
+
value: "bottom_left",
|
|
401
|
+
onChange: (e) => setParameters({
|
|
402
|
+
...parameters,
|
|
403
|
+
position: e.target.value
|
|
404
|
+
}),
|
|
405
|
+
checked: parameters.position == "bottom_left",
|
|
406
|
+
className: "form-radio"
|
|
407
|
+
}
|
|
408
|
+
) }),
|
|
409
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
410
|
+
reactBootstrap.Form.Check,
|
|
411
|
+
{
|
|
412
|
+
type: "radio",
|
|
413
|
+
id: "edit-position-bottom-center",
|
|
414
|
+
label: "Bottom Center",
|
|
415
|
+
name: "position",
|
|
416
|
+
value: "bottom_center",
|
|
417
|
+
onChange: (e) => setParameters({
|
|
418
|
+
...parameters,
|
|
419
|
+
position: e.target.value
|
|
420
|
+
}),
|
|
421
|
+
checked: parameters.position == "bottom_center",
|
|
422
|
+
className: "form-radio"
|
|
423
|
+
}
|
|
424
|
+
) }),
|
|
425
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
426
|
+
reactBootstrap.Form.Check,
|
|
427
|
+
{
|
|
428
|
+
type: "radio",
|
|
429
|
+
id: "edit-position-bottom-right",
|
|
430
|
+
label: "Bottom Right",
|
|
431
|
+
name: "position",
|
|
432
|
+
value: "bottom_right",
|
|
433
|
+
onChange: (e) => setParameters({
|
|
434
|
+
...parameters,
|
|
435
|
+
position: e.target.value
|
|
436
|
+
}),
|
|
437
|
+
checked: parameters.position == "bottom_right",
|
|
438
|
+
className: "form-radio"
|
|
439
|
+
}
|
|
440
|
+
) })
|
|
441
|
+
] })
|
|
442
|
+
] }),
|
|
443
|
+
isSwitcherEnabled && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "custom-position-controls", children: [
|
|
444
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Row, { className: "mb-3", children: [
|
|
445
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { xs: "auto", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.InputGroup, { children: [
|
|
446
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
447
|
+
reactBootstrap.FormControl,
|
|
448
|
+
{
|
|
449
|
+
type: "number",
|
|
450
|
+
min: "0",
|
|
451
|
+
max: "250",
|
|
452
|
+
id: "custom_position_x_value",
|
|
453
|
+
"aria-label": "Value in pixels",
|
|
454
|
+
onInput: handleInput,
|
|
455
|
+
defaultValue: widgetSettings.custom_position_x_value
|
|
456
|
+
}
|
|
457
|
+
),
|
|
458
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.InputGroup.Text, { children: "PX" })
|
|
459
|
+
] }) }),
|
|
460
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { xs: "auto", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
461
|
+
reactBootstrap.Form.Select,
|
|
462
|
+
{
|
|
463
|
+
id: "custom_position_left_right",
|
|
464
|
+
"aria-label": "Position select",
|
|
465
|
+
value: widgetSettings.custom_position_left_right,
|
|
466
|
+
children: [
|
|
467
|
+
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "cust-pos-to-the-right", children: "To the right" }),
|
|
468
|
+
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "cust-pos-to-the-left", children: "To the left" })
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
) })
|
|
472
|
+
] }),
|
|
473
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Row, { className: "mb-3", children: [
|
|
474
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { xs: "auto", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.InputGroup, { children: [
|
|
475
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
476
|
+
reactBootstrap.FormControl,
|
|
477
|
+
{
|
|
478
|
+
type: "number",
|
|
479
|
+
min: "0",
|
|
480
|
+
max: "250",
|
|
481
|
+
id: "custom_position_y_value",
|
|
482
|
+
"aria-label": "Value in pixels",
|
|
483
|
+
onInput: handleInput2,
|
|
484
|
+
defaultValue: widgetSettings.custom_position_y_value
|
|
485
|
+
}
|
|
486
|
+
),
|
|
487
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.InputGroup.Text, { children: "PX" })
|
|
488
|
+
] }) }),
|
|
489
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { xs: "auto", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
490
|
+
reactBootstrap.Form.Select,
|
|
491
|
+
{
|
|
492
|
+
id: "custom_position_top_bottom",
|
|
493
|
+
"aria-label": "Position select",
|
|
494
|
+
value: widgetSettings.custom_position_top_bottom,
|
|
495
|
+
children: [
|
|
496
|
+
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "cust-pos-to-the-lower", children: "To the bottom" }),
|
|
497
|
+
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "cust-pos-to-the-upper", children: "To the top" })
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
) })
|
|
501
|
+
] }),
|
|
502
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "description", children: "0 - 250px are permitted values" })
|
|
503
|
+
] })
|
|
504
|
+
] }) }) }),
|
|
505
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Group, { className: `icon-type-wrapper row ${isValid ? null : "d-none"}`, children: [
|
|
506
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { className: "fcol-sm-12 col-form-label", children: "Select icon type:" }),
|
|
507
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-sm-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "row", children: [
|
|
508
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-1", children: [
|
|
509
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
510
|
+
reactBootstrap.Form.Check.Input,
|
|
511
|
+
{
|
|
512
|
+
type: "radio",
|
|
513
|
+
name: "aioa_icon_type",
|
|
514
|
+
value: "aioa-icon-type-1",
|
|
515
|
+
onChange: onIconChange,
|
|
516
|
+
checked: parameters.icontype == "aioa-icon-type-1",
|
|
517
|
+
className: "form-radio"
|
|
518
|
+
}
|
|
519
|
+
),
|
|
520
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype1, alt: "", width: "65", height: "65" }) })
|
|
521
|
+
] }) }) }),
|
|
522
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-2", children: [
|
|
523
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
524
|
+
reactBootstrap.Form.Check.Input,
|
|
525
|
+
{
|
|
526
|
+
type: "radio",
|
|
527
|
+
name: "aioa_icon_type",
|
|
528
|
+
value: "aioa-icon-type-2",
|
|
529
|
+
onChange: onIconChange,
|
|
530
|
+
checked: parameters.icontype == "aioa-icon-type-2",
|
|
531
|
+
className: "form-radio"
|
|
532
|
+
}
|
|
533
|
+
),
|
|
534
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype2, alt: "", width: "65", height: "65" }) })
|
|
535
|
+
] }) }) }),
|
|
536
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-3", children: [
|
|
537
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
538
|
+
reactBootstrap.Form.Check.Input,
|
|
539
|
+
{
|
|
540
|
+
type: "radio",
|
|
541
|
+
name: "aioa_icon_type",
|
|
542
|
+
value: "aioa-icon-type-3",
|
|
543
|
+
onChange: onIconChange,
|
|
544
|
+
checked: parameters.icontype == "aioa-icon-type-3",
|
|
545
|
+
className: "form-radio"
|
|
546
|
+
}
|
|
547
|
+
),
|
|
548
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype3, alt: "", width: "65", height: "65" }) })
|
|
549
|
+
] }) }) }),
|
|
550
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-4", children: [
|
|
551
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
552
|
+
reactBootstrap.Form.Check.Input,
|
|
553
|
+
{
|
|
554
|
+
type: "radio",
|
|
555
|
+
name: "aioa_icon_type",
|
|
556
|
+
value: "aioa-icon-type-4",
|
|
557
|
+
onChange: onIconChange,
|
|
558
|
+
checked: parameters.icontype == "aioa-icon-type-4",
|
|
559
|
+
className: "form-radio"
|
|
560
|
+
}
|
|
561
|
+
),
|
|
562
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype4, alt: "", width: "65", height: "65" }) })
|
|
563
|
+
] }) }) }),
|
|
564
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-5", children: [
|
|
565
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
566
|
+
reactBootstrap.Form.Check.Input,
|
|
567
|
+
{
|
|
568
|
+
type: "radio",
|
|
569
|
+
name: "aioa_icon_type",
|
|
570
|
+
value: "aioa-icon-type-5",
|
|
571
|
+
onChange: onIconChange,
|
|
572
|
+
checked: parameters.icontype == "aioa-icon-type-5",
|
|
573
|
+
className: "form-radio"
|
|
574
|
+
}
|
|
575
|
+
),
|
|
576
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype5, alt: "", width: "65", height: "65" }) })
|
|
577
|
+
] }) }) }),
|
|
578
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-6", children: [
|
|
579
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
580
|
+
reactBootstrap.Form.Check.Input,
|
|
581
|
+
{
|
|
582
|
+
type: "radio",
|
|
583
|
+
name: "aioa_icon_type",
|
|
584
|
+
value: "aioa-icon-type-6",
|
|
585
|
+
onChange: onIconChange,
|
|
586
|
+
checked: parameters.icontype == "aioa-icon-type-6",
|
|
587
|
+
className: "form-radio"
|
|
588
|
+
}
|
|
589
|
+
),
|
|
590
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype6, alt: "", width: "65", height: "65" }) })
|
|
591
|
+
] }) }) }),
|
|
592
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-7", children: [
|
|
593
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
594
|
+
reactBootstrap.Form.Check.Input,
|
|
595
|
+
{
|
|
596
|
+
type: "radio",
|
|
597
|
+
name: "aioa_icon_type",
|
|
598
|
+
value: "aioa-icon-type-7",
|
|
599
|
+
onChange: onIconChange,
|
|
600
|
+
checked: parameters.icontype == "aioa-icon-type-7",
|
|
601
|
+
className: "form-radio"
|
|
602
|
+
}
|
|
603
|
+
),
|
|
604
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype7, alt: "", width: "65", height: "65" }) })
|
|
605
|
+
] }) }) }),
|
|
606
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-8", children: [
|
|
607
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
608
|
+
reactBootstrap.Form.Check.Input,
|
|
609
|
+
{
|
|
610
|
+
type: "radio",
|
|
611
|
+
name: "aioa_icon_type",
|
|
612
|
+
value: "aioa-icon-type-8",
|
|
613
|
+
onChange: onIconChange,
|
|
614
|
+
checked: parameters.icontype == "aioa-icon-type-8",
|
|
615
|
+
className: "form-radio"
|
|
616
|
+
}
|
|
617
|
+
),
|
|
618
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype8, alt: "", width: "65", height: "65" }) })
|
|
619
|
+
] }) }) }),
|
|
620
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-9", children: [
|
|
621
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
622
|
+
reactBootstrap.Form.Check.Input,
|
|
623
|
+
{
|
|
624
|
+
type: "radio",
|
|
625
|
+
name: "aioa_icon_type",
|
|
626
|
+
value: "aioa-icon-type-9",
|
|
627
|
+
onChange: onIconChange,
|
|
628
|
+
checked: parameters.icontype == "aioa-icon-type-9",
|
|
629
|
+
className: "form-radio"
|
|
630
|
+
}
|
|
631
|
+
),
|
|
632
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype9, alt: "", width: "65", height: "65" }) })
|
|
633
|
+
] }) }) }),
|
|
634
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-10", children: [
|
|
635
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
636
|
+
reactBootstrap.Form.Check.Input,
|
|
637
|
+
{
|
|
638
|
+
type: "radio",
|
|
639
|
+
name: "aioa_icon_type",
|
|
640
|
+
value: "aioa-icon-type-10",
|
|
641
|
+
onChange: onIconChange,
|
|
642
|
+
checked: parameters.icontype == "aioa-icon-type-10",
|
|
643
|
+
className: "form-radio"
|
|
644
|
+
}
|
|
645
|
+
),
|
|
646
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype10, alt: "", width: "65", height: "65" }) })
|
|
647
|
+
] }) }) }),
|
|
648
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-11", children: [
|
|
649
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
650
|
+
reactBootstrap.Form.Check.Input,
|
|
651
|
+
{
|
|
652
|
+
type: "radio",
|
|
653
|
+
name: "aioa_icon_type",
|
|
654
|
+
value: "aioa-icon-type-11",
|
|
655
|
+
onChange: onIconChange,
|
|
656
|
+
checked: parameters.icontype == "aioa-icon-type-11",
|
|
657
|
+
className: "form-radio"
|
|
658
|
+
}
|
|
659
|
+
),
|
|
660
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype11, alt: "", width: "65", height: "65" }) })
|
|
661
|
+
] }) }) }),
|
|
662
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-12", children: [
|
|
663
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
664
|
+
reactBootstrap.Form.Check.Input,
|
|
665
|
+
{
|
|
666
|
+
type: "radio",
|
|
667
|
+
name: "aioa_icon_type",
|
|
668
|
+
value: "aioa-icon-type-12",
|
|
669
|
+
onChange: onIconChange,
|
|
670
|
+
checked: parameters.icontype == "aioa-icon-type-12",
|
|
671
|
+
className: "form-radio"
|
|
672
|
+
}
|
|
673
|
+
),
|
|
674
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype12, alt: "", width: "65", height: "65" }) })
|
|
675
|
+
] }) }) }),
|
|
676
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-13", children: [
|
|
677
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
678
|
+
reactBootstrap.Form.Check.Input,
|
|
679
|
+
{
|
|
680
|
+
type: "radio",
|
|
681
|
+
name: "aioa_icon_type",
|
|
682
|
+
value: "aioa-icon-type-13",
|
|
683
|
+
onChange: onIconChange,
|
|
684
|
+
checked: parameters.icontype == "aioa-icon-type-13",
|
|
685
|
+
className: "form-radio"
|
|
686
|
+
}
|
|
687
|
+
),
|
|
688
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype13, alt: "", width: "65", height: "65" }) })
|
|
689
|
+
] }) }) }),
|
|
690
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-14", children: [
|
|
691
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
692
|
+
reactBootstrap.Form.Check.Input,
|
|
693
|
+
{
|
|
694
|
+
type: "radio",
|
|
695
|
+
name: "aioa_icon_type",
|
|
696
|
+
value: "aioa-icon-type-14",
|
|
697
|
+
onChange: onIconChange,
|
|
698
|
+
checked: parameters.icontype == "aioa-icon-type-14",
|
|
699
|
+
className: "form-radio"
|
|
700
|
+
}
|
|
701
|
+
),
|
|
702
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype14, alt: "", width: "65", height: "65" }) })
|
|
703
|
+
] }) }) }),
|
|
704
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-15", children: [
|
|
705
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
706
|
+
reactBootstrap.Form.Check.Input,
|
|
707
|
+
{
|
|
708
|
+
type: "radio",
|
|
709
|
+
name: "aioa_icon_type",
|
|
710
|
+
value: "aioa-icon-type-15",
|
|
711
|
+
onChange: onIconChange,
|
|
712
|
+
checked: parameters.icontype == "aioa-icon-type-15",
|
|
713
|
+
className: "form-radio"
|
|
714
|
+
}
|
|
715
|
+
),
|
|
716
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype15, alt: "", width: "65", height: "65" }) })
|
|
717
|
+
] }) }) }),
|
|
718
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-16", children: [
|
|
719
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
720
|
+
reactBootstrap.Form.Check.Input,
|
|
721
|
+
{
|
|
722
|
+
type: "radio",
|
|
723
|
+
name: "aioa_icon_type",
|
|
724
|
+
value: "aioa-icon-type-16",
|
|
725
|
+
onChange: onIconChange,
|
|
726
|
+
checked: parameters.icontype == "aioa-icon-type-16",
|
|
727
|
+
className: "form-radio"
|
|
728
|
+
}
|
|
729
|
+
),
|
|
730
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype16, alt: "", width: "65", height: "65" }) })
|
|
731
|
+
] }) }) }),
|
|
732
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-17", children: [
|
|
733
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
734
|
+
reactBootstrap.Form.Check.Input,
|
|
735
|
+
{
|
|
736
|
+
type: "radio",
|
|
737
|
+
name: "aioa_icon_type",
|
|
738
|
+
value: "aioa-icon-type-17",
|
|
739
|
+
onChange: onIconChange,
|
|
740
|
+
checked: parameters.icontype == "aioa-icon-type-17",
|
|
741
|
+
className: "form-radio"
|
|
742
|
+
}
|
|
743
|
+
),
|
|
744
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype17, alt: "", width: "65", height: "65" }) })
|
|
745
|
+
] }) }) }),
|
|
746
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-18", children: [
|
|
747
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
748
|
+
reactBootstrap.Form.Check.Input,
|
|
749
|
+
{
|
|
750
|
+
type: "radio",
|
|
751
|
+
name: "aioa_icon_type",
|
|
752
|
+
value: "aioa-icon-type-18",
|
|
753
|
+
onChange: onIconChange,
|
|
754
|
+
checked: parameters.icontype == "aioa-icon-type-18",
|
|
755
|
+
className: "form-radio"
|
|
756
|
+
}
|
|
757
|
+
),
|
|
758
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype18, alt: "", width: "65", height: "65" }) })
|
|
759
|
+
] }) }) }),
|
|
760
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-19", children: [
|
|
761
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
762
|
+
reactBootstrap.Form.Check.Input,
|
|
763
|
+
{
|
|
764
|
+
type: "radio",
|
|
765
|
+
name: "aioa_icon_type",
|
|
766
|
+
value: "aioa-icon-type-19",
|
|
767
|
+
onChange: onIconChange,
|
|
768
|
+
checked: parameters.icontype == "aioa-icon-type-19",
|
|
769
|
+
className: "form-radio"
|
|
770
|
+
}
|
|
771
|
+
),
|
|
772
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype19, alt: "", width: "65", height: "65" }) })
|
|
773
|
+
] }) }) }),
|
|
774
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-20", children: [
|
|
775
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
776
|
+
reactBootstrap.Form.Check.Input,
|
|
777
|
+
{
|
|
778
|
+
type: "radio",
|
|
779
|
+
name: "aioa_icon_type",
|
|
780
|
+
value: "aioa-icon-type-20",
|
|
781
|
+
onChange: onIconChange,
|
|
782
|
+
checked: parameters.icontype == "aioa-icon-type-20",
|
|
783
|
+
className: "form-radio"
|
|
784
|
+
}
|
|
785
|
+
),
|
|
786
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype20, alt: "", width: "65", height: "65" }) })
|
|
787
|
+
] }) }) }),
|
|
788
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-21", children: [
|
|
789
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
790
|
+
reactBootstrap.Form.Check.Input,
|
|
791
|
+
{
|
|
792
|
+
type: "radio",
|
|
793
|
+
name: "aioa_icon_type",
|
|
794
|
+
value: "aioa-icon-type-21",
|
|
795
|
+
onChange: onIconChange,
|
|
796
|
+
checked: parameters.icontype == "aioa-icon-type-21",
|
|
797
|
+
className: "form-radio"
|
|
798
|
+
}
|
|
799
|
+
),
|
|
800
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype21, alt: "", width: "65", height: "65" }) })
|
|
801
|
+
] }) }) }),
|
|
802
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-22", children: [
|
|
803
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
804
|
+
reactBootstrap.Form.Check.Input,
|
|
805
|
+
{
|
|
806
|
+
type: "radio",
|
|
807
|
+
name: "aioa_icon_type",
|
|
808
|
+
value: "aioa-icon-type-22",
|
|
809
|
+
onChange: onIconChange,
|
|
810
|
+
checked: parameters.icontype == "aioa-icon-type-22",
|
|
811
|
+
className: "form-radio"
|
|
812
|
+
}
|
|
813
|
+
),
|
|
814
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype22, alt: "", width: "65", height: "65" }) })
|
|
815
|
+
] }) }) }),
|
|
816
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-23", children: [
|
|
817
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
818
|
+
reactBootstrap.Form.Check.Input,
|
|
819
|
+
{
|
|
820
|
+
type: "radio",
|
|
821
|
+
name: "aioa_icon_type",
|
|
822
|
+
value: "aioa-icon-type-23",
|
|
823
|
+
onChange: onIconChange,
|
|
824
|
+
checked: parameters.icontype == "aioa-icon-type-23",
|
|
825
|
+
className: "form-radio"
|
|
826
|
+
}
|
|
827
|
+
),
|
|
828
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype23, alt: "", width: "65", height: "65" }) })
|
|
829
|
+
] }) }) }),
|
|
830
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-24", children: [
|
|
831
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
832
|
+
reactBootstrap.Form.Check.Input,
|
|
833
|
+
{
|
|
834
|
+
type: "radio",
|
|
835
|
+
name: "aioa_icon_type",
|
|
836
|
+
value: "aioa-icon-type-24",
|
|
837
|
+
onChange: onIconChange,
|
|
838
|
+
checked: parameters.icontype == "aioa-icon-type-24",
|
|
839
|
+
className: "form-radio"
|
|
840
|
+
}
|
|
841
|
+
),
|
|
842
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype24, alt: "", width: "65", height: "65" }) })
|
|
843
|
+
] }) }) }),
|
|
844
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-25", children: [
|
|
845
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
846
|
+
reactBootstrap.Form.Check.Input,
|
|
847
|
+
{
|
|
848
|
+
type: "radio",
|
|
849
|
+
name: "aioa_icon_type",
|
|
850
|
+
value: "aioa-icon-type-25",
|
|
851
|
+
onChange: onIconChange,
|
|
852
|
+
checked: parameters.icontype == "aioa-icon-type-25",
|
|
853
|
+
className: "form-radio"
|
|
854
|
+
}
|
|
855
|
+
),
|
|
856
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype25, alt: "", width: "65", height: "65" }) })
|
|
857
|
+
] }) }) }),
|
|
858
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-26", children: [
|
|
859
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
860
|
+
reactBootstrap.Form.Check.Input,
|
|
861
|
+
{
|
|
862
|
+
type: "radio",
|
|
863
|
+
name: "aioa_icon_type",
|
|
864
|
+
value: "aioa-icon-type-26",
|
|
865
|
+
onChange: onIconChange,
|
|
866
|
+
checked: parameters.icontype == "aioa-icon-type-26",
|
|
867
|
+
className: "form-radio"
|
|
868
|
+
}
|
|
869
|
+
),
|
|
870
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype26, alt: "", width: "65", height: "65" }) })
|
|
871
|
+
] }) }) }),
|
|
872
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-27", children: [
|
|
873
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
874
|
+
reactBootstrap.Form.Check.Input,
|
|
875
|
+
{
|
|
876
|
+
type: "radio",
|
|
877
|
+
name: "aioa_icon_type",
|
|
878
|
+
value: "aioa-icon-type-27",
|
|
879
|
+
onChange: onIconChange,
|
|
880
|
+
checked: parameters.icontype == "aioa-icon-type-27",
|
|
881
|
+
className: "form-radio"
|
|
882
|
+
}
|
|
883
|
+
),
|
|
884
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype27, alt: "", width: "65", height: "65" }) })
|
|
885
|
+
] }) }) }),
|
|
886
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-28", children: [
|
|
887
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
888
|
+
reactBootstrap.Form.Check.Input,
|
|
889
|
+
{
|
|
890
|
+
type: "radio",
|
|
891
|
+
name: "aioa_icon_type",
|
|
892
|
+
value: "aioa-icon-type-28",
|
|
893
|
+
onChange: onIconChange,
|
|
894
|
+
checked: parameters.icontype == "aioa-icon-type-28",
|
|
895
|
+
className: "form-radio"
|
|
896
|
+
}
|
|
897
|
+
),
|
|
898
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype28, alt: "", width: "65", height: "65" }) })
|
|
899
|
+
] }) }) }),
|
|
900
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-type-29", children: [
|
|
901
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
902
|
+
reactBootstrap.Form.Check.Input,
|
|
903
|
+
{
|
|
904
|
+
type: "radio",
|
|
905
|
+
name: "aioa_icon_type",
|
|
906
|
+
value: "aioa-icon-type-29",
|
|
907
|
+
onChange: onIconChange,
|
|
908
|
+
checked: parameters.icontype == "aioa-icon-type-29",
|
|
909
|
+
className: "form-radio"
|
|
910
|
+
}
|
|
911
|
+
),
|
|
912
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: aioaicontype29, alt: "", width: "65", height: "65" }) })
|
|
913
|
+
] }) }) })
|
|
914
|
+
] }) })
|
|
915
|
+
] }),
|
|
916
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Group, { className: "mb-30 row", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "icon-custom-size-wrapper mb-3", children: [
|
|
917
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Row, { className: "align-items-center mb-30", children: [
|
|
918
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { className: "col-sm-12 col-form-label", children: "Enable icon custom size:" }) }),
|
|
919
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Col, { xs: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
920
|
+
reactBootstrap.Form.Check,
|
|
921
|
+
{
|
|
922
|
+
type: "switch",
|
|
923
|
+
id: "custom-size-switcher",
|
|
924
|
+
className: "custom-switcher_inp_2",
|
|
925
|
+
checked: isSizeSwitcherEnabled,
|
|
926
|
+
onChange: () => setSizeSwitcherEnabled(!isSizeSwitcherEnabled),
|
|
927
|
+
style: {
|
|
928
|
+
transform: "scale(1.5)"
|
|
929
|
+
// Increase the switch size
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
) })
|
|
933
|
+
] }),
|
|
934
|
+
!isSizeSwitcherEnabled && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
935
|
+
reactBootstrap.Form.Group,
|
|
936
|
+
{
|
|
937
|
+
className: `icon-size-wrapper row ${isValid ? null : "d-none"}`,
|
|
938
|
+
children: [
|
|
939
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Label, { className: "fcol-sm-12 col-form-label", children: "Select icon size:" }),
|
|
940
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-sm-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "row", children: [
|
|
941
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-size-big", children: [
|
|
942
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
943
|
+
reactBootstrap.Form.Check.Input,
|
|
944
|
+
{
|
|
945
|
+
type: "radio",
|
|
946
|
+
name: "aioa_icon_size",
|
|
947
|
+
value: "aioa-big-icon",
|
|
948
|
+
onChange: (e) => setParameters({
|
|
949
|
+
...parameters,
|
|
950
|
+
iconsize: e.target.value
|
|
951
|
+
}),
|
|
952
|
+
checked: parameters.iconsize == "aioa-big-icon",
|
|
953
|
+
className: "form-radio"
|
|
954
|
+
}
|
|
955
|
+
),
|
|
956
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: iconsize, alt: "", width: "75", height: "75" }) })
|
|
957
|
+
] }) }) }),
|
|
958
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-size-medium", children: [
|
|
959
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
960
|
+
reactBootstrap.Form.Check.Input,
|
|
961
|
+
{
|
|
962
|
+
type: "radio",
|
|
963
|
+
name: "aioa_icon_size",
|
|
964
|
+
value: "aioa-medium-icon",
|
|
965
|
+
onChange: (e) => setParameters({
|
|
966
|
+
...parameters,
|
|
967
|
+
iconsize: e.target.value
|
|
968
|
+
}),
|
|
969
|
+
checked: parameters.iconsize == "aioa-medium-icon",
|
|
970
|
+
className: "form-radio"
|
|
971
|
+
}
|
|
972
|
+
),
|
|
973
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: iconsize, alt: "", width: "65", height: "65" }) })
|
|
974
|
+
] }) }) }),
|
|
975
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-size-default", children: [
|
|
976
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
977
|
+
reactBootstrap.Form.Check.Input,
|
|
978
|
+
{
|
|
979
|
+
type: "radio",
|
|
980
|
+
name: "aioa_icon_size",
|
|
981
|
+
value: "aioa-default-icon",
|
|
982
|
+
onChange: (e) => setParameters({
|
|
983
|
+
...parameters,
|
|
984
|
+
iconsize: e.target.value
|
|
985
|
+
}),
|
|
986
|
+
checked: parameters.iconsize == "aioa-default-icon",
|
|
987
|
+
className: "form-radio"
|
|
988
|
+
}
|
|
989
|
+
),
|
|
990
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: iconsize, alt: "", width: "55", height: "55" }) })
|
|
991
|
+
] }) }) }),
|
|
992
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-size-small", children: [
|
|
993
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
994
|
+
reactBootstrap.Form.Check.Input,
|
|
995
|
+
{
|
|
996
|
+
type: "radio",
|
|
997
|
+
name: "aioa_icon_size",
|
|
998
|
+
value: "aioa-small-icon",
|
|
999
|
+
onChange: (e) => setParameters({
|
|
1000
|
+
...parameters,
|
|
1001
|
+
iconsize: e.target.value
|
|
1002
|
+
}),
|
|
1003
|
+
checked: parameters.iconsize == "aioa-small-icon",
|
|
1004
|
+
className: "form-radio"
|
|
1005
|
+
}
|
|
1006
|
+
),
|
|
1007
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: iconsize, alt: "", width: "45", height: "45" }) })
|
|
1008
|
+
] }) }) }),
|
|
1009
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-auto mb-30", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "js-form-item form-item js-form-type-radio form-type-radio js-form-item-position form-item-position", children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Form.Check, { type: "radio", id: "edit-size-extra-small", children: [
|
|
1010
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1011
|
+
reactBootstrap.Form.Check.Input,
|
|
1012
|
+
{
|
|
1013
|
+
type: "radio",
|
|
1014
|
+
name: "aioa_icon_size",
|
|
1015
|
+
value: "aioa-extra-small-icon",
|
|
1016
|
+
onChange: (e) => setParameters({
|
|
1017
|
+
...parameters,
|
|
1018
|
+
iconsize: e.target.value
|
|
1019
|
+
}),
|
|
1020
|
+
checked: parameters.iconsize == "aioa-extra-small-icon",
|
|
1021
|
+
className: "form-radio"
|
|
1022
|
+
}
|
|
1023
|
+
),
|
|
1024
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Check.Label, { className: "option", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Image, { src: iconsize, alt: "", width: "35", height: "35" }) })
|
|
1025
|
+
] }) }) })
|
|
1026
|
+
] }) })
|
|
1027
|
+
]
|
|
1028
|
+
}
|
|
1029
|
+
),
|
|
1030
|
+
isSizeSwitcherEnabled && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "custom-size-controls mt-3", children: /* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Row, { children: /* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.Col, { xs: "auto", className: "controls", children: [
|
|
1031
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1032
|
+
reactBootstrap.Form.Label,
|
|
1033
|
+
{
|
|
1034
|
+
htmlFor: "widget_icon_size_custom",
|
|
1035
|
+
className: "fcol-sm-12 col-form-label",
|
|
1036
|
+
children: "Select exact icon size:"
|
|
1037
|
+
}
|
|
1038
|
+
),
|
|
1039
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactBootstrap.InputGroup, { className: "mb-2", children: [
|
|
1040
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1041
|
+
reactBootstrap.FormControl,
|
|
1042
|
+
{
|
|
1043
|
+
type: "number",
|
|
1044
|
+
id: "widget_icon_size_custom",
|
|
1045
|
+
name: "widget_icon_size_custom",
|
|
1046
|
+
"aria-label": "Value in pixels",
|
|
1047
|
+
"aria-describedby": "size-value-input_1",
|
|
1048
|
+
style: { height: "auto" },
|
|
1049
|
+
min: "20",
|
|
1050
|
+
max: "150",
|
|
1051
|
+
onInput: handleInput1,
|
|
1052
|
+
defaultValue: widgetSettings.widget_icon_size_custom
|
|
1053
|
+
}
|
|
1054
|
+
),
|
|
1055
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1056
|
+
reactBootstrap.InputGroup.Text,
|
|
1057
|
+
{
|
|
1058
|
+
style: { height: "auto" },
|
|
1059
|
+
id: "size-value-input_1",
|
|
1060
|
+
children: "PX"
|
|
1061
|
+
}
|
|
1062
|
+
)
|
|
1063
|
+
] }),
|
|
1064
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "description", children: "20 - 150px are permitted values" })
|
|
1065
|
+
] }) }) })
|
|
1066
|
+
] }) }),
|
|
1067
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "save-changes-btn", children: [
|
|
1068
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1069
|
+
reactBootstrap.Button,
|
|
1070
|
+
{
|
|
1071
|
+
variant: "primary",
|
|
1072
|
+
size: "lg",
|
|
1073
|
+
id: "submit",
|
|
1074
|
+
onClick: onSaveChanges,
|
|
1075
|
+
className: "btn btn-primary",
|
|
1076
|
+
children: "Save Changes"
|
|
1077
|
+
}
|
|
1078
|
+
),
|
|
1079
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactBootstrap.Form.Group, { className: "mt-30 row", children: showSuccessMessage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "success-message", children: "Settings successfully saved!" }) })
|
|
1080
|
+
] })
|
|
1081
|
+
] }) })
|
|
1082
|
+
] }) }) }) }) }) })
|
|
1083
|
+
] });
|
|
1084
|
+
}, plugin = {
|
|
1085
|
+
icon: PluginIcon,
|
|
1086
|
+
name: "sanity-plugin-all-in-one-accessibility",
|
|
1087
|
+
title: "All in One Accessibility"
|
|
1088
|
+
}, tool = {
|
|
1089
|
+
...plugin,
|
|
1090
|
+
component: HomePage
|
|
1091
|
+
}, AllinOneAccessibilityPlugin = sanity.definePlugin((options) => ({
|
|
1092
|
+
name: "sanity-plugin-all-in-one-accessibility",
|
|
1093
|
+
tools: (prev) => [...prev, tool]
|
|
1094
|
+
}));
|
|
1095
|
+
exports.AllinOneAccessibilityPlugin = AllinOneAccessibilityPlugin;
|
|
1096
|
+
//# sourceMappingURL=index.js.map
|