PageSourceSearch

https://diver.ru/bitrix/js/disk/dialog-markup/dist/dialog-markup.bundle.min.js?17905866133613

js diver.ru collected 2026-10-02 16:17:22 UTC 3,613 bytes, 58 lines download raw bytes

1this.BX=this.BX||{};this.BX.Disk=this.BX.Disk||{};(function(e,t){"use strict";function n(e){if(!t.Type.isStringFilled(e)||!/^(?:\/(?![/\\])|https?:\/\/)/i.test(e)){return""}try{return new URL(e,location.href).origin===location.origin?e:""}catch{return""}}const s="bx-disk-info-popup-btn";const i="data-hidden";const o="bx-disk-info-popup-btn-active";function d(e,n){const d=e.hidden===true;const a=t.Loc.getMessage(e.titleMessageId)??"";const c=t.Loc.getMessage(e.descriptionMessageId)??"";const r=t.Tag.render`
2		<span
3			id="${e.id}"
4			class="${s} ${e.modifierClass}"
5			data-service="${e.service}"
6			data-testid="${e.testId}"
7			role="radio"
8			tabindex="-1"
9			aria-checked="${n?"true":"false"}"
10			aria-labelledby="${e.titleId}"
11			aria-describedby="${e.descriptionId}"
12		>
13			<span class="bx-disk-info-popup-btn-text"><span id="${e.titleId}">${a}</span></span>
14			<span class="bx-disk-info-popup-btn-descript" id="${e.descriptionId}">${c}</span>
15			<span class="bx-disk-info-popup-btn-check"></span>
16		</span>
17	`;if(n){t.Dom.addClass(r,o);t.Dom.attr(r,"data-autofocus","")}if(d){t.Dom.attr(r,i,"");t.Dom.style(r,"display","none")}return r}const a="disk-locked-document-warning-title";function c(e){const s=n(e.link);const i=(t.Loc.getMessage(e.textMessageId)??"").replace("#LINK#",(()=>t.Text.encode(s)));const o=t.Type.isStringFilled(s)?t.Tag.render`
18			<button
19				type="button"
20				tabindex="0"
21				class="webform-button webform-button-create disk-locked-document-popup-content-button"
22				data-testid="disk-locked-document-warning-open"
23				data-autofocus
24			>${t.Loc.getMessage(e.actionMessageId)??""}</button>
25		`:"";const d=t.Tag.render`
26		<div class="disk-locked-document-popup" data-testid="disk-locked-document-warning">
27			<div class="disk-locked-document-popup-container">
28				<div class="disk-locked-document-popup-img-container">
29					<div class="disk-locked-document-popup-img"></div>
30				</div>
31				<div class="disk-locked-document-popup-content">
32					<h3 class="disk-locked-document-popup-content-title" id="${a}">
33						${t.Loc.getMessage(e.titleMessageId)??""}
34					</h3>
35					<div class="disk-locked-document-popup-content-info">
36						<span class="disk-locked-document-popup-content-text">${i}</span>
37					</div>
38					${o}
39				</div>
40			</div>
41		</div>
42	`;if(!t.Type.isStringFilled(s)){d.querySelectorAll(".disk-locked-document-popup-content-text a").forEach((e=>{e.removeAttribute("href");e.removeAttribute("target");e.removeAttribute("rel")}))}return d}const r="wd-new-create-filename";const p="wd-new-create-filename-extension";function l(e){const n=t.Loc.getMessage("DISK_JS_DIALOG_MARKUP_SAVE_AS_NAME_LABEL")??"";const s=t.Tag.render`
43		<div
44			class="bx-disk-document-edit-confirm-text-wrap bx-disk-document-edit-confirm-center"
45			data-testid="disk-save-as-name-field"
46		>
47			<label class="bx-disk-document-edit-name-label" for="${r}">${n}</label>
48			<input
49				id="${r}"
50				class="bx-disk-document-edit-name-input"
51				type="text"
52				data-testid="disk-save-as-name-input"
53				data-autofocus
54			>
55			<span class="bx-disk-document-edit-confirm-extension" id="${p}"></span>
56		</div>
57	`;const i=s.querySelector(`#${r}`);const o=s.querySelector(`#${p}`);i.value=e.nameWithoutExtension??"";o.textContent=e.extension??"";if(o.textContent!==""){t.Dom.attr(i,"aria-describedby",p)}return s}e.LOCKED_DOCUMENT_WARNING_TITLE_ID=a;e.SAVE_AS_FIELD_ID=r;e.SERVICE_CARD_HIDDEN_ATTRIBUTE=i;e.renderLockedDocumentWarning=c;e.renderSaveAsField=l;e.renderServiceCard=d;e.safeLink=n})(this.BX.Disk.DialogMarkup=this.BX.Disk.DialogMarkup||{},BX);
58//# sourceMappingURL=dialog-markup.bundle.map.js

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.