hoàn thành trang about.html
@@ -95,3 +95,5 @@ If you have run out of energy or time for your project, put a note at the top of
|
|||||||
|
|
||||||
cd ..\sisvietnamvn\
|
cd ..\sisvietnamvn\
|
||||||
.\gradlew bootRun
|
.\gradlew bootRun
|
||||||
|
|
||||||
|
dùng JHipster
|
||||||
|
After Width: | Height: | Size: 265 KiB |
|
After Width: | Height: | Size: 484 KiB |
|
After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 630 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 314 KiB |
|
After Width: | Height: | Size: 408 KiB |
|
After Width: | Height: | Size: 607 KiB |
|
After Width: | Height: | Size: 281 KiB |
|
After Width: | Height: | Size: 466 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 380 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 370 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 309 KiB |
|
After Width: | Height: | Size: 618 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1 @@
|
|||||||
|
/* PLEASE DO NOT COPY AND PASTE THIS CODE. */(function(){var w=window,C='___grecaptcha_cfg',cfg=w[C]=w[C]||{},N='grecaptcha';var gr=w[N]=w[N]||{};gr.ready=gr.ready||function(f){(cfg['fns']=cfg['fns']||[]).push(f);};w['__recaptcha_api']='https://www.google.com/recaptcha/api2/';(cfg['render']=cfg['render']||[]).push('onload');(cfg['anchor-ms']=cfg['anchor-ms']||[]).push(20000);(cfg['execute-ms']=cfg['execute-ms']||[]).push(30000);w['__google_recaptcha_client']=true;var d=document,po=d.createElement('script');po.type='text/javascript';po.async=true; po.charset='utf-8';po.src='https://www.gstatic.com/recaptcha/releases/hsFBb1u5wWWWkWP4in1ua2cQ/recaptcha__vi.js';po.crossOrigin='anonymous';po.integrity='sha384-3hQs73wO7LyiswjVqa+8n2EcRJELqidW4D0HnIjSdAGJAlkQC0gnDjaT+jQoSaHe';var e=d.querySelector('script[nonce]'),n=e&&(e['nonce']||e.getAttribute('nonce'));if(n){po.setAttribute('nonce',n);}var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(po, s);})();
|
||||||
@@ -0,0 +1,340 @@
|
|||||||
|
/* cyrillic-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||||
|
}
|
||||||
|
/* cyrillic */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||||
|
}
|
||||||
|
/* greek-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+1F00-1FFF;
|
||||||
|
}
|
||||||
|
/* greek */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
||||||
|
}
|
||||||
|
/* hebrew */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||||
|
}
|
||||||
|
/* math */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
|
||||||
|
}
|
||||||
|
/* symbols */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
|
||||||
|
}
|
||||||
|
/* vietnamese */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||||
|
}
|
||||||
|
/* latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
|
}
|
||||||
|
/* latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
/* cyrillic-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||||
|
}
|
||||||
|
/* cyrillic */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||||
|
}
|
||||||
|
/* greek-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+1F00-1FFF;
|
||||||
|
}
|
||||||
|
/* greek */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
||||||
|
}
|
||||||
|
/* hebrew */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
|
||||||
|
}
|
||||||
|
/* math */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
|
||||||
|
}
|
||||||
|
/* symbols */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
|
||||||
|
}
|
||||||
|
/* vietnamese */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||||
|
}
|
||||||
|
/* latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
|
}
|
||||||
|
/* latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-stretch: 100%;
|
||||||
|
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
/* cyrillic-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752FD8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||||
|
}
|
||||||
|
/* cyrillic */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752HT8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||||
|
}
|
||||||
|
/* vietnamese */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fj8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||||
|
}
|
||||||
|
/* latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fz8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
|
}
|
||||||
|
/* latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752GT8G.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
/* cyrillic-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752FD8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||||
|
}
|
||||||
|
/* cyrillic */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752HT8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||||
|
}
|
||||||
|
/* vietnamese */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fj8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||||
|
}
|
||||||
|
/* latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fz8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
|
}
|
||||||
|
/* latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752GT8G.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
/* cyrillic-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752FD8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||||
|
}
|
||||||
|
/* cyrillic */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752HT8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||||
|
}
|
||||||
|
/* vietnamese */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fj8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||||
|
}
|
||||||
|
/* latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fz8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
|
}
|
||||||
|
/* latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752GT8G.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
/* cyrillic-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752FD8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||||
|
}
|
||||||
|
/* cyrillic */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752HT8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||||
|
}
|
||||||
|
/* vietnamese */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fj8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||||
|
}
|
||||||
|
/* latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752Fz8Ghe4.woff2) format('woff2');
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
|
}
|
||||||
|
/* latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Oswald';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url(https://fonts.gstatic.com/s/oswald/v57/TK3iWkUHHAIjg752GT8G.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
/* latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Lato';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/lato/v25/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
|
}
|
||||||
|
/* latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Lato';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/lato/v25/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
/*! This file is auto-generated */
|
||||||
|
!function(I){I.fn.hoverIntent=function(e,t,n){function r(e){o=e.pageX,v=e.pageY}var o,v,i,u,s={interval:100,sensitivity:6,timeout:0},s="object"==typeof e?I.extend(s,e):I.isFunction(t)?I.extend(s,{over:e,out:t,selector:n}):I.extend(s,{over:e,out:e,selector:t}),h=function(e,t){if(t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.sqrt((i-o)*(i-o)+(u-v)*(u-v))<s.sensitivity)return I(t).off("mousemove.hoverIntent",r),t.hoverIntent_s=!0,s.over.apply(t,[e]);i=o,u=v,t.hoverIntent_t=setTimeout(function(){h(e,t)},s.interval)},t=function(e){var n=I.extend({},e),o=this;o.hoverIntent_t&&(o.hoverIntent_t=clearTimeout(o.hoverIntent_t)),"mouseenter"===e.type?(i=n.pageX,u=n.pageY,I(o).on("mousemove.hoverIntent",r),o.hoverIntent_s||(o.hoverIntent_t=setTimeout(function(){h(n,o)},s.interval))):(I(o).off("mousemove.hoverIntent",r),o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){var e,t;e=n,(t=o).hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=!1,s.out.apply(t,[e])},s.timeout)))};return this.on({"mouseenter.hoverIntent":t,"mouseleave.hoverIntent":t},s.selector)}}(jQuery);
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,124 @@
|
|||||||
|
/*!
|
||||||
|
* Knockout JavaScript library v3.4.2
|
||||||
|
* (c) The Knockout.js team - http://knockoutjs.com/
|
||||||
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function() {(function(n){var x=this||(0,eval)("this"),t=x.document,M=x.navigator,u=x.jQuery,H=x.JSON;(function(n){"function"===typeof define&&define.amd?define(["exports","require"],n):"object"===typeof exports&&"object"===typeof module?n(module.exports||exports):n(x.ko={})})(function(N,O){function J(a,c){return null===a||typeof a in R?a===c:!1}function S(b,c){var d;return function(){d||(d=a.a.setTimeout(function(){d=n;b()},c))}}function T(b,c){var d;return function(){clearTimeout(d);d=a.a.setTimeout(b,c)}}function U(a,
|
||||||
|
c){c&&c!==E?"beforeChange"===c?this.Ob(a):this.Ja(a,c):this.Pb(a)}function V(a,c){null!==c&&c.k&&c.k()}function W(a,c){var d=this.Mc,e=d[s];e.T||(this.ob&&this.Oa[c]?(d.Sb(c,a,this.Oa[c]),this.Oa[c]=null,--this.ob):e.s[c]||d.Sb(c,a,e.t?{$:a}:d.yc(a)),a.Ha&&a.Hc())}function K(b,c,d,e){a.d[b]={init:function(b,g,h,l,m){var k,r;a.m(function(){var q=g(),p=a.a.c(q),p=!d!==!p,A=!r;if(A||c||p!==k)A&&a.xa.Ca()&&(r=a.a.wa(a.f.childNodes(b),!0)),p?(A||a.f.fa(b,a.a.wa(r)),a.hb(e?e(m,q):m,b)):a.f.za(b),k=p},null,
|
||||||
|
{i:b});return{controlsDescendantBindings:!0}}};a.h.va[b]=!1;a.f.aa[b]=!0}var a="undefined"!==typeof N?N:{};a.b=function(b,c){for(var d=b.split("."),e=a,f=0;f<d.length-1;f++)e=e[d[f]];e[d[d.length-1]]=c};a.H=function(a,c,d){a[c]=d};a.version="3.4.2";a.b("version",a.version);a.options={deferUpdates:!1,useOnlyNativeEvents:!1};a.a=function(){function b(a,b){for(var c in a)a.hasOwnProperty(c)&&b(c,a[c])}function c(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function d(a,b){a.__proto__=
|
||||||
|
b;return a}function e(b,c,d,e){var m=b[c].match(r)||[];a.a.r(d.match(r),function(b){a.a.ra(m,b,e)});b[c]=m.join(" ")}var f={__proto__:[]}instanceof Array,g="function"===typeof Symbol,h={},l={};h[M&&/Firefox\/2/i.test(M.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"];h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" ");b(h,function(a,b){if(b.length)for(var c=0,d=b.length;c<d;c++)l[b[c]]=a});var m={propertychange:!0},k=
|
||||||
|
t&&function(){for(var a=3,b=t.createElement("div"),c=b.getElementsByTagName("i");b.innerHTML="\x3c!--[if gt IE "+ ++a+"]><i></i><![endif]--\x3e",c[0];);return 4<a?a:n}(),r=/\S+/g;return{gc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],r:function(a,b){for(var c=0,d=a.length;c<d;c++)b(a[c],c)},o:function(a,b){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(a,b);for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},Vb:function(a,b,c){for(var d=
|
||||||
|
0,e=a.length;d<e;d++)if(b.call(c,a[d],d))return a[d];return null},Na:function(b,c){var d=a.a.o(b,c);0<d?b.splice(d,1):0===d&&b.shift()},Wb:function(b){b=b||[];for(var c=[],d=0,e=b.length;d<e;d++)0>a.a.o(c,b[d])&&c.push(b[d]);return c},ib:function(a,b){a=a||[];for(var c=[],d=0,e=a.length;d<e;d++)c.push(b(a[d],d));return c},Ma:function(a,b){a=a||[];for(var c=[],d=0,e=a.length;d<e;d++)b(a[d],d)&&c.push(a[d]);return c},ta:function(a,b){if(b instanceof Array)a.push.apply(a,b);else for(var c=0,d=b.length;c<
|
||||||
|
d;c++)a.push(b[c]);return a},ra:function(b,c,d){var e=a.a.o(a.a.Bb(b),c);0>e?d&&b.push(c):d||b.splice(e,1)},la:f,extend:c,$a:d,ab:f?d:c,D:b,Ea:function(a,b){if(!a)return a;var c={},d;for(d in a)a.hasOwnProperty(d)&&(c[d]=b(a[d],d,a));return c},rb:function(b){for(;b.firstChild;)a.removeNode(b.firstChild)},nc:function(b){b=a.a.W(b);for(var c=(b[0]&&b[0].ownerDocument||t).createElement("div"),d=0,e=b.length;d<e;d++)c.appendChild(a.ba(b[d]));return c},wa:function(b,c){for(var d=0,e=b.length,m=[];d<e;d++){var k=
|
||||||
|
b[d].cloneNode(!0);m.push(c?a.ba(k):k)}return m},fa:function(b,c){a.a.rb(b);if(c)for(var d=0,e=c.length;d<e;d++)b.appendChild(c[d])},uc:function(b,c){var d=b.nodeType?[b]:b;if(0<d.length){for(var e=d[0],m=e.parentNode,k=0,f=c.length;k<f;k++)m.insertBefore(c[k],e);k=0;for(f=d.length;k<f;k++)a.removeNode(d[k])}},Ba:function(a,b){if(a.length){for(b=8===b.nodeType&&b.parentNode||b;a.length&&a[0].parentNode!==b;)a.splice(0,1);for(;1<a.length&&a[a.length-1].parentNode!==b;)a.length--;if(1<a.length){var c=
|
||||||
|
a[0],d=a[a.length-1];for(a.length=0;c!==d;)a.push(c),c=c.nextSibling;a.push(d)}}return a},wc:function(a,b){7>k?a.setAttribute("selected",b):a.selected=b},cb:function(a){return null===a||a===n?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},sd:function(a,b){a=a||"";return b.length>a.length?!1:a.substring(0,b.length)===b},Rc:function(a,b){if(a===b)return!0;if(11===a.nodeType)return!1;if(b.contains)return b.contains(3===a.nodeType?a.parentNode:a);if(b.compareDocumentPosition)return 16==
|
||||||
|
(b.compareDocumentPosition(a)&16);for(;a&&a!=b;)a=a.parentNode;return!!a},qb:function(b){return a.a.Rc(b,b.ownerDocument.documentElement)},Tb:function(b){return!!a.a.Vb(b,a.a.qb)},A:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},Zb:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(c){throw a.onError&&a.onError(c),c;}}:b},setTimeout:function(b,c){return setTimeout(a.a.Zb(b),c)},dc:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},q:function(b,
|
||||||
|
c,d){var e=a.a.Zb(d);d=k&&m[c];if(a.options.useOnlyNativeEvents||d||!u)if(d||"function"!=typeof b.addEventListener)if("undefined"!=typeof b.attachEvent){var f=function(a){e.call(b,a)},l="on"+c;b.attachEvent(l,f);a.a.G.qa(b,function(){b.detachEvent(l,f)})}else throw Error("Browser doesn't support addEventListener or attachEvent");else b.addEventListener(c,e,!1);else u(b).bind(c,e)},Fa:function(b,c){if(!b||!b.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var d;"input"===
|
||||||
|
a.a.A(b)&&b.type&&"click"==c.toLowerCase()?(d=b.type,d="checkbox"==d||"radio"==d):d=!1;if(a.options.useOnlyNativeEvents||!u||d)if("function"==typeof t.createEvent)if("function"==typeof b.dispatchEvent)d=t.createEvent(l[c]||"HTMLEvents"),d.initEvent(c,!0,!0,x,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d);else throw Error("The supplied element doesn't support dispatchEvent");else if(d&&b.click)b.click();else if("undefined"!=typeof b.fireEvent)b.fireEvent("on"+c);else throw Error("Browser doesn't support triggering events");
|
||||||
|
else u(b).trigger(c)},c:function(b){return a.I(b)?b():b},Bb:function(b){return a.I(b)?b.p():b},fb:function(b,c,d){var k;c&&("object"===typeof b.classList?(k=b.classList[d?"add":"remove"],a.a.r(c.match(r),function(a){k.call(b.classList,a)})):"string"===typeof b.className.baseVal?e(b.className,"baseVal",c,d):e(b,"className",c,d))},bb:function(b,c){var d=a.a.c(c);if(null===d||d===n)d="";var e=a.f.firstChild(b);!e||3!=e.nodeType||a.f.nextSibling(e)?a.f.fa(b,[b.ownerDocument.createTextNode(d)]):e.data=
|
||||||
|
d;a.a.Wc(b)},vc:function(a,b){a.name=b;if(7>=k)try{a.mergeAttributes(t.createElement("<input name='"+a.name+"'/>"),!1)}catch(c){}},Wc:function(a){9<=k&&(a=1==a.nodeType?a:a.parentNode,a.style&&(a.style.zoom=a.style.zoom))},Sc:function(a){if(k){var b=a.style.width;a.style.width=0;a.style.width=b}},nd:function(b,c){b=a.a.c(b);c=a.a.c(c);for(var d=[],e=b;e<=c;e++)d.push(e);return d},W:function(a){for(var b=[],c=0,d=a.length;c<d;c++)b.push(a[c]);return b},bc:function(a){return g?Symbol(a):a},xd:6===k,
|
||||||
|
yd:7===k,C:k,ic:function(b,c){for(var d=a.a.W(b.getElementsByTagName("input")).concat(a.a.W(b.getElementsByTagName("textarea"))),e="string"==typeof c?function(a){return a.name===c}:function(a){return c.test(a.name)},k=[],m=d.length-1;0<=m;m--)e(d[m])&&k.push(d[m]);return k},kd:function(b){return"string"==typeof b&&(b=a.a.cb(b))?H&&H.parse?H.parse(b):(new Function("return "+b))():null},Gb:function(b,c,d){if(!H||!H.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");
|
||||||
|
return H.stringify(a.a.c(b),c,d)},ld:function(c,d,e){e=e||{};var k=e.params||{},m=e.includeFields||this.gc,f=c;if("object"==typeof c&&"form"===a.a.A(c))for(var f=c.action,l=m.length-1;0<=l;l--)for(var g=a.a.ic(c,m[l]),h=g.length-1;0<=h;h--)k[g[h].name]=g[h].value;d=a.a.c(d);var r=t.createElement("form");r.style.display="none";r.action=f;r.method="post";for(var n in d)c=t.createElement("input"),c.type="hidden",c.name=n,c.value=a.a.Gb(a.a.c(d[n])),r.appendChild(c);b(k,function(a,b){var c=t.createElement("input");
|
||||||
|
c.type="hidden";c.name=a;c.value=b;r.appendChild(c)});t.body.appendChild(r);e.submitter?e.submitter(r):r.submit();setTimeout(function(){r.parentNode.removeChild(r)},0)}}}();a.b("utils",a.a);a.b("utils.arrayForEach",a.a.r);a.b("utils.arrayFirst",a.a.Vb);a.b("utils.arrayFilter",a.a.Ma);a.b("utils.arrayGetDistinctValues",a.a.Wb);a.b("utils.arrayIndexOf",a.a.o);a.b("utils.arrayMap",a.a.ib);a.b("utils.arrayPushAll",a.a.ta);a.b("utils.arrayRemoveItem",a.a.Na);a.b("utils.extend",a.a.extend);a.b("utils.fieldsIncludedWithJsonPost",
|
||||||
|
a.a.gc);a.b("utils.getFormFields",a.a.ic);a.b("utils.peekObservable",a.a.Bb);a.b("utils.postJson",a.a.ld);a.b("utils.parseJson",a.a.kd);a.b("utils.registerEventHandler",a.a.q);a.b("utils.stringifyJson",a.a.Gb);a.b("utils.range",a.a.nd);a.b("utils.toggleDomNodeCssClass",a.a.fb);a.b("utils.triggerEvent",a.a.Fa);a.b("utils.unwrapObservable",a.a.c);a.b("utils.objectForEach",a.a.D);a.b("utils.addOrRemoveItem",a.a.ra);a.b("utils.setTextContent",a.a.bb);a.b("unwrap",a.a.c);Function.prototype.bind||(Function.prototype.bind=
|
||||||
|
function(a){var c=this;if(1===arguments.length)return function(){return c.apply(a,arguments)};var d=Array.prototype.slice.call(arguments,1);return function(){var e=d.slice(0);e.push.apply(e,arguments);return c.apply(a,e)}});a.a.e=new function(){function a(b,g){var h=b[d];if(!h||"null"===h||!e[h]){if(!g)return n;h=b[d]="ko"+c++;e[h]={}}return e[h]}var c=0,d="__ko__"+(new Date).getTime(),e={};return{get:function(c,d){var e=a(c,!1);return e===n?n:e[d]},set:function(c,d,e){if(e!==n||a(c,!1)!==n)a(c,!0)[d]=
|
||||||
|
e},clear:function(a){var b=a[d];return b?(delete e[b],a[d]=null,!0):!1},J:function(){return c++ +d}}};a.b("utils.domData",a.a.e);a.b("utils.domData.clear",a.a.e.clear);a.a.G=new function(){function b(b,c){var e=a.a.e.get(b,d);e===n&&c&&(e=[],a.a.e.set(b,d,e));return e}function c(d){var e=b(d,!1);if(e)for(var e=e.slice(0),l=0;l<e.length;l++)e[l](d);a.a.e.clear(d);a.a.G.cleanExternalData(d);if(f[d.nodeType])for(e=d.firstChild;d=e;)e=d.nextSibling,8===d.nodeType&&c(d)}var d=a.a.e.J(),e={1:!0,8:!0,9:!0},
|
||||||
|
f={1:!0,9:!0};return{qa:function(a,c){if("function"!=typeof c)throw Error("Callback must be a function");b(a,!0).push(c)},tc:function(c,e){var f=b(c,!1);f&&(a.a.Na(f,e),0==f.length&&a.a.e.set(c,d,n))},ba:function(b){if(e[b.nodeType]&&(c(b),f[b.nodeType])){var d=[];a.a.ta(d,b.getElementsByTagName("*"));for(var l=0,m=d.length;l<m;l++)c(d[l])}return b},removeNode:function(b){a.ba(b);b.parentNode&&b.parentNode.removeChild(b)},cleanExternalData:function(a){u&&"function"==typeof u.cleanData&&u.cleanData([a])}}};
|
||||||
|
a.ba=a.a.G.ba;a.removeNode=a.a.G.removeNode;a.b("cleanNode",a.ba);a.b("removeNode",a.removeNode);a.b("utils.domNodeDisposal",a.a.G);a.b("utils.domNodeDisposal.addDisposeCallback",a.a.G.qa);a.b("utils.domNodeDisposal.removeDisposeCallback",a.a.G.tc);(function(){var b=[0,"",""],c=[1,"<table>","</table>"],d=[3,"<table><tbody><tr>","</tr></tbody></table>"],e=[1,"<select multiple='multiple'>","</select>"],f={thead:c,tbody:c,tfoot:c,tr:[2,"<table><tbody>","</tbody></table>"],td:d,th:d,option:e,optgroup:e},
|
||||||
|
g=8>=a.a.C;a.a.na=function(c,d){var e;if(u)if(u.parseHTML)e=u.parseHTML(c,d)||[];else{if((e=u.clean([c],d))&&e[0]){for(var k=e[0];k.parentNode&&11!==k.parentNode.nodeType;)k=k.parentNode;k.parentNode&&k.parentNode.removeChild(k)}}else{(e=d)||(e=t);var k=e.parentWindow||e.defaultView||x,r=a.a.cb(c).toLowerCase(),q=e.createElement("div"),p;p=(r=r.match(/^<([a-z]+)[ >]/))&&f[r[1]]||b;r=p[0];p="ignored<div>"+p[1]+c+p[2]+"</div>";"function"==typeof k.innerShiv?q.appendChild(k.innerShiv(p)):(g&&e.appendChild(q),
|
||||||
|
q.innerHTML=p,g&&q.parentNode.removeChild(q));for(;r--;)q=q.lastChild;e=a.a.W(q.lastChild.childNodes)}return e};a.a.Eb=function(b,c){a.a.rb(b);c=a.a.c(c);if(null!==c&&c!==n)if("string"!=typeof c&&(c=c.toString()),u)u(b).html(c);else for(var d=a.a.na(c,b.ownerDocument),e=0;e<d.length;e++)b.appendChild(d[e])}})();a.b("utils.parseHtmlFragment",a.a.na);a.b("utils.setHtml",a.a.Eb);a.N=function(){function b(c,e){if(c)if(8==c.nodeType){var f=a.N.pc(c.nodeValue);null!=f&&e.push({Qc:c,hd:f})}else if(1==c.nodeType)for(var f=
|
||||||
|
0,g=c.childNodes,h=g.length;f<h;f++)b(g[f],e)}var c={};return{yb:function(a){if("function"!=typeof a)throw Error("You can only pass a function to ko.memoization.memoize()");var b=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);c[b]=a;return"\x3c!--[ko_memo:"+b+"]--\x3e"},Bc:function(a,b){var f=c[a];if(f===n)throw Error("Couldn't find any memo with ID "+a+". Perhaps it's already been unmemoized.");try{return f.apply(null,b||[]),
|
||||||
|
!0}finally{delete c[a]}},Cc:function(c,e){var f=[];b(c,f);for(var g=0,h=f.length;g<h;g++){var l=f[g].Qc,m=[l];e&&a.a.ta(m,e);a.N.Bc(f[g].hd,m);l.nodeValue="";l.parentNode&&l.parentNode.removeChild(l)}},pc:function(a){return(a=a.match(/^\[ko_memo\:(.*?)\]$/))?a[1]:null}}}();a.b("memoization",a.N);a.b("memoization.memoize",a.N.yb);a.b("memoization.unmemoize",a.N.Bc);a.b("memoization.parseMemoText",a.N.pc);a.b("memoization.unmemoizeDomNodeAndDescendants",a.N.Cc);a.Z=function(){function b(){if(e)for(var b=
|
||||||
|
e,c=0,m;g<e;)if(m=d[g++]){if(g>b){if(5E3<=++c){g=e;a.a.dc(Error("'Too much recursion' after processing "+c+" task groups."));break}b=e}try{m()}catch(k){a.a.dc(k)}}}function c(){b();g=e=d.length=0}var d=[],e=0,f=1,g=0;return{scheduler:x.MutationObserver?function(a){var b=t.createElement("div");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle("foo")}}(c):t&&"onreadystatechange"in t.createElement("script")?function(a){var b=t.createElement("script");b.onreadystatechange=
|
||||||
|
function(){b.onreadystatechange=null;t.documentElement.removeChild(b);b=null;a()};t.documentElement.appendChild(b)}:function(a){setTimeout(a,0)},Za:function(b){e||a.Z.scheduler(c);d[e++]=b;return f++},cancel:function(a){a-=f-e;a>=g&&a<e&&(d[a]=null)},resetForTesting:function(){var a=e-g;g=e=d.length=0;return a},rd:b}}();a.b("tasks",a.Z);a.b("tasks.schedule",a.Z.Za);a.b("tasks.runEarly",a.Z.rd);a.Aa={throttle:function(b,c){b.throttleEvaluation=c;var d=null;return a.B({read:b,write:function(e){clearTimeout(d);
|
||||||
|
d=a.a.setTimeout(function(){b(e)},c)}})},rateLimit:function(a,c){var d,e,f;"number"==typeof c?d=c:(d=c.timeout,e=c.method);a.gb=!1;f="notifyWhenChangesStop"==e?T:S;a.Wa(function(a){return f(a,d)})},deferred:function(b,c){if(!0!==c)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");b.gb||(b.gb=!0,b.Wa(function(c){var e,f=!1;return function(){if(!f){a.Z.cancel(e);e=a.Z.Za(c);try{f=!0,b.notifySubscribers(n,"dirty")}finally{f=
|
||||||
|
!1}}}}))},notify:function(a,c){a.equalityComparer="always"==c?null:J}};var R={undefined:1,"boolean":1,number:1,string:1};a.b("extenders",a.Aa);a.zc=function(b,c,d){this.$=b;this.jb=c;this.Pc=d;this.T=!1;a.H(this,"dispose",this.k)};a.zc.prototype.k=function(){this.T=!0;this.Pc()};a.K=function(){a.a.ab(this,D);D.ub(this)};var E="change",D={ub:function(a){a.F={change:[]};a.Qb=1},Y:function(b,c,d){var e=this;d=d||E;var f=new a.zc(e,c?b.bind(c):b,function(){a.a.Na(e.F[d],f);e.Ka&&e.Ka(d)});e.ua&&e.ua(d);
|
||||||
|
e.F[d]||(e.F[d]=[]);e.F[d].push(f);return f},notifySubscribers:function(b,c){c=c||E;c===E&&this.Kb();if(this.Ra(c)){var d=c===E&&this.Fc||this.F[c].slice(0);try{a.l.Xb();for(var e=0,f;f=d[e];++e)f.T||f.jb(b)}finally{a.l.end()}}},Pa:function(){return this.Qb},Zc:function(a){return this.Pa()!==a},Kb:function(){++this.Qb},Wa:function(b){var c=this,d=a.I(c),e,f,g,h;c.Ja||(c.Ja=c.notifySubscribers,c.notifySubscribers=U);var l=b(function(){c.Ha=!1;d&&h===c&&(h=c.Mb?c.Mb():c());var a=f||c.Ua(g,h);f=e=!1;
|
||||||
|
a&&c.Ja(g=h)});c.Pb=function(a){c.Fc=c.F[E].slice(0);c.Ha=e=!0;h=a;l()};c.Ob=function(a){e||(g=a,c.Ja(a,"beforeChange"))};c.Hc=function(){c.Ua(g,c.p(!0))&&(f=!0)}},Ra:function(a){return this.F[a]&&this.F[a].length},Xc:function(b){if(b)return this.F[b]&&this.F[b].length||0;var c=0;a.a.D(this.F,function(a,b){"dirty"!==a&&(c+=b.length)});return c},Ua:function(a,c){return!this.equalityComparer||!this.equalityComparer(a,c)},extend:function(b){var c=this;b&&a.a.D(b,function(b,e){var f=a.Aa[b];"function"==
|
||||||
|
typeof f&&(c=f(c,e)||c)});return c}};a.H(D,"subscribe",D.Y);a.H(D,"extend",D.extend);a.H(D,"getSubscriptionsCount",D.Xc);a.a.la&&a.a.$a(D,Function.prototype);a.K.fn=D;a.lc=function(a){return null!=a&&"function"==typeof a.Y&&"function"==typeof a.notifySubscribers};a.b("subscribable",a.K);a.b("isSubscribable",a.lc);a.xa=a.l=function(){function b(a){d.push(e);e=a}function c(){e=d.pop()}var d=[],e,f=0;return{Xb:b,end:c,sc:function(b){if(e){if(!a.lc(b))throw Error("Only subscribable things can act as dependencies");
|
||||||
|
e.jb.call(e.Lc,b,b.Gc||(b.Gc=++f))}},w:function(a,d,e){try{return b(),a.apply(d,e||[])}finally{c()}},Ca:function(){if(e)return e.m.Ca()},Va:function(){if(e)return e.Va}}}();a.b("computedContext",a.xa);a.b("computedContext.getDependenciesCount",a.xa.Ca);a.b("computedContext.isInitial",a.xa.Va);a.b("ignoreDependencies",a.wd=a.l.w);var F=a.a.bc("_latestValue");a.O=function(b){function c(){if(0<arguments.length)return c.Ua(c[F],arguments[0])&&(c.ia(),c[F]=arguments[0],c.ha()),this;a.l.sc(c);return c[F]}
|
||||||
|
c[F]=b;a.a.la||a.a.extend(c,a.K.fn);a.K.fn.ub(c);a.a.ab(c,B);a.options.deferUpdates&&a.Aa.deferred(c,!0);return c};var B={equalityComparer:J,p:function(){return this[F]},ha:function(){this.notifySubscribers(this[F])},ia:function(){this.notifySubscribers(this[F],"beforeChange")}};a.a.la&&a.a.$a(B,a.K.fn);var I=a.O.md="__ko_proto__";B[I]=a.O;a.Qa=function(b,c){return null===b||b===n||b[I]===n?!1:b[I]===c?!0:a.Qa(b[I],c)};a.I=function(b){return a.Qa(b,a.O)};a.Da=function(b){return"function"==typeof b&&
|
||||||
|
b[I]===a.O||"function"==typeof b&&b[I]===a.B&&b.$c?!0:!1};a.b("observable",a.O);a.b("isObservable",a.I);a.b("isWriteableObservable",a.Da);a.b("isWritableObservable",a.Da);a.b("observable.fn",B);a.H(B,"peek",B.p);a.H(B,"valueHasMutated",B.ha);a.H(B,"valueWillMutate",B.ia);a.ma=function(b){b=b||[];if("object"!=typeof b||!("length"in b))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");b=a.O(b);a.a.ab(b,a.ma.fn);return b.extend({trackArrayChanges:!0})};
|
||||||
|
a.ma.fn={remove:function(b){for(var c=this.p(),d=[],e="function"!=typeof b||a.I(b)?function(a){return a===b}:b,f=0;f<c.length;f++){var g=c[f];e(g)&&(0===d.length&&this.ia(),d.push(g),c.splice(f,1),f--)}d.length&&this.ha();return d},removeAll:function(b){if(b===n){var c=this.p(),d=c.slice(0);this.ia();c.splice(0,c.length);this.ha();return d}return b?this.remove(function(c){return 0<=a.a.o(b,c)}):[]},destroy:function(b){var c=this.p(),d="function"!=typeof b||a.I(b)?function(a){return a===b}:b;this.ia();
|
||||||
|
for(var e=c.length-1;0<=e;e--)d(c[e])&&(c[e]._destroy=!0);this.ha()},destroyAll:function(b){return b===n?this.destroy(function(){return!0}):b?this.destroy(function(c){return 0<=a.a.o(b,c)}):[]},indexOf:function(b){var c=this();return a.a.o(c,b)},replace:function(a,c){var d=this.indexOf(a);0<=d&&(this.ia(),this.p()[d]=c,this.ha())}};a.a.la&&a.a.$a(a.ma.fn,a.O.fn);a.a.r("pop push reverse shift sort splice unshift".split(" "),function(b){a.ma.fn[b]=function(){var a=this.p();this.ia();this.Yb(a,b,arguments);
|
||||||
|
var d=a[b].apply(a,arguments);this.ha();return d===a?this:d}});a.a.r(["slice"],function(b){a.ma.fn[b]=function(){var a=this();return a[b].apply(a,arguments)}});a.b("observableArray",a.ma);a.Aa.trackArrayChanges=function(b,c){function d(){if(!e){e=!0;l=b.notifySubscribers;b.notifySubscribers=function(a,b){b&&b!==E||++h;return l.apply(this,arguments)};var c=[].concat(b.p()||[]);f=null;g=b.Y(function(d){d=[].concat(d||[]);if(b.Ra("arrayChange")){var e;if(!f||1<h)f=a.a.lb(c,d,b.kb);e=f}c=d;f=null;h=0;
|
||||||
|
e&&e.length&&b.notifySubscribers(e,"arrayChange")})}}b.kb={};c&&"object"==typeof c&&a.a.extend(b.kb,c);b.kb.sparse=!0;if(!b.Yb){var e=!1,f=null,g,h=0,l,m=b.ua,k=b.Ka;b.ua=function(a){m&&m.call(b,a);"arrayChange"===a&&d()};b.Ka=function(a){k&&k.call(b,a);"arrayChange"!==a||b.Ra("arrayChange")||(l&&(b.notifySubscribers=l,l=n),g.k(),e=!1)};b.Yb=function(b,c,d){function k(a,b,c){return m[m.length]={status:a,value:b,index:c}}if(e&&!h){var m=[],l=b.length,g=d.length,G=0;switch(c){case "push":G=l;case "unshift":for(c=
|
||||||
|
0;c<g;c++)k("added",d[c],G+c);break;case "pop":G=l-1;case "shift":l&&k("deleted",b[G],G);break;case "splice":c=Math.min(Math.max(0,0>d[0]?l+d[0]:d[0]),l);for(var l=1===g?l:Math.min(c+(d[1]||0),l),g=c+g-2,G=Math.max(l,g),n=[],s=[],w=2;c<G;++c,++w)c<l&&s.push(k("deleted",b[c],c)),c<g&&n.push(k("added",d[w],c));a.a.hc(s,n);break;default:return}f=m}}}};var s=a.a.bc("_state");a.m=a.B=function(b,c,d){function e(){if(0<arguments.length){if("function"===typeof f)f.apply(g.sb,arguments);else throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");
|
||||||
|
return this}a.l.sc(e);(g.V||g.t&&e.Sa())&&e.U();return g.M}"object"===typeof b?d=b:(d=d||{},b&&(d.read=b));if("function"!=typeof d.read)throw Error("Pass a function that returns the value of the ko.computed");var f=d.write,g={M:n,da:!0,V:!0,Ta:!1,Hb:!1,T:!1,Ya:!1,t:!1,od:d.read,sb:c||d.owner,i:d.disposeWhenNodeIsRemoved||d.i||null,ya:d.disposeWhen||d.ya,pb:null,s:{},L:0,fc:null};e[s]=g;e.$c="function"===typeof f;a.a.la||a.a.extend(e,a.K.fn);a.K.fn.ub(e);a.a.ab(e,z);d.pure?(g.Ya=!0,g.t=!0,a.a.extend(e,
|
||||||
|
Y)):d.deferEvaluation&&a.a.extend(e,Z);a.options.deferUpdates&&a.Aa.deferred(e,!0);g.i&&(g.Hb=!0,g.i.nodeType||(g.i=null));g.t||d.deferEvaluation||e.U();g.i&&e.ca()&&a.a.G.qa(g.i,g.pb=function(){e.k()});return e};var z={equalityComparer:J,Ca:function(){return this[s].L},Sb:function(a,c,d){if(this[s].Ya&&c===this)throw Error("A 'pure' computed must not be called recursively");this[s].s[a]=d;d.Ia=this[s].L++;d.pa=c.Pa()},Sa:function(){var a,c,d=this[s].s;for(a in d)if(d.hasOwnProperty(a)&&(c=d[a],this.oa&&
|
||||||
|
c.$.Ha||c.$.Zc(c.pa)))return!0},gd:function(){this.oa&&!this[s].Ta&&this.oa(!1)},ca:function(){var a=this[s];return a.V||0<a.L},qd:function(){this.Ha?this[s].V&&(this[s].da=!0):this.ec()},yc:function(a){if(a.gb&&!this[s].i){var c=a.Y(this.gd,this,"dirty"),d=a.Y(this.qd,this);return{$:a,k:function(){c.k();d.k()}}}return a.Y(this.ec,this)},ec:function(){var b=this,c=b.throttleEvaluation;c&&0<=c?(clearTimeout(this[s].fc),this[s].fc=a.a.setTimeout(function(){b.U(!0)},c)):b.oa?b.oa(!0):b.U(!0)},U:function(b){var c=
|
||||||
|
this[s],d=c.ya,e=!1;if(!c.Ta&&!c.T){if(c.i&&!a.a.qb(c.i)||d&&d()){if(!c.Hb){this.k();return}}else c.Hb=!1;c.Ta=!0;try{e=this.Vc(b)}finally{c.Ta=!1}c.L||this.k();return e}},Vc:function(b){var c=this[s],d=!1,e=c.Ya?n:!c.L,f={Mc:this,Oa:c.s,ob:c.L};a.l.Xb({Lc:f,jb:W,m:this,Va:e});c.s={};c.L=0;f=this.Uc(c,f);this.Ua(c.M,f)&&(c.t||this.notifySubscribers(c.M,"beforeChange"),c.M=f,c.t?this.Kb():b&&this.notifySubscribers(c.M),d=!0);e&&this.notifySubscribers(c.M,"awake");return d},Uc:function(b,c){try{var d=
|
||||||
|
b.od;return b.sb?d.call(b.sb):d()}finally{a.l.end(),c.ob&&!b.t&&a.a.D(c.Oa,V),b.da=b.V=!1}},p:function(a){var c=this[s];(c.V&&(a||!c.L)||c.t&&this.Sa())&&this.U();return c.M},Wa:function(b){a.K.fn.Wa.call(this,b);this.Mb=function(){this[s].da?this.U():this[s].V=!1;return this[s].M};this.oa=function(a){this.Ob(this[s].M);this[s].V=!0;a&&(this[s].da=!0);this.Pb(this)}},k:function(){var b=this[s];!b.t&&b.s&&a.a.D(b.s,function(a,b){b.k&&b.k()});b.i&&b.pb&&a.a.G.tc(b.i,b.pb);b.s=null;b.L=0;b.T=!0;b.da=
|
||||||
|
!1;b.V=!1;b.t=!1;b.i=null}},Y={ua:function(b){var c=this,d=c[s];if(!d.T&&d.t&&"change"==b){d.t=!1;if(d.da||c.Sa())d.s=null,d.L=0,c.U()&&c.Kb();else{var e=[];a.a.D(d.s,function(a,b){e[b.Ia]=a});a.a.r(e,function(a,b){var e=d.s[a],l=c.yc(e.$);l.Ia=b;l.pa=e.pa;d.s[a]=l})}d.T||c.notifySubscribers(d.M,"awake")}},Ka:function(b){var c=this[s];c.T||"change"!=b||this.Ra("change")||(a.a.D(c.s,function(a,b){b.k&&(c.s[a]={$:b.$,Ia:b.Ia,pa:b.pa},b.k())}),c.t=!0,this.notifySubscribers(n,"asleep"))},Pa:function(){var b=
|
||||||
|
this[s];b.t&&(b.da||this.Sa())&&this.U();return a.K.fn.Pa.call(this)}},Z={ua:function(a){"change"!=a&&"beforeChange"!=a||this.p()}};a.a.la&&a.a.$a(z,a.K.fn);var P=a.O.md;a.m[P]=a.O;z[P]=a.m;a.bd=function(b){return a.Qa(b,a.m)};a.cd=function(b){return a.Qa(b,a.m)&&b[s]&&b[s].Ya};a.b("computed",a.m);a.b("dependentObservable",a.m);a.b("isComputed",a.bd);a.b("isPureComputed",a.cd);a.b("computed.fn",z);a.H(z,"peek",z.p);a.H(z,"dispose",z.k);a.H(z,"isActive",z.ca);a.H(z,"getDependenciesCount",z.Ca);a.rc=
|
||||||
|
function(b,c){if("function"===typeof b)return a.m(b,c,{pure:!0});b=a.a.extend({},b);b.pure=!0;return a.m(b,c)};a.b("pureComputed",a.rc);(function(){function b(a,f,g){g=g||new d;a=f(a);if("object"!=typeof a||null===a||a===n||a instanceof RegExp||a instanceof Date||a instanceof String||a instanceof Number||a instanceof Boolean)return a;var h=a instanceof Array?[]:{};g.save(a,h);c(a,function(c){var d=f(a[c]);switch(typeof d){case "boolean":case "number":case "string":case "function":h[c]=d;break;case "object":case "undefined":var k=
|
||||||
|
g.get(d);h[c]=k!==n?k:b(d,f,g)}});return h}function c(a,b){if(a instanceof Array){for(var c=0;c<a.length;c++)b(c);"function"==typeof a.toJSON&&b("toJSON")}else for(c in a)b(c)}function d(){this.keys=[];this.Lb=[]}a.Ac=function(c){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return b(c,function(b){for(var c=0;a.I(b)&&10>c;c++)b=b();return b})};a.toJSON=function(b,c,d){b=a.Ac(b);return a.a.Gb(b,c,d)};d.prototype={save:function(b,c){var d=a.a.o(this.keys,
|
||||||
|
b);0<=d?this.Lb[d]=c:(this.keys.push(b),this.Lb.push(c))},get:function(b){b=a.a.o(this.keys,b);return 0<=b?this.Lb[b]:n}}})();a.b("toJS",a.Ac);a.b("toJSON",a.toJSON);(function(){a.j={u:function(b){switch(a.a.A(b)){case "option":return!0===b.__ko__hasDomDataOptionValue__?a.a.e.get(b,a.d.options.zb):7>=a.a.C?b.getAttributeNode("value")&&b.getAttributeNode("value").specified?b.value:b.text:b.value;case "select":return 0<=b.selectedIndex?a.j.u(b.options[b.selectedIndex]):n;default:return b.value}},ja:function(b,
|
||||||
|
c,d){switch(a.a.A(b)){case "option":switch(typeof c){case "string":a.a.e.set(b,a.d.options.zb,n);"__ko__hasDomDataOptionValue__"in b&&delete b.__ko__hasDomDataOptionValue__;b.value=c;break;default:a.a.e.set(b,a.d.options.zb,c),b.__ko__hasDomDataOptionValue__=!0,b.value="number"===typeof c?c:""}break;case "select":if(""===c||null===c)c=n;for(var e=-1,f=0,g=b.options.length,h;f<g;++f)if(h=a.j.u(b.options[f]),h==c||""==h&&c===n){e=f;break}if(d||0<=e||c===n&&1<b.size)b.selectedIndex=e;break;default:if(null===
|
||||||
|
c||c===n)c="";b.value=c}}}})();a.b("selectExtensions",a.j);a.b("selectExtensions.readValue",a.j.u);a.b("selectExtensions.writeValue",a.j.ja);a.h=function(){function b(b){b=a.a.cb(b);123===b.charCodeAt(0)&&(b=b.slice(1,-1));var c=[],d=b.match(e),r,h=[],p=0;if(d){d.push(",");for(var A=0,y;y=d[A];++A){var v=y.charCodeAt(0);if(44===v){if(0>=p){c.push(r&&h.length?{key:r,value:h.join("")}:{unknown:r||h.join("")});r=p=0;h=[];continue}}else if(58===v){if(!p&&!r&&1===h.length){r=h.pop();continue}}else 47===
|
||||||
|
v&&A&&1<y.length?(v=d[A-1].match(f))&&!g[v[0]]&&(b=b.substr(b.indexOf(y)+1),d=b.match(e),d.push(","),A=-1,y="/"):40===v||123===v||91===v?++p:41===v||125===v||93===v?--p:r||h.length||34!==v&&39!==v||(y=y.slice(1,-1));h.push(y)}}return c}var c=["true","false","null","undefined"],d=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,e=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),f=/[\])"'A-Za-z0-9_$]+$/,
|
||||||
|
g={"in":1,"return":1,"typeof":1},h={};return{va:[],ga:h,Ab:b,Xa:function(e,m){function k(b,e){var m;if(!A){var l=a.getBindingHandler(b);if(l&&l.preprocess&&!(e=l.preprocess(e,b,k)))return;if(l=h[b])m=e,0<=a.a.o(c,m)?m=!1:(l=m.match(d),m=null===l?!1:l[1]?"Object("+l[1]+")"+l[2]:m),l=m;l&&g.push("'"+b+"':function(_z){"+m+"=_z}")}p&&(e="function(){return "+e+" }");f.push("'"+b+"':"+e)}m=m||{};var f=[],g=[],p=m.valueAccessors,A=m.bindingParams,y="string"===typeof e?b(e):e;a.a.r(y,function(a){k(a.key||
|
||||||
|
a.unknown,a.value)});g.length&&k("_ko_property_writers","{"+g.join(",")+" }");return f.join(",")},fd:function(a,b){for(var c=0;c<a.length;c++)if(a[c].key==b)return!0;return!1},Ga:function(b,c,d,e,f){if(b&&a.I(b))!a.Da(b)||f&&b.p()===e||b(e);else if((b=c.get("_ko_property_writers"))&&b[d])b[d](e)}}}();a.b("expressionRewriting",a.h);a.b("expressionRewriting.bindingRewriteValidators",a.h.va);a.b("expressionRewriting.parseObjectLiteral",a.h.Ab);a.b("expressionRewriting.preProcessBindings",a.h.Xa);a.b("expressionRewriting._twoWayBindings",
|
||||||
|
a.h.ga);a.b("jsonExpressionRewriting",a.h);a.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",a.h.Xa);(function(){function b(a){return 8==a.nodeType&&g.test(f?a.text:a.nodeValue)}function c(a){return 8==a.nodeType&&h.test(f?a.text:a.nodeValue)}function d(a,d){for(var e=a,f=1,l=[];e=e.nextSibling;){if(c(e)&&(f--,0===f))return l;l.push(e);b(e)&&f++}if(!d)throw Error("Cannot find closing comment tag to match: "+a.nodeValue);return null}function e(a,b){var c=d(a,b);return c?0<c.length?c[c.length-
|
||||||
|
1].nextSibling:a.nextSibling:null}var f=t&&"\x3c!--test--\x3e"===t.createComment("test").text,g=f?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,h=f?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,l={ul:!0,ol:!0};a.f={aa:{},childNodes:function(a){return b(a)?d(a):a.childNodes},za:function(c){if(b(c)){c=a.f.childNodes(c);for(var d=0,e=c.length;d<e;d++)a.removeNode(c[d])}else a.a.rb(c)},fa:function(c,d){if(b(c)){a.f.za(c);for(var e=c.nextSibling,f=0,l=d.length;f<l;f++)e.parentNode.insertBefore(d[f],
|
||||||
|
e)}else a.a.fa(c,d)},qc:function(a,c){b(a)?a.parentNode.insertBefore(c,a.nextSibling):a.firstChild?a.insertBefore(c,a.firstChild):a.appendChild(c)},kc:function(c,d,e){e?b(c)?c.parentNode.insertBefore(d,e.nextSibling):e.nextSibling?c.insertBefore(d,e.nextSibling):c.appendChild(d):a.f.qc(c,d)},firstChild:function(a){return b(a)?!a.nextSibling||c(a.nextSibling)?null:a.nextSibling:a.firstChild},nextSibling:function(a){b(a)&&(a=e(a));return a.nextSibling&&c(a.nextSibling)?null:a.nextSibling},Yc:b,vd:function(a){return(a=
|
||||||
|
(f?a.text:a.nodeValue).match(g))?a[1]:null},oc:function(d){if(l[a.a.A(d)]){var k=d.firstChild;if(k){do if(1===k.nodeType){var f;f=k.firstChild;var g=null;if(f){do if(g)g.push(f);else if(b(f)){var h=e(f,!0);h?f=h:g=[f]}else c(f)&&(g=[f]);while(f=f.nextSibling)}if(f=g)for(g=k.nextSibling,h=0;h<f.length;h++)g?d.insertBefore(f[h],g):d.appendChild(f[h])}while(k=k.nextSibling)}}}}})();a.b("virtualElements",a.f);a.b("virtualElements.allowedBindings",a.f.aa);a.b("virtualElements.emptyNode",a.f.za);a.b("virtualElements.insertAfter",
|
||||||
|
a.f.kc);a.b("virtualElements.prepend",a.f.qc);a.b("virtualElements.setDomNodeChildren",a.f.fa);(function(){a.S=function(){this.Kc={}};a.a.extend(a.S.prototype,{nodeHasBindings:function(b){switch(b.nodeType){case 1:return null!=b.getAttribute("data-bind")||a.g.getComponentNameForNode(b);case 8:return a.f.Yc(b);default:return!1}},getBindings:function(b,c){var d=this.getBindingsString(b,c),d=d?this.parseBindingsString(d,c,b):null;return a.g.Rb(d,b,c,!1)},getBindingAccessors:function(b,c){var d=this.getBindingsString(b,
|
||||||
|
c),d=d?this.parseBindingsString(d,c,b,{valueAccessors:!0}):null;return a.g.Rb(d,b,c,!0)},getBindingsString:function(b){switch(b.nodeType){case 1:return b.getAttribute("data-bind");case 8:return a.f.vd(b);default:return null}},parseBindingsString:function(b,c,d,e){try{var f=this.Kc,g=b+(e&&e.valueAccessors||""),h;if(!(h=f[g])){var l,m="with($context){with($data||{}){return{"+a.h.Xa(b,e)+"}}}";l=new Function("$context","$element",m);h=f[g]=l}return h(c,d)}catch(k){throw k.message="Unable to parse bindings.\nBindings value: "+
|
||||||
|
b+"\nMessage: "+k.message,k;}}});a.S.instance=new a.S})();a.b("bindingProvider",a.S);(function(){function b(a){return function(){return a}}function c(a){return a()}function d(b){return a.a.Ea(a.l.w(b),function(a,c){return function(){return b()[c]}})}function e(c,e,k){return"function"===typeof c?d(c.bind(null,e,k)):a.a.Ea(c,b)}function f(a,b){return d(this.getBindings.bind(this,a,b))}function g(b,c,d){var e,k=a.f.firstChild(c),f=a.S.instance,m=f.preprocessNode;if(m){for(;e=k;)k=a.f.nextSibling(e),
|
||||||
|
m.call(f,e);k=a.f.firstChild(c)}for(;e=k;)k=a.f.nextSibling(e),h(b,e,d)}function h(b,c,d){var e=!0,k=1===c.nodeType;k&&a.f.oc(c);if(k&&d||a.S.instance.nodeHasBindings(c))e=m(c,null,b,d).shouldBindDescendants;e&&!r[a.a.A(c)]&&g(b,c,!k)}function l(b){var c=[],d={},e=[];a.a.D(b,function X(k){if(!d[k]){var f=a.getBindingHandler(k);f&&(f.after&&(e.push(k),a.a.r(f.after,function(c){if(b[c]){if(-1!==a.a.o(e,c))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+e.join(", "));
|
||||||
|
X(c)}}),e.length--),c.push({key:k,jc:f}));d[k]=!0}});return c}function m(b,d,e,k){var m=a.a.e.get(b,q);if(!d){if(m)throw Error("You cannot apply bindings multiple times to the same element.");a.a.e.set(b,q,!0)}!m&&k&&a.xc(b,e);var g;if(d&&"function"!==typeof d)g=d;else{var h=a.S.instance,r=h.getBindingAccessors||f,p=a.B(function(){(g=d?d(e,b):r.call(h,b,e))&&e.Q&&e.Q();return g},null,{i:b});g&&p.ca()||(p=null)}var s;if(g){var t=p?function(a){return function(){return c(p()[a])}}:function(a){return g[a]},
|
||||||
|
u=function(){return a.a.Ea(p?p():g,c)};u.get=function(a){return g[a]&&c(t(a))};u.has=function(a){return a in g};k=l(g);a.a.r(k,function(c){var d=c.jc.init,k=c.jc.update,f=c.key;if(8===b.nodeType&&!a.f.aa[f])throw Error("The binding '"+f+"' cannot be used with virtual elements");try{"function"==typeof d&&a.l.w(function(){var a=d(b,t(f),u,e.$data,e);if(a&&a.controlsDescendantBindings){if(s!==n)throw Error("Multiple bindings ("+s+" and "+f+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");
|
||||||
|
s=f}}),"function"==typeof k&&a.B(function(){k(b,t(f),u,e.$data,e)},null,{i:b})}catch(m){throw m.message='Unable to process binding "'+f+": "+g[f]+'"\nMessage: '+m.message,m;}})}return{shouldBindDescendants:s===n}}function k(b){return b&&b instanceof a.R?b:new a.R(b)}a.d={};var r={script:!0,textarea:!0,template:!0};a.getBindingHandler=function(b){return a.d[b]};a.R=function(b,c,d,e,k){function f(){var k=g?b():b,m=a.a.c(k);c?(c.Q&&c.Q(),a.a.extend(l,c),l.Q=r):(l.$parents=[],l.$root=m,l.ko=a);l.$rawData=
|
||||||
|
k;l.$data=m;d&&(l[d]=m);e&&e(l,c,m);return l.$data}function m(){return h&&!a.a.Tb(h)}var l=this,g="function"==typeof b&&!a.I(b),h,r;k&&k.exportDependencies?f():(r=a.B(f,null,{ya:m,i:!0}),r.ca()&&(l.Q=r,r.equalityComparer=null,h=[],r.Dc=function(b){h.push(b);a.a.G.qa(b,function(b){a.a.Na(h,b);h.length||(r.k(),l.Q=r=n)})}))};a.R.prototype.createChildContext=function(b,c,d,e){return new a.R(b,this,c,function(a,b){a.$parentContext=b;a.$parent=b.$data;a.$parents=(b.$parents||[]).slice(0);a.$parents.unshift(a.$parent);
|
||||||
|
d&&d(a)},e)};a.R.prototype.extend=function(b){return new a.R(this.Q||this.$data,this,null,function(c,d){c.$rawData=d.$rawData;a.a.extend(c,"function"==typeof b?b():b)})};a.R.prototype.ac=function(a,b){return this.createChildContext(a,b,null,{exportDependencies:!0})};var q=a.a.e.J(),p=a.a.e.J();a.xc=function(b,c){if(2==arguments.length)a.a.e.set(b,p,c),c.Q&&c.Q.Dc(b);else return a.a.e.get(b,p)};a.La=function(b,c,d){1===b.nodeType&&a.f.oc(b);return m(b,c,k(d),!0)};a.Ic=function(b,c,d){d=k(d);return a.La(b,
|
||||||
|
e(c,d,b),d)};a.hb=function(a,b){1!==b.nodeType&&8!==b.nodeType||g(k(a),b,!0)};a.Ub=function(a,b){!u&&x.jQuery&&(u=x.jQuery);if(b&&1!==b.nodeType&&8!==b.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");b=b||x.document.body;h(k(a),b,!0)};a.nb=function(b){switch(b.nodeType){case 1:case 8:var c=a.xc(b);if(c)return c;if(b.parentNode)return a.nb(b.parentNode)}return n};a.Oc=function(b){return(b=a.nb(b))?b.$data:n};a.b("bindingHandlers",
|
||||||
|
a.d);a.b("applyBindings",a.Ub);a.b("applyBindingsToDescendants",a.hb);a.b("applyBindingAccessorsToNode",a.La);a.b("applyBindingsToNode",a.Ic);a.b("contextFor",a.nb);a.b("dataFor",a.Oc)})();(function(b){function c(c,e){var m=f.hasOwnProperty(c)?f[c]:b,k;m?m.Y(e):(m=f[c]=new a.K,m.Y(e),d(c,function(b,d){var e=!(!d||!d.synchronous);g[c]={definition:b,dd:e};delete f[c];k||e?m.notifySubscribers(b):a.Z.Za(function(){m.notifySubscribers(b)})}),k=!0)}function d(a,b){e("getConfig",[a],function(c){c?e("loadComponent",
|
||||||
|
[a,c],function(a){b(a,c)}):b(null,null)})}function e(c,d,f,k){k||(k=a.g.loaders.slice(0));var g=k.shift();if(g){var q=g[c];if(q){var p=!1;if(q.apply(g,d.concat(function(a){p?f(null):null!==a?f(a):e(c,d,f,k)}))!==b&&(p=!0,!g.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else e(c,d,f,k)}else f(null)}var f={},g={};a.g={get:function(d,e){var f=g.hasOwnProperty(d)?g[d]:b;f?f.dd?a.l.w(function(){e(f.definition)}):
|
||||||
|
a.Z.Za(function(){e(f.definition)}):c(d,e)},$b:function(a){delete g[a]},Nb:e};a.g.loaders=[];a.b("components",a.g);a.b("components.get",a.g.get);a.b("components.clearCachedDefinition",a.g.$b)})();(function(){function b(b,c,d,e){function g(){0===--y&&e(h)}var h={},y=2,v=d.template;d=d.viewModel;v?f(c,v,function(c){a.g.Nb("loadTemplate",[b,c],function(a){h.template=a;g()})}):g();d?f(c,d,function(c){a.g.Nb("loadViewModel",[b,c],function(a){h[l]=a;g()})}):g()}function c(a,b,d){if("function"===typeof b)d(function(a){return new b(a)});
|
||||||
|
else if("function"===typeof b[l])d(b[l]);else if("instance"in b){var e=b.instance;d(function(){return e})}else"viewModel"in b?c(a,b.viewModel,d):a("Unknown viewModel value: "+b)}function d(b){switch(a.a.A(b)){case "script":return a.a.na(b.text);case "textarea":return a.a.na(b.value);case "template":if(e(b.content))return a.a.wa(b.content.childNodes)}return a.a.wa(b.childNodes)}function e(a){return x.DocumentFragment?a instanceof DocumentFragment:a&&11===a.nodeType}function f(a,b,c){"string"===typeof b.require?
|
||||||
|
O||x.require?(O||x.require)([b.require],c):a("Uses require, but no AMD loader is present"):c(b)}function g(a){return function(b){throw Error("Component '"+a+"': "+b);}}var h={};a.g.register=function(b,c){if(!c)throw Error("Invalid configuration for "+b);if(a.g.wb(b))throw Error("Component "+b+" is already registered");h[b]=c};a.g.wb=function(a){return h.hasOwnProperty(a)};a.g.ud=function(b){delete h[b];a.g.$b(b)};a.g.cc={getConfig:function(a,b){b(h.hasOwnProperty(a)?h[a]:null)},loadComponent:function(a,
|
||||||
|
c,d){var e=g(a);f(e,c,function(c){b(a,e,c,d)})},loadTemplate:function(b,c,f){b=g(b);if("string"===typeof c)f(a.a.na(c));else if(c instanceof Array)f(c);else if(e(c))f(a.a.W(c.childNodes));else if(c.element)if(c=c.element,x.HTMLElement?c instanceof HTMLElement:c&&c.tagName&&1===c.nodeType)f(d(c));else if("string"===typeof c){var l=t.getElementById(c);l?f(d(l)):b("Cannot find element with ID "+c)}else b("Unknown element type: "+c);else b("Unknown template value: "+c)},loadViewModel:function(a,b,d){c(g(a),
|
||||||
|
b,d)}};var l="createViewModel";a.b("components.register",a.g.register);a.b("components.isRegistered",a.g.wb);a.b("components.unregister",a.g.ud);a.b("components.defaultLoader",a.g.cc);a.g.loaders.push(a.g.cc);a.g.Ec=h})();(function(){function b(b,e){var f=b.getAttribute("params");if(f){var f=c.parseBindingsString(f,e,b,{valueAccessors:!0,bindingParams:!0}),f=a.a.Ea(f,function(c){return a.m(c,null,{i:b})}),g=a.a.Ea(f,function(c){var e=c.p();return c.ca()?a.m({read:function(){return a.a.c(c())},write:a.Da(e)&&
|
||||||
|
function(a){c()(a)},i:b}):e});g.hasOwnProperty("$raw")||(g.$raw=f);return g}return{$raw:{}}}a.g.getComponentNameForNode=function(b){var c=a.a.A(b);if(a.g.wb(c)&&(-1!=c.indexOf("-")||"[object HTMLUnknownElement]"==""+b||8>=a.a.C&&b.tagName===c))return c};a.g.Rb=function(c,e,f,g){if(1===e.nodeType){var h=a.g.getComponentNameForNode(e);if(h){c=c||{};if(c.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var l={name:h,params:b(e,f)};c.component=g?function(){return l}:
|
||||||
|
l}}return c};var c=new a.S;9>a.a.C&&(a.g.register=function(a){return function(b){t.createElement(b);return a.apply(this,arguments)}}(a.g.register),t.createDocumentFragment=function(b){return function(){var c=b(),f=a.g.Ec,g;for(g in f)f.hasOwnProperty(g)&&c.createElement(g);return c}}(t.createDocumentFragment))})();(function(b){function c(b,c,d){c=c.template;if(!c)throw Error("Component '"+b+"' has no template");b=a.a.wa(c);a.f.fa(d,b)}function d(a,b,c,d){var e=a.createViewModel;return e?e.call(a,
|
||||||
|
d,{element:b,templateNodes:c}):d}var e=0;a.d.component={init:function(f,g,h,l,m){function k(){var a=r&&r.dispose;"function"===typeof a&&a.call(r);q=r=null}var r,q,p=a.a.W(a.f.childNodes(f));a.a.G.qa(f,k);a.m(function(){var l=a.a.c(g()),h,v;"string"===typeof l?h=l:(h=a.a.c(l.name),v=a.a.c(l.params));if(!h)throw Error("No component name specified");var n=q=++e;a.g.get(h,function(e){if(q===n){k();if(!e)throw Error("Unknown component '"+h+"'");c(h,e,f);var l=d(e,f,p,v);e=m.createChildContext(l,b,function(a){a.$component=
|
||||||
|
l;a.$componentTemplateNodes=p});r=l;a.hb(e,f)}})},null,{i:f});return{controlsDescendantBindings:!0}}};a.f.aa.component=!0})();var Q={"class":"className","for":"htmlFor"};a.d.attr={update:function(b,c){var d=a.a.c(c())||{};a.a.D(d,function(c,d){d=a.a.c(d);var g=!1===d||null===d||d===n;g&&b.removeAttribute(c);8>=a.a.C&&c in Q?(c=Q[c],g?b.removeAttribute(c):b[c]=d):g||b.setAttribute(c,d.toString());"name"===c&&a.a.vc(b,g?"":d.toString())})}};(function(){a.d.checked={after:["value","attr"],init:function(b,
|
||||||
|
c,d){function e(){var e=b.checked,f=p?g():e;if(!a.xa.Va()&&(!l||e)){var h=a.l.w(c);if(k){var m=r?h.p():h;q!==f?(e&&(a.a.ra(m,f,!0),a.a.ra(m,q,!1)),q=f):a.a.ra(m,f,e);r&&a.Da(h)&&h(m)}else a.h.Ga(h,d,"checked",f,!0)}}function f(){var d=a.a.c(c());b.checked=k?0<=a.a.o(d,g()):h?d:g()===d}var g=a.rc(function(){return d.has("checkedValue")?a.a.c(d.get("checkedValue")):d.has("value")?a.a.c(d.get("value")):b.value}),h="checkbox"==b.type,l="radio"==b.type;if(h||l){var m=c(),k=h&&a.a.c(m)instanceof Array,
|
||||||
|
r=!(k&&m.push&&m.splice),q=k?g():n,p=l||k;l&&!b.name&&a.d.uniqueName.init(b,function(){return!0});a.m(e,null,{i:b});a.a.q(b,"click",e);a.m(f,null,{i:b});m=n}}};a.h.ga.checked=!0;a.d.checkedValue={update:function(b,c){b.value=a.a.c(c())}}})();a.d.css={update:function(b,c){var d=a.a.c(c());null!==d&&"object"==typeof d?a.a.D(d,function(c,d){d=a.a.c(d);a.a.fb(b,c,d)}):(d=a.a.cb(String(d||"")),a.a.fb(b,b.__ko__cssValue,!1),b.__ko__cssValue=d,a.a.fb(b,d,!0))}};a.d.enable={update:function(b,c){var d=a.a.c(c());
|
||||||
|
d&&b.disabled?b.removeAttribute("disabled"):d||b.disabled||(b.disabled=!0)}};a.d.disable={update:function(b,c){a.d.enable.update(b,function(){return!a.a.c(c())})}};a.d.event={init:function(b,c,d,e,f){var g=c()||{};a.a.D(g,function(g){"string"==typeof g&&a.a.q(b,g,function(b){var m,k=c()[g];if(k){try{var r=a.a.W(arguments);e=f.$data;r.unshift(e);m=k.apply(e,r)}finally{!0!==m&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===d.get(g+"Bubble")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};
|
||||||
|
a.d.foreach={mc:function(b){return function(){var c=b(),d=a.a.Bb(c);if(!d||"number"==typeof d.length)return{foreach:c,templateEngine:a.X.vb};a.a.c(c);return{foreach:d.data,as:d.as,includeDestroyed:d.includeDestroyed,afterAdd:d.afterAdd,beforeRemove:d.beforeRemove,afterRender:d.afterRender,beforeMove:d.beforeMove,afterMove:d.afterMove,templateEngine:a.X.vb}}},init:function(b,c){return a.d.template.init(b,a.d.foreach.mc(c))},update:function(b,c,d,e,f){return a.d.template.update(b,a.d.foreach.mc(c),
|
||||||
|
d,e,f)}};a.h.va.foreach=!1;a.f.aa.foreach=!0;a.d.hasfocus={init:function(b,c,d){function e(e){b.__ko_hasfocusUpdating=!0;var f=b.ownerDocument;if("activeElement"in f){var g;try{g=f.activeElement}catch(k){g=f.body}e=g===b}f=c();a.h.Ga(f,d,"hasfocus",e,!0);b.__ko_hasfocusLastValue=e;b.__ko_hasfocusUpdating=!1}var f=e.bind(null,!0),g=e.bind(null,!1);a.a.q(b,"focus",f);a.a.q(b,"focusin",f);a.a.q(b,"blur",g);a.a.q(b,"focusout",g)},update:function(b,c){var d=!!a.a.c(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===
|
||||||
|
d||(d?b.focus():b.blur(),!d&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.l.w(a.a.Fa,null,[b,d?"focusin":"focusout"]))}};a.h.ga.hasfocus=!0;a.d.hasFocus=a.d.hasfocus;a.h.ga.hasFocus=!0;a.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.a.Eb(b,c())}};K("if");K("ifnot",!1,!0);K("with",!0,!1,function(a,c){return a.ac(c)});var L={};a.d.options={init:function(b){if("select"!==a.a.A(b))throw Error("options binding applies only to SELECT elements");for(;0<
|
||||||
|
b.length;)b.remove(0);return{controlsDescendantBindings:!0}},update:function(b,c,d){function e(){return a.a.Ma(b.options,function(a){return a.selected})}function f(a,b,c){var d=typeof b;return"function"==d?b(a):"string"==d?a[b]:c}function g(c,e){if(A&&k)a.j.ja(b,a.a.c(d.get("value")),!0);else if(p.length){var f=0<=a.a.o(p,a.j.u(e[0]));a.a.wc(e[0],f);A&&!f&&a.l.w(a.a.Fa,null,[b,"change"])}}var h=b.multiple,l=0!=b.length&&h?b.scrollTop:null,m=a.a.c(c()),k=d.get("valueAllowUnset")&&d.has("value"),r=
|
||||||
|
d.get("optionsIncludeDestroyed");c={};var q,p=[];k||(h?p=a.a.ib(e(),a.j.u):0<=b.selectedIndex&&p.push(a.j.u(b.options[b.selectedIndex])));m&&("undefined"==typeof m.length&&(m=[m]),q=a.a.Ma(m,function(b){return r||b===n||null===b||!a.a.c(b._destroy)}),d.has("optionsCaption")&&(m=a.a.c(d.get("optionsCaption")),null!==m&&m!==n&&q.unshift(L)));var A=!1;c.beforeRemove=function(a){b.removeChild(a)};m=g;d.has("optionsAfterRender")&&"function"==typeof d.get("optionsAfterRender")&&(m=function(b,c){g(0,c);
|
||||||
|
a.l.w(d.get("optionsAfterRender"),null,[c[0],b!==L?b:n])});a.a.Db(b,q,function(c,e,g){g.length&&(p=!k&&g[0].selected?[a.j.u(g[0])]:[],A=!0);e=b.ownerDocument.createElement("option");c===L?(a.a.bb(e,d.get("optionsCaption")),a.j.ja(e,n)):(g=f(c,d.get("optionsValue"),c),a.j.ja(e,a.a.c(g)),c=f(c,d.get("optionsText"),g),a.a.bb(e,c));return[e]},c,m);a.l.w(function(){k?a.j.ja(b,a.a.c(d.get("value")),!0):(h?p.length&&e().length<p.length:p.length&&0<=b.selectedIndex?a.j.u(b.options[b.selectedIndex])!==p[0]:
|
||||||
|
p.length||0<=b.selectedIndex)&&a.a.Fa(b,"change")});a.a.Sc(b);l&&20<Math.abs(l-b.scrollTop)&&(b.scrollTop=l)}};a.d.options.zb=a.a.e.J();a.d.selectedOptions={after:["options","foreach"],init:function(b,c,d){a.a.q(b,"change",function(){var e=c(),f=[];a.a.r(b.getElementsByTagName("option"),function(b){b.selected&&f.push(a.j.u(b))});a.h.Ga(e,d,"selectedOptions",f)})},update:function(b,c){if("select"!=a.a.A(b))throw Error("values binding applies only to SELECT elements");var d=a.a.c(c()),e=b.scrollTop;
|
||||||
|
d&&"number"==typeof d.length&&a.a.r(b.getElementsByTagName("option"),function(b){var c=0<=a.a.o(d,a.j.u(b));b.selected!=c&&a.a.wc(b,c)});b.scrollTop=e}};a.h.ga.selectedOptions=!0;a.d.style={update:function(b,c){var d=a.a.c(c()||{});a.a.D(d,function(c,d){d=a.a.c(d);if(null===d||d===n||!1===d)d="";b.style[c]=d})}};a.d.submit={init:function(b,c,d,e,f){if("function"!=typeof c())throw Error("The value for a submit binding must be a function");a.a.q(b,"submit",function(a){var d,e=c();try{d=e.call(f.$data,
|
||||||
|
b)}finally{!0!==d&&(a.preventDefault?a.preventDefault():a.returnValue=!1)}})}};a.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.a.bb(b,c())}};a.f.aa.text=!0;(function(){if(x&&x.navigator)var b=function(a){if(a)return parseFloat(a[1])},c=x.opera&&x.opera.version&&parseInt(x.opera.version()),d=x.navigator.userAgent,e=b(d.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),f=b(d.match(/Firefox\/([^ ]*)/));if(10>a.a.C)var g=a.a.e.J(),h=a.a.e.J(),l=function(b){var c=
|
||||||
|
this.activeElement;(c=c&&a.a.e.get(c,h))&&c(b)},m=function(b,c){var d=b.ownerDocument;a.a.e.get(d,g)||(a.a.e.set(d,g,!0),a.a.q(d,"selectionchange",l));a.a.e.set(b,h,c)};a.d.textInput={init:function(b,d,g){function l(c,d){a.a.q(b,c,d)}function h(){var c=a.a.c(d());if(null===c||c===n)c="";u!==n&&c===u?a.a.setTimeout(h,4):b.value!==c&&(s=c,b.value=c)}function y(){t||(u=b.value,t=a.a.setTimeout(v,4))}function v(){clearTimeout(t);u=t=n;var c=b.value;s!==c&&(s=c,a.h.Ga(d(),g,"textInput",c))}var s=b.value,
|
||||||
|
t,u,x=9==a.a.C?y:v;10>a.a.C?(l("propertychange",function(a){"value"===a.propertyName&&x(a)}),8==a.a.C&&(l("keyup",v),l("keydown",v)),8<=a.a.C&&(m(b,x),l("dragend",y))):(l("input",v),5>e&&"textarea"===a.a.A(b)?(l("keydown",y),l("paste",y),l("cut",y)):11>c?l("keydown",y):4>f&&(l("DOMAutoComplete",v),l("dragdrop",v),l("drop",v)));l("change",v);a.m(h,null,{i:b})}};a.h.ga.textInput=!0;a.d.textinput={preprocess:function(a,b,c){c("textInput",a)}}})();a.d.uniqueName={init:function(b,c){if(c()){var d="ko_unique_"+
|
||||||
|
++a.d.uniqueName.Nc;a.a.vc(b,d)}}};a.d.uniqueName.Nc=0;a.d.value={after:["options","foreach"],init:function(b,c,d){if("input"!=b.tagName.toLowerCase()||"checkbox"!=b.type&&"radio"!=b.type){var e=["change"],f=d.get("valueUpdate"),g=!1,h=null;f&&("string"==typeof f&&(f=[f]),a.a.ta(e,f),e=a.a.Wb(e));var l=function(){h=null;g=!1;var e=c(),f=a.j.u(b);a.h.Ga(e,d,"value",f)};!a.a.C||"input"!=b.tagName.toLowerCase()||"text"!=b.type||"off"==b.autocomplete||b.form&&"off"==b.form.autocomplete||-1!=a.a.o(e,"propertychange")||
|
||||||
|
(a.a.q(b,"propertychange",function(){g=!0}),a.a.q(b,"focus",function(){g=!1}),a.a.q(b,"blur",function(){g&&l()}));a.a.r(e,function(c){var d=l;a.a.sd(c,"after")&&(d=function(){h=a.j.u(b);a.a.setTimeout(l,0)},c=c.substring(5));a.a.q(b,c,d)});var m=function(){var e=a.a.c(c()),f=a.j.u(b);if(null!==h&&e===h)a.a.setTimeout(m,0);else if(e!==f)if("select"===a.a.A(b)){var g=d.get("valueAllowUnset"),f=function(){a.j.ja(b,e,g)};f();g||e===a.j.u(b)?a.a.setTimeout(f,0):a.l.w(a.a.Fa,null,[b,"change"])}else a.j.ja(b,
|
||||||
|
e)};a.m(m,null,{i:b})}else a.La(b,{checkedValue:c})},update:function(){}};a.h.ga.value=!0;a.d.visible={update:function(b,c){var d=a.a.c(c()),e="none"!=b.style.display;d&&!e?b.style.display="":!d&&e&&(b.style.display="none")}};(function(b){a.d[b]={init:function(c,d,e,f,g){return a.d.event.init.call(this,c,function(){var a={};a[b]=d();return a},e,f,g)}}})("click");a.P=function(){};a.P.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};a.P.prototype.createJavaScriptEvaluatorBlock=
|
||||||
|
function(){throw Error("Override createJavaScriptEvaluatorBlock");};a.P.prototype.makeTemplateSource=function(b,c){if("string"==typeof b){c=c||t;var d=c.getElementById(b);if(!d)throw Error("Cannot find template with ID "+b);return new a.v.n(d)}if(1==b.nodeType||8==b.nodeType)return new a.v.sa(b);throw Error("Unknown template type: "+b);};a.P.prototype.renderTemplate=function(a,c,d,e){a=this.makeTemplateSource(a,e);return this.renderTemplateSource(a,c,d,e)};a.P.prototype.isTemplateRewritten=function(a,
|
||||||
|
c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data("isRewritten")};a.P.prototype.rewriteTemplate=function(a,c,d){a=this.makeTemplateSource(a,d);c=c(a.text());a.text(c);a.data("isRewritten",!0)};a.b("templateEngine",a.P);a.Ib=function(){function b(b,c,d,h){b=a.h.Ab(b);for(var l=a.h.va,m=0;m<b.length;m++){var k=b[m].key;if(l.hasOwnProperty(k)){var r=l[k];if("function"===typeof r){if(k=r(b[m].value))throw Error(k);}else if(!r)throw Error("This template engine does not support the '"+
|
||||||
|
k+"' binding within its templates");}}d="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+a.h.Xa(b,{valueAccessors:!0})+" } })()},'"+d.toLowerCase()+"')";return h.createJavaScriptEvaluatorBlock(d)+c}var c=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,d=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Tc:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){return a.Ib.jd(b,
|
||||||
|
c)},d)},jd:function(a,f){return a.replace(c,function(a,c,d,e,k){return b(k,c,d,f)}).replace(d,function(a,c){return b(c,"\x3c!-- ko --\x3e","#comment",f)})},Jc:function(b,c){return a.N.yb(function(d,h){var l=d.nextSibling;l&&l.nodeName.toLowerCase()===c&&a.La(l,b,h)})}}}();a.b("__tr_ambtns",a.Ib.Jc);(function(){a.v={};a.v.n=function(b){if(this.n=b){var c=a.a.A(b);this.eb="script"===c?1:"textarea"===c?2:"template"==c&&b.content&&11===b.content.nodeType?3:4}};a.v.n.prototype.text=function(){var b=1===
|
||||||
|
this.eb?"text":2===this.eb?"value":"innerHTML";if(0==arguments.length)return this.n[b];var c=arguments[0];"innerHTML"===b?a.a.Eb(this.n,c):this.n[b]=c};var b=a.a.e.J()+"_";a.v.n.prototype.data=function(c){if(1===arguments.length)return a.a.e.get(this.n,b+c);a.a.e.set(this.n,b+c,arguments[1])};var c=a.a.e.J();a.v.n.prototype.nodes=function(){var b=this.n;if(0==arguments.length)return(a.a.e.get(b,c)||{}).mb||(3===this.eb?b.content:4===this.eb?b:n);a.a.e.set(b,c,{mb:arguments[0]})};a.v.sa=function(a){this.n=
|
||||||
|
a};a.v.sa.prototype=new a.v.n;a.v.sa.prototype.text=function(){if(0==arguments.length){var b=a.a.e.get(this.n,c)||{};b.Jb===n&&b.mb&&(b.Jb=b.mb.innerHTML);return b.Jb}a.a.e.set(this.n,c,{Jb:arguments[0]})};a.b("templateSources",a.v);a.b("templateSources.domElement",a.v.n);a.b("templateSources.anonymousTemplate",a.v.sa)})();(function(){function b(b,c,d){var e;for(c=a.f.nextSibling(c);b&&(e=b)!==c;)b=a.f.nextSibling(e),d(e,b)}function c(c,d){if(c.length){var e=c[0],f=c[c.length-1],g=e.parentNode,h=
|
||||||
|
a.S.instance,n=h.preprocessNode;if(n){b(e,f,function(a,b){var c=a.previousSibling,d=n.call(h,a);d&&(a===e&&(e=d[0]||b),a===f&&(f=d[d.length-1]||c))});c.length=0;if(!e)return;e===f?c.push(e):(c.push(e,f),a.a.Ba(c,g))}b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.Ub(d,b)});b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.N.Cc(b,[d])});a.a.Ba(c,g)}}function d(a){return a.nodeType?a:0<a.length?a[0]:null}function e(b,e,f,h,q){q=q||{};var p=(b&&d(b)||f||{}).ownerDocument,n=q.templateEngine||g;
|
||||||
|
a.Ib.Tc(f,n,p);f=n.renderTemplate(f,h,q,p);if("number"!=typeof f.length||0<f.length&&"number"!=typeof f[0].nodeType)throw Error("Template engine must return an array of DOM nodes");p=!1;switch(e){case "replaceChildren":a.f.fa(b,f);p=!0;break;case "replaceNode":a.a.uc(b,f);p=!0;break;case "ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+e);}p&&(c(f,h),q.afterRender&&a.l.w(q.afterRender,null,[f,h.$data]));return f}function f(b,c,d){return a.I(b)?b():"function"===typeof b?b(c,d):b}
|
||||||
|
var g;a.Fb=function(b){if(b!=n&&!(b instanceof a.P))throw Error("templateEngine must inherit from ko.templateEngine");g=b};a.Cb=function(b,c,k,h,q){k=k||{};if((k.templateEngine||g)==n)throw Error("Set a template engine before calling renderTemplate");q=q||"replaceChildren";if(h){var p=d(h);return a.B(function(){var g=c&&c instanceof a.R?c:new a.R(c,null,null,null,{exportDependencies:!0}),n=f(b,g.$data,g),g=e(h,q,n,g,k);"replaceNode"==q&&(h=g,p=d(h))},null,{ya:function(){return!p||!a.a.qb(p)},i:p&&
|
||||||
|
"replaceNode"==q?p.parentNode:p})}return a.N.yb(function(d){a.Cb(b,c,k,d,"replaceNode")})};a.pd=function(b,d,g,h,q){function p(a,b){c(b,t);g.afterRender&&g.afterRender(b,a);t=null}function s(a,c){t=q.createChildContext(a,g.as,function(a){a.$index=c});var d=f(b,a,t);return e(null,"ignoreTargetNode",d,t,g)}var t;return a.B(function(){var b=a.a.c(d)||[];"undefined"==typeof b.length&&(b=[b]);b=a.a.Ma(b,function(b){return g.includeDestroyed||b===n||null===b||!a.a.c(b._destroy)});a.l.w(a.a.Db,null,[h,b,
|
||||||
|
s,g,p])},null,{i:h})};var h=a.a.e.J();a.d.template={init:function(b,c){var d=a.a.c(c());if("string"==typeof d||d.name)a.f.za(b);else{if("nodes"in d){if(d=d.nodes||[],a.I(d))throw Error('The "nodes" option must be a plain, non-observable array.');}else d=a.f.childNodes(b);d=a.a.nc(d);(new a.v.sa(b)).nodes(d)}return{controlsDescendantBindings:!0}},update:function(b,c,d,e,f){var g=c();c=a.a.c(g);d=!0;e=null;"string"==typeof c?c={}:(g=c.name,"if"in c&&(d=a.a.c(c["if"])),d&&"ifnot"in c&&(d=!a.a.c(c.ifnot)));
|
||||||
|
"foreach"in c?e=a.pd(g||b,d&&c.foreach||[],c,b,f):d?(f="data"in c?f.ac(c.data,c.as):f,e=a.Cb(g||b,f,c,b)):a.f.za(b);f=e;(c=a.a.e.get(b,h))&&"function"==typeof c.k&&c.k();a.a.e.set(b,h,f&&f.ca()?f:n)}};a.h.va.template=function(b){b=a.h.Ab(b);return 1==b.length&&b[0].unknown||a.h.fd(b,"name")?null:"This template engine does not support anonymous templates nested within its templates"};a.f.aa.template=!0})();a.b("setTemplateEngine",a.Fb);a.b("renderTemplate",a.Cb);a.a.hc=function(a,c,d){if(a.length&&
|
||||||
|
c.length){var e,f,g,h,l;for(e=f=0;(!d||e<d)&&(h=a[f]);++f){for(g=0;l=c[g];++g)if(h.value===l.value){h.moved=l.index;l.moved=h.index;c.splice(g,1);e=g=0;break}e+=g}}};a.a.lb=function(){function b(b,d,e,f,g){var h=Math.min,l=Math.max,m=[],k,n=b.length,q,p=d.length,s=p-n||1,t=n+p+1,v,u,x;for(k=0;k<=n;k++)for(u=v,m.push(v=[]),x=h(p,k+s),q=l(0,k-1);q<=x;q++)v[q]=q?k?b[k-1]===d[q-1]?u[q-1]:h(u[q]||t,v[q-1]||t)+1:q+1:k+1;h=[];l=[];s=[];k=n;for(q=p;k||q;)p=m[k][q]-1,q&&p===m[k][q-1]?l.push(h[h.length]={status:e,
|
||||||
|
value:d[--q],index:q}):k&&p===m[k-1][q]?s.push(h[h.length]={status:f,value:b[--k],index:k}):(--q,--k,g.sparse||h.push({status:"retained",value:d[q]}));a.a.hc(s,l,!g.dontLimitMoves&&10*n);return h.reverse()}return function(a,d,e){e="boolean"===typeof e?{dontLimitMoves:e}:e||{};a=a||[];d=d||[];return a.length<d.length?b(a,d,"added","deleted",e):b(d,a,"deleted","added",e)}}();a.b("utils.compareArrays",a.a.lb);(function(){function b(b,c,d,h,l){var m=[],k=a.B(function(){var k=c(d,l,a.a.Ba(m,b))||[];0<
|
||||||
|
m.length&&(a.a.uc(m,k),h&&a.l.w(h,null,[d,k,l]));m.length=0;a.a.ta(m,k)},null,{i:b,ya:function(){return!a.a.Tb(m)}});return{ea:m,B:k.ca()?k:n}}var c=a.a.e.J(),d=a.a.e.J();a.a.Db=function(e,f,g,h,l){function m(b,c){w=q[c];u!==c&&(D[b]=w);w.tb(u++);a.a.Ba(w.ea,e);t.push(w);z.push(w)}function k(b,c){if(b)for(var d=0,e=c.length;d<e;d++)c[d]&&a.a.r(c[d].ea,function(a){b(a,d,c[d].ka)})}f=f||[];h=h||{};var r=a.a.e.get(e,c)===n,q=a.a.e.get(e,c)||[],p=a.a.ib(q,function(a){return a.ka}),s=a.a.lb(p,f,h.dontLimitMoves),
|
||||||
|
t=[],v=0,u=0,x=[],z=[];f=[];for(var D=[],p=[],w,C=0,B,E;B=s[C];C++)switch(E=B.moved,B.status){case "deleted":E===n&&(w=q[v],w.B&&(w.B.k(),w.B=n),a.a.Ba(w.ea,e).length&&(h.beforeRemove&&(t.push(w),z.push(w),w.ka===d?w=null:f[C]=w),w&&x.push.apply(x,w.ea)));v++;break;case "retained":m(C,v++);break;case "added":E!==n?m(C,E):(w={ka:B.value,tb:a.O(u++)},t.push(w),z.push(w),r||(p[C]=w))}a.a.e.set(e,c,t);k(h.beforeMove,D);a.a.r(x,h.beforeRemove?a.ba:a.removeNode);for(var C=0,r=a.f.firstChild(e),F;w=z[C];C++){w.ea||
|
||||||
|
a.a.extend(w,b(e,g,w.ka,l,w.tb));for(v=0;s=w.ea[v];r=s.nextSibling,F=s,v++)s!==r&&a.f.kc(e,s,F);!w.ad&&l&&(l(w.ka,w.ea,w.tb),w.ad=!0)}k(h.beforeRemove,f);for(C=0;C<f.length;++C)f[C]&&(f[C].ka=d);k(h.afterMove,D);k(h.afterAdd,p)}})();a.b("utils.setDomNodeChildrenFromArrayMapping",a.a.Db);a.X=function(){this.allowTemplateRewriting=!1};a.X.prototype=new a.P;a.X.prototype.renderTemplateSource=function(b,c,d,e){if(c=(9>a.a.C?0:b.nodes)?b.nodes():null)return a.a.W(c.cloneNode(!0).childNodes);b=b.text();
|
||||||
|
return a.a.na(b,e)};a.X.vb=new a.X;a.Fb(a.X.vb);a.b("nativeTemplateEngine",a.X);(function(){a.xb=function(){var a=this.ed=function(){if(!u||!u.tmpl)return 0;try{if(0<=u.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(a){}return 1}();this.renderTemplateSource=function(b,e,f,g){g=g||t;f=f||{};if(2>a)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var h=b.data("precompiled");h||(h=b.text()||"",h=u.template(null,"{{ko_with $item.koBindingContext}}"+
|
||||||
|
h+"{{/ko_with}}"),b.data("precompiled",h));b=[e.$data];e=u.extend({koBindingContext:e},f.templateOptions);e=u.tmpl(h,b,e);e.appendTo(g.createElement("div"));u.fragments={};return e};this.createJavaScriptEvaluatorBlock=function(a){return"{{ko_code ((function() { return "+a+" })()) }}"};this.addTemplate=function(a,b){t.write("<script type='text/html' id='"+a+"'>"+b+"\x3c/script>")};0<a&&(u.tmpl.tag.ko_code={open:"__.push($1 || '');"},u.tmpl.tag.ko_with={open:"with($1) {",close:"} "})};a.xb.prototype=
|
||||||
|
new a.P;var b=new a.xb;0<b.ed&&a.Fb(b);a.b("jqueryTmplTemplateEngine",a.xb)})()})})();})();
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/// Knockout Mapping plugin v2.4.1
|
||||||
|
/// (c) 2013 Steven Sanderson, Roy Jacobs - http://knockoutjs.com/
|
||||||
|
/// License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||||
|
(function(e){"function"===typeof require&&"object"===typeof exports&&"object"===typeof module?e(require("knockout"),exports):"function"===typeof define&&define.amd?define(["knockout","exports"],e):e(ko,ko.mapping={})})(function(e,f){function y(b,c){var a,d;for(d in c)if(c.hasOwnProperty(d)&&c[d])if(a=f.getType(b[d]),d&&b[d]&&"array"!==a&&"string"!==a)y(b[d],c[d]);else if("array"===f.getType(b[d])&&"array"===f.getType(c[d])){a=b;for(var e=d,l=b[d],n=c[d],t={},g=l.length-1;0<=g;--g)t[l[g]]=l[g];for(g=
|
||||||
|
n.length-1;0<=g;--g)t[n[g]]=n[g];l=[];n=void 0;for(n in t)l.push(t[n]);a[e]=l}else b[d]=c[d]}function E(b,c){var a={};y(a,b);y(a,c);return a}function z(b,c){for(var a=E({},b),e=L.length-1;0<=e;e--){var f=L[e];a[f]&&(a[""]instanceof Object||(a[""]={}),a[""][f]=a[f],delete a[f])}c&&(a.ignore=h(c.ignore,a.ignore),a.include=h(c.include,a.include),a.copy=h(c.copy,a.copy),a.observe=h(c.observe,a.observe));a.ignore=h(a.ignore,j.ignore);a.include=h(a.include,j.include);a.copy=h(a.copy,j.copy);a.observe=h(a.observe,
|
||||||
|
j.observe);a.mappedProperties=a.mappedProperties||{};a.copiedProperties=a.copiedProperties||{};return a}function h(b,c){"array"!==f.getType(b)&&(b="undefined"===f.getType(b)?[]:[b]);"array"!==f.getType(c)&&(c="undefined"===f.getType(c)?[]:[c]);return e.utils.arrayGetDistinctValues(b.concat(c))}function F(b,c,a,d,k,l,n){var t="array"===f.getType(e.utils.unwrapObservable(c));l=l||"";if(f.isMapped(b)){var g=e.utils.unwrapObservable(b)[p];a=E(g,a)}var j=n||k,h=function(){return a[d]&&a[d].create instanceof
|
||||||
|
Function},x=function(b){var f=G,g=e.dependentObservable;e.dependentObservable=function(a,b,c){c=c||{};a&&"object"==typeof a&&(c=a);var d=c.deferEvaluation,M=!1;c.deferEvaluation=!0;a=new H(a,b,c);if(!d){var g=a,d=e.dependentObservable;e.dependentObservable=H;a=e.isWriteableObservable(g);e.dependentObservable=d;d=H({read:function(){M||(e.utils.arrayRemoveItem(f,g),M=!0);return g.apply(g,arguments)},write:a&&function(a){return g(a)},deferEvaluation:!0});d.__DO=g;a=d;f.push(a)}return a};e.dependentObservable.fn=
|
||||||
|
H.fn;e.computed=e.dependentObservable;b=e.utils.unwrapObservable(k)instanceof Array?a[d].create({data:b||c,parent:j,skip:N}):a[d].create({data:b||c,parent:j});e.dependentObservable=g;e.computed=e.dependentObservable;return b},u=function(){return a[d]&&a[d].update instanceof Function},v=function(b,f){var g={data:f||c,parent:j,target:e.utils.unwrapObservable(b)};e.isWriteableObservable(b)&&(g.observable=b);return a[d].update(g)};if(n=I.get(c))return n;d=d||"";if(t){var t=[],s=!1,m=function(a){return a};
|
||||||
|
a[d]&&a[d].key&&(m=a[d].key,s=!0);e.isObservable(b)||(b=e.observableArray([]),b.mappedRemove=function(a){var c="function"==typeof a?a:function(b){return b===m(a)};return b.remove(function(a){return c(m(a))})},b.mappedRemoveAll=function(a){var c=C(a,m);return b.remove(function(a){return-1!=e.utils.arrayIndexOf(c,m(a))})},b.mappedDestroy=function(a){var c="function"==typeof a?a:function(b){return b===m(a)};return b.destroy(function(a){return c(m(a))})},b.mappedDestroyAll=function(a){var c=C(a,m);return b.destroy(function(a){return-1!=
|
||||||
|
e.utils.arrayIndexOf(c,m(a))})},b.mappedIndexOf=function(a){var c=C(b(),m);a=m(a);return e.utils.arrayIndexOf(c,a)},b.mappedGet=function(a){return b()[b.mappedIndexOf(a)]},b.mappedCreate=function(a){if(-1!==b.mappedIndexOf(a))throw Error("There already is an object with the key that you specified.");var c=h()?x(a):a;u()&&(a=v(c,a),e.isWriteableObservable(c)?c(a):c=a);b.push(c);return c});n=C(e.utils.unwrapObservable(b),m).sort();g=C(c,m);s&&g.sort();s=e.utils.compareArrays(n,g);n={};var J,A=e.utils.unwrapObservable(c),
|
||||||
|
y={},z=!0,g=0;for(J=A.length;g<J;g++){var r=m(A[g]);if(void 0===r||r instanceof Object){z=!1;break}y[r]=A[g]}var A=[],B=0,g=0;for(J=s.length;g<J;g++){var r=s[g],q,w=l+"["+g+"]";switch(r.status){case "added":var D=z?y[r.value]:K(e.utils.unwrapObservable(c),r.value,m);q=F(void 0,D,a,d,b,w,k);h()||(q=e.utils.unwrapObservable(q));w=O(e.utils.unwrapObservable(c),D,n);q===N?B++:A[w-B]=q;n[w]=!0;break;case "retained":D=z?y[r.value]:K(e.utils.unwrapObservable(c),r.value,m);q=K(b,r.value,m);F(q,D,a,d,b,w,
|
||||||
|
k);w=O(e.utils.unwrapObservable(c),D,n);A[w]=q;n[w]=!0;break;case "deleted":q=K(b,r.value,m)}t.push({event:r.status,item:q})}b(A);a[d]&&a[d].arrayChanged&&e.utils.arrayForEach(t,function(b){a[d].arrayChanged(b.event,b.item)})}else if(P(c)){b=e.utils.unwrapObservable(b);if(!b){if(h())return s=x(),u()&&(s=v(s)),s;if(u())return v(s);b={}}u()&&(b=v(b));I.save(c,b);if(u())return b;Q(c,function(d){var f=l.length?l+"."+d:d;if(-1==e.utils.arrayIndexOf(a.ignore,f))if(-1!=e.utils.arrayIndexOf(a.copy,f))b[d]=
|
||||||
|
c[d];else if("object"!=typeof c[d]&&"array"!=typeof c[d]&&0<a.observe.length&&-1==e.utils.arrayIndexOf(a.observe,f))b[d]=c[d],a.copiedProperties[f]=!0;else{var g=I.get(c[d]),k=F(b[d],c[d],a,d,b,f,b),g=g||k;if(0<a.observe.length&&-1==e.utils.arrayIndexOf(a.observe,f))b[d]=g(),a.copiedProperties[f]=!0;else{if(e.isWriteableObservable(b[d])){if(g=e.utils.unwrapObservable(g),b[d]()!==g)b[d](g)}else g=void 0===b[d]?g:e.utils.unwrapObservable(g),b[d]=g;a.mappedProperties[f]=!0}}})}else switch(f.getType(c)){case "function":u()?
|
||||||
|
e.isWriteableObservable(c)?(c(v(c)),b=c):b=v(c):b=c;break;default:if(e.isWriteableObservable(b))return q=u()?v(b):e.utils.unwrapObservable(c),b(q),q;h()||u();b=h()?x():e.observable(e.utils.unwrapObservable(c));u()&&b(v(b))}return b}function O(b,c,a){for(var d=0,e=b.length;d<e;d++)if(!0!==a[d]&&b[d]===c)return d;return null}function R(b,c){var a;c&&(a=c(b));"undefined"===f.getType(a)&&(a=b);return e.utils.unwrapObservable(a)}function K(b,c,a){b=e.utils.unwrapObservable(b);for(var d=0,f=b.length;d<
|
||||||
|
f;d++){var l=b[d];if(R(l,a)===c)return l}throw Error("When calling ko.update*, the key '"+c+"' was not found!");}function C(b,c){return e.utils.arrayMap(e.utils.unwrapObservable(b),function(a){return c?R(a,c):a})}function Q(b,c){if("array"===f.getType(b))for(var a=0;a<b.length;a++)c(a);else for(a in b)c(a)}function P(b){var c=f.getType(b);return("object"===c||"array"===c)&&null!==b}function T(){var b=[],c=[];this.save=function(a,d){var f=e.utils.arrayIndexOf(b,a);0<=f?c[f]=d:(b.push(a),c.push(d))};
|
||||||
|
this.get=function(a){a=e.utils.arrayIndexOf(b,a);return 0<=a?c[a]:void 0}}function S(){var b={},c=function(a){var c;try{c=a}catch(e){c="$$$"}a=b[c];void 0===a&&(a=new T,b[c]=a);return a};this.save=function(a,b){c(a).save(a,b)};this.get=function(a){return c(a).get(a)}}var p="__ko_mapping__",H=e.dependentObservable,B=0,G,I,L=["create","update","key","arrayChanged"],N={},x={include:["_destroy"],ignore:[],copy:[],observe:[]},j=x;f.isMapped=function(b){return(b=e.utils.unwrapObservable(b))&&b[p]};f.fromJS=
|
||||||
|
function(b){if(0==arguments.length)throw Error("When calling ko.fromJS, pass the object you want to convert.");try{B++||(G=[],I=new S);var c,a;2==arguments.length&&(arguments[1][p]?a=arguments[1]:c=arguments[1]);3==arguments.length&&(c=arguments[1],a=arguments[2]);a&&(c=E(c,a[p]));c=z(c);var d=F(a,b,c);a&&(d=a);if(!--B)for(;G.length;){var e=G.pop();e&&(e(),e.__DO.throttleEvaluation=e.throttleEvaluation)}d[p]=E(d[p],c);return d}catch(f){throw B=0,f;}};f.fromJSON=function(b){var c=e.utils.parseJson(b);
|
||||||
|
arguments[0]=c;return f.fromJS.apply(this,arguments)};f.updateFromJS=function(){throw Error("ko.mapping.updateFromJS, use ko.mapping.fromJS instead. Please note that the order of parameters is different!");};f.updateFromJSON=function(){throw Error("ko.mapping.updateFromJSON, use ko.mapping.fromJSON instead. Please note that the order of parameters is different!");};f.toJS=function(b,c){j||f.resetDefaultOptions();if(0==arguments.length)throw Error("When calling ko.mapping.toJS, pass the object you want to convert.");
|
||||||
|
if("array"!==f.getType(j.ignore))throw Error("ko.mapping.defaultOptions().ignore should be an array.");if("array"!==f.getType(j.include))throw Error("ko.mapping.defaultOptions().include should be an array.");if("array"!==f.getType(j.copy))throw Error("ko.mapping.defaultOptions().copy should be an array.");c=z(c,b[p]);return f.visitModel(b,function(a){return e.utils.unwrapObservable(a)},c)};f.toJSON=function(b,c){var a=f.toJS(b,c);return e.utils.stringifyJson(a)};f.defaultOptions=function(){if(0<arguments.length)j=
|
||||||
|
arguments[0];else return j};f.resetDefaultOptions=function(){j={include:x.include.slice(0),ignore:x.ignore.slice(0),copy:x.copy.slice(0)}};f.getType=function(b){if(b&&"object"===typeof b){if(b.constructor===Date)return"date";if(b.constructor===Array)return"array"}return typeof b};f.visitModel=function(b,c,a){a=a||{};a.visitedObjects=a.visitedObjects||new S;var d,k=e.utils.unwrapObservable(b);if(P(k))a=z(a,k[p]),c(b,a.parentName),d="array"===f.getType(k)?[]:{};else return c(b,a.parentName);a.visitedObjects.save(b,
|
||||||
|
d);var l=a.parentName;Q(k,function(b){if(!(a.ignore&&-1!=e.utils.arrayIndexOf(a.ignore,b))){var j=k[b],g=a,h=l||"";"array"===f.getType(k)?l&&(h+="["+b+"]"):(l&&(h+="."),h+=b);g.parentName=h;if(!(-1===e.utils.arrayIndexOf(a.copy,b)&&-1===e.utils.arrayIndexOf(a.include,b)&&k[p]&&k[p].mappedProperties&&!k[p].mappedProperties[b]&&k[p].copiedProperties&&!k[p].copiedProperties[b]&&"array"!==f.getType(k)))switch(f.getType(e.utils.unwrapObservable(j))){case "object":case "array":case "undefined":g=a.visitedObjects.get(j);
|
||||||
|
d[b]="undefined"!==f.getType(g)?g:f.visitModel(j,c,a);break;default:d[b]=c(j,a.parentName)}}});return d}});
|
||||||
@@ -0,0 +1,271 @@
|
|||||||
|
function respon() {
|
||||||
|
var hfoot = jQuery('.footer-container').outerHeight(),
|
||||||
|
hhead = jQuery('.header-container').outerHeight(),
|
||||||
|
hscreen = jQuery(window).outerHeight(),
|
||||||
|
hbanner = hscreen - hhead;
|
||||||
|
jQuery('.page-wrap').css({marginBottom:-hfoot});
|
||||||
|
jQuery('.main').css({paddingBottom:hfoot});
|
||||||
|
jQuery('.bn-slide .col, .bn-inner-1 .col').css({paddingTop:hhead});
|
||||||
|
|
||||||
|
jQuery('.smoothscroll').on('click', function(event) {
|
||||||
|
var target = jQuery(this.getAttribute('href'));
|
||||||
|
if( target.length ) {
|
||||||
|
event.preventDefault();
|
||||||
|
jQuery('html, body').stop().animate({
|
||||||
|
scrollTop: target.offset().top -hhead+20
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
jQuery(window).scroll(function(){
|
||||||
|
if (jQuery(window).scrollTop() >= 55) {
|
||||||
|
jQuery('.gotop').css({opacity:1});
|
||||||
|
jQuery('.header-container').addClass('fixhead');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
jQuery('.gotop').css({opacity:0});
|
||||||
|
jQuery('.header-container').removeClass('fixhead');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
jQuery(document).ready(function(){
|
||||||
|
|
||||||
|
respon();
|
||||||
|
|
||||||
|
|
||||||
|
if (/android|Android|avantgo|blackberry|Mobile|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|iPad|iPod|BlackBerry|IEMobile|Opera Mini|iPhone|up\.browser|up\.link|webos|webOS|wos/i.test(navigator.userAgent)) {
|
||||||
|
jQuery('.bgfix').addClass('mbbg');
|
||||||
|
}
|
||||||
|
|
||||||
|
jQuery(".menu li").find("ul").prev().addClass("fa fa-angle-down");
|
||||||
|
jQuery(".menu li").find("ul").parent().append("<span class='subarrow'></span>");
|
||||||
|
|
||||||
|
jQuery(".menu li" ).hover(
|
||||||
|
function() {
|
||||||
|
jQuery(this).addClass('hover');
|
||||||
|
}, function() {
|
||||||
|
jQuery(this).removeClass('hover');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
jQuery('.menu .subarrow').each(function(){
|
||||||
|
var currentid = jQuery(this).attr('href');
|
||||||
|
jQuery(this).click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
jQuery(this).prev().toggle();
|
||||||
|
jQuery(this).toggleClass('open');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('.control-page').each(function(){
|
||||||
|
var currentid = jQuery(this).attr('href');
|
||||||
|
jQuery(this).click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
jQuery(this).toggleClass('active-burger');
|
||||||
|
jQuery(currentid).toggleClass('open-sub');
|
||||||
|
jQuery('body').toggleClass('open-page');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* bg appointment */
|
||||||
|
jQuery('.bg').each(function() {
|
||||||
|
var imgUrl1 = jQuery(this).find('.bgimg').attr('src');
|
||||||
|
jQuery(this).fixbg({ srcimg : imgUrl1});
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('.btn-search').each(function(){
|
||||||
|
var currentid = jQuery(this).attr('href');
|
||||||
|
jQuery(this).click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
jQuery(this).hide();
|
||||||
|
jQuery(currentid).toggleClass('open');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
jQuery('.show-info a').each(function(){
|
||||||
|
jQuery(this).click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
jQuery(this).find('.fa').toggleClass('fa-arrow-circle-down');
|
||||||
|
jQuery(this).find('.fa').toggleClass('fa-arrow-circle-up');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
jQuery('.btn-close').click(function(e){
|
||||||
|
jQuery('.btn-search').show();
|
||||||
|
jQuery('#search').toggleClass('open');
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('.selectpicker').selectpicker({dropupAuto:false});
|
||||||
|
|
||||||
|
jQuery('.datepicker').datetimepicker({
|
||||||
|
format: 'DD/MM/YYYY'
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
jQuery('.show-tooltip').tooltip();
|
||||||
|
|
||||||
|
jQuery(".fileinput").fileinput({
|
||||||
|
browseIcon: "",
|
||||||
|
browseLabel: "Choose File",
|
||||||
|
showPreview: false,
|
||||||
|
showRemove: false,
|
||||||
|
showUpload: false
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('.fancybox')
|
||||||
|
.fancybox({
|
||||||
|
padding: 0,
|
||||||
|
helpers : {
|
||||||
|
overlay : {
|
||||||
|
locked: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('.fancybox-media')
|
||||||
|
.fancybox({
|
||||||
|
openEffect : 'none',
|
||||||
|
closeEffect : 'none',
|
||||||
|
prevEffect : 'none',
|
||||||
|
nextEffect : 'none',
|
||||||
|
padding: 2,
|
||||||
|
arrows : false,
|
||||||
|
helpers : {
|
||||||
|
media : {},
|
||||||
|
buttons : {},
|
||||||
|
overlay : {
|
||||||
|
locked: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('.result__head').scrollToFixed({
|
||||||
|
limit: jQuery('.footer-container').offset().top - 300
|
||||||
|
});
|
||||||
|
jQuery('li.menu-item-has-children > a').click(function(){
|
||||||
|
jQuery(this).parent().find('ul.sub-menu').toggle();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
jQuery(document).on('hidden.bs.modal', function (event) {
|
||||||
|
if (jQuery('.modal.in').length) {
|
||||||
|
jQuery('body').addClass('modal-open');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery(window).load(function() {
|
||||||
|
|
||||||
|
respon();
|
||||||
|
|
||||||
|
jQuery('.banner').css({ height: 'auto'});
|
||||||
|
|
||||||
|
jQuery('#slider').slick({
|
||||||
|
arrows: false,
|
||||||
|
autoplay: true,
|
||||||
|
autoplaySpeed: 3000,
|
||||||
|
dots: true,
|
||||||
|
fade: true,
|
||||||
|
slidesToShow: 1,
|
||||||
|
slidesToScroll: 1,
|
||||||
|
speed: 2000
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('.eheight').each(function() {
|
||||||
|
jQuery(this).find('.ecol').matchHeight();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery(window).resize(function() {
|
||||||
|
respon();
|
||||||
|
});
|
||||||
|
|
||||||
|
function ajaxFunction(uri, method, data) {
|
||||||
|
return jQuery.ajax({
|
||||||
|
type: method,
|
||||||
|
url :uri,
|
||||||
|
dataType :'json',
|
||||||
|
contentType: 'application/json',
|
||||||
|
data: data
|
||||||
|
|
||||||
|
}).fail(function (jqXHR, textStatus, errorThrown) {
|
||||||
|
console.log('Error ' + errorThrown);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function ajaxToWP(phoneNumber,password){
|
||||||
|
var data = {
|
||||||
|
action: 'write_session',
|
||||||
|
phoneNumber: phoneNumber,
|
||||||
|
password: password
|
||||||
|
};
|
||||||
|
|
||||||
|
jQuery.post(my_ajax_object.ajax_url, data, function(response) {
|
||||||
|
response = JSON.parse(response);
|
||||||
|
if(response.id){
|
||||||
|
localStorage.setItem("sis_user",ko.toJSON(response));
|
||||||
|
location.href= my_ajax_object.siteurl +"/thong-tin-benh-nhan";
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
jQuery('#open-modal').show();
|
||||||
|
setTimeout(function(){
|
||||||
|
jQuery('#open-modal').hide();
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function GetAppointmentDetail(code)
|
||||||
|
{
|
||||||
|
//3207161
|
||||||
|
var data = {
|
||||||
|
action: 'appointment_detail',
|
||||||
|
code: code,
|
||||||
|
};
|
||||||
|
jQuery.post(my_ajax_object.ajax_url, data, function(response) {
|
||||||
|
response = JSON.parse(response);
|
||||||
|
if(response){
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
jQuery('#open-modal').show();
|
||||||
|
setTimeout(function(){
|
||||||
|
jQuery('#open-modal').hide();
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function LoginViewModel() {
|
||||||
|
var self = this;
|
||||||
|
self.phoneNumber = ko.observable('');
|
||||||
|
self.password = ko.observable('');
|
||||||
|
self.buttonEnabled = ko.computed(function() {
|
||||||
|
return (self.phoneNumber() !== "") && (self.password() !== "");
|
||||||
|
});
|
||||||
|
|
||||||
|
self.login = function()
|
||||||
|
{
|
||||||
|
ajaxToWP(self.phoneNumber(),self.password());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getUrlParameter(sParam) {
|
||||||
|
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
|
||||||
|
sURLVariables = sPageURL.split('&'),
|
||||||
|
sParameterName,
|
||||||
|
i;
|
||||||
|
|
||||||
|
for (i = 0; i < sURLVariables.length; i++) {
|
||||||
|
sParameterName = sURLVariables[i].split('=');
|
||||||
|
|
||||||
|
if (sParameterName[0] === sParam) {
|
||||||
|
return sParameterName[1] === undefined ? true : sParameterName[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
function initMap() {
|
||||||
|
var myLatlng = new google.maps.LatLng(10.0152624, 105.7382512);
|
||||||
|
var myOptions = {
|
||||||
|
zoom: 15,
|
||||||
|
center: myLatlng,
|
||||||
|
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||||
|
}
|
||||||
|
var map;
|
||||||
|
var mapElement=document.getElementById("map");
|
||||||
|
|
||||||
|
if (typeof(mapElement) != 'undefined' && mapElement != null)
|
||||||
|
{
|
||||||
|
map = new google.maps.Map(mapElement, myOptions);
|
||||||
|
}
|
||||||
|
var contentString = '<div id="map-info-marker">'+
|
||||||
|
'<h1>Bệnh viện Đột Qụy Tim mạch Cần Thơ</h1>'+
|
||||||
|
'<div>'+
|
||||||
|
"<p>397 NGUYỄN VĂN CỪ STREET, AN BÌNH WARD, NINH KIỀU DISTRICT</p>"+
|
||||||
|
'</div>'+
|
||||||
|
'</div>';
|
||||||
|
|
||||||
|
var infowindow = new google.maps.InfoWindow({
|
||||||
|
content: contentString,
|
||||||
|
maxWidth: 700
|
||||||
|
});
|
||||||
|
|
||||||
|
var companyImage = new google.maps.MarkerImage(path+'pin.png',
|
||||||
|
new google.maps.Size(51,69),
|
||||||
|
new google.maps.Point(0,0)
|
||||||
|
);
|
||||||
|
|
||||||
|
var marker = new google.maps.Marker({
|
||||||
|
position: myLatlng,
|
||||||
|
map: map,
|
||||||
|
icon: companyImage,
|
||||||
|
title: 'Bệnh Viện Đột Qụy Tim Mạch Cần Thơ'
|
||||||
|
});
|
||||||
|
|
||||||
|
marker.addListener('click', function() {
|
||||||
|
infowindow.open(map, marker);
|
||||||
|
});
|
||||||
|
infowindow.open(map, marker);
|
||||||
|
}
|
||||||
|
//google.maps.event.addDomListener(window, "load", initialize);
|
||||||
@@ -0,0 +1,859 @@
|
|||||||
|
/*jslint browser: true, white: true, this: true, long: true */
|
||||||
|
/*global console,jQuery,megamenu,window,navigator*/
|
||||||
|
|
||||||
|
/*! Max Mega Menu jQuery Plugin */
|
||||||
|
(function ( $ ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.maxmegamenu = function(menu, options) {
|
||||||
|
var plugin = this;
|
||||||
|
var $menu = $(menu);
|
||||||
|
var $toggle_bar = $menu.siblings(".mega-menu-toggle");
|
||||||
|
var html_body_class_timeout;
|
||||||
|
|
||||||
|
var defaults = {
|
||||||
|
event: $menu.attr("data-event"),
|
||||||
|
effect: $menu.attr("data-effect"),
|
||||||
|
effect_speed: parseInt($menu.attr("data-effect-speed")),
|
||||||
|
effect_mobile: $menu.attr("data-effect-mobile"),
|
||||||
|
effect_speed_mobile: parseInt($menu.attr("data-effect-speed-mobile")),
|
||||||
|
panel_width: $menu.attr("data-panel-width"),
|
||||||
|
panel_inner_width: $menu.attr("data-panel-inner-width"),
|
||||||
|
mobile_force_width: $menu.attr("data-mobile-force-width"),
|
||||||
|
mobile_overlay: $menu.attr("data-mobile-overlay"),
|
||||||
|
mobile_state: $menu.attr("data-mobile-state"),
|
||||||
|
mobile_direction: $menu.attr("data-mobile-direction"),
|
||||||
|
second_click: $menu.attr("data-second-click"),
|
||||||
|
vertical_behaviour: $menu.attr("data-vertical-behaviour"),
|
||||||
|
document_click: $menu.attr("data-document-click"),
|
||||||
|
breakpoint: $menu.attr("data-breakpoint"),
|
||||||
|
unbind_events: $menu.attr("data-unbind"),
|
||||||
|
hover_intent_timeout: $menu.attr("data-hover-intent-timeout"),
|
||||||
|
hover_intent_interval: $menu.attr("data-hover-intent-interval")
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.settings = {};
|
||||||
|
|
||||||
|
var items_with_submenus = $("li.mega-menu-megamenu.mega-menu-item-has-children," +
|
||||||
|
"li.mega-menu-flyout.mega-menu-item-has-children," +
|
||||||
|
"li.mega-menu-tabbed > ul.mega-sub-menu > li.mega-menu-item-has-children," +
|
||||||
|
"li.mega-menu-flyout li.mega-menu-item-has-children", $menu);
|
||||||
|
|
||||||
|
var collapse_children_parents = $("li.mega-menu-megamenu li.mega-menu-item-has-children.mega-collapse-children > a.mega-menu-link", $menu);
|
||||||
|
|
||||||
|
plugin.addAnimatingClass = function(element) {
|
||||||
|
if (plugin.settings.effect === "disabled") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".mega-animating").removeClass("mega-animating");
|
||||||
|
|
||||||
|
var timeout = plugin.settings.effect_speed + parseInt(plugin.settings.hover_intent_timeout, 10);
|
||||||
|
|
||||||
|
element.addClass("mega-animating");
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
element.removeClass("mega-animating");
|
||||||
|
}, timeout );
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.hideAllPanels = function() {
|
||||||
|
$(".mega-toggle-on > a.mega-menu-link", $menu).each(function() {
|
||||||
|
plugin.hidePanel($(this), false);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.expandMobileSubMenus = function() {
|
||||||
|
if (plugin.settings.mobile_direction !== 'vertical') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".mega-menu-item-has-children.mega-expand-on-mobile > a.mega-menu-link", $menu).each(function() {
|
||||||
|
plugin.showPanel($(this));
|
||||||
|
});
|
||||||
|
|
||||||
|
if ( plugin.settings.mobile_state == 'expand_all' ) {
|
||||||
|
$(".mega-menu-item-has-children:not(.mega-toggle-on) > a.mega-menu-link", $menu).each(function() {
|
||||||
|
plugin.showPanel($(this), true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( plugin.settings.mobile_state == 'expand_active' ) {
|
||||||
|
$("li.mega-current-menu-ancestor.mega-menu-item-has-children > a.mega-menu-link," +
|
||||||
|
"li.mega-current-menu-item.mega-menu-item-has-children > a.mega-menu-link" +
|
||||||
|
"li.mega-current-menu-parent.mega-menu-item-has-children > a.mega-menu-link" +
|
||||||
|
"li.mega-current_page_ancestor.mega-menu-item-has-children > a.mega-menu-link" +
|
||||||
|
"li.mega-current_page_item.mega-menu-item-has-children > a.mega-menu-link", $menu).each(function() {
|
||||||
|
plugin.showPanel($(this));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.hideSiblingPanels = function(anchor, immediate) {
|
||||||
|
anchor.parent().parent().find(".mega-toggle-on").children("a.mega-menu-link").each(function() { // all open children of open siblings
|
||||||
|
plugin.hidePanel($(this), immediate);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.isDesktopView = function() {
|
||||||
|
var width = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
|
||||||
|
return width > plugin.settings.breakpoint;
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.isMobileView = function() {
|
||||||
|
return !plugin.isDesktopView();
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.showPanel = function(anchor, immediate) {
|
||||||
|
if ( anchor.is("li.mega-menu-item") ) {
|
||||||
|
anchor = anchor.find("a.mega-menu-link").first();
|
||||||
|
}
|
||||||
|
|
||||||
|
anchor.parent().triggerHandler("before_open_panel");
|
||||||
|
|
||||||
|
anchor.parent().find("[aria-expanded]").first().attr("aria-expanded", "true");
|
||||||
|
|
||||||
|
$(".mega-animating").removeClass("mega-animating");
|
||||||
|
|
||||||
|
if (plugin.isMobileView() && anchor.parent().hasClass("mega-hide-sub-menu-on-mobile")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plugin.isDesktopView() && ( $menu.hasClass("mega-menu-horizontal") || $menu.hasClass("mega-menu-vertical") ) && !anchor.parent().hasClass("mega-collapse-children")) {
|
||||||
|
plugin.hideSiblingPanels(anchor, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((plugin.isMobileView() && $menu.hasClass("mega-keyboard-navigation")) || plugin.settings.vertical_behaviour === "accordion") {
|
||||||
|
plugin.hideSiblingPanels(anchor, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.calculateDynamicSubmenuWidths(anchor);
|
||||||
|
|
||||||
|
// apply jQuery transition (only if the effect is set to "slide", other transitions are CSS based)
|
||||||
|
if ( plugin.shouldUseSlideAnimation(anchor, immediate) ) {
|
||||||
|
var speed = plugin.isMobileView() ? plugin.settings.effect_speed_mobile : plugin.settings.effect_speed;
|
||||||
|
|
||||||
|
anchor.siblings(".mega-sub-menu").css("display", "none").animate({"height":"show", "paddingTop":"show", "paddingBottom":"show", "minHeight":"show"}, speed, function() {
|
||||||
|
$(this).css("display", "");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
anchor.parent().addClass("mega-toggle-on").triggerHandler("open_panel");
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
plugin.shouldUseSlideAnimation = function(anchor, immediate) {
|
||||||
|
|
||||||
|
if (immediate == true) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (anchor.parent().hasClass("mega-collapse-children")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plugin.isDesktopView() && plugin.settings.effect === "slide") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plugin.isMobileView()) {
|
||||||
|
if (plugin.settings.effect_mobile === "slide") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plugin.settings.effect_mobile === "slide_left" || plugin.settings.effect_mobile === "slide_right") {
|
||||||
|
return plugin.settings.mobile_direction !== "horizontal";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
plugin.hidePanel = function(anchor, immediate) {
|
||||||
|
if ( anchor.is("li.mega-menu-item") ) {
|
||||||
|
anchor = anchor.find("a.mega-menu-link").first();
|
||||||
|
}
|
||||||
|
|
||||||
|
anchor.parent().triggerHandler("before_close_panel");
|
||||||
|
|
||||||
|
anchor.parent().find("[aria-expanded]").first().attr("aria-expanded", "false");
|
||||||
|
|
||||||
|
if ( plugin.shouldUseSlideAnimation(anchor) ) {
|
||||||
|
var speed = plugin.isMobileView() ? plugin.settings.effect_speed_mobile : plugin.settings.effect_speed;
|
||||||
|
|
||||||
|
anchor.siblings(".mega-sub-menu").animate({"height":"hide", "paddingTop":"hide", "paddingBottom":"hide", "minHeight":"hide"}, speed, function() {
|
||||||
|
anchor.siblings(".mega-sub-menu").css("display", "");
|
||||||
|
anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel");
|
||||||
|
});
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (immediate) {
|
||||||
|
anchor.siblings(".mega-sub-menu").css("display", "none").delay(plugin.settings.effect_speed).queue(function(){
|
||||||
|
$(this).css("display", "").dequeue();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// pause video widget videos
|
||||||
|
anchor.siblings(".mega-sub-menu").find(".widget_media_video video").each(function() {
|
||||||
|
this.player.pause();
|
||||||
|
});
|
||||||
|
|
||||||
|
anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel");
|
||||||
|
plugin.addAnimatingClass(anchor.parent());
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.calculateDynamicSubmenuWidths = function(anchor) {
|
||||||
|
// apply dynamic width and sub menu position (only to top level mega menus)
|
||||||
|
if (anchor.parent().hasClass("mega-menu-megamenu") && anchor.parent().parent().hasClass("max-mega-menu") && plugin.settings.panel_width && $(plugin.settings.panel_width).length > 0) {
|
||||||
|
if (plugin.isDesktopView()) {
|
||||||
|
var submenu_offset = $menu.offset();
|
||||||
|
var target_offset = $(plugin.settings.panel_width).offset();
|
||||||
|
|
||||||
|
anchor.siblings(".mega-sub-menu").css({
|
||||||
|
width: $(plugin.settings.panel_width).outerWidth(),
|
||||||
|
left: (target_offset.left - submenu_offset.left) + "px"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
anchor.siblings(".mega-sub-menu").css({
|
||||||
|
width: "",
|
||||||
|
left: ""
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// apply inner width to sub menu by adding padding to the left and right of the mega menu
|
||||||
|
if (anchor.parent().hasClass("mega-menu-megamenu") && anchor.parent().parent().hasClass("max-mega-menu") && plugin.settings.panel_inner_width && $(plugin.settings.panel_inner_width).length > 0) {
|
||||||
|
var target_width = 0;
|
||||||
|
|
||||||
|
if ($(plugin.settings.panel_inner_width).length) {
|
||||||
|
// jQuery selector
|
||||||
|
target_width = parseInt($(plugin.settings.panel_inner_width).width(), 10);
|
||||||
|
} else {
|
||||||
|
// we"re using a pixel width
|
||||||
|
target_width = parseInt(plugin.settings.panel_inner_width, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
anchor.siblings(".mega-sub-menu").css({
|
||||||
|
"paddingLeft": "",
|
||||||
|
"paddingRight": ""
|
||||||
|
});
|
||||||
|
|
||||||
|
var submenu_width = parseInt(anchor.siblings(".mega-sub-menu").innerWidth(), 10);
|
||||||
|
|
||||||
|
if (plugin.isDesktopView() && target_width > 0 && target_width < submenu_width) {
|
||||||
|
anchor.siblings(".mega-sub-menu").css({
|
||||||
|
"paddingLeft": (submenu_width - target_width) / 2 + "px",
|
||||||
|
"paddingRight": (submenu_width - target_width) / 2 + "px"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.bindClickEvents = function() {
|
||||||
|
var dragging = false;
|
||||||
|
|
||||||
|
$(document).on({
|
||||||
|
"touchmove": function(e) { dragging = true; },
|
||||||
|
"touchstart": function(e) { dragging = false; }
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on("click touchend", function(e) { // hide menu when clicked away from
|
||||||
|
if (!dragging && plugin.settings.document_click === "collapse" && ! $(e.target).closest(".mega-menu-wrap").length ) {
|
||||||
|
plugin.hideAllPanels();
|
||||||
|
plugin.hideMobileMenu();
|
||||||
|
}
|
||||||
|
dragging = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
var clickable_parents = $("> a.mega-menu-link", items_with_submenus).add(collapse_children_parents);
|
||||||
|
|
||||||
|
clickable_parents.on("touchend.megamenu", function(e) {
|
||||||
|
if (plugin.settings.event === "hover_intent") {
|
||||||
|
plugin.unbindHoverIntentEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plugin.settings.event === "hover") {
|
||||||
|
plugin.unbindHoverEvents();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
clickable_parents.not("[data-has-click-event]").on("click.megamenu", function(e) {
|
||||||
|
if (plugin.isDesktopView() && $(this).parent().hasClass("mega-toggle-on") && $(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed") ) {
|
||||||
|
if (plugin.settings.second_click === "go") {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
e.preventDefault();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dragging) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (plugin.isMobileView() && $(this).parent().hasClass("mega-hide-sub-menu-on-mobile")) {
|
||||||
|
return; // allow all clicks on parent items when sub menu is hidden on mobile
|
||||||
|
}
|
||||||
|
if ((plugin.settings.second_click === "go" || $(this).parent().hasClass("mega-click-click-go")) && $(this).attr("href") !== undefined) { // check for second click
|
||||||
|
if (!$(this).parent().hasClass("mega-toggle-on")) {
|
||||||
|
e.preventDefault();
|
||||||
|
plugin.showPanel($(this));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
if ($(this).parent().hasClass("mega-toggle-on")) {
|
||||||
|
plugin.hidePanel($(this), false);
|
||||||
|
} else {
|
||||||
|
plugin.showPanel($(this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
collapse_children_parents.each(function() {
|
||||||
|
$(this).attr("data-has-click-event", "true");
|
||||||
|
});
|
||||||
|
|
||||||
|
if ( plugin.settings.second_click === "disabled" ) {
|
||||||
|
clickable_parents.off("click.megamenu");
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".mega-close-after-click:not(.mega-menu-item-has-children) > a.mega-menu-link", $menu).on("click", function() {
|
||||||
|
plugin.hideAllPanels();
|
||||||
|
plugin.hideMobileMenu();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("button.mega-close", $menu.parent()).on("click", function(e) {
|
||||||
|
plugin.hideMobileMenu();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.bindHoverEvents = function() {
|
||||||
|
items_with_submenus.on({
|
||||||
|
"mouseenter.megamenu" : function() {
|
||||||
|
plugin.unbindClickEvents();
|
||||||
|
if (! $(this).hasClass("mega-toggle-on")) {
|
||||||
|
plugin.showPanel($(this).children("a.mega-menu-link"));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mouseleave.megamenu" : function() {
|
||||||
|
if ($(this).hasClass("mega-toggle-on") && ! $(this).hasClass("mega-disable-collapse") && ! $(this).parent().parent().hasClass("mega-menu-tabbed")) {
|
||||||
|
plugin.hidePanel($(this).children("a.mega-menu-link"), false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.bindHoverIntentEvents = function() {
|
||||||
|
items_with_submenus.hoverIntent({
|
||||||
|
over: function () {
|
||||||
|
plugin.unbindClickEvents();
|
||||||
|
if (! $(this).hasClass("mega-toggle-on")) {
|
||||||
|
plugin.showPanel($(this).children("a.mega-menu-link"));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
out: function () {
|
||||||
|
if ($(this).hasClass("mega-toggle-on") && ! $(this).hasClass("mega-disable-collapse") && ! $(this).parent().parent().hasClass("mega-menu-tabbed")) {
|
||||||
|
plugin.hidePanel($(this).children("a.mega-menu-link"), false);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
timeout: plugin.settings.hover_intent_timeout,
|
||||||
|
interval: plugin.settings.hover_intent_interval
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.bindKeyboardEvents = function() {
|
||||||
|
var tab_key = 9;
|
||||||
|
var escape_key = 27;
|
||||||
|
var enter_key = 13;
|
||||||
|
var left_arrow_key = 37;
|
||||||
|
var up_arrow_key = 38;
|
||||||
|
var right_arrow_key = 39;
|
||||||
|
var down_arrow_key = 40;
|
||||||
|
var space_key = 32;
|
||||||
|
|
||||||
|
var isMobileOffCanvasHorizontal = function() {
|
||||||
|
return plugin.isMobileView() && ( plugin.settings.effect_mobile === 'slide_right' || plugin.settings.effect_mobile === '' ) && plugin.settings.mobile_direction === 'horizontal';
|
||||||
|
}
|
||||||
|
|
||||||
|
var shouldTrapFocusInCurrentSubMenu = function() {
|
||||||
|
return isMobileOffCanvasHorizontal() && ( keyCode === up_arrow_key || keyCode === down_arrow_key || keyCode === tab_key );
|
||||||
|
}
|
||||||
|
|
||||||
|
$menu.parent().on("keyup.megamenu", ".max-mega-menu, .mega-menu-toggle", function(e) {
|
||||||
|
var keyCode = e.keyCode || e.which;
|
||||||
|
var active_link = $(e.target);
|
||||||
|
|
||||||
|
if (keyCode === tab_key) {
|
||||||
|
$menu.parent().addClass("mega-keyboard-navigation");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$menu.parent().on("keydown.megamenu", "a.mega-menu-link, .mega-indicator, .mega-menu-toggle-block, .mega-menu-toggle-animated-block button", function(e) {
|
||||||
|
|
||||||
|
if ( ! $menu.parent().hasClass("mega-keyboard-navigation") ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var keyCode = e.keyCode || e.which;
|
||||||
|
var active_link = $(e.target);
|
||||||
|
|
||||||
|
if ( keyCode === space_key && active_link.is(".mega-menu-link") ) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
// pressing space on a parent item will always toggle the sub menu
|
||||||
|
if ( active_link.parent().is(items_with_submenus) ) {
|
||||||
|
if ( active_link.parent().hasClass("mega-toggle-on") && ! active_link.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed") ) {
|
||||||
|
plugin.hidePanel(active_link);
|
||||||
|
} else {
|
||||||
|
plugin.showPanel(active_link);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( keyCode === space_key && active_link.is("mega-indicator") ) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
if ( active_link.parent().parent().hasClass("mega-toggle-on") && ! active_link.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed") ) {
|
||||||
|
plugin.hidePanel(active_link.parent());
|
||||||
|
} else {
|
||||||
|
plugin.showPanel(active_link.parent());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( keyCode === escape_key ) {
|
||||||
|
var submenu_open = $(".mega-toggle-on", $menu).length !== 0;
|
||||||
|
|
||||||
|
if ( submenu_open ) {
|
||||||
|
var focused_menu_item = $menu.find(":focus");
|
||||||
|
|
||||||
|
if ( focused_menu_item.closest('.mega-menu-flyout.mega-toggle-on').length !== 0 ) {
|
||||||
|
var nearest_parent_of_focused_item_li = focused_menu_item.closest('.mega-toggle-on');
|
||||||
|
var nearest_parent_of_focused_item_a = $("> a.mega-menu-link", nearest_parent_of_focused_item_li);
|
||||||
|
plugin.hidePanel(nearest_parent_of_focused_item_a);
|
||||||
|
nearest_parent_of_focused_item_a.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( focused_menu_item.closest('.mega-menu-megamenu.mega-toggle-on').length !== 0 ) {
|
||||||
|
var nearest_parent_of_focused_item_li = focused_menu_item.closest('.mega-menu-megamenu.mega-toggle-on');
|
||||||
|
var nearest_parent_of_focused_item_a = $("> a.mega-menu-link", nearest_parent_of_focused_item_li);
|
||||||
|
plugin.hidePanel(nearest_parent_of_focused_item_a);
|
||||||
|
nearest_parent_of_focused_item_a.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( plugin.isMobileView() && ! submenu_open ) {
|
||||||
|
plugin.hideMobileMenu();
|
||||||
|
$(".mega-menu-toggle-block, button.mega-toggle-animated", $toggle_bar).first().focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( keyCode === space_key ) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
if ( active_link.is(".mega-menu-toggle-block, .mega-menu-toggle-animated-block button") ) {
|
||||||
|
if ( $toggle_bar.hasClass("mega-menu-open") ) {
|
||||||
|
plugin.hideMobileMenu();
|
||||||
|
} else {
|
||||||
|
plugin.showMobileMenu();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( keyCode === enter_key ) {
|
||||||
|
|
||||||
|
// pressing enter on an arrow will toggle the sub menu
|
||||||
|
if ( active_link.is(".mega-indicator") ) {
|
||||||
|
if ( active_link.closest("li.mega-menu-item").hasClass("mega-toggle-on") && ! active_link.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed") ) {
|
||||||
|
plugin.hidePanel(active_link.parent());
|
||||||
|
} else {
|
||||||
|
plugin.showPanel(active_link.parent());
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// pressing enter on a parent link
|
||||||
|
if ( active_link.parent().is(items_with_submenus) ) {
|
||||||
|
|
||||||
|
// when clicking on the parent of a hidden submenu, follow the link
|
||||||
|
if ( plugin.isMobileView() && active_link.parent().is(".mega-hide-sub-menu-on-mobile") ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// when the arrow has been moved (i.e. it is clickable and visible, don't show the sub menu - just follow the link)
|
||||||
|
if ( active_link.is("[href]") && active_link.siblings(".mega-indicator[tabindex]:visible").length !== 0 ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pressing enter on a parent item without a link will toggle the sub menu
|
||||||
|
if ( active_link.is("[href]") === false ) {
|
||||||
|
if ( active_link.parent().hasClass("mega-toggle-on") && ! active_link.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed") ) {
|
||||||
|
plugin.hidePanel(active_link);
|
||||||
|
} else {
|
||||||
|
plugin.showPanel(active_link);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pressing enter on a parent item will first open the sub menu, then follow the link
|
||||||
|
if ( active_link.parent().hasClass("mega-toggle-on") && ! active_link.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed") ) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
e.preventDefault();
|
||||||
|
plugin.showPanel(active_link);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( shouldTrapFocusInCurrentSubMenu() ) {
|
||||||
|
console.log("trapping focusss");
|
||||||
|
var focused_item = $(":focus", $menu);
|
||||||
|
|
||||||
|
// if the menu doesn't have focus, focus the first menu item
|
||||||
|
if ( focused_item.length === 0) {
|
||||||
|
e.preventDefault();
|
||||||
|
$("> li.mega-menu-item:visible", $menu).find("> a.mega-menu-link, .mega-search span[role=button]").first().focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// try to find the next item at the same level
|
||||||
|
var next_item_to_focus = focused_item.parent().nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").first();
|
||||||
|
|
||||||
|
// can't find another item in the same level, attempt to skip back to the top
|
||||||
|
if ( next_item_to_focus.length === 0 && focused_item.closest(".mega-menu-megamenu").length !== 0 ) {
|
||||||
|
// are we inside a megamenu? find the 'back' button and focus on that
|
||||||
|
var all_li_parents = focused_item.parentsUntil(".mega-menu-megamenu");
|
||||||
|
|
||||||
|
if ( focused_item.is(all_li_parents.find("a.mega-menu-link").last()) ) {
|
||||||
|
next_item_to_focus = all_li_parents.find(".mega-back-button:visible > a.mega-menu-link").first();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// skip back to the top of non-megamenu menus
|
||||||
|
if ( next_item_to_focus.length === 0 ) {
|
||||||
|
next_item_to_focus = focused_item.parent().prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").first();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( next_item_to_focus.length !== 0 ) {
|
||||||
|
e.preventDefault();
|
||||||
|
next_item_to_focus.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var shouldGoToNextTopLevelItem = function() {
|
||||||
|
return ( ( keyCode === right_arrow_key && plugin.isDesktopView() ) || ( keyCode === down_arrow_key && plugin.isMobileView() ) ) && $menu.hasClass("mega-menu-horizontal");
|
||||||
|
}
|
||||||
|
|
||||||
|
var shouldGoToPreviousTopLevelItem = function() {
|
||||||
|
return ( ( keyCode === left_arrow_key && plugin.isDesktopView() ) || ( keyCode === up_arrow_key && plugin.isMobileView() ) ) && $menu.hasClass("mega-menu-horizontal");
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( shouldGoToNextTopLevelItem() ) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
var next_top_level_item = $("> .mega-toggle-on", $menu).nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").first();
|
||||||
|
|
||||||
|
if (next_top_level_item.length === 0) {
|
||||||
|
next_top_level_item = $(":focus", $menu).parent().nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").first();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (next_top_level_item.length === 0) {
|
||||||
|
next_top_level_item = $(":focus", $menu).parent().parent().parent().nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").first();
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.hideAllPanels();
|
||||||
|
next_top_level_item.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( shouldGoToPreviousTopLevelItem() ) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
var prev_top_level_item = $("> .mega-toggle-on", $menu).prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").last();
|
||||||
|
|
||||||
|
if (prev_top_level_item.length === 0) {
|
||||||
|
prev_top_level_item = $(":focus", $menu).parent().prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").last();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (prev_top_level_item.length === 0) {
|
||||||
|
prev_top_level_item = $(":focus", $menu).parent().parent().parent().prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search span[role=button]").last();
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.hideAllPanels();
|
||||||
|
prev_top_level_item.focus();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$menu.parent().on("focusout.megamenu", function(e) {
|
||||||
|
if ( $menu.parent().hasClass("mega-keyboard-navigation") ) {
|
||||||
|
setTimeout(function() {
|
||||||
|
var menu_has_focus = $menu.parent().find(":focus").length > 0;
|
||||||
|
if (! menu_has_focus) {
|
||||||
|
$menu.parent().removeClass("mega-keyboard-navigation");
|
||||||
|
plugin.hideAllPanels();
|
||||||
|
plugin.hideMobileMenu();
|
||||||
|
}
|
||||||
|
}, 10);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.unbindAllEvents = function() {
|
||||||
|
$("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, .mega-indicator", $menu).off();
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.unbindClickEvents = function() {
|
||||||
|
// collapsable parents always have a click event
|
||||||
|
$("> a.mega-menu-link", items_with_submenus).not(collapse_children_parents).off("click.megamenu touchend.megamenu");
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.unbindHoverEvents = function() {
|
||||||
|
items_with_submenus.off("mouseenter.megamenu mouseleave.megamenu");
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.unbindHoverIntentEvents = function() {
|
||||||
|
items_with_submenus.off("mouseenter mouseleave").removeProp("hoverIntent_t").removeProp("hoverIntent_s"); // hoverintent does not allow namespaced events
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.unbindKeyboardEvents = function() {
|
||||||
|
$menu.parent().off("keyup.megamenu keydown.megamenu focusout.megamenu");
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.unbindMegaMenuEvents = function() {
|
||||||
|
if (plugin.settings.event === "hover_intent") {
|
||||||
|
plugin.unbindHoverIntentEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plugin.settings.event === "hover") {
|
||||||
|
plugin.unbindHoverEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.unbindClickEvents();
|
||||||
|
plugin.unbindKeyboardEvents();
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.bindMegaMenuEvents = function() {
|
||||||
|
plugin.unbindMegaMenuEvents();
|
||||||
|
|
||||||
|
if (plugin.isDesktopView() && plugin.settings.event === "hover_intent") {
|
||||||
|
plugin.bindHoverIntentEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plugin.isDesktopView() && plugin.settings.event === "hover") {
|
||||||
|
plugin.bindHoverEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.bindClickEvents(); // always bind click events for touch screen devices
|
||||||
|
plugin.bindKeyboardEvents();
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.checkWidth = function() {
|
||||||
|
if ( plugin.isMobileView() && $menu.data("view") === "desktop" ) {
|
||||||
|
plugin.switchToMobile();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( plugin.isDesktopView() && $menu.data("view") === "mobile" ) {
|
||||||
|
plugin.switchToDesktop();
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link", $menu));
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.reverseRightAlignedItems = function() {
|
||||||
|
if ( ! $("body").hasClass("rtl") && $menu.hasClass("mega-menu-horizontal") ) {
|
||||||
|
$menu.append($menu.children("li.mega-item-align-right").get().reverse());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.addClearClassesToMobileItems = function() {
|
||||||
|
$(".mega-menu-row", $menu).each(function() {
|
||||||
|
$("> .mega-sub-menu > .mega-menu-column:not(.mega-hide-on-mobile)", $(this)).filter(":even").addClass("mega-menu-clear"); // :even is 0 based
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.initDesktop = function() {
|
||||||
|
$menu.data("view", "desktop");
|
||||||
|
plugin.bindMegaMenuEvents();
|
||||||
|
plugin.initIndicators();
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.switchToDesktop = function() {
|
||||||
|
$menu.data("view", "desktop");
|
||||||
|
plugin.bindMegaMenuEvents();
|
||||||
|
plugin.reverseRightAlignedItems();
|
||||||
|
plugin.hideAllPanels();
|
||||||
|
plugin.hideMobileMenu(true);
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.initMobile = function() {
|
||||||
|
plugin.switchToMobile();
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.switchToMobile = function() {
|
||||||
|
$menu.data("view", "mobile");
|
||||||
|
plugin.bindMegaMenuEvents();
|
||||||
|
plugin.initIndicators();
|
||||||
|
plugin.reverseRightAlignedItems();
|
||||||
|
plugin.addClearClassesToMobileItems();
|
||||||
|
plugin.hideAllPanels();
|
||||||
|
plugin.expandMobileSubMenus();
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.initToggleBar = function() {
|
||||||
|
$toggle_bar.on("click", function(e) {
|
||||||
|
if ( $(e.target).is(".mega-menu-toggle, .mega-menu-toggle-custom-block *, .mega-menu-toggle-block, .mega-menu-toggle-animated-block, .mega-menu-toggle-animated-block *, .mega-toggle-blocks-left, .mega-toggle-blocks-center, .mega-toggle-blocks-right, .mega-toggle-label, .mega-toggle-label span") ) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
if ($(this).hasClass("mega-menu-open")) {
|
||||||
|
plugin.hideMobileMenu();
|
||||||
|
} else {
|
||||||
|
plugin.showMobileMenu();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.initIndicators = function() {
|
||||||
|
$(".mega-indicator", $menu).not("[data-has-click-event]").on("click.megamenu", function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
if ( $(this).closest(".mega-menu-item").hasClass("mega-toggle-on") ) {
|
||||||
|
if ( ! $(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed") || plugin.isMobileView() ) {
|
||||||
|
plugin.hidePanel($(this).parent(), false);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
plugin.showPanel($(this).parent(), false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".mega-indicator", $menu).each(function() {
|
||||||
|
$(this).attr('data-has-click-event', 'true');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.hideMobileMenu = function(force) {
|
||||||
|
force = force || false;
|
||||||
|
|
||||||
|
if ( ! $toggle_bar.is(":visible") && ! force ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
html_body_class_timeout = setTimeout(function() {
|
||||||
|
$("body").removeClass($menu.attr("id") + "-mobile-open");
|
||||||
|
$("html").removeClass($menu.attr("id") + "-off-canvas-open");
|
||||||
|
}, plugin.settings.effect_speed_mobile);
|
||||||
|
|
||||||
|
$(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "false");
|
||||||
|
|
||||||
|
if (plugin.settings.effect_mobile === "slide" && ! force ) {
|
||||||
|
$menu.animate({"height":"hide"}, plugin.settings.effect_speed_mobile, function() {
|
||||||
|
$menu.css({
|
||||||
|
width: "",
|
||||||
|
left: "",
|
||||||
|
display: ""
|
||||||
|
});
|
||||||
|
|
||||||
|
$toggle_bar.removeClass("mega-menu-open");
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
$menu.css({
|
||||||
|
width: "",
|
||||||
|
left: "",
|
||||||
|
display: ""
|
||||||
|
});
|
||||||
|
|
||||||
|
$toggle_bar.removeClass("mega-menu-open");
|
||||||
|
}
|
||||||
|
|
||||||
|
$menu.triggerHandler("mmm:hideMobileMenu");
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.showMobileMenu = function() {
|
||||||
|
if ( ! $toggle_bar.is(":visible")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
clearTimeout(html_body_class_timeout);
|
||||||
|
|
||||||
|
$("body").addClass($menu.attr("id") + "-mobile-open");
|
||||||
|
|
||||||
|
plugin.expandMobileSubMenus();
|
||||||
|
|
||||||
|
if ( plugin.settings.effect_mobile === "slide_left" || plugin.settings.effect_mobile === "slide_right" ) {
|
||||||
|
$("html").addClass($menu.attr("id") + "-off-canvas-open");
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "true");
|
||||||
|
|
||||||
|
if (plugin.settings.effect_mobile === "slide") {
|
||||||
|
$menu.animate({"height":"show"}, plugin.settings.effect_speed_mobile, function() {
|
||||||
|
$(this).css("display", "");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$toggle_bar.addClass("mega-menu-open");
|
||||||
|
|
||||||
|
plugin.toggleBarForceWidth();
|
||||||
|
|
||||||
|
$menu.triggerHandler("mmm:showMobileMenu");
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.toggleBarForceWidth = function() {
|
||||||
|
if ($(plugin.settings.mobile_force_width).length && ( plugin.settings.effect_mobile === "slide" || plugin.settings.effect_mobile === "disabled" ) ) {
|
||||||
|
var submenu_offset = $toggle_bar.offset();
|
||||||
|
var target_offset = $(plugin.settings.mobile_force_width).offset();
|
||||||
|
|
||||||
|
$menu.css({
|
||||||
|
width: $(plugin.settings.mobile_force_width).outerWidth(),
|
||||||
|
left: (target_offset.left - submenu_offset.left) + "px"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.init = function() {
|
||||||
|
$menu.triggerHandler("before_mega_menu_init");
|
||||||
|
plugin.settings = $.extend({}, defaults, options);
|
||||||
|
$menu.removeClass("mega-no-js");
|
||||||
|
|
||||||
|
plugin.initToggleBar();
|
||||||
|
|
||||||
|
if (plugin.settings.unbind_events === "true") {
|
||||||
|
plugin.unbindAllEvents();
|
||||||
|
}
|
||||||
|
|
||||||
|
$(window).on("load", function() {
|
||||||
|
plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link", $menu));
|
||||||
|
});
|
||||||
|
|
||||||
|
if ( plugin.isDesktopView() ) {
|
||||||
|
plugin.initDesktop();
|
||||||
|
} else {
|
||||||
|
plugin.initMobile();
|
||||||
|
}
|
||||||
|
|
||||||
|
$(window).on("resize", function() {
|
||||||
|
plugin.checkWidth();
|
||||||
|
});
|
||||||
|
|
||||||
|
$menu.triggerHandler("after_mega_menu_init");
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin.init();
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.maxmegamenu = function(options) {
|
||||||
|
return this.each(function() {
|
||||||
|
if (undefined === $(this).data("maxmegamenu")) {
|
||||||
|
var plugin = new $.maxmegamenu(this, options);
|
||||||
|
$(this).data("maxmegamenu", plugin);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$(".max-mega-menu").maxmegamenu();
|
||||||
|
});
|
||||||
|
}( jQuery ));
|
||||||
|
After Width: | Height: | Size: 165 KiB |
@@ -0,0 +1,120 @@
|
|||||||
|
;(function($,window,document,undefined){function Owl(element,options){this.settings=null;this.options=$.extend({},Owl.Defaults,options);this.$element=$(element);this._handlers={};this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{'initializing':['busy'],'animating':['busy'],'dragging':['interacting']}};$.each(['onResize','onThrottledResize'],$.proxy(function(i,handler){this._handlers[handler]=$.proxy(this[handler],this);},this));$.each(Owl.Plugins,$.proxy(function(key,plugin){this._plugins[key.charAt(0).toLowerCase()+key.slice(1)]=new plugin(this);},this));$.each(Owl.Workers,$.proxy(function(priority,worker){this._pipe.push({'filter':worker.filter,'run':$.proxy(worker.run,this)});},this));this.setup();this.initialize();}
|
||||||
|
Owl.Defaults={items:3,loop:false,center:false,rewind:false,checkVisibility:true,mouseDrag:true,touchDrag:true,pullDrag:true,freeDrag:false,margin:0,stagePadding:0,merge:false,mergeFit:true,autoWidth:false,startPosition:0,rtl:false,smartSpeed:250,fluidSpeed:false,dragEndSpeed:false,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:'swing',slideTransition:'',info:false,nestedItemSelector:false,itemElement:'div',stageElement:'div',refreshClass:'owl-refresh',loadedClass:'owl-loaded',loadingClass:'owl-loading',rtlClass:'owl-rtl',responsiveClass:'owl-responsive',dragClass:'owl-drag',itemClass:'owl-item',stageClass:'owl-stage',stageOuterClass:'owl-stage-outer',grabClass:'owl-grab'};Owl.Width={Default:'default',Inner:'inner',Outer:'outer'};Owl.Type={Event:'event',State:'state'};Owl.Plugins={};Owl.Workers=[{filter:['width','settings'],run:function(){this._width=this.$element.width();}},{filter:['width','items','settings'],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)];}},{filter:['items','settings'],run:function(){this.$stage.children('.cloned').remove();}},{filter:['width','items','settings'],run:function(cache){var margin=this.settings.margin||'',grid=!this.settings.autoWidth,rtl=this.settings.rtl,css={'width':'auto','margin-left':rtl?margin:'','margin-right':rtl?'':margin};!grid&&this.$stage.children().css(css);cache.css=css;}},{filter:['width','items','settings'],run:function(cache){var width=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,merge=null,iterator=this._items.length,grid=!this.settings.autoWidth,widths=[];cache.items={merge:false,width:width};while(iterator--){merge=this._mergers[iterator];merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge;cache.items.merge=merge>1||cache.items.merge;widths[iterator]=!grid?this._items[iterator].width():width*merge;}
|
||||||
|
this._widths=widths;}},{filter:['items','settings'],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(settings.items*2,4),size=Math.ceil(items.length/2)*2,repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append='',prepend='';repeat/=2;while(repeat>0){clones.push(this.normalize(clones.length/2,true));append=append+items[clones[clones.length-1]][0].outerHTML;clones.push(this.normalize(items.length-1-(clones.length-1)/2,true));prepend=items[clones[clones.length-1]][0].outerHTML+prepend;repeat-=1;}
|
||||||
|
this._clones=clones;$(append).addClass('cloned').appendTo(this.$stage);$(prepend).addClass('cloned').prependTo(this.$stage);}},{filter:['width','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[];while(++iterator<size){previous=coordinates[iterator-1]||0;current=this._widths[this.relative(iterator)]+this.settings.margin;coordinates.push(previous+current*rtl);}
|
||||||
|
this._coordinates=coordinates;}},{filter:['width','items','settings'],run:function(){var padding=this.settings.stagePadding,coordinates=this._coordinates,css={'width':Math.ceil(Math.abs(coordinates[coordinates.length-1]))+padding*2,'padding-left':padding||'','padding-right':padding||''};this.$stage.css(css);}},{filter:['width','items','settings'],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();if(grid&&cache.items.merge){while(iterator--){cache.css.width=this._widths[this.relative(iterator)];items.eq(iterator).css(cache.css);}}else if(grid){cache.css.width=cache.items.width;items.css(cache.css);}}},{filter:['items'],run:function(){this._coordinates.length<1&&this.$stage.removeAttr('style');}},{filter:['width','items','settings'],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0;cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current));this.reset(cache.current);}},{filter:['position'],run:function(){this.animate(this.coordinates(this._current));}},{filter:['width','position','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,padding=this.settings.stagePadding*2,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i<n;i++){inner=this._coordinates[i-1]||0;outer=Math.abs(this._coordinates[i])+padding*rtl;if((this.op(inner,'<=',begin)&&(this.op(inner,'>',end)))||(this.op(outer,'<',begin)&&this.op(outer,'>',end))){matches.push(i);}}
|
||||||
|
this.$stage.children('.active').removeClass('active');this.$stage.children(':eq('+matches.join('), :eq(')+')').addClass('active');this.$stage.children('.center').removeClass('center');if(this.settings.center){this.$stage.children().eq(this.current()).addClass('center');}}}];Owl.prototype.initializeStage=function(){this.$stage=this.$element.find('.'+this.settings.stageClass);if(this.$stage.length){return;}
|
||||||
|
this.$element.addClass(this.options.loadingClass);this.$stage=$('<'+this.settings.stageElement+'>',{"class":this.settings.stageClass}).wrap($('<div/>',{"class":this.settings.stageOuterClass}));this.$element.append(this.$stage.parent());};Owl.prototype.initializeItems=function(){var $items=this.$element.find('.owl-item');if($items.length){this._items=$items.get().map(function(item){return $(item);});this._mergers=this._items.map(function(){return 1;});this.refresh();return;}
|
||||||
|
this.replace(this.$element.children().not(this.$stage.parent()));if(this.isVisible()){this.refresh();}else{this.invalidate('width');}
|
||||||
|
this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass);};Owl.prototype.initialize=function(){this.enter('initializing');this.trigger('initialize');this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl);if(this.settings.autoWidth&&!this.is('pre-loading')){var imgs,nestedSelector,width;imgs=this.$element.find('img');nestedSelector=this.settings.nestedItemSelector?'.'+this.settings.nestedItemSelector:undefined;width=this.$element.children(nestedSelector).width();if(imgs.length&&width<=0){this.preloadAutoWidthImages(imgs);}}
|
||||||
|
this.initializeStage();this.initializeItems();this.registerEventHandlers();this.leave('initializing');this.trigger('initialized');};Owl.prototype.isVisible=function(){return this.settings.checkVisibility?this.$element.is(':visible'):true;};Owl.prototype.setup=function(){var viewport=this.viewport(),overwrites=this.options.responsive,match=-1,settings=null;if(!overwrites){settings=$.extend({},this.options);}else{$.each(overwrites,function(breakpoint){if(breakpoint<=viewport&&breakpoint>match){match=Number(breakpoint);}});settings=$.extend({},this.options,overwrites[match]);if(typeof settings.stagePadding==='function'){settings.stagePadding=settings.stagePadding();}
|
||||||
|
delete settings.responsive;if(settings.responsiveClass){this.$element.attr('class',this.$element.attr('class').replace(new RegExp('('+this.options.responsiveClass+'-)\\S+\\s','g'),'$1'+match));}}
|
||||||
|
this.trigger('change',{property:{name:'settings',value:settings}});this._breakpoint=match;this.settings=settings;this.invalidate('settings');this.trigger('changed',{property:{name:'settings',value:this.settings}});};Owl.prototype.optionsLogic=function(){if(this.settings.autoWidth){this.settings.stagePadding=false;this.settings.merge=false;}};Owl.prototype.prepare=function(item){var event=this.trigger('prepare',{content:item});if(!event.data){event.data=$('<'+this.settings.itemElement+'/>').addClass(this.options.itemClass).append(item)}
|
||||||
|
this.trigger('prepared',{content:event.data});return event.data;};Owl.prototype.update=function(){var i=0,n=this._pipe.length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};while(i<n){if(this._invalidated.all||$.grep(this._pipe[i].filter,filter).length>0){this._pipe[i].run(cache);}
|
||||||
|
i++;}
|
||||||
|
this._invalidated={};!this.is('valid')&&this.enter('valid');};Owl.prototype.width=function(dimension){dimension=dimension||Owl.Width.Default;switch(dimension){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin;}};Owl.prototype.refresh=function(){this.enter('refreshing');this.trigger('refresh');this.setup();this.optionsLogic();this.$element.addClass(this.options.refreshClass);this.update();this.$element.removeClass(this.options.refreshClass);this.leave('refreshing');this.trigger('refreshed');};Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer);this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate);};Owl.prototype.onResize=function(){if(!this._items.length){return false;}
|
||||||
|
if(this._width===this.$element.width()){return false;}
|
||||||
|
if(!this.isVisible()){return false;}
|
||||||
|
this.enter('resizing');if(this.trigger('resize').isDefaultPrevented()){this.leave('resizing');return false;}
|
||||||
|
this.invalidate('width');this.refresh();this.leave('resizing');this.trigger('resized');};Owl.prototype.registerEventHandlers=function(){if($.support.transition){this.$stage.on($.support.transition.end+'.owl.core',$.proxy(this.onTransitionEnd,this));}
|
||||||
|
if(this.settings.responsive!==false){this.on(window,'resize',this._handlers.onThrottledResize);}
|
||||||
|
if(this.settings.mouseDrag){this.$element.addClass(this.options.dragClass);this.$stage.on('mousedown.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('dragstart.owl.core selectstart.owl.core',function(){return false});}
|
||||||
|
if(this.settings.touchDrag){this.$stage.on('touchstart.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('touchcancel.owl.core',$.proxy(this.onDragEnd,this));}};Owl.prototype.onDragStart=function(event){var stage=null;if(event.which===3){return;}
|
||||||
|
if($.support.transform){stage=this.$stage.css('transform').replace(/.*\(|\)| /g,'').split(',');stage={x:stage[stage.length===16?12:4],y:stage[stage.length===16?13:5]};}else{stage=this.$stage.position();stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top};}
|
||||||
|
if(this.is('animating')){$.support.transform?this.animate(stage.x):this.$stage.stop()
|
||||||
|
this.invalidate('position');}
|
||||||
|
this.$element.toggleClass(this.options.grabClass,event.type==='mousedown');this.speed(0);this._drag.time=new Date().getTime();this._drag.target=$(event.target);this._drag.stage.start=stage;this._drag.stage.current=stage;this._drag.pointer=this.pointer(event);$(document).on('mouseup.owl.core touchend.owl.core',$.proxy(this.onDragEnd,this));$(document).one('mousemove.owl.core touchmove.owl.core',$.proxy(function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on('mousemove.owl.core touchmove.owl.core',$.proxy(this.onDragMove,this));if(Math.abs(delta.x)<Math.abs(delta.y)&&this.is('valid')){return;}
|
||||||
|
event.preventDefault();this.enter('dragging');this.trigger('drag');},this));};Owl.prototype.onDragMove=function(event){var minimum=null,maximum=null,pull=null,delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this.difference(this._drag.stage.start,delta);if(!this.is('dragging')){return;}
|
||||||
|
event.preventDefault();if(this.settings.loop){minimum=this.coordinates(this.minimum());maximum=this.coordinates(this.maximum()+1)-minimum;stage.x=(((stage.x-minimum)%maximum+maximum)%maximum)+minimum;}else{minimum=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum());maximum=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum());pull=this.settings.pullDrag?-1*delta.x/5:0;stage.x=Math.max(Math.min(stage.x,minimum+pull),maximum+pull);}
|
||||||
|
this._drag.stage.current=stage;this.animate(stage.x);};Owl.prototype.onDragEnd=function(event){var delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this._drag.stage.current,direction=delta.x>0^this.settings.rtl?'left':'right';$(document).off('.owl.core');this.$element.removeClass(this.options.grabClass);if(delta.x!==0&&this.is('dragging')||!this.is('valid')){this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed);this.current(this.closest(stage.x,delta.x!==0?direction:this._drag.direction));this.invalidate('position');this.update();this._drag.direction=direction;if(Math.abs(delta.x)>3||new Date().getTime()-this._drag.time>300){this._drag.target.one('click.owl.core',function(){return false;});}}
|
||||||
|
if(!this.is('dragging')){return;}
|
||||||
|
this.leave('dragging');this.trigger('dragged');};Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();if(!this.settings.freeDrag){$.each(coordinates,$.proxy(function(index,value){if(direction==='left'&&coordinate>value-pull&&coordinate<value+pull){position=index;}else if(direction==='right'&&coordinate>value-width-pull&&coordinate<value-width+pull){position=index+1;}else if(this.op(coordinate,'<',value)&&this.op(coordinate,'>',coordinates[index+1]!==undefined?coordinates[index+1]:value-width)){position=direction==='left'?index+1:index;}
|
||||||
|
return position===-1;},this));}
|
||||||
|
if(!this.settings.loop){if(this.op(coordinate,'>',coordinates[this.minimum()])){position=coordinate=this.minimum();}else if(this.op(coordinate,'<',coordinates[this.maximum()])){position=coordinate=this.maximum();}}
|
||||||
|
return position;};Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is('animating')&&this.onTransitionEnd();if(animate){this.enter('animating');this.trigger('translate');}
|
||||||
|
if($.support.transform3d&&$.support.transition){this.$stage.css({transform:'translate3d('+coordinate+'px,0px,0px)',transition:(this.speed()/1000)+'s'+(this.settings.slideTransition?' '+this.settings.slideTransition:'')});}else if(animate){this.$stage.animate({left:coordinate+'px'},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this));}else{this.$stage.css({left:coordinate+'px'});}};Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0;};Owl.prototype.current=function(position){if(position===undefined){return this._current;}
|
||||||
|
if(this._items.length===0){return undefined;}
|
||||||
|
position=this.normalize(position);if(this._current!==position){var event=this.trigger('change',{property:{name:'position',value:position}});if(event.data!==undefined){position=this.normalize(event.data);}
|
||||||
|
this._current=position;this.invalidate('position');this.trigger('changed',{property:{name:'position',value:this._current}});}
|
||||||
|
return this._current;};Owl.prototype.invalidate=function(part){if($.type(part)==='string'){this._invalidated[part]=true;this.is('valid')&&this.leave('valid');}
|
||||||
|
return $.map(this._invalidated,function(v,i){return i});};Owl.prototype.reset=function(position){position=this.normalize(position);if(position===undefined){return;}
|
||||||
|
this._speed=0;this._current=position;this.suppress(['translate','translated']);this.animate(this.coordinates(position));this.release(['translate','translated']);};Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;if(!this.isNumeric(position)||n<1){position=undefined;}else if(position<0||position>=n+m){position=((position-m/2)%n+n)%n+m/2;}
|
||||||
|
return position;};Owl.prototype.relative=function(position){position-=this._clones.length/2;return this.normalize(position,true);};Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,iterator,reciprocalItemsWidth,elementWidth;if(settings.loop){maximum=this._clones.length/2+this._items.length-1;}else if(settings.autoWidth||settings.merge){iterator=this._items.length;if(iterator){reciprocalItemsWidth=this._items[--iterator].width();elementWidth=this.$element.width();while(iterator--){reciprocalItemsWidth+=this._items[iterator].width()+this.settings.margin;if(reciprocalItemsWidth>elementWidth){break;}}}
|
||||||
|
maximum=iterator+1;}else if(settings.center){maximum=this._items.length-1;}else{maximum=this._items.length-settings.items;}
|
||||||
|
if(relative){maximum-=this._clones.length/2;}
|
||||||
|
return Math.max(maximum,0);};Owl.prototype.minimum=function(relative){return relative?0:this._clones.length/2;};Owl.prototype.items=function(position){if(position===undefined){return this._items.slice();}
|
||||||
|
position=this.normalize(position,true);return this._items[position];};Owl.prototype.mergers=function(position){if(position===undefined){return this._mergers.slice();}
|
||||||
|
position=this.normalize(position,true);return this._mergers[position];};Owl.prototype.clones=function(position){var odd=this._clones.length/2,even=odd+this._items.length,map=function(index){return index%2===0?even+index/2:odd-(index+1)/2};if(position===undefined){return $.map(this._clones,function(v,i){return map(i)});}
|
||||||
|
return $.map(this._clones,function(v,i){return v===position?map(i):null});};Owl.prototype.speed=function(speed){if(speed!==undefined){this._speed=speed;}
|
||||||
|
return this._speed;};Owl.prototype.coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;if(position===undefined){return $.map(this._coordinates,$.proxy(function(coordinate,index){return this.coordinates(index);},this));}
|
||||||
|
if(this.settings.center){if(this.settings.rtl){multiplier=-1;newPosition=position+1;}
|
||||||
|
coordinate=this._coordinates[position];coordinate+=(this.width()-coordinate+(this._coordinates[newPosition]||0))/2*multiplier;}else{coordinate=this._coordinates[newPosition]||0;}
|
||||||
|
coordinate=Math.ceil(coordinate);return coordinate;};Owl.prototype.duration=function(from,to,factor){if(factor===0){return 0;}
|
||||||
|
return Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs((factor||this.settings.smartSpeed));};Owl.prototype.to=function(position,speed){var current=this.current(),revert=null,distance=position-this.relative(current),direction=(distance>0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();if(this.settings.loop){if(!this.settings.rewind&&Math.abs(distance)>items/2){distance+=direction*-1*items;}
|
||||||
|
position=current+distance;revert=((position-minimum)%items+items)%items+minimum;if(revert!==position&&revert-distance<=maximum&&revert-distance>0){current=revert-distance;position=revert;this.reset(current);}}else if(this.settings.rewind){maximum+=1;position=(position%maximum+maximum)%maximum;}else{position=Math.max(minimum,Math.min(maximum,position));}
|
||||||
|
this.speed(this.duration(current,position,speed));this.current(position);if(this.isVisible()){this.update();}};Owl.prototype.next=function(speed){speed=speed||false;this.to(this.relative(this.current())+1,speed);};Owl.prototype.prev=function(speed){speed=speed||false;this.to(this.relative(this.current())-1,speed);};Owl.prototype.onTransitionEnd=function(event){if(event!==undefined){event.stopPropagation();if((event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)){return false;}}
|
||||||
|
this.leave('animating');this.trigger('translated');};Owl.prototype.viewport=function(){var width;if(this.options.responsiveBaseElement!==window){width=$(this.options.responsiveBaseElement).width();}else if(window.innerWidth){width=window.innerWidth;}else if(document.documentElement&&document.documentElement.clientWidth){width=document.documentElement.clientWidth;}else{console.warn('Can not detect viewport width.');}
|
||||||
|
return width;};Owl.prototype.replace=function(content){this.$stage.empty();this._items=[];if(content){content=(content instanceof jQuery)?content:$(content);}
|
||||||
|
if(this.settings.nestedItemSelector){content=content.find('.'+this.settings.nestedItemSelector);}
|
||||||
|
content.filter(function(){return this.nodeType===1;}).each($.proxy(function(index,item){item=this.prepare(item);this.$stage.append(item);this._items.push(item);this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);},this));this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate('items');};Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=position===undefined?this._items.length:this.normalize(position,true);content=content instanceof jQuery?content:$(content);this.trigger('add',{content:content,position:position});content=this.prepare(content);if(this._items.length===0||position===this._items.length){this._items.length===0&&this.$stage.append(content);this._items.length!==0&&this._items[position-1].after(content);this._items.push(content);this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);}else{this._items[position].before(content);this._items.splice(position,0,content);this._mergers.splice(position,0,content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);}
|
||||||
|
this._items[current]&&this.reset(this._items[current].index());this.invalidate('items');this.trigger('added',{content:content,position:position});};Owl.prototype.remove=function(position){position=this.normalize(position,true);if(position===undefined){return;}
|
||||||
|
this.trigger('remove',{content:this._items[position],position:position});this._items[position].remove();this._items.splice(position,1);this._mergers.splice(position,1);this.invalidate('items');this.trigger('removed',{content:null,position:position});};Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy(function(i,element){this.enter('pre-loading');element=$(element);$(new Image()).one('load',$.proxy(function(e){element.attr('src',e.target.src);element.css('opacity',1);this.leave('pre-loading');!this.is('pre-loading')&&!this.is('initializing')&&this.refresh();},this)).attr('src',element.attr('src')||element.attr('data-src')||element.attr('data-src-retina'));},this));};Owl.prototype.destroy=function(){this.$element.off('.owl.core');this.$stage.off('.owl.core');$(document).off('.owl.core');if(this.settings.responsive!==false){window.clearTimeout(this.resizeTimer);this.off(window,'resize',this._handlers.onThrottledResize);}
|
||||||
|
for(var i in this._plugins){this._plugins[i].destroy();}
|
||||||
|
this.$stage.children('.cloned').remove();this.$stage.unwrap();this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$stage.remove();this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr('class',this.$element.attr('class').replace(new RegExp(this.options.responsiveClass+'-\\S+\\s','g'),'')).removeData('owl.carousel');};Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case'<':return rtl?a>b:a<b;case'>':return rtl?a<b:a>b;case'>=':return rtl?a<=b:a>=b;case'<=':return rtl?a>=b:a<=b;default:break;}};Owl.prototype.on=function(element,event,listener,capture){if(element.addEventListener){element.addEventListener(event,listener,capture);}else if(element.attachEvent){element.attachEvent('on'+event,listener);}};Owl.prototype.off=function(element,event,listener,capture){if(element.removeEventListener){element.removeEventListener(event,listener,capture);}else if(element.detachEvent){element.detachEvent('on'+event,listener);}};Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(['on',name,namespace],function(v){return v}).join('-').toLowerCase()),event=$.Event([name,'owl',namespace||'carousel'].join('.').toLowerCase(),$.extend({relatedTarget:this},status,data));if(!this._supress[name]){$.each(this._plugins,function(name,plugin){if(plugin.onTrigger){plugin.onTrigger(event);}});this.register({type:Owl.Type.Event,name:name});this.$element.trigger(event);if(this.settings&&typeof this.settings[handler]==='function'){this.settings[handler].call(this,event);}}
|
||||||
|
return event;};Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){if(this._states.current[name]===undefined){this._states.current[name]=0;}
|
||||||
|
this._states.current[name]++;},this));};Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){this._states.current[name]--;},this));};Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){if(!$.event.special[object.name]){$.event.special[object.name]={};}
|
||||||
|
if(!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){if(_default&&_default.apply&&(!e.namespace||e.namespace.indexOf('owl')===-1)){return _default.apply(this,arguments);}
|
||||||
|
return e.namespace&&e.namespace.indexOf('owl')>-1;};$.event.special[object.name].owl=true;}}else if(object.type===Owl.Type.State){if(!this._states.tags[object.name]){this._states.tags[object.name]=object.tags;}else{this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags);}
|
||||||
|
this._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy(function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i;},this));}};Owl.prototype.suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=true;},this));};Owl.prototype.release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event];},this));};Owl.prototype.pointer=function(event){var result={x:null,y:null};event=event.originalEvent||event||window.event;event=event.touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event;if(event.pageX){result.x=event.pageX;result.y=event.pageY;}else{result.x=event.clientX;result.y=event.clientY;}
|
||||||
|
return result;};Owl.prototype.isNumeric=function(number){return!isNaN(parseFloat(number));};Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y};};$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data('owl.carousel');if(!data){data=new Owl(this,typeof option=='object'&&option);$this.data('owl.carousel',data);$.each(['next','prev','to','destroy','refresh','replace','add','remove'],function(i,event){data.register({type:Owl.Type.Event,name:event});data.$element.on(event+'.owl.carousel.core',$.proxy(function(e){if(e.namespace&&e.relatedTarget!==this){this.suppress([event]);data[event].apply(this,[].slice.call(arguments,1));this.release([event]);}},data));});}
|
||||||
|
if(typeof option=='string'&&option.charAt(0)!=='_'){data[option].apply(data,args);}});};$.fn.owlCarousel.Constructor=Owl;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel;this._interval=null;this._visible=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoRefresh){this.watch();}},this)};this._core.options=$.extend({},AutoRefresh.Defaults,this._core.options);this._core.$element.on(this._handlers);};AutoRefresh.Defaults={autoRefresh:true,autoRefreshInterval:500};AutoRefresh.prototype.watch=function(){if(this._interval){return;}
|
||||||
|
this._visible=this._core.isVisible();this._interval=window.setInterval($.proxy(this.refresh,this),this._core.settings.autoRefreshInterval);};AutoRefresh.prototype.refresh=function(){if(this._core.isVisible()===this._visible){return;}
|
||||||
|
this._visible=!this._visible;this._core.$element.toggleClass('owl-hidden',!this._visible);this._visible&&(this._core.invalidate('width')&&this._core.refresh());};AutoRefresh.prototype.destroy=function(){var handler,property;window.clearInterval(this._interval);for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.AutoRefresh=AutoRefresh;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel;this._loaded=[];this._handlers={'initialized.owl.carousel change.owl.carousel resized.owl.carousel':$.proxy(function(e){if(!e.namespace){return;}
|
||||||
|
if(!this._core.settings||!this._core.settings.lazyLoad){return;}
|
||||||
|
if((e.property&&e.property.name=='position')||e.type=='initialized'){var settings=this._core.settings,n=(settings.center&&Math.ceil(settings.items/2)||settings.items),i=((settings.center&&n*-1)||0),position=(e.property&&e.property.value!==undefined?e.property.value:this._core.current())+i,clones=this._core.clones().length,load=$.proxy(function(i,v){this.load(v)},this);if(settings.lazyLoadEager>0){n+=settings.lazyLoadEager;if(settings.loop){position-=settings.lazyLoadEager;n++;}}
|
||||||
|
while(i++<n){this.load(clones/2+this._core.relative(position));clones&&$.each(this._core.clones(this._core.relative(position)),load);position++;}}},this)};this._core.options=$.extend({},Lazy.Defaults,this._core.options);this._core.$element.on(this._handlers);};Lazy.Defaults={lazyLoad:false,lazyLoadEager:0};Lazy.prototype.load=function(position){var $item=this._core.$stage.children().eq(position),$elements=$item&&$item.find('.owl-lazy');if(!$elements||$.inArray($item.get(0),this._loaded)>-1){return;}
|
||||||
|
$elements.each($.proxy(function(index,element){var $element=$(element),image,url=(window.devicePixelRatio>1&&$element.attr('data-src-retina'))||$element.attr('data-src')||$element.attr('data-srcset');this._core.trigger('load',{element:$element,url:url},'lazy');if($element.is('img')){$element.one('load.owl.lazy',$.proxy(function(){$element.css('opacity',1);this._core.trigger('loaded',{element:$element,url:url},'lazy');},this)).attr('src',url);}else if($element.is('source')){$element.one('load.owl.lazy',$.proxy(function(){this._core.trigger('loaded',{element:$element,url:url},'lazy');},this)).attr('srcset',url);}else{image=new Image();image.onload=$.proxy(function(){$element.css({'background-image':'url("'+url+'")','opacity':'1'});this._core.trigger('loaded',{element:$element,url:url},'lazy');},this);image.src=url;}},this));this._loaded.push($item.get(0));};Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this._core.$element.off(handler,this.handlers[handler]);}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carousel;this._previousHeight=null;this._handlers={'initialized.owl.carousel refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight){this.update();}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.property.name==='position'){this.update();}},this),'loaded.owl.lazy':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.element.closest('.'+this._core.settings.itemClass).index()===this._core.current()){this.update();}},this)};this._core.options=$.extend({},AutoHeight.Defaults,this._core.options);this._core.$element.on(this._handlers);this._intervalId=null;var refThis=this;$(window).on('load',function(){if(refThis._core.settings.autoHeight){refThis.update();}});$(window).resize(function(){if(refThis._core.settings.autoHeight){if(refThis._intervalId!=null){clearTimeout(refThis._intervalId);}
|
||||||
|
refThis._intervalId=setTimeout(function(){refThis.update();},250);}});};AutoHeight.Defaults={autoHeight:false,autoHeightClass:'owl-height'};AutoHeight.prototype.update=function(){var start=this._core._current,end=start+this._core.settings.items,lazyLoadEnabled=this._core.settings.lazyLoad,visible=this._core.$stage.children().toArray().slice(start,end),heights=[],maxheight=0;$.each(visible,function(index,item){heights.push($(item).height());});maxheight=Math.max.apply(null,heights);if(maxheight<=1&&lazyLoadEnabled&&this._previousHeight){maxheight=this._previousHeight;}
|
||||||
|
this._previousHeight=maxheight;this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass);};AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!=='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Video=function(carousel){this._core=carousel;this._videos={};this._playing=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace){this._core.register({type:'state',name:'playing',tags:['interacting']});}},this),'resize.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.video&&this.isInFullScreen()){e.preventDefault();}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.is('resizing')){this._core.$stage.find('.cloned .owl-video-frame').remove();}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'&&this._playing){this.stop();}},this),'prepared.owl.carousel':$.proxy(function(e){if(!e.namespace){return;}
|
||||||
|
var $element=$(e.content).find('.owl-video');if($element.length){$element.css('display','none');this.fetch($element,$(e.content));}},this)};this._core.options=$.extend({},Video.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on('click.owl.video','.owl-video-play-icon',$.proxy(function(e){this.play(e);},this));};Video.Defaults={video:false,videoHeight:false,videoWidth:false};Video.prototype.fetch=function(target,item){var type=(function(){if(target.attr('data-vimeo-id')){return'vimeo';}else if(target.attr('data-vzaar-id')){return'vzaar'}else{return'youtube';}})(),id=target.attr('data-vimeo-id')||target.attr('data-youtube-id')||target.attr('data-vzaar-id'),width=target.attr('data-width')||this._core.settings.videoWidth,height=target.attr('data-height')||this._core.settings.videoHeight,url=target.attr('href');if(url){id=url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);if(id[3].indexOf('youtu')>-1){type='youtube';}else if(id[3].indexOf('vimeo')>-1){type='vimeo';}else if(id[3].indexOf('vzaar')>-1){type='vzaar';}else{throw new Error('Video URL not supported.');}
|
||||||
|
id=id[6];}else{throw new Error('Missing video URL.');}
|
||||||
|
this._videos[url]={type:type,id:id,width:width,height:height};item.attr('data-video',url);this.thumbnail(target,this._videos[url]);};Video.prototype.thumbnail=function(target,video){var tnLink,icon,path,dimensions=video.width&&video.height?'width:'+video.width+'px;height:'+video.height+'px;':'',customTn=target.find('img'),srcType='src',lazyClass='',settings=this._core.settings,create=function(path){icon='<div class="owl-video-play-icon"></div>';if(settings.lazyLoad){tnLink=$('<div/>',{"class":'owl-video-tn '+lazyClass,"srcType":path});}else{tnLink=$('<div/>',{"class":"owl-video-tn","style":'opacity:1;background-image:url('+path+')'});}
|
||||||
|
target.after(tnLink);target.after(icon);};target.wrap($('<div/>',{"class":"owl-video-wrapper","style":dimensions}));if(this._core.settings.lazyLoad){srcType='data-src';lazyClass='owl-lazy';}
|
||||||
|
if(customTn.length){create(customTn.attr(srcType));customTn.remove();return false;}
|
||||||
|
if(video.type==='youtube'){path="//img.youtube.com/vi/"+video.id+"/hqdefault.jpg";create(path);}else if(video.type==='vimeo'){$.ajax({type:'GET',url:'//vimeo.com/api/v2/video/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data[0].thumbnail_large;create(path);}});}else if(video.type==='vzaar'){$.ajax({type:'GET',url:'//vzaar.com/api/videos/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data.framegrab_url;create(path);}});}};Video.prototype.stop=function(){this._core.trigger('stop',null,'video');this._playing.find('.owl-video-frame').remove();this._playing.removeClass('owl-video-playing');this._playing=null;this._core.leave('playing');this._core.trigger('stopped',null,'video');};Video.prototype.play=function(event){var target=$(event.target),item=target.closest('.'+this._core.settings.itemClass),video=this._videos[item.attr('data-video')],width=video.width||'100%',height=video.height||this._core.$stage.height(),html,iframe;if(this._playing){return;}
|
||||||
|
this._core.enter('playing');this._core.trigger('play',null,'video');item=this._core.items(this._core.relative(item.index()));this._core.reset(item.index());html=$('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>');html.attr('height',height);html.attr('width',width);if(video.type==='youtube'){html.attr('src','//www.youtube.com/embed/'+video.id+'?autoplay=1&rel=0&v='+video.id);}else if(video.type==='vimeo'){html.attr('src','//player.vimeo.com/video/'+video.id+'?autoplay=1');}else if(video.type==='vzaar'){html.attr('src','//view.vzaar.com/'+video.id+'/player?autoplay=true');}
|
||||||
|
iframe=$(html).wrap('<div class="owl-video-frame" />').insertAfter(item.find('.owl-video'));this._playing=item.addClass('owl-video-playing');};Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass('owl-video-frame');};Video.prototype.destroy=function(){var handler,property;this._core.$element.off('click.owl.video');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Video=Video;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Animate=function(scope){this.core=scope;this.core.options=$.extend({},Animate.Defaults,this.core.options);this.swapping=true;this.previous=undefined;this.next=undefined;this.handlers={'change.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.previous=this.core.current();this.next=e.property.value;}},this),'drag.owl.carousel dragged.owl.carousel translated.owl.carousel':$.proxy(function(e){if(e.namespace){this.swapping=e.type=='translated';}},this),'translate.owl.carousel':$.proxy(function(e){if(e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)){this.swap();}},this)};this.core.$element.on(this.handlers);};Animate.Defaults={animateOut:false,animateIn:false};Animate.prototype.swap=function(){if(this.core.settings.items!==1){return;}
|
||||||
|
if(!$.support.animation||!$.support.transition){return;}
|
||||||
|
this.core.speed(0);var left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;if(this.core.current()===this.previous){return;}
|
||||||
|
if(outgoing){left=this.core.coordinates(this.previous)-this.core.coordinates(this.next);previous.one($.support.animation.end,clear).css({'left':left+'px'}).addClass('animated owl-animated-out').addClass(outgoing);}
|
||||||
|
if(incoming){next.one($.support.animation.end,clear).addClass('animated owl-animated-in').addClass(incoming);}};Animate.prototype.clear=function(e){$(e.target).css({'left':''}).removeClass('animated owl-animated-out owl-animated-in').removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.onTransitionEnd();};Animate.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this.core.$element.off(handler,this.handlers[handler]);}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Animate=Animate;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel;this._call=null;this._time=0;this._timeout=0;this._paused=true;this._handlers={'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='settings'){if(this._core.settings.autoplay){this.play();}else{this.stop();}}else if(e.namespace&&e.property.name==='position'&&this._paused){this._time=0;}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoplay){this.play();}},this),'play.owl.autoplay':$.proxy(function(e,t,s){if(e.namespace){this.play(t,s);}},this),'stop.owl.autoplay':$.proxy(function(e){if(e.namespace){this.stop();}},this),'mouseover.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause();}},this),'mouseleave.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.play();}},this),'touchstart.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause();}},this),'touchend.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause){this.play();}},this)};this._core.$element.on(this._handlers);this._core.options=$.extend({},Autoplay.Defaults,this._core.options);};Autoplay.Defaults={autoplay:false,autoplayTimeout:5000,autoplayHoverPause:false,autoplaySpeed:false};Autoplay.prototype._next=function(speed){this._call=window.setTimeout($.proxy(this._next,this,speed),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read());if(this._core.is('interacting')||document.hidden){return;}
|
||||||
|
this._core.next(speed||this._core.settings.autoplaySpeed);}
|
||||||
|
Autoplay.prototype.read=function(){return new Date().getTime()-this._time;};Autoplay.prototype.play=function(timeout,speed){var elapsed;if(!this._core.is('rotating')){this._core.enter('rotating');}
|
||||||
|
timeout=timeout||this._core.settings.autoplayTimeout;elapsed=Math.min(this._time%(this._timeout||timeout),timeout);if(this._paused){this._time=this.read();this._paused=false;}else{window.clearTimeout(this._call);}
|
||||||
|
this._time+=this.read()%timeout-elapsed;this._timeout=timeout;this._call=window.setTimeout($.proxy(this._next,this,speed),timeout-elapsed);};Autoplay.prototype.stop=function(){if(this._core.is('rotating')){this._time=0;this._paused=true;window.clearTimeout(this._call);this._core.leave('rotating');}};Autoplay.prototype.pause=function(){if(this._core.is('rotating')&&!this._paused){this._time=this.read();this._paused=true;window.clearTimeout(this._call);}};Autoplay.prototype.destroy=function(){var handler,property;this.stop();for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){'use strict';var Navigation=function(carousel){this._core=carousel;this._initialized=false;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={'prepared.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.push('<div class="'+this._core.settings.dotClass+'">'+$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot')+'</div>');}},this),'added.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,0,this._templates.pop());}},this),'remove.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,1);}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.draw();}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&!this._initialized){this._core.trigger('initialize',null,'navigation');this.initialize();this.update();this.draw();this._initialized=true;this._core.trigger('initialized',null,'navigation');}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._initialized){this._core.trigger('refresh',null,'navigation');this.update();this.draw();this._core.trigger('refreshed',null,'navigation');}},this)};this._core.options=$.extend({},Navigation.Defaults,this._core.options);this.$element.on(this._handlers);};Navigation.Defaults={nav:false,navText:['<span aria-label="'+'Previous'+'">‹</span>','<span aria-label="'+'Next'+'">›</span>'],navSpeed:false,navElement:'button type="button" role="presentation"',navContainer:false,navContainerClass:'owl-nav',navClass:['owl-prev','owl-next'],slideBy:1,dotClass:'owl-dot',dotsClass:'owl-dots',dots:true,dotsEach:false,dotsData:false,dotsSpeed:false,dotsContainer:false};Navigation.prototype.initialize=function(){var override,settings=this._core.settings;this._controls.$relative=(settings.navContainer?$(settings.navContainer):$('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');this._controls.$previous=$('<'+settings.navElement+'>').addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on('click',$.proxy(function(e){this.prev(settings.navSpeed);},this));this._controls.$next=$('<'+settings.navElement+'>').addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on('click',$.proxy(function(e){this.next(settings.navSpeed);},this));if(!settings.dotsData){this._templates=[$('<button role="button">').addClass(settings.dotClass).append($('<span>')).prop('outerHTML')];}
|
||||||
|
this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');this._controls.$absolute.on('click','button',$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault();this.to(index,settings.dotsSpeed);},this));for(override in this._overrides){this._core[override]=$.proxy(this[override],this);}};Navigation.prototype.destroy=function(){var handler,control,property,override,settings;settings=this._core.settings;for(handler in this._handlers){this.$element.off(handler,this._handlers[handler]);}
|
||||||
|
for(control in this._controls){if(control==='$relative'&&settings.navContainer){this._controls[control].html('');}else{this._controls[control].remove();}}
|
||||||
|
for(override in this.overides){this._core[override]=this._overrides[override];}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(true),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;if(settings.slideBy!=='page'){settings.slideBy=Math.min(settings.slideBy,settings.items);}
|
||||||
|
if(settings.dots||settings.slideBy=='page'){this._pages=[];for(i=lower,j=0,k=0;i<upper;i++){if(j>=size||j===0){this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1});if(Math.min(maximum,i-lower)===maximum){break;}
|
||||||
|
j=0,++k;}
|
||||||
|
j+=this._core.mergers(this._core.relative(i));}}};Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass('disabled',!settings.nav||disabled);if(settings.nav){this._controls.$previous.toggleClass('disabled',!loop&&index<=this._core.minimum(true));this._controls.$next.toggleClass('disabled',!loop&&index>=this._core.maximum(true));}
|
||||||
|
this._controls.$absolute.toggleClass('disabled',!settings.dots||disabled);if(settings.dots){difference=this._pages.length-this._controls.$absolute.children().length;if(settings.dotsData&&difference!==0){this._controls.$absolute.html(this._templates.join(''));}else if(difference>0){this._controls.$absolute.append(new Array(difference+1).join(this._templates[0]));}else if(difference<0){this._controls.$absolute.children().slice(difference).remove();}
|
||||||
|
this._controls.$absolute.find('.active').removeClass('active');this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass('active');}};Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)};};Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy(function(page,index){return page.start<=current&&page.end>=current;},this)).pop();};Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;if(settings.slideBy=='page'){position=$.inArray(this.current(),this._pages);length=this._pages.length;successor?++position:--position;position=this._pages[((position%length)+length)%length].start;}else{position=this._core.relative(this._core.current());length=this._core.items().length;successor?position+=settings.slideBy:position-=settings.slideBy;}
|
||||||
|
return position;};Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(true),speed);};Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(false),speed);};Navigation.prototype.to=function(position,speed,standard){var length;if(!standard&&this._pages.length){length=this._pages.length;$.proxy(this._overrides.to,this._core)(this._pages[((position%length)+length)%length].start,speed);}else{$.proxy(this._overrides.to,this._core)(position,speed);}};$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){'use strict';var Hash=function(carousel){this._core=carousel;this._hashes={};this.$element=this._core.$element;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.startPosition==='URLHash'){$(window).trigger('hashchange.owl.navigation');}},this),'prepared.owl.carousel':$.proxy(function(e){if(e.namespace){var hash=$(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');if(!hash){return;}
|
||||||
|
this._hashes[hash]=e.content;}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,function(item,hash){return item===current?hash:null;}).join();if(!hash||window.location.hash.slice(1)===hash){return;}
|
||||||
|
window.location.hash=hash;}},this)};this._core.options=$.extend({},Hash.Defaults,this._core.options);this.$element.on(this._handlers);$(window).on('hashchange.owl.navigation',$.proxy(function(e){var hash=window.location.hash.substring(1),items=this._core.$stage.children(),position=this._hashes[hash]&&items.index(this._hashes[hash]);if(position===undefined||position===this._core.current()){return;}
|
||||||
|
this._core.to(this._core.relative(position),false,true);},this));};Hash.Defaults={URLhashListener:false};Hash.prototype.destroy=function(){var handler,property;$(window).off('hashchange.owl.navigation');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler]);}
|
||||||
|
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins.Hash=Hash;})(window.Zepto||window.jQuery,window,document);;(function($,window,document,undefined){var style=$('<support>').get(0).style,prefixes='Webkit Moz O ms'.split(' '),events={transition:{end:{WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd',transition:'transitionend'}},animation:{end:{WebkitAnimation:'webkitAnimationEnd',MozAnimation:'animationend',OAnimation:'oAnimationEnd',animation:'animationend'}}},tests={csstransforms:function(){return!!test('transform');},csstransforms3d:function(){return!!test('perspective');},csstransitions:function(){return!!test('transition');},cssanimations:function(){return!!test('animation');}};function test(property,prefixed){var result=false,upper=property.charAt(0).toUpperCase()+property.slice(1);$.each((property+' '+prefixes.join(upper+' ')+upper).split(' '),function(i,property){if(style[property]!==undefined){result=prefixed?property:true;return false;}});return result;}
|
||||||
|
function prefixed(property){return test(property,true);}
|
||||||
|
if(tests.csstransitions()){$.support.transition=new String(prefixed('transition'))
|
||||||
|
$.support.transition.end=events.transition.end[$.support.transition];}
|
||||||
|
if(tests.cssanimations()){$.support.animation=new String(prefixed('animation'))
|
||||||
|
$.support.animation.end=events.animation.end[$.support.animation];}
|
||||||
|
if(tests.csstransforms()){$.support.transform=new String(prefixed('transform'));$.support.transform3d=tests.csstransforms3d();}})(window.Zepto||window.jQuery,window,document);
|
||||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
@@ -0,0 +1,11 @@
|
|||||||
|
.menu-item img {
|
||||||
|
width: 30px !important;
|
||||||
|
height: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.container {
|
||||||
|
width: 1290px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
.wpcf7 .screen-reader-response {
|
||||||
|
position: absolute;
|
||||||
|
overflow: hidden;
|
||||||
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
|
height: 1px;
|
||||||
|
width: 1px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 form .wpcf7-response-output {
|
||||||
|
margin: 2em 0.5em 1em;
|
||||||
|
padding: 0.2em 1em;
|
||||||
|
border: 2px solid #00a0d2; /* Blue */
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 form.init .wpcf7-response-output,
|
||||||
|
.wpcf7 form.resetting .wpcf7-response-output,
|
||||||
|
.wpcf7 form.submitting .wpcf7-response-output {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 form.sent .wpcf7-response-output {
|
||||||
|
border-color: #46b450; /* Green */
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 form.failed .wpcf7-response-output,
|
||||||
|
.wpcf7 form.aborted .wpcf7-response-output {
|
||||||
|
border-color: #dc3232; /* Red */
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 form.spam .wpcf7-response-output {
|
||||||
|
border-color: #f56e28; /* Orange */
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 form.invalid .wpcf7-response-output,
|
||||||
|
.wpcf7 form.unaccepted .wpcf7-response-output {
|
||||||
|
border-color: #ffb900; /* Yellow */
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7-form-control-wrap {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7-not-valid-tip {
|
||||||
|
color: #dc3232; /* Red */
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: normal;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.use-floating-validation-tip .wpcf7-not-valid-tip {
|
||||||
|
position: relative;
|
||||||
|
top: -2ex;
|
||||||
|
left: 1em;
|
||||||
|
z-index: 100;
|
||||||
|
border: 1px solid #dc3232;
|
||||||
|
background: #fff;
|
||||||
|
padding: .2em .8em;
|
||||||
|
width: 24em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7-list-item {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 0 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7-list-item-label::before,
|
||||||
|
.wpcf7-list-item-label::after {
|
||||||
|
content: " ";
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 .ajax-loader {
|
||||||
|
visibility: hidden;
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #23282d; /* Dark Gray 800 */
|
||||||
|
opacity: 0.75;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 24px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 form.submitting .ajax-loader {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 .ajax-loader::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
background-color: #fbfbfc; /* Light Gray 100 */
|
||||||
|
top: 4px;
|
||||||
|
left: 4px;
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 100%;
|
||||||
|
transform-origin: 8px 8px;
|
||||||
|
animation-name: spin;
|
||||||
|
animation-duration: 1000ms;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.wpcf7 .ajax-loader::before {
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 2000ms;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
from {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 input[type="file"] {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 input[type="file"]:disabled {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 .wpcf7-submit:disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wpcf7 input[type="url"],
|
||||||
|
.wpcf7 input[type="email"],
|
||||||
|
.wpcf7 input[type="tel"] {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
window.WpStatisticsUserTracker||(window.WpStatisticsUserTracker={userOnlineIntervalId:null,lastUrl:window.location.href,originalPushState:history.pushState,originalReplaceState:history.replaceState,checkTime:WP_Statistics_Tracker_Object.jsCheckTime,isDndActive:parseInt(navigator.msDoNotTrack||window.doNotTrack||navigator.doNotTrack,10),hasTrackerInitializedOnce:!1,hitRequestSuccessful:!0,init:function(){this.hasTrackerInitializedOnce||(this.hasTrackerInitializedOnce=!0,WP_Statistics_Tracker_Object.option.isPreview)||("undefined"==typeof WP_Statistics_Tracker_Object?console.error("WP Statistics: Variable WP_Statistics_Tracker_Object not found. Ensure /wp-content/plugins/wp-statistics/assets/js/tracker.js is either excluded from cache settings or not dequeued by any plugin. Clear your cache if necessary."):(this.checkHitRequestConditions(),WP_Statistics_Tracker_Object.option.userOnline&&this.keepUserOnline()),this.trackUrlChange())},base64Encode:function(t){t=(new TextEncoder).encode(t);return btoa(String.fromCharCode.apply(null,t))},getPathAndQueryString:function(){var t=window.location.pathname,e=window.location.search;return this.base64Encode(t+e)},getReferred:function(){return this.base64Encode(document.referrer)},checkHitRequestConditions:function(){!WP_Statistics_Tracker_Object.option.dntEnabled||1!==this.isDndActive?this.sendHitRequest():console.log("WP Statistics: Do Not Track (DNT) is enabled. Hit request not sent.")},sendHitRequest:async function(){try{var t=this.getRequestUrl("hit"),e=new URLSearchParams({...WP_Statistics_Tracker_Object.hitParams,referred:this.getReferred(),page_uri:this.getPathAndQueryString()}).toString();const i=new XMLHttpRequest;i.open("POST",t,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.onreadystatechange=function(){var t;4===i.readyState&&(200===i.status?(t=JSON.parse(i.responseText),this.hitRequestSuccessful=!1!==t.status):(this.hitRequestSuccessful=!1,console.warn("WP Statistics: Hit request failed with status "+i.status)))}.bind(this)}catch(t){this.hitRequestSuccessful=!1,console.error("WP Statistics: Error sending hit request:",t)}},sendOnlineUserRequest:async function(){if(this.hitRequestSuccessful)try{var t=this.getRequestUrl("online"),e=new URLSearchParams({...WP_Statistics_Tracker_Object.onlineParams,referred:this.getReferred(),page_uri:this.getPathAndQueryString()}).toString(),i=new XMLHttpRequest;i.open("POST",t,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e)}catch(t){console.error("WP Statistics: Error sending online user request:",t)}},keepUserOnline:function(){let e;WP_Statistics_Tracker_Object.option.userOnline&&(null!==this.userOnlineIntervalId&&(clearInterval(this.userOnlineIntervalId),this.userOnlineIntervalId=null),this.userOnlineIntervalId=setInterval(function(){(!WP_Statistics_Tracker_Object.option.dntEnabled||WP_Statistics_Tracker_Object.option.dntEnabled&&1!==this.isDndActive)&&this.hitRequestSuccessful&&this.sendOnlineUserRequest()}.bind(this),this.checkTime),["click","keypress","scroll","DOMContentLoaded"].forEach(t=>{window.addEventListener(t,()=>{clearTimeout(e),e=setTimeout(()=>{null!==this.userOnlineIntervalId&&(clearInterval(this.userOnlineIntervalId),this.userOnlineIntervalId=null)},18e5)})}))},getRequestUrl:function(t){let e=WP_Statistics_Tracker_Object.requestUrl+"/";return WP_Statistics_Tracker_Object.option.bypassAdBlockers?e=WP_Statistics_Tracker_Object.ajaxUrl:"hit"===t?e+=WP_Statistics_Tracker_Object.hitParams.endpoint:"online"===t&&(e+=WP_Statistics_Tracker_Object.onlineParams.endpoint),e},updateTrackerObject:function(){var t=document.getElementById("wp-statistics-tracker-js-extra");if(t)try{var e=t.innerHTML.match(/var\s+WP_Statistics_Tracker_Object\s*=\s*(\{[\s\S]*?\});/);e&&e[1]&&(WP_Statistics_Tracker_Object=JSON.parse(e[1]))}catch(t){console.error("WP Statistics: Error parsing WP_Statistics_Tracker_Object",t)}},trackUrlChange:function(){const t=this;window.removeEventListener("popstate",t.handleUrlChange),history.pushState=function(){t.originalPushState.apply(history,arguments),t.handleUrlChange()},history.replaceState=function(){t.originalReplaceState.apply(history,arguments),t.handleUrlChange()},window.addEventListener("popstate",function(){t.handleUrlChange()})},handleUrlChange:function(){window.location.href!==this.lastUrl&&(this.lastUrl=window.location.href,this.updateTrackerObject(),this.hasTrackerInitializedOnce=!1,this.init())}});
|
||||||
|
window.WpStatisticsEventTracker||(window.WpStatisticsEventTracker={hasEventsInitializedOnce:!1,downloadTracker:!1,linkTracker:!1,init:async function(){this.hasEventsInitializedOnce||WP_Statistics_Tracker_Object.isLegacyEventLoaded||(this.hasEventsInitializedOnce=!0,"undefined"!=typeof WP_Statistics_DataPlus_Event_Object&&(this.downloadTracker=WP_Statistics_DataPlus_Event_Object.options.downloadTracker,this.linkTracker=WP_Statistics_DataPlus_Event_Object.options.linkTracker,this.downloadTracker||this.linkTracker)&&this.captureEvent(),window.wp_statistics_event=this.handleCustomEvent.bind(this),"undefined"!=typeof WP_Statistics_Marketing_Event_Object&&this.captureCustomClickEvents())},handleCustomEvent:function(t,e={}){var n=WP_Statistics_Tracker_Object.customEventAjaxUrl,t=(e.timestamp=Date.now(),e.resource_id||(e.resource_id=WP_Statistics_Tracker_Object.hitParams.source_id),{event_name:t,event_data:JSON.stringify(e)});this.sendEventData(t,n)},captureCustomClickEvents:function(){WP_Statistics_Marketing_Event_Object.events.clicks.forEach(e=>{!e.selector||null!=e.scope&&e.scope!=WP_Statistics_Tracker_Object.hitParams.source_id||document.querySelectorAll(""+e.selector).forEach(t=>{t.addEventListener("click",t=>{t={text:t.target.textContent,id:t.currentTarget.id,class:t.currentTarget.className,target:t.currentTarget.href};this.handleCustomEvent(e.name,t)})})})},captureEvent:function(){document.querySelectorAll("a").forEach(t=>{t.addEventListener("click",async t=>this.handleEvent(t)),t.addEventListener("mouseup",async t=>this.handleEvent(t))})},handleEvent:async function(t){var e;"mouseup"==t.type&&1!=t.button||(t=this.prepareEventData(t))&&(e=WP_Statistics_DataPlus_Event_Object.eventAjaxUrl,await this.sendEventData(t,e))},prepareEventData:function(t){let e={en:t.type,et:Date.now(),eid:t.currentTarget.id,ec:t.currentTarget.className,ev:"",mb:t.button,fn:"",fx:"",m:"",tu:"",pid:""};return"A"===t.currentTarget.tagName&&(e=this.extractLinkData(t,e)),"undefined"!=typeof WP_Statistics_Tracker_Object&&(e.pid=WP_Statistics_Tracker_Object.hitParams.source_id),e},extractLinkData(t,e){var n=t.target.textContent,a=t.currentTarget.href,i=WP_Statistics_DataPlus_Event_Object.fileExtensions,i=new RegExp("\\.("+i.join("|")+")$","i"),n=(n&&(e.ev=n),a&&(e.tu=a),t.currentTarget.classList.contains("woocommerce-MyAccount-downloads-file")||a.includes("download_file="));if(e.wcdl=n,(i.test(a)||n)&&(t=new URL(a).pathname,e.df=n?a.substring(a.lastIndexOf("download_file=")+14).split("&").shift():"",e.dk=n?a.substring(a.lastIndexOf("key=")+4).split("&").shift():"",e.en="file_download",e.fn=n?e.df:t.substring(t.lastIndexOf("/")+1).split(".").shift(),e.fx=n?e.df:t.split(".").pop()),"click"===e.en){if(!this.linkTracker)return!1;if(a.toLowerCase().includes(window.location.host))return!1}return!("file_download"===e.en&&!this.downloadTracker)&&e},sendEventData:async function(t,e){var n=new URLSearchParams;for(const a in t)n.append(a,t[a]);if(!e)throw new Error("AJAX URL is not defined.");try{(await fetch(e,{method:"POST",keepalive:!0,body:n})).ok}catch(t){console.error("Error:",t)}}});
|
||||||
|
function handleWpConsentApiIntegration(){const e=WP_Statistics_Tracker_Object.option.consentIntegration.status.consent_level,s=WP_Statistics_Tracker_Object.option.consentIntegration.status.track_anonymously;(s||"disabled"==e||wp_has_consent(e))&&(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()),document.addEventListener("wp_listen_for_consent_change",function(t){var n,i=t.detail;for(n in i)i.hasOwnProperty(n)&&n===e&&"allow"===i[n]&&(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init(),s)&&WpStatisticsUserTracker.checkHitRequestConditions()})}function handleRealCookieBannerIntegration(){(window.consentApi?.consent("wp-statistics")||Promise.resolve()).then(()=>{WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()}).catch(()=>{var t=window.consentApi?.consentSync("wp-statistics-with-data-processing");null!=t.cookie&&t.cookieOptIn?(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()):console.log("WP Statistics: Real Cookie Banner consent is not given to track visitor information.")})}document.addEventListener("DOMContentLoaded",function(){var t=WP_Statistics_Tracker_Object.option.consentIntegration.name;t&&"borlabs_cookie"!==t||(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()),"wp_consent_api"===t&&handleWpConsentApiIntegration(),"real_cookie_banner"===t&&handleRealCookieBannerIntegration()});
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,o=t.document,c=(o.documentElement,t.setTimeout),r=t.clearTimeout,u=i._N2;t.requestAnimationFrame,Object.assign,navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){o.body},"complete"===o.readyState||"interactive"===o.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==o.addEventListener?Document.prototype.addEventListener.call(o,"DOMContentLoaded",n):o.addEventListener("DOMContentLoaded",n),u.d("SmartSliderWidgetArrowImage","SmartSliderWidget",(function(){function t(t,i,n){this.J=n,u.SmartSliderWidget.prototype.constructor.call(this,i,t,"#"+i.elementID+"-arrow-"+t)}return t.prototype=Object.create(u.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){var t,i,n,o;t=this.widget,i="click",n=function(e){e.stopPropagation(),this.slider[this.J]()}.bind(this),o=o||{},t.addEventListener(i,n,o)},function(i){this.key="arrow",this.previous=new t("previous",i,"previousWithDirection"),this.next=new t("next",i,"nextWithDirection")}}))}(window);
|
||||||
@@ -0,0 +1,225 @@
|
|||||||
|
(function () {
|
||||||
|
|
||||||
|
window.wfi18n = {
|
||||||
|
__: function(text) {
|
||||||
|
if (window.WordfenceI18nStrings && text in window.WordfenceI18nStrings) {
|
||||||
|
return window.WordfenceI18nStrings[text];
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof wp === 'object' && wp.i18n) {
|
||||||
|
window.wfi18n.sprintf = wp.i18n.sprintf;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code has been adapted from WordPress' i18n.js functions and is being used as a polyfill for WordPress
|
||||||
|
* versions before 5.0.
|
||||||
|
*/
|
||||||
|
var re = {
|
||||||
|
not_string: /[^s]/,
|
||||||
|
not_bool: /[^t]/,
|
||||||
|
not_type: /[^T]/,
|
||||||
|
not_primitive: /[^v]/,
|
||||||
|
number: /[diefg]/,
|
||||||
|
numeric_arg: /[bcdiefguxX]/,
|
||||||
|
json: /[j]/,
|
||||||
|
not_json: /[^j]/,
|
||||||
|
text: /^[^\x25]+/,
|
||||||
|
modulo: /^\x25{2}/,
|
||||||
|
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
|
||||||
|
key: /^([a-z_][a-z_\d]*)/i,
|
||||||
|
key_access: /^\.([a-z_][a-z_\d]*)/i,
|
||||||
|
index_access: /^\[(\d+)\]/,
|
||||||
|
sign: /^[+-]/
|
||||||
|
};
|
||||||
|
|
||||||
|
function sprintf(key) {
|
||||||
|
// `arguments` is not an array, but should be fine for this call
|
||||||
|
return sprintf_format(sprintf_parse(key), arguments)
|
||||||
|
}
|
||||||
|
|
||||||
|
function vsprintf(fmt, argv) {
|
||||||
|
return sprintf.apply(null, [fmt].concat(argv || []))
|
||||||
|
}
|
||||||
|
|
||||||
|
function sprintf_format(parse_tree, argv) {
|
||||||
|
var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign
|
||||||
|
for (i = 0; i < tree_length; i++) {
|
||||||
|
if (typeof parse_tree[i] === 'string') {
|
||||||
|
output += parse_tree[i]
|
||||||
|
}
|
||||||
|
else if (typeof parse_tree[i] === 'object') {
|
||||||
|
ph = parse_tree[i] // convenience purposes only
|
||||||
|
if (ph.keys) { // keyword argument
|
||||||
|
arg = argv[cursor]
|
||||||
|
for (k = 0; k < ph.keys.length; k++) {
|
||||||
|
if (arg == undefined) {
|
||||||
|
throw new Error(sprintf('[sprintf] Cannot access property "%s" of undefined value "%s"', ph.keys[k], ph.keys[k-1]))
|
||||||
|
}
|
||||||
|
arg = arg[ph.keys[k]]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (ph.param_no) { // positional argument (explicit)
|
||||||
|
arg = argv[ph.param_no]
|
||||||
|
}
|
||||||
|
else { // positional argument (implicit)
|
||||||
|
arg = argv[cursor++]
|
||||||
|
}
|
||||||
|
|
||||||
|
if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {
|
||||||
|
arg = arg()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {
|
||||||
|
throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))
|
||||||
|
}
|
||||||
|
|
||||||
|
if (re.number.test(ph.type)) {
|
||||||
|
is_positive = arg >= 0
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (ph.type) {
|
||||||
|
case 'b':
|
||||||
|
arg = parseInt(arg, 10).toString(2)
|
||||||
|
break
|
||||||
|
case 'c':
|
||||||
|
arg = String.fromCharCode(parseInt(arg, 10))
|
||||||
|
break
|
||||||
|
case 'd':
|
||||||
|
case 'i':
|
||||||
|
arg = parseInt(arg, 10)
|
||||||
|
break
|
||||||
|
case 'j':
|
||||||
|
arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)
|
||||||
|
break
|
||||||
|
case 'e':
|
||||||
|
arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()
|
||||||
|
break
|
||||||
|
case 'f':
|
||||||
|
arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)
|
||||||
|
break
|
||||||
|
case 'g':
|
||||||
|
arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)
|
||||||
|
break
|
||||||
|
case 'o':
|
||||||
|
arg = (parseInt(arg, 10) >>> 0).toString(8)
|
||||||
|
break
|
||||||
|
case 's':
|
||||||
|
arg = String(arg)
|
||||||
|
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
|
||||||
|
break
|
||||||
|
case 't':
|
||||||
|
arg = String(!!arg)
|
||||||
|
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
|
||||||
|
break
|
||||||
|
case 'T':
|
||||||
|
arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()
|
||||||
|
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
|
||||||
|
break
|
||||||
|
case 'u':
|
||||||
|
arg = parseInt(arg, 10) >>> 0
|
||||||
|
break
|
||||||
|
case 'v':
|
||||||
|
arg = arg.valueOf()
|
||||||
|
arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
|
||||||
|
break
|
||||||
|
case 'x':
|
||||||
|
arg = (parseInt(arg, 10) >>> 0).toString(16)
|
||||||
|
break
|
||||||
|
case 'X':
|
||||||
|
arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if (re.json.test(ph.type)) {
|
||||||
|
output += arg
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (re.number.test(ph.type) && (!is_positive || ph.sign)) {
|
||||||
|
sign = is_positive ? '+' : '-'
|
||||||
|
arg = arg.toString().replace(re.sign, '')
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sign = ''
|
||||||
|
}
|
||||||
|
pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '
|
||||||
|
pad_length = ph.width - (sign + arg).length
|
||||||
|
pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''
|
||||||
|
output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return output
|
||||||
|
}
|
||||||
|
|
||||||
|
var sprintf_cache = Object.create(null)
|
||||||
|
|
||||||
|
function sprintf_parse(fmt) {
|
||||||
|
if (sprintf_cache[fmt]) {
|
||||||
|
return sprintf_cache[fmt]
|
||||||
|
}
|
||||||
|
|
||||||
|
var _fmt = fmt, match, parse_tree = [], arg_names = 0
|
||||||
|
while (_fmt) {
|
||||||
|
if ((match = re.text.exec(_fmt)) !== null) {
|
||||||
|
parse_tree.push(match[0])
|
||||||
|
}
|
||||||
|
else if ((match = re.modulo.exec(_fmt)) !== null) {
|
||||||
|
parse_tree.push('%')
|
||||||
|
}
|
||||||
|
else if ((match = re.placeholder.exec(_fmt)) !== null) {
|
||||||
|
if (match[2]) {
|
||||||
|
arg_names |= 1
|
||||||
|
var field_list = [], replacement_field = match[2], field_match = []
|
||||||
|
if ((field_match = re.key.exec(replacement_field)) !== null) {
|
||||||
|
field_list.push(field_match[1])
|
||||||
|
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
|
||||||
|
if ((field_match = re.key_access.exec(replacement_field)) !== null) {
|
||||||
|
field_list.push(field_match[1])
|
||||||
|
}
|
||||||
|
else if ((field_match = re.index_access.exec(replacement_field)) !== null) {
|
||||||
|
field_list.push(field_match[1])
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw new SyntaxError('[sprintf] failed to parse named argument key')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw new SyntaxError('[sprintf] failed to parse named argument key')
|
||||||
|
}
|
||||||
|
match[2] = field_list
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
arg_names |= 2
|
||||||
|
}
|
||||||
|
if (arg_names === 3) {
|
||||||
|
throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')
|
||||||
|
}
|
||||||
|
|
||||||
|
parse_tree.push(
|
||||||
|
{
|
||||||
|
placeholder: match[0],
|
||||||
|
param_no: match[1],
|
||||||
|
keys: match[2],
|
||||||
|
sign: match[3],
|
||||||
|
pad_char: match[4],
|
||||||
|
align: match[5],
|
||||||
|
width: match[6],
|
||||||
|
precision: match[7],
|
||||||
|
type: match[8]
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw new SyntaxError('[sprintf] unexpected placeholder')
|
||||||
|
}
|
||||||
|
_fmt = _fmt.substring(match[0].length)
|
||||||
|
}
|
||||||
|
return sprintf_cache[fmt] = parse_tree
|
||||||
|
}
|
||||||
|
|
||||||
|
window.wfi18n.sprintf = sprintf;
|
||||||
|
})();
|
||||||
@@ -0,0 +1,169 @@
|
|||||||
|
/*
|
||||||
|
ColorBox Core Style:
|
||||||
|
The following CSS is consistent between example themes and should not be altered.
|
||||||
|
*/
|
||||||
|
#wordfenceBox, #wfboxOverlay, #wfboxWrapper{position:absolute; top:0; left:0; z-index:16777271; overflow:hidden;}
|
||||||
|
#wfboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#wfboxMiddleLeft, #wfboxBottomLeft{clear:left;}
|
||||||
|
#wfboxContent{position:relative;}
|
||||||
|
#wfboxLoadedContent{overflow:auto;}
|
||||||
|
#wfboxTitle{margin:0;}
|
||||||
|
#wfboxLoadingOverlay, #wfboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
|
||||||
|
#wfboxPrevious, #wfboxNext, #wfboxClose, #wfboxSlideshow{cursor:pointer;}
|
||||||
|
.wfboxPhoto{float:left; margin:auto; border:0; display:block;}
|
||||||
|
.wfboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
User Style:
|
||||||
|
Change the following styles to modify the appearance of ColorBox. They are
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#wfboxOverlay{
|
||||||
|
background: #777;
|
||||||
|
background: -webkit-radial-gradient(rgba(120, 120, 120, 0.8), rgba(100, 100, 100, 0.8) 50%, rgba(70, 70, 70, 1));
|
||||||
|
background: -moz-radial-gradient(rgba(120, 120, 120, 0.6), rgba(100, 100, 100, 0.8) 20%, rgba(70, 70, 70, 1));
|
||||||
|
}
|
||||||
|
#wordfenceBox {
|
||||||
|
color: #444;
|
||||||
|
font-family: "Open Sans", sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
#wfboxContent { background:#fff; overflow:hidden; padding: 0 0 8px; margin: 20px;
|
||||||
|
-webkit-border-radius: 3px 3px 2px 2px; -moz-border-radius: 3px 3px 2px 2px; border-radius: 3px 3px 2px 2px; /* border radius */
|
||||||
|
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,.4); -moz-box-shadow: 0 2px 4px rgba(0,0,0,.4); box-shadow: 0 2px 4px rgba(0,0,0,.4); /* box shadow */
|
||||||
|
-webkit-background-clip: padding-box; /* smoother borders with webkit */ }
|
||||||
|
#wfboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#wfboxLoadedContent {
|
||||||
|
/* margin-bottom:28px; */
|
||||||
|
/* MDM added: */ margin: 10px 20px 28px 20px; font-family: Arial; color: #333;
|
||||||
|
-webkit-border-radius: 2px 2px 0 0; -moz-border-radius: 2px 2px 0 0; border-radius: 2px 2px 0 0; /* border radius */
|
||||||
|
}
|
||||||
|
#wfboxTitle{position:absolute; bottom:8px; left:5px; text-align:center; width:100%; color:#949494;}
|
||||||
|
#wfboxCurrent{position:absolute; bottom:8px; left:63px; color:#949494; text-indent: -9999px;}
|
||||||
|
#wfboxSlideshow{position:absolute; bottom:8px; right:35px; color:#0092ef;}
|
||||||
|
#wfboxPrevious{position:absolute; bottom:5px; left:5px; background:url(../images/lightbox-controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||||
|
#wfboxPrevious.hover{background-position:-75px -25px;}
|
||||||
|
#wfboxNext{position:absolute; bottom:5px; left:32px; background:url(../images/lightbox-controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||||
|
#wfboxNext.hover{background-position:-50px -25px;}
|
||||||
|
#wfboxLoadingOverlay{background:url(../images/loading_background.png) no-repeat center center;}
|
||||||
|
#wfboxLoadingGraphic{background:url(../images/loading.gif) no-repeat center center;}
|
||||||
|
#wfboxClose{position:absolute; bottom:5px; right:5px; background:url(../images/lightbox-controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||||
|
#wfboxClose.hover{background-position:-25px -25px;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following fixes a problem where IE7+ replaces a PNG's alpha transparency with a black fill
|
||||||
|
when an alpha filter (opacity change) is set on the element or ancestor element.
|
||||||
|
*/
|
||||||
|
.wfboxIE #wfboxTopLeft,
|
||||||
|
.wfboxIE #wfboxTopCenter,
|
||||||
|
.wfboxIE #wfboxTopRight,
|
||||||
|
.wfboxIE #wfboxBottomLeft,
|
||||||
|
.wfboxIE #wfboxBottomCenter,
|
||||||
|
.wfboxIE #wfboxBottomRight,
|
||||||
|
.wfboxIE #wfboxMiddleLeft,
|
||||||
|
.wfboxIE #wfboxMiddleRight {
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Enforce our styles over any theme styling
|
||||||
|
*/
|
||||||
|
#wordfenceBox, #wordfenceBox:before, #wordfenceBox:after {
|
||||||
|
-webkit-box-sizing: content-box;
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox h1, #wordfenceBox h2, #wordfenceBox h3, #wordfenceBox h4, #wordfenceBox h5, #wordfenceBox h6 {
|
||||||
|
display: block;
|
||||||
|
font-weight: 600
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: .67em 0
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox h2, #wordfenceBox h3 {
|
||||||
|
font-size: 1.3em;
|
||||||
|
margin: 1em 0
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox h1, #wordfenceBox h2, #wordfenceBox h3 {
|
||||||
|
color: #23282d
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox p {
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox .textright {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox .button, #wordfenceBox .button-primary, #wordfenceBox .button-secondary {
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 26px;
|
||||||
|
height: 28px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 10px 1px;
|
||||||
|
cursor: pointer;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
white-space: nowrap;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox .button, #wordfenceBox .button-secondary {
|
||||||
|
color: #555;
|
||||||
|
border-color: #ccc;
|
||||||
|
background: #f7f7f7;
|
||||||
|
-webkit-box-shadow: 0 1px 0 #ccc;
|
||||||
|
box-shadow: 0 1px 0 #ccc;
|
||||||
|
vertical-align: top
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox p .button {
|
||||||
|
vertical-align: baseline;
|
||||||
|
font-family: Arial, san-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox p code {
|
||||||
|
padding: 3px 5px 2px;
|
||||||
|
margin: 0 1px;
|
||||||
|
background: #eaeaea;
|
||||||
|
background: rgba(0,0,0,.07);
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox .button-secondary:focus, #wordfenceBox .button-secondary:hover, #wordfenceBox .button.focus, #wordfenceBox .button.hover, #wordfenceBox .button:focus, #wordfenceBox .button:hover {
|
||||||
|
background: #fafafa;
|
||||||
|
border-color: #999;
|
||||||
|
color: #23282d
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordfenceBox a.wfboxhelp {
|
||||||
|
float: left;
|
||||||
|
background-image: url(../images/help.png);
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background-position: 0 0;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 0;
|
||||||
|
margin: 9px 0px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
/*! This file is auto-generated */
|
||||||
|
!function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c<n.length;c++)n[c].style.display="none";for(c=0;c<s.length;c++)if(r=s[c],e.source===r.contentWindow){if(r.removeAttribute("style"),"height"===t.message){if(1e3<(a=parseInt(t.value,10)))a=1e3;else if(~~a<200)a=200;r.height=a}if("link"===t.message)if(i=l.createElement("a"),a=l.createElement("a"),i.href=r.getAttribute("src"),a.href=t.value,o.test(a.protocol))if(a.host===i.host)if(l.activeElement===r)d.top.location.href=t.value}}},e)d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",t,!1),d.addEventListener("load",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf("MSIE 10"),i=!!navigator.userAgent.match(/Trident.*rv:11\./),a=l.querySelectorAll("iframe.wp-embedded-content"),s=0;s<a.length;s++){if(!(e=a[s]).getAttribute("data-secret"))t=Math.random().toString(36).substr(2,10),e.src+="#?secret="+t,e.setAttribute("data-secret",t);if(r||i)(t=e.cloneNode(!0)).removeAttribute("security"),e.parentNode.replaceChild(t,e)}}}}(window,document);
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
;/*FB_PKG_DELIM*/
|
||||||
|
|
||||||
|
__d("CometEmptyStatesGeneralDarkMode.svg.react",["XPlatReactSVG","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t;return s.jsxs((t=o("XPlatReactSVG")).Svg,babelHelpers.extends({viewBox:"0 0 112 112",width:"1em",height:"1em",title:e.title},e,{children:[s.jsxs(t.Defs,{children:[s.jsx(t.ClipPath,{id:"a",children:s.jsx(t.Path,{d:"M107.12 90.42a12.77 12.77 0 0 1-17.82 2.93L41.2 58.82l14.89-20.75 48.1 34.53a12.77 12.77 0 0 1 2.93 17.82z",fill:"#97999f"})}),s.jsx(t.ClipPath,{id:"b",children:s.jsx(t.Rect,{x:75.1,y:44.29,width:7.5,height:13.78,rx:3.48,fill:"none"})}),e.children]}),s.jsx(t.Path,{d:"m86.78 102.54-12.44.09 7.73-19.87 10.77 4.19-6.06 15.59z",fill:"#fff"}),s.jsx(t.Path,{d:"m88.37 107.16-15.85.1 1.82-4.63 12.44-.09-.61 1.75 2.2 2.87zm-14.03-6.62-15.85.1L60.32 96l12.43-.08-.61 1.75 2.2 2.87z",fill:"#7a7d81"}),s.jsx(t.Path,{d:"m72.64 96.16-12.44.08 7.73-19.87 10.77 4.19-6.06 15.6z",fill:"#90c3ff"}),s.jsx(t.Path,{d:"M107.12 90.42a12.77 12.77 0 0 1-17.82 2.93L41.2 58.82l14.89-20.75 48.1 34.53a12.77 12.77 0 0 1 2.93 17.82z",fill:"#97999f"}),s.jsx(t.G,{clipPath:"url(#a)",children:s.jsx(t.Path,{d:"M107.12 90.42a12.77 12.77 0 0 1-17.82 2.93L41.2 58.82l14.89-20.75 48.1 34.53a12.77 12.77 0 0 1 2.93 17.82z",fill:"#7a7d81"})}),s.jsx(t.Path,{d:"m68.76 58.96-9.13 3.09 1.89 9.59",stroke:"#1876f2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"9.48px",fill:"none"}),s.jsx(t.Path,{d:"m87.69 76.55-26.25-7.26 3.07-11.12a6.56 6.56 0 0 1 8.07-4.56l13.62 3.77a6.54 6.54 0 0 1 4.56 8.06z",fill:"#fff"}),s.jsx(t.Path,{d:"M35.35 7.61A29.17 29.17 0 0 0 21.05 10a1.24 1.24 0 0 0-.21 2.13L41.39 26.9a5.6 5.6 0 0 1 1.28 7.82l-8.35 11.64a5.62 5.62 0 0 1-7.83 1.29L5.77 32.77a1.23 1.23 0 0 0-1.94.84c0 .39-.08.78-.1 1.17A29.26 29.26 0 1 0 35.35 7.61z",fill:"#7a7d81"}),s.jsx(t.Path,{d:"m91.66 90.06-15.27-.31A16 16 0 0 1 61.76 68l26.45 7.9a7.7 7.7 0 0 1 5 10.14z",fill:"#fff"}),s.jsx(t.Path,{fill:"#bcc0c4",d:"m34.76 24.31-10.31-7.4-11.57 5.23-1.25 12.63 10.31 7.4 11.56-5.23 1.26-12.63z"}),s.jsx(t.Path,{d:"m86.65 63.16-4.38 14.9 6.82 11.84",stroke:"#1876f2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"9.48px",fill:"none"}),s.jsxs(t.G,{clipPath:"url(#b)",children:[s.jsx(t.Rect,{x:75.1,y:44.29,width:7.5,height:13.78,rx:3.48,fill:"#1876f2"}),s.jsx(t.Ellipse,{cx:74.83,cy:46.44,rx:7.58,ry:5.93,fill:"#90c3ff"})]}),s.jsx(t.Path,{d:"M75 48.92a4.24 4.24 0 0 1 8.31-1.64",fill:"#fff"}),s.jsx(t.Circle,{cx:81.1,cy:49.83,r:1.49,fill:"#1876f2"}),s.jsx(t.Circle,{cx:73.05,cy:52.22,r:3.19,fill:"#90c3ff"}),s.jsx(t.Path,{transform:"rotate(-11.08 84.387 46.274)",d:"M81.18 45.53h6.41v1.52h-6.41z",fill:"#fff"}),s.jsx(t.Rect,{x:81.33,y:49.37,width:1.9,height:.92,rx:.46,transform:"rotate(-13.22 82.251 49.804)",fill:"#1876f2"})]}))}u.displayName=u.name+" [from "+i.id+"]",u._isSVG=!0;var c=u;l.default=c}),98);
|
||||||
|
__d("CometEmptyStatesGeneralGrayWash.svg.react",["XPlatReactSVG","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t;return s.jsxs((t=o("XPlatReactSVG")).Svg,babelHelpers.extends({viewBox:"0 0 112 112",width:"1em",height:"1em",title:e.title},e,{children:[s.jsxs(t.Defs,{children:[s.jsx(t.ClipPath,{id:"a",children:s.jsx(t.Path,{d:"M107.12 90.42a12.77 12.77 0 0 1-17.82 2.93L41.2 58.82l14.89-20.75 48.1 34.53a12.77 12.77 0 0 1 2.93 17.82z",fill:"#bcc0c4"})}),s.jsx(t.ClipPath,{id:"b",children:s.jsx(t.Rect,{x:75.1,y:44.29,width:7.5,height:13.78,rx:3.48,fill:"none"})}),e.children]}),s.jsx(t.Path,{d:"m86.78 102.54-12.44.09 7.73-19.87 10.77 4.19-6.06 15.59z",fill:"#90c3ff"}),s.jsx(t.Path,{d:"m88.37 107.16-15.85.1 1.82-4.63 12.44-.09-.61 1.75 2.2 2.87zm-14.03-6.62-15.85.1L60.32 96l12.43-.08-.61 1.75 2.2 2.87z",fill:"#64676b"}),s.jsx(t.Path,{d:"m72.64 96.16-12.44.08 7.73-19.87 10.77 4.19-6.06 15.6z"}),s.jsx(t.Path,{d:"M107.12 90.42a12.77 12.77 0 0 1-17.82 2.93L41.2 58.82l14.89-20.75 48.1 34.53a12.77 12.77 0 0 1 2.93 17.82z",fill:"#bcc0c4"}),s.jsx(t.G,{clipPath:"url(#a)",children:s.jsx(t.Path,{d:"M107.12 90.42a12.77 12.77 0 0 1-17.82 2.93L41.2 58.82l14.89-20.75 48.1 34.53a12.77 12.77 0 0 1 2.93 17.82z",fill:"#a4a7ab"})}),s.jsx(t.Path,{d:"m68.76 58.96-9.13 3.09 1.89 9.59",stroke:"#1876f2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"9.48px",fill:"none"}),s.jsx(t.Path,{d:"m87.69 76.55-26.25-7.26 3.07-11.12a6.56 6.56 0 0 1 8.07-4.56l13.62 3.77a6.54 6.54 0 0 1 4.56 8.06z",fill:"#fff"}),s.jsx(t.Path,{d:"M35.35 7.61A29.17 29.17 0 0 0 21.05 10a1.24 1.24 0 0 0-.21 2.13L41.39 26.9a5.6 5.6 0 0 1 1.28 7.82l-8.35 11.64a5.62 5.62 0 0 1-7.83 1.29L5.77 32.77a1.23 1.23 0 0 0-1.94.84c0 .39-.08.78-.1 1.17A29.26 29.26 0 1 0 35.35 7.61z",fill:"#a4a7ab"}),s.jsx(t.Path,{d:"m91.66 90.06-15.27-.31A16 16 0 0 1 61.76 68l26.45 7.9a7.7 7.7 0 0 1 5 10.14z",fill:"#90c3ff"}),s.jsx(t.Path,{d:"m34.76 24.31-10.31-7.4-11.57 5.23-1.25 12.63 10.31 7.4 11.56-5.23 1.26-12.63z",fill:"#64676b"}),s.jsx(t.Path,{d:"m86.65 63.16-4.38 14.9 6.82 11.84",stroke:"#1876f2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"9.48px",fill:"none"}),s.jsxs(t.G,{clipPath:"url(#b)",children:[s.jsx(t.Rect,{x:75.1,y:44.29,width:7.5,height:13.78,rx:3.48,fill:"#1876f2"}),s.jsx(t.Ellipse,{cx:74.83,cy:46.44,rx:7.58,ry:5.93})]}),s.jsx(t.Path,{d:"M75 48.92a4.24 4.24 0 0 1 8.31-1.64",fill:"#64676b"}),s.jsx(t.Circle,{cx:81.1,cy:49.83,r:1.49,fill:"#1876f2"}),s.jsx(t.Circle,{cx:73.05,cy:52.22,r:3.19}),s.jsx(t.Path,{transform:"rotate(-11.08 84.387 46.274)",d:"M81.18 45.53h6.41v1.52h-6.41z",fill:"#64676b"}),s.jsx(t.Rect,{x:81.33,y:49.37,width:1.9,height:.92,rx:.46,transform:"rotate(-13.22 82.251 49.804)",fill:"#1876f2"})]}))}u.displayName=u.name+" [from "+i.id+"]",u._isSVG=!0;var c=u;l.default=c}),98);
|
||||||
|
__d("CometSSREntrypoint",["objectValues","relay-runtime/util/withProvidedVariables"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t,n,o,a,i,l,s,u,c,d=r("relay-runtime/util/withProvidedVariables")(e.variables,e.parameters.params.providedVariables);return{actor_id:(t=(n=e.environmentProviderOptions)==null?void 0:n.actorID)!=null?t:null,exclude_from_ssr:(o=(a=e.environmentProviderOptions)==null?void 0:a.excludeFromSSR)!=null?o:!1,graphql_env_override_ref:(i=(l=e.environmentProviderOptions)==null?void 0:l.graphQLEnvOverrideRef)!=null?i:null,id:e.parameters.params.id,name:e.parameters.params.name,num_connections_for_ssr:(s=(u=e.environmentProviderOptions)==null?void 0:u.numConnectionsForSSR)!=null?s:null,preloader_group:(c=e.environmentProviderOptions)==null?void 0:c.preloaderGroup,variables:d}}function s(e,t){var n=e.getPreloadProps(t),o=n.entryPoints,a=n.extraProps,i=n.queries,l=i!=null?i:{},u=r("objectValues")(l).filter(function(e){var t,n;return e!=null&&((t=e==null||(n=e.options)==null?void 0:n.includeIf)!=null?t:!0)}),c=[e.root],d=a!=null?[a]:[];if(o!=null){var m=Object.keys(o);m.forEach(function(e){var t=o[e];if(t!=null){var n=t.entryPoint,r=t.entryPointParams,a=s(n,r);u=u.concat(a.queries),c=c.concat(a.roots),d=d.concat(a.extraProps)}})}return{extraProps:d,queries:u,roots:c}}function u(t,n){var r=s(t,n),o=r.queries;return o.map(e)}function c(t){var n=t.map(function(e){return s(e.entryPoint,e.entryPointParams)});return n.map(function(t){var n=t.queries,r=t.roots;return{queries:n.map(e),roots:r.map(function(e){return e.getModuleId()})}})}function d(e,t){var n=m(e,t),r=n.queries,o=n.roots;return{queries:r,roots:o}}function m(e,t){var n=p(e,t),r=n.extraProps,o=n.queries,a=n.roots;return{extraProps:r,queries:o,roots:a.map(function(e){return e.getModuleId()})}}function p(t,n){var r=s(t,n),o=r.extraProps,a=r.queries,i=r.roots;return{extraProps:o,queries:a.map(e),roots:i}}function _(){var e=new Error("This function should not be called. It exists solely for the type-generation");throw e.stack,e}function f(t){var n,o,a=r("objectValues")((n=t==null||t.getDisplayQueries==null?void 0:t.getDisplayQueries())!=null?n:{}).filter(function(e){return e!=null}).map(e),i=r("objectValues")((o=t==null||t.getDeferredQueries==null?void 0:t.getDeferredQueries())!=null?o:{}).filter(function(e){return e!=null}).map(e);return{deferred:i,display:a}}function g(e,t){var n=c(e),r=f(t);return{appshellQueries:r,routeObjects:n}}l.processRootEntryPoint=u,l.processRootEntryPoints=c,l.processRootEntryPointData=d,l.processRootEntryPointDataWithExtraProps=m,l.processRootEntryPointDataWithJSResources=p,l.preloadQuery=_,l.processServerEntryPoints=g}),98);
|
||||||
|
__d("CometRouterSSREntrypoint",["CometSSREntrypoint"],(function(t,n,r,o,a,i){"use strict";var e=importNamespace("CometSSREntrypoint").processRootEntryPointData,l=importNamespace("CometSSREntrypoint").processRootEntryPointDataWithExtraProps,s=importNamespace("CometSSREntrypoint").processRootEntryPointDataWithJSResources;i.processRootEntryPointData=e,i.processRootEntryPointDataWithExtraProps=l,i.processRootEntryPointDataWithJSResources=s}),66);
|
||||||
|
__d("CometRelayEF",["Bootloader","BootloaderEvents","ClientConsistencyEventEmitter","CometRouterSSREntrypoint","JSResourceReference","cometAsyncFetch","gkx","performanceAbsoluteNow","promiseDone"],(function(t,n,r,o,a,i,l){"use strict";var e,s=new Map;function u(t){if(r("gkx")("26332")){var n=t.filter(function(e){return!s.has(e)});if(n.length>0){n.forEach(function(e){o("BootloaderEvents").notifyHasteResponseEFStart("relay_3d",e)});var a=(e||(e=r("performanceAbsoluteNow")))(),i=r("cometAsyncFetch")("/ajax/relay-ef/",{data:{queries:n},method:"POST"}).then(function(t){return{fetchPredictionsEnd:(e||(e=r("performanceAbsoluteNow")))(),fetchPredictionsStart:a,payload:t}});n.forEach(function(e){return s.set(e,i)})}var l=(e||(e=r("performanceAbsoluteNow")))();t.forEach(function(e){var t=s.get(e);t&&t!==!0&&r("promiseDone")(t,function(t){var n=t.fetchPredictionsEnd,a=t.fetchPredictionsStart,i=t.payload;if(i!=null&&typeof i=="object"){var s,u;r("Bootloader").loadPredictedResourceMap(i.predictions[e],{onLog:function(r){return o("BootloaderEvents").notifyHasteResponseEF("relay_3d",e,{fetchPredictionsEnd:n,fetchPredictionsStart:a,fetchRsrcsStart:l,tierOne:r})}},(s=(u=i.consistency)==null?void 0:u.rev)!=null?s:null),i.consistency!=null&&r("ClientConsistencyEventEmitter").emit("newEntry",i.consistency)}}),s.set(e,!0)})}}function c(e,t){var n=o("CometRouterSSREntrypoint").processRootEntryPointDataWithJSResources(e,t),a=n.queries,i=n.roots,l=a.map(function(e){var t=e.name;return t});u(l),r("JSResourceReference").loadAll(i,function(){})}var d={fetchPredictedEntryPointResources:c,fetchPredictedResourcesForQueries:u};l.default=d}),98);
|
||||||
|
__d("CometUserActivity",["BaseEventEmitter"],(function(t,n,r,o,a,i,l){"use strict";var e=5e3,s=500,u=-5,c=Date.now(),d=c,m=!1,p=Date.now(),_=document.hasFocus?document.hasFocus():!0,f=0,g=Date.now(),h=-1,y=-1,C=!1,b=!1,v=new(r("BaseEventEmitter"));function S(e){var t=R(function(n,r){t.unsubscribe(),e(r)});return t}function R(e){var t=v.addListener("user_activity",function(t){return e("user_activity",t)});return{unsubscribe:function(){return t.remove()}}}function L(t){return new Date().getTime()-c<(t!=null?t:e)}function E(){return _}function k(){return m}function I(){_=!0,m=!1}function T(){return p}function D(){return c}function x(e){f=e}function $(){return g}function P(){return C}function N(){return b}function M(){return d}function w(){c=Date.now(),d=c,m=!1,p=Date.now(),_=document.hasFocus?document.hasFocus():!0,f=0,g=Date.now(),h=-1,y=-1,C=!1,b=!1}function A(e){e.unsubscribe()}function F(e){B(e,s)}function O(e){B(e,0)}function B(n,r){r===void 0&&(r=0);var o=t.MouseEvent,a=t.KeyboardEvent;if(o&&n instanceof o){if(/^mouse(enter|leave|move|out|over)$/.test(n.type)&&n.pageX==h&&n.pageY==y)return;h=n.pageX,y=n.pageY}else a&&n instanceof a&&(b=!0);(n.type==="click"||n.type==="dblclick"||n.type==="contextmenu")&&(C=!0),c=Date.now();var i=c-d;i>=r?(d=c,_||(g=c),i>=(f||e)&&(m=!0,p=c),v.emit("user_activity",{event:n,idleness:i,last_inform:d})):i<u&&(d=c)}function W(e){_=!0,p=Date.now(),O(e)}function q(){_=!1,m=!0,g=Date.now()}window.addEventListener("scroll",F,{capture:!0,passive:!0}),window.addEventListener("focus",W,{capture:!1,passive:!0}),window.addEventListener("blur",q,{capture:!1,passive:!0}),(function(){var e=document.documentElement;e!=null&&["keydown","mouseover","mousemove","click"].forEach(function(t){e.addEventListener(t,F,{capture:!0,passive:!0})})})(),l.EVENT_INTERVAL_MS=s,l.subscribeOnce=S,l.subscribe=R,l.isActive=L,l.isOnTab=E,l.hasBeenInactive=k,l.resetActiveStatus=I,l.getLastInActiveEnds=T,l.getLastActive=D,l.setIdleTime=x,l.getLastLeaveTime=$,l.hasClicked=P,l.hasInteractedWithKeyboard=N,l.getLastInformTime=M,l.reset=w,l.unsubscribe=A}),98);
|
||||||
|
__d("FBNucleusCrossFilled12Icon.react",["react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){return s.jsxs("svg",babelHelpers.extends({viewBox:"0 0 12 12",width:"1em",height:"1em",fill:"currentColor"},e,{children:[e.title!=null&&s.jsx("title",{children:e.title}),e.children!=null&&s.jsx("defs",{children:e.children}),s.jsx("path",{d:"M9.942 2.942a.625.625 0 0 0-.884-.884L6 5.116 2.942 2.058a.625.625 0 1 0-.884.884L5.116 6 2.058 9.058a.625.625 0 1 0 .884.884L6 6.884l3.058 3.058a.625.625 0 0 0 .884-.884L6.884 6l3.058-3.058z"})]}))}u.displayName=u.name+" [from "+i.id+"]",u._size=12,u._isSVG=!0;var c=u;l.default=c}),98);
|
||||||
|
__d("FDSNullState.react",["FDSIcon.react","FDSTextPairing.react","IconSource","SVGIcon","react","react-compiler-runtime","react-strict-dom","useCurrentDisplayMode"],(function(t,n,r,o,a,i,l){"use strict";var e=["ref"],s=["action","body","bodyColor","headline","headlineColor","icon","iconColor","small"],u,c=u||(u=o("react")),d={button:{marginTop:"xqui205",$$css:!0},image:{marginBottom:"xieb3on",$$css:!0},root:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",paddingTop:"x1p5oq8j",paddingInlineEnd:"x64bnmy",paddingBottom:"xwxc41k",paddingInlineStart:"x13jy36j",$$css:!0}};function m(t){var n=o("react-compiler-runtime").c(33),a,i;n[0]!==t?(i=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),n[0]=t,n[1]=a,n[2]=i):(a=n[1],i=n[2]);var l,u,m,p,_,f,g,h,y;if(n[3]!==a){var C=a;l=C.action,f=C.body,g=C.bodyColor,u=C.headline,h=C.headlineColor,m=C.icon,p=C.iconColor,y=C.small,_=babelHelpers.objectWithoutPropertiesLoose(C,s),n[3]=a,n[4]=l,n[5]=u,n[6]=m,n[7]=p,n[8]=_,n[9]=f,n[10]=g,n[11]=h,n[12]=y}else l=n[4],u=n[5],m=n[6],p=n[7],_=n[8],f=n[9],g=n[10],h=n[11],y=n[12];var b=f===void 0?null:f,v=g===void 0?"secondary":g,S=h===void 0?"secondary":h,R=y===void 0?!1:y,L=r("useCurrentDisplayMode")(),E=L==="dark",k=R?4:2,I;n[13]!==m||n[14]!==p||n[15]!==E?(I=m!=null?m instanceof r("IconSource")||m instanceof o("SVGIcon").SVGIcon?c.jsx(r("FDSIcon.react"),{color:p,icon:m,size:112}):c.jsx(r("FDSIcon.react"),{icon:E&&m.dark!=null?m.dark:m.default,size:112}):null,n[13]=m,n[14]=p,n[15]=E,n[16]=I):I=n[16];var T=I,D;n[17]!==T?(D=c.jsx(o("react-strict-dom").html.div,{style:d.image,children:T}),n[17]=T,n[18]=D):D=n[18];var x;n[19]!==b||n[20]!==v||n[21]!==u||n[22]!==S||n[23]!==k?(x=c.jsx(r("FDSTextPairing.react"),{body:b,bodyColor:v,headline:u,headlineColor:S,isSemanticHeading:!0,level:k,textAlign:"center"}),n[19]=b,n[20]=v,n[21]=u,n[22]=S,n[23]=k,n[24]=x):x=n[24];var $;n[25]!==l?($=l!=null?c.jsx(o("react-strict-dom").html.div,{style:d.button,children:l}):null,n[25]=l,n[26]=$):$=n[26];var P;return n[27]!==_||n[28]!==i||n[29]!==D||n[30]!==x||n[31]!==$?(P=c.jsxs(o("react-strict-dom").html.div,babelHelpers.extends({style:d.root},_,{ref:i,children:[D,x,$]})),n[27]=_,n[28]=i,n[29]=D,n[30]=x,n[31]=$,n[32]=P):P=n[32],P}l.default=m}),98);
|
||||||
|
__d("FbtLogging",["cr:1094907","cr:8828"],(function(t,n,r,o,a,i,l){"use strict";var e=n("cr:1094907")==null?void 0:n("cr:1094907").logImpression,s=n("cr:8828")==null?void 0:n("cr:8828").logImpressionV2;l.logImpression=e,l.logImpressionV2=s}),98);
|
||||||
|
__d("IntlQtEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("1848815"),s=o("FalcoLoggerInternal").create("intl_qt_event",e),u=s;l.default=u}),98);
|
||||||
|
__d("MarauderLogger",["Banzai","CacheStorage","MarauderConfig"],(function(t,n,r,o,a,i){var e="client_event",l="navigation",s=18e4,u="marauder",c="marauder_last_event_time",d="marauder_last_session_id",m={},p=[],_=!1,f=null,g=null,h=null,y=0,C,b,v=!1,S=null;function R(){P().set(c,L())}n("Banzai").subscribe(n("Banzai").SHUTDOWN,R);function L(){return C=C||P().get(c)||0,C}function E(){v||(b=P().get(d),v=!0);var e=Date.now();return(!b||e-s>L())&&(b=e.toString(16)+"-"+(~~(Math.random()*16777215)).toString(16),P().set(d,b)),b}function k(){var e;return{user_agent:window.navigator.userAgent,screen_height:window.screen.availHeight,screen_width:window.screen.availWidth,density:(e=window.screen.devicePixelRatio)!=null?e:null,platform:window.navigator.platform||null,locale:window.navigator.language||null}}function I(){return{locale:navigator.language}}function T(e,t,n,r,o,a,i){var l=i!=null&&i!=0?i:Date.now();C=i!=null&&i!=0?Date.now():l;var s=t!=null&&t!=""?t:f;return{name:e,time:l/1e3,module:s,obj_type:r,obj_id:o,uuid:a,extra:n}}function D(e,t,n){return T("content",null,{flags:t},null,null,e,n)}function x(e){var t=window.__mrdr;if(t)for(var n in t){var r=t[n];if(r[3]!==0){if(delete t[n],n==="1")if(h!==null)n=h;else continue;e.push(D(n,1,r[1])),e.push(D(n,2,r[2])),e.push(D(n,3,r[3]))}}}function $(t,r){if(x(t),t.length!==0){_&&t.push(T("counters",null,m));var o=n("Banzai").BASIC;r==="vital"&&(o=n("Banzai").VITAL);var a=n("MarauderConfig").gk_enabled;if(y===0&&a&&(t.push(T("device_status",null,I())),o={delay:5e3}),r==="signal"&&(o={signal:!0}),a&&Math.random()<.01&&t.push(T("device_info",null,k())),h!==null)for(var i=0;i<t.length;i++){var l=t[i];l.uuid==null&&(l.uuid=h)}var s={app_ver:n("MarauderConfig").app_version,data:t,device_id:void 0,log_type:e,seq:y++,session_id:E()},c=P().get("device_id");c&&(s.device_id=c),m={},_=!1,n("Banzai").post(u,s,o)}}function P(){return S||(S=new(n("CacheStorage"))("localstorage","")),S}function N(e){m[e]||(m[e]=0),m[e]++,_=!0}function M(e,t,n,r,o,a,i,l){$([T(e,t,n,r,o,a,i)],l)}function w(e,t){f!==t&&(p.push(T(l,f,{dest_module:t,source_url:g,destination_url:e})),f=t,g=e)}function A(e,t){f!==t&&(h=null,w(e,t))}function F(e,t,n){M(t?"show_module":"hide_module",e,n)}function O(e){f=e}function B(){return f}function W(e){h===null&&(h=e,e!==null&&($(p),p=[]))}a.exports={count:N,log:M,navigateTo:A,navigateWithinSession:w,toggleModule:F,setUUID:W,setNavigationModule:O,getNavigationModule:B}}),null);
|
||||||
|
__d("NullStateGeneral",["cr:27544"],(function(t,n,r,o,a,i,l){"use strict";l.default=n("cr:27544")}),98);
|
||||||
|
__d("NullStateGeneralFB",["CometEmptyStatesGeneralDarkMode.svg.react","CometEmptyStatesGeneralGrayWash.svg.react","SVGIcon"],(function(t,n,r,o,a,i,l){"use strict";var e={dark:o("SVGIcon").svgIcon(r("CometEmptyStatesGeneralDarkMode.svg.react")),default:o("SVGIcon").svgIcon(r("CometEmptyStatesGeneralGrayWash.svg.react"))};l.default=e}),98);
|
||||||
|
__d("bumpVultureJSHash",["ODS"],(function(t,n,r,o,a,i,l){"use strict";var e;function s(t,n){(e||(e=o("ODS"))).bumpEntityKey(7506,"vulture_js",t,n)}l.default=s}),98);
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
;/*FB_PKG_DELIM*/
|
||||||
|
|
||||||
|
__d("BootloaderErrorsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("5080"),s=o("FalcoLoggerInternal").create("bootloader_errors",e),u=s;l.default=u}),98);
|
||||||
|
__d("BootloaderEventsPerf",["invariant","Bootloader","BootloaderEvents","ResourceTimingStore","objectEntries","objectValues"],(function(t,n,r,o,a,i,l,s){var e=["durations","resources","start_time"],u={total_count:0,total_bytes:0,downloaded_count:0,downloaded_bytes:0,cached_count:0,cached_bytes:0,inlined_count:0,inlined_bytes:0,duration:0,missing_count:0};function c(e,t,n){return Math.max(0,(n!=null?n:0)-Math.max(e,t!=null?t:0))}function d(){return{blocking:babelHelpers.extends({},u),nonblocking:babelHelpers.extends({},u),default:babelHelpers.extends({},u)}}function m(e,t,n){var r,a;if(n==null)r=0,a="downloaded";else if(n[1])r=n[0].length,a="inlined";else{var i=o("ResourceTimingStore").getEntryForURL(n[0]);i?(r=i.encodedBodySize,a=i.transferSize===0?"cached":"downloaded"):(r=0,a="downloaded",e.missing_count++)}if(e.total_count++,e.total_bytes+=r,!!t)switch(e.duration=Math.max(e.duration,t),a){case"downloaded":e.downloaded_count++,e.downloaded_bytes+=r;break;case"inlined":e.inlined_count++,e.inlined_bytes+=r;break;case"cached":e.cached_count++,e.cached_bytes+=r;break}}function p(e,t,n,o,a){var i=r("Bootloader").getResourceState(t);m(e,c(n,i.loadStart,i.loadEnd),o),i.loadError!=null&&a.add(t)}function _(e,t,n,o){var a=d();for(var i of r("objectEntries")(e)){var l=i[0],u=i[1];for(var c of u){var m=c[0],_=c[1],f=void 0,g=void 0;switch(_.type){case"async":g=null,f=n;break;case"js":case"css":g=[_.src,_.d===1],f=a;break;default:s(0,3721)}p(f[l],m,t,g,o)}}return a}function f(e,t){var n={unpredicted:o("BootloaderEvents").newResourceMapSet(),ef:o("BootloaderEvents").newResourceMapSet(),overpredicted:o("BootloaderEvents").newResourceMapSet()};for(var a of r("objectEntries")(t)){var i=a[0],l=a[1];for(var s of l.entries()){var u=s[0],c=s[1];e[i].has(u)?n.ef[i].set(u,c):n.overpredicted[i].set(u,c)}}for(var d of r("objectEntries")(e)){var m=d[0],p=d[1];for(var _ of p.entries()){var f=_[0],g=_[1];t[m].has(f)||n.unpredicted[m].set(f,g)}}return n}function g(e){var t,n=e.efData,r=e.rsrcs,o=e.startTime,a=new Set,i,l,s;if(n){var u=f(r,n.tierOne);s=u.unpredicted,i={ef:_(u.ef,n.fetchRsrcsStart,d(),a),overpredicted:_(u.overpredicted,n.fetchRsrcsStart,d(),a)},l={ef_fetch_predictions:n.fetchPredictionsEnd-n.fetchPredictionsStart,ef_fetch_start_wait:n.fetchPredictionsEnd-n.fetchRsrcsStart,ef_head_start:o-n.fetchRsrcsStart}}else s=r,i={},l={};var c=babelHelpers.extends({unpredicted:_(s,o,d(),a)},i);return{source:e.source,source_detail:e.sourceDetail,is_first_identical:e.isFirstIdentical,timeslice_context:(t=e.timesliceContext)==null?void 0:t.name,start_time:o,err_count:a.size,resources:c,durations:babelHelpers.extends({jsmods_wait:e.jsmodsStart-o,jsmods:e.jsmodsEnd-e.jsmodsStart,jsmods_done_wait:e.jsmodsEnd-o,download_done_wait:e.logTime-o},l),payloadStats:e.payloadStats}}function h(e){var t,n=e.startTime,a=0,i=0,l=0,s=0;for(var u of e.components){var p=r("Bootloader").getComponentTiming(u),f=p.tierThreeEnd,g=p.tierThreeStart,h=p.tierTwoEnd,y=p.tierTwoStart;a=Math.max(a,c(n,y,h)),i=Math.max(i,c(n,n,h)),l=Math.max(l,c(n,g,f)),s=Math.max(s,c(n,n,f))}var C=new Set,b=d(),v=_(e.tierOne,n,b,C),S=_(e.tierTwo,n,b,C),R=_(e.tierThree,n,b,C),L=b.blocking.downloaded_count!=0,E=d(),k=o("BootloaderEvents").newResourceMapSet(),I=new Set;for(var T of[e.tierOne,e.tierTwo,e.tierThree])for(var D of r("objectValues")(T))for(var x of D.keys())I.add(x);var $=0,P=0,N=0;for(var M of e.beRequests.values()){$+=c(n,n,M.requestStart),P+=M.serverGenTime,N+=M.jsmodsEnd-M.jsmodsStart,m(E[L?"blocking":"nonblocking"],M.responseStart-M.requestStart,[M.uri,!1]);for(var w of r("objectEntries")(M.rsrcs)){var A=w[0],F=w[1];for(var O of F){var B=O[0],W=O[1];I.has(B)||k[A].set(B,W)}}}var q=_(k,n,b,C);return{ref:e.ref,components:e.components,timeslice_context:(t=e.timesliceContext)==null?void 0:t.name,start_time:n,err_count:C.size,resources:{t1:v,t2:S,t3:R,be:E,unpredicted:q,async:b},durations:{fetch_start_wait:e.fetchStartTime-n,be_start_wait:$,be_server_gen:P,be_jsmods:N,callback_wait:e.callbackStart-n,callback:e.callbackEnd-e.callbackStart,bootload_done_wait:e.callbackEnd-n,rdfd_requirelazy:a,rdfd_done_wait:i,rd_requirelazy:l,rd_done_wait:s}}}function y(t){var n=t.durations,o=t.resources,a=t.start_time,i=babelHelpers.objectWithoutPropertiesLoose(t,e);for(var l of r("objectEntries")(o)){var s=l[0],u=l[1];for(var c of r("objectEntries")(u)){var d=c[0],m=c[1];for(var p of r("objectEntries")(m)){var _=p[0],f=p[1];i[s+"_"+d+"_resources_"+_]=Math.round(Number(f))}}}for(var g of r("objectEntries")(n)){var h=g[0],y=g[1];i[h+"_duration"]=Math.round(Number(y))}if(i.payloadStats){for(var C of r("objectEntries")(i.payloadStats)){var b=C[0],v=C[1];for(var S of r("objectEntries")(v)){var R=S[0],L=S[1];i[b+"_"+R+"_count"]=Math.round(Number(L))}}delete i.payloadStats}return i}l.computeHRData=g,l.computeBLData=h,l.flattenData=y}),98);
|
||||||
|
__d("BootloaderErrorLoggerUtil",["BootloaderErrorsFalcoEvent","BootloaderEvents","BootloaderEventsPerf","ResourceTimingStore","ScriptPath","SiteData","performanceNavigationStart"],(function(t,n,r,o,a,i){var e=!1,l={initLogging:function(r){var t=r.parent_lid;if(!e){e=!0,n("ResourceTimingStore").init();var o=function(r){return{ms_since_navstart:Math.round(r-n("performanceNavigationStart")()),parent_lid:t,pkg_cohort:n("SiteData").pkg_cohort,request_path:n("ScriptPath").getScriptPath(),ef_page:n("ScriptPath").getEarlyFlushPage(),svn_rev:n("SiteData").client_revision}};n("BootloaderEvents").onBootloadError(function(e){return n("BootloaderErrorsFalcoEvent").log(function(){var t=n("BootloaderEventsPerf").computeBLData(e.bootloaderData),r=n("BootloaderEventsPerf").flattenData(t),a=babelHelpers.extends({},r,o(t.start_time),{status:"ERROR",was_offline:e.offline});return e.erroredResources!=null&&(a.errored_resource_urls=Array.from(e.erroredResources)),a})})}}};a.exports=l}),null);
|
||||||
|
__d("BootloaderLoggingStatusEnum",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum").Mirrored(["SUCCESS","TIMEOUT","ERROR"]),l=e;i.default=l}),66);
|
||||||
|
__d("CometBootloaderErrorsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("1109"),s=o("FalcoLoggerInternal").create("comet_bootloader_errors",e),u=s;l.default=u}),98);
|
||||||
|
__d("CometBootloaderErrorLoggerUtil",["BootloaderEvents","BootloaderEventsPerf","CometBootloaderErrorsFalcoEvent","CometTimeSpentNavigation","ResourceTimingStore","SiteData","performanceNavigationStart"],(function(t,n,r,o,a,i,l){"use strict";var e=!1;function s(t){var n=t.parent_lid;e=!0,o("ResourceTimingStore").init();var a=function(t){var e;return{ms_since_navstart:Math.round(t-r("performanceNavigationStart")()),parent_lid:n,pkg_cohort:r("SiteData").pkg_cohort,request_path:(e=r("CometTimeSpentNavigation").getPathInfo())==null?void 0:e.name,svn_rev:r("SiteData").client_revision}},i=function(t,n){var e=o("BootloaderEventsPerf").computeBLData(t.bootloaderData),i=o("BootloaderEventsPerf").flattenData(e);r("CometBootloaderErrorsFalcoEvent").log(function(){var r=babelHelpers.extends({},i,a(e.start_time),{status:n,was_offline:t.offline});return t.erroredResources!=null&&(r.errored_resource_urls=Array.from(t.erroredResources)),r})};o("BootloaderEvents").onBootloadError(function(e){i(e,"ERROR")})}l.initLogging=s}),98);
|
||||||
|
__d("CometBootloaderEventsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("177"),s=o("FalcoLoggerInternal").create("comet_bootloader_events",e),u=s;l.default=u}),98);
|
||||||
|
__d("HasteResponseFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("1823926"),s=o("FalcoLoggerInternal").create("haste_response",e),u=s;l.default=u}),98);
|
||||||
|
__d("CometBootloaderLoggerUtil",["BootloaderEvents","BootloaderEventsPerf","CometBootloaderEventsFalcoEvent","CometTimeSpentNavigation","HasteResponseFalcoEvent","ResourceTimingStore","SiteData","UserTimingUtils","gkx","performance","performanceNavigationStart"],(function(t,n,r,o,a,i,l){"use strict";var e,s=!1,u=r("gkx")("20483");function c(t){var n=t.bl_sample_rate,a=t.hr_sample_rate,i=t.parent_lid;if(!(s||!(n||a||u===!0))){s=!0,o("ResourceTimingStore").init();var l=function(t){var e;return{ms_since_navstart:Math.round(t-r("performanceNavigationStart")()),parent_lid:i,pkg_cohort:r("SiteData").pkg_cohort,request_path:(e=r("CometTimeSpentNavigation").getPathInfo())==null?void 0:e.name,svn_rev:r("SiteData").client_revision}};a&&o("BootloaderEvents").onHasteResponse(function(e){return r("HasteResponseFalcoEvent").log(function(){var t=o("BootloaderEventsPerf").computeHRData(e),n=o("BootloaderEventsPerf").flattenData(t);return babelHelpers.extends({},n,l(t.start_time))})}),u&&(o("BootloaderEvents").onBootload(function(t){o("UserTimingUtils").measureModern("Bootloader: "+t.components.join(", "),{end:t.callbackEnd-(e||(e=r("performance"))).timeOrigin,start:t.startTime-e.timeOrigin},"Bootloader Events")}),o("BootloaderEvents").onHasteResponse(function(t){o("UserTimingUtils").measureModern("Haste: "+t.source,{end:t.jsmodsEnd-(e||(e=r("performance"))).timeOrigin,properties:[["Source Detail",t.sourceDetail]],start:t.startTime-e.timeOrigin},"Bootloader Events")}));var c=function(t,n){var e=o("BootloaderEventsPerf").computeBLData(t),a=o("BootloaderEventsPerf").flattenData(e);r("CometBootloaderEventsFalcoEvent").log(function(){return babelHelpers.extends({},a,l(e.start_time),{status:n})})};n&&o("BootloaderEvents").onBootload(function(e){return c(e,"SUCCESS")}),o("BootloaderEvents").onBootloaderCallbackTimeout(function(e){return c(e,"TIMEOUT")})}}l.initLogging=c}),98);
|
||||||
|
__d("WebWorkerInitDeferred",["BootloaderErrorLoggerUtil","CometBootloaderErrorLoggerUtil","cr:7429"],(function(t,n,r,o,a,i,l){"use strict";function e(e){e.blLoggingCavalryFields&&(n("cr:7429").initLogging(e.blLoggingCavalryFields),o("CometBootloaderErrorLoggerUtil").initLogging(e.blLoggingCavalryFields),o("BootloaderErrorLoggerUtil").initLogging(e.blLoggingCavalryFields))}l.initDeferred=e}),98);/*FB_PKG_DELIM*/
|
||||||
|
__d("ScriptPath",["ErrorGuard","SubscriptionList","TimeSlice","WebStorage","isInIframe"],(function(t,n,r,o,a,i){"use strict";var e,l,s="sp_pi",u=3e4,c=null,d=null,m=new(n("SubscriptionList")),p=null,_=[],f=n("TimeSlice").guard(function(t,r){m.getCallbacks().forEach(function(o){(e||(e=n("ErrorGuard"))).applyWithGuard(function(){o({source:c,dest:d,cause:t,extraData:r})},null,[])})},"ScriptPath Notifying callbacks",{propagationType:n("TimeSlice").PropagationType.ORPHAN});function g(){return d?d.scriptPath:void 0}function h(){var e=(l||(l=n("WebStorage"))).getSessionStorage();!e||n("isInIframe")()||l.setItemGuarded(e,s,JSON.stringify({pageInfo:d,clickPoint:p,time:Date.now()}))}function y(){var e=(l||(l=n("WebStorage"))).getSessionStorageForRead();if(e){var t=e.getItem(s);if(t){var r=JSON.parse(t);r&&(r.time<Date.now()-u&&(e=(l||(l=n("WebStorage"))).getSessionStorage(),e&&e.removeItem(s)),d=r.pageInfo,p=r.clickPoint,d&&(d.restored=!0))}}}y();var C={set:function(t,n,r){c=d,d={scriptPath:t,categoryToken:n,extraData:r||{}},_=[],window._script_path=t,f(null,null)},openOverlayView:function(t,n,r){if(t){var e=_.length;(e===0||_[e-1]!==t)&&(c=babelHelpers.extends({},d),d&&(d.topViewEndpoint=t),r&&r.replaceTopOverlay&&e>0?(_[e-1]=t,f("replace_overlay_view",n)):(_.push(t),f("open_overlay_view",n)))}},closeOverlayView:function(t,n){var e=_.lastIndexOf(t);e!==-1&&(c=babelHelpers.extends({},d),d&&(e>0?d.topViewEndpoint=_[e-1]:d.topViewEndpoint=null),_=_.slice(0,e),f("close_overlay_view",n))},setClickPointInfo:function(t){p=t,h()},getClickPointInfo:function(){return p},getScriptPath:g,getCategoryToken:function(){return d?d.categoryToken:void 0},getEarlyFlushPage:function(){var e;return(e=d)==null||(e=e.extraData)==null?void 0:e.ef_page},getTopViewEndpoint:function(){var e=_.length;return e>0?_[e-1]:g()},getPageInfo:function(){return d},getSourcePageInfo:function(){return c},subscribe:function(t){return m.add(n("TimeSlice").guard(t,"ScriptPath.subscribe"))},shutdown:function(){h()}};a.exports=C}),null);
|
||||||
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 817 KiB |
|
After Width: | Height: | Size: 763 KiB |
|
After Width: | Height: | Size: 561 KiB |