PageSourceSearch

https://dedal24.ru/local/js/BXmakerAuthuserphoneSimplePhone.js?177259889910131

js dedal24.ru collected 2026-10-07 03:06:26 UTC 10,131 bytes, 212 lines download raw bytes

1console.log('/local/js/BXmakerAuthuserphoneSimplePhone.js');
2
3//import {Vue} from 'ui.vue';
4
5BX.ready(function () {
6    BX.Vue.component('BXmakerAuthuserphoneSimplePhone',
7    {
8        props: {
9            loader: {
10                type: Boolean,
11                default: false,
12            },
13            phone: {
14                type: [String],
15                default: '',
16            },
17            phoneError: {
18                type: [String, Boolean],
19                default: false,
20            }
21        },
22        data: function () {
23            return {
24                inputClickActivateChecked: false
25            };
26        },
27        computed: {
28            buttonText() {
29                if (this.$root.confirmType === this.$root.const.CONFIRM_TYPE_SMS_CODE) {
30                    return this.$root.localize.BXMAKER_AUTHUSERPHONE_SIMPLE_PHONE_BUTTON_GET_CODE;
31                } else {
32                    return this.$root.localize.BXMAKER_AUTHUSERPHONE_SIMPLE_PHONE_BUTTON_CONFIRM;
33                }
34            }
35        },
36        mounted() {
37        },
38        updated() {
39        },
40        methods: {
41            inputClickActivate(e) {
42                var input = document.querySelector('.bxmaker-authuserphone-consent-button input');
43                // console.log(input.checked);
44                if (input != undefined) {
45                    input.addEventListener('click', function () {
46
47                        input.checked = true;
48                        input.dispatchEvent(new Event('change', { bubbles: true }));
49                        this.inputClickActivateChecked = true;
50                        console.log('input.checked', input.checked);
51                        document.querySelector('.bxmaker-authuserphone-consent-button span').click();
52                    });
53                }
54            },
55            onInputPhone(value) {
56                this.$emit('onInputPhone', value);
57            },
58            onClickDone(e) {
59                var agree2 = document.querySelector('.agree-check-2');
60                if (agree2 != undefined && agree2.checked == false) {
61                    console.log(agree2.nextElementSibling);
62                    agree2.nextElementSibling.style.color = 'red';
63                }
64                var agree1 = document.querySelector('.agree-check-1');
65                if (agree1 != undefined && agree1.checked == false) {
66                    console.log(agree1.nextElementSibling);
67                    agree1.nextElementSibling.style.color = 'red';
68                }
69                // if (this.$root.isEnabledRequestConsent && !this.$root.isConsentReceived) {
70                //     document.querySelectorAll('.bxmaker-authuserphone-consent-button span')[0].style.color = 'red';
71                //     this.$refs.consent.showPopup(e);
72                // }
73                if (
74                    (agree2 != undefined && agree2.checked == false) ||
75                    (agree1 != undefined && agree1.checked == false)
76                    // (this.$root.isEnabledRequestConsent && !this.$root.isConsentReceived)
77                ) {
78                    return;
79                }
80                console.log('onClickDone end');
81                this.$emit('onClickDone');
82            },
83            onCompleteCaptcha() {
84                this.onClickDone(null);
85            },
86            onChangePhone(data) {
87                this.$emit('onInputPhone', data.formattedValue);
88            },
89            onConsentAgree() {
90                // this.inputClickActivateChecked = false;
91                this.$root.isConsentReceived = true;
92                this.$root.consentAgree();
93                // this.$emit('onClickDone');
94            },
95            test_s() {
96                this.$root.isAdsAgreementReceived = true;
97                this.$root.adsAgreementAgree();
98            }
99        },
100        //language=Vue
101        template: `
102            <div class="bxmaker-authuserphone-simple-phone">    
103                          
104                  <slot name="header">
105                      <BXmakerAuthuserphoneHeader>
106                          {{$root.localize.BXMAKER_AUTHUSERPHONE_SIMPLE_PHONE_TITLE}}                        
107                      </BXmakerAuthuserphoneHeader>
108                  </slot>
109                              
110                   <slot name="message">  
111                        <BXmakerAuthuserphoneMessage :message="$root.message" :error="$root.error" />
112                   </slot>     
113                                 
114                       
115                    <slot name="phone">                   
116                        <BXmakerAuthuserphoneInputPhone  v-if="$root.isEnabledPhoneMaskTypeBitrix"
117                            :title="$root.localize.BXMAKER_AUTHUSERPHONE_SIMPLE_PHONE_INPUT_LABEL" 
118                            :value="phone" 
119                            @onChange="onChangePhone" 
120                            @onEnter="onClickDone" 
121                            :defaultCountry="$root.phoneMaskDefaultCountry"
122                            :countryTopList="$root.phoneMaskCountryTopList"
123                            :validationMessage="phoneError"
124                            name="PHONE" 
125                            :mask="$root.phoneMaskParams"
126                        />
127                        
128                        
129                        <BXmakerAuthuserphoneInput v-else
130                            :title="$root.localize.BXMAKER_AUTHUSERPHONE_SIMPLE_PHONE_INPUT_LABEL" 
131                            :value="phone" 
132                            @onInput="onInputPhone" 
133                            @onEnter="onClickDone" 
134                            name="PHONE" 
135                            :validationMessage="phoneError"
136                            :mask="$root.phoneMaskParams"
137                            type="tel"
138                        />                       
139                        
140                    </slot>
141                    
142                     <slot name="captcha">                        
143                       <BXmakerAuthuserphoneCaptcha
144                           :captcha="$root.captcha"
145                           @onInput="$root.setCaptchaData"
146                           @onComplete="onCompleteCaptcha"
147                       />
148                     </slot>                     
149                  
150                      <div class="bxmaker-authuserphone-consent">
151                          <label class="bxmaker-authuserphone-consent-button">
152                              <input class="agree-check-1" type="checkbox" value="Y" name="consentReceived">
153                              <span v-html="$root.consentLabel"></span>
154                          </label>
155                      </div>
156                  
157<!--                      <slot name="consent" v-if="$root.isEnabledRequestConsent">-->
158<!--                        <BXmakerAuthuserphoneConsent-->
159<!--                            :button="buttonText"-->
160<!--                            :text="$root.consentText"-->
161<!--                            :label="$root.consentLabel"-->
162<!--                            :disabledPopup="$root.consentDisabledPopup || !$root.consentId"-->
163<!--                            :isReceived="$root.isConsentReceived"-->
164<!--                            :loader="$root.consentLoader"-->
165<!--                            @onAgree="onConsentAgree"-->
166<!--                            @onDisagree="$root.consentDisagree"-->
167<!--                            ref="consent"-->
168<!--                        />-->
169<!--                      </slot>   -->
170                        
171                        <div class="bxmaker-authuserphone-consent">
172                             <label class="bxmaker-authuserphone-consent-button" style="margin-bottom: 24px;">
173                                 <input class="agree-check-2" type="checkbox" value="Y" name="consentReceived" required>
174                                 <span>Ознакомлен и согласен с <a href="http://dedal24.ru/include/offer_detail.php" target="_blank">договором-офертой</a></span>
175                             </label>
176                         <div>  
177                  
178                        <div class="bxmaker-authuserphone-consent">
179                            <label class="bxmaker-authuserphone-consent-button">
180                                <input type="checkbox" value="Y" name="consentReceived">
181                                <span v-html="$root.adsAgreementLabel"></span>
182                            </label>  
183                        </div>  
184                  
185<!--                     <slot name="adsAgreement" v-if="$root.isEnabledAdsAgreement">                       -->
186<!--                       <BXmakerAuthuserphoneConsent-->
187<!--                           :button="buttonText"-->
188<!--                           :text="$root.adsAgreementText"-->
189<!--                           :label="$root.adsAgreementLabel"-->
190<!--                           :disabledPopup="$root.adsAgreementDisabledPopup || !$root.adsAgreementId"-->
191<!--                           :isReceived="$root.isAdsAgreementReceived"-->
192<!--                           :loader="$root.adsAgreementLoader"-->
193<!--                           @onAgree="test_s"-->
194<!--                           @onDisagree="$root.adsAgreementDisagree"-->
195<!--                           ref="adsAgreement"-->
196<!--                           :popupTitle="$root.adsAgreementPopupTitle"-->
197<!--                       />-->
198<!--                      </slot>-->
199                  
200                     <slot name="request">
201                        <BXmakerAuthuserphoneButton 
202                            :title="buttonText"  
203                            :loader="loader"
204                            @onClick="onClickDone" 
205                        />
206                    </slot>
207                    
208            </div>   
209        `,
210    });
211
212});

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.