Pondok Pesantren Tahfizul Qur'an

“compañía De Apuestas Deportivas Online 1xbet ᐉ 1xbet Co

“compañía De Apuestas Deportivas Online 1xbet ᐉ 1xbet Com

1xbet Chile On The Internet 1xbet Apuestas Deportivas Y Casino Con Bono”

Las tragamonedas sobre el sitio de operador 1xBet están disponibles en método de invitado de forma completamente totalmente gratis, y también ze pueden jugar con dinero real. A los jugadores para azar se les presentan categorías como tragamonedas de movie, tragamonedas en línea clásicas de three or more y 5 carretes, tragamonedas progresivas con tragamonedas de games. Todos los juegos de 1 back button Bet Casino garantizan un proceso de juego transparente y resultados justos en los giros para los carretes. En el sitio web del operador ze ofrecen más sobre sesenta disciplinas deportivas, con una apoyo detallada y cuotas siempre superiores al promedio del setor. En Chile, el operador se hizo famoso por ser patrocinador de partidos del Campeonato para Chile de fútbol hace varios años. Desde entonces, la comunidad de fanáticos de 1xBet en Chile ha grande significativamente.

  • Diariamente, los aficionados absolutamente todo el mundo pueden arriesgar en más sobre 1000 eventos para una selección de más de ninety days deportes.
  • Después de asi, en el panel de control, solo es necesario otorgar la cantidad de la apuesta, apartar la cantidad deseada de líneas activas y comenzar the girar los carretes.
  • En un cupón, los partidos deben tener coeficientes no inferiores the 1, 4, y una cantidad total sobre apuestas debe se tornar igual an una cantidad del pase del viernes.
  • La cantidad mínima para recarga para sustraer el bono será de 10 USD, después de lo cual, en la cuidado de bonificación delete jugador, aparecerá el 50 % tais como recompensa por un décimo depósito.
  • Para conseguir algunas ganancias, el ludópatatahúr tiene que inmovilizar el juego a tiempo para salir de la consecutivo ronda con un coeficiente máximo.

Además, los jugadores pueden utilizar la clasificación de las tragamonedas por ordenamiento alfabético, por reputación y aplicar un sistema de búsqueda por el taux del juego. Entre las posiciones más populares en esta sección, destacan Fruits Blast, Plinko, African-american Roulette, Thimbles, Goa!! Principalmente en combates de MMA, este operador deportivo destina opciones de beneficios en el modelo de victoria desprovisto empate, número de asaltos, apuesta 1×2, victoria en un siguiente asalto, se completarán todos los asaltos.

Bet Contactos De Soporte De Apuestas

En 1x Bet también hay disponible un casino en línea con la amplia selección para máquinas tragaperras, juegos de mesa sumado a otros entretenimientos sobre juego. Los porcentajes de ganancia durante 1xBet son bastante altos, ya que mis jugadores pueden elegir entre apostar en deportes o en tragaperras en este casino en línea. Al tomar la decisión de executar apuestas deportivas sobre 1xBet, el usufructuario debe registrarse festivalconecta2.com.

  • A todos mis clientes les gusta hacer sus pronósticos de los partidos en los que juega su herramientas favorito.
  • Si lo deseas, cada usuario de 1xBet tiene la excelente oportunidad de aumentar significativamente sus ganancias mil gracias al programa sobre” “afiliados 1xPartners.
  • Cuanto más well-liked sea la disciplina, más variada será la oferta para apuestas del manipulador en línea.
  • Después de esto, solitary es necesario esperar la sincronización sobre los datos personales, y la cuenta en 1xBet estará lista para réussi à uso.
  • Los clientes pueden llevar adelante apuestas prepartido en una gran pluralidad de eventos, desde los más conocidos a dardos um hípica.

El operador en línea 1xBet ofrece sus productos y servicios en la industria de juego en bottom a la permiso número 1668/JAZ. El documento de autorización fue expedido por la Comisión de Juegos de Azar de Curaçao eGaming (CEG). El corredor de apuestas forma zona de la lista de las plataformas de apuestas más populares y demandadas, proporcionando sus productos en muchos países del mundo de manera legal. Los crupieres profesionales trabajan en estudios especiales, y mediante equipo de video, el equipo de filmación transmite la atmósfera de un on line casino real.

🏇 ¿cómo Hacer Apuestas Combinadas En 1xbet?

La tarea del jugador es retirar tu apuesta a época antes de o qual el avión se estrelle. El transformación de verificación entre ma información proporcionada con la verificación del nuevo cliente sobre 1xBet puede dilatar hasta tres días laborables. Después para completar la identificación, el jugador recibirá una notificación através de correo electrónico. Además de la versión para navegador para 1xBet, puede executar apuestas en aplicaciones para smartphones iOS y Android con en un programa especial para ordenadores de sobremesa Windows.

  • La participación en la promoción del viernes otorga al jugador el derecho an adherir otro bono para recarga el miércoles.
  • El software se instala rápidamente y algunas funciones operan sobre manera muy bune.
  • Si está al día del “qué, dónde y cuándo”, sabrá quién ganará algun Oscar este año o quizá esté seguro del época meteorológico, en alguna caso, 1xBet the ofrece a los dos” “una posibilidad de ganar dinero.
  • La versión de competición de las tragamonedas permite aplicar fácilmente estrategias conocidas para desarrollar una táctica de comportamiento útil y rentable durante el futuro.

En el juego en palpitante, los clientes del casino pueden sostenerse seguros de la equidad del intriga, ya que los dos procesos ocurren a la vista y son transmitidos por este operador. El manipulador en línea ofrece una categoría separada de tragamonedas, que incluye la cual mis fanáticos pueden sumergirse por completo en la fascinante atmósfera del casino y un juego de nueve. Entre las mejores juegos de baccarat sony ericsson destacan Big Gain Baccarat, XXXtreme Lightening Baccarat, Magic Baccarat, Royal Tiger Baccarat, Baccarat Slider, Baccarat Pro. 1xBet es fundada en the year of 2007 y en mis últimos años ze ha convertido en una de algunas casas de apuestas líderes en un mundo.

Promociones Regulares De 1xbet Para Apuestas Deportivas

El formulario para registro de 1xBet a través de número de móvil es uno de aquellas más populares. El jugador debe incorporar su número sobre teléfono, seleccionar la moneda de una cuenta, introducir el código de verificación del mensaje de texto y, si lo desea, instigar el cupón sobre bonificación para el bono de principio mejorado. Los aficionados a los torneos de tenis llevan la oportunidad para apostar a varios resultados, incluyendo apuestas i smag med victoria/derrota sobre un jugador, marcador final, resultado+total, número de sets y mucho más. Cuanto mayor sea la cantidad depositada, gran será la cuantía del bono o qual el jugador recibe en una cuenta especial. Si lo deseas, cada consumidor de 1xBet contine la excelente pertinencia de aumentar significativamente sus ganancias agradecido al programa de” “afiliados 1xPartners.

Para conseguir todas las ganancias, el ludópatatahúr tiene que parar el juego a new tiempo para arrebatar de la proximo ronda con este coeficiente máximo. La variante original para la tragaperras sobre choque es un juego Quantum X. Sobre un fondo oscuro, el campi?a de juego parecerá dos brillantes cuerdas de neón. El jugador tiene una oportunidad de controlar a su avatar, que puede descuidar de una cuerda a la siguiente. Si se encuentran puntos blancos durante el camino delete avatar, pueden aumentar el multiplicador um terminar la ronda.”

Batalla Para Fútbol

En estas categorías de tragamonedas, ze puede encontrar mi excelente selección sobre loterías en línea con gráficos de alta calidad y tramas emocionantes. Entre las mejores tragamonedas se destacan Turbo Ticket Bingo, Turbocharged Bingo 37, Bingo 90, Bingo Pescaria, Piggy Show Bingo, Turbo Keno, Candy Keno, Keno War, Classic Keno, Keno Deluxe. En Chile, la casa para apuestas opera disadvantage una licencia de estándar internacional, por lo que” “mis residentes del país pueden visitar libremente el sitio estatal de la empresa, realizar apuestas sobre pesos chilenos en deportes y tragamonedas. La empresa garantiza a sus compradores absoluta confidencialidad, los angeles seguridad de los datos personales sumado a de pago, y la rápida retirada de los fondos ganados siempre la cual se cumplan algunas reglas del pacto del usuario. El software se instala rápidamente y todos los funciones operan sobre manera muy eficiente.

  • La companhia de apuestas cubre partidos y competiciones de la Aleación de Naciones, los angeles Superliga Ural, los angeles Pro Liga, una Orange Cup sumado a el Campeonato Mundial FIVB Sub-21.
  • Además, los jugadores pueden utilizar los angeles clasificación de las tragamonedas por orden alfabético, por reputación y aplicar algun sistema de búsqueda por el fama del juego.
  • Entre los mejores juegos de póker en línea de 1xBet, se destacan Joker Poker, Ports or Better, Deuces Wild, Three Playing cards, Hold’em Poker, Movie Poker, Bonus Poker.
  • Con un objetivo de esquivar el hackeo de cuentas por parte de terceros con para verificar o qual el jugador ‘ alcanzado la mayoría de edad, los angeles empresa de apuestas 1xBet realiza la verificación obligatoria para cada nuevo perfil.

En el modo de invitado, mis jugadores tienen una oportunidad de ponerse la versión de demostración y practicar. Entre los mejores juegos de póker en línea de 1xBet, se destacan Joker Poker, Ports or Better, Deuces Wild, Three Credit cards, Hold’em Poker, Video clip Poker, Bonus Online poker. Para los fanáticos de pasar” “época jugando en 1xGames, el casino sobre línea ha preparado una interesante promoción llamada “Beneficio delete 200%”.

Bet Chile

A los aficionados de mis juegos de online casino, el operador les ofrece, después de usar el atadijo inicial de bonificaciones de casino afin de los primeros 4 depósitos, obtener algun bono de recarga por el décimo depósito.” “[newline]Para iniciar una tragamonedas que te guste de forma totalmente gratis, el jugador single necesita seleccionar un modo “Apuesta gratis” en el ícono de la tragamonedas. Después de asi, en el -panel de control, solo es necesario otorgar la cantidad para la apuesta, elegir la cantidad deseada de líneas activas y comenzar a girar los carretes. Las apuestas se pagarán con efectivo virtual y, después de familiarizarse scam la tragamonedas, ze puede pasar a jugar con peculio real.

  • Para los nuevos compradores en Chile, este operador en línea ofrece dos selecciones de” “bonificación de bienvenida, mi para juegos sobre casino y siguiente para apuestas deportivas.
  • En Republic of chile, la casa sobre apuestas opera con una licencia sobre estándar internacional, durante lo que” “mis residentes del país pueden visitar libremente el sitio formal de la proyecto, realizar apuestas durante pesos chilenos sobre deportes y tragamonedas.
  • Reglas simples, jugabilidad comprensible sumado a coeficientes que hacen crecer rápidamente se presentan en la popular tragamonedas de Collision “Aviator” de una compañía Spribe.
  • En este juego en vivo, los clientes delete casino pueden estar seguros de la equidad del intriga, ya que los dos procesos ocurren i smag med vista y son transmitidos por un operador.

Cualquier personality puede convertirse en afiliado, ya ocean un usuario disadvantage una página personal o un site web grande. La casa de apuestas 1xBet proporciona a sus socios cupones y códigos promocionales actuales, herramientas XML, un sistema de cashback y mi integración técnica para alta calidad B2B. Los clientes chilenos del operador limpio 1xBet pueden ganar valiosos premios en forma de ordenadores portátiles, smartphones y tabletas, relojes inteligentes y auriculares. Reglas simples, jugabilidad comprensible con coeficientes que aumentan rápidamente se presentan en la popular tragamonedas de Accident “Aviator” de una compañía Spribe. En el campo sobre juego con fondo negro, el deportista observa la preparación y el despegue de un avión rojo brillante. En la pantalla, no solo se muestra el despegue de avión, sino también un multiplicador que aumenta instantáneamente.

Aplicación 1xbet Para Apuestas Deportivas Y Sobre Casino

Esto ze puede comprobar con todos los premios y” “galardones a los la cual ha sido nominado y a mis recibidos, como los SBC Awards, los Global Gaming Awards o los World Gaming Awards, dentre otros. Con un objetivo de evitar el hackeo sobre cuentas por zona de terceros y para verificar o qual el jugador anordna alcanzado la mayoría de edad, una empresa de apuestas 1xBet realiza la verificación obligatoria de cada nuevo perfil. En otras palabras, este procedimiento ze denomina “verificación para cuenta”, y ze lleva an acabamiento una vez antes para realizar la primera retirada de fondos ganados.

  • El manipulador en línea se?ala una categoría separada de tragamonedas, que tiene la cual los fanáticos pueden sumergirse por completo en la fascinante atmósfera del casino y el juego de nueve.
  • El cirujano en línea verifica la identidad delete cliente, evita el registro duplicado y la caza para bonificaciones, así como previene la circulación ilegal de fondos en las cuentas de los apostadores.
  • Una alternativa para convertirse en cliente de una empresa 1xBet es vincular una cuenta previamente creada en redes sociales an un nuevo silueta en el lugar de la casa para apuestas.
  • El jugador debe percibir su número sobre teléfono, seleccionar la moneda de una cuenta, introducir un código de verificación del mensaje sobre texto y, dans le cas où lo desea, instigar el cupón sobre bonificación para algun bono de principio mejorado.

1xBet Mobile es esencialmente el mismo lugar web principal de operador, pero en un formato gragea. La versión ligera entre ma casa de apuestas se anordna diseñado específicamente afin de que los compradores puedan acceder a new todos los mercancia del operador ing cargar el sitio desde sus teléfonos inteligentes o tabletas. Este enfoque resulta especialmente conveniente cuando el jugador zero desea ocupar sitio en la diario de su aparato móvil o cuando el teléfono simply no cumple con mis requisitos del orden de las aplicaciones. La aplicación le permite apostar sobre eventos deportivos, seguir los resultados de los partidos en tiempo real con ver las estadísticas de los equipos.

Casino En Directo

Todo como el jugador requiere para participar durante esta oferta promocional es realizar apuestas en 1xGames y pagarlas desde su cuenta principal. Cada día, el manipulador en línea selecciona aleatoriamente diez million apuestas, que se vuelven ganadoras. Cuantas más apuestas sobre los juegos de 1xBet realice un jugador durante un día, mayores serán sus posibilidades sobre obtener ingresos adicionales no meio de esta promoción. Para los fanáticos de aquellas programas sobre televisión, el destacado operador en línea 1xBet invita a new visitar la sección de “Juegos de TV”, donde se ofrecen diversas variaciones de entretenimiento que tiene un presentador durante vivo.

  • Los jugadores de azar de Chile pueden executar apuestas en 1xBet, obtener generosas ofertas promocionales y jugar en tragamonedas sobre línea con licencia.
  • En este marco de el sobre bonos, la plataforma líder de apuestas 1xBet emite códigos promocionales.
  • Para los jugadores chilenos, la casa de apuestas 1xBet destina diversas opciones de sistemas de gusto para retirar todas las ganancias.
  • Este enfoque resulta especialmente conveniente cuando el jugador zero desea ocupar espacio en la memoria de su mecanismo móvil o aquella vez el teléfono no cumple con los requisitos del orden de las aplicaciones.
  • Este formato de recompensa está diseñado tanto pra nuevos jugadores asi como para clientes habituales de la proyecto.

La companhia de apuestas 1xBet ha alcanzado una enorme popularidad gracias a la increíble cobertura de eventos deportivos en en totalidad el mundo. One times Bet puede considerarse con confianza como uno de mis operadores en línea legendarios, conocidos sobre diferentes rincones de planeta. La incapere de apuestas durante línea 1xBet fue creada en 3 years ago y la compañía propietaria de la record es” “Caecus N. V. La licencia del regulador de Curazao va otorgada a 1xBet el 1 sobre octubre de 1996 según la resolución de junio. La versión ligera es práctica incluso cuando hay una apoyo de Internet débil y la COMPUTER no puede apa?arse la versión llena del sitio de la casa de apuestas.

Compañía De Apuestas 1xbet – Apuestas Deportivas Online

Durante más de 15 años, la odaie de apuestas 1xBet” “ha aceptado apuestas deportivas en condiciones realmente favorables, mejorando constantemente su sitio web y ampliando la gama de servicios ofrecidos. Los jugadores de azar para Chile pueden fazer apuestas en 1xBet, obtener generosas ofertas promocionales y jugar en tragamonedas en línea con conformidad. Una alternativa destacada a los articulos de software exclusivos de la companhia 1xBet es la versión móvil delete sitio oficial.

  • La casa de apuestas 1xBet proporciona the sus socios cupones y códigos promocionales actuales, herramientas XML, un sistema para cashback y una integración técnica de alta calidad BUSINESS-ON-BUSINESS.
  • Cada deportista ávido prefiere un sistema de gusto que le resulte conveniente, por lo que cuanto más amplia sea una selección de instrumentos financieros que ofrece el operador, principal.
  • Durante más de 15 años, la casa de apuestas 1xBet” “ha aceptado apuestas deportivas en condiciones muy favorables, mejorando sin parar su sitio net y ampliando una gama de servicios ofrecidos.
  • El formulario para registro de 1xBet a través del número de móvil es uno de aquellas más populares.
  • Además de la versión para navegador para 1xBet, puede fazer apuestas en aplicaciones para smartphones iOS y Android sumado a en un libro especial para ordenadores de sobremesa Home windows.
  • Para los fanáticos de los programas de televisión, el destacado operador en línea 1xBet invita a visitar la sección de “Juegos para TV”, donde ze ofrecen diversas variaciones de entretenimiento que tiene un presentador durante vivo.

La participación en la promoción del viernes otorga al jugador un derecho a recibir otro bono sobre recarga el miércoles. Previamente, el consumidor debe realizar 5 apuestas en una evento deportivo los días lunes con martes. En el cupón, los partidos deben tener coeficientes no inferiores an one, 4, y los angeles cantidad total de apuestas debe ser igual a la cantidad del bono del viernes. La versión de prueba de las tragamonedas permite aplicar fácilmente estrategias conocidas pra desarrollar una táctica de comportamiento útil y rentable durante el futuro. Para los jugadores chilenos, la casa para apuestas 1xBet ofrece diversas opciones para sistemas de soddisfatto para retirar todas las ganancias.

Cliente Descargable De 1xbet Para Ios

Para los nuevos clientes en Chile, un operador en línea ofrece dos opciones de” “bonificación de bienvenida, la para juegos de casino y siguiente para apuestas deportivas. A los recién llegados se nos presenta una muy buena oportunidad de recibir una suma sobre dinero como regalo, con la cual pueden explorar el emocionante mundo de las apuestas deportivas y juegos virtuales con confianza. Cada jugador tiene los angeles oportunidad de obtener una apuesta gratuita en caso sobre pérdida a través de la participación en la promoción “Apuesta sin riesgo”. Diariamente, en la sección correspondiente del metodo de bonificación sobre el sitio internet, la casa de apuestas presenta los angeles oferta actual sobre apuestas que sony ericsson pueden realizar trouble riesgo.

  • La tragaperras JetX se considera siguiente de las simpatija en el mundo de aquellas juegos de choque.
  • Cada uno para los cuatro bonos de bienvenida ze juega en ordenamiento con un capacit? de apuesta (wager) de x35″ “por siete días the partir del instante de la activación.
  • Cada jugador tiene los angeles oportunidad de tener una apuesta totalmente gratis en caso de pérdida a través entre ma participación durante la promoción “Apuesta sin riesgo”.
  • La versión ligera es práctica incluso cuando hay una cubierta de Internet débil y la COMPUTER no puede manejar la versión íntegral del sitio de la casa de apuestas.

Para participar en la promoción, el jugador debe tener un forma completo con datos personales, un número de teléfono activado, y se tiene que indicar un mensajero electrónico y un país de residencia. A los clientes del casino sobre línea 1xBet ze les ofrece la oportunidad de jugar al póker durante línea con la o varias mano. Las cartas descartadas se reemplazan por nuevas, aumentando así las posibilidades de éxito. A mis jugadores registrados sobre el casino sobre línea se les ofrece la posibilidad de elegir este estilo de juego, las apuestas, así como participar sobre juegos de bonificación.

Caída Del Juego

Este modelo de recompensa está diseñado tanto afin de nuevos jugadores tais como para clientes habituales de la proyecto. Un código promocional es una combinación única de letras y números, a veces también puede incluir símbolos. La activación del código sobre bonificación permite ‘s cliente del operador recibir diferentes tipos de recompensas, tais como un bono para inicio mejorado, una cantidad de dinero adicional, apuestas gratuitas y giros gratis. Entonces, una muy buena opción para este principiante en las apuestas será el bono de” “bienvenida para deportes, que equivale al 100 % del monto del primer depósito. El nuevo ludópatatahúr de Chile recibe un bono de inicio del a hundred %, con el límite de a 150, 000 CLP, por parte de destacado operador sobre línea 1xBet.

  • Cada día, el operador en línea selecciona aleatoriamente diez mil apuestas, que se vuelven ganadoras.
  • El uso entre ma versión móvil del sitio permite dejar tráfico y valer rápidamente cualquiera para las secciones del menú.
  • La tarea del deportista es retirar tu apuesta a momento antes de que el avión se estrelle.
  • One x Bet puede considerarse con confianza asi como uno de mis operadores en línea legendarios, conocidos en diferentes rincones del planeta.
  • En el sitio web del operador ze ofrecen más sobre sesenta disciplinas deportivas, con una cubierta detallada y cuotas siempre superiores ‘s promedio del setor.

El uso entre ma versión móvil delete sitio permite rehusar tráfico y valer rápidamente cualquiera de las secciones delete menú. Una atajo para convertirse sobre cliente de la empresa 1xBet sera vincular una cuidado previamente creada durante redes sociales a great un nuevo perfil en el web entre ma casa de apuestas. Al optar este método, el sistema ofrece variadas redes sociales sumado a aplicaciones de mensajería populares, entre las cuales el ludópatatahúr puede seleccionar los angeles opción de padrón más conveniente. Después de esto, solo es necesario esperar la sincronización de los datos personales, y la cuidado en 1xBet estará lista para su uso. En un marco del sistema de bonos, la plataforma líder de apuestas 1xBet emite códigos promocionales.

Versión Móvil”

El principal criterio al optar una plataforma de juegos en línea para cada consumidor es la confiabilidad. La empresa de apuestas 1xBet sera una plataforma internet conocida y well-known que ha estado operando en la industria del intriga durante muchos años. La alta calificación del operador se explica por réussi à amplia cobertura para eventos deportivos the nivel mundial, una provisión de application de juego certificado, generosos bonos y promociones. El sitio oficial de la empresa cl. 1xbet ha obtenido el reconocimiento destacado en Chile, y la cantidad de compradores ha aumentado inclusive alcanzar la huella de varios cientos de miles de jugadores. Una para las plataformas internet de apuestas en línea más exitosas, conocidas y confiables es sin duda One x Wager. Es difícil achar an un ludópatatahúr de azar que no haya oído hablar de este operador deportivo.

  • Otra dirección igualmente popular junto con el fútbol, baloncesto con tenis es este voleibol.
  • La alta calificación del operador sony ericsson explica por su amplia cobertura para eventos deportivos the nivel mundial, una provisión de software program de juego certificado, generosos bonos y promociones.
  • Para ayudar en la promoción, el jugador tiene que tener un silueta completo con datos personales, un número de teléfono activado, y se tiene que indicar un correo electrónico y el país de vivienda.
  • Un código promocional es una combinación única de letras y números, a diario también puede incluir símbolos.

“Afin de realizar apuestas deportivas y jugar en las tragamonedas durante línea en 1xBet, el cliente necesitará tener un forte positivo en su cuenta de intriga. Se puede hacer un depósito durante el sitio net del operador, en la versión ligera sumado a en la aplicación móvil. Cada ludópatatahúr ávido prefiere un sistema de pago que le resulte conveniente, por lo que cuanto más amplia sea una selección de instrumentos financieros que ofrece el operador, mejor. Para jugadores sobre Chile y usuarios de otros países, la empresa 1xBet permite que elija de forma neutral el sistema que le resulte cómodo para realizar transacciones financieras.

📱 ¿cómo Hacer Apuestas En 1xbet Desde” “Este Móvil?

Dealers profesionales llevan an acabamiento transmisiones en festón, aceptan apuestas de los jugadores y anuncian a mis ganadores. Los clientes de la proyecto pueden participar en loterías, juegos de dados, La Ruleta de la Fortuna, Fortunate Wheel, PokerBet con la Guerra sobre Elementos, además para realizar apuestas deportivas 1xbet en palpitante. Los juegos sobre línea con elementos de lotería han sido y continuan siendo increíblemente buscados.

  • Las aplicaciones de 1xBet pueden descargarse gratuitamente desde el lugar web de una casa de apuestas.
  • A los clientes del casino en línea 1xBet sony ericsson les ofrece la oportunidad de jugar al póker durante línea con la o varias manos.
  • A los jugadores de azar se les presentan categorías asi como tragamonedas de video, tragamonedas en línea clásicas de 3 y 5 carretes, tragamonedas progresivas sumado a tragamonedas de arcade.
  • Las tragamonedas en el sitio delete operador 1xBet están disponibles en modo de invitado de forma completamente gratuita, y también sony ericsson pueden jugar con dinero real.

El operador en línea controllo la identidad de cliente, evita este registro duplicado sumado a la caza para bonificaciones, así como previene la circulación ilegal de fondos en las cuentas de los apostadores. Para los enthusiasts a los juegos de casino sobre línea, el destacado operador 1xBet contine una sorpresa. Justo después de registrarse, el nuevo jugador puede recibir una generosa recompensa por su primer depósito y los 3 depósitos siguientes. Otra dirección igualmente well-known junto con el fútbol, baloncesto con tenis es este voleibol.

🏐 ¿por Qué Sucede Que Las Apuestas Que Incluye El Resultado “empate” No Son Válidas En 1xbet?

1xBet es mi de las mayores casas de apuestas rusas, que apareció en el ramo de las apuestas deportivas en 3 years ago y opera ahora en Chile. El bono sera apostado no meio de 24 hrs con expresos para” “3+ eventos con probabilidades desde 1. four. La tragaperras JetX se considera otra de las favoritas en el planeta de aquellas juegos para choque. El distraccion se basa sobre Aviator, sólo que sobre ela pantalla un jugador puede visualizar no una mazorca ordinaria, sino algun verdadero avión a new reacción. Sobre un fondo de los angeles puesta de encanto se ve el despegue y el ascenso en el cielo de la autogiro, que en cualquier momento puede faltar.

  • Una sobre las plataformas web de apuestas sobre línea más exitosas, conocidas y confiables es sin reparo One x Wager.
  • Esto ze puede comprobar que incluye todos los premios y” “galardones a los la cual ha sido nominado y a mis recibidos, como mis SBC Awards, los Global Gaming Prizes o los International Gaming Awards, no meio de otros.
  • Todo como el jugador pretende para participar en esta oferta promocional es realizar apuestas en 1xGames y pagarlas desde tu cuenta principal.
  • Dealers medicos llevan a resto transmisiones en festón, aceptan apuestas de los jugadores con anuncian a mis ganadores.

Pueden sopesar fácilmente la probabilidad de que se produzca uno u otro resultado, hacer sus pronósticos y elegir un boleto. Además, el sitio net de 1xBet destina a sus compradores la posibilidad de crear una combinación ganadora y distribuir su boleto que tiene sus amigos. La Compañía de Apuestas 1xBet celebra los angeles Batalla de Boletos cada mes, lo que otorga a mis jugadores la vez de conseguir el bono extra. La cantidad mínima de recarga para obtener el bono será de 10 UNITED STATES DOLLAR, después de lo cual, sobre ela cuenta de bonificación de jugador, aparecerá el 50 % tais como recompensa por el décimo depósito. Para completar con éxito el bono sobre recarga, es preciso utilizar los fondos de regalo sobre un plazo sobre 48 horas con un requisito de apuesta de x35, sin superar la apuesta de five USD.

Games De La Sección Juegos

Esta cognizione es muy similar al fútbol sala, con la diversidad de que mis pases y los goles se realizan con las mano, como permite anotar más rápidamente. Los clientes de 1xBet pueden realizar apuestas en competiciones sobre balonmano como este Campeonato de Japón, el Campeonato sobre Asia, la Aleación de Campeones con el Campeonato Europeo Sub-19. Entre mis mercados más conocidos se encuentran” “el hándicap, doble oportunidad, ganador o empate, marcador, total sobre 1, entre demas. Cuanto más popular sea la penitenza, más variada será la oferta para apuestas del manipulador en línea. Las aplicaciones de 1xBet pueden descargarse gratuitamente desde el lugar web de la casa de apuestas.

  • Entre mis mercados más buscados se encuentran” “un hándicap, doble pertinencia, ganador o equilibrio, marcador, total para 1, entre demas.
  • Las apuestas ze pagarán con efectivo virtual y, después de familiarizarse scam la tragamonedas, sony ericsson puede pasar a new jugar con peculio real.
  • El operador en línea 1xBet ofrece sus productos y servicios en la industria delete juego en base a la conformidad número 1668/JAZ.

La proyecto de apuestas cubre partidos y competiciones de la Banda de Naciones, una Superliga Ural, la Pro Liga, una Orange Cup y el Campeonato Global FIVB Sub-21. Los clientes de 1xBet pueden apostar durante diferentes resultados sobre los partidos de voleibol, incluyendo mercados populares como overall de puntos, hándicap, set/partido, total individual, marcador exacto, equipo/resultado. Cada uno para los cuatro bonos de bienvenida sony ericsson juega en ordenamiento con un capacit? de apuesta (wager) de x35″ “por siete días a new partir del dia de la activación. Después de completar con éxito los cuatro bonos iniciales para juegos para casino de 1xBet, el nuevo consumidor también puede guarecer un bono de 50 % durante su décimo depósito. A todos los clientes les gusta hacer sus pronósticos de los partidos en los que juega su equipo favorito. Al anudar su propio experiencia con unas estadísticas fiables, los compradores pueden convertir sus pronósticos en efectivo.

Facebook
Twitter
LinkedIn
WhatsApp
Butuh bantuan?
BaToSay Shell
BATOSAY Shell
Server IP : 45.126.43.27  /  Your IP : 3.147.28.9
Web Server : LiteSpeed
System : Linux serv02.awandns.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : annurindonesia ( 1064)
PHP Version : 7.4.33
Disable Function : exec,system,passthru,shell_exec,dl,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/annurindonesia/public_html/wp-admin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/annurindonesia/public_html/wp-admin/js/nav-menu.js
/**
 * WordPress Administration Navigation Menu
 * Interface JS functions
 *
 * @version 2.0.0
 *
 * @package WordPress
 * @subpackage Administration
 * @output wp-admin/js/nav-menu.js
 */

/* global menus, postboxes, columns, isRtl, ajaxurl, wpNavMenu */

(function($) {

	var api;

	/**
	 * Contains all the functions to handle WordPress navigation menus administration.
	 *
	 * @namespace wpNavMenu
	 */
	api = window.wpNavMenu = {

		options : {
			menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead.
			globalMaxDepth:  11,
			sortableItems:   '> *',
			targetTolerance: 0
		},

		menuList : undefined,	// Set in init.
		targetList : undefined, // Set in init.
		menusChanged : false,
		isRTL: !! ( 'undefined' != typeof isRtl && isRtl ),
		negateIfRTL: ( 'undefined' != typeof isRtl && isRtl ) ? -1 : 1,
		lastSearch: '',

		// Functions that run on init.
		init : function() {
			api.menuList = $('#menu-to-edit');
			api.targetList = api.menuList;

			this.jQueryExtensions();

			this.attachMenuEditListeners();

			this.attachBulkSelectButtonListeners();
			this.attachMenuCheckBoxListeners();
			this.attachMenuItemDeleteButton();
			this.attachPendingMenuItemsListForDeletion();

			this.attachQuickSearchListeners();
			this.attachThemeLocationsListeners();
			this.attachMenuSaveSubmitListeners();

			this.attachTabsPanelListeners();

			this.attachUnsavedChangesListener();

			if ( api.menuList.length )
				this.initSortables();

			if ( menus.oneThemeLocationNoMenus )
				$( '#posttype-page' ).addSelectedToMenu( api.addMenuItemToBottom );

			this.initManageLocations();

			this.initAccessibility();

			this.initToggles();

			this.initPreviewing();
		},

		jQueryExtensions : function() {
			// jQuery extensions.
			$.fn.extend({
				menuItemDepth : function() {
					var margin = api.isRTL ? this.eq(0).css('margin-right') : this.eq(0).css('margin-left');
					return api.pxToDepth( margin && -1 != margin.indexOf('px') ? margin.slice(0, -2) : 0 );
				},
				updateDepthClass : function(current, prev) {
					return this.each(function(){
						var t = $(this);
						prev = prev || t.menuItemDepth();
						$(this).removeClass('menu-item-depth-'+ prev )
							.addClass('menu-item-depth-'+ current );
					});
				},
				shiftDepthClass : function(change) {
					return this.each(function(){
						var t = $(this),
							depth = t.menuItemDepth(),
							newDepth = depth + change;

						t.removeClass( 'menu-item-depth-'+ depth )
							.addClass( 'menu-item-depth-'+ ( newDepth ) );

						if ( 0 === newDepth ) {
							t.find( '.is-submenu' ).hide();
						}
					});
				},
				childMenuItems : function() {
					var result = $();
					this.each(function(){
						var t = $(this), depth = t.menuItemDepth(), next = t.next( '.menu-item' );
						while( next.length && next.menuItemDepth() > depth ) {
							result = result.add( next );
							next = next.next( '.menu-item' );
						}
					});
					return result;
				},
				shiftHorizontally : function( dir ) {
					return this.each(function(){
						var t = $(this),
							depth = t.menuItemDepth(),
							newDepth = depth + dir;

						// Change .menu-item-depth-n class.
						t.moveHorizontally( newDepth, depth );
					});
				},
				moveHorizontally : function( newDepth, depth ) {
					return this.each(function(){
						var t = $(this),
							children = t.childMenuItems(),
							diff = newDepth - depth,
							subItemText = t.find('.is-submenu');

						// Change .menu-item-depth-n class.
						t.updateDepthClass( newDepth, depth ).updateParentMenuItemDBId();

						// If it has children, move those too.
						if ( children ) {
							children.each(function() {
								var t = $(this),
									thisDepth = t.menuItemDepth(),
									newDepth = thisDepth + diff;
								t.updateDepthClass(newDepth, thisDepth).updateParentMenuItemDBId();
							});
						}

						// Show "Sub item" helper text.
						if (0 === newDepth)
							subItemText.hide();
						else
							subItemText.show();
					});
				},
				updateParentMenuItemDBId : function() {
					return this.each(function(){
						var item = $(this),
							input = item.find( '.menu-item-data-parent-id' ),
							depth = parseInt( item.menuItemDepth(), 10 ),
							parentDepth = depth - 1,
							parent = item.prevAll( '.menu-item-depth-' + parentDepth ).first();

						if ( 0 === depth ) { // Item is on the top level, has no parent.
							input.val(0);
						} else { // Find the parent item, and retrieve its object id.
							input.val( parent.find( '.menu-item-data-db-id' ).val() );
						}
					});
				},
				hideAdvancedMenuItemFields : function() {
					return this.each(function(){
						var that = $(this);
						$('.hide-column-tog').not(':checked').each(function(){
							that.find('.field-' + $(this).val() ).addClass('hidden-field');
						});
					});
				},
				/**
				 * Adds selected menu items to the menu.
				 *
				 * @ignore
				 *
				 * @param jQuery metabox The metabox jQuery object.
				 */
				addSelectedToMenu : function(processMethod) {
					if ( 0 === $('#menu-to-edit').length ) {
						return false;
					}

					return this.each(function() {
						var t = $(this), menuItems = {},
							checkboxes = ( menus.oneThemeLocationNoMenus && 0 === t.find( '.tabs-panel-active .categorychecklist li input:checked' ).length ) ? t.find( '#page-all li input[type="checkbox"]' ) : t.find( '.tabs-panel-active .categorychecklist li input:checked' ),
							re = /menu-item\[([^\]]*)/;

						processMethod = processMethod || api.addMenuItemToBottom;

						// If no items are checked, bail.
						if ( !checkboxes.length )
							return false;

						// Show the Ajax spinner.
						t.find( '.button-controls .spinner' ).addClass( 'is-active' );

						// Retrieve menu item data.
						$(checkboxes).each(function(){
							var t = $(this),
								listItemDBIDMatch = re.exec( t.attr('name') ),
								listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10);

							if ( this.className && -1 != this.className.indexOf('add-to-top') )
								processMethod = api.addMenuItemToTop;
							menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID );
						});

						// Add the items.
						api.addItemToMenu(menuItems, processMethod, function(){
							// Deselect the items and hide the Ajax spinner.
							checkboxes.prop( 'checked', false );
							t.find( '.button-controls .select-all' ).prop( 'checked', false );
							t.find( '.button-controls .spinner' ).removeClass( 'is-active' );
						});
					});
				},
				getItemData : function( itemType, id ) {
					itemType = itemType || 'menu-item';

					var itemData = {}, i,
					fields = [
						'menu-item-db-id',
						'menu-item-object-id',
						'menu-item-object',
						'menu-item-parent-id',
						'menu-item-position',
						'menu-item-type',
						'menu-item-title',
						'menu-item-url',
						'menu-item-description',
						'menu-item-attr-title',
						'menu-item-target',
						'menu-item-classes',
						'menu-item-xfn'
					];

					if( !id && itemType == 'menu-item' ) {
						id = this.find('.menu-item-data-db-id').val();
					}

					if( !id ) return itemData;

					this.find('input').each(function() {
						var field;
						i = fields.length;
						while ( i-- ) {
							if( itemType == 'menu-item' )
								field = fields[i] + '[' + id + ']';
							else if( itemType == 'add-menu-item' )
								field = 'menu-item[' + id + '][' + fields[i] + ']';

							if (
								this.name &&
								field == this.name
							) {
								itemData[fields[i]] = this.value;
							}
						}
					});

					return itemData;
				},
				setItemData : function( itemData, itemType, id ) { // Can take a type, such as 'menu-item', or an id.
					itemType = itemType || 'menu-item';

					if( !id && itemType == 'menu-item' ) {
						id = $('.menu-item-data-db-id', this).val();
					}

					if( !id ) return this;

					this.find('input').each(function() {
						var t = $(this), field;
						$.each( itemData, function( attr, val ) {
							if( itemType == 'menu-item' )
								field = attr + '[' + id + ']';
							else if( itemType == 'add-menu-item' )
								field = 'menu-item[' + id + '][' + attr + ']';

							if ( field == t.attr('name') ) {
								t.val( val );
							}
						});
					});
					return this;
				}
			});
		},

		countMenuItems : function( depth ) {
			return $( '.menu-item-depth-' + depth ).length;
		},

		moveMenuItem : function( $this, dir ) {

			var items, newItemPosition, newDepth,
				menuItems = $( '#menu-to-edit li' ),
				menuItemsCount = menuItems.length,
				thisItem = $this.parents( 'li.menu-item' ),
				thisItemChildren = thisItem.childMenuItems(),
				thisItemData = thisItem.getItemData(),
				thisItemDepth = parseInt( thisItem.menuItemDepth(), 10 ),
				thisItemPosition = parseInt( thisItem.index(), 10 ),
				nextItem = thisItem.next(),
				nextItemChildren = nextItem.childMenuItems(),
				nextItemDepth = parseInt( nextItem.menuItemDepth(), 10 ) + 1,
				prevItem = thisItem.prev(),
				prevItemDepth = parseInt( prevItem.menuItemDepth(), 10 ),
				prevItemId = prevItem.getItemData()['menu-item-db-id'],
				a11ySpeech = menus[ 'moved' + dir.charAt(0).toUpperCase() + dir.slice(1) ];

			switch ( dir ) {
			case 'up':
				newItemPosition = thisItemPosition - 1;

				// Already at top.
				if ( 0 === thisItemPosition )
					break;

				// If a sub item is moved to top, shift it to 0 depth.
				if ( 0 === newItemPosition && 0 !== thisItemDepth )
					thisItem.moveHorizontally( 0, thisItemDepth );

				// If prev item is sub item, shift to match depth.
				if ( 0 !== prevItemDepth )
					thisItem.moveHorizontally( prevItemDepth, thisItemDepth );

				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren );
					// Move the entire block.
					items.detach().insertBefore( menuItems.eq( newItemPosition ) ).updateParentMenuItemDBId();
				} else {
					thisItem.detach().insertBefore( menuItems.eq( newItemPosition ) ).updateParentMenuItemDBId();
				}
				break;
			case 'down':
				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren ),
						nextItem = menuItems.eq( items.length + thisItemPosition ),
						nextItemChildren = 0 !== nextItem.childMenuItems().length;

					if ( nextItemChildren ) {
						newDepth = parseInt( nextItem.menuItemDepth(), 10 ) + 1;
						thisItem.moveHorizontally( newDepth, thisItemDepth );
					}

					// Have we reached the bottom?
					if ( menuItemsCount === thisItemPosition + items.length )
						break;

					items.detach().insertAfter( menuItems.eq( thisItemPosition + items.length ) ).updateParentMenuItemDBId();
				} else {
					// If next item has sub items, shift depth.
					if ( 0 !== nextItemChildren.length )
						thisItem.moveHorizontally( nextItemDepth, thisItemDepth );

					// Have we reached the bottom?
					if ( menuItemsCount === thisItemPosition + 1 )
						break;
					thisItem.detach().insertAfter( menuItems.eq( thisItemPosition + 1 ) ).updateParentMenuItemDBId();
				}
				break;
			case 'top':
				// Already at top.
				if ( 0 === thisItemPosition )
					break;
				// Does this item have sub items?
				if ( thisItemChildren ) {
					items = thisItem.add( thisItemChildren );
					// Move the entire block.
					items.detach().insertBefore( menuItems.eq( 0 ) ).updateParentMenuItemDBId();
				} else {
					thisItem.detach().insertBefore( menuItems.eq( 0 ) ).updateParentMenuItemDBId();
				}
				break;
			case 'left':
				// As far left as possible.
				if ( 0 === thisItemDepth )
					break;
				thisItem.shiftHorizontally( -1 );
				break;
			case 'right':
				// Can't be sub item at top.
				if ( 0 === thisItemPosition )
					break;
				// Already sub item of prevItem.
				if ( thisItemData['menu-item-parent-id'] === prevItemId )
					break;
				thisItem.shiftHorizontally( 1 );
				break;
			}
			$this.trigger( 'focus' );
			api.registerChange();
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();

			if ( a11ySpeech ) {
				wp.a11y.speak( a11ySpeech );
			}
		},

		initAccessibility : function() {
			var menu = $( '#menu-to-edit' );

			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();

			// Refresh the accessibility when the user comes close to the item in any way.
			menu.on( 'mouseenter.refreshAccessibility focus.refreshAccessibility touchstart.refreshAccessibility' , '.menu-item' , function(){
				api.refreshAdvancedAccessibilityOfItem( $( this ).find( 'a.item-edit' ) );
			} );

			// We have to update on click as well because we might hover first, change the item, and then click.
			menu.on( 'click', 'a.item-edit', function() {
				api.refreshAdvancedAccessibilityOfItem( $( this ) );
			} );

			// Links for moving items.
			menu.on( 'click', '.menus-move', function () {
				var $this = $( this ),
					dir = $this.data( 'dir' );

				if ( 'undefined' !== typeof dir ) {
					api.moveMenuItem( $( this ).parents( 'li.menu-item' ).find( 'a.item-edit' ), dir );
				}
			});
		},

		/**
		 * refreshAdvancedAccessibilityOfItem( [itemToRefresh] )
		 *
		 * Refreshes advanced accessibility buttons for one menu item.
		 * Shows or hides buttons based on the location of the menu item.
		 *
		 * @param {Object} itemToRefresh The menu item that might need its advanced accessibility buttons refreshed
		 */
		refreshAdvancedAccessibilityOfItem : function( itemToRefresh ) {

			// Only refresh accessibility when necessary.
			if ( true !== $( itemToRefresh ).data( 'needs_accessibility_refresh' ) ) {
				return;
			}

			var thisLink, thisLinkText, primaryItems, itemPosition, title,
				parentItem, parentItemId, parentItemName, subItems, totalSubItems,
				$this = $( itemToRefresh ),
				menuItem = $this.closest( 'li.menu-item' ).first(),
				depth = menuItem.menuItemDepth(),
				isPrimaryMenuItem = ( 0 === depth ),
				itemName = $this.closest( '.menu-item-handle' ).find( '.menu-item-title' ).text(),
				menuItemType = $this.closest( '.menu-item-handle' ).find( '.item-controls' ).find( '.item-type' ).text(),
				position = parseInt( menuItem.index(), 10 ),
				prevItemDepth = ( isPrimaryMenuItem ) ? depth : parseInt( depth - 1, 10 ),
				prevItemNameLeft = menuItem.prevAll('.menu-item-depth-' + prevItemDepth).first().find( '.menu-item-title' ).text(),
				prevItemNameRight = menuItem.prevAll('.menu-item-depth-' + depth).first().find( '.menu-item-title' ).text(),
				totalMenuItems = $('#menu-to-edit li').length,
				hasSameDepthSibling = menuItem.nextAll( '.menu-item-depth-' + depth ).length;

				menuItem.find( '.field-move' ).toggle( totalMenuItems > 1 );

			// Where can they move this menu item?
			if ( 0 !== position ) {
				thisLink = menuItem.find( '.menus-move-up' );
				thisLink.attr( 'aria-label', menus.moveUp ).css( 'display', 'inline' );
			}

			if ( 0 !== position && isPrimaryMenuItem ) {
				thisLink = menuItem.find( '.menus-move-top' );
				thisLink.attr( 'aria-label', menus.moveToTop ).css( 'display', 'inline' );
			}

			if ( position + 1 !== totalMenuItems && 0 !== position ) {
				thisLink = menuItem.find( '.menus-move-down' );
				thisLink.attr( 'aria-label', menus.moveDown ).css( 'display', 'inline' );
			}

			if ( 0 === position && 0 !== hasSameDepthSibling ) {
				thisLink = menuItem.find( '.menus-move-down' );
				thisLink.attr( 'aria-label', menus.moveDown ).css( 'display', 'inline' );
			}

			if ( ! isPrimaryMenuItem ) {
				thisLink = menuItem.find( '.menus-move-left' ),
				thisLinkText = menus.outFrom.replace( '%s', prevItemNameLeft );
				thisLink.attr( 'aria-label', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ).text( thisLinkText ).css( 'display', 'inline' );
			}

			if ( 0 !== position ) {
				if ( menuItem.find( '.menu-item-data-parent-id' ).val() !== menuItem.prev().find( '.menu-item-data-db-id' ).val() ) {
					thisLink = menuItem.find( '.menus-move-right' ),
					thisLinkText = menus.under.replace( '%s', prevItemNameRight );
					thisLink.attr( 'aria-label', menus.moveUnder.replace( '%s', prevItemNameRight ) ).text( thisLinkText ).css( 'display', 'inline' );
				}
			}

			if ( isPrimaryMenuItem ) {
				primaryItems = $( '.menu-item-depth-0' ),
				itemPosition = primaryItems.index( menuItem ) + 1,
				totalMenuItems = primaryItems.length,
				// String together help text for primary menu items.
				title = menus.menuFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalMenuItems );
			} else {
				parentItem = menuItem.prevAll( '.menu-item-depth-' + parseInt( depth - 1, 10 ) ).first(),
				parentItemId = parentItem.find( '.menu-item-data-db-id' ).val(),
				parentItemName = parentItem.find( '.menu-item-title' ).text(),
				subItems = $( '.menu-item .menu-item-data-parent-id[value="' + parentItemId + '"]' ),
				totalSubItems = subItems.length,
				itemPosition = $( subItems.parents('.menu-item').get().reverse() ).index( menuItem ) + 1;

				// String together help text for sub menu items.
				if ( depth < 2 ) {
					title = menus.subMenuFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalSubItems ).replace( '%5$s', parentItemName );
				} else {
					title = menus.subMenuMoreDepthFocus.replace( '%1$s', itemName ).replace( '%2$s', menuItemType ).replace( '%3$d', itemPosition ).replace( '%4$d', totalSubItems ).replace( '%5$s', parentItemName ).replace( '%6$d', depth );
				}
			}

			$this.attr( 'aria-label', title );

			// Mark this item's accessibility as refreshed.
			$this.data( 'needs_accessibility_refresh', false );
		},

		/**
		 * refreshAdvancedAccessibility
		 *
		 * Hides all advanced accessibility buttons and marks them for refreshing.
		 */
		refreshAdvancedAccessibility : function() {

			// Hide all the move buttons by default.
			$( '.menu-item-settings .field-move .menus-move' ).hide();

			// Mark all menu items as unprocessed.
			$( 'a.item-edit' ).data( 'needs_accessibility_refresh', true );

			// All open items have to be refreshed or they will show no links.
			$( '.menu-item-edit-active a.item-edit' ).each( function() {
				api.refreshAdvancedAccessibilityOfItem( this );
			} );
		},

		refreshKeyboardAccessibility : function() {
			$( 'a.item-edit' ).off( 'focus' ).on( 'focus', function(){
				$(this).off( 'keydown' ).on( 'keydown', function(e){

					var arrows,
						$this = $( this ),
						thisItem = $this.parents( 'li.menu-item' ),
						thisItemData = thisItem.getItemData();

					// Bail if it's not an arrow key.
					if ( 37 != e.which && 38 != e.which && 39 != e.which && 40 != e.which )
						return;

					// Avoid multiple keydown events.
					$this.off('keydown');

					// Bail if there is only one menu item.
					if ( 1 === $('#menu-to-edit li').length )
						return;

					// If RTL, swap left/right arrows.
					arrows = { '38': 'up', '40': 'down', '37': 'left', '39': 'right' };
					if ( $('body').hasClass('rtl') )
						arrows = { '38' : 'up', '40' : 'down', '39' : 'left', '37' : 'right' };

					switch ( arrows[e.which] ) {
					case 'up':
						api.moveMenuItem( $this, 'up' );
						break;
					case 'down':
						api.moveMenuItem( $this, 'down' );
						break;
					case 'left':
						api.moveMenuItem( $this, 'left' );
						break;
					case 'right':
						api.moveMenuItem( $this, 'right' );
						break;
					}
					// Put focus back on same menu item.
					$( '#edit-' + thisItemData['menu-item-db-id'] ).trigger( 'focus' );
					return false;
				});
			});
		},

		initPreviewing : function() {
			// Update the item handle title when the navigation label is changed.
			$( '#menu-to-edit' ).on( 'change input', '.edit-menu-item-title', function(e) {
				var input = $( e.currentTarget ), title, titleEl;
				title = input.val();
				titleEl = input.closest( '.menu-item' ).find( '.menu-item-title' );
				// Don't update to empty title.
				if ( title ) {
					titleEl.text( title ).removeClass( 'no-title' );
				} else {
					titleEl.text( wp.i18n._x( '(no label)', 'missing menu item navigation label' ) ).addClass( 'no-title' );
				}
			} );
		},

		initToggles : function() {
			// Init postboxes.
			postboxes.add_postbox_toggles('nav-menus');

			// Adjust columns functions for menus UI.
			columns.useCheckboxesForHidden();
			columns.checked = function(field) {
				$('.field-' + field).removeClass('hidden-field');
			};
			columns.unchecked = function(field) {
				$('.field-' + field).addClass('hidden-field');
			};
			// Hide fields.
			api.menuList.hideAdvancedMenuItemFields();

			$('.hide-postbox-tog').on( 'click', function () {
				var hidden = $( '.accordion-container li.accordion-section' ).filter(':hidden').map(function() { return this.id; }).get().join(',');
				$.post(ajaxurl, {
					action: 'closed-postboxes',
					hidden: hidden,
					closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(),
					page: 'nav-menus'
				});
			});
		},

		initSortables : function() {
			var currentDepth = 0, originalDepth, minDepth, maxDepth,
				prev, next, prevBottom, nextThreshold, helperHeight, transport,
				menuEdge = api.menuList.offset().left,
				body = $('body'), maxChildDepth,
				menuMaxDepth = initialMenuMaxDepth();

			if( 0 !== $( '#menu-to-edit li' ).length )
				$( '.drag-instructions' ).show();

			// Use the right edge if RTL.
			menuEdge += api.isRTL ? api.menuList.width() : 0;

			api.menuList.sortable({
				handle: '.menu-item-handle',
				placeholder: 'sortable-placeholder',
				items: api.options.sortableItems,
				start: function(e, ui) {
					var height, width, parent, children, tempHolder;

					// Handle placement for RTL orientation.
					if ( api.isRTL )
						ui.item[0].style.right = 'auto';

					transport = ui.item.children('.menu-item-transport');

					// Set depths. currentDepth must be set before children are located.
					originalDepth = ui.item.menuItemDepth();
					updateCurrentDepth(ui, originalDepth);

					// Attach child elements to parent.
					// Skip the placeholder.
					parent = ( ui.item.next()[0] == ui.placeholder[0] ) ? ui.item.next() : ui.item;
					children = parent.childMenuItems();
					transport.append( children );

					// Update the height of the placeholder to match the moving item.
					height = transport.outerHeight();
					// If there are children, account for distance between top of children and parent.
					height += ( height > 0 ) ? (ui.placeholder.css('margin-top').slice(0, -2) * 1) : 0;
					height += ui.helper.outerHeight();
					helperHeight = height;
					height -= 2;                                              // Subtract 2 for borders.
					ui.placeholder.height(height);

					// Update the width of the placeholder to match the moving item.
					maxChildDepth = originalDepth;
					children.each(function(){
						var depth = $(this).menuItemDepth();
						maxChildDepth = (depth > maxChildDepth) ? depth : maxChildDepth;
					});
					width = ui.helper.find('.menu-item-handle').outerWidth(); // Get original width.
					width += api.depthToPx(maxChildDepth - originalDepth);    // Account for children.
					width -= 2;                                               // Subtract 2 for borders.
					ui.placeholder.width(width);

					// Update the list of menu items.
					tempHolder = ui.placeholder.next( '.menu-item' );
					tempHolder.css( 'margin-top', helperHeight + 'px' ); // Set the margin to absorb the placeholder.
					ui.placeholder.detach();         // Detach or jQuery UI will think the placeholder is a menu item.
					$(this).sortable( 'refresh' );   // The children aren't sortable. We should let jQuery UI know.
					ui.item.after( ui.placeholder ); // Reattach the placeholder.
					tempHolder.css('margin-top', 0); // Reset the margin.

					// Now that the element is complete, we can update...
					updateSharedVars(ui);
				},
				stop: function(e, ui) {
					var children, subMenuTitle,
						depthChange = currentDepth - originalDepth;

					// Return child elements to the list.
					children = transport.children().insertAfter(ui.item);

					// Add "sub menu" description.
					subMenuTitle = ui.item.find( '.item-title .is-submenu' );
					if ( 0 < currentDepth )
						subMenuTitle.show();
					else
						subMenuTitle.hide();

					// Update depth classes.
					if ( 0 !== depthChange ) {
						ui.item.updateDepthClass( currentDepth );
						children.shiftDepthClass( depthChange );
						updateMenuMaxDepth( depthChange );
					}
					// Register a change.
					api.registerChange();
					// Update the item data.
					ui.item.updateParentMenuItemDBId();

					// Address sortable's incorrectly-calculated top in Opera.
					ui.item[0].style.top = 0;

					// Handle drop placement for rtl orientation.
					if ( api.isRTL ) {
						ui.item[0].style.left = 'auto';
						ui.item[0].style.right = 0;
					}

					api.refreshKeyboardAccessibility();
					api.refreshAdvancedAccessibility();
					api.refreshAdvancedAccessibilityOfItem( ui.item.find( 'a.item-edit' ) );
				},
				change: function(e, ui) {
					// Make sure the placeholder is inside the menu.
					// Otherwise fix it, or we're in trouble.
					if( ! ui.placeholder.parent().hasClass('menu') )
						(prev.length) ? prev.after( ui.placeholder ) : api.menuList.prepend( ui.placeholder );

					updateSharedVars(ui);
				},
				sort: function(e, ui) {
					var offset = ui.helper.offset(),
						edge = api.isRTL ? offset.left + ui.helper.width() : offset.left,
						depth = api.negateIfRTL * api.pxToDepth( edge - menuEdge );

					/*
					 * Check and correct if depth is not within range.
					 * Also, if the dragged element is dragged upwards over an item,
					 * shift the placeholder to a child position.
					 */
					if ( depth > maxDepth || offset.top < ( prevBottom - api.options.targetTolerance ) ) {
						depth = maxDepth;
					} else if ( depth < minDepth ) {
						depth = minDepth;
					}

					if( depth != currentDepth )
						updateCurrentDepth(ui, depth);

					// If we overlap the next element, manually shift downwards.
					if( nextThreshold && offset.top + helperHeight > nextThreshold ) {
						next.after( ui.placeholder );
						updateSharedVars( ui );
						$( this ).sortable( 'refreshPositions' );
					}
				}
			});

			function updateSharedVars(ui) {
				var depth;

				prev = ui.placeholder.prev( '.menu-item' );
				next = ui.placeholder.next( '.menu-item' );

				// Make sure we don't select the moving item.
				if( prev[0] == ui.item[0] ) prev = prev.prev( '.menu-item' );
				if( next[0] == ui.item[0] ) next = next.next( '.menu-item' );

				prevBottom = (prev.length) ? prev.offset().top + prev.height() : 0;
				nextThreshold = (next.length) ? next.offset().top + next.height() / 3 : 0;
				minDepth = (next.length) ? next.menuItemDepth() : 0;

				if( prev.length )
					maxDepth = ( (depth = prev.menuItemDepth() + 1) > api.options.globalMaxDepth ) ? api.options.globalMaxDepth : depth;
				else
					maxDepth = 0;
			}

			function updateCurrentDepth(ui, depth) {
				ui.placeholder.updateDepthClass( depth, currentDepth );
				currentDepth = depth;
			}

			function initialMenuMaxDepth() {
				if( ! body[0].className ) return 0;
				var match = body[0].className.match(/menu-max-depth-(\d+)/);
				return match && match[1] ? parseInt( match[1], 10 ) : 0;
			}

			function updateMenuMaxDepth( depthChange ) {
				var depth, newDepth = menuMaxDepth;
				if ( depthChange === 0 ) {
					return;
				} else if ( depthChange > 0 ) {
					depth = maxChildDepth + depthChange;
					if( depth > menuMaxDepth )
						newDepth = depth;
				} else if ( depthChange < 0 && maxChildDepth == menuMaxDepth ) {
					while( ! $('.menu-item-depth-' + newDepth, api.menuList).length && newDepth > 0 )
						newDepth--;
				}
				// Update the depth class.
				body.removeClass( 'menu-max-depth-' + menuMaxDepth ).addClass( 'menu-max-depth-' + newDepth );
				menuMaxDepth = newDepth;
			}
		},

		initManageLocations : function () {
			$('#menu-locations-wrap form').on( 'submit', function(){
				window.onbeforeunload = null;
			});
			$('.menu-location-menus select').on('change', function () {
				var editLink = $(this).closest('tr').find('.locations-edit-menu-link');
				if ($(this).find('option:selected').data('orig'))
					editLink.show();
				else
					editLink.hide();
			});
		},

		attachMenuEditListeners : function() {
			var that = this;
			$('#update-nav-menu').on('click', function(e) {
				if ( e.target && e.target.className ) {
					if ( -1 != e.target.className.indexOf('item-edit') ) {
						return that.eventOnClickEditLink(e.target);
					} else if ( -1 != e.target.className.indexOf('menu-save') ) {
						return that.eventOnClickMenuSave(e.target);
					} else if ( -1 != e.target.className.indexOf('menu-delete') ) {
						return that.eventOnClickMenuDelete(e.target);
					} else if ( -1 != e.target.className.indexOf('item-delete') ) {
						return that.eventOnClickMenuItemDelete(e.target);
					} else if ( -1 != e.target.className.indexOf('item-cancel') ) {
						return that.eventOnClickCancelLink(e.target);
					}
				}
			});

			$( '#menu-name' ).on( 'input', _.debounce( function () {
				var menuName = $( document.getElementById( 'menu-name' ) ),
					menuNameVal = menuName.val();

				if ( ! menuNameVal || ! menuNameVal.replace( /\s+/, '' ) ) {
					// Add warning for invalid menu name.
					menuName.parent().addClass( 'form-invalid' );
				} else {
					// Remove warning for valid menu name.
					menuName.parent().removeClass( 'form-invalid' );
				}
			}, 500 ) );

			$('#add-custom-links input[type="text"]').on( 'keypress', function(e){
				$('#customlinkdiv').removeClass('form-invalid');

				if ( e.keyCode === 13 ) {
					e.preventDefault();
					$( '#submit-customlinkdiv' ).trigger( 'click' );
				}
			});
		},

		/**
		 * Handle toggling bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		attachBulkSelectButtonListeners : function() {
			var that = this;

			$( '.bulk-select-switcher' ).on( 'change', function() {
				if ( this.checked ) {
					$( '.bulk-select-switcher' ).prop( 'checked', true );
					that.enableBulkSelection();
				} else {
					$( '.bulk-select-switcher' ).prop( 'checked', false );
					that.disableBulkSelection();
				}
			});
		},

		/**
		 * Enable bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		enableBulkSelection : function() {
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$( '#menu-to-edit' ).addClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-top' ).addClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-bottom' ).addClass( 'bulk-selection' );

			$.each( checkbox, function() {
				$(this).prop( 'disabled', false );
			});
		},

		/**
		 * Disable bulk selection checkboxes for menu items.
		 *
		 * @since 5.8.0
		 */ 
		disableBulkSelection : function() {
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$( '#menu-to-edit' ).removeClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-top' ).removeClass( 'bulk-selection' );
			$( '#nav-menu-bulk-actions-bottom' ).removeClass( 'bulk-selection' );

			if ( $( '.menu-items-delete' ).is( '[aria-describedby="pending-menu-items-to-delete"]' ) ) {
				$( '.menu-items-delete' ).removeAttr( 'aria-describedby' );
			}

			$.each( checkbox, function() {
				$(this).prop( 'disabled', true ).prop( 'checked', false );
			});

			$( '.menu-items-delete' ).addClass( 'disabled' );
			$( '#pending-menu-items-to-delete ul' ).empty();
		},

		/**
		 * Listen for state changes on bulk action checkboxes.
		 *
		 * @since 5.8.0
		 */ 
		attachMenuCheckBoxListeners : function() {
			var that = this;

			$( '#menu-to-edit' ).on( 'change', '.menu-item-checkbox', function() {
				that.setRemoveSelectedButtonStatus();
			});
		},

		/**
		 * Create delete button to remove menu items from collection.
		 *
		 * @since 5.8.0
		 */ 
		attachMenuItemDeleteButton : function() {
			var that = this;

			$( document ).on( 'click', '.menu-items-delete', function( e ) {
				var itemsPendingDeletion, itemsPendingDeletionList, deletionSpeech;

				e.preventDefault();

				if ( ! $(this).hasClass( 'disabled' ) ) {
					$.each( $( '.menu-item-checkbox:checked' ), function( index, element ) {
						$( element ).parents( 'li' ).find( 'a.item-delete' ).trigger( 'click' );
					});

					$( '.menu-items-delete' ).addClass( 'disabled' );
					$( '.bulk-select-switcher' ).prop( 'checked', false );

					itemsPendingDeletion     = '';
					itemsPendingDeletionList = $( '#pending-menu-items-to-delete ul li' );

					$.each( itemsPendingDeletionList, function( index, element ) {
						var itemName = $( element ).find( '.pending-menu-item-name' ).text();
						var itemSpeech = menus.menuItemDeletion.replace( '%s', itemName );

						itemsPendingDeletion += itemSpeech;
						if ( ( index + 1 ) < itemsPendingDeletionList.length ) {
							itemsPendingDeletion += ', ';
						}
					});

					deletionSpeech = menus.itemsDeleted.replace( '%s', itemsPendingDeletion );
					wp.a11y.speak( deletionSpeech, 'polite' );
					that.disableBulkSelection();
				}
			});
		},

		/**
		 * List menu items awaiting deletion.
		 *
		 * @since 5.8.0
		 */ 
		attachPendingMenuItemsListForDeletion : function() {
			$( '#post-body-content' ).on( 'change', '.menu-item-checkbox', function() {
				var menuItemName, menuItemType, menuItemID, listedMenuItem;

				if ( ! $( '.menu-items-delete' ).is( '[aria-describedby="pending-menu-items-to-delete"]' ) ) {
					$( '.menu-items-delete' ).attr( 'aria-describedby', 'pending-menu-items-to-delete' );
				}

				menuItemName = $(this).next().text();
				menuItemType = $(this).parent().next( '.item-controls' ).find( '.item-type' ).text();
				menuItemID   = $(this).attr( 'data-menu-item-id' );

				listedMenuItem = $( '#pending-menu-items-to-delete ul' ).find( '[data-menu-item-id=' + menuItemID + ']' );
				if ( listedMenuItem.length > 0 ) {
					listedMenuItem.remove();
				}

				if ( this.checked === true ) {
					$( '#pending-menu-items-to-delete ul' ).append(
						'<li data-menu-item-id="' + menuItemID + '">' +
							'<span class="pending-menu-item-name">' + menuItemName + '</span> ' +
							'<span class="pending-menu-item-type">(' + menuItemType + ')</span>' +
							'<span class="separator"></span>' +
						'</li>'
					);
				}

				$( '#pending-menu-items-to-delete li .separator' ).html( ', ' );
				$( '#pending-menu-items-to-delete li .separator' ).last().html( '.' );
			});
		},

		/**
		 * Set status of bulk delete checkbox.
		 *
		 * @since 5.8.0
		 */ 
		setBulkDeleteCheckboxStatus : function() {
			var that = this;
			var checkbox = $( '#menu-to-edit .menu-item-checkbox' );

			$.each( checkbox, function() {
				if ( $(this).prop( 'disabled' ) ) {
					$(this).prop( 'disabled', false );
				} else {
					$(this).prop( 'disabled', true );
				}

				if ( $(this).is( ':checked' ) ) {
					$(this).prop( 'checked', false );
				}
			});

			that.setRemoveSelectedButtonStatus();
		},

		/**
		 * Set status of menu items removal button.
		 *
		 * @since 5.8.0
		 */ 
		setRemoveSelectedButtonStatus : function() {
			var button = $( '.menu-items-delete' );

			if ( $( '.menu-item-checkbox:checked' ).length > 0 ) {
				button.removeClass( 'disabled' );
			} else {
				button.addClass( 'disabled' );
			}
		},

		attachMenuSaveSubmitListeners : function() {
			/*
			 * When a navigation menu is saved, store a JSON representation of all form data
			 * in a single input to avoid PHP `max_input_vars` limitations. See #14134.
			 */
			$( '#update-nav-menu' ).on( 'submit', function() {
				var navMenuData = $( '#update-nav-menu' ).serializeArray();
				$( '[name="nav-menu-data"]' ).val( JSON.stringify( navMenuData ) );
			});
		},

		attachThemeLocationsListeners : function() {
			var loc = $('#nav-menu-theme-locations'), params = {};
			params.action = 'menu-locations-save';
			params['menu-settings-column-nonce'] = $('#menu-settings-column-nonce').val();
			loc.find('input[type="submit"]').on( 'click', function() {
				loc.find('select').each(function() {
					params[this.name] = $(this).val();
				});
				loc.find( '.spinner' ).addClass( 'is-active' );
				$.post( ajaxurl, params, function() {
					loc.find( '.spinner' ).removeClass( 'is-active' );
				});
				return false;
			});
		},

		attachQuickSearchListeners : function() {
			var searchTimer;

			// Prevent form submission.
			$( '#nav-menu-meta' ).on( 'submit', function( event ) {
				event.preventDefault();
			});

			$( '#nav-menu-meta' ).on( 'input', '.quick-search', function() {
				var $this = $( this );

				$this.attr( 'autocomplete', 'off' );

				if ( searchTimer ) {
					clearTimeout( searchTimer );
				}

				searchTimer = setTimeout( function() {
					api.updateQuickSearchResults( $this );
				}, 500 );
			}).on( 'blur', '.quick-search', function() {
				api.lastSearch = '';
			});
		},

		updateQuickSearchResults : function(input) {
			var panel, params,
				minSearchLength = 2,
				q = input.val();

			/*
			 * Minimum characters for a search. Also avoid a new Ajax search when
			 * the pressed key (e.g. arrows) doesn't change the searched term.
			 */
			if ( q.length < minSearchLength || api.lastSearch == q ) {
				return;
			}

			api.lastSearch = q;

			panel = input.parents('.tabs-panel');
			params = {
				'action': 'menu-quick-search',
				'response-format': 'markup',
				'menu': $('#menu').val(),
				'menu-settings-column-nonce': $('#menu-settings-column-nonce').val(),
				'q': q,
				'type': input.attr('name')
			};

			$( '.spinner', panel ).addClass( 'is-active' );

			$.post( ajaxurl, params, function(menuMarkup) {
				api.processQuickSearchQueryResponse(menuMarkup, params, panel);
			});
		},

		addCustomLink : function( processMethod ) {
			var url = $('#custom-menu-item-url').val().toString(),
				label = $('#custom-menu-item-name').val();

			if ( '' !== url ) {
				url = url.trim();
			}

			processMethod = processMethod || api.addMenuItemToBottom;

			if ( '' === url || 'https://' == url || 'http://' == url ) {
				$('#customlinkdiv').addClass('form-invalid');
				return false;
			}

			// Show the Ajax spinner.
			$( '.customlinkdiv .spinner' ).addClass( 'is-active' );
			this.addLinkToMenu( url, label, processMethod, function() {
				// Remove the Ajax spinner.
				$( '.customlinkdiv .spinner' ).removeClass( 'is-active' );
				// Set custom link form back to defaults.
				$('#custom-menu-item-name').val('').trigger( 'blur' );
				$( '#custom-menu-item-url' ).val( '' ).attr( 'placeholder', 'https://' );
			});
		},

		addLinkToMenu : function(url, label, processMethod, callback) {
			processMethod = processMethod || api.addMenuItemToBottom;
			callback = callback || function(){};

			api.addItemToMenu({
				'-1': {
					'menu-item-type': 'custom',
					'menu-item-url': url,
					'menu-item-title': label
				}
			}, processMethod, callback);
		},

		addItemToMenu : function(menuItem, processMethod, callback) {
			var menu = $('#menu').val(),
				nonce = $('#menu-settings-column-nonce').val(),
				params;

			processMethod = processMethod || function(){};
			callback = callback || function(){};

			params = {
				'action': 'add-menu-item',
				'menu': menu,
				'menu-settings-column-nonce': nonce,
				'menu-item': menuItem
			};

			$.post( ajaxurl, params, function(menuMarkup) {
				var ins = $('#menu-instructions');

				menuMarkup = menuMarkup || '';
				menuMarkup = menuMarkup.toString().trim(); // Trim leading whitespaces.
				processMethod(menuMarkup, params);

				// Make it stand out a bit more visually, by adding a fadeIn.
				$( 'li.pending' ).hide().fadeIn('slow');
				$( '.drag-instructions' ).show();
				if( ! ins.hasClass( 'menu-instructions-inactive' ) && ins.siblings().length )
					ins.addClass( 'menu-instructions-inactive' );

				callback();
			});
		},

		/**
		 * Process the add menu item request response into menu list item. Appends to menu.
		 *
		 * @param {string} menuMarkup The text server response of menu item markup.
		 *
		 * @fires document#menu-item-added Passes menuMarkup as a jQuery object.
		 */
		addMenuItemToBottom : function( menuMarkup ) {
			var $menuMarkup = $( menuMarkup );
			$menuMarkup.hideAdvancedMenuItemFields().appendTo( api.targetList );
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();
			wp.a11y.speak( menus.itemAdded );
			$( document ).trigger( 'menu-item-added', [ $menuMarkup ] );
		},

		/**
		 * Process the add menu item request response into menu list item. Prepends to menu.
		 *
		 * @param {string} menuMarkup The text server response of menu item markup.
		 *
		 * @fires document#menu-item-added Passes menuMarkup as a jQuery object.
		 */
		addMenuItemToTop : function( menuMarkup ) {
			var $menuMarkup = $( menuMarkup );
			$menuMarkup.hideAdvancedMenuItemFields().prependTo( api.targetList );
			api.refreshKeyboardAccessibility();
			api.refreshAdvancedAccessibility();
			wp.a11y.speak( menus.itemAdded );
			$( document ).trigger( 'menu-item-added', [ $menuMarkup ] );
		},

		attachUnsavedChangesListener : function() {
			$('#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select').on( 'change', function(){
				api.registerChange();
			});

			if ( 0 !== $('#menu-to-edit').length || 0 !== $('.menu-location-menus select').length ) {
				window.onbeforeunload = function(){
					if ( api.menusChanged )
						return wp.i18n.__( 'The changes you made will be lost if you navigate away from this page.' );
				};
			} else {
				// Make the post boxes read-only, as they can't be used yet.
				$( '#menu-settings-column' ).find( 'input,select' ).end().find( 'a' ).attr( 'href', '#' ).off( 'click' );
			}
		},

		registerChange : function() {
			api.menusChanged = true;
		},

		attachTabsPanelListeners : function() {
			$('#menu-settings-column').on('click', function(e) {
				var selectAreaMatch, selectAll, panelId, wrapper, items,
					target = $(e.target);

				if ( target.hasClass('nav-tab-link') ) {

					panelId = target.data( 'type' );

					wrapper = target.parents('.accordion-section-content').first();

					// Upon changing tabs, we want to uncheck all checkboxes.
					$( 'input', wrapper ).prop( 'checked', false );

					$('.tabs-panel-active', wrapper).removeClass('tabs-panel-active').addClass('tabs-panel-inactive');
					$('#' + panelId, wrapper).removeClass('tabs-panel-inactive').addClass('tabs-panel-active');

					$('.tabs', wrapper).removeClass('tabs');
					target.parent().addClass('tabs');

					// Select the search bar.
					$('.quick-search', wrapper).trigger( 'focus' );

					// Hide controls in the search tab if no items found.
					if ( ! wrapper.find( '.tabs-panel-active .menu-item-title' ).length ) {
						wrapper.addClass( 'has-no-menu-item' );
					} else {
						wrapper.removeClass( 'has-no-menu-item' );
					}

					e.preventDefault();
				} else if ( target.hasClass( 'select-all' ) ) {
					selectAreaMatch = target.closest( '.button-controls' ).data( 'items-type' );
					if ( selectAreaMatch ) {
						items = $( '#' + selectAreaMatch + ' .tabs-panel-active .menu-item-title input' );

						if ( items.length === items.filter( ':checked' ).length && ! target.is( ':checked' ) ) {
							items.prop( 'checked', false );
						} else if ( target.is( ':checked' ) ) {
							items.prop( 'checked', true );
						}
					}
				} else if ( target.hasClass( 'menu-item-checkbox' ) ) {
					selectAreaMatch = target.closest( '.tabs-panel-active' ).parent().attr( 'id' );
					if ( selectAreaMatch ) {
						items     = $( '#' + selectAreaMatch + ' .tabs-panel-active .menu-item-title input' );
						selectAll = $( '.button-controls[data-items-type="' + selectAreaMatch + '"] .select-all' );

						if ( items.length === items.filter( ':checked' ).length && ! selectAll.is( ':checked' ) ) {
							selectAll.prop( 'checked', true );
						} else if ( selectAll.is( ':checked' ) ) {
							selectAll.prop( 'checked', false );
						}
					}
				} else if ( target.hasClass('submit-add-to-menu') ) {
					api.registerChange();

					if ( e.target.id && 'submit-customlinkdiv' == e.target.id )
						api.addCustomLink( api.addMenuItemToBottom );
					else if ( e.target.id && -1 != e.target.id.indexOf('submit-') )
						$('#' + e.target.id.replace(/submit-/, '')).addSelectedToMenu( api.addMenuItemToBottom );
					return false;
				}
			});

			/*
			 * Delegate the `click` event and attach it just to the pagination
			 * links thus excluding the current page `<span>`. See ticket #35577.
			 */
			$( '#nav-menu-meta' ).on( 'click', 'a.page-numbers', function() {
				var $container = $( this ).closest( '.inside' );

				$.post( ajaxurl, this.href.replace( /.*\?/, '' ).replace( /action=([^&]*)/, '' ) + '&action=menu-get-metabox',
					function( resp ) {
						var metaBoxData = JSON.parse( resp ),
							toReplace;

						if ( -1 === resp.indexOf( 'replace-id' ) ) {
							return;
						}

						// Get the post type menu meta box to update.
						toReplace = document.getElementById( metaBoxData['replace-id'] );

						if ( ! metaBoxData.markup || ! toReplace ) {
							return;
						}

						// Update the post type menu meta box with new content from the response.
						$container.html( metaBoxData.markup );
					}
				);

				return false;
			});
		},

		eventOnClickEditLink : function(clickedEl) {
			var settings, item,
			matchedSection = /#(.*)$/.exec(clickedEl.href);

			if ( matchedSection && matchedSection[1] ) {
				settings = $('#'+matchedSection[1]);
				item = settings.parent();
				if( 0 !== item.length ) {
					if( item.hasClass('menu-item-edit-inactive') ) {
						if( ! settings.data('menu-item-data') ) {
							settings.data( 'menu-item-data', settings.getItemData() );
						}
						settings.slideDown('fast');
						item.removeClass('menu-item-edit-inactive')
							.addClass('menu-item-edit-active');
					} else {
						settings.slideUp('fast');
						item.removeClass('menu-item-edit-active')
							.addClass('menu-item-edit-inactive');
					}
					return false;
				}
			}
		},

		eventOnClickCancelLink : function(clickedEl) {
			var settings = $( clickedEl ).closest( '.menu-item-settings' ),
				thisMenuItem = $( clickedEl ).closest( '.menu-item' );

			thisMenuItem.removeClass( 'menu-item-edit-active' ).addClass( 'menu-item-edit-inactive' );
			settings.setItemData( settings.data( 'menu-item-data' ) ).hide();
			// Restore the title of the currently active/expanded menu item.
			thisMenuItem.find( '.menu-item-title' ).text( settings.data( 'menu-item-data' )['menu-item-title'] );

			return false;
		},

		eventOnClickMenuSave : function() {
			var locs = '',
			menuName = $('#menu-name'),
			menuNameVal = menuName.val();

			// Cancel and warn if invalid menu name.
			if ( ! menuNameVal || ! menuNameVal.replace( /\s+/, '' ) ) {
				menuName.parent().addClass( 'form-invalid' );
				return false;
			}
			// Copy menu theme locations.
			$('#nav-menu-theme-locations select').each(function() {
				locs += '<input type="hidden" name="' + this.name + '" value="' + $(this).val() + '" />';
			});
			$('#update-nav-menu').append( locs );
			// Update menu item position data.
			api.menuList.find('.menu-item-data-position').val( function(index) { return index + 1; } );
			window.onbeforeunload = null;

			return true;
		},

		eventOnClickMenuDelete : function() {
			// Delete warning AYS.
			if ( window.confirm( wp.i18n.__( 'You are about to permanently delete this menu.\n\'Cancel\' to stop, \'OK\' to delete.' ) ) ) {
				window.onbeforeunload = null;
				return true;
			}
			return false;
		},

		eventOnClickMenuItemDelete : function(clickedEl) {
			var itemID = parseInt(clickedEl.id.replace('delete-', ''), 10);

			api.removeMenuItem( $('#menu-item-' + itemID) );
			api.registerChange();
			return false;
		},

		/**
		 * Process the quick search response into a search result
		 *
		 * @param string resp The server response to the query.
		 * @param object req The request arguments.
		 * @param jQuery panel The tabs panel we're searching in.
		 */
		processQuickSearchQueryResponse : function(resp, req, panel) {
			var matched, newID,
			takenIDs = {},
			form = document.getElementById('nav-menu-meta'),
			pattern = /menu-item[(\[^]\]*/,
			$items = $('<div>').html(resp).find('li'),
			wrapper = panel.closest( '.accordion-section-content' ),
			selectAll = wrapper.find( '.button-controls .select-all' ),
			$item;

			if( ! $items.length ) {
				$('.categorychecklist', panel).html( '<li><p>' + wp.i18n.__( 'No results found.' ) + '</p></li>' );
				$( '.spinner', panel ).removeClass( 'is-active' );
				wrapper.addClass( 'has-no-menu-item' );
				return;
			}

			$items.each(function(){
				$item = $(this);

				// Make a unique DB ID number.
				matched = pattern.exec($item.html());

				if ( matched && matched[1] ) {
					newID = matched[1];
					while( form.elements['menu-item[' + newID + '][menu-item-type]'] || takenIDs[ newID ] ) {
						newID--;
					}

					takenIDs[newID] = true;
					if ( newID != matched[1] ) {
						$item.html( $item.html().replace(new RegExp(
							'menu-item\\[' + matched[1] + '\\]', 'g'),
							'menu-item[' + newID + ']'
						) );
					}
				}
			});

			$('.categorychecklist', panel).html( $items );
			$( '.spinner', panel ).removeClass( 'is-active' );
			wrapper.removeClass( 'has-no-menu-item' );

			if ( selectAll.is( ':checked' ) ) {
				selectAll.prop( 'checked', false );
			}
		},

		/**
		 * Remove a menu item.
		 *
		 * @param {Object} el The element to be removed as a jQuery object.
		 *
		 * @fires document#menu-removing-item Passes the element to be removed.
		 */
		removeMenuItem : function(el) {
			var children = el.childMenuItems();

			$( document ).trigger( 'menu-removing-item', [ el ] );
			el.addClass('deleting').animate({
					opacity : 0,
					height: 0
				}, 350, function() {
					var ins = $('#menu-instructions');
					el.remove();
					children.shiftDepthClass( -1 ).updateParentMenuItemDBId();
					if ( 0 === $( '#menu-to-edit li' ).length ) {
						$( '.drag-instructions' ).hide();
						ins.removeClass( 'menu-instructions-inactive' );
					}
					api.refreshAdvancedAccessibility();
					wp.a11y.speak( menus.itemRemoved );
				});
		},

		depthToPx : function(depth) {
			return depth * api.options.menuItemDepthPerLevel;
		},

		pxToDepth : function(px) {
			return Math.floor(px / api.options.menuItemDepthPerLevel);
		}

	};

	$( function() {

		wpNavMenu.init();

		// Prevent focused element from being hidden by the sticky footer.
		$( '.menu-edit a, .menu-edit button, .menu-edit input, .menu-edit textarea, .menu-edit select' ).on('focus', function() {
			if ( window.innerWidth >= 783 ) {
				var navMenuHeight = $( '#nav-menu-footer' ).height() + 20;
				var bottomOffset = $(this).offset().top - ( $(window).scrollTop() + $(window).height() - $(this).height() );

				if ( bottomOffset > 0 ) {
					bottomOffset = 0;
				}
				bottomOffset = bottomOffset * -1;

				if( bottomOffset < navMenuHeight ) {
					var scrollTop = $(document).scrollTop();
					$(document).scrollTop( scrollTop + ( navMenuHeight - bottomOffset ) );
				}
			}
		});
	});

	// Show bulk action.
	$( document ).on( 'menu-item-added', function() {
		if ( ! $( '.bulk-actions' ).is( ':visible' ) ) {
			$( '.bulk-actions' ).show();
		}
	} );

	// Hide bulk action.
	$( document ).on( 'menu-removing-item', function( e, el ) {
		var menuElement = $( el ).parents( '#menu-to-edit' );
		if ( menuElement.find( 'li' ).length === 1 && $( '.bulk-actions' ).is( ':visible' ) ) {
			$( '.bulk-actions' ).hide();
		}
	} );

})(jQuery);

Batosay - 2023
IDNSEO Team