Skip to content

Commit

Permalink
required select
Browse files Browse the repository at this point in the history
  • Loading branch information
thallysondias committed Oct 15, 2024
1 parent 3732522 commit 3a1251f
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 47 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion booking-engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin name: Booking Engine
Plugin uri: widgets.omnibees.com/manual
Description: Easy Booking Engine Omnibees for Wordpress
Version: 5.1.2
Version: 5.1.3
Author: Omnibees
Author uri: www.omnibees.com
License: GPlv2 or Later
Expand Down
Binary file removed plugin-update-checker/.DS_Store
Binary file not shown.
Binary file removed plugin-update-checker/Puc/.DS_Store
Binary file not shown.
Binary file removed plugin-update-checker/Puc/v4p9/.DS_Store
Binary file not shown.
250 changes: 206 additions & 44 deletions plugin-update-checker/languages/plugin-update-checker-es_ES.po
Original file line number Diff line number Diff line change
@@ -1,48 +1,210 @@
msgid ""
msgstr ""
"Project-Id-Version: plugin-update-checker\n"
"POT-Creation-Date: 2017-11-24 17:02+0200\n"
"PO-Revision-Date: 2019-09-25 18:17+0200\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2.3\n"
"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
"Last-Translator: \n"
"Language: es_ES\n"
"X-Poedit-SearchPath-0: .\n"
/*
Copyright (c) 2017 The swc Project Developers

#: Puc/v4p3/Plugin/UpdateChecker.php:395
msgid "Check for updates"
msgstr "Comprobar si hay actualizaciones"
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:

#: Puc/v4p3/Plugin/UpdateChecker.php:548
#, php-format
msgctxt "the plugin title"
msgid "The %s plugin is up to date."
msgstr "El plugin %s está actualizado."
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.

#: Puc/v4p3/Plugin/UpdateChecker.php:550
#, php-format
msgctxt "the plugin title"
msgid "A new version of the %s plugin is available."
msgstr "Una nueva versión del %s plugin está disponible."
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
pitch: null,
default: null,
raw: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
pitch: function() {
// build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line // build-hook-line return pitch;
},
default: function() {
return swcLoader;
},
raw: function() {
return raw;
}
});
const _swc = require("../../swc");
const _options = require("../../swc/options");
const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
const _webpackconfig = require("../../webpack-config");
const _handleexternals = require("../../handle-externals");
function _getRequireWildcardCache(nodeInterop) {
if (typeof WeakMap !== "function") return null;
var cacheBabelInterop = new WeakMap();
var cacheNodeInterop = new WeakMap();
return (_getRequireWildcardCache = function(nodeInterop) {
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
})(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) {
return obj;
}
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
return {
default: obj
};
}
var cache = _getRequireWildcardCache(nodeInterop);
if (cache && cache.has(obj)) {
return cache.get(obj);
}
var newObj = {};
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for(var key in obj){
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
if (desc && (desc.get || desc.set)) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
if (cache) {
cache.set(obj, newObj);
}
return newObj;
}
const maybeExclude = (excludePath, transpilePackages)=>{
if (_webpackconfig.babelIncludeRegexes.some((r)=>r.test(excludePath))) {
return false;
}
const shouldBeBundled = (0, _handleexternals.isResourceInPackages)(excludePath, transpilePackages);
if (shouldBeBundled) return false;
return excludePath.includes("node_modules");
};
// these are exact code conditions checked
// for to force transpiling a `node_module`
const FORCE_TRANSPILE_CONDITIONS = /(next\/font|next\/dynamic|use server|use client)/;
async function loaderTransform(parentTrace, source, inputSourceMap) {
var _nextConfig_experimental, _nextConfig_experimental1, _nextConfig_experimental2;
// Make the loader async
const filename = this.resourcePath;
let loaderOptions = this.getOptions() || {};
const shouldMaybeExclude = maybeExclude(filename, loaderOptions.transpilePackages || []);
if (shouldMaybeExclude) {
if (!source) {
throw new Error(`Invariant might be excluded but missing source`);
}
if (!FORCE_TRANSPILE_CONDITIONS.test(source)) {
return [
source,
inputSourceMap
];
}
}
const { isServer, rootDir, pagesDir, appDir, hasReactRefresh, nextConfig, jsConfig, supportedBrowsers, swcCacheDir, serverComponents, bundleLayer, esm } = loaderOptions;
const isPageFile = filename.startsWith(pagesDir);
const relativeFilePathFromRoot = _path.default.relative(rootDir, filename);
const swcOptions = (0, _options.getLoaderSWCOptions)({
pagesDir,
appDir,
filename,
isServer,
isPageFile,
development: this.mode === "development",
hasReactRefresh,
modularizeImports: nextConfig == null ? void 0 : nextConfig.modularizeImports,
optimizePackageImports: nextConfig == null ? void 0 : (_nextConfig_experimental = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental.optimizePackageImports,
swcPlugins: nextConfig == null ? void 0 : (_nextConfig_experimental1 = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental1.swcPlugins,
compilerOptions: nextConfig == null ? void 0 : nextConfig.compiler,
optimizeServerReact: nextConfig == null ? void 0 : (_nextConfig_experimental2 = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental2.optimizeServerReact,
jsConfig,
supportedBrowsers,
swcCacheDir,
relativeFilePathFromRoot,
serverComponents,
bundleLayer,
esm
});
const programmaticOptions = {
...swcOptions,
filename,
inputSourceMap: inputSourceMap ? JSON.stringify(inputSourceMap) : undefined,
// Set the default sourcemap behavior based on Webpack's mapping flag,
sourceMaps: this.sourceMap,
inlineSourcesContent: this.sourceMap,
// Ensure that Webpack will get a full absolute path in the sourcemap
// so that it can properly map the module back to its internal cached
// modules.
sourceFileName: filename
};
if (!programmaticOptions.inputSourceMap) {
delete programmaticOptions.inputSourceMap;
}
// auto detect development mode
if (this.mode && programmaticOptions.jsc && programmaticOptions.jsc.transform && programmaticOptions.jsc.transform.react && !Object.prototype.hasOwnProperty.call(programmaticOptions.jsc.transform.react, "development")) {
programmaticOptions.jsc.transform.react.development = this.mode === "development";
}
const swcSpan = parentTrace.traceChild("next-swc-transform");
return swcSpan.traceAsyncFn(()=>(0, _swc.transform)(source, programmaticOptions).then((output)=>{
if (output.eliminatedPackages && this.eliminatedPackages) {
for (const pkg of JSON.parse(output.eliminatedPackages)){
this.eliminatedPackages.add(pkg);
}
}
return [
output.code,
output.map ? JSON.parse(output.map) : undefined
];
}));
}
const EXCLUDED_PATHS = /[\\/](cache[\\/][^\\/]+\.zip[\\/]node_modules|__virtual__)[\\/]/g;
function pitch() {
const callback = this.async();
let loaderOptions = this.getOptions() || {};
const shouldMaybeExclude = maybeExclude(this.resourcePath, loaderOptions.transpilePackages || []);
(async ()=>{
if (// if it might be excluded/no-op we can't use pitch loader
!shouldMaybeExclude && // TODO: investigate swc file reading in PnP mode?
!process.versions.pnp && !EXCLUDED_PATHS.test(this.resourcePath) && this.loaders.length - 1 === this.loaderIndex && (0, _path.isAbsolute)(this.resourcePath) && !await (0, _swc.isWasm)()) {
const loaderSpan = this.currentTraceSpan.traceChild("next-swc-loader");
this.addDependency(this.resourcePath);
return loaderSpan.traceAsyncFn(()=>loaderTransform.call(this, loaderSpan));
}
})().then((r)=>{
if (r) return callback(null, ...r);
callback();
}, callback);
}
function swcLoader(inputSource, inputSourceMap) {
const loaderSpan = this.currentTraceSpan.traceChild("next-swc-loader");
const callback = this.async();
loaderSpan.traceAsyncFn(()=>loaderTransform.call(this, loaderSpan, inputSource, inputSourceMap)).then(([transformedSource, outputSourceMap])=>{
callback(null, transformedSource, outputSourceMap || inputSourceMap);
}, (err)=>{
callback(err);
});
}
const raw = true;

#: Puc/v4p3/Plugin/UpdateChecker.php:552
#, php-format
msgctxt "the plugin title"
msgid "Could not determine if updates are available for %s."
msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."

#: Puc/v4p3/Plugin/UpdateChecker.php:558
#, php-format
msgid "Unknown update checker status \"%s\""
msgstr "Estado del comprobador de actualización desconocido \"%s\""

#: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
msgid "There is no changelog available."
msgstr "No hay registro de cambios disponible."
//# sourceMappingURL=next-swc-loader.js.map
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires at least: 6.0
Tested up to: 6.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 5.1.2
Version: 5.1.3


== Description ==
Expand Down Expand Up @@ -62,6 +62,10 @@ BE Footer -> http://widgets.omnibees.com/wordpress/print-rodape.JPG
Control Panel -> http://widgets.omnibees.com/wordpress/print-painel.JPG

== Changelog ==

= Version: 5.1.3 =
* Fix select required on footer

= 5.0 =
* Remove all JQuery Dependency on Widgets Offcanvas and Fixed
* Fix custom domain field when NULL ou FALSE
Expand Down
Binary file removed views/.DS_Store
Binary file not shown.
Binary file removed views/fixed/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion views/fixed/booking-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

if (count($selectedHotel) > 1) {
?>
<select name="q" class="hotel-selection">
<select name="q" class="hotel-selection" required>
<?php
foreach ($selectedHotel as $id => $name) { ?>
<option value="<?php echo $id; ?>">
Expand Down
Binary file removed views/off-canvas/.DS_Store
Binary file not shown.
Binary file removed views/shortcode/.DS_Store
Binary file not shown.

0 comments on commit 3a1251f

Please sign in to comment.