PageSourceSearch

https://drmeducacao.com.br/2025/1-template/handleSlide/handleSlide.js

js drmeducacao.com.br collected 2026-10-04 18:49:41 UTC 11,299 bytes, 1 lines download raw bytes

1(()=>{function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(n)}function n(){var t,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.toStringTag||"@@toStringTag";function a(n,o,i,c){var a=o&&o.prototype instanceof s?o:s,u=Object.create(a.prototype);return e(u,"_invoke",function(n,e,o){var i,c,a,s=0,u=o||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(n,e){return i=n,c=0,a=t,p.n=e,l}};function f(n,e){for(c=n,a=e,r=0;!d&&s&&!o&&r<u.length;r++){var o,i=u[r],f=p.p,m=i[2];n>3?(o=m===e)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=f&&((o=n<2&&f<i[1])?(c=0,p.v=e,p.n=i[1]):f<m&&(o=n<3||i[0]>e||e>m)&&(i[4]=n,i[5]=e,p.n=m,c=0))}if(o||n>1)return l;throw d=!0,e}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),c=u,a=m;(r=c<2?t:a)||!d;){i||(c?c<3?(c>1&&(p.n=-1),f(c,a)):p.n=a:p.v=a);try{if(s=2,i){if(c||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,c<2&&(c=0)}else 1===c&&(r=i.return)&&r.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((r=(d=p.n<0)?a:n.call(e,p))!==l)break}catch(n){i=t,c=1,a=n}finally{s=1}}return{value:r,done:d}}}(n,i,c),!0),u}var l={};function s(){}function u(){}function d(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(e(r={},i,function(){return this}),r),f=d.prototype=s.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,e(t,c,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=d,e(f,"constructor",d),e(d,"constructor",u),u.displayName="GeneratorFunction",e(d,c,"GeneratorFunction"),e(f),e(f,c,"Generator"),e(f,i,function(){return this}),e(f,"toString",function(){return"[object Generator]"}),(n=function(){return{w:a,m}})()}function e(t,n,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}e=function(t,n,r,o){function c(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?i?i(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(c("next",0),c("throw",1),c("return",2))},e(t,n,r,o)}function r(t,n,e,r,o,i,c){try{var a=t[i](c),l=a.value}catch(t){return void e(t)}a.done?n(l):Promise.resolve(l).then(r,o)}function o(t){return function(){var n=this,e=arguments;return new Promise(function(o,i){var c=t.apply(n,e);function a(t){r(c,o,i,a,l,"next",t)}function l(t){r(c,o,i,a,l,"throw",t)}a(void 0)})}}function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function c(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?i(Object(e),!0).forEach(function(n){a(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEac
1h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function a(t,n,e){return(n=s(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(n){var e=function(n,e){if("object"!=t(n)||!n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var o=r.call(n,e||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==t(e)?e:e+""}if("undefined"==typeof HandleSlideItem){var u=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)},e=[{key:"addSplideLink",value:function(t){var n=this,e=t.parentId,r=t.options||{},o="/2025/splide-4.1.3/dist/js/splide.min.js",i="/2025/splide-4.1.3/dist/css/splide-core.min.css";if(t.customDomain&&(o="".concat(t.customDomain,"/2025/splide-4.1.3/dist/js/splide.min.js"),i="".concat(t.customDomain,"/2025/splide-4.1.3/dist/css/splide-core.min.css")),!document.querySelector('link[href="'.concat(i,'"]'))){var a=document.createElement("link");a.rel="stylesheet",a.href=i,document.head.appendChild(a)}new Promise(function(t){var n=document.querySelector('script[src="'.concat(o,'"]'));if(n&&"true"===n.dataset.loaded)return t();if(n)n.addEventListener("load",function(){return t()});else{var e=document.createElement("script");e.src=o,e.defer=!0,e.addEventListener("load",function(){e.dataset.loaded="true",t()}),document.head.appendChild(e)}}).then(function(){var t=c(c({type:"loop",pagination:!1},r),{},{classes:{arrows:"".concat(e,"_arrows ").concat(e,"_arrows--ltr arrows"),arrow:"".concat(e,"__arrow arrow"),prev:"".concat(e,"__arrow-prev prevArrow"),next:"".concat(e,"__arrow-next nextArrow")}});new Splide("#".concat(e),t).mount(),n.removeAreaAttribute(e)})}},{key:"createStyle",value:function(t){var n=document.createElement("style");n.textContent="\n    .".concat(t,"_arrows {\n    width: 100%;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    }\n    .").concat(t,"_arrows button {\n    border: none;\n    transition: all 300ms;\n    cursor: pointer;\n    border-radius: 50%;\n    padding: 5px;\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    position: absolute;\n    z-index: 10;\n    background-color: transparent;\n    }\n    .").concat(t,"_arrows button svg {\n    fill: var(--primary);\n    }\n    .").concat(t,"_arrows button:hover {\n    background: #0810184f;\n    }\n    .").concat(t,"__arrow-prev {\n    transform: rotateY(180deg);\n    left: 0;\n    top: calc(50% - 25px);\n    }\n    .").concat(t,"__arrow-next {\n    right: 0;\n    top: calc(50% - 25px);\n    }\n    div.").concat(t,"SlideItem {\n    width: 80%;\n    margin: auto;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    column-gap: 30px;\n    }\n    .").concat(t,"SlideImgBox {\n    width: 350px;\n    height: 350px;\n    border-radius: 50%;\n    overflow: hidden;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    }\n  .").concat(t,"__slide img, .").concat(t,"SlideImg {\n        width: 100%;\n        height: auto;\n        aspect-ratio: 1/1;\n        object-fit: cover;\n    }\n    div.").concat(t,"SlideContent {\n    width: calc(100% - 380px);\n    }\n    p.").concat(t,"ItemText {\n    font-size: 18px;\n    line-height: 25px;\n    text-align: start;\n    margin-bottom: 25px;\n    }\n    div.").concat(t,"SlideAuthorRoleBox {\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n    justify-content: start;\n    align-items: start;\n    }\n    p.").concat(t,"SlideAuthorName {\n    text-align: start;\n    font-size: 17px;\n    line-height: 25px;\n    font-weight: bold;\n    margin-bottom: 0;\n    }\n    p.").concat(t,"SlideRole {\n    text-align: start;\n    font-size: 12px;\n    line-height: 20px;\n    color: var(--primary);\n    }\n\n    @media (max-width:1200px){\n      .").concat(t,"SlideImgBox {\n            width: 300px;\n            height: 300px;\n        }\n        div.").concat(t,"SlideContent {\n            width: calc(100% - 330px);\n        }\n    }\n    @media (max-width:992px){\n    div.").concat(t,"SlideContent {\n       width: 100%;\n    }\n    div.").concat(t,"SlideItem {\n      flex-direction: column;\n      row-gap: 30px;\n    }\n    div.").concat(t,"SlideImgBox {\n       max-width: 350px;\n       width: 90%;\n       aspect-ratio: 1 / 1;\n       height: auto;\n    }\n    p.").concat(t,"ItemText,\n    p.").concat(t,"SlideAuthorName,\n    p.").concat(t,"SlideRole {\n       text-align: center;\n    }\n    div.").concat(t,"SlideAuthorRoleBox {\n       justify-content: center;\n       align-items: center;\n    }\n    }\n    "),document.body.appendChild(n)}},{key:"fetchTestimonialData",value:(a=o(n().m(function t(){var e,r,o;return n().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=1,t.n=2,fetch("/2025/1-template/handleSlide/testimonials.json");case 2:if((e=t.v).ok){t.n=3;break}throw new Error("Erro HTTP: ".concat(e.status));case 3:return t.n=4,e.json();case 4:return r=t.v,t.a(2,r);case 5:return t.p=5,o=t.v,console.error("Erro ao buscar os depoimentos:",o),t.a(2,[])}},t,null,[[1,5]])})),function(){return a.apply(this,arguments)})},{key:"handleSlideItem",value:(i=o(n().m(function t(e){var r,o,i,c,a;return n().w(function(t){for(;;)switch(t.n){case 0:if(r=e.parentId,o=document.querySelector('[data-id="'.concat(r,'SlideList"]')),i=e.pageName,c=[],!(Array.isArray(e.customSlideItems)&&e.customSlideItems.length>0)){t.n=1;break}c=e.customSlideItems,t.n=3;break;case 1:return t.n=2,this.fetchTestimonialData();case 2:a=t.v,c=a.data||[];case 3:c&&c.length>0&&(c.forEach(function(t){var n;if(e.customSlideItems||!0===(null===(n=t.allowedPages)||void 0===n?void 0:n[null==i?void 0:i.trim().toLowerCase()])){var c=t.image?'<div class="'.concat(r,'SlideImgBox"><img src="').concat(t.image,'" alt="').concat(t.name||"Image",'" class="').concat(r,'SlideImg"></div>'):"",a=t.text?'<p class="'.concat(r,'ItemText">').concat(t.text,"</p>"):"",l=t.name?'<p class="'.concat(r,'SlideAuthorName">').concat(t.name,"</p>"):"",s=t.role?'<p class="'.concat(r,'SlideRole">').concat(t.role,"</p>"):"",u=t.institution?'<p class="'.concat(r,'SlideRole">').concat(t.institution,"</p>"):"",d=t.title?'<p class="'.concat(r,'SlideTitleItem">').concat(t.title,"</p>"):"",p=document.createElement("li");p.className="splide__slide",p.innerHTML='\n            <div class="'.concat(r,'SlideItem">\n              ').concat(c,'\n                <div class="').concat(r,'SlideContent">\n                ').concat(d,"\n                  ").concat(a,'\n                  <div class="').concat(r,'SlideAuthorRoleBox">\n                    ').concat(l,"\n                    ").concat(s,"\n                    ").concat(u,"\n                  </div>\n                </div>\n              </div>\n            "),o.append(p)}}),o.querySelectorAll(".splide__slide").length>0&&(this.addSplideLink(e),this.createStyle(r)));case 4:return t.a(2)}},t,this)})),function(t){return i.apply(this,arguments)})},{key:"removeAreaAttribute",value:function(t){var n=document.querySelectorAll("#".concat(t,"-list .splide__slide")),e=document.querySelectorAll("#".concat(t,"-list .splide__slide")),r=document.querySelectorAll("#".concat(t,"-list .splide__slide")),o=document.querySelectorAll("#".concat(t,"-list .splide__slide"));n&&n.length>
10&&n.forEach(function(t){t.hasAttribute("aria-label")&&t.removeAttribute("aria-label")}),e&&e.length>0&&e.forEach(function(t){t.hasAttribute("aria-roledescription")&&t.removeAttribute("aria-roledescription")}),r&&r.length>0&&r.forEach(function(t){t.hasAttribute("aria-hidden")&&t.removeAttribute("aria-hidden")}),o&&o.length>0&&o.forEach(function(t){t.hasAttribute("role")&&t.removeAttribute("role")})}}],e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,i,a}();window.HandleSlideItem||(window.HandleSlideItem=new u)}})();

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