Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: editor.js
type: 'snackbar'
[23000] Fix | Delete
});
[23001] Fix | Delete
}
[23002] Fix | Delete
const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(getText, onSuccess);
[23003] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[23004] Fix | Delete
ref: ref,
[23005] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Copy all blocks')
[23006] Fix | Delete
});
[23007] Fix | Delete
}
[23008] Fix | Delete
[23009] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/mode-switcher/index.js
[23010] Fix | Delete
/**
[23011] Fix | Delete
* WordPress dependencies
[23012] Fix | Delete
*/
[23013] Fix | Delete
[23014] Fix | Delete
[23015] Fix | Delete
[23016] Fix | Delete
[23017] Fix | Delete
[23018] Fix | Delete
/**
[23019] Fix | Delete
* Internal dependencies
[23020] Fix | Delete
*/
[23021] Fix | Delete
[23022] Fix | Delete
[23023] Fix | Delete
/**
[23024] Fix | Delete
* Set of available mode options.
[23025] Fix | Delete
*
[23026] Fix | Delete
* @type {Array}
[23027] Fix | Delete
*/
[23028] Fix | Delete
[23029] Fix | Delete
const MODES = [{
[23030] Fix | Delete
value: 'visual',
[23031] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Visual editor')
[23032] Fix | Delete
}, {
[23033] Fix | Delete
value: 'text',
[23034] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Code editor')
[23035] Fix | Delete
}];
[23036] Fix | Delete
function ModeSwitcher() {
[23037] Fix | Delete
const {
[23038] Fix | Delete
shortcut,
[23039] Fix | Delete
isRichEditingEnabled,
[23040] Fix | Delete
isCodeEditingEnabled,
[23041] Fix | Delete
mode
[23042] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
[23043] Fix | Delete
shortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/editor/toggle-mode'),
[23044] Fix | Delete
isRichEditingEnabled: select(store_store).getEditorSettings().richEditingEnabled,
[23045] Fix | Delete
isCodeEditingEnabled: select(store_store).getEditorSettings().codeEditingEnabled,
[23046] Fix | Delete
mode: select(store_store).getEditorMode()
[23047] Fix | Delete
}), []);
[23048] Fix | Delete
const {
[23049] Fix | Delete
switchEditorMode
[23050] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[23051] Fix | Delete
let selectedMode = mode;
[23052] Fix | Delete
if (!isRichEditingEnabled && mode === 'visual') {
[23053] Fix | Delete
selectedMode = 'text';
[23054] Fix | Delete
}
[23055] Fix | Delete
if (!isCodeEditingEnabled && mode === 'text') {
[23056] Fix | Delete
selectedMode = 'visual';
[23057] Fix | Delete
}
[23058] Fix | Delete
const choices = MODES.map(choice => {
[23059] Fix | Delete
if (!isCodeEditingEnabled && choice.value === 'text') {
[23060] Fix | Delete
choice = {
[23061] Fix | Delete
...choice,
[23062] Fix | Delete
disabled: true
[23063] Fix | Delete
};
[23064] Fix | Delete
}
[23065] Fix | Delete
if (!isRichEditingEnabled && choice.value === 'visual') {
[23066] Fix | Delete
choice = {
[23067] Fix | Delete
...choice,
[23068] Fix | Delete
disabled: true,
[23069] Fix | Delete
info: (0,external_wp_i18n_namespaceObject.__)('You can enable the visual editor in your profile settings.')
[23070] Fix | Delete
};
[23071] Fix | Delete
}
[23072] Fix | Delete
if (choice.value !== selectedMode && !choice.disabled) {
[23073] Fix | Delete
return {
[23074] Fix | Delete
...choice,
[23075] Fix | Delete
shortcut
[23076] Fix | Delete
};
[23077] Fix | Delete
}
[23078] Fix | Delete
return choice;
[23079] Fix | Delete
});
[23080] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
[23081] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Editor'),
[23082] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItemsChoice, {
[23083] Fix | Delete
choices: choices,
[23084] Fix | Delete
value: selectedMode,
[23085] Fix | Delete
onSelect: switchEditorMode
[23086] Fix | Delete
})
[23087] Fix | Delete
});
[23088] Fix | Delete
}
[23089] Fix | Delete
/* harmony default export */ const mode_switcher = (ModeSwitcher);
[23090] Fix | Delete
[23091] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/more-menu/tools-more-menu-group.js
[23092] Fix | Delete
/**
[23093] Fix | Delete
* WordPress dependencies
[23094] Fix | Delete
*/
[23095] Fix | Delete
[23096] Fix | Delete
[23097] Fix | Delete
const {
[23098] Fix | Delete
Fill: ToolsMoreMenuGroup,
[23099] Fix | Delete
Slot: tools_more_menu_group_Slot
[23100] Fix | Delete
} = (0,external_wp_components_namespaceObject.createSlotFill)('ToolsMoreMenuGroup');
[23101] Fix | Delete
ToolsMoreMenuGroup.Slot = ({
[23102] Fix | Delete
fillProps
[23103] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tools_more_menu_group_Slot, {
[23104] Fix | Delete
fillProps: fillProps
[23105] Fix | Delete
});
[23106] Fix | Delete
/* harmony default export */ const tools_more_menu_group = (ToolsMoreMenuGroup);
[23107] Fix | Delete
[23108] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/more-menu/view-more-menu-group.js
[23109] Fix | Delete
/**
[23110] Fix | Delete
* WordPress dependencies
[23111] Fix | Delete
*/
[23112] Fix | Delete
[23113] Fix | Delete
[23114] Fix | Delete
[23115] Fix | Delete
const {
[23116] Fix | Delete
Fill: ViewMoreMenuGroup,
[23117] Fix | Delete
Slot: view_more_menu_group_Slot
[23118] Fix | Delete
} = (0,external_wp_components_namespaceObject.createSlotFill)(external_wp_element_namespaceObject.Platform.OS === 'web' ? Symbol('ViewMoreMenuGroup') : 'ViewMoreMenuGroup');
[23119] Fix | Delete
ViewMoreMenuGroup.Slot = ({
[23120] Fix | Delete
fillProps
[23121] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_more_menu_group_Slot, {
[23122] Fix | Delete
fillProps: fillProps
[23123] Fix | Delete
});
[23124] Fix | Delete
/* harmony default export */ const view_more_menu_group = (ViewMoreMenuGroup);
[23125] Fix | Delete
[23126] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/more-menu/index.js
[23127] Fix | Delete
/**
[23128] Fix | Delete
* WordPress dependencies
[23129] Fix | Delete
*/
[23130] Fix | Delete
[23131] Fix | Delete
[23132] Fix | Delete
[23133] Fix | Delete
[23134] Fix | Delete
[23135] Fix | Delete
[23136] Fix | Delete
[23137] Fix | Delete
[23138] Fix | Delete
/**
[23139] Fix | Delete
* Internal dependencies
[23140] Fix | Delete
*/
[23141] Fix | Delete
[23142] Fix | Delete
[23143] Fix | Delete
[23144] Fix | Delete
[23145] Fix | Delete
[23146] Fix | Delete
[23147] Fix | Delete
[23148] Fix | Delete
[23149] Fix | Delete
function MoreMenu() {
[23150] Fix | Delete
const {
[23151] Fix | Delete
openModal
[23152] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[23153] Fix | Delete
const {
[23154] Fix | Delete
set: setPreference
[23155] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
[23156] Fix | Delete
const {
[23157] Fix | Delete
toggleDistractionFree
[23158] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[23159] Fix | Delete
const showIconLabels = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_preferences_namespaceObject.store).get('core', 'showIconLabels'), []);
[23160] Fix | Delete
const turnOffDistractionFree = () => {
[23161] Fix | Delete
setPreference('core', 'distractionFree', false);
[23162] Fix | Delete
};
[23163] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[23164] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
[23165] Fix | Delete
icon: more_vertical,
[23166] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Options'),
[23167] Fix | Delete
popoverProps: {
[23168] Fix | Delete
placement: 'bottom-end',
[23169] Fix | Delete
className: 'more-menu-dropdown__content'
[23170] Fix | Delete
},
[23171] Fix | Delete
toggleProps: {
[23172] Fix | Delete
showTooltip: !showIconLabels,
[23173] Fix | Delete
...(showIconLabels && {
[23174] Fix | Delete
variant: 'tertiary'
[23175] Fix | Delete
}),
[23176] Fix | Delete
tooltipPosition: 'bottom',
[23177] Fix | Delete
size: 'compact'
[23178] Fix | Delete
},
[23179] Fix | Delete
children: ({
[23180] Fix | Delete
onClose
[23181] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[23182] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
[23183] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun'),
[23184] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
[23185] Fix | Delete
scope: "core",
[23186] Fix | Delete
name: "fixedToolbar",
[23187] Fix | Delete
onToggle: turnOffDistractionFree,
[23188] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
[23189] Fix | Delete
info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
[23190] Fix | Delete
messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
[23191] Fix | Delete
messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
[23192] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
[23193] Fix | Delete
scope: "core",
[23194] Fix | Delete
name: "distractionFree",
[23195] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Distraction free'),
[23196] Fix | Delete
info: (0,external_wp_i18n_namespaceObject.__)('Write with calmness'),
[23197] Fix | Delete
handleToggling: false,
[23198] Fix | Delete
onToggle: toggleDistractionFree,
[23199] Fix | Delete
messageActivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode activated'),
[23200] Fix | Delete
messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Distraction free mode deactivated'),
[23201] Fix | Delete
shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('\\')
[23202] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
[23203] Fix | Delete
scope: "core",
[23204] Fix | Delete
name: "focusMode",
[23205] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode'),
[23206] Fix | Delete
info: (0,external_wp_i18n_namespaceObject.__)('Focus on one block at a time'),
[23207] Fix | Delete
messageActivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode activated'),
[23208] Fix | Delete
messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Spotlight mode deactivated')
[23209] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_more_menu_group.Slot, {
[23210] Fix | Delete
fillProps: {
[23211] Fix | Delete
onClose
[23212] Fix | Delete
}
[23213] Fix | Delete
})]
[23214] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(mode_switcher, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(action_item.Slot, {
[23215] Fix | Delete
name: "core/plugin-more-menu",
[23216] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Plugins'),
[23217] Fix | Delete
as: external_wp_components_namespaceObject.MenuGroup,
[23218] Fix | Delete
fillProps: {
[23219] Fix | Delete
onClick: onClose
[23220] Fix | Delete
}
[23221] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, {
[23222] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Tools'),
[23223] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[23224] Fix | Delete
onClick: () => openModal('editor/keyboard-shortcut-help'),
[23225] Fix | Delete
shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h'),
[23226] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')
[23227] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyContentMenuItem, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuItem, {
[23228] Fix | Delete
icon: library_external,
[23229] Fix | Delete
href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/wordpress-block-editor/'),
[23230] Fix | Delete
target: "_blank",
[23231] Fix | Delete
rel: "noopener noreferrer",
[23232] Fix | Delete
children: [(0,external_wp_i18n_namespaceObject.__)('Help'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
[23233] Fix | Delete
as: "span",
[23234] Fix | Delete
children: /* translators: accessibility text */
[23235] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)')
[23236] Fix | Delete
})]
[23237] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tools_more_menu_group.Slot, {
[23238] Fix | Delete
fillProps: {
[23239] Fix | Delete
onClose
[23240] Fix | Delete
}
[23241] Fix | Delete
})]
[23242] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, {
[23243] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[23244] Fix | Delete
onClick: () => openModal('editor/preferences'),
[23245] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Preferences')
[23246] Fix | Delete
})
[23247] Fix | Delete
})]
[23248] Fix | Delete
})
[23249] Fix | Delete
})
[23250] Fix | Delete
});
[23251] Fix | Delete
}
[23252] Fix | Delete
[23253] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-publish-button/post-publish-button-or-toggle.js
[23254] Fix | Delete
/**
[23255] Fix | Delete
* WordPress dependencies
[23256] Fix | Delete
*/
[23257] Fix | Delete
[23258] Fix | Delete
[23259] Fix | Delete
[23260] Fix | Delete
/**
[23261] Fix | Delete
* Internal dependencies
[23262] Fix | Delete
*/
[23263] Fix | Delete
[23264] Fix | Delete
[23265] Fix | Delete
[23266] Fix | Delete
function PostPublishButtonOrToggle({
[23267] Fix | Delete
forceIsDirty,
[23268] Fix | Delete
hasPublishAction,
[23269] Fix | Delete
isBeingScheduled,
[23270] Fix | Delete
isPending,
[23271] Fix | Delete
isPublished,
[23272] Fix | Delete
isPublishSidebarEnabled,
[23273] Fix | Delete
isPublishSidebarOpened,
[23274] Fix | Delete
isScheduled,
[23275] Fix | Delete
togglePublishSidebar,
[23276] Fix | Delete
setEntitiesSavedStatesCallback,
[23277] Fix | Delete
postStatusHasChanged,
[23278] Fix | Delete
postStatus
[23279] Fix | Delete
}) {
[23280] Fix | Delete
const IS_TOGGLE = 'toggle';
[23281] Fix | Delete
const IS_BUTTON = 'button';
[23282] Fix | Delete
const isSmallerThanMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
[23283] Fix | Delete
let component;
[23284] Fix | Delete
[23285] Fix | Delete
/**
[23286] Fix | Delete
* Conditions to show a BUTTON (publish directly) or a TOGGLE (open publish sidebar):
[23287] Fix | Delete
*
[23288] Fix | Delete
* 1) We want to show a BUTTON when the post status is at the _final stage_
[23289] Fix | Delete
* for a particular role (see https://wordpress.org/documentation/article/post-status/):
[23290] Fix | Delete
*
[23291] Fix | Delete
* - is published
[23292] Fix | Delete
* - post status has changed explicitely to something different than 'future' or 'publish'
[23293] Fix | Delete
* - is scheduled to be published
[23294] Fix | Delete
* - is pending and can't be published (but only for viewports >= medium).
[23295] Fix | Delete
* Originally, we considered showing a button for pending posts that couldn't be published
[23296] Fix | Delete
* (for example, for an author with the contributor role). Some languages can have
[23297] Fix | Delete
* long translations for "Submit for review", so given the lack of UI real estate available
[23298] Fix | Delete
* we decided to take into account the viewport in that case.
[23299] Fix | Delete
* See: https://github.com/WordPress/gutenberg/issues/10475
[23300] Fix | Delete
*
[23301] Fix | Delete
* 2) Then, in small viewports, we'll show a TOGGLE.
[23302] Fix | Delete
*
[23303] Fix | Delete
* 3) Finally, we'll use the publish sidebar status to decide:
[23304] Fix | Delete
*
[23305] Fix | Delete
* - if it is enabled, we show a TOGGLE
[23306] Fix | Delete
* - if it is disabled, we show a BUTTON
[23307] Fix | Delete
*/
[23308] Fix | Delete
if (isPublished || postStatusHasChanged && !['future', 'publish'].includes(postStatus) || isScheduled && isBeingScheduled || isPending && !hasPublishAction && !isSmallerThanMediumViewport) {
[23309] Fix | Delete
component = IS_BUTTON;
[23310] Fix | Delete
} else if (isSmallerThanMediumViewport || isPublishSidebarEnabled) {
[23311] Fix | Delete
component = IS_TOGGLE;
[23312] Fix | Delete
} else {
[23313] Fix | Delete
component = IS_BUTTON;
[23314] Fix | Delete
}
[23315] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_publish_button, {
[23316] Fix | Delete
forceIsDirty: forceIsDirty,
[23317] Fix | Delete
isOpen: isPublishSidebarOpened,
[23318] Fix | Delete
isToggle: component === IS_TOGGLE,
[23319] Fix | Delete
onToggle: togglePublishSidebar,
[23320] Fix | Delete
setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback
[23321] Fix | Delete
});
[23322] Fix | Delete
}
[23323] Fix | Delete
/* harmony default export */ const post_publish_button_or_toggle = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)(select => {
[23324] Fix | Delete
var _select$getCurrentPos;
[23325] Fix | Delete
return {
[23326] Fix | Delete
hasPublishAction: (_select$getCurrentPos = select(store_store).getCurrentPost()?._links?.['wp:action-publish']) !== null && _select$getCurrentPos !== void 0 ? _select$getCurrentPos : false,
[23327] Fix | Delete
isBeingScheduled: select(store_store).isEditedPostBeingScheduled(),
[23328] Fix | Delete
isPending: select(store_store).isCurrentPostPending(),
[23329] Fix | Delete
isPublished: select(store_store).isCurrentPostPublished(),
[23330] Fix | Delete
isPublishSidebarEnabled: select(store_store).isPublishSidebarEnabled(),
[23331] Fix | Delete
isPublishSidebarOpened: select(store_store).isPublishSidebarOpened(),
[23332] Fix | Delete
isScheduled: select(store_store).isCurrentPostScheduled(),
[23333] Fix | Delete
postStatus: select(store_store).getEditedPostAttribute('status'),
[23334] Fix | Delete
postStatusHasChanged: select(store_store).getPostEdits()?.status
[23335] Fix | Delete
};
[23336] Fix | Delete
}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
[23337] Fix | Delete
const {
[23338] Fix | Delete
togglePublishSidebar
[23339] Fix | Delete
} = dispatch(store_store);
[23340] Fix | Delete
return {
[23341] Fix | Delete
togglePublishSidebar
[23342] Fix | Delete
};
[23343] Fix | Delete
}))(PostPublishButtonOrToggle));
[23344] Fix | Delete
[23345] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-view-link/index.js
[23346] Fix | Delete
/**
[23347] Fix | Delete
* WordPress dependencies
[23348] Fix | Delete
*/
[23349] Fix | Delete
[23350] Fix | Delete
[23351] Fix | Delete
[23352] Fix | Delete
[23353] Fix | Delete
[23354] Fix | Delete
[23355] Fix | Delete
[23356] Fix | Delete
/**
[23357] Fix | Delete
* Internal dependencies
[23358] Fix | Delete
*/
[23359] Fix | Delete
[23360] Fix | Delete
[23361] Fix | Delete
function PostViewLink() {
[23362] Fix | Delete
const {
[23363] Fix | Delete
hasLoaded,
[23364] Fix | Delete
permalink,
[23365] Fix | Delete
isPublished,
[23366] Fix | Delete
label,
[23367] Fix | Delete
showIconLabels
[23368] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[23369] Fix | Delete
// Grab post type to retrieve the view_item label.
[23370] Fix | Delete
const postTypeSlug = select(store_store).getCurrentPostType();
[23371] Fix | Delete
const postType = select(external_wp_coreData_namespaceObject.store).getPostType(postTypeSlug);
[23372] Fix | Delete
const {
[23373] Fix | Delete
get
[23374] Fix | Delete
} = select(external_wp_preferences_namespaceObject.store);
[23375] Fix | Delete
return {
[23376] Fix | Delete
permalink: select(store_store).getPermalink(),
[23377] Fix | Delete
isPublished: select(store_store).isCurrentPostPublished(),
[23378] Fix | Delete
label: postType?.labels.view_item,
[23379] Fix | Delete
hasLoaded: !!postType,
[23380] Fix | Delete
showIconLabels: get('core', 'showIconLabels')
[23381] Fix | Delete
};
[23382] Fix | Delete
}, []);
[23383] Fix | Delete
[23384] Fix | Delete
// Only render the view button if the post is published and has a permalink.
[23385] Fix | Delete
if (!isPublished || !permalink || !hasLoaded) {
[23386] Fix | Delete
return null;
[23387] Fix | Delete
}
[23388] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[23389] Fix | Delete
icon: library_external,
[23390] Fix | Delete
label: label || (0,external_wp_i18n_namespaceObject.__)('View post'),
[23391] Fix | Delete
href: permalink,
[23392] Fix | Delete
target: "_blank",
[23393] Fix | Delete
showTooltip: !showIconLabels,
[23394] Fix | Delete
size: "compact"
[23395] Fix | Delete
});
[23396] Fix | Delete
}
[23397] Fix | Delete
[23398] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/mobile.js
[23399] Fix | Delete
/**
[23400] Fix | Delete
* WordPress dependencies
[23401] Fix | Delete
*/
[23402] Fix | Delete
[23403] Fix | Delete
[23404] Fix | Delete
const mobile = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[23405] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[23406] Fix | Delete
viewBox: "0 0 24 24",
[23407] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[23408] Fix | Delete
d: "M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"
[23409] Fix | Delete
})
[23410] Fix | Delete
});
[23411] Fix | Delete
/* harmony default export */ const library_mobile = (mobile);
[23412] Fix | Delete
[23413] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tablet.js
[23414] Fix | Delete
/**
[23415] Fix | Delete
* WordPress dependencies
[23416] Fix | Delete
*/
[23417] Fix | Delete
[23418] Fix | Delete
[23419] Fix | Delete
const tablet = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[23420] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[23421] Fix | Delete
viewBox: "0 0 24 24",
[23422] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[23423] Fix | Delete
d: "M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"
[23424] Fix | Delete
})
[23425] Fix | Delete
});
[23426] Fix | Delete
/* harmony default export */ const library_tablet = (tablet);
[23427] Fix | Delete
[23428] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/desktop.js
[23429] Fix | Delete
/**
[23430] Fix | Delete
* WordPress dependencies
[23431] Fix | Delete
*/
[23432] Fix | Delete
[23433] Fix | Delete
[23434] Fix | Delete
const desktop = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[23435] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[23436] Fix | Delete
viewBox: "0 0 24 24",
[23437] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[23438] Fix | Delete
d: "M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"
[23439] Fix | Delete
})
[23440] Fix | Delete
});
[23441] Fix | Delete
/* harmony default export */ const library_desktop = (desktop);
[23442] Fix | Delete
[23443] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preview-dropdown/index.js
[23444] Fix | Delete
/**
[23445] Fix | Delete
* WordPress dependencies
[23446] Fix | Delete
*/
[23447] Fix | Delete
[23448] Fix | Delete
[23449] Fix | Delete
[23450] Fix | Delete
[23451] Fix | Delete
[23452] Fix | Delete
[23453] Fix | Delete
[23454] Fix | Delete
[23455] Fix | Delete
/**
[23456] Fix | Delete
* Internal dependencies
[23457] Fix | Delete
*/
[23458] Fix | Delete
[23459] Fix | Delete
[23460] Fix | Delete
[23461] Fix | Delete
[23462] Fix | Delete
[23463] Fix | Delete
function PreviewDropdown({
[23464] Fix | Delete
forceIsAutosaveable,
[23465] Fix | Delete
disabled
[23466] Fix | Delete
}) {
[23467] Fix | Delete
const {
[23468] Fix | Delete
deviceType,
[23469] Fix | Delete
homeUrl,
[23470] Fix | Delete
isTemplate,
[23471] Fix | Delete
isViewable,
[23472] Fix | Delete
showIconLabels
[23473] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[23474] Fix | Delete
var _getPostType$viewable;
[23475] Fix | Delete
const {
[23476] Fix | Delete
getDeviceType,
[23477] Fix | Delete
getCurrentPostType
[23478] Fix | Delete
} = select(store_store);
[23479] Fix | Delete
const {
[23480] Fix | Delete
getUnstableBase,
[23481] Fix | Delete
getPostType
[23482] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[23483] Fix | Delete
const {
[23484] Fix | Delete
get
[23485] Fix | Delete
} = select(external_wp_preferences_namespaceObject.store);
[23486] Fix | Delete
const _currentPostType = getCurrentPostType();
[23487] Fix | Delete
return {
[23488] Fix | Delete
deviceType: getDeviceType(),
[23489] Fix | Delete
homeUrl: getUnstableBase()?.home,
[23490] Fix | Delete
isTemplate: _currentPostType === 'wp_template',
[23491] Fix | Delete
isViewable: (_getPostType$viewable = getPostType(_currentPostType)?.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false,
[23492] Fix | Delete
showIconLabels: get('core', 'showIconLabels')
[23493] Fix | Delete
};
[23494] Fix | Delete
}, []);
[23495] Fix | Delete
const {
[23496] Fix | Delete
setDeviceType
[23497] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[23498] Fix | Delete
const isMobile = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
[23499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function